1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
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
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585echo=${ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $echo works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<EOF
604$*
605EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$ECHO"; then
614if test "X${echo_test_string+set}" != Xset; then
615# find a string as large as possible, as long as the shell can cope with it
616  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619       echo_test_string=`eval $cmd` &&
620       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621    then
622      break
623    fi
624  done
625fi
626
627if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629   test "X$echo_testing_string" = "X$echo_test_string"; then
630  :
631else
632  # The Solaris, AIX, and Digital Unix default echo programs unquote
633  # backslashes.  This makes it impossible to quote backslashes using
634  #   echo "$something" | sed 's/\\/\\\\/g'
635  #
636  # So, first we look for a working echo in the user's PATH.
637
638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639  for dir in $PATH /usr/ucb; do
640    IFS="$lt_save_ifs"
641    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644       test "X$echo_testing_string" = "X$echo_test_string"; then
645      echo="$dir/echo"
646      break
647    fi
648  done
649  IFS="$lt_save_ifs"
650
651  if test "X$echo" = Xecho; then
652    # We didn't find a better echo, so look for alternatives.
653    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655       test "X$echo_testing_string" = "X$echo_test_string"; then
656      # This shell has a builtin print -r that does the trick.
657      echo='print -r'
658    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659	 test "X$CONFIG_SHELL" != X/bin/ksh; then
660      # If we have ksh, try running configure again with it.
661      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662      export ORIGINAL_CONFIG_SHELL
663      CONFIG_SHELL=/bin/ksh
664      export CONFIG_SHELL
665      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666    else
667      # Try using printf.
668      echo='printf %s\n'
669      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671	 test "X$echo_testing_string" = "X$echo_test_string"; then
672	# Cool, printf works
673	:
674      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675	   test "X$echo_testing_string" = 'X\t' &&
676	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677	   test "X$echo_testing_string" = "X$echo_test_string"; then
678	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679	export CONFIG_SHELL
680	SHELL="$CONFIG_SHELL"
681	export SHELL
682	echo="$CONFIG_SHELL $0 --fallback-echo"
683      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684	   test "X$echo_testing_string" = 'X\t' &&
685	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686	   test "X$echo_testing_string" = "X$echo_test_string"; then
687	echo="$CONFIG_SHELL $0 --fallback-echo"
688      else
689	# maybe with a smaller string...
690	prev=:
691
692	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694	  then
695	    break
696	  fi
697	  prev="$cmd"
698	done
699
700	if test "$prev" != 'sed 50q "$0"'; then
701	  echo_test_string=`eval $prev`
702	  export echo_test_string
703	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704	else
705	  # Oops.  We lost completely, so just stick with echo.
706	  echo=echo
707	fi
708      fi
709    fi
710  fi
711fi
712fi
713
714# Copy echo and quote the copy suitably for passing to libtool from
715# the Makefile, instead of quoting the original, which is used later.
716ECHO=$echo
717if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719fi
720
721
722
723
724tagnames=${tagnames+${tagnames},}CXX
725
726tagnames=${tagnames+${tagnames},}F77
727
728exec 7<&0 </dev/null 6>&1
729
730# Name of the host.
731# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732# so uname gets run too.
733ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735#
736# Initializations.
737#
738ac_default_prefix=/usr/local
739ac_clean_files=
740ac_config_libobj_dir=.
741LIBOBJS=
742cross_compiling=no
743subdirs=
744MFLAGS=
745MAKEFLAGS=
746SHELL=${CONFIG_SHELL-/bin/sh}
747
748# Identity of this package.
749PACKAGE_NAME=
750PACKAGE_TARNAME=
751PACKAGE_VERSION=
752PACKAGE_STRING=
753PACKAGE_BUGREPORT=
754
755ac_unique_file="src/XspfReader.cpp"
756# Factoring default headers for most tests.
757ac_includes_default="\
758#include <stdio.h>
759#ifdef HAVE_SYS_TYPES_H
760# include <sys/types.h>
761#endif
762#ifdef HAVE_SYS_STAT_H
763# include <sys/stat.h>
764#endif
765#ifdef STDC_HEADERS
766# include <stdlib.h>
767# include <stddef.h>
768#else
769# ifdef HAVE_STDLIB_H
770#  include <stdlib.h>
771# endif
772#endif
773#ifdef HAVE_STRING_H
774# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775#  include <memory.h>
776# endif
777# include <string.h>
778#endif
779#ifdef HAVE_STRINGS_H
780# include <strings.h>
781#endif
782#ifdef HAVE_INTTYPES_H
783# include <inttypes.h>
784#endif
785#ifdef HAVE_STDINT_H
786# include <stdint.h>
787#endif
788#ifdef HAVE_UNISTD_H
789# include <unistd.h>
790#endif"
791
792enable_option_checking=no
793ac_subst_vars='LTLIBOBJS
794LIBOBJS
795CPPTEST_LIBS
796CPPTEST_CFLAGS
797URIPARSER_LIBS
798URIPARSER_CFLAGS
799GENERATE_DOC_FALSE
800GENERATE_DOC_TRUE
801subdirs
802XSPF_TEST_ENABLED_FALSE
803XSPF_TEST_ENABLED_TRUE
804PKG_CONFIG
805LIBTOOL
806ac_ct_F77
807FFLAGS
808F77
809CXXCPP
810am__fastdepCXX_FALSE
811am__fastdepCXX_TRUE
812CXXDEPMODE
813ac_ct_CXX
814CXXFLAGS
815CXX
816CPP
817NMEDIT
818DSYMUTIL
819RANLIB
820AR
821ECHO
822LN_S
823EGREP
824GREP
825SED
826am__fastdepCC_FALSE
827am__fastdepCC_TRUE
828CCDEPMODE
829AMDEPBACKSLASH
830AMDEP_FALSE
831AMDEP_TRUE
832am__quote
833am__include
834DEPDIR
835OBJEXT
836EXEEXT
837ac_ct_CC
838CPPFLAGS
839LDFLAGS
840CFLAGS
841CC
842host_os
843host_vendor
844host_cpu
845host
846build_os
847build_vendor
848build_cpu
849build
850am__untar
851am__tar
852AMTAR
853am__leading_dot
854SET_MAKE
855AWK
856mkdir_p
857MKDIR_P
858INSTALL_STRIP_PROGRAM
859STRIP
860install_sh
861MAKEINFO
862AUTOHEADER
863AUTOMAKE
864AUTOCONF
865ACLOCAL
866VERSION
867PACKAGE
868CYGPATH_W
869am__isrc
870INSTALL_DATA
871INSTALL_SCRIPT
872INSTALL_PROGRAM
873target_alias
874host_alias
875build_alias
876LIBS
877ECHO_T
878ECHO_N
879ECHO_C
880DEFS
881mandir
882localedir
883libdir
884psdir
885pdfdir
886dvidir
887htmldir
888infodir
889docdir
890oldincludedir
891includedir
892localstatedir
893sharedstatedir
894sysconfdir
895datadir
896datarootdir
897libexecdir
898sbindir
899bindir
900program_transform_name
901prefix
902exec_prefix
903PACKAGE_BUGREPORT
904PACKAGE_STRING
905PACKAGE_VERSION
906PACKAGE_TARNAME
907PACKAGE_NAME
908PATH_SEPARATOR
909SHELL'
910ac_subst_files=''
911ac_user_opts='
912enable_option_checking
913enable_shared
914enable_static
915enable_fast_install
916enable_dependency_tracking
917with_gnu_ld
918enable_libtool_lock
919with_pic
920with_tags
921enable_test
922with_expat
923with_expat_inc
924with_expat_lib
925with_uriparser
926with_uriparser_inc
927with_uriparser_lib
928enable_doc
929'
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936LIBS
937CPPFLAGS
938CPP
939CXX
940CXXFLAGS
941CCC
942CXXCPP
943F77
944FFLAGS
945PKG_CONFIG
946URIPARSER_CFLAGS
947URIPARSER_LIBS
948CPPTEST_CFLAGS
949CPPTEST_LIBS'
950ac_subdirs_all='doc
951bindings/c/doc'
952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956ac_unrecognized_opts=
957ac_unrecognized_sep=
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
980# (The list follows the same order as the GNU Coding Standards.)
981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
989includedir='${prefix}/include'
990oldincludedir='/usr/include'
991docdir='${datarootdir}/doc/${PACKAGE}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
1000
1001ac_prev=
1002ac_dashdash=
1003for ac_option
1004do
1005  # If the previous option needs an argument, assign it.
1006  if test -n "$ac_prev"; then
1007    eval $ac_prev=\$ac_option
1008    ac_prev=
1009    continue
1010  fi
1011
1012  case $ac_option in
1013  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014  *)	ac_optarg=yes ;;
1015  esac
1016
1017  # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019  case $ac_dashdash$ac_option in
1020  --)
1021    ac_dashdash=yes ;;
1022
1023  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024    ac_prev=bindir ;;
1025  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026    bindir=$ac_optarg ;;
1027
1028  -build | --build | --buil | --bui | --bu)
1029    ac_prev=build_alias ;;
1030  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031    build_alias=$ac_optarg ;;
1032
1033  -cache-file | --cache-file | --cache-fil | --cache-fi \
1034  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035    ac_prev=cache_file ;;
1036  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038    cache_file=$ac_optarg ;;
1039
1040  --config-cache | -C)
1041    cache_file=config.cache ;;
1042
1043  -datadir | --datadir | --datadi | --datad)
1044    ac_prev=datadir ;;
1045  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046    datadir=$ac_optarg ;;
1047
1048  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049  | --dataroo | --dataro | --datar)
1050    ac_prev=datarootdir ;;
1051  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053    datarootdir=$ac_optarg ;;
1054
1055  -disable-* | --disable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1060   { (exit 1); exit 1; }; }
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"enable_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068	 ac_unrecognized_sep=', ';;
1069    esac
1070    eval enable_$ac_useropt=no ;;
1071
1072  -docdir | --docdir | --docdi | --doc | --do)
1073    ac_prev=docdir ;;
1074  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075    docdir=$ac_optarg ;;
1076
1077  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078    ac_prev=dvidir ;;
1079  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080    dvidir=$ac_optarg ;;
1081
1082  -enable-* | --enable-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1087   { (exit 1); exit 1; }; }
1088    ac_useropt_orig=$ac_useropt
1089    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090    case $ac_user_opts in
1091      *"
1092"enable_$ac_useropt"
1093"*) ;;
1094      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095	 ac_unrecognized_sep=', ';;
1096    esac
1097    eval enable_$ac_useropt=\$ac_optarg ;;
1098
1099  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101  | --exec | --exe | --ex)
1102    ac_prev=exec_prefix ;;
1103  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105  | --exec=* | --exe=* | --ex=*)
1106    exec_prefix=$ac_optarg ;;
1107
1108  -gas | --gas | --ga | --g)
1109    # Obsolete; use --with-gas.
1110    with_gas=yes ;;
1111
1112  -help | --help | --hel | --he | -h)
1113    ac_init_help=long ;;
1114  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115    ac_init_help=recursive ;;
1116  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117    ac_init_help=short ;;
1118
1119  -host | --host | --hos | --ho)
1120    ac_prev=host_alias ;;
1121  -host=* | --host=* | --hos=* | --ho=*)
1122    host_alias=$ac_optarg ;;
1123
1124  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125    ac_prev=htmldir ;;
1126  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127  | --ht=*)
1128    htmldir=$ac_optarg ;;
1129
1130  -includedir | --includedir | --includedi | --included | --include \
1131  | --includ | --inclu | --incl | --inc)
1132    ac_prev=includedir ;;
1133  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134  | --includ=* | --inclu=* | --incl=* | --inc=*)
1135    includedir=$ac_optarg ;;
1136
1137  -infodir | --infodir | --infodi | --infod | --info | --inf)
1138    ac_prev=infodir ;;
1139  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140    infodir=$ac_optarg ;;
1141
1142  -libdir | --libdir | --libdi | --libd)
1143    ac_prev=libdir ;;
1144  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145    libdir=$ac_optarg ;;
1146
1147  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148  | --libexe | --libex | --libe)
1149    ac_prev=libexecdir ;;
1150  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151  | --libexe=* | --libex=* | --libe=*)
1152    libexecdir=$ac_optarg ;;
1153
1154  -localedir | --localedir | --localedi | --localed | --locale)
1155    ac_prev=localedir ;;
1156  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157    localedir=$ac_optarg ;;
1158
1159  -localstatedir | --localstatedir | --localstatedi | --localstated \
1160  | --localstate | --localstat | --localsta | --localst | --locals)
1161    ac_prev=localstatedir ;;
1162  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164    localstatedir=$ac_optarg ;;
1165
1166  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167    ac_prev=mandir ;;
1168  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169    mandir=$ac_optarg ;;
1170
1171  -nfp | --nfp | --nf)
1172    # Obsolete; use --without-fp.
1173    with_fp=no ;;
1174
1175  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176  | --no-cr | --no-c | -n)
1177    no_create=yes ;;
1178
1179  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181    no_recursion=yes ;;
1182
1183  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185  | --oldin | --oldi | --old | --ol | --o)
1186    ac_prev=oldincludedir ;;
1187  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190    oldincludedir=$ac_optarg ;;
1191
1192  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193    ac_prev=prefix ;;
1194  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195    prefix=$ac_optarg ;;
1196
1197  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198  | --program-pre | --program-pr | --program-p)
1199    ac_prev=program_prefix ;;
1200  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202    program_prefix=$ac_optarg ;;
1203
1204  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205  | --program-suf | --program-su | --program-s)
1206    ac_prev=program_suffix ;;
1207  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209    program_suffix=$ac_optarg ;;
1210
1211  -program-transform-name | --program-transform-name \
1212  | --program-transform-nam | --program-transform-na \
1213  | --program-transform-n | --program-transform- \
1214  | --program-transform | --program-transfor \
1215  | --program-transfo | --program-transf \
1216  | --program-trans | --program-tran \
1217  | --progr-tra | --program-tr | --program-t)
1218    ac_prev=program_transform_name ;;
1219  -program-transform-name=* | --program-transform-name=* \
1220  | --program-transform-nam=* | --program-transform-na=* \
1221  | --program-transform-n=* | --program-transform-=* \
1222  | --program-transform=* | --program-transfor=* \
1223  | --program-transfo=* | --program-transf=* \
1224  | --program-trans=* | --program-tran=* \
1225  | --progr-tra=* | --program-tr=* | --program-t=*)
1226    program_transform_name=$ac_optarg ;;
1227
1228  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229    ac_prev=pdfdir ;;
1230  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231    pdfdir=$ac_optarg ;;
1232
1233  -psdir | --psdir | --psdi | --psd | --ps)
1234    ac_prev=psdir ;;
1235  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236    psdir=$ac_optarg ;;
1237
1238  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239  | -silent | --silent | --silen | --sile | --sil)
1240    silent=yes ;;
1241
1242  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243    ac_prev=sbindir ;;
1244  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245  | --sbi=* | --sb=*)
1246    sbindir=$ac_optarg ;;
1247
1248  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250  | --sharedst | --shareds | --shared | --share | --shar \
1251  | --sha | --sh)
1252    ac_prev=sharedstatedir ;;
1253  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256  | --sha=* | --sh=*)
1257    sharedstatedir=$ac_optarg ;;
1258
1259  -site | --site | --sit)
1260    ac_prev=site ;;
1261  -site=* | --site=* | --sit=*)
1262    site=$ac_optarg ;;
1263
1264  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265    ac_prev=srcdir ;;
1266  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267    srcdir=$ac_optarg ;;
1268
1269  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270  | --syscon | --sysco | --sysc | --sys | --sy)
1271    ac_prev=sysconfdir ;;
1272  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274    sysconfdir=$ac_optarg ;;
1275
1276  -target | --target | --targe | --targ | --tar | --ta | --t)
1277    ac_prev=target_alias ;;
1278  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279    target_alias=$ac_optarg ;;
1280
1281  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282    verbose=yes ;;
1283
1284  -version | --version | --versio | --versi | --vers | -V)
1285    ac_init_version=: ;;
1286
1287  -with-* | --with-*)
1288    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289    # Reject names that are not valid shell variable names.
1290    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292   { (exit 1); exit 1; }; }
1293    ac_useropt_orig=$ac_useropt
1294    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295    case $ac_user_opts in
1296      *"
1297"with_$ac_useropt"
1298"*) ;;
1299      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300	 ac_unrecognized_sep=', ';;
1301    esac
1302    eval with_$ac_useropt=\$ac_optarg ;;
1303
1304  -without-* | --without-*)
1305    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309   { (exit 1); exit 1; }; }
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"with_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval with_$ac_useropt=no ;;
1320
1321  --x)
1322    # Obsolete; use --with-x.
1323    with_x=yes ;;
1324
1325  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326  | --x-incl | --x-inc | --x-in | --x-i)
1327    ac_prev=x_includes ;;
1328  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330    x_includes=$ac_optarg ;;
1331
1332  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334    ac_prev=x_libraries ;;
1335  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337    x_libraries=$ac_optarg ;;
1338
1339  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1340Try \`$0 --help' for more information." >&2
1341   { (exit 1); exit 1; }; }
1342    ;;
1343
1344  *=*)
1345    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346    # Reject names that are not valid shell variable names.
1347    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1348      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1349   { (exit 1); exit 1; }; }
1350    eval $ac_envvar=\$ac_optarg
1351    export $ac_envvar ;;
1352
1353  *)
1354    # FIXME: should be removed in autoconf 3.0.
1355    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359    ;;
1360
1361  esac
1362done
1363
1364if test -n "$ac_prev"; then
1365  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1367   { (exit 1); exit 1; }; }
1368fi
1369
1370if test -n "$ac_unrecognized_opts"; then
1371  case $enable_option_checking in
1372    no) ;;
1373    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1374   { (exit 1); exit 1; }; } ;;
1375    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376  esac
1377fi
1378
1379# Check all directory arguments for consistency.
1380for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381		datadir sysconfdir sharedstatedir localstatedir includedir \
1382		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383		libdir localedir mandir
1384do
1385  eval ac_val=\$$ac_var
1386  # Remove trailing slashes.
1387  case $ac_val in
1388    */ )
1389      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390      eval $ac_var=\$ac_val;;
1391  esac
1392  # Be sure to have absolute directory names.
1393  case $ac_val in
1394    [\\/$]* | ?:[\\/]* )  continue;;
1395    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396  esac
1397  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1398   { (exit 1); exit 1; }; }
1399done
1400
1401# There might be people who depend on the old broken behavior: `$host'
1402# used to hold the argument of --host etc.
1403# FIXME: To remove some day.
1404build=$build_alias
1405host=$host_alias
1406target=$target_alias
1407
1408# FIXME: To remove some day.
1409if test "x$host_alias" != x; then
1410  if test "x$build_alias" = x; then
1411    cross_compiling=maybe
1412    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413    If a cross compiler is detected then cross compile mode will be used." >&2
1414  elif test "x$build_alias" != "x$host_alias"; then
1415    cross_compiling=yes
1416  fi
1417fi
1418
1419ac_tool_prefix=
1420test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422test "$silent" = yes && exec 6>/dev/null
1423
1424
1425ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426ac_ls_di=`ls -di .` &&
1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1429   { (exit 1); exit 1; }; }
1430test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1432   { (exit 1); exit 1; }; }
1433
1434
1435# Find the source files, if location was not specified.
1436if test -z "$srcdir"; then
1437  ac_srcdir_defaulted=yes
1438  # Try the directory containing this script, then the parent directory.
1439  ac_confdir=`$as_dirname -- "$as_myself" ||
1440$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441	 X"$as_myself" : 'X\(//\)[^/]' \| \
1442	 X"$as_myself" : 'X\(//\)$' \| \
1443	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444$as_echo X"$as_myself" |
1445    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446	    s//\1/
1447	    q
1448	  }
1449	  /^X\(\/\/\)[^/].*/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\/\)$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\).*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  s/.*/./; q'`
1462  srcdir=$ac_confdir
1463  if test ! -r "$srcdir/$ac_unique_file"; then
1464    srcdir=..
1465  fi
1466else
1467  ac_srcdir_defaulted=no
1468fi
1469if test ! -r "$srcdir/$ac_unique_file"; then
1470  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1472   { (exit 1); exit 1; }; }
1473fi
1474ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475ac_abs_confdir=`(
1476	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1477   { (exit 1); exit 1; }; }
1478	pwd)`
1479# When building in place, set srcdir=.
1480if test "$ac_abs_confdir" = "$ac_pwd"; then
1481  srcdir=.
1482fi
1483# Remove unnecessary trailing slashes from srcdir.
1484# Double slashes in file names in object file debugging info
1485# mess up M-x gdb in Emacs.
1486case $srcdir in
1487*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488esac
1489for ac_var in $ac_precious_vars; do
1490  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491  eval ac_env_${ac_var}_value=\$${ac_var}
1492  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494done
1495
1496#
1497# Report the --help message.
1498#
1499if test "$ac_init_help" = "long"; then
1500  # Omit some internal or obsolete options to make the list less imposing.
1501  # This message is too long to be a string in the A/UX 3.1 sh.
1502  cat <<_ACEOF
1503\`configure' configures this package to adapt to many kinds of systems.
1504
1505Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508VAR=VALUE.  See below for descriptions of some of the useful variables.
1509
1510Defaults for the options are specified in brackets.
1511
1512Configuration:
1513  -h, --help              display this help and exit
1514      --help=short        display options specific to this package
1515      --help=recursive    display the short help of all the included packages
1516  -V, --version           display version information and exit
1517  -q, --quiet, --silent   do not print \`checking...' messages
1518      --cache-file=FILE   cache test results in FILE [disabled]
1519  -C, --config-cache      alias for \`--cache-file=config.cache'
1520  -n, --no-create         do not create output files
1521      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1522
1523Installation directories:
1524  --prefix=PREFIX         install architecture-independent files in PREFIX
1525                          [$ac_default_prefix]
1526  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1527                          [PREFIX]
1528
1529By default, \`make install' will install all the files in
1530\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1531an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532for instance \`--prefix=\$HOME'.
1533
1534For better control, use the options below.
1535
1536Fine tuning of the installation directories:
1537  --bindir=DIR            user executables [EPREFIX/bin]
1538  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1539  --libexecdir=DIR        program executables [EPREFIX/libexec]
1540  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1541  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1542  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1543  --libdir=DIR            object code libraries [EPREFIX/lib]
1544  --includedir=DIR        C header files [PREFIX/include]
1545  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1546  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1547  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1548  --infodir=DIR           info documentation [DATAROOTDIR/info]
1549  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1550  --mandir=DIR            man documentation [DATAROOTDIR/man]
1551  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1552  --htmldir=DIR           html documentation [DOCDIR]
1553  --dvidir=DIR            dvi documentation [DOCDIR]
1554  --pdfdir=DIR            pdf documentation [DOCDIR]
1555  --psdir=DIR             ps documentation [DOCDIR]
1556_ACEOF
1557
1558  cat <<\_ACEOF
1559
1560Program names:
1561  --program-prefix=PREFIX            prepend PREFIX to installed program names
1562  --program-suffix=SUFFIX            append SUFFIX to installed program names
1563  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572
1573  cat <<\_ACEOF
1574
1575Optional Features:
1576  --disable-option-checking  ignore unrecognized --enable/--with options
1577  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1578  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1579  --enable-shared[=PKGS]  build shared libraries [default=yes]
1580  --enable-static[=PKGS]  build static libraries [default=yes]
1581  --enable-fast-install[=PKGS]
1582                          optimize for fast installation [default=yes]
1583  --disable-dependency-tracking  speeds up one-time build
1584  --enable-dependency-tracking   do not reject slow dependency extractors
1585  --disable-libtool-lock  avoid locking (might break parallel builds)
1586
1587===========================================================================
1588Extra options:
1589  --disable-test          disable 'make check' and libcpptest dependency
1590  --enable-doc            generate API documentation with Doxygen
1591===========================================================================
1592
1593Optional Packages:
1594  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1595  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1596  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597  --with-pic              try to use only PIC/non-PIC objects [default=use
1598                          both]
1599  --with-tags[=TAGS]      include additional configurations [automatic]
1600
1601===========================================================================
1602Extra options:
1603  --with-expat=DIR        override path of Expat
1604                          ("/lib" and "/include" is appended)
1605  --with-expat-inc=DIR    override include path of Expat
1606  --with-expat-lib=DIR    override library path of Expat
1607  --with-uriparser=DIR    override path of uriparser
1608                          ("/lib" and "/include" is appended)
1609  --with-uriparser-inc=D  override include path of uriparser
1610  --with-uriparser-lib=D  override library path of uriparser
1611===========================================================================
1612
1613Some influential environment variables:
1614  CC          C compiler command
1615  CFLAGS      C compiler flags
1616  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617              nonstandard directory <lib dir>
1618  LIBS        libraries to pass to the linker, e.g. -l<library>
1619  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620              you have headers in a nonstandard directory <include dir>
1621  CPP         C preprocessor
1622  CXX         C++ compiler command
1623  CXXFLAGS    C++ compiler flags
1624  CXXCPP      C++ preprocessor
1625  F77         Fortran 77 compiler command
1626  FFLAGS      Fortran 77 compiler flags
1627  PKG_CONFIG  path to pkg-config utility
1628  URIPARSER_CFLAGS
1629              C compiler flags for URIPARSER, overriding pkg-config
1630  URIPARSER_LIBS
1631              linker flags for URIPARSER, overriding pkg-config
1632  CPPTEST_CFLAGS
1633              C compiler flags for CPPTEST, overriding pkg-config
1634  CPPTEST_LIBS
1635              linker flags for CPPTEST, overriding pkg-config
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
1640_ACEOF
1641ac_status=$?
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645  # If there are subdirs, report their specific --help.
1646  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647    test -d "$ac_dir" ||
1648      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649      continue
1650    ac_builddir=.
1651
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
1655  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656  # A ".." for each directory in $ac_dir_suffix.
1657  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658  case $ac_top_builddir_sub in
1659  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661  esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
1667
1668case $srcdir in
1669  .)  # We are building in place.
1670    ac_srcdir=.
1671    ac_top_srcdir=$ac_top_builddir_sub
1672    ac_abs_top_srcdir=$ac_pwd ;;
1673  [\\/]* | ?:[\\/]* )  # Absolute name.
1674    ac_srcdir=$srcdir$ac_dir_suffix;
1675    ac_top_srcdir=$srcdir
1676    ac_abs_top_srcdir=$srcdir ;;
1677  *) # Relative name.
1678    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679    ac_top_srcdir=$ac_top_build_prefix$srcdir
1680    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681esac
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684    cd "$ac_dir" || { ac_status=$?; continue; }
1685    # Check for guested configure.
1686    if test -f "$ac_srcdir/configure.gnu"; then
1687      echo &&
1688      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689    elif test -f "$ac_srcdir/configure"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure" --help=recursive
1692    else
1693      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694    fi || ac_status=$?
1695    cd "$ac_pwd" || { ac_status=$?; break; }
1696  done
1697fi
1698
1699test -n "$ac_init_help" && exit $ac_status
1700if $ac_init_version; then
1701  cat <<\_ACEOF
1702configure
1703generated by GNU Autoconf 2.63
1704
1705Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
1710  exit
1711fi
1712cat >config.log <<_ACEOF
1713This file contains any messages produced by compilers while
1714running configure, to aid debugging if configure makes a mistake.
1715
1716It was created by $as_me, which was
1717generated by GNU Autoconf 2.63.  Invocation command line was
1718
1719  $ $0 $@
1720
1721_ACEOF
1722exec 5>>config.log
1723{
1724cat <<_ASUNAME
1725## --------- ##
1726## Platform. ##
1727## --------- ##
1728
1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1737
1738/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1739/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1742/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1743/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1744/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1745
1746_ASUNAME
1747
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751  IFS=$as_save_IFS
1752  test -z "$as_dir" && as_dir=.
1753  $as_echo "PATH: $as_dir"
1754done
1755IFS=$as_save_IFS
1756
1757} >&5
1758
1759cat >&5 <<_ACEOF
1760
1761
1762## ----------- ##
1763## Core tests. ##
1764## ----------- ##
1765
1766_ACEOF
1767
1768
1769# Keep a trace of the command line.
1770# Strip out --no-create and --no-recursion so they do not pile up.
1771# Strip out --silent because we don't want to record it for future runs.
1772# Also quote any args containing shell meta-characters.
1773# Make two passes to allow for proper duplicate-argument suppression.
1774ac_configure_args=
1775ac_configure_args0=
1776ac_configure_args1=
1777ac_must_keep_next=false
1778for ac_pass in 1 2
1779do
1780  for ac_arg
1781  do
1782    case $ac_arg in
1783    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785    | -silent | --silent | --silen | --sile | --sil)
1786      continue ;;
1787    *\'*)
1788      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789    esac
1790    case $ac_pass in
1791    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792    2)
1793      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794      if test $ac_must_keep_next = true; then
1795	ac_must_keep_next=false # Got value, back to normal.
1796      else
1797	case $ac_arg in
1798	  *=* | --config-cache | -C | -disable-* | --disable-* \
1799	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801	  | -with-* | --with-* | -without-* | --without-* | --x)
1802	    case "$ac_configure_args0 " in
1803	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804	    esac
1805	    ;;
1806	  -* ) ac_must_keep_next=true ;;
1807	esac
1808      fi
1809      ac_configure_args="$ac_configure_args '$ac_arg'"
1810      ;;
1811    esac
1812  done
1813done
1814$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817# When interrupted or exit'd, cleanup temporary files, and complete
1818# config.log.  We remove comments because anyway the quotes in there
1819# would cause problems or look ugly.
1820# WARNING: Use '\'' to represent an apostrophe within the trap.
1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822trap 'exit_status=$?
1823  # Save into config.log some information that might help in debugging.
1824  {
1825    echo
1826
1827    cat <<\_ASBOX
1828## ---------------- ##
1829## Cache variables. ##
1830## ---------------- ##
1831_ASBOX
1832    echo
1833    # The following way of writing the cache mishandles newlines in values,
1834(
1835  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836    eval ac_val=\$$ac_var
1837    case $ac_val in #(
1838    *${as_nl}*)
1839      case $ac_var in #(
1840      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842      esac
1843      case $ac_var in #(
1844      _ | IFS | as_nl) ;; #(
1845      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846      *) $as_unset $ac_var ;;
1847      esac ;;
1848    esac
1849  done
1850  (set) 2>&1 |
1851    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852    *${as_nl}ac_space=\ *)
1853      sed -n \
1854	"s/'\''/'\''\\\\'\'''\''/g;
1855	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856      ;; #(
1857    *)
1858      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859      ;;
1860    esac |
1861    sort
1862)
1863    echo
1864
1865    cat <<\_ASBOX
1866## ----------------- ##
1867## Output variables. ##
1868## ----------------- ##
1869_ASBOX
1870    echo
1871    for ac_var in $ac_subst_vars
1872    do
1873      eval ac_val=\$$ac_var
1874      case $ac_val in
1875      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876      esac
1877      $as_echo "$ac_var='\''$ac_val'\''"
1878    done | sort
1879    echo
1880
1881    if test -n "$ac_subst_files"; then
1882      cat <<\_ASBOX
1883## ------------------- ##
1884## File substitutions. ##
1885## ------------------- ##
1886_ASBOX
1887      echo
1888      for ac_var in $ac_subst_files
1889      do
1890	eval ac_val=\$$ac_var
1891	case $ac_val in
1892	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893	esac
1894	$as_echo "$ac_var='\''$ac_val'\''"
1895      done | sort
1896      echo
1897    fi
1898
1899    if test -s confdefs.h; then
1900      cat <<\_ASBOX
1901## ----------- ##
1902## confdefs.h. ##
1903## ----------- ##
1904_ASBOX
1905      echo
1906      cat confdefs.h
1907      echo
1908    fi
1909    test "$ac_signal" != 0 &&
1910      $as_echo "$as_me: caught signal $ac_signal"
1911    $as_echo "$as_me: exit $exit_status"
1912  } >&5
1913  rm -f core *.core core.conftest.* &&
1914    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915    exit $exit_status
1916' 0
1917for ac_signal in 1 2 13 15; do
1918  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919done
1920ac_signal=0
1921
1922# confdefs.h avoids OS command line length limits that DEFS can exceed.
1923rm -f -r conftest* confdefs.h
1924
1925# Predefined preprocessor variables.
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_NAME "$PACKAGE_NAME"
1929_ACEOF
1930
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_VERSION "$PACKAGE_VERSION"
1939_ACEOF
1940
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_STRING "$PACKAGE_STRING"
1944_ACEOF
1945
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949_ACEOF
1950
1951
1952# Let the site file select an alternate cache file if it wants to.
1953# Prefer an explicitly selected file to automatically selected ones.
1954ac_site_file1=NONE
1955ac_site_file2=NONE
1956if test -n "$CONFIG_SITE"; then
1957  ac_site_file1=$CONFIG_SITE
1958elif test "x$prefix" != xNONE; then
1959  ac_site_file1=$prefix/share/config.site
1960  ac_site_file2=$prefix/etc/config.site
1961else
1962  ac_site_file1=$ac_default_prefix/share/config.site
1963  ac_site_file2=$ac_default_prefix/etc/config.site
1964fi
1965for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966do
1967  test "x$ac_site_file" = xNONE && continue
1968  if test -r "$ac_site_file"; then
1969    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971    sed 's/^/| /' "$ac_site_file" >&5
1972    . "$ac_site_file"
1973  fi
1974done
1975
1976if test -r "$cache_file"; then
1977  # Some versions of bash will fail to source /dev/null (special
1978  # files actually), so we avoid doing that.
1979  if test -f "$cache_file"; then
1980    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981$as_echo "$as_me: loading cache $cache_file" >&6;}
1982    case $cache_file in
1983      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984      *)                      . "./$cache_file";;
1985    esac
1986  fi
1987else
1988  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989$as_echo "$as_me: creating cache $cache_file" >&6;}
1990  >$cache_file
1991fi
1992
1993# Check that the precious variables saved in the cache have kept the same
1994# value.
1995ac_cache_corrupted=false
1996for ac_var in $ac_precious_vars; do
1997  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998  eval ac_new_set=\$ac_env_${ac_var}_set
1999  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000  eval ac_new_val=\$ac_env_${ac_var}_value
2001  case $ac_old_set,$ac_new_set in
2002    set,)
2003      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005      ac_cache_corrupted=: ;;
2006    ,set)
2007      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009      ac_cache_corrupted=: ;;
2010    ,);;
2011    *)
2012      if test "x$ac_old_val" != "x$ac_new_val"; then
2013	# differences in whitespace do not lead to failure.
2014	ac_old_val_w=`echo x $ac_old_val`
2015	ac_new_val_w=`echo x $ac_new_val`
2016	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019	  ac_cache_corrupted=:
2020	else
2021	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023	  eval $ac_var=\$ac_old_val
2024	fi
2025	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2026$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2027	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2028$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2029      fi;;
2030  esac
2031  # Pass precious variables to config.status.
2032  if test "$ac_new_set" = set; then
2033    case $ac_new_val in
2034    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035    *) ac_arg=$ac_var=$ac_new_val ;;
2036    esac
2037    case " $ac_configure_args " in
2038      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2039      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040    esac
2041  fi
2042done
2043if $ac_cache_corrupted; then
2044  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050   { (exit 1); exit 1; }; }
2051fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069ac_ext=c
2070ac_cpp='$CPP $CPPFLAGS'
2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076ac_aux_dir=
2077for ac_dir in build-aux "$srcdir"/build-aux; do
2078  if test -f "$ac_dir/install-sh"; then
2079    ac_aux_dir=$ac_dir
2080    ac_install_sh="$ac_aux_dir/install-sh -c"
2081    break
2082  elif test -f "$ac_dir/install.sh"; then
2083    ac_aux_dir=$ac_dir
2084    ac_install_sh="$ac_aux_dir/install.sh -c"
2085    break
2086  elif test -f "$ac_dir/shtool"; then
2087    ac_aux_dir=$ac_dir
2088    ac_install_sh="$ac_aux_dir/shtool install -c"
2089    break
2090  fi
2091done
2092if test -z "$ac_aux_dir"; then
2093  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2094$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2095   { (exit 1); exit 1; }; }
2096fi
2097
2098# These three variables are undocumented and unsupported,
2099# and are intended to be withdrawn in a future Autoconf release.
2100# They can cause serious problems if a builder's source tree is in a directory
2101# whose full name contains unusual characters.
2102ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2103ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2104ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2105
2106
2107am__api_version='1.10'
2108
2109# Find a good install program.  We prefer a C program (faster),
2110# so one script is as good as another.  But avoid the broken or
2111# incompatible versions:
2112# SysV /etc/install, /usr/sbin/install
2113# SunOS /usr/etc/install
2114# IRIX /sbin/install
2115# AIX /bin/install
2116# AmigaOS /C/install, which installs bootblocks on floppy discs
2117# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2118# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2119# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2120# OS/2's system install, which has a completely different semantic
2121# ./install, which can be erroneously created by make from ./install.sh.
2122# Reject install programs that cannot install multiple files.
2123{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2124$as_echo_n "checking for a BSD-compatible install... " >&6; }
2125if test -z "$INSTALL"; then
2126if test "${ac_cv_path_install+set}" = set; then
2127  $as_echo_n "(cached) " >&6
2128else
2129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  # Account for people who put trailing slashes in PATH elements.
2135case $as_dir/ in
2136  ./ | .// | /cC/* | \
2137  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2138  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2139  /usr/ucb/* ) ;;
2140  *)
2141    # OSF1 and SCO ODT 3.0 have their own names for install.
2142    # Don't use installbsd from OSF since it installs stuff as root
2143    # by default.
2144    for ac_prog in ginstall scoinst install; do
2145      for ac_exec_ext in '' $ac_executable_extensions; do
2146	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2147	  if test $ac_prog = install &&
2148	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149	    # AIX install.  It has an incompatible calling convention.
2150	    :
2151	  elif test $ac_prog = install &&
2152	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153	    # program-specific install script used by HP pwplus--don't use.
2154	    :
2155	  else
2156	    rm -rf conftest.one conftest.two conftest.dir
2157	    echo one > conftest.one
2158	    echo two > conftest.two
2159	    mkdir conftest.dir
2160	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2161	      test -s conftest.one && test -s conftest.two &&
2162	      test -s conftest.dir/conftest.one &&
2163	      test -s conftest.dir/conftest.two
2164	    then
2165	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2166	      break 3
2167	    fi
2168	  fi
2169	fi
2170      done
2171    done
2172    ;;
2173esac
2174
2175done
2176IFS=$as_save_IFS
2177
2178rm -rf conftest.one conftest.two conftest.dir
2179
2180fi
2181  if test "${ac_cv_path_install+set}" = set; then
2182    INSTALL=$ac_cv_path_install
2183  else
2184    # As a last resort, use the slow shell script.  Don't cache a
2185    # value for INSTALL within a source directory, because that will
2186    # break other packages using the cache if that directory is
2187    # removed, or if the value is a relative name.
2188    INSTALL=$ac_install_sh
2189  fi
2190fi
2191{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2192$as_echo "$INSTALL" >&6; }
2193
2194# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195# It thinks the first close brace ends the variable substitution.
2196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203$as_echo_n "checking whether build environment is sane... " >&6; }
2204# Just in case
2205sleep 1
2206echo timestamp > conftest.file
2207# Do `set' in a subshell so we don't clobber the current shell's
2208# arguments.  Must try -L first in case configure is actually a
2209# symlink; some systems play weird games with the mod time of symlinks
2210# (eg FreeBSD returns the mod time of the symlink's containing
2211# directory).
2212if (
2213   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214   if test "$*" = "X"; then
2215      # -L didn't work.
2216      set X `ls -t $srcdir/configure conftest.file`
2217   fi
2218   rm -f conftest.file
2219   if test "$*" != "X $srcdir/configure conftest.file" \
2220      && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222      # If neither matched, then we have a broken ls.  This can happen
2223      # if, for instance, CONFIG_SHELL is bash and it inherits a
2224      # broken ls alias from the environment.  This has actually
2225      # happened.  Such a system could not be considered "sane".
2226      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227alias in your environment" >&5
2228$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229alias in your environment" >&2;}
2230   { (exit 1); exit 1; }; }
2231   fi
2232
2233   test "$2" = conftest.file
2234   )
2235then
2236   # Ok.
2237   :
2238else
2239   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240Check your system clock" >&5
2241$as_echo "$as_me: error: newly created file is older than distributed files!
2242Check your system clock" >&2;}
2243   { (exit 1); exit 1; }; }
2244fi
2245{ $as_echo "$as_me:$LINENO: result: yes" >&5
2246$as_echo "yes" >&6; }
2247test "$program_prefix" != NONE &&
2248  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249# Use a double $ so make ignores it.
2250test "$program_suffix" != NONE &&
2251  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252# Double any \ or $.
2253# By default was `s,x,x', remove it if useless.
2254ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2255program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2256
2257# expand $ac_aux_dir to an absolute path
2258am_aux_dir=`cd $ac_aux_dir && pwd`
2259
2260test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2261# Use eval to expand $SHELL
2262if eval "$MISSING --run true"; then
2263  am_missing_run="$MISSING --run "
2264else
2265  am_missing_run=
2266  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2267$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2268fi
2269
2270{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2271$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2272if test -z "$MKDIR_P"; then
2273  if test "${ac_cv_path_mkdir+set}" = set; then
2274  $as_echo_n "(cached) " >&6
2275else
2276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281  for ac_prog in mkdir gmkdir; do
2282	 for ac_exec_ext in '' $ac_executable_extensions; do
2283	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2284	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2285	     'mkdir (GNU coreutils) '* | \
2286	     'mkdir (coreutils) '* | \
2287	     'mkdir (fileutils) '4.1*)
2288	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2289	       break 3;;
2290	   esac
2291	 done
2292       done
2293done
2294IFS=$as_save_IFS
2295
2296fi
2297
2298  if test "${ac_cv_path_mkdir+set}" = set; then
2299    MKDIR_P="$ac_cv_path_mkdir -p"
2300  else
2301    # As a last resort, use the slow shell script.  Don't cache a
2302    # value for MKDIR_P within a source directory, because that will
2303    # break other packages using the cache if that directory is
2304    # removed, or if the value is a relative name.
2305    test -d ./--version && rmdir ./--version
2306    MKDIR_P="$ac_install_sh -d"
2307  fi
2308fi
2309{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2310$as_echo "$MKDIR_P" >&6; }
2311
2312mkdir_p="$MKDIR_P"
2313case $mkdir_p in
2314  [\\/$]* | ?:[\\/]*) ;;
2315  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2316esac
2317
2318for ac_prog in gawk mawk nawk awk
2319do
2320  # Extract the first word of "$ac_prog", so it can be a program name with args.
2321set dummy $ac_prog; ac_word=$2
2322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323$as_echo_n "checking for $ac_word... " >&6; }
2324if test "${ac_cv_prog_AWK+set}" = set; then
2325  $as_echo_n "(cached) " >&6
2326else
2327  if test -n "$AWK"; then
2328  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2329else
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337    ac_cv_prog_AWK="$ac_prog"
2338    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339    break 2
2340  fi
2341done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346fi
2347AWK=$ac_cv_prog_AWK
2348if test -n "$AWK"; then
2349  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2350$as_echo "$AWK" >&6; }
2351else
2352  { $as_echo "$as_me:$LINENO: result: no" >&5
2353$as_echo "no" >&6; }
2354fi
2355
2356
2357  test -n "$AWK" && break
2358done
2359
2360{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2361$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2362set x ${MAKE-make}
2363ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365  $as_echo_n "(cached) " >&6
2366else
2367  cat >conftest.make <<\_ACEOF
2368SHELL = /bin/sh
2369all:
2370	@echo '@@@%%%=$(MAKE)=@@@%%%'
2371_ACEOF
2372# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373case `${MAKE-make} -f conftest.make 2>/dev/null` in
2374  *@@@%%%=?*=@@@%%%*)
2375    eval ac_cv_prog_make_${ac_make}_set=yes;;
2376  *)
2377    eval ac_cv_prog_make_${ac_make}_set=no;;
2378esac
2379rm -f conftest.make
2380fi
2381if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382  { $as_echo "$as_me:$LINENO: result: yes" >&5
2383$as_echo "yes" >&6; }
2384  SET_MAKE=
2385else
2386  { $as_echo "$as_me:$LINENO: result: no" >&5
2387$as_echo "no" >&6; }
2388  SET_MAKE="MAKE=${MAKE-make}"
2389fi
2390
2391rm -rf .tst 2>/dev/null
2392mkdir .tst 2>/dev/null
2393if test -d .tst; then
2394  am__leading_dot=.
2395else
2396  am__leading_dot=_
2397fi
2398rmdir .tst 2>/dev/null
2399
2400if test "`cd $srcdir && pwd`" != "`pwd`"; then
2401  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2402  # is not polluted with repeated "-I."
2403  am__isrc=' -I$(srcdir)'
2404  # test to see if srcdir already configured
2405  if test -f $srcdir/config.status; then
2406    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408   { (exit 1); exit 1; }; }
2409  fi
2410fi
2411
2412# test whether we have cygpath
2413if test -z "$CYGPATH_W"; then
2414  if (cygpath --version) >/dev/null 2>/dev/null; then
2415    CYGPATH_W='cygpath -w'
2416  else
2417    CYGPATH_W=echo
2418  fi
2419fi
2420
2421
2422# Define the identity of the package.
2423 PACKAGE=libxspf
2424 VERSION=1.2.0
2425
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE "$PACKAGE"
2429_ACEOF
2430
2431
2432cat >>confdefs.h <<_ACEOF
2433#define VERSION "$VERSION"
2434_ACEOF
2435
2436# Some tools Automake needs.
2437
2438ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439
2440
2441AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442
2443
2444AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445
2446
2447AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448
2449
2450MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2451
2452install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2453
2454# Installed binaries are usually stripped using `strip' when the user
2455# run `make install-strip'.  However `strip' might not be the right
2456# tool to use in cross-compilation environments, therefore Automake
2457# will honor the `STRIP' environment variable to overrule this program.
2458if test "$cross_compiling" != no; then
2459  if test -n "$ac_tool_prefix"; then
2460  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461set dummy ${ac_tool_prefix}strip; ac_word=$2
2462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if test "${ac_cv_prog_STRIP+set}" = set; then
2465  $as_echo_n "(cached) " >&6
2466else
2467  if test -n "$STRIP"; then
2468  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487STRIP=$ac_cv_prog_STRIP
2488if test -n "$STRIP"; then
2489  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2490$as_echo "$STRIP" >&6; }
2491else
2492  { $as_echo "$as_me:$LINENO: result: no" >&5
2493$as_echo "no" >&6; }
2494fi
2495
2496
2497fi
2498if test -z "$ac_cv_prog_STRIP"; then
2499  ac_ct_STRIP=$STRIP
2500  # Extract the first word of "strip", so it can be a program name with args.
2501set dummy strip; ac_word=$2
2502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2503$as_echo_n "checking for $ac_word... " >&6; }
2504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505  $as_echo_n "(cached) " >&6
2506else
2507  if test -n "$ac_ct_STRIP"; then
2508  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515  for ac_exec_ext in '' $ac_executable_extensions; do
2516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517    ac_cv_prog_ac_ct_STRIP="strip"
2518    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519    break 2
2520  fi
2521done
2522done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528if test -n "$ac_ct_STRIP"; then
2529  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530$as_echo "$ac_ct_STRIP" >&6; }
2531else
2532  { $as_echo "$as_me:$LINENO: result: no" >&5
2533$as_echo "no" >&6; }
2534fi
2535
2536  if test "x$ac_ct_STRIP" = x; then
2537    STRIP=":"
2538  else
2539    case $cross_compiling:$ac_tool_warned in
2540yes:)
2541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543ac_tool_warned=yes ;;
2544esac
2545    STRIP=$ac_ct_STRIP
2546  fi
2547else
2548  STRIP="$ac_cv_prog_STRIP"
2549fi
2550
2551fi
2552INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553
2554# We need awk for the "check" target.  The system "awk" is bad on
2555# some platforms.
2556# Always define AMTAR for backward compatibility.
2557
2558AMTAR=${AMTAR-"${am_missing_run}tar"}
2559
2560am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2561
2562
2563
2564
2565
2566
2567# Check whether --enable-shared was given.
2568if test "${enable_shared+set}" = set; then
2569  enableval=$enable_shared; p=${PACKAGE-default}
2570    case $enableval in
2571    yes) enable_shared=yes ;;
2572    no) enable_shared=no ;;
2573    *)
2574      enable_shared=no
2575      # Look at the argument we got.  We use all the common list separators.
2576      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2577      for pkg in $enableval; do
2578	IFS="$lt_save_ifs"
2579	if test "X$pkg" = "X$p"; then
2580	  enable_shared=yes
2581	fi
2582      done
2583      IFS="$lt_save_ifs"
2584      ;;
2585    esac
2586else
2587  enable_shared=yes
2588fi
2589
2590
2591# Check whether --enable-static was given.
2592if test "${enable_static+set}" = set; then
2593  enableval=$enable_static; p=${PACKAGE-default}
2594    case $enableval in
2595    yes) enable_static=yes ;;
2596    no) enable_static=no ;;
2597    *)
2598     enable_static=no
2599      # Look at the argument we got.  We use all the common list separators.
2600      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2601      for pkg in $enableval; do
2602	IFS="$lt_save_ifs"
2603	if test "X$pkg" = "X$p"; then
2604	  enable_static=yes
2605	fi
2606      done
2607      IFS="$lt_save_ifs"
2608      ;;
2609    esac
2610else
2611  enable_static=yes
2612fi
2613
2614
2615# Check whether --enable-fast-install was given.
2616if test "${enable_fast_install+set}" = set; then
2617  enableval=$enable_fast_install; p=${PACKAGE-default}
2618    case $enableval in
2619    yes) enable_fast_install=yes ;;
2620    no) enable_fast_install=no ;;
2621    *)
2622      enable_fast_install=no
2623      # Look at the argument we got.  We use all the common list separators.
2624      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2625      for pkg in $enableval; do
2626	IFS="$lt_save_ifs"
2627	if test "X$pkg" = "X$p"; then
2628	  enable_fast_install=yes
2629	fi
2630      done
2631      IFS="$lt_save_ifs"
2632      ;;
2633    esac
2634else
2635  enable_fast_install=yes
2636fi
2637
2638
2639# Make sure we can run config.sub.
2640$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2642$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2643   { (exit 1); exit 1; }; }
2644
2645{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2646$as_echo_n "checking build system type... " >&6; }
2647if test "${ac_cv_build+set}" = set; then
2648  $as_echo_n "(cached) " >&6
2649else
2650  ac_build_alias=$build_alias
2651test "x$ac_build_alias" = x &&
2652  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653test "x$ac_build_alias" = x &&
2654  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2655$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2656   { (exit 1); exit 1; }; }
2657ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2659$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2660   { (exit 1); exit 1; }; }
2661
2662fi
2663{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2664$as_echo "$ac_cv_build" >&6; }
2665case $ac_cv_build in
2666*-*-*) ;;
2667*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2668$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2669   { (exit 1); exit 1; }; };;
2670esac
2671build=$ac_cv_build
2672ac_save_IFS=$IFS; IFS='-'
2673set x $ac_cv_build
2674shift
2675build_cpu=$1
2676build_vendor=$2
2677shift; shift
2678# Remember, the first character of IFS is used to create $*,
2679# except with old shells:
2680build_os=$*
2681IFS=$ac_save_IFS
2682case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683
2684
2685{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2686$as_echo_n "checking host system type... " >&6; }
2687if test "${ac_cv_host+set}" = set; then
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test "x$host_alias" = x; then
2691  ac_cv_host=$ac_cv_build
2692else
2693  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2695$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2696   { (exit 1); exit 1; }; }
2697fi
2698
2699fi
2700{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2701$as_echo "$ac_cv_host" >&6; }
2702case $ac_cv_host in
2703*-*-*) ;;
2704*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2705$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2706   { (exit 1); exit 1; }; };;
2707esac
2708host=$ac_cv_host
2709ac_save_IFS=$IFS; IFS='-'
2710set x $ac_cv_host
2711shift
2712host_cpu=$1
2713host_vendor=$2
2714shift; shift
2715# Remember, the first character of IFS is used to create $*,
2716# except with old shells:
2717host_os=$*
2718IFS=$ac_save_IFS
2719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720
2721
2722DEPDIR="${am__leading_dot}deps"
2723
2724ac_config_commands="$ac_config_commands depfiles"
2725
2726
2727am_make=${MAKE-make}
2728cat > confinc << 'END'
2729am__doit:
2730	@echo done
2731.PHONY: am__doit
2732END
2733# If we don't find an include directive, just comment out the code.
2734{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2735$as_echo_n "checking for style of include used by $am_make... " >&6; }
2736am__include="#"
2737am__quote=
2738_am_result=none
2739# First try GNU make style include.
2740echo "include confinc" > confmf
2741# We grep out `Entering directory' and `Leaving directory'
2742# messages which can occur if `w' ends up in MAKEFLAGS.
2743# In particular we don't look at `^make:' because GNU make might
2744# be invoked under some other name (usually "gmake"), in which
2745# case it prints its new name instead of `make'.
2746if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2747   am__include=include
2748   am__quote=
2749   _am_result=GNU
2750fi
2751# Now try BSD make style include.
2752if test "$am__include" = "#"; then
2753   echo '.include "confinc"' > confmf
2754   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2755      am__include=.include
2756      am__quote="\""
2757      _am_result=BSD
2758   fi
2759fi
2760
2761
2762{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2763$as_echo "$_am_result" >&6; }
2764rm -f confinc confmf
2765
2766# Check whether --enable-dependency-tracking was given.
2767if test "${enable_dependency_tracking+set}" = set; then
2768  enableval=$enable_dependency_tracking;
2769fi
2770
2771if test "x$enable_dependency_tracking" != xno; then
2772  am_depcomp="$ac_aux_dir/depcomp"
2773  AMDEPBACKSLASH='\'
2774fi
2775 if test "x$enable_dependency_tracking" != xno; then
2776  AMDEP_TRUE=
2777  AMDEP_FALSE='#'
2778else
2779  AMDEP_TRUE='#'
2780  AMDEP_FALSE=
2781fi
2782
2783
2784ac_ext=c
2785ac_cpp='$CPP $CPPFLAGS'
2786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789if test -n "$ac_tool_prefix"; then
2790  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_CC+set}" = set; then
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$CC"; then
2798  ac_cv_prog_CC="$CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805  for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2820$as_echo "$CC" >&6; }
2821else
2822  { $as_echo "$as_me:$LINENO: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827fi
2828if test -z "$ac_cv_prog_CC"; then
2829  ac_ct_CC=$CC
2830  # Extract the first word of "gcc", so it can be a program name with args.
2831set dummy gcc; ac_word=$2
2832{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$ac_ct_CC"; then
2838  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845  for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_ac_ct_CC="gcc"
2848    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858if test -n "$ac_ct_CC"; then
2859  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2860$as_echo "$ac_ct_CC" >&6; }
2861else
2862  { $as_echo "$as_me:$LINENO: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866  if test "x$ac_ct_CC" = x; then
2867    CC=""
2868  else
2869    case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875    CC=$ac_ct_CC
2876  fi
2877else
2878  CC="$ac_cv_prog_CC"
2879fi
2880
2881if test -z "$CC"; then
2882          if test -n "$ac_tool_prefix"; then
2883    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}cc; ac_word=$2
2885{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if test "${ac_cv_prog_CC+set}" = set; then
2888  $as_echo_n "(cached) " >&6
2889else
2890  if test -n "$CC"; then
2891  ac_cv_prog_CC="$CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898  for ac_exec_ext in '' $ac_executable_extensions; do
2899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900    ac_cv_prog_CC="${ac_tool_prefix}cc"
2901    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910CC=$ac_cv_prog_CC
2911if test -n "$CC"; then
2912  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2913$as_echo "$CC" >&6; }
2914else
2915  { $as_echo "$as_me:$LINENO: result: no" >&5
2916$as_echo "no" >&6; }
2917fi
2918
2919
2920  fi
2921fi
2922if test -z "$CC"; then
2923  # Extract the first word of "cc", so it can be a program name with args.
2924set dummy cc; ac_word=$2
2925{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if test "${ac_cv_prog_CC+set}" = set; then
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$CC"; then
2931  ac_cv_prog_CC="$CC" # Let the user override the test.
2932else
2933  ac_prog_rejected=no
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  test -z "$as_dir" && as_dir=.
2939  for ac_exec_ext in '' $ac_executable_extensions; do
2940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942       ac_prog_rejected=yes
2943       continue
2944     fi
2945    ac_cv_prog_CC="cc"
2946    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950done
2951IFS=$as_save_IFS
2952
2953if test $ac_prog_rejected = yes; then
2954  # We found a bogon in the path, so make sure we never use it.
2955  set dummy $ac_cv_prog_CC
2956  shift
2957  if test $# != 0; then
2958    # We chose a different compiler from the bogus one.
2959    # However, it has the same basename, so the bogon will be chosen
2960    # first if we set CC to just the basename; use the full file name.
2961    shift
2962    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963  fi
2964fi
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2970$as_echo "$CC" >&6; }
2971else
2972  { $as_echo "$as_me:$LINENO: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977fi
2978if test -z "$CC"; then
2979  if test -n "$ac_tool_prefix"; then
2980  for ac_prog in cl.exe
2981  do
2982    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_CC+set}" = set; then
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997  for ac_exec_ext in '' $ac_executable_extensions; do
2998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014  { $as_echo "$as_me:$LINENO: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019    test -n "$CC" && break
3020  done
3021fi
3022if test -z "$CC"; then
3023  ac_ct_CC=$CC
3024  for ac_prog in cl.exe
3025do
3026  # Extract the first word of "$ac_prog", so it can be a program name with args.
3027set dummy $ac_prog; ac_word=$2
3028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3029$as_echo_n "checking for $ac_word... " >&6; }
3030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3031  $as_echo_n "(cached) " >&6
3032else
3033  if test -n "$ac_ct_CC"; then
3034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041  for ac_exec_ext in '' $ac_executable_extensions; do
3042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043    ac_cv_prog_ac_ct_CC="$ac_prog"
3044    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054if test -n "$ac_ct_CC"; then
3055  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3056$as_echo "$ac_ct_CC" >&6; }
3057else
3058  { $as_echo "$as_me:$LINENO: result: no" >&5
3059$as_echo "no" >&6; }
3060fi
3061
3062
3063  test -n "$ac_ct_CC" && break
3064done
3065
3066  if test "x$ac_ct_CC" = x; then
3067    CC=""
3068  else
3069    case $cross_compiling:$ac_tool_warned in
3070yes:)
3071{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073ac_tool_warned=yes ;;
3074esac
3075    CC=$ac_ct_CC
3076  fi
3077fi
3078
3079fi
3080
3081
3082test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3085See \`config.log' for more details." >&5
3086$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3087See \`config.log' for more details." >&2;}
3088   { (exit 1); exit 1; }; }; }
3089
3090# Provide some information about the compiler.
3091$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3092set X $ac_compile
3093ac_compiler=$2
3094{ (ac_try="$ac_compiler --version >&5"
3095case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100$as_echo "$ac_try_echo") >&5
3101  (eval "$ac_compiler --version >&5") 2>&5
3102  ac_status=$?
3103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); }
3105{ (ac_try="$ac_compiler -v >&5"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111$as_echo "$ac_try_echo") >&5
3112  (eval "$ac_compiler -v >&5") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }
3116{ (ac_try="$ac_compiler -V >&5"
3117case "(($ac_try" in
3118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119  *) ac_try_echo=$ac_try;;
3120esac
3121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122$as_echo "$ac_try_echo") >&5
3123  (eval "$ac_compiler -V >&5") 2>&5
3124  ac_status=$?
3125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }
3127
3128cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143ac_clean_files_save=$ac_clean_files
3144ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145# Try to create an executable without -o first, disregard a.out.
3146# It will help us diagnose broken compilers, and finding out an intuition
3147# of exeext.
3148{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3149$as_echo_n "checking for C compiler default output file name... " >&6; }
3150ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152# The possible output files:
3153ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155ac_rmfiles=
3156for ac_file in $ac_files
3157do
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161  esac
3162done
3163rm -f $ac_rmfiles
3164
3165if { (ac_try="$ac_link_default"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3171$as_echo "$ac_try_echo") >&5
3172  (eval "$ac_link_default") 2>&5
3173  ac_status=$?
3174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; then
3176  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3179# so that the user can short-circuit this test for compilers unknown to
3180# Autoconf.
3181for ac_file in $ac_files ''
3182do
3183  test -f "$ac_file" || continue
3184  case $ac_file in
3185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186	;;
3187    [ab].out )
3188	# We found the default executable, but exeext='' is most
3189	# certainly right.
3190	break;;
3191    *.* )
3192        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193	then :; else
3194	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195	fi
3196	# We set ac_cv_exeext here because the later test for it is not
3197	# safe: cross compilers may not add the suffix if given an `-o'
3198	# argument, so we may need to know it at that point already.
3199	# Even if this section looks crufty: it has the advantage of
3200	# actually working.
3201	break;;
3202    * )
3203	break;;
3204  esac
3205done
3206test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208else
3209  ac_file=''
3210fi
3211
3212{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3213$as_echo "$ac_file" >&6; }
3214if test -z "$ac_file"; then
3215  $as_echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3221See \`config.log' for more details." >&5
3222$as_echo "$as_me: error: C compiler cannot create executables
3223See \`config.log' for more details." >&2;}
3224   { (exit 77); exit 77; }; }; }
3225fi
3226
3227ac_exeext=$ac_cv_exeext
3228
3229# Check that the compiler produces executables we can run.  If not, either
3230# the compiler is broken, or we cross compile.
3231{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3232$as_echo_n "checking whether the C compiler works... " >&6; }
3233# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3234# If not cross compiling, check that we can run a simple program.
3235if test "$cross_compiling" != yes; then
3236  if { ac_try='./$ac_file'
3237  { (case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242$as_echo "$ac_try_echo") >&5
3243  (eval "$ac_try") 2>&5
3244  ac_status=$?
3245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }; }; then
3247    cross_compiling=no
3248  else
3249    if test "$cross_compiling" = maybe; then
3250	cross_compiling=yes
3251    else
3252	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3255If you meant to cross compile, use \`--host'.
3256See \`config.log' for more details." >&5
3257$as_echo "$as_me: error: cannot run C compiled programs.
3258If you meant to cross compile, use \`--host'.
3259See \`config.log' for more details." >&2;}
3260   { (exit 1); exit 1; }; }; }
3261    fi
3262  fi
3263fi
3264{ $as_echo "$as_me:$LINENO: result: yes" >&5
3265$as_echo "yes" >&6; }
3266
3267rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3268ac_clean_files=$ac_clean_files_save
3269# Check that the compiler produces executables we can run.  If not, either
3270# the compiler is broken, or we cross compile.
3271{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3272$as_echo_n "checking whether we are cross compiling... " >&6; }
3273{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3274$as_echo "$cross_compiling" >&6; }
3275
3276{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3277$as_echo_n "checking for suffix of executables... " >&6; }
3278if { (ac_try="$ac_link"
3279case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284$as_echo "$ac_try_echo") >&5
3285  (eval "$ac_link") 2>&5
3286  ac_status=$?
3287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; then
3289  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3290# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3291# work properly (i.e., refer to `conftest.exe'), while it won't with
3292# `rm'.
3293for ac_file in conftest.exe conftest conftest.*; do
3294  test -f "$ac_file" || continue
3295  case $ac_file in
3296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298	  break;;
3299    * ) break;;
3300  esac
3301done
3302else
3303  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3306See \`config.log' for more details." >&5
3307$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3308See \`config.log' for more details." >&2;}
3309   { (exit 1); exit 1; }; }; }
3310fi
3311
3312rm -f conftest$ac_cv_exeext
3313{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3314$as_echo "$ac_cv_exeext" >&6; }
3315
3316rm -f conftest.$ac_ext
3317EXEEXT=$ac_cv_exeext
3318ac_exeext=$EXEEXT
3319{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3320$as_echo_n "checking for suffix of object files... " >&6; }
3321if test "${ac_cv_objext+set}" = set; then
3322  $as_echo_n "(cached) " >&6
3323else
3324  cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h.  */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339rm -f conftest.o conftest.obj
3340if { (ac_try="$ac_compile"
3341case "(($ac_try" in
3342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343  *) ac_try_echo=$ac_try;;
3344esac
3345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346$as_echo "$ac_try_echo") >&5
3347  (eval "$ac_compile") 2>&5
3348  ac_status=$?
3349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; then
3351  for ac_file in conftest.o conftest.obj conftest.*; do
3352  test -f "$ac_file" || continue;
3353  case $ac_file in
3354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356       break;;
3357  esac
3358done
3359else
3360  $as_echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366See \`config.log' for more details." >&5
3367$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368See \`config.log' for more details." >&2;}
3369   { (exit 1); exit 1; }; }; }
3370fi
3371
3372rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373fi
3374{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375$as_echo "$ac_cv_objext" >&6; }
3376OBJEXT=$ac_cv_objext
3377ac_objext=$OBJEXT
3378{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393#ifndef __GNUC__
3394       choke me
3395#endif
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext
3402if { (ac_try="$ac_compile"
3403case "(($ac_try" in
3404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405  *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408$as_echo "$ac_try_echo") >&5
3409  (eval "$ac_compile") 2>conftest.er1
3410  ac_status=$?
3411  grep -v '^ *+' conftest.er1 >conftest.err
3412  rm -f conftest.er1
3413  cat conftest.err >&5
3414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); } && {
3416	 test -z "$ac_c_werror_flag" ||
3417	 test ! -s conftest.err
3418       } && test -s conftest.$ac_objext; then
3419  ac_compiler_gnu=yes
3420else
3421  $as_echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424	ac_compiler_gnu=no
3425fi
3426
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430fi
3431{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3432$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433if test $ac_compiler_gnu = yes; then
3434  GCC=yes
3435else
3436  GCC=
3437fi
3438ac_test_CFLAGS=${CFLAGS+set}
3439ac_save_CFLAGS=$CFLAGS
3440{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441$as_echo_n "checking whether $CC accepts -g... " >&6; }
3442if test "${ac_cv_prog_cc_g+set}" = set; then
3443  $as_echo_n "(cached) " >&6
3444else
3445  ac_save_c_werror_flag=$ac_c_werror_flag
3446   ac_c_werror_flag=yes
3447   ac_cv_prog_cc_g=no
3448   CFLAGS="-g"
3449   cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (ac_try="$ac_compile"
3466case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471$as_echo "$ac_try_echo") >&5
3472  (eval "$ac_compile") 2>conftest.er1
3473  ac_status=$?
3474  grep -v '^ *+' conftest.er1 >conftest.err
3475  rm -f conftest.er1
3476  cat conftest.err >&5
3477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); } && {
3479	 test -z "$ac_c_werror_flag" ||
3480	 test ! -s conftest.err
3481       } && test -s conftest.$ac_objext; then
3482  ac_cv_prog_cc_g=yes
3483else
3484  $as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487	CFLAGS=""
3488      cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (ac_try="$ac_compile"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510$as_echo "$ac_try_echo") >&5
3511  (eval "$ac_compile") 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } && {
3518	 test -z "$ac_c_werror_flag" ||
3519	 test ! -s conftest.err
3520       } && test -s conftest.$ac_objext; then
3521  :
3522else
3523  $as_echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526	ac_c_werror_flag=$ac_save_c_werror_flag
3527	 CFLAGS="-g"
3528	 cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (ac_try="$ac_compile"
3545case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3550$as_echo "$ac_try_echo") >&5
3551  (eval "$ac_compile") 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } && {
3558	 test -z "$ac_c_werror_flag" ||
3559	 test ! -s conftest.err
3560       } && test -s conftest.$ac_objext; then
3561  ac_cv_prog_cc_g=yes
3562else
3563  $as_echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566
3567fi
3568
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570fi
3571
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   ac_c_werror_flag=$ac_save_c_werror_flag
3577fi
3578{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3579$as_echo "$ac_cv_prog_cc_g" >&6; }
3580if test "$ac_test_CFLAGS" = set; then
3581  CFLAGS=$ac_save_CFLAGS
3582elif test $ac_cv_prog_cc_g = yes; then
3583  if test "$GCC" = yes; then
3584    CFLAGS="-g -O2"
3585  else
3586    CFLAGS="-g"
3587  fi
3588else
3589  if test "$GCC" = yes; then
3590    CFLAGS="-O2"
3591  else
3592    CFLAGS=
3593  fi
3594fi
3595{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3596$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3597if test "${ac_cv_prog_cc_c89+set}" = set; then
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_cv_prog_cc_c89=no
3601ac_save_CC=$CC
3602cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608#include <stdarg.h>
3609#include <stdio.h>
3610#include <sys/types.h>
3611#include <sys/stat.h>
3612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3613struct buf { int x; };
3614FILE * (*rcsopen) (struct buf *, struct stat *, int);
3615static char *e (p, i)
3616     char **p;
3617     int i;
3618{
3619  return p[i];
3620}
3621static char *f (char * (*g) (char **, int), char **p, ...)
3622{
3623  char *s;
3624  va_list v;
3625  va_start (v,p);
3626  s = g (p, va_arg (v,int));
3627  va_end (v);
3628  return s;
3629}
3630
3631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3632   function prototypes and stuff, but not '\xHH' hex character constants.
3633   These don't provoke an error unfortunately, instead are silently treated
3634   as 'x'.  The following induces an error, until -std is added to get
3635   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3636   array size at least.  It's necessary to write '\x00'==0 to get something
3637   that's true only with -std.  */
3638int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3639
3640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641   inside strings and character constants.  */
3642#define FOO(x) 'x'
3643int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3644
3645int test (int i, double x);
3646struct s1 {int (*f) (int a);};
3647struct s2 {int (*f) (double a);};
3648int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649int argc;
3650char **argv;
3651int
3652main ()
3653{
3654return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3660	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661do
3662  CC="$ac_save_CC $ac_arg"
3663  rm -f conftest.$ac_objext
3664if { (ac_try="$ac_compile"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670$as_echo "$ac_try_echo") >&5
3671  (eval "$ac_compile") 2>conftest.er1
3672  ac_status=$?
3673  grep -v '^ *+' conftest.er1 >conftest.err
3674  rm -f conftest.er1
3675  cat conftest.err >&5
3676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); } && {
3678	 test -z "$ac_c_werror_flag" ||
3679	 test ! -s conftest.err
3680       } && test -s conftest.$ac_objext; then
3681  ac_cv_prog_cc_c89=$ac_arg
3682else
3683  $as_echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686
3687fi
3688
3689rm -f core conftest.err conftest.$ac_objext
3690  test "x$ac_cv_prog_cc_c89" != "xno" && break
3691done
3692rm -f conftest.$ac_ext
3693CC=$ac_save_CC
3694
3695fi
3696# AC_CACHE_VAL
3697case "x$ac_cv_prog_cc_c89" in
3698  x)
3699    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3700$as_echo "none needed" >&6; } ;;
3701  xno)
3702    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3703$as_echo "unsupported" >&6; } ;;
3704  *)
3705    CC="$CC $ac_cv_prog_cc_c89"
3706    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3707$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708esac
3709
3710
3711ac_ext=c
3712ac_cpp='$CPP $CPPFLAGS'
3713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
3717depcc="$CC"   am_compiler_list=
3718
3719{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3720$as_echo_n "checking dependency style of $depcc... " >&6; }
3721if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3722  $as_echo_n "(cached) " >&6
3723else
3724  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3725  # We make a subdir and do the tests there.  Otherwise we can end up
3726  # making bogus files that we don't know about and never remove.  For
3727  # instance it was reported that on HP-UX the gcc test will end up
3728  # making a dummy file named `D' -- because `-MD' means `put the output
3729  # in D'.
3730  mkdir conftest.dir
3731  # Copy depcomp to subdir because otherwise we won't find it if we're
3732  # using a relative directory.
3733  cp "$am_depcomp" conftest.dir
3734  cd conftest.dir
3735  # We will build objects and dependencies in a subdirectory because
3736  # it helps to detect inapplicable dependency modes.  For instance
3737  # both Tru64's cc and ICC support -MD to output dependencies as a
3738  # side effect of compilation, but ICC will put the dependencies in
3739  # the current directory while Tru64 will put them in the object
3740  # directory.
3741  mkdir sub
3742
3743  am_cv_CC_dependencies_compiler_type=none
3744  if test "$am_compiler_list" = ""; then
3745     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3746  fi
3747  for depmode in $am_compiler_list; do
3748    # Setup a source with many dependencies, because some compilers
3749    # like to wrap large dependency lists on column 80 (with \), and
3750    # we should not choose a depcomp mode which is confused by this.
3751    #
3752    # We need to recreate these files for each test, as the compiler may
3753    # overwrite some of them when testing with obscure command lines.
3754    # This happens at least with the AIX C compiler.
3755    : > sub/conftest.c
3756    for i in 1 2 3 4 5 6; do
3757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3758      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3759      # Solaris 8's {/usr,}/bin/sh.
3760      touch sub/conftst$i.h
3761    done
3762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763
3764    case $depmode in
3765    nosideeffect)
3766      # after this tag, mechanisms are not by side-effect, so they'll
3767      # only be used when explicitly requested
3768      if test "x$enable_dependency_tracking" = xyes; then
3769	continue
3770      else
3771	break
3772      fi
3773      ;;
3774    none) break ;;
3775    esac
3776    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3777    # mode.  It turns out that the SunPro C++ compiler does not properly
3778    # handle `-M -o', and we need to detect this.
3779    if depmode=$depmode \
3780       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3781       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3782       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3783         >/dev/null 2>conftest.err &&
3784       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3785       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3787       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788      # icc doesn't choke on unknown options, it will just issue warnings
3789      # or remarks (even with -Werror).  So we grep stderr for any message
3790      # that says an option was ignored or not supported.
3791      # When given -MP, icc 7.0 and 7.1 complain thusly:
3792      #   icc: Command line warning: ignoring option '-M'; no argument required
3793      # The diagnosis changed in icc 8.0:
3794      #   icc: Command line remark: option '-MP' not supported
3795      if (grep 'ignoring option' conftest.err ||
3796          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797        am_cv_CC_dependencies_compiler_type=$depmode
3798        break
3799      fi
3800    fi
3801  done
3802
3803  cd ..
3804  rm -rf conftest.dir
3805else
3806  am_cv_CC_dependencies_compiler_type=none
3807fi
3808
3809fi
3810{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3811$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3812CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3813
3814 if
3815  test "x$enable_dependency_tracking" != xno \
3816  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817  am__fastdepCC_TRUE=
3818  am__fastdepCC_FALSE='#'
3819else
3820  am__fastdepCC_TRUE='#'
3821  am__fastdepCC_FALSE=
3822fi
3823
3824
3825{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3827if test "${lt_cv_path_SED+set}" = set; then
3828  $as_echo_n "(cached) " >&6
3829else
3830  # Loop through the user's path and test for sed and gsed.
3831# Then use that list of sed's as ones to test for truncation.
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835  IFS=$as_save_IFS
3836  test -z "$as_dir" && as_dir=.
3837  for lt_ac_prog in sed gsed; do
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3840        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3841      fi
3842    done
3843  done
3844done
3845IFS=$as_save_IFS
3846lt_ac_max=0
3847lt_ac_count=0
3848# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849# along with /bin/sed that truncates output.
3850for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851  test ! -f $lt_ac_sed && continue
3852  cat /dev/null > conftest.in
3853  lt_ac_count=0
3854  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855  # Check for GNU sed and select it if it is found.
3856  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857    lt_cv_path_SED=$lt_ac_sed
3858    break
3859  fi
3860  while true; do
3861    cat conftest.in conftest.in >conftest.tmp
3862    mv conftest.tmp conftest.in
3863    cp conftest.in conftest.nl
3864    echo >>conftest.nl
3865    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866    cmp -s conftest.out conftest.nl || break
3867    # 10000 chars as input seems more than enough
3868    test $lt_ac_count -gt 10 && break
3869    lt_ac_count=`expr $lt_ac_count + 1`
3870    if test $lt_ac_count -gt $lt_ac_max; then
3871      lt_ac_max=$lt_ac_count
3872      lt_cv_path_SED=$lt_ac_sed
3873    fi
3874  done
3875done
3876
3877fi
3878
3879SED=$lt_cv_path_SED
3880
3881{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3882$as_echo "$SED" >&6; }
3883
3884{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3885$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886if test "${ac_cv_path_GREP+set}" = set; then
3887  $as_echo_n "(cached) " >&6
3888else
3889  if test -z "$GREP"; then
3890  ac_path_GREP_found=false
3891  # Loop through the user's path and test for each of PROGNAME-LIST
3892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894do
3895  IFS=$as_save_IFS
3896  test -z "$as_dir" && as_dir=.
3897  for ac_prog in grep ggrep; do
3898    for ac_exec_ext in '' $ac_executable_extensions; do
3899      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3901# Check for GNU ac_path_GREP and select it if it is found.
3902  # Check for GNU $ac_path_GREP
3903case `"$ac_path_GREP" --version 2>&1` in
3904*GNU*)
3905  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906*)
3907  ac_count=0
3908  $as_echo_n 0123456789 >"conftest.in"
3909  while :
3910  do
3911    cat "conftest.in" "conftest.in" >"conftest.tmp"
3912    mv "conftest.tmp" "conftest.in"
3913    cp "conftest.in" "conftest.nl"
3914    $as_echo 'GREP' >> "conftest.nl"
3915    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917    ac_count=`expr $ac_count + 1`
3918    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919      # Best one so far, save it but keep looking for a better one
3920      ac_cv_path_GREP="$ac_path_GREP"
3921      ac_path_GREP_max=$ac_count
3922    fi
3923    # 10*(2^10) chars as input seems more than enough
3924    test $ac_count -gt 10 && break
3925  done
3926  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927esac
3928
3929      $ac_path_GREP_found && break 3
3930    done
3931  done
3932done
3933IFS=$as_save_IFS
3934  if test -z "$ac_cv_path_GREP"; then
3935    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937   { (exit 1); exit 1; }; }
3938  fi
3939else
3940  ac_cv_path_GREP=$GREP
3941fi
3942
3943fi
3944{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3945$as_echo "$ac_cv_path_GREP" >&6; }
3946 GREP="$ac_cv_path_GREP"
3947
3948
3949{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3950$as_echo_n "checking for egrep... " >&6; }
3951if test "${ac_cv_path_EGREP+set}" = set; then
3952  $as_echo_n "(cached) " >&6
3953else
3954  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3955   then ac_cv_path_EGREP="$GREP -E"
3956   else
3957     if test -z "$EGREP"; then
3958  ac_path_EGREP_found=false
3959  # Loop through the user's path and test for each of PROGNAME-LIST
3960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963  IFS=$as_save_IFS
3964  test -z "$as_dir" && as_dir=.
3965  for ac_prog in egrep; do
3966    for ac_exec_ext in '' $ac_executable_extensions; do
3967      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969# Check for GNU ac_path_EGREP and select it if it is found.
3970  # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975  ac_count=0
3976  $as_echo_n 0123456789 >"conftest.in"
3977  while :
3978  do
3979    cat "conftest.in" "conftest.in" >"conftest.tmp"
3980    mv "conftest.tmp" "conftest.in"
3981    cp "conftest.in" "conftest.nl"
3982    $as_echo 'EGREP' >> "conftest.nl"
3983    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985    ac_count=`expr $ac_count + 1`
3986    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987      # Best one so far, save it but keep looking for a better one
3988      ac_cv_path_EGREP="$ac_path_EGREP"
3989      ac_path_EGREP_max=$ac_count
3990    fi
3991    # 10*(2^10) chars as input seems more than enough
3992    test $ac_count -gt 10 && break
3993  done
3994  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997      $ac_path_EGREP_found && break 3
3998    done
3999  done
4000done
4001IFS=$as_save_IFS
4002  if test -z "$ac_cv_path_EGREP"; then
4003    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4004$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4005   { (exit 1); exit 1; }; }
4006  fi
4007else
4008  ac_cv_path_EGREP=$EGREP
4009fi
4010
4011   fi
4012fi
4013{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4014$as_echo "$ac_cv_path_EGREP" >&6; }
4015 EGREP="$ac_cv_path_EGREP"
4016
4017
4018
4019# Check whether --with-gnu-ld was given.
4020if test "${with_gnu_ld+set}" = set; then
4021  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4022else
4023  with_gnu_ld=no
4024fi
4025
4026ac_prog=ld
4027if test "$GCC" = yes; then
4028  # Check if gcc -print-prog-name=ld gives a path.
4029  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4030$as_echo_n "checking for ld used by $CC... " >&6; }
4031  case $host in
4032  *-*-mingw*)
4033    # gcc leaves a trailing carriage return which upsets mingw
4034    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4035  *)
4036    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4037  esac
4038  case $ac_prog in
4039    # Accept absolute paths.
4040    [\\/]* | ?:[\\/]*)
4041      re_direlt='/[^/][^/]*/\.\./'
4042      # Canonicalize the pathname of ld
4043      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4044      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4045	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4046      done
4047      test -z "$LD" && LD="$ac_prog"
4048      ;;
4049  "")
4050    # If it fails, then pretend we aren't using GCC.
4051    ac_prog=ld
4052    ;;
4053  *)
4054    # If it is relative, then search for the first ld in PATH.
4055    with_gnu_ld=unknown
4056    ;;
4057  esac
4058elif test "$with_gnu_ld" = yes; then
4059  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4060$as_echo_n "checking for GNU ld... " >&6; }
4061else
4062  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4063$as_echo_n "checking for non-GNU ld... " >&6; }
4064fi
4065if test "${lt_cv_path_LD+set}" = set; then
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -z "$LD"; then
4069  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4070  for ac_dir in $PATH; do
4071    IFS="$lt_save_ifs"
4072    test -z "$ac_dir" && ac_dir=.
4073    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074      lt_cv_path_LD="$ac_dir/$ac_prog"
4075      # Check to see if the program is GNU ld.  I'd rather use --version,
4076      # but apparently some variants of GNU ld only accept -v.
4077      # Break only if it was the GNU/non-GNU ld that we prefer.
4078      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4079      *GNU* | *'with BFD'*)
4080	test "$with_gnu_ld" != no && break
4081	;;
4082      *)
4083	test "$with_gnu_ld" != yes && break
4084	;;
4085      esac
4086    fi
4087  done
4088  IFS="$lt_save_ifs"
4089else
4090  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4091fi
4092fi
4093
4094LD="$lt_cv_path_LD"
4095if test -n "$LD"; then
4096  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4097$as_echo "$LD" >&6; }
4098else
4099  { $as_echo "$as_me:$LINENO: result: no" >&5
4100$as_echo "no" >&6; }
4101fi
4102test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4103$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4104   { (exit 1); exit 1; }; }
4105{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4107if test "${lt_cv_prog_gnu_ld+set}" = set; then
4108  $as_echo_n "(cached) " >&6
4109else
4110  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4111case `$LD -v 2>&1 </dev/null` in
4112*GNU* | *'with BFD'*)
4113  lt_cv_prog_gnu_ld=yes
4114  ;;
4115*)
4116  lt_cv_prog_gnu_ld=no
4117  ;;
4118esac
4119fi
4120{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4121$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4122with_gnu_ld=$lt_cv_prog_gnu_ld
4123
4124
4125{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4126$as_echo_n "checking for $LD option to reload object files... " >&6; }
4127if test "${lt_cv_ld_reload_flag+set}" = set; then
4128  $as_echo_n "(cached) " >&6
4129else
4130  lt_cv_ld_reload_flag='-r'
4131fi
4132{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4133$as_echo "$lt_cv_ld_reload_flag" >&6; }
4134reload_flag=$lt_cv_ld_reload_flag
4135case $reload_flag in
4136"" | " "*) ;;
4137*) reload_flag=" $reload_flag" ;;
4138esac
4139reload_cmds='$LD$reload_flag -o $output$reload_objs'
4140case $host_os in
4141  darwin*)
4142    if test "$GCC" = yes; then
4143      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4144    else
4145      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4146    fi
4147    ;;
4148esac
4149
4150{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4151$as_echo_n "checking for BSD-compatible nm... " >&6; }
4152if test "${lt_cv_path_NM+set}" = set; then
4153  $as_echo_n "(cached) " >&6
4154else
4155  if test -n "$NM"; then
4156  # Let the user override the test.
4157  lt_cv_path_NM="$NM"
4158else
4159  lt_nm_to_check="${ac_tool_prefix}nm"
4160  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4161    lt_nm_to_check="$lt_nm_to_check nm"
4162  fi
4163  for lt_tmp_nm in $lt_nm_to_check; do
4164    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4165    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4166      IFS="$lt_save_ifs"
4167      test -z "$ac_dir" && ac_dir=.
4168      tmp_nm="$ac_dir/$lt_tmp_nm"
4169      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4170	# Check to see if the nm accepts a BSD-compat flag.
4171	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172	#   nm: unknown option "B" ignored
4173	# Tru64's nm complains that /dev/null is an invalid object file
4174	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4175	*/dev/null* | *'Invalid file or object type'*)
4176	  lt_cv_path_NM="$tmp_nm -B"
4177	  break
4178	  ;;
4179	*)
4180	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4181	  */dev/null*)
4182	    lt_cv_path_NM="$tmp_nm -p"
4183	    break
4184	    ;;
4185	  *)
4186	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4187	    continue # so that we can try to find one that supports BSD flags
4188	    ;;
4189	  esac
4190	  ;;
4191	esac
4192      fi
4193    done
4194    IFS="$lt_save_ifs"
4195  done
4196  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4197fi
4198fi
4199{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4200$as_echo "$lt_cv_path_NM" >&6; }
4201NM="$lt_cv_path_NM"
4202
4203{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4204$as_echo_n "checking whether ln -s works... " >&6; }
4205LN_S=$as_ln_s
4206if test "$LN_S" = "ln -s"; then
4207  { $as_echo "$as_me:$LINENO: result: yes" >&5
4208$as_echo "yes" >&6; }
4209else
4210  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4211$as_echo "no, using $LN_S" >&6; }
4212fi
4213
4214{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4215$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4216if test "${lt_cv_deplibs_check_method+set}" = set; then
4217  $as_echo_n "(cached) " >&6
4218else
4219  lt_cv_file_magic_cmd='$MAGIC_CMD'
4220lt_cv_file_magic_test_file=
4221lt_cv_deplibs_check_method='unknown'
4222# Need to set the preceding variable on all platforms that support
4223# interlibrary dependencies.
4224# 'none' -- dependencies not supported.
4225# `unknown' -- same as none, but documents that we really don't know.
4226# 'pass_all' -- all dependencies passed with no checks.
4227# 'test_compile' -- check by making test program.
4228# 'file_magic [[regex]]' -- check by looking for files in library path
4229# which responds to the $file_magic_cmd with a given extended regex.
4230# If you have `file' or equivalent on your system and you're not sure
4231# whether `pass_all' will *always* work, you probably want this one.
4232
4233case $host_os in
4234aix[4-9]*)
4235  lt_cv_deplibs_check_method=pass_all
4236  ;;
4237
4238beos*)
4239  lt_cv_deplibs_check_method=pass_all
4240  ;;
4241
4242bsdi[45]*)
4243  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4244  lt_cv_file_magic_cmd='/usr/bin/file -L'
4245  lt_cv_file_magic_test_file=/shlib/libc.so
4246  ;;
4247
4248cygwin*)
4249  # func_win32_libid is a shell function defined in ltmain.sh
4250  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4251  lt_cv_file_magic_cmd='func_win32_libid'
4252  ;;
4253
4254mingw* | pw32*)
4255  # Base MSYS/MinGW do not provide the 'file' command needed by
4256  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4257  # unless we find 'file', for example because we are cross-compiling.
4258  if ( file / ) >/dev/null 2>&1; then
4259    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4260    lt_cv_file_magic_cmd='func_win32_libid'
4261  else
4262    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4263    lt_cv_file_magic_cmd='$OBJDUMP -f'
4264  fi
4265  ;;
4266
4267darwin* | rhapsody*)
4268  lt_cv_deplibs_check_method=pass_all
4269  ;;
4270
4271freebsd* | dragonfly*)
4272  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4273    case $host_cpu in
4274    i*86 )
4275      # Not sure whether the presence of OpenBSD here was a mistake.
4276      # Let's accept both of them until this is cleared up.
4277      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4278      lt_cv_file_magic_cmd=/usr/bin/file
4279      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4280      ;;
4281    esac
4282  else
4283    lt_cv_deplibs_check_method=pass_all
4284  fi
4285  ;;
4286
4287gnu*)
4288  lt_cv_deplibs_check_method=pass_all
4289  ;;
4290
4291hpux10.20* | hpux11*)
4292  lt_cv_file_magic_cmd=/usr/bin/file
4293  case $host_cpu in
4294  ia64*)
4295    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4296    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4297    ;;
4298  hppa*64*)
4299    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]'
4300    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4301    ;;
4302  *)
4303    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4304    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4305    ;;
4306  esac
4307  ;;
4308
4309interix[3-9]*)
4310  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4311  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4312  ;;
4313
4314irix5* | irix6* | nonstopux*)
4315  case $LD in
4316  *-32|*"-32 ") libmagic=32-bit;;
4317  *-n32|*"-n32 ") libmagic=N32;;
4318  *-64|*"-64 ") libmagic=64-bit;;
4319  *) libmagic=never-match;;
4320  esac
4321  lt_cv_deplibs_check_method=pass_all
4322  ;;
4323
4324# This must be Linux ELF.
4325linux* | k*bsd*-gnu)
4326  lt_cv_deplibs_check_method=pass_all
4327  ;;
4328
4329netbsd*)
4330  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4332  else
4333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4334  fi
4335  ;;
4336
4337newos6*)
4338  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4339  lt_cv_file_magic_cmd=/usr/bin/file
4340  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4341  ;;
4342
4343nto-qnx*)
4344  lt_cv_deplibs_check_method=unknown
4345  ;;
4346
4347openbsd*)
4348  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4350  else
4351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352  fi
4353  ;;
4354
4355osf3* | osf4* | osf5*)
4356  lt_cv_deplibs_check_method=pass_all
4357  ;;
4358
4359rdos*)
4360  lt_cv_deplibs_check_method=pass_all
4361  ;;
4362
4363solaris*)
4364  lt_cv_deplibs_check_method=pass_all
4365  ;;
4366
4367sysv4 | sysv4.3*)
4368  case $host_vendor in
4369  motorola)
4370    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]'
4371    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4372    ;;
4373  ncr)
4374    lt_cv_deplibs_check_method=pass_all
4375    ;;
4376  sequent)
4377    lt_cv_file_magic_cmd='/bin/file'
4378    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4379    ;;
4380  sni)
4381    lt_cv_file_magic_cmd='/bin/file'
4382    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4383    lt_cv_file_magic_test_file=/lib/libc.so
4384    ;;
4385  siemens)
4386    lt_cv_deplibs_check_method=pass_all
4387    ;;
4388  pc)
4389    lt_cv_deplibs_check_method=pass_all
4390    ;;
4391  esac
4392  ;;
4393
4394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4395  lt_cv_deplibs_check_method=pass_all
4396  ;;
4397esac
4398
4399fi
4400{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4401$as_echo "$lt_cv_deplibs_check_method" >&6; }
4402file_magic_cmd=$lt_cv_file_magic_cmd
4403deplibs_check_method=$lt_cv_deplibs_check_method
4404test -z "$deplibs_check_method" && deplibs_check_method=unknown
4405
4406
4407
4408
4409# If no C compiler was specified, use CC.
4410LTCC=${LTCC-"$CC"}
4411
4412# If no C compiler flags were specified, use CFLAGS.
4413LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4414
4415# Allow CC to be a program name with arguments.
4416compiler=$CC
4417
4418
4419# Check whether --enable-libtool-lock was given.
4420if test "${enable_libtool_lock+set}" = set; then
4421  enableval=$enable_libtool_lock;
4422fi
4423
4424test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4425
4426# Some flags need to be propagated to the compiler or linker for good
4427# libtool support.
4428case $host in
4429ia64-*-hpux*)
4430  # Find out which ABI we are using.
4431  echo 'int i;' > conftest.$ac_ext
4432  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433  (eval $ac_compile) 2>&5
4434  ac_status=$?
4435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; then
4437    case `/usr/bin/file conftest.$ac_objext` in
4438    *ELF-32*)
4439      HPUX_IA64_MODE="32"
4440      ;;
4441    *ELF-64*)
4442      HPUX_IA64_MODE="64"
4443      ;;
4444    esac
4445  fi
4446  rm -rf conftest*
4447  ;;
4448*-*-irix6*)
4449  # Find out which ABI we are using.
4450  echo '#line 4450 "configure"' > conftest.$ac_ext
4451  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452  (eval $ac_compile) 2>&5
4453  ac_status=$?
4454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; then
4456   if test "$lt_cv_prog_gnu_ld" = yes; then
4457    case `/usr/bin/file conftest.$ac_objext` in
4458    *32-bit*)
4459      LD="${LD-ld} -melf32bsmip"
4460      ;;
4461    *N32*)
4462      LD="${LD-ld} -melf32bmipn32"
4463      ;;
4464    *64-bit*)
4465      LD="${LD-ld} -melf64bmip"
4466      ;;
4467    esac
4468   else
4469    case `/usr/bin/file conftest.$ac_objext` in
4470    *32-bit*)
4471      LD="${LD-ld} -32"
4472      ;;
4473    *N32*)
4474      LD="${LD-ld} -n32"
4475      ;;
4476    *64-bit*)
4477      LD="${LD-ld} -64"
4478      ;;
4479    esac
4480   fi
4481  fi
4482  rm -rf conftest*
4483  ;;
4484
4485x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4486s390*-*linux*|sparc*-*linux*)
4487  # Find out which ABI we are using.
4488  echo 'int i;' > conftest.$ac_ext
4489  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490  (eval $ac_compile) 2>&5
4491  ac_status=$?
4492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; then
4494    case `/usr/bin/file conftest.o` in
4495    *32-bit*)
4496      case $host in
4497        x86_64-*kfreebsd*-gnu)
4498          LD="${LD-ld} -m elf_i386_fbsd"
4499          ;;
4500        x86_64-*linux*)
4501          LD="${LD-ld} -m elf_i386"
4502          ;;
4503        ppc64-*linux*|powerpc64-*linux*)
4504          LD="${LD-ld} -m elf32ppclinux"
4505          ;;
4506        s390x-*linux*)
4507          LD="${LD-ld} -m elf_s390"
4508          ;;
4509        sparc64-*linux*)
4510          LD="${LD-ld} -m elf32_sparc"
4511          ;;
4512      esac
4513      ;;
4514    *64-bit*)
4515      case $host in
4516        x86_64-*kfreebsd*-gnu)
4517          LD="${LD-ld} -m elf_x86_64_fbsd"
4518          ;;
4519        x86_64-*linux*)
4520          LD="${LD-ld} -m elf_x86_64"
4521          ;;
4522        ppc*-*linux*|powerpc*-*linux*)
4523          LD="${LD-ld} -m elf64ppc"
4524          ;;
4525        s390*-*linux*)
4526          LD="${LD-ld} -m elf64_s390"
4527          ;;
4528        sparc*-*linux*)
4529          LD="${LD-ld} -m elf64_sparc"
4530          ;;
4531      esac
4532      ;;
4533    esac
4534  fi
4535  rm -rf conftest*
4536  ;;
4537
4538*-*-sco3.2v5*)
4539  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4540  SAVE_CFLAGS="$CFLAGS"
4541  CFLAGS="$CFLAGS -belf"
4542  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4543$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4544if test "${lt_cv_cc_needs_belf+set}" = set; then
4545  $as_echo_n "(cached) " >&6
4546else
4547  ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553     cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h.  */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h.  */
4559
4560int
4561main ()
4562{
4563
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568rm -f conftest.$ac_objext conftest$ac_exeext
4569if { (ac_try="$ac_link"
4570case "(($ac_try" in
4571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572  *) ac_try_echo=$ac_try;;
4573esac
4574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575$as_echo "$ac_try_echo") >&5
4576  (eval "$ac_link") 2>conftest.er1
4577  ac_status=$?
4578  grep -v '^ *+' conftest.er1 >conftest.err
4579  rm -f conftest.er1
4580  cat conftest.err >&5
4581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } && {
4583	 test -z "$ac_c_werror_flag" ||
4584	 test ! -s conftest.err
4585       } && test -s conftest$ac_exeext && {
4586	 test "$cross_compiling" = yes ||
4587	 $as_test_x conftest$ac_exeext
4588       }; then
4589  lt_cv_cc_needs_belf=yes
4590else
4591  $as_echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594	lt_cv_cc_needs_belf=no
4595fi
4596
4597rm -rf conftest.dSYM
4598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4599      conftest$ac_exeext conftest.$ac_ext
4600     ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606fi
4607{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4608$as_echo "$lt_cv_cc_needs_belf" >&6; }
4609  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4610    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4611    CFLAGS="$SAVE_CFLAGS"
4612  fi
4613  ;;
4614sparc*-*solaris*)
4615  # Find out which ABI we are using.
4616  echo 'int i;' > conftest.$ac_ext
4617  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618  (eval $ac_compile) 2>&5
4619  ac_status=$?
4620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; then
4622    case `/usr/bin/file conftest.o` in
4623    *64-bit*)
4624      case $lt_cv_prog_gnu_ld in
4625      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4626      *)
4627        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4628	  LD="${LD-ld} -64"
4629	fi
4630	;;
4631      esac
4632      ;;
4633    esac
4634  fi
4635  rm -rf conftest*
4636  ;;
4637
4638
4639esac
4640
4641need_locks="$enable_libtool_lock"
4642
4643
4644ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4650$as_echo_n "checking how to run the C preprocessor... " >&6; }
4651# On Suns, sometimes $CPP names a directory.
4652if test -n "$CPP" && test -d "$CPP"; then
4653  CPP=
4654fi
4655if test -z "$CPP"; then
4656  if test "${ac_cv_prog_CPP+set}" = set; then
4657  $as_echo_n "(cached) " >&6
4658else
4659      # Double quotes because CPP needs to be expanded
4660    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4661    do
4662      ac_preproc_ok=false
4663for ac_c_preproc_warn_flag in '' yes
4664do
4665  # Use a header file that comes with gcc, so configuring glibc
4666  # with a fresh cross-compiler works.
4667  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668  # <limits.h> exists even on freestanding compilers.
4669  # On the NeXT, cc -E runs the code through the compiler's parser,
4670  # not just through cpp. "Syntax error" is here to catch this case.
4671  cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h.  */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h.  */
4677#ifdef __STDC__
4678# include <limits.h>
4679#else
4680# include <assert.h>
4681#endif
4682		     Syntax error
4683_ACEOF
4684if { (ac_try="$ac_cpp conftest.$ac_ext"
4685case "(($ac_try" in
4686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687  *) ac_try_echo=$ac_try;;
4688esac
4689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690$as_echo "$ac_try_echo") >&5
4691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692  ac_status=$?
4693  grep -v '^ *+' conftest.er1 >conftest.err
4694  rm -f conftest.er1
4695  cat conftest.err >&5
4696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); } >/dev/null && {
4698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4699	 test ! -s conftest.err
4700       }; then
4701  :
4702else
4703  $as_echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706  # Broken: fails on valid input.
4707continue
4708fi
4709
4710rm -f conftest.err conftest.$ac_ext
4711
4712  # OK, works on sane cases.  Now check whether nonexistent headers
4713  # can be detected and how.
4714  cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h.  */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h.  */
4720#include <ac_nonexistent.h>
4721_ACEOF
4722if { (ac_try="$ac_cpp conftest.$ac_ext"
4723case "(($ac_try" in
4724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725  *) ac_try_echo=$ac_try;;
4726esac
4727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4728$as_echo "$ac_try_echo") >&5
4729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730  ac_status=$?
4731  grep -v '^ *+' conftest.er1 >conftest.err
4732  rm -f conftest.er1
4733  cat conftest.err >&5
4734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); } >/dev/null && {
4736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737	 test ! -s conftest.err
4738       }; then
4739  # Broken: success on invalid input.
4740continue
4741else
4742  $as_echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745  # Passes both tests.
4746ac_preproc_ok=:
4747break
4748fi
4749
4750rm -f conftest.err conftest.$ac_ext
4751
4752done
4753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754rm -f conftest.err conftest.$ac_ext
4755if $ac_preproc_ok; then
4756  break
4757fi
4758
4759    done
4760    ac_cv_prog_CPP=$CPP
4761
4762fi
4763  CPP=$ac_cv_prog_CPP
4764else
4765  ac_cv_prog_CPP=$CPP
4766fi
4767{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4768$as_echo "$CPP" >&6; }
4769ac_preproc_ok=false
4770for ac_c_preproc_warn_flag in '' yes
4771do
4772  # Use a header file that comes with gcc, so configuring glibc
4773  # with a fresh cross-compiler works.
4774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775  # <limits.h> exists even on freestanding compilers.
4776  # On the NeXT, cc -E runs the code through the compiler's parser,
4777  # not just through cpp. "Syntax error" is here to catch this case.
4778  cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784#ifdef __STDC__
4785# include <limits.h>
4786#else
4787# include <assert.h>
4788#endif
4789		     Syntax error
4790_ACEOF
4791if { (ac_try="$ac_cpp conftest.$ac_ext"
4792case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797$as_echo "$ac_try_echo") >&5
4798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799  ac_status=$?
4800  grep -v '^ *+' conftest.er1 >conftest.err
4801  rm -f conftest.er1
4802  cat conftest.err >&5
4803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } >/dev/null && {
4805	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806	 test ! -s conftest.err
4807       }; then
4808  :
4809else
4810  $as_echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813  # Broken: fails on valid input.
4814continue
4815fi
4816
4817rm -f conftest.err conftest.$ac_ext
4818
4819  # OK, works on sane cases.  Now check whether nonexistent headers
4820  # can be detected and how.
4821  cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h.  */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h.  */
4827#include <ac_nonexistent.h>
4828_ACEOF
4829if { (ac_try="$ac_cpp conftest.$ac_ext"
4830case "(($ac_try" in
4831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832  *) ac_try_echo=$ac_try;;
4833esac
4834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835$as_echo "$ac_try_echo") >&5
4836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837  ac_status=$?
4838  grep -v '^ *+' conftest.er1 >conftest.err
4839  rm -f conftest.er1
4840  cat conftest.err >&5
4841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); } >/dev/null && {
4843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844	 test ! -s conftest.err
4845       }; then
4846  # Broken: success on invalid input.
4847continue
4848else
4849  $as_echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852  # Passes both tests.
4853ac_preproc_ok=:
4854break
4855fi
4856
4857rm -f conftest.err conftest.$ac_ext
4858
4859done
4860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861rm -f conftest.err conftest.$ac_ext
4862if $ac_preproc_ok; then
4863  :
4864else
4865  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4868See \`config.log' for more details." >&5
4869$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4870See \`config.log' for more details." >&2;}
4871   { (exit 1); exit 1; }; }; }
4872fi
4873
4874ac_ext=c
4875ac_cpp='$CPP $CPPFLAGS'
4876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880
4881{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4882$as_echo_n "checking for ANSI C header files... " >&6; }
4883if test "${ac_cv_header_stdc+set}" = set; then
4884  $as_echo_n "(cached) " >&6
4885else
4886  cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h.  */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h.  */
4892#include <stdlib.h>
4893#include <stdarg.h>
4894#include <string.h>
4895#include <float.h>
4896
4897int
4898main ()
4899{
4900
4901  ;
4902  return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext
4906if { (ac_try="$ac_compile"
4907case "(($ac_try" in
4908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909  *) ac_try_echo=$ac_try;;
4910esac
4911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912$as_echo "$ac_try_echo") >&5
4913  (eval "$ac_compile") 2>conftest.er1
4914  ac_status=$?
4915  grep -v '^ *+' conftest.er1 >conftest.err
4916  rm -f conftest.er1
4917  cat conftest.err >&5
4918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); } && {
4920	 test -z "$ac_c_werror_flag" ||
4921	 test ! -s conftest.err
4922       } && test -s conftest.$ac_objext; then
4923  ac_cv_header_stdc=yes
4924else
4925  $as_echo "$as_me: failed program was:" >&5
4926sed 's/^/| /' conftest.$ac_ext >&5
4927
4928	ac_cv_header_stdc=no
4929fi
4930
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932
4933if test $ac_cv_header_stdc = yes; then
4934  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4935  cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h.  */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h.  */
4941#include <string.h>
4942
4943_ACEOF
4944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945  $EGREP "memchr" >/dev/null 2>&1; then
4946  :
4947else
4948  ac_cv_header_stdc=no
4949fi
4950rm -f conftest*
4951
4952fi
4953
4954if test $ac_cv_header_stdc = yes; then
4955  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956  cat >conftest.$ac_ext <<_ACEOF
4957/* confdefs.h.  */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h.  */
4962#include <stdlib.h>
4963
4964_ACEOF
4965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966  $EGREP "free" >/dev/null 2>&1; then
4967  :
4968else
4969  ac_cv_header_stdc=no
4970fi
4971rm -f conftest*
4972
4973fi
4974
4975if test $ac_cv_header_stdc = yes; then
4976  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4977  if test "$cross_compiling" = yes; then
4978  :
4979else
4980  cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h.  */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h.  */
4986#include <ctype.h>
4987#include <stdlib.h>
4988#if ((' ' & 0x0FF) == 0x020)
4989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4991#else
4992# define ISLOWER(c) \
4993		   (('a' <= (c) && (c) <= 'i') \
4994		     || ('j' <= (c) && (c) <= 'r') \
4995		     || ('s' <= (c) && (c) <= 'z'))
4996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4997#endif
4998
4999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5000int
5001main ()
5002{
5003  int i;
5004  for (i = 0; i < 256; i++)
5005    if (XOR (islower (i), ISLOWER (i))
5006	|| toupper (i) != TOUPPER (i))
5007      return 2;
5008  return 0;
5009}
5010_ACEOF
5011rm -f conftest$ac_exeext
5012if { (ac_try="$ac_link"
5013case "(($ac_try" in
5014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015  *) ac_try_echo=$ac_try;;
5016esac
5017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5018$as_echo "$ac_try_echo") >&5
5019  (eval "$ac_link") 2>&5
5020  ac_status=$?
5021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023  { (case "(($ac_try" in
5024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025  *) ac_try_echo=$ac_try;;
5026esac
5027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5028$as_echo "$ac_try_echo") >&5
5029  (eval "$ac_try") 2>&5
5030  ac_status=$?
5031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; }; then
5033  :
5034else
5035  $as_echo "$as_me: program exited with status $ac_status" >&5
5036$as_echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039( exit $ac_status )
5040ac_cv_header_stdc=no
5041fi
5042rm -rf conftest.dSYM
5043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044fi
5045
5046
5047fi
5048fi
5049{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5050$as_echo "$ac_cv_header_stdc" >&6; }
5051if test $ac_cv_header_stdc = yes; then
5052
5053cat >>confdefs.h <<\_ACEOF
5054#define STDC_HEADERS 1
5055_ACEOF
5056
5057fi
5058
5059# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070		  inttypes.h stdint.h unistd.h
5071do
5072as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5074$as_echo_n "checking for $ac_header... " >&6; }
5075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5076  $as_echo_n "(cached) " >&6
5077else
5078  cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h.  */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h.  */
5084$ac_includes_default
5085
5086#include <$ac_header>
5087_ACEOF
5088rm -f conftest.$ac_objext
5089if { (ac_try="$ac_compile"
5090case "(($ac_try" in
5091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092  *) ac_try_echo=$ac_try;;
5093esac
5094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095$as_echo "$ac_try_echo") >&5
5096  (eval "$ac_compile") 2>conftest.er1
5097  ac_status=$?
5098  grep -v '^ *+' conftest.er1 >conftest.err
5099  rm -f conftest.er1
5100  cat conftest.err >&5
5101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); } && {
5103	 test -z "$ac_c_werror_flag" ||
5104	 test ! -s conftest.err
5105       } && test -s conftest.$ac_objext; then
5106  eval "$as_ac_Header=yes"
5107else
5108  $as_echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111	eval "$as_ac_Header=no"
5112fi
5113
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115fi
5116ac_res=`eval 'as_val=${'$as_ac_Header'}
5117		 $as_echo "$as_val"'`
5118	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5119$as_echo "$ac_res" >&6; }
5120as_val=`eval 'as_val=${'$as_ac_Header'}
5121		 $as_echo "$as_val"'`
5122   if test "x$as_val" = x""yes; then
5123  cat >>confdefs.h <<_ACEOF
5124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125_ACEOF
5126
5127fi
5128
5129done
5130
5131
5132
5133for ac_header in dlfcn.h
5134do
5135as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5138$as_echo_n "checking for $ac_header... " >&6; }
5139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5140  $as_echo_n "(cached) " >&6
5141fi
5142ac_res=`eval 'as_val=${'$as_ac_Header'}
5143		 $as_echo "$as_val"'`
5144	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145$as_echo "$ac_res" >&6; }
5146else
5147  # Is the header compilable?
5148{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5149$as_echo_n "checking $ac_header usability... " >&6; }
5150cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156$ac_includes_default
5157#include <$ac_header>
5158_ACEOF
5159rm -f conftest.$ac_objext
5160if { (ac_try="$ac_compile"
5161case "(($ac_try" in
5162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163  *) ac_try_echo=$ac_try;;
5164esac
5165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5166$as_echo "$ac_try_echo") >&5
5167  (eval "$ac_compile") 2>conftest.er1
5168  ac_status=$?
5169  grep -v '^ *+' conftest.er1 >conftest.err
5170  rm -f conftest.er1
5171  cat conftest.err >&5
5172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); } && {
5174	 test -z "$ac_c_werror_flag" ||
5175	 test ! -s conftest.err
5176       } && test -s conftest.$ac_objext; then
5177  ac_header_compiler=yes
5178else
5179  $as_echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182	ac_header_compiler=no
5183fi
5184
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5187$as_echo "$ac_header_compiler" >&6; }
5188
5189# Is the header present?
5190{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5191$as_echo_n "checking $ac_header presence... " >&6; }
5192cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h.  */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h.  */
5198#include <$ac_header>
5199_ACEOF
5200if { (ac_try="$ac_cpp conftest.$ac_ext"
5201case "(($ac_try" in
5202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203  *) ac_try_echo=$ac_try;;
5204esac
5205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5206$as_echo "$ac_try_echo") >&5
5207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5208  ac_status=$?
5209  grep -v '^ *+' conftest.er1 >conftest.err
5210  rm -f conftest.er1
5211  cat conftest.err >&5
5212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); } >/dev/null && {
5214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5215	 test ! -s conftest.err
5216       }; then
5217  ac_header_preproc=yes
5218else
5219  $as_echo "$as_me: failed program was:" >&5
5220sed 's/^/| /' conftest.$ac_ext >&5
5221
5222  ac_header_preproc=no
5223fi
5224
5225rm -f conftest.err conftest.$ac_ext
5226{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5227$as_echo "$ac_header_preproc" >&6; }
5228
5229# So?  What about this header?
5230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5231  yes:no: )
5232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5233$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5235$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5236    ac_header_preproc=yes
5237    ;;
5238  no:yes:* )
5239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5240$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5242$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5244$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5246$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5248$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5250$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5251
5252    ;;
5253esac
5254{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5255$as_echo_n "checking for $ac_header... " >&6; }
5256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5257  $as_echo_n "(cached) " >&6
5258else
5259  eval "$as_ac_Header=\$ac_header_preproc"
5260fi
5261ac_res=`eval 'as_val=${'$as_ac_Header'}
5262		 $as_echo "$as_val"'`
5263	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5264$as_echo "$ac_res" >&6; }
5265
5266fi
5267as_val=`eval 'as_val=${'$as_ac_Header'}
5268		 $as_echo "$as_val"'`
5269   if test "x$as_val" = x""yes; then
5270  cat >>confdefs.h <<_ACEOF
5271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272_ACEOF
5273
5274fi
5275
5276done
5277
5278ac_ext=cpp
5279ac_cpp='$CXXCPP $CPPFLAGS'
5280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283if test -z "$CXX"; then
5284  if test -n "$CCC"; then
5285    CXX=$CCC
5286  else
5287    if test -n "$ac_tool_prefix"; then
5288  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5289  do
5290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
5294if test "${ac_cv_prog_CXX+set}" = set; then
5295  $as_echo_n "(cached) " >&6
5296else
5297  if test -n "$CXX"; then
5298  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303  IFS=$as_save_IFS
5304  test -z "$as_dir" && as_dir=.
5305  for ac_exec_ext in '' $ac_executable_extensions; do
5306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309    break 2
5310  fi
5311done
5312done
5313IFS=$as_save_IFS
5314
5315fi
5316fi
5317CXX=$ac_cv_prog_CXX
5318if test -n "$CXX"; then
5319  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5320$as_echo "$CXX" >&6; }
5321else
5322  { $as_echo "$as_me:$LINENO: result: no" >&5
5323$as_echo "no" >&6; }
5324fi
5325
5326
5327    test -n "$CXX" && break
5328  done
5329fi
5330if test -z "$CXX"; then
5331  ac_ct_CXX=$CXX
5332  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333do
5334  # Extract the first word of "$ac_prog", so it can be a program name with args.
5335set dummy $ac_prog; ac_word=$2
5336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$ac_ct_CXX"; then
5342  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349  for ac_exec_ext in '' $ac_executable_extensions; do
5350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351    ac_cv_prog_ac_ct_CXX="$ac_prog"
5352    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5362if test -n "$ac_ct_CXX"; then
5363  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5364$as_echo "$ac_ct_CXX" >&6; }
5365else
5366  { $as_echo "$as_me:$LINENO: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371  test -n "$ac_ct_CXX" && break
5372done
5373
5374  if test "x$ac_ct_CXX" = x; then
5375    CXX="g++"
5376  else
5377    case $cross_compiling:$ac_tool_warned in
5378yes:)
5379{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381ac_tool_warned=yes ;;
5382esac
5383    CXX=$ac_ct_CXX
5384  fi
5385fi
5386
5387  fi
5388fi
5389# Provide some information about the compiler.
5390$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5391set X $ac_compile
5392ac_compiler=$2
5393{ (ac_try="$ac_compiler --version >&5"
5394case "(($ac_try" in
5395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396  *) ac_try_echo=$ac_try;;
5397esac
5398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5399$as_echo "$ac_try_echo") >&5
5400  (eval "$ac_compiler --version >&5") 2>&5
5401  ac_status=$?
5402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }
5404{ (ac_try="$ac_compiler -v >&5"
5405case "(($ac_try" in
5406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407  *) ac_try_echo=$ac_try;;
5408esac
5409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5410$as_echo "$ac_try_echo") >&5
5411  (eval "$ac_compiler -v >&5") 2>&5
5412  ac_status=$?
5413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }
5415{ (ac_try="$ac_compiler -V >&5"
5416case "(($ac_try" in
5417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418  *) ac_try_echo=$ac_try;;
5419esac
5420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5421$as_echo "$ac_try_echo") >&5
5422  (eval "$ac_compiler -V >&5") 2>&5
5423  ac_status=$?
5424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); }
5426
5427{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5428$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5429if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h.  */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h.  */
5438
5439int
5440main ()
5441{
5442#ifndef __GNUC__
5443       choke me
5444#endif
5445
5446  ;
5447  return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext
5451if { (ac_try="$ac_compile"
5452case "(($ac_try" in
5453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454  *) ac_try_echo=$ac_try;;
5455esac
5456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5457$as_echo "$ac_try_echo") >&5
5458  (eval "$ac_compile") 2>conftest.er1
5459  ac_status=$?
5460  grep -v '^ *+' conftest.er1 >conftest.err
5461  rm -f conftest.er1
5462  cat conftest.err >&5
5463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); } && {
5465	 test -z "$ac_cxx_werror_flag" ||
5466	 test ! -s conftest.err
5467       } && test -s conftest.$ac_objext; then
5468  ac_compiler_gnu=yes
5469else
5470  $as_echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473	ac_compiler_gnu=no
5474fi
5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5478
5479fi
5480{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5481$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5482if test $ac_compiler_gnu = yes; then
5483  GXX=yes
5484else
5485  GXX=
5486fi
5487ac_test_CXXFLAGS=${CXXFLAGS+set}
5488ac_save_CXXFLAGS=$CXXFLAGS
5489{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5490$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5491if test "${ac_cv_prog_cxx_g+set}" = set; then
5492  $as_echo_n "(cached) " >&6
5493else
5494  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5495   ac_cxx_werror_flag=yes
5496   ac_cv_prog_cxx_g=no
5497   CXXFLAGS="-g"
5498   cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h.  */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h.  */
5504
5505int
5506main ()
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext
5514if { (ac_try="$ac_compile"
5515case "(($ac_try" in
5516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517  *) ac_try_echo=$ac_try;;
5518esac
5519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520$as_echo "$ac_try_echo") >&5
5521  (eval "$ac_compile") 2>conftest.er1
5522  ac_status=$?
5523  grep -v '^ *+' conftest.er1 >conftest.err
5524  rm -f conftest.er1
5525  cat conftest.err >&5
5526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); } && {
5528	 test -z "$ac_cxx_werror_flag" ||
5529	 test ! -s conftest.err
5530       } && test -s conftest.$ac_objext; then
5531  ac_cv_prog_cxx_g=yes
5532else
5533  $as_echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536	CXXFLAGS=""
5537      cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h.  */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h.  */
5543
5544int
5545main ()
5546{
5547
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext
5553if { (ac_try="$ac_compile"
5554case "(($ac_try" in
5555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556  *) ac_try_echo=$ac_try;;
5557esac
5558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5559$as_echo "$ac_try_echo") >&5
5560  (eval "$ac_compile") 2>conftest.er1
5561  ac_status=$?
5562  grep -v '^ *+' conftest.er1 >conftest.err
5563  rm -f conftest.er1
5564  cat conftest.err >&5
5565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); } && {
5567	 test -z "$ac_cxx_werror_flag" ||
5568	 test ! -s conftest.err
5569       } && test -s conftest.$ac_objext; then
5570  :
5571else
5572  $as_echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576	 CXXFLAGS="-g"
5577	 cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h.  */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h.  */
5583
5584int
5585main ()
5586{
5587
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext
5593if { (ac_try="$ac_compile"
5594case "(($ac_try" in
5595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596  *) ac_try_echo=$ac_try;;
5597esac
5598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5599$as_echo "$ac_try_echo") >&5
5600  (eval "$ac_compile") 2>conftest.er1
5601  ac_status=$?
5602  grep -v '^ *+' conftest.er1 >conftest.err
5603  rm -f conftest.er1
5604  cat conftest.err >&5
5605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); } && {
5607	 test -z "$ac_cxx_werror_flag" ||
5608	 test ! -s conftest.err
5609       } && test -s conftest.$ac_objext; then
5610  ac_cv_prog_cxx_g=yes
5611else
5612  $as_echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615
5616fi
5617
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619fi
5620
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622fi
5623
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5626fi
5627{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5628$as_echo "$ac_cv_prog_cxx_g" >&6; }
5629if test "$ac_test_CXXFLAGS" = set; then
5630  CXXFLAGS=$ac_save_CXXFLAGS
5631elif test $ac_cv_prog_cxx_g = yes; then
5632  if test "$GXX" = yes; then
5633    CXXFLAGS="-g -O2"
5634  else
5635    CXXFLAGS="-g"
5636  fi
5637else
5638  if test "$GXX" = yes; then
5639    CXXFLAGS="-O2"
5640  else
5641    CXXFLAGS=
5642  fi
5643fi
5644ac_ext=cpp
5645ac_cpp='$CXXCPP $CPPFLAGS'
5646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649
5650depcc="$CXX"  am_compiler_list=
5651
5652{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5653$as_echo_n "checking dependency style of $depcc... " >&6; }
5654if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5655  $as_echo_n "(cached) " >&6
5656else
5657  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5658  # We make a subdir and do the tests there.  Otherwise we can end up
5659  # making bogus files that we don't know about and never remove.  For
5660  # instance it was reported that on HP-UX the gcc test will end up
5661  # making a dummy file named `D' -- because `-MD' means `put the output
5662  # in D'.
5663  mkdir conftest.dir
5664  # Copy depcomp to subdir because otherwise we won't find it if we're
5665  # using a relative directory.
5666  cp "$am_depcomp" conftest.dir
5667  cd conftest.dir
5668  # We will build objects and dependencies in a subdirectory because
5669  # it helps to detect inapplicable dependency modes.  For instance
5670  # both Tru64's cc and ICC support -MD to output dependencies as a
5671  # side effect of compilation, but ICC will put the dependencies in
5672  # the current directory while Tru64 will put them in the object
5673  # directory.
5674  mkdir sub
5675
5676  am_cv_CXX_dependencies_compiler_type=none
5677  if test "$am_compiler_list" = ""; then
5678     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5679  fi
5680  for depmode in $am_compiler_list; do
5681    # Setup a source with many dependencies, because some compilers
5682    # like to wrap large dependency lists on column 80 (with \), and
5683    # we should not choose a depcomp mode which is confused by this.
5684    #
5685    # We need to recreate these files for each test, as the compiler may
5686    # overwrite some of them when testing with obscure command lines.
5687    # This happens at least with the AIX C compiler.
5688    : > sub/conftest.c
5689    for i in 1 2 3 4 5 6; do
5690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5691      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5692      # Solaris 8's {/usr,}/bin/sh.
5693      touch sub/conftst$i.h
5694    done
5695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5696
5697    case $depmode in
5698    nosideeffect)
5699      # after this tag, mechanisms are not by side-effect, so they'll
5700      # only be used when explicitly requested
5701      if test "x$enable_dependency_tracking" = xyes; then
5702	continue
5703      else
5704	break
5705      fi
5706      ;;
5707    none) break ;;
5708    esac
5709    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5710    # mode.  It turns out that the SunPro C++ compiler does not properly
5711    # handle `-M -o', and we need to detect this.
5712    if depmode=$depmode \
5713       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5714       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5715       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5716         >/dev/null 2>conftest.err &&
5717       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5718       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5719       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5720       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5721      # icc doesn't choke on unknown options, it will just issue warnings
5722      # or remarks (even with -Werror).  So we grep stderr for any message
5723      # that says an option was ignored or not supported.
5724      # When given -MP, icc 7.0 and 7.1 complain thusly:
5725      #   icc: Command line warning: ignoring option '-M'; no argument required
5726      # The diagnosis changed in icc 8.0:
5727      #   icc: Command line remark: option '-MP' not supported
5728      if (grep 'ignoring option' conftest.err ||
5729          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5730        am_cv_CXX_dependencies_compiler_type=$depmode
5731        break
5732      fi
5733    fi
5734  done
5735
5736  cd ..
5737  rm -rf conftest.dir
5738else
5739  am_cv_CXX_dependencies_compiler_type=none
5740fi
5741
5742fi
5743{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5744$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5745CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5746
5747 if
5748  test "x$enable_dependency_tracking" != xno \
5749  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5750  am__fastdepCXX_TRUE=
5751  am__fastdepCXX_FALSE='#'
5752else
5753  am__fastdepCXX_TRUE='#'
5754  am__fastdepCXX_FALSE=
5755fi
5756
5757
5758
5759
5760if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5761    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5762    (test "X$CXX" != "Xg++"))) ; then
5763  ac_ext=cpp
5764ac_cpp='$CXXCPP $CPPFLAGS'
5765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5768{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5769$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5770if test -z "$CXXCPP"; then
5771  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5772  $as_echo_n "(cached) " >&6
5773else
5774      # Double quotes because CXXCPP needs to be expanded
5775    for CXXCPP in "$CXX -E" "/lib/cpp"
5776    do
5777      ac_preproc_ok=false
5778for ac_cxx_preproc_warn_flag in '' yes
5779do
5780  # Use a header file that comes with gcc, so configuring glibc
5781  # with a fresh cross-compiler works.
5782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5783  # <limits.h> exists even on freestanding compilers.
5784  # On the NeXT, cc -E runs the code through the compiler's parser,
5785  # not just through cpp. "Syntax error" is here to catch this case.
5786  cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h.  */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h.  */
5792#ifdef __STDC__
5793# include <limits.h>
5794#else
5795# include <assert.h>
5796#endif
5797		     Syntax error
5798_ACEOF
5799if { (ac_try="$ac_cpp conftest.$ac_ext"
5800case "(($ac_try" in
5801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802  *) ac_try_echo=$ac_try;;
5803esac
5804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805$as_echo "$ac_try_echo") >&5
5806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5807  ac_status=$?
5808  grep -v '^ *+' conftest.er1 >conftest.err
5809  rm -f conftest.er1
5810  cat conftest.err >&5
5811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } >/dev/null && {
5813	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5814	 test ! -s conftest.err
5815       }; then
5816  :
5817else
5818  $as_echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
5821  # Broken: fails on valid input.
5822continue
5823fi
5824
5825rm -f conftest.err conftest.$ac_ext
5826
5827  # OK, works on sane cases.  Now check whether nonexistent headers
5828  # can be detected and how.
5829  cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h.  */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h.  */
5835#include <ac_nonexistent.h>
5836_ACEOF
5837if { (ac_try="$ac_cpp conftest.$ac_ext"
5838case "(($ac_try" in
5839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840  *) ac_try_echo=$ac_try;;
5841esac
5842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5843$as_echo "$ac_try_echo") >&5
5844  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } >/dev/null && {
5851	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852	 test ! -s conftest.err
5853       }; then
5854  # Broken: success on invalid input.
5855continue
5856else
5857  $as_echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860  # Passes both tests.
5861ac_preproc_ok=:
5862break
5863fi
5864
5865rm -f conftest.err conftest.$ac_ext
5866
5867done
5868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869rm -f conftest.err conftest.$ac_ext
5870if $ac_preproc_ok; then
5871  break
5872fi
5873
5874    done
5875    ac_cv_prog_CXXCPP=$CXXCPP
5876
5877fi
5878  CXXCPP=$ac_cv_prog_CXXCPP
5879else
5880  ac_cv_prog_CXXCPP=$CXXCPP
5881fi
5882{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5883$as_echo "$CXXCPP" >&6; }
5884ac_preproc_ok=false
5885for ac_cxx_preproc_warn_flag in '' yes
5886do
5887  # Use a header file that comes with gcc, so configuring glibc
5888  # with a fresh cross-compiler works.
5889  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890  # <limits.h> exists even on freestanding compilers.
5891  # On the NeXT, cc -E runs the code through the compiler's parser,
5892  # not just through cpp. "Syntax error" is here to catch this case.
5893  cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h.  */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h.  */
5899#ifdef __STDC__
5900# include <limits.h>
5901#else
5902# include <assert.h>
5903#endif
5904		     Syntax error
5905_ACEOF
5906if { (ac_try="$ac_cpp conftest.$ac_ext"
5907case "(($ac_try" in
5908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909  *) ac_try_echo=$ac_try;;
5910esac
5911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912$as_echo "$ac_try_echo") >&5
5913  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } >/dev/null && {
5920	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921	 test ! -s conftest.err
5922       }; then
5923  :
5924else
5925  $as_echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928  # Broken: fails on valid input.
5929continue
5930fi
5931
5932rm -f conftest.err conftest.$ac_ext
5933
5934  # OK, works on sane cases.  Now check whether nonexistent headers
5935  # can be detected and how.
5936  cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h.  */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h.  */
5942#include <ac_nonexistent.h>
5943_ACEOF
5944if { (ac_try="$ac_cpp conftest.$ac_ext"
5945case "(($ac_try" in
5946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947  *) ac_try_echo=$ac_try;;
5948esac
5949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950$as_echo "$ac_try_echo") >&5
5951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } >/dev/null && {
5958	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959	 test ! -s conftest.err
5960       }; then
5961  # Broken: success on invalid input.
5962continue
5963else
5964  $as_echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967  # Passes both tests.
5968ac_preproc_ok=:
5969break
5970fi
5971
5972rm -f conftest.err conftest.$ac_ext
5973
5974done
5975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5976rm -f conftest.err conftest.$ac_ext
5977if $ac_preproc_ok; then
5978  :
5979else
5980  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5983See \`config.log' for more details." >&5
5984$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5985See \`config.log' for more details." >&2;}
5986   { (exit 1); exit 1; }; }; }
5987fi
5988
5989ac_ext=cpp
5990ac_cpp='$CXXCPP $CPPFLAGS'
5991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5994
5995fi
5996
5997
5998ac_ext=f
5999ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6000ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6002if test -n "$ac_tool_prefix"; then
6003  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6004  do
6005    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if test "${ac_cv_prog_F77+set}" = set; then
6010  $as_echo_n "(cached) " >&6
6011else
6012  if test -n "$F77"; then
6013  ac_cv_prog_F77="$F77" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020  for ac_exec_ext in '' $ac_executable_extensions; do
6021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6023    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032F77=$ac_cv_prog_F77
6033if test -n "$F77"; then
6034  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6035$as_echo "$F77" >&6; }
6036else
6037  { $as_echo "$as_me:$LINENO: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041
6042    test -n "$F77" && break
6043  done
6044fi
6045if test -z "$F77"; then
6046  ac_ct_F77=$F77
6047  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6048do
6049  # Extract the first word of "$ac_prog", so it can be a program name with args.
6050set dummy $ac_prog; ac_word=$2
6051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$ac_ct_F77"; then
6057  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064  for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_ac_ct_F77="$ac_prog"
6067    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_F77=$ac_cv_prog_ac_ct_F77
6077if test -n "$ac_ct_F77"; then
6078  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6079$as_echo "$ac_ct_F77" >&6; }
6080else
6081  { $as_echo "$as_me:$LINENO: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086  test -n "$ac_ct_F77" && break
6087done
6088
6089  if test "x$ac_ct_F77" = x; then
6090    F77=""
6091  else
6092    case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098    F77=$ac_ct_F77
6099  fi
6100fi
6101
6102
6103# Provide some information about the compiler.
6104$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6105set X $ac_compile
6106ac_compiler=$2
6107{ (ac_try="$ac_compiler --version >&5"
6108case "(($ac_try" in
6109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110  *) ac_try_echo=$ac_try;;
6111esac
6112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6113$as_echo "$ac_try_echo") >&5
6114  (eval "$ac_compiler --version >&5") 2>&5
6115  ac_status=$?
6116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }
6118{ (ac_try="$ac_compiler -v >&5"
6119case "(($ac_try" in
6120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121  *) ac_try_echo=$ac_try;;
6122esac
6123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124$as_echo "$ac_try_echo") >&5
6125  (eval "$ac_compiler -v >&5") 2>&5
6126  ac_status=$?
6127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); }
6129{ (ac_try="$ac_compiler -V >&5"
6130case "(($ac_try" in
6131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132  *) ac_try_echo=$ac_try;;
6133esac
6134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6135$as_echo "$ac_try_echo") >&5
6136  (eval "$ac_compiler -V >&5") 2>&5
6137  ac_status=$?
6138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }
6140rm -f a.out
6141
6142# If we don't use `.F' as extension, the preprocessor is not run on the
6143# input file.  (Note that this only needs to work for GNU compilers.)
6144ac_save_ext=$ac_ext
6145ac_ext=F
6146{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6147$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6148if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat >conftest.$ac_ext <<_ACEOF
6152      program main
6153#ifndef __GNUC__
6154       choke me
6155#endif
6156
6157      end
6158_ACEOF
6159rm -f conftest.$ac_objext
6160if { (ac_try="$ac_compile"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167  (eval "$ac_compile") 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } && {
6174	 test -z "$ac_f77_werror_flag" ||
6175	 test ! -s conftest.err
6176       } && test -s conftest.$ac_objext; then
6177  ac_compiler_gnu=yes
6178else
6179  $as_echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182	ac_compiler_gnu=no
6183fi
6184
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6187
6188fi
6189{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6190$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6191ac_ext=$ac_save_ext
6192ac_test_FFLAGS=${FFLAGS+set}
6193ac_save_FFLAGS=$FFLAGS
6194FFLAGS=
6195{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6196$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6197if test "${ac_cv_prog_f77_g+set}" = set; then
6198  $as_echo_n "(cached) " >&6
6199else
6200  FFLAGS=-g
6201cat >conftest.$ac_ext <<_ACEOF
6202      program main
6203
6204      end
6205_ACEOF
6206rm -f conftest.$ac_objext
6207if { (ac_try="$ac_compile"
6208case "(($ac_try" in
6209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210  *) ac_try_echo=$ac_try;;
6211esac
6212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6213$as_echo "$ac_try_echo") >&5
6214  (eval "$ac_compile") 2>conftest.er1
6215  ac_status=$?
6216  grep -v '^ *+' conftest.er1 >conftest.err
6217  rm -f conftest.er1
6218  cat conftest.err >&5
6219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); } && {
6221	 test -z "$ac_f77_werror_flag" ||
6222	 test ! -s conftest.err
6223       } && test -s conftest.$ac_objext; then
6224  ac_cv_prog_f77_g=yes
6225else
6226  $as_echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229	ac_cv_prog_f77_g=no
6230fi
6231
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233
6234fi
6235{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6236$as_echo "$ac_cv_prog_f77_g" >&6; }
6237if test "$ac_test_FFLAGS" = set; then
6238  FFLAGS=$ac_save_FFLAGS
6239elif test $ac_cv_prog_f77_g = yes; then
6240  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6241    FFLAGS="-g -O2"
6242  else
6243    FFLAGS="-g"
6244  fi
6245else
6246  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6247    FFLAGS="-O2"
6248  else
6249    FFLAGS=
6250  fi
6251fi
6252
6253if test $ac_compiler_gnu = yes; then
6254  G77=yes
6255else
6256  G77=
6257fi
6258ac_ext=c
6259ac_cpp='$CPP $CPPFLAGS'
6260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262ac_compiler_gnu=$ac_cv_c_compiler_gnu
6263
6264
6265
6266# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6267# find the maximum length of command line arguments
6268{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6269$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6270if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6271  $as_echo_n "(cached) " >&6
6272else
6273    i=0
6274  teststring="ABCD"
6275
6276  case $build_os in
6277  msdosdjgpp*)
6278    # On DJGPP, this test can blow up pretty badly due to problems in libc
6279    # (any single argument exceeding 2000 bytes causes a buffer overrun
6280    # during glob expansion).  Even if it were fixed, the result of this
6281    # check would be larger than it should be.
6282    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6283    ;;
6284
6285  gnu*)
6286    # Under GNU Hurd, this test is not required because there is
6287    # no limit to the length of command line arguments.
6288    # Libtool will interpret -1 as no limit whatsoever
6289    lt_cv_sys_max_cmd_len=-1;
6290    ;;
6291
6292  cygwin* | mingw*)
6293    # On Win9x/ME, this test blows up -- it succeeds, but takes
6294    # about 5 minutes as the teststring grows exponentially.
6295    # Worse, since 9x/ME are not pre-emptively multitasking,
6296    # you end up with a "frozen" computer, even though with patience
6297    # the test eventually succeeds (with a max line length of 256k).
6298    # Instead, let's just punt: use the minimum linelength reported by
6299    # all of the supported platforms: 8192 (on NT/2K/XP).
6300    lt_cv_sys_max_cmd_len=8192;
6301    ;;
6302
6303  amigaos*)
6304    # On AmigaOS with pdksh, this test takes hours, literally.
6305    # So we just punt and use a minimum line length of 8192.
6306    lt_cv_sys_max_cmd_len=8192;
6307    ;;
6308
6309  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6310    # This has been around since 386BSD, at least.  Likely further.
6311    if test -x /sbin/sysctl; then
6312      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6313    elif test -x /usr/sbin/sysctl; then
6314      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6315    else
6316      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6317    fi
6318    # And add a safety zone
6319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6321    ;;
6322
6323  interix*)
6324    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6325    lt_cv_sys_max_cmd_len=196608
6326    ;;
6327
6328  osf*)
6329    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6330    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6331    # nice to cause kernel panics so lets avoid the loop below.
6332    # First set a reasonable default.
6333    lt_cv_sys_max_cmd_len=16384
6334    #
6335    if test -x /sbin/sysconfig; then
6336      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6337        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6338      esac
6339    fi
6340    ;;
6341  sco3.2v5*)
6342    lt_cv_sys_max_cmd_len=102400
6343    ;;
6344  sysv5* | sco5v6* | sysv4.2uw2*)
6345    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6346    if test -n "$kargmax"; then
6347      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6348    else
6349      lt_cv_sys_max_cmd_len=32768
6350    fi
6351    ;;
6352  *)
6353    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6354    if test -n "$lt_cv_sys_max_cmd_len"; then
6355      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6356      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6357    else
6358      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6359      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6360	       = "XX$teststring") >/dev/null 2>&1 &&
6361	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6362	      lt_cv_sys_max_cmd_len=$new_result &&
6363	      test $i != 17 # 1/2 MB should be enough
6364      do
6365        i=`expr $i + 1`
6366        teststring=$teststring$teststring
6367      done
6368      teststring=
6369      # Add a significant safety factor because C++ compilers can tack on massive
6370      # amounts of additional arguments before passing them to the linker.
6371      # It appears as though 1/2 is a usable value.
6372      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6373    fi
6374    ;;
6375  esac
6376
6377fi
6378
6379if test -n $lt_cv_sys_max_cmd_len ; then
6380  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6381$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6382else
6383  { $as_echo "$as_me:$LINENO: result: none" >&5
6384$as_echo "none" >&6; }
6385fi
6386
6387
6388
6389
6390
6391# Check for command to grab the raw symbol name followed by C symbol from nm.
6392{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6393$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6395  $as_echo_n "(cached) " >&6
6396else
6397
6398# These are sane defaults that work on at least a few old systems.
6399# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6400
6401# Character class describing NM global symbol codes.
6402symcode='[BCDEGRST]'
6403
6404# Regexp to match symbols that can be accessed directly from C.
6405sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6406
6407# Transform an extracted symbol line into a proper C declaration
6408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6409
6410# Transform an extracted symbol line into symbol name and symbol address
6411lt_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'"
6412
6413# Define system-specific variables.
6414case $host_os in
6415aix*)
6416  symcode='[BCDT]'
6417  ;;
6418cygwin* | mingw* | pw32*)
6419  symcode='[ABCDGISTW]'
6420  ;;
6421hpux*) # Its linker distinguishes data from code symbols
6422  if test "$host_cpu" = ia64; then
6423    symcode='[ABCDEGRST]'
6424  fi
6425  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6426  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'"
6427  ;;
6428linux* | k*bsd*-gnu)
6429  if test "$host_cpu" = ia64; then
6430    symcode='[ABCDGIRSTW]'
6431    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6432    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'"
6433  fi
6434  ;;
6435irix* | nonstopux*)
6436  symcode='[BCDEGRST]'
6437  ;;
6438osf*)
6439  symcode='[BCDEGQRST]'
6440  ;;
6441solaris*)
6442  symcode='[BDRT]'
6443  ;;
6444sco3.2v5*)
6445  symcode='[DT]'
6446  ;;
6447sysv4.2uw2*)
6448  symcode='[DT]'
6449  ;;
6450sysv5* | sco5v6* | unixware* | OpenUNIX*)
6451  symcode='[ABDT]'
6452  ;;
6453sysv4)
6454  symcode='[DFNSTU]'
6455  ;;
6456esac
6457
6458# Handle CRLF in mingw tool chain
6459opt_cr=
6460case $build_os in
6461mingw*)
6462  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6463  ;;
6464esac
6465
6466# If we're using GNU nm, then use its standard symbol codes.
6467case `$NM -V 2>&1` in
6468*GNU* | *'with BFD'*)
6469  symcode='[ABCDGIRSTW]' ;;
6470esac
6471
6472# Try without a prefix undercore, then with it.
6473for ac_symprfx in "" "_"; do
6474
6475  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6476  symxfrm="\\1 $ac_symprfx\\2 \\2"
6477
6478  # Write the raw and C identifiers.
6479  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6480
6481  # Check to see that the pipe works correctly.
6482  pipe_works=no
6483
6484  rm -f conftest*
6485  cat > conftest.$ac_ext <<EOF
6486#ifdef __cplusplus
6487extern "C" {
6488#endif
6489char nm_test_var;
6490void nm_test_func(){}
6491#ifdef __cplusplus
6492}
6493#endif
6494int main(){nm_test_var='a';nm_test_func();return(0);}
6495EOF
6496
6497  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498  (eval $ac_compile) 2>&5
6499  ac_status=$?
6500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; then
6502    # Now try to grab the symbols.
6503    nlist=conftest.nm
6504    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6505  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6506  ac_status=$?
6507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } && test -s "$nlist"; then
6509      # Try sorting and uniquifying the output.
6510      if sort "$nlist" | uniq > "$nlist"T; then
6511	mv -f "$nlist"T "$nlist"
6512      else
6513	rm -f "$nlist"T
6514      fi
6515
6516      # Make sure that we snagged all the symbols we need.
6517      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6518	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6519	  cat <<EOF > conftest.$ac_ext
6520#ifdef __cplusplus
6521extern "C" {
6522#endif
6523
6524EOF
6525	  # Now generate the symbol file.
6526	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6527
6528	  cat <<EOF >> conftest.$ac_ext
6529#if defined (__STDC__) && __STDC__
6530# define lt_ptr_t void *
6531#else
6532# define lt_ptr_t char *
6533# define const
6534#endif
6535
6536/* The mapping between symbol names and symbols. */
6537const struct {
6538  const char *name;
6539  lt_ptr_t address;
6540}
6541lt_preloaded_symbols[] =
6542{
6543EOF
6544	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6545	  cat <<\EOF >> conftest.$ac_ext
6546  {0, (lt_ptr_t) 0}
6547};
6548
6549#ifdef __cplusplus
6550}
6551#endif
6552EOF
6553	  # Now try linking the two files.
6554	  mv conftest.$ac_objext conftstm.$ac_objext
6555	  lt_save_LIBS="$LIBS"
6556	  lt_save_CFLAGS="$CFLAGS"
6557	  LIBS="conftstm.$ac_objext"
6558	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6559	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560  (eval $ac_link) 2>&5
6561  ac_status=$?
6562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6564	    pipe_works=yes
6565	  fi
6566	  LIBS="$lt_save_LIBS"
6567	  CFLAGS="$lt_save_CFLAGS"
6568	else
6569	  echo "cannot find nm_test_func in $nlist" >&5
6570	fi
6571      else
6572	echo "cannot find nm_test_var in $nlist" >&5
6573      fi
6574    else
6575      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6576    fi
6577  else
6578    echo "$progname: failed program was:" >&5
6579    cat conftest.$ac_ext >&5
6580  fi
6581  rm -rf conftest* conftst*
6582
6583  # Do not use the global_symbol_pipe unless it works.
6584  if test "$pipe_works" = yes; then
6585    break
6586  else
6587    lt_cv_sys_global_symbol_pipe=
6588  fi
6589done
6590
6591fi
6592
6593if test -z "$lt_cv_sys_global_symbol_pipe"; then
6594  lt_cv_sys_global_symbol_to_cdecl=
6595fi
6596if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6597  { $as_echo "$as_me:$LINENO: result: failed" >&5
6598$as_echo "failed" >&6; }
6599else
6600  { $as_echo "$as_me:$LINENO: result: ok" >&5
6601$as_echo "ok" >&6; }
6602fi
6603
6604{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6605$as_echo_n "checking for objdir... " >&6; }
6606if test "${lt_cv_objdir+set}" = set; then
6607  $as_echo_n "(cached) " >&6
6608else
6609  rm -f .libs 2>/dev/null
6610mkdir .libs 2>/dev/null
6611if test -d .libs; then
6612  lt_cv_objdir=.libs
6613else
6614  # MS-DOS does not allow filenames that begin with a dot.
6615  lt_cv_objdir=_libs
6616fi
6617rmdir .libs 2>/dev/null
6618fi
6619{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6620$as_echo "$lt_cv_objdir" >&6; }
6621objdir=$lt_cv_objdir
6622
6623
6624
6625
6626
6627case $host_os in
6628aix3*)
6629  # AIX sometimes has problems with the GCC collect2 program.  For some
6630  # reason, if we set the COLLECT_NAMES environment variable, the problems
6631  # vanish in a puff of smoke.
6632  if test "X${COLLECT_NAMES+set}" != Xset; then
6633    COLLECT_NAMES=
6634    export COLLECT_NAMES
6635  fi
6636  ;;
6637esac
6638
6639# Sed substitution that helps us do robust quoting.  It backslashifies
6640# metacharacters that are still active within double-quoted strings.
6641Xsed='sed -e 1s/^X//'
6642sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6643
6644# Same as above, but do not quote variable references.
6645double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6646
6647# Sed substitution to delay expansion of an escaped shell variable in a
6648# double_quote_subst'ed string.
6649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6650
6651# Sed substitution to avoid accidental globbing in evaled expressions
6652no_glob_subst='s/\*/\\\*/g'
6653
6654# Constants:
6655rm="rm -f"
6656
6657# Global variables:
6658default_ofile=libtool
6659can_build_shared=yes
6660
6661# All known linkers require a `.a' archive for static linking (except MSVC,
6662# which needs '.lib').
6663libext=a
6664ltmain="$ac_aux_dir/ltmain.sh"
6665ofile="$default_ofile"
6666with_gnu_ld="$lt_cv_prog_gnu_ld"
6667
6668if test -n "$ac_tool_prefix"; then
6669  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6670set dummy ${ac_tool_prefix}ar; ac_word=$2
6671{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6672$as_echo_n "checking for $ac_word... " >&6; }
6673if test "${ac_cv_prog_AR+set}" = set; then
6674  $as_echo_n "(cached) " >&6
6675else
6676  if test -n "$AR"; then
6677  ac_cv_prog_AR="$AR" # Let the user override the test.
6678else
6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682  IFS=$as_save_IFS
6683  test -z "$as_dir" && as_dir=.
6684  for ac_exec_ext in '' $ac_executable_extensions; do
6685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686    ac_cv_prog_AR="${ac_tool_prefix}ar"
6687    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688    break 2
6689  fi
6690done
6691done
6692IFS=$as_save_IFS
6693
6694fi
6695fi
6696AR=$ac_cv_prog_AR
6697if test -n "$AR"; then
6698  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6699$as_echo "$AR" >&6; }
6700else
6701  { $as_echo "$as_me:$LINENO: result: no" >&5
6702$as_echo "no" >&6; }
6703fi
6704
6705
6706fi
6707if test -z "$ac_cv_prog_AR"; then
6708  ac_ct_AR=$AR
6709  # Extract the first word of "ar", so it can be a program name with args.
6710set dummy ar; ac_word=$2
6711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6712$as_echo_n "checking for $ac_word... " >&6; }
6713if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6714  $as_echo_n "(cached) " >&6
6715else
6716  if test -n "$ac_ct_AR"; then
6717  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6718else
6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722  IFS=$as_save_IFS
6723  test -z "$as_dir" && as_dir=.
6724  for ac_exec_ext in '' $ac_executable_extensions; do
6725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726    ac_cv_prog_ac_ct_AR="ar"
6727    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728    break 2
6729  fi
6730done
6731done
6732IFS=$as_save_IFS
6733
6734fi
6735fi
6736ac_ct_AR=$ac_cv_prog_ac_ct_AR
6737if test -n "$ac_ct_AR"; then
6738  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6739$as_echo "$ac_ct_AR" >&6; }
6740else
6741  { $as_echo "$as_me:$LINENO: result: no" >&5
6742$as_echo "no" >&6; }
6743fi
6744
6745  if test "x$ac_ct_AR" = x; then
6746    AR="false"
6747  else
6748    case $cross_compiling:$ac_tool_warned in
6749yes:)
6750{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752ac_tool_warned=yes ;;
6753esac
6754    AR=$ac_ct_AR
6755  fi
6756else
6757  AR="$ac_cv_prog_AR"
6758fi
6759
6760if test -n "$ac_tool_prefix"; then
6761  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6762set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6763{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
6765if test "${ac_cv_prog_RANLIB+set}" = set; then
6766  $as_echo_n "(cached) " >&6
6767else
6768  if test -n "$RANLIB"; then
6769  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776  for ac_exec_ext in '' $ac_executable_extensions; do
6777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6779    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788RANLIB=$ac_cv_prog_RANLIB
6789if test -n "$RANLIB"; then
6790  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6791$as_echo "$RANLIB" >&6; }
6792else
6793  { $as_echo "$as_me:$LINENO: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797
6798fi
6799if test -z "$ac_cv_prog_RANLIB"; then
6800  ac_ct_RANLIB=$RANLIB
6801  # Extract the first word of "ranlib", so it can be a program name with args.
6802set dummy ranlib; ac_word=$2
6803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -n "$ac_ct_RANLIB"; then
6809  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814  IFS=$as_save_IFS
6815  test -z "$as_dir" && as_dir=.
6816  for ac_exec_ext in '' $ac_executable_extensions; do
6817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818    ac_cv_prog_ac_ct_RANLIB="ranlib"
6819    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820    break 2
6821  fi
6822done
6823done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6829if test -n "$ac_ct_RANLIB"; then
6830  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6831$as_echo "$ac_ct_RANLIB" >&6; }
6832else
6833  { $as_echo "$as_me:$LINENO: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837  if test "x$ac_ct_RANLIB" = x; then
6838    RANLIB=":"
6839  else
6840    case $cross_compiling:$ac_tool_warned in
6841yes:)
6842{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844ac_tool_warned=yes ;;
6845esac
6846    RANLIB=$ac_ct_RANLIB
6847  fi
6848else
6849  RANLIB="$ac_cv_prog_RANLIB"
6850fi
6851
6852if test -n "$ac_tool_prefix"; then
6853  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6854set dummy ${ac_tool_prefix}strip; ac_word=$2
6855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
6857if test "${ac_cv_prog_STRIP+set}" = set; then
6858  $as_echo_n "(cached) " >&6
6859else
6860  if test -n "$STRIP"; then
6861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866  IFS=$as_save_IFS
6867  test -z "$as_dir" && as_dir=.
6868  for ac_exec_ext in '' $ac_executable_extensions; do
6869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6871    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872    break 2
6873  fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878fi
6879fi
6880STRIP=$ac_cv_prog_STRIP
6881if test -n "$STRIP"; then
6882  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6883$as_echo "$STRIP" >&6; }
6884else
6885  { $as_echo "$as_me:$LINENO: result: no" >&5
6886$as_echo "no" >&6; }
6887fi
6888
6889
6890fi
6891if test -z "$ac_cv_prog_STRIP"; then
6892  ac_ct_STRIP=$STRIP
6893  # Extract the first word of "strip", so it can be a program name with args.
6894set dummy strip; ac_word=$2
6895{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
6897if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6898  $as_echo_n "(cached) " >&6
6899else
6900  if test -n "$ac_ct_STRIP"; then
6901  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906  IFS=$as_save_IFS
6907  test -z "$as_dir" && as_dir=.
6908  for ac_exec_ext in '' $ac_executable_extensions; do
6909  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910    ac_cv_prog_ac_ct_STRIP="strip"
6911    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912    break 2
6913  fi
6914done
6915done
6916IFS=$as_save_IFS
6917
6918fi
6919fi
6920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6921if test -n "$ac_ct_STRIP"; then
6922  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6923$as_echo "$ac_ct_STRIP" >&6; }
6924else
6925  { $as_echo "$as_me:$LINENO: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929  if test "x$ac_ct_STRIP" = x; then
6930    STRIP=":"
6931  else
6932    case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938    STRIP=$ac_ct_STRIP
6939  fi
6940else
6941  STRIP="$ac_cv_prog_STRIP"
6942fi
6943
6944
6945old_CC="$CC"
6946old_CFLAGS="$CFLAGS"
6947
6948# Set sane defaults for various variables
6949test -z "$AR" && AR=ar
6950test -z "$AR_FLAGS" && AR_FLAGS=cru
6951test -z "$AS" && AS=as
6952test -z "$CC" && CC=cc
6953test -z "$LTCC" && LTCC=$CC
6954test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6955test -z "$DLLTOOL" && DLLTOOL=dlltool
6956test -z "$LD" && LD=ld
6957test -z "$LN_S" && LN_S="ln -s"
6958test -z "$MAGIC_CMD" && MAGIC_CMD=file
6959test -z "$NM" && NM=nm
6960test -z "$SED" && SED=sed
6961test -z "$OBJDUMP" && OBJDUMP=objdump
6962test -z "$RANLIB" && RANLIB=:
6963test -z "$STRIP" && STRIP=:
6964test -z "$ac_objext" && ac_objext=o
6965
6966# Determine commands to create old-style static archives.
6967old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6968old_postinstall_cmds='chmod 644 $oldlib'
6969old_postuninstall_cmds=
6970
6971if test -n "$RANLIB"; then
6972  case $host_os in
6973  openbsd*)
6974    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6975    ;;
6976  *)
6977    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6978    ;;
6979  esac
6980  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6981fi
6982
6983for cc_temp in $compiler""; do
6984  case $cc_temp in
6985    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6986    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6987    \-*) ;;
6988    *) break;;
6989  esac
6990done
6991cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6992
6993
6994# Only perform the check for file, if the check method requires it
6995case $deplibs_check_method in
6996file_magic*)
6997  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6998    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6999$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7000if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7001  $as_echo_n "(cached) " >&6
7002else
7003  case $MAGIC_CMD in
7004[\\/*] |  ?:[\\/]*)
7005  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7006  ;;
7007*)
7008  lt_save_MAGIC_CMD="$MAGIC_CMD"
7009  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7010  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7011  for ac_dir in $ac_dummy; do
7012    IFS="$lt_save_ifs"
7013    test -z "$ac_dir" && ac_dir=.
7014    if test -f $ac_dir/${ac_tool_prefix}file; then
7015      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7016      if test -n "$file_magic_test_file"; then
7017	case $deplibs_check_method in
7018	"file_magic "*)
7019	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7020	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7021	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7022	    $EGREP "$file_magic_regex" > /dev/null; then
7023	    :
7024	  else
7025	    cat <<EOF 1>&2
7026
7027*** Warning: the command libtool uses to detect shared libraries,
7028*** $file_magic_cmd, produces output that libtool cannot recognize.
7029*** The result is that libtool may fail to recognize shared libraries
7030*** as such.  This will affect the creation of libtool libraries that
7031*** depend on shared libraries, but programs linked with such libtool
7032*** libraries will work regardless of this problem.  Nevertheless, you
7033*** may want to report the problem to your system manager and/or to
7034*** bug-libtool@gnu.org
7035
7036EOF
7037	  fi ;;
7038	esac
7039      fi
7040      break
7041    fi
7042  done
7043  IFS="$lt_save_ifs"
7044  MAGIC_CMD="$lt_save_MAGIC_CMD"
7045  ;;
7046esac
7047fi
7048
7049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050if test -n "$MAGIC_CMD"; then
7051  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7052$as_echo "$MAGIC_CMD" >&6; }
7053else
7054  { $as_echo "$as_me:$LINENO: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058if test -z "$lt_cv_path_MAGIC_CMD"; then
7059  if test -n "$ac_tool_prefix"; then
7060    { $as_echo "$as_me:$LINENO: checking for file" >&5
7061$as_echo_n "checking for file... " >&6; }
7062if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7063  $as_echo_n "(cached) " >&6
7064else
7065  case $MAGIC_CMD in
7066[\\/*] |  ?:[\\/]*)
7067  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7068  ;;
7069*)
7070  lt_save_MAGIC_CMD="$MAGIC_CMD"
7071  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073  for ac_dir in $ac_dummy; do
7074    IFS="$lt_save_ifs"
7075    test -z "$ac_dir" && ac_dir=.
7076    if test -f $ac_dir/file; then
7077      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7078      if test -n "$file_magic_test_file"; then
7079	case $deplibs_check_method in
7080	"file_magic "*)
7081	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084	    $EGREP "$file_magic_regex" > /dev/null; then
7085	    :
7086	  else
7087	    cat <<EOF 1>&2
7088
7089*** Warning: the command libtool uses to detect shared libraries,
7090*** $file_magic_cmd, produces output that libtool cannot recognize.
7091*** The result is that libtool may fail to recognize shared libraries
7092*** as such.  This will affect the creation of libtool libraries that
7093*** depend on shared libraries, but programs linked with such libtool
7094*** libraries will work regardless of this problem.  Nevertheless, you
7095*** may want to report the problem to your system manager and/or to
7096*** bug-libtool@gnu.org
7097
7098EOF
7099	  fi ;;
7100	esac
7101      fi
7102      break
7103    fi
7104  done
7105  IFS="$lt_save_ifs"
7106  MAGIC_CMD="$lt_save_MAGIC_CMD"
7107  ;;
7108esac
7109fi
7110
7111MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112if test -n "$MAGIC_CMD"; then
7113  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7114$as_echo "$MAGIC_CMD" >&6; }
7115else
7116  { $as_echo "$as_me:$LINENO: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120  else
7121    MAGIC_CMD=:
7122  fi
7123fi
7124
7125  fi
7126  ;;
7127esac
7128
7129
7130  case $host_os in
7131    rhapsody* | darwin*)
7132    if test -n "$ac_tool_prefix"; then
7133  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7136$as_echo_n "checking for $ac_word... " >&6; }
7137if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7138  $as_echo_n "(cached) " >&6
7139else
7140  if test -n "$DSYMUTIL"; then
7141  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_exec_ext in '' $ac_executable_extensions; do
7149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7151    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160DSYMUTIL=$ac_cv_prog_DSYMUTIL
7161if test -n "$DSYMUTIL"; then
7162  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7163$as_echo "$DSYMUTIL" >&6; }
7164else
7165  { $as_echo "$as_me:$LINENO: result: no" >&5
7166$as_echo "no" >&6; }
7167fi
7168
7169
7170fi
7171if test -z "$ac_cv_prog_DSYMUTIL"; then
7172  ac_ct_DSYMUTIL=$DSYMUTIL
7173  # Extract the first word of "dsymutil", so it can be a program name with args.
7174set dummy dsymutil; ac_word=$2
7175{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
7177if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7178  $as_echo_n "(cached) " >&6
7179else
7180  if test -n "$ac_ct_DSYMUTIL"; then
7181  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186  IFS=$as_save_IFS
7187  test -z "$as_dir" && as_dir=.
7188  for ac_exec_ext in '' $ac_executable_extensions; do
7189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7191    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7201if test -n "$ac_ct_DSYMUTIL"; then
7202  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7203$as_echo "$ac_ct_DSYMUTIL" >&6; }
7204else
7205  { $as_echo "$as_me:$LINENO: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209  if test "x$ac_ct_DSYMUTIL" = x; then
7210    DSYMUTIL=":"
7211  else
7212    case $cross_compiling:$ac_tool_warned in
7213yes:)
7214{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216ac_tool_warned=yes ;;
7217esac
7218    DSYMUTIL=$ac_ct_DSYMUTIL
7219  fi
7220else
7221  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7222fi
7223
7224    if test -n "$ac_tool_prefix"; then
7225  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7228$as_echo_n "checking for $ac_word... " >&6; }
7229if test "${ac_cv_prog_NMEDIT+set}" = set; then
7230  $as_echo_n "(cached) " >&6
7231else
7232  if test -n "$NMEDIT"; then
7233  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238  IFS=$as_save_IFS
7239  test -z "$as_dir" && as_dir=.
7240  for ac_exec_ext in '' $ac_executable_extensions; do
7241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7243    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244    break 2
7245  fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250fi
7251fi
7252NMEDIT=$ac_cv_prog_NMEDIT
7253if test -n "$NMEDIT"; then
7254  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7255$as_echo "$NMEDIT" >&6; }
7256else
7257  { $as_echo "$as_me:$LINENO: result: no" >&5
7258$as_echo "no" >&6; }
7259fi
7260
7261
7262fi
7263if test -z "$ac_cv_prog_NMEDIT"; then
7264  ac_ct_NMEDIT=$NMEDIT
7265  # Extract the first word of "nmedit", so it can be a program name with args.
7266set dummy nmedit; ac_word=$2
7267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7270  $as_echo_n "(cached) " >&6
7271else
7272  if test -n "$ac_ct_NMEDIT"; then
7273  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280  for ac_exec_ext in '' $ac_executable_extensions; do
7281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7283    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7293if test -n "$ac_ct_NMEDIT"; then
7294  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7295$as_echo "$ac_ct_NMEDIT" >&6; }
7296else
7297  { $as_echo "$as_me:$LINENO: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301  if test "x$ac_ct_NMEDIT" = x; then
7302    NMEDIT=":"
7303  else
7304    case $cross_compiling:$ac_tool_warned in
7305yes:)
7306{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308ac_tool_warned=yes ;;
7309esac
7310    NMEDIT=$ac_ct_NMEDIT
7311  fi
7312else
7313  NMEDIT="$ac_cv_prog_NMEDIT"
7314fi
7315
7316
7317    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7318$as_echo_n "checking for -single_module linker flag... " >&6; }
7319if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7320  $as_echo_n "(cached) " >&6
7321else
7322  lt_cv_apple_cc_single_mod=no
7323      if test -z "${LT_MULTI_MODULE}"; then
7324   # By default we will add the -single_module flag. You can override
7325   # by either setting the environment variable LT_MULTI_MODULE
7326   # non-empty at configure time, or by adding -multi_module to the
7327   # link flags.
7328   echo "int foo(void){return 1;}" > conftest.c
7329   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7330     -dynamiclib ${wl}-single_module conftest.c
7331   if test -f libconftest.dylib; then
7332     lt_cv_apple_cc_single_mod=yes
7333     rm -rf libconftest.dylib*
7334   fi
7335   rm conftest.c
7336      fi
7337fi
7338{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7339$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7340    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7341$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7342if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7343  $as_echo_n "(cached) " >&6
7344else
7345  lt_cv_ld_exported_symbols_list=no
7346      save_LDFLAGS=$LDFLAGS
7347      echo "_main" > conftest.sym
7348      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7349      cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h.  */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h.  */
7355
7356int
7357main ()
7358{
7359
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext conftest$ac_exeext
7365if { (ac_try="$ac_link"
7366case "(($ac_try" in
7367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368  *) ac_try_echo=$ac_try;;
7369esac
7370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7371$as_echo "$ac_try_echo") >&5
7372  (eval "$ac_link") 2>conftest.er1
7373  ac_status=$?
7374  grep -v '^ *+' conftest.er1 >conftest.err
7375  rm -f conftest.er1
7376  cat conftest.err >&5
7377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); } && {
7379	 test -z "$ac_c_werror_flag" ||
7380	 test ! -s conftest.err
7381       } && test -s conftest$ac_exeext && {
7382	 test "$cross_compiling" = yes ||
7383	 $as_test_x conftest$ac_exeext
7384       }; then
7385  lt_cv_ld_exported_symbols_list=yes
7386else
7387  $as_echo "$as_me: failed program was:" >&5
7388sed 's/^/| /' conftest.$ac_ext >&5
7389
7390	lt_cv_ld_exported_symbols_list=no
7391fi
7392
7393rm -rf conftest.dSYM
7394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7395      conftest$ac_exeext conftest.$ac_ext
7396   LDFLAGS="$save_LDFLAGS"
7397
7398fi
7399{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7400$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7401    case $host_os in
7402    rhapsody* | darwin1.[0123])
7403      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7404    darwin1.*)
7405     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7406    darwin*)
7407      # if running on 10.5 or later, the deployment target defaults
7408      # to the OS version, if on x86, and 10.4, the deployment
7409      # target defaults to 10.4. Don't you love it?
7410      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7411   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7412     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7413   10.[012]*)
7414     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7415   10.*)
7416     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7417      esac
7418    ;;
7419  esac
7420    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7421      _lt_dar_single_mod='$single_module'
7422    fi
7423    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7424      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7425    else
7426      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7427    fi
7428    if test "$DSYMUTIL" != ":"; then
7429      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7430    else
7431      _lt_dsymutil=
7432    fi
7433    ;;
7434  esac
7435
7436
7437enable_dlopen=no
7438enable_win32_dll=no
7439
7440# Check whether --enable-libtool-lock was given.
7441if test "${enable_libtool_lock+set}" = set; then
7442  enableval=$enable_libtool_lock;
7443fi
7444
7445test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7446
7447
7448# Check whether --with-pic was given.
7449if test "${with_pic+set}" = set; then
7450  withval=$with_pic; pic_mode="$withval"
7451else
7452  pic_mode=default
7453fi
7454
7455test -z "$pic_mode" && pic_mode=default
7456
7457# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7458#
7459# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7460#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7461#        calls AC_LIBTOOL_CONFIG and creates libtool.
7462#
7463{ $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7464$as_echo_n "checking for correct ltmain.sh version... " >&6; }
7465if test "x$ltmain" = "x" ; then
7466  { $as_echo "$as_me:$LINENO: result: no" >&5
7467$as_echo "no" >&6; }
7468  { { $as_echo "$as_me:$LINENO: error:
7469
7470*** [Gentoo] sanity check failed! ***
7471*** \$ltmain is not defined, please check the patch for consistency! ***
7472" >&5
7473$as_echo "$as_me: error:
7474
7475*** [Gentoo] sanity check failed! ***
7476*** \$ltmain is not defined, please check the patch for consistency! ***
7477" >&2;}
7478   { (exit 1); exit 1; }; }
7479fi
7480gentoo_lt_version="1.5.26"
7481gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
7482if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7483  { $as_echo "$as_me:$LINENO: result: no" >&5
7484$as_echo "no" >&6; }
7485  { { $as_echo "$as_me:$LINENO: error:
7486
7487*** [Gentoo] sanity check failed! ***
7488*** libtool.m4 and ltmain.sh have a version mismatch! ***
7489*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7490
7491Please run:
7492
7493  libtoolize --copy --force
7494
7495if appropriate, please contact the maintainer of this
7496package (or your distribution) for help.
7497" >&5
7498$as_echo "$as_me: error:
7499
7500*** [Gentoo] sanity check failed! ***
7501*** libtool.m4 and ltmain.sh have a version mismatch! ***
7502*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7503
7504Please run:
7505
7506  libtoolize --copy --force
7507
7508if appropriate, please contact the maintainer of this
7509package (or your distribution) for help.
7510" >&2;}
7511   { (exit 1); exit 1; }; }
7512else
7513  { $as_echo "$as_me:$LINENO: result: yes" >&5
7514$as_echo "yes" >&6; }
7515fi
7516
7517
7518# Use C for the default configuration in the libtool script
7519tagname=
7520lt_save_CC="$CC"
7521ac_ext=c
7522ac_cpp='$CPP $CPPFLAGS'
7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527
7528# Source file extension for C test sources.
7529ac_ext=c
7530
7531# Object file extension for compiled C test sources.
7532objext=o
7533objext=$objext
7534
7535# Code to be used in simple compile tests
7536lt_simple_compile_test_code="int some_variable = 0;"
7537
7538# Code to be used in simple link tests
7539lt_simple_link_test_code='int main(){return(0);}'
7540
7541
7542# If no C compiler was specified, use CC.
7543LTCC=${LTCC-"$CC"}
7544
7545# If no C compiler flags were specified, use CFLAGS.
7546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7547
7548# Allow CC to be a program name with arguments.
7549compiler=$CC
7550
7551
7552# save warnings/boilerplate of simple test code
7553ac_outfile=conftest.$ac_objext
7554echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7556_lt_compiler_boilerplate=`cat conftest.err`
7557$rm conftest*
7558
7559ac_outfile=conftest.$ac_objext
7560echo "$lt_simple_link_test_code" >conftest.$ac_ext
7561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7562_lt_linker_boilerplate=`cat conftest.err`
7563$rm -r conftest*
7564
7565
7566
7567lt_prog_compiler_no_builtin_flag=
7568
7569if test "$GCC" = yes; then
7570  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7571
7572
7573{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7574$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7575if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7576  $as_echo_n "(cached) " >&6
7577else
7578  lt_cv_prog_compiler_rtti_exceptions=no
7579  ac_outfile=conftest.$ac_objext
7580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581   lt_compiler_flag="-fno-rtti -fno-exceptions"
7582   # Insert the option either (1) after the last *FLAGS variable, or
7583   # (2) before a word containing "conftest.", or (3) at the end.
7584   # Note that $ac_compile itself does not contain backslashes and begins
7585   # with a dollar sign (not a hyphen), so the echo should work correctly.
7586   # The option is referenced via a variable to avoid confusing sed.
7587   lt_compile=`echo "$ac_compile" | $SED \
7588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590   -e 's:$: $lt_compiler_flag:'`
7591   (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592   (eval "$lt_compile" 2>conftest.err)
7593   ac_status=$?
7594   cat conftest.err >&5
7595   echo "$as_me:7595: \$? = $ac_status" >&5
7596   if (exit $ac_status) && test -s "$ac_outfile"; then
7597     # The compiler can only warn and ignore the option if not recognized
7598     # So say no if there are warnings other than the usual output.
7599     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602       lt_cv_prog_compiler_rtti_exceptions=yes
7603     fi
7604   fi
7605   $rm conftest*
7606
7607fi
7608{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7609$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7610
7611if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7612    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7613else
7614    :
7615fi
7616
7617fi
7618
7619lt_prog_compiler_wl=
7620lt_prog_compiler_pic=
7621lt_prog_compiler_static=
7622
7623{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7624$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7625
7626  if test "$GCC" = yes; then
7627    lt_prog_compiler_wl='-Wl,'
7628    lt_prog_compiler_static='-static'
7629
7630    case $host_os in
7631      aix*)
7632      # All AIX code is PIC.
7633      if test "$host_cpu" = ia64; then
7634	# AIX 5 now supports IA64 processor
7635	lt_prog_compiler_static='-Bstatic'
7636      fi
7637      ;;
7638
7639    amigaos*)
7640      # FIXME: we need at least 68020 code to build shared libraries, but
7641      # adding the `-m68020' flag to GCC prevents building anything better,
7642      # like `-m68040'.
7643      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7644      ;;
7645
7646    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7647      # PIC is the default for these OSes.
7648      ;;
7649
7650    mingw* | cygwin* | pw32* | os2*)
7651      # This hack is so that the source file can tell whether it is being
7652      # built for inclusion in a dll (and should export symbols for example).
7653      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7654      # (--disable-auto-import) libraries
7655      lt_prog_compiler_pic='-DDLL_EXPORT'
7656      ;;
7657
7658    darwin* | rhapsody*)
7659      # PIC is the default on this platform
7660      # Common symbols not allowed in MH_DYLIB files
7661      lt_prog_compiler_pic='-fno-common'
7662      ;;
7663
7664    interix[3-9]*)
7665      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7666      # Instead, we relocate shared libraries at runtime.
7667      ;;
7668
7669    msdosdjgpp*)
7670      # Just because we use GCC doesn't mean we suddenly get shared libraries
7671      # on systems that don't support them.
7672      lt_prog_compiler_can_build_shared=no
7673      enable_shared=no
7674      ;;
7675
7676    sysv4*MP*)
7677      if test -d /usr/nec; then
7678	lt_prog_compiler_pic=-Kconform_pic
7679      fi
7680      ;;
7681
7682    hpux*)
7683      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7684      # not for PA HP-UX.
7685      case $host_cpu in
7686      hppa*64*|ia64*)
7687	# +Z the default
7688	;;
7689      *)
7690	lt_prog_compiler_pic='-fPIC'
7691	;;
7692      esac
7693      ;;
7694
7695    *)
7696      lt_prog_compiler_pic='-fPIC'
7697      ;;
7698    esac
7699  else
7700    # PORTME Check for flag to pass linker flags through the system compiler.
7701    case $host_os in
7702    aix*)
7703      lt_prog_compiler_wl='-Wl,'
7704      if test "$host_cpu" = ia64; then
7705	# AIX 5 now supports IA64 processor
7706	lt_prog_compiler_static='-Bstatic'
7707      else
7708	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7709      fi
7710      ;;
7711      darwin*)
7712        # PIC is the default on this platform
7713        # Common symbols not allowed in MH_DYLIB files
7714       case $cc_basename in
7715         xlc*)
7716         lt_prog_compiler_pic='-qnocommon'
7717         lt_prog_compiler_wl='-Wl,'
7718         ;;
7719       esac
7720       ;;
7721
7722    mingw* | cygwin* | pw32* | os2*)
7723      # This hack is so that the source file can tell whether it is being
7724      # built for inclusion in a dll (and should export symbols for example).
7725      lt_prog_compiler_pic='-DDLL_EXPORT'
7726      ;;
7727
7728    hpux9* | hpux10* | hpux11*)
7729      lt_prog_compiler_wl='-Wl,'
7730      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7731      # not for PA HP-UX.
7732      case $host_cpu in
7733      hppa*64*|ia64*)
7734	# +Z the default
7735	;;
7736      *)
7737	lt_prog_compiler_pic='+Z'
7738	;;
7739      esac
7740      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7741      lt_prog_compiler_static='${wl}-a ${wl}archive'
7742      ;;
7743
7744    irix5* | irix6* | nonstopux*)
7745      lt_prog_compiler_wl='-Wl,'
7746      # PIC (with -KPIC) is the default.
7747      lt_prog_compiler_static='-non_shared'
7748      ;;
7749
7750    newsos6)
7751      lt_prog_compiler_pic='-KPIC'
7752      lt_prog_compiler_static='-Bstatic'
7753      ;;
7754
7755    linux* | k*bsd*-gnu)
7756      case $cc_basename in
7757      icc* | ecc*)
7758	lt_prog_compiler_wl='-Wl,'
7759	lt_prog_compiler_pic='-KPIC'
7760	lt_prog_compiler_static='-static'
7761        ;;
7762      pgcc* | pgf77* | pgf90* | pgf95*)
7763        # Portland Group compilers (*not* the Pentium gcc compiler,
7764	# which looks to be a dead project)
7765	lt_prog_compiler_wl='-Wl,'
7766	lt_prog_compiler_pic='-fpic'
7767	lt_prog_compiler_static='-Bstatic'
7768        ;;
7769      ccc*)
7770        lt_prog_compiler_wl='-Wl,'
7771        # All Alpha code is PIC.
7772        lt_prog_compiler_static='-non_shared'
7773        ;;
7774      *)
7775        case `$CC -V 2>&1 | sed 5q` in
7776	*Sun\ C*)
7777	  # Sun C 5.9
7778	  lt_prog_compiler_pic='-KPIC'
7779	  lt_prog_compiler_static='-Bstatic'
7780	  lt_prog_compiler_wl='-Wl,'
7781	  ;;
7782	*Sun\ F*)
7783	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7784	  lt_prog_compiler_pic='-KPIC'
7785	  lt_prog_compiler_static='-Bstatic'
7786	  lt_prog_compiler_wl=''
7787	  ;;
7788	esac
7789	;;
7790      esac
7791      ;;
7792
7793    osf3* | osf4* | osf5*)
7794      lt_prog_compiler_wl='-Wl,'
7795      # All OSF/1 code is PIC.
7796      lt_prog_compiler_static='-non_shared'
7797      ;;
7798
7799    rdos*)
7800      lt_prog_compiler_static='-non_shared'
7801      ;;
7802
7803    solaris*)
7804      lt_prog_compiler_pic='-KPIC'
7805      lt_prog_compiler_static='-Bstatic'
7806      case $cc_basename in
7807      f77* | f90* | f95*)
7808	lt_prog_compiler_wl='-Qoption ld ';;
7809      *)
7810	lt_prog_compiler_wl='-Wl,';;
7811      esac
7812      ;;
7813
7814    sunos4*)
7815      lt_prog_compiler_wl='-Qoption ld '
7816      lt_prog_compiler_pic='-PIC'
7817      lt_prog_compiler_static='-Bstatic'
7818      ;;
7819
7820    sysv4 | sysv4.2uw2* | sysv4.3*)
7821      lt_prog_compiler_wl='-Wl,'
7822      lt_prog_compiler_pic='-KPIC'
7823      lt_prog_compiler_static='-Bstatic'
7824      ;;
7825
7826    sysv4*MP*)
7827      if test -d /usr/nec ;then
7828	lt_prog_compiler_pic='-Kconform_pic'
7829	lt_prog_compiler_static='-Bstatic'
7830      fi
7831      ;;
7832
7833    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7834      lt_prog_compiler_wl='-Wl,'
7835      lt_prog_compiler_pic='-KPIC'
7836      lt_prog_compiler_static='-Bstatic'
7837      ;;
7838
7839    unicos*)
7840      lt_prog_compiler_wl='-Wl,'
7841      lt_prog_compiler_can_build_shared=no
7842      ;;
7843
7844    uts4*)
7845      lt_prog_compiler_pic='-pic'
7846      lt_prog_compiler_static='-Bstatic'
7847      ;;
7848
7849    *)
7850      lt_prog_compiler_can_build_shared=no
7851      ;;
7852    esac
7853  fi
7854
7855{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7856$as_echo "$lt_prog_compiler_pic" >&6; }
7857
7858#
7859# Check to make sure the PIC flag actually works.
7860#
7861if test -n "$lt_prog_compiler_pic"; then
7862
7863{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7864$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7865if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7866  $as_echo_n "(cached) " >&6
7867else
7868  lt_cv_prog_compiler_pic_works=no
7869  ac_outfile=conftest.$ac_objext
7870   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7871   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7872   # Insert the option either (1) after the last *FLAGS variable, or
7873   # (2) before a word containing "conftest.", or (3) at the end.
7874   # Note that $ac_compile itself does not contain backslashes and begins
7875   # with a dollar sign (not a hyphen), so the echo should work correctly.
7876   # The option is referenced via a variable to avoid confusing sed.
7877   lt_compile=`echo "$ac_compile" | $SED \
7878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7880   -e 's:$: $lt_compiler_flag:'`
7881   (eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
7882   (eval "$lt_compile" 2>conftest.err)
7883   ac_status=$?
7884   cat conftest.err >&5
7885   echo "$as_me:7885: \$? = $ac_status" >&5
7886   if (exit $ac_status) && test -s "$ac_outfile"; then
7887     # The compiler can only warn and ignore the option if not recognized
7888     # So say no if there are warnings other than the usual output.
7889     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7890     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7891     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7892       lt_cv_prog_compiler_pic_works=yes
7893     fi
7894   fi
7895   $rm conftest*
7896
7897fi
7898{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7899$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7900
7901if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7902    case $lt_prog_compiler_pic in
7903     "" | " "*) ;;
7904     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7905     esac
7906else
7907    lt_prog_compiler_pic=
7908     lt_prog_compiler_can_build_shared=no
7909fi
7910
7911fi
7912case $host_os in
7913  # For platforms which do not support PIC, -DPIC is meaningless:
7914  *djgpp*)
7915    lt_prog_compiler_pic=
7916    ;;
7917  *)
7918    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7919    ;;
7920esac
7921
7922#
7923# Check to make sure the static flag actually works.
7924#
7925wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7926{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7928if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7929  $as_echo_n "(cached) " >&6
7930else
7931  lt_cv_prog_compiler_static_works=no
7932   save_LDFLAGS="$LDFLAGS"
7933   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7934   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7935   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7936     # The linker can only warn and ignore the option if not recognized
7937     # So say no if there are warnings
7938     if test -s conftest.err; then
7939       # Append any errors to the config.log.
7940       cat conftest.err 1>&5
7941       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7942       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7943       if diff conftest.exp conftest.er2 >/dev/null; then
7944         lt_cv_prog_compiler_static_works=yes
7945       fi
7946     else
7947       lt_cv_prog_compiler_static_works=yes
7948     fi
7949   fi
7950   $rm -r conftest*
7951   LDFLAGS="$save_LDFLAGS"
7952
7953fi
7954{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7955$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7956
7957if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7958    :
7959else
7960    lt_prog_compiler_static=
7961fi
7962
7963
7964{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7965$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7966if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7967  $as_echo_n "(cached) " >&6
7968else
7969  lt_cv_prog_compiler_c_o=no
7970   $rm -r conftest 2>/dev/null
7971   mkdir conftest
7972   cd conftest
7973   mkdir out
7974   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975
7976   lt_compiler_flag="-o out/conftest2.$ac_objext"
7977   # Insert the option either (1) after the last *FLAGS variable, or
7978   # (2) before a word containing "conftest.", or (3) at the end.
7979   # Note that $ac_compile itself does not contain backslashes and begins
7980   # with a dollar sign (not a hyphen), so the echo should work correctly.
7981   lt_compile=`echo "$ac_compile" | $SED \
7982   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984   -e 's:$: $lt_compiler_flag:'`
7985   (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986   (eval "$lt_compile" 2>out/conftest.err)
7987   ac_status=$?
7988   cat out/conftest.err >&5
7989   echo "$as_me:7989: \$? = $ac_status" >&5
7990   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7991   then
7992     # The compiler can only warn and ignore the option if not recognized
7993     # So say no if there are warnings
7994     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7995     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7996     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7997       lt_cv_prog_compiler_c_o=yes
7998     fi
7999   fi
8000   chmod u+w . 2>&5
8001   $rm conftest*
8002   # SGI C++ compiler will create directory out/ii_files/ for
8003   # template instantiation
8004   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8005   $rm out/* && rmdir out
8006   cd ..
8007   rmdir conftest
8008   $rm conftest*
8009
8010fi
8011{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8012$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8013
8014
8015hard_links="nottested"
8016if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8017  # do not overwrite the value of need_locks provided by the user
8018  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8019$as_echo_n "checking if we can lock with hard links... " >&6; }
8020  hard_links=yes
8021  $rm conftest*
8022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8023  touch conftest.a
8024  ln conftest.a conftest.b 2>&5 || hard_links=no
8025  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8026  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8027$as_echo "$hard_links" >&6; }
8028  if test "$hard_links" = no; then
8029    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8030$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8031    need_locks=warn
8032  fi
8033else
8034  need_locks=no
8035fi
8036
8037{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8038$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8039
8040  runpath_var=
8041  allow_undefined_flag=
8042  enable_shared_with_static_runtimes=no
8043  archive_cmds=
8044  archive_expsym_cmds=
8045  old_archive_From_new_cmds=
8046  old_archive_from_expsyms_cmds=
8047  export_dynamic_flag_spec=
8048  whole_archive_flag_spec=
8049  thread_safe_flag_spec=
8050  hardcode_libdir_flag_spec=
8051  hardcode_libdir_flag_spec_ld=
8052  hardcode_libdir_separator=
8053  hardcode_direct=no
8054  hardcode_minus_L=no
8055  hardcode_shlibpath_var=unsupported
8056  link_all_deplibs=unknown
8057  hardcode_automatic=no
8058  module_cmds=
8059  module_expsym_cmds=
8060  always_export_symbols=no
8061  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8062  # include_expsyms should be a list of space-separated symbols to be *always*
8063  # included in the symbol list
8064  include_expsyms=
8065  # exclude_expsyms can be an extended regexp of symbols to exclude
8066  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8067  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8068  # as well as any symbol that contains `d'.
8069  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8070  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8071  # platforms (ab)use it in PIC code, but their linkers get confused if
8072  # the symbol is explicitly referenced.  Since portable code cannot
8073  # rely on this symbol name, it's probably fine to never include it in
8074  # preloaded symbol tables.
8075  # Exclude shared library initialization/finalization symbols.
8076  extract_expsyms_cmds=
8077  # Just being paranoid about ensuring that cc_basename is set.
8078  for cc_temp in $compiler""; do
8079  case $cc_temp in
8080    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8081    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8082    \-*) ;;
8083    *) break;;
8084  esac
8085done
8086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8087
8088  case $host_os in
8089  cygwin* | mingw* | pw32*)
8090    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8091    # When not using gcc, we currently assume that we are using
8092    # Microsoft Visual C++.
8093    if test "$GCC" != yes; then
8094      with_gnu_ld=no
8095    fi
8096    ;;
8097  interix*)
8098    # we just hope/assume this is gcc and not c89 (= MSVC++)
8099    with_gnu_ld=yes
8100    ;;
8101  openbsd*)
8102    with_gnu_ld=no
8103    ;;
8104  esac
8105
8106  ld_shlibs=yes
8107  if test "$with_gnu_ld" = yes; then
8108    # If archive_cmds runs LD, not CC, wlarc should be empty
8109    wlarc='${wl}'
8110
8111    # Set some defaults for GNU ld with shared library support. These
8112    # are reset later if shared libraries are not supported. Putting them
8113    # here allows them to be overridden if necessary.
8114    runpath_var=LD_RUN_PATH
8115    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8116    export_dynamic_flag_spec='${wl}--export-dynamic'
8117    # ancient GNU ld didn't support --whole-archive et. al.
8118    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8119	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8120      else
8121  	whole_archive_flag_spec=
8122    fi
8123    supports_anon_versioning=no
8124    case `$LD -v 2>/dev/null` in
8125      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8126      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8127      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8128      *\ 2.11.*) ;; # other 2.11 versions
8129      *) supports_anon_versioning=yes ;;
8130    esac
8131
8132    # See if GNU ld supports shared libraries.
8133    case $host_os in
8134    aix[3-9]*)
8135      # On AIX/PPC, the GNU linker is very broken
8136      if test "$host_cpu" != ia64; then
8137	ld_shlibs=no
8138	cat <<EOF 1>&2
8139
8140*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8141*** to be unable to reliably create shared libraries on AIX.
8142*** Therefore, libtool is disabling shared libraries support.  If you
8143*** really care for shared libraries, you may want to modify your PATH
8144*** so that a non-GNU linker is found, and then restart.
8145
8146EOF
8147      fi
8148      ;;
8149
8150    amigaos*)
8151      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)'
8152      hardcode_libdir_flag_spec='-L$libdir'
8153      hardcode_minus_L=yes
8154
8155      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8156      # that the semantics of dynamic libraries on AmigaOS, at least up
8157      # to version 4, is to share data among multiple programs linked
8158      # with the same dynamic library.  Since this doesn't match the
8159      # behavior of shared libraries on other platforms, we can't use
8160      # them.
8161      ld_shlibs=no
8162      ;;
8163
8164    beos*)
8165      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166	allow_undefined_flag=unsupported
8167	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8168	# support --undefined.  This deserves some investigation.  FIXME
8169	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8170      else
8171	ld_shlibs=no
8172      fi
8173      ;;
8174
8175    cygwin* | mingw* | pw32*)
8176      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8177      # as there is no search path for DLLs.
8178      hardcode_libdir_flag_spec='-L$libdir'
8179      allow_undefined_flag=unsupported
8180      always_export_symbols=no
8181      enable_shared_with_static_runtimes=yes
8182      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8183
8184      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8185        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8186	# If the export-symbols file already is a .def file (1st line
8187	# is EXPORTS), use it as is; otherwise, prepend...
8188	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8189	  cp $export_symbols $output_objdir/$soname.def;
8190	else
8191	  echo EXPORTS > $output_objdir/$soname.def;
8192	  cat $export_symbols >> $output_objdir/$soname.def;
8193	fi~
8194	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8195      else
8196	ld_shlibs=no
8197      fi
8198      ;;
8199
8200    interix[3-9]*)
8201      hardcode_direct=no
8202      hardcode_shlibpath_var=no
8203      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8204      export_dynamic_flag_spec='${wl}-E'
8205      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8206      # Instead, shared libraries are loaded at an image base (0x10000000 by
8207      # default) and relocated if they conflict, which is a slow very memory
8208      # consuming and fragmenting process.  To avoid this, we pick a random,
8209      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8210      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8211      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8212      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'
8213      ;;
8214
8215    gnu* | linux* | k*bsd*-gnu)
8216      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8217	tmp_addflag=
8218	case $cc_basename,$host_cpu in
8219	pgcc*)				# Portland Group C compiler
8220	  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'
8221	  tmp_addflag=' $pic_flag'
8222	  ;;
8223	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8224	  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'
8225	  tmp_addflag=' $pic_flag -Mnomain' ;;
8226	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8227	  tmp_addflag=' -i_dynamic' ;;
8228	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8229	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8230	ifc* | ifort*)			# Intel Fortran compiler
8231	  tmp_addflag=' -nofor_main' ;;
8232	esac
8233	case `$CC -V 2>&1 | sed 5q` in
8234	*Sun\ C*)			# Sun C 5.9
8235	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8236	  tmp_sharedflag='-G' ;;
8237	*Sun\ F*)			# Sun Fortran 8.3
8238	  tmp_sharedflag='-G' ;;
8239	*)
8240	  tmp_sharedflag='-shared' ;;
8241	esac
8242	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243
8244	if test $supports_anon_versioning = yes; then
8245	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8246  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8247  $echo "local: *; };" >> $output_objdir/$libname.ver~
8248	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8249	fi
8250      else
8251	ld_shlibs=no
8252      fi
8253      ;;
8254
8255    netbsd*)
8256      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8257	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8258	wlarc=
8259      else
8260	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262      fi
8263      ;;
8264
8265    solaris*)
8266      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8267	ld_shlibs=no
8268	cat <<EOF 1>&2
8269
8270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8271*** create shared libraries on Solaris systems.  Therefore, libtool
8272*** is disabling shared libraries support.  We urge you to upgrade GNU
8273*** binutils to release 2.9.1 or newer.  Another option is to modify
8274*** your PATH or compiler configuration so that the native linker is
8275*** used, and then restart.
8276
8277EOF
8278      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281      else
8282	ld_shlibs=no
8283      fi
8284      ;;
8285
8286    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8287      case `$LD -v 2>&1` in
8288        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8289	ld_shlibs=no
8290	cat <<_LT_EOF 1>&2
8291
8292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8293*** reliably create shared libraries on SCO systems.  Therefore, libtool
8294*** is disabling shared libraries support.  We urge you to upgrade GNU
8295*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8296*** your PATH or compiler configuration so that the native linker is
8297*** used, and then restart.
8298
8299_LT_EOF
8300	;;
8301	*)
8302	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8303	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8304	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8305	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8306	  else
8307	    ld_shlibs=no
8308	  fi
8309	;;
8310      esac
8311      ;;
8312
8313    sunos4*)
8314      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8315      wlarc=
8316      hardcode_direct=yes
8317      hardcode_shlibpath_var=no
8318      ;;
8319
8320    *)
8321      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8322	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8324      else
8325	ld_shlibs=no
8326      fi
8327      ;;
8328    esac
8329
8330    if test "$ld_shlibs" = no; then
8331      runpath_var=
8332      hardcode_libdir_flag_spec=
8333      export_dynamic_flag_spec=
8334      whole_archive_flag_spec=
8335    fi
8336  else
8337    # PORTME fill in a description of your system's linker (not GNU ld)
8338    case $host_os in
8339    aix3*)
8340      allow_undefined_flag=unsupported
8341      always_export_symbols=yes
8342      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'
8343      # Note: this linker hardcodes the directories in LIBPATH if there
8344      # are no directories specified by -L.
8345      hardcode_minus_L=yes
8346      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8347	# Neither direct hardcoding nor static linking is supported with a
8348	# broken collect2.
8349	hardcode_direct=unsupported
8350      fi
8351      ;;
8352
8353    aix[4-9]*)
8354      if test "$host_cpu" = ia64; then
8355	# On IA64, the linker does run time linking by default, so we don't
8356	# have to do anything special.
8357	aix_use_runtimelinking=no
8358	exp_sym_flag='-Bexport'
8359	no_entry_flag=""
8360      else
8361	# If we're using GNU nm, then we don't want the "-C" option.
8362	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8363	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8364	  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'
8365	else
8366	  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'
8367	fi
8368	aix_use_runtimelinking=no
8369
8370	# Test if we are trying to use run time linking or normal
8371	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8372	# need to do runtime linking.
8373	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8374	  for ld_flag in $LDFLAGS; do
8375  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8376  	    aix_use_runtimelinking=yes
8377  	    break
8378  	  fi
8379	  done
8380	  ;;
8381	esac
8382
8383	exp_sym_flag='-bexport'
8384	no_entry_flag='-bnoentry'
8385      fi
8386
8387      # When large executables or shared objects are built, AIX ld can
8388      # have problems creating the table of contents.  If linking a library
8389      # or program results in "error TOC overflow" add -mminimal-toc to
8390      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8391      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8392
8393      archive_cmds=''
8394      hardcode_direct=yes
8395      hardcode_libdir_separator=':'
8396      link_all_deplibs=yes
8397
8398      if test "$GCC" = yes; then
8399	case $host_os in aix4.[012]|aix4.[012].*)
8400	# We only want to do this on AIX 4.2 and lower, the check
8401	# below for broken collect2 doesn't work under 4.3+
8402	  collect2name=`${CC} -print-prog-name=collect2`
8403	  if test -f "$collect2name" && \
8404  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8405	  then
8406  	  # We have reworked collect2
8407  	  :
8408	  else
8409  	  # We have old collect2
8410  	  hardcode_direct=unsupported
8411  	  # It fails to find uninstalled libraries when the uninstalled
8412  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8413  	  # to unsupported forces relinking
8414  	  hardcode_minus_L=yes
8415  	  hardcode_libdir_flag_spec='-L$libdir'
8416  	  hardcode_libdir_separator=
8417	  fi
8418	  ;;
8419	esac
8420	shared_flag='-shared'
8421	if test "$aix_use_runtimelinking" = yes; then
8422	  shared_flag="$shared_flag "'${wl}-G'
8423	fi
8424      else
8425	# not using gcc
8426	if test "$host_cpu" = ia64; then
8427  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8428  	# chokes on -Wl,-G. The following line is correct:
8429	  shared_flag='-G'
8430	else
8431	  if test "$aix_use_runtimelinking" = yes; then
8432	    shared_flag='${wl}-G'
8433	  else
8434	    shared_flag='${wl}-bM:SRE'
8435	  fi
8436	fi
8437      fi
8438
8439      # It seems that -bexpall does not export symbols beginning with
8440      # underscore (_), so it is better to generate a list of symbols to export.
8441      always_export_symbols=yes
8442      if test "$aix_use_runtimelinking" = yes; then
8443	# Warning - without using the other runtime loading flags (-brtl),
8444	# -berok will link without error, but may produce a broken library.
8445	allow_undefined_flag='-berok'
8446       # Determine the default libpath from the value encoded in an empty executable.
8447       cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h.  */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h.  */
8453
8454int
8455main ()
8456{
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (ac_try="$ac_link"
8464case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469$as_echo "$ac_try_echo") >&5
8470  (eval "$ac_link") 2>conftest.er1
8471  ac_status=$?
8472  grep -v '^ *+' conftest.er1 >conftest.err
8473  rm -f conftest.er1
8474  cat conftest.err >&5
8475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476  (exit $ac_status); } && {
8477	 test -z "$ac_c_werror_flag" ||
8478	 test ! -s conftest.err
8479       } && test -s conftest$ac_exeext && {
8480	 test "$cross_compiling" = yes ||
8481	 $as_test_x conftest$ac_exeext
8482       }; then
8483
8484lt_aix_libpath_sed='
8485    /Import File Strings/,/^$/ {
8486	/^0/ {
8487	    s/^0  *\(.*\)$/\1/
8488	    p
8489	}
8490    }'
8491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492# Check for a 64-bit object if we didn't find anything.
8493if test -z "$aix_libpath"; then
8494  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8495fi
8496else
8497  $as_echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501fi
8502
8503rm -rf conftest.dSYM
8504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8505      conftest$ac_exeext conftest.$ac_ext
8506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
8508       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509	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"
8510       else
8511	if test "$host_cpu" = ia64; then
8512	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8513	  allow_undefined_flag="-z nodefs"
8514	  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"
8515	else
8516	 # Determine the default libpath from the value encoded in an empty executable.
8517	 cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h.  */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h.  */
8523
8524int
8525main ()
8526{
8527
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext conftest$ac_exeext
8533if { (ac_try="$ac_link"
8534case "(($ac_try" in
8535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536  *) ac_try_echo=$ac_try;;
8537esac
8538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8539$as_echo "$ac_try_echo") >&5
8540  (eval "$ac_link") 2>conftest.er1
8541  ac_status=$?
8542  grep -v '^ *+' conftest.er1 >conftest.err
8543  rm -f conftest.er1
8544  cat conftest.err >&5
8545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } && {
8547	 test -z "$ac_c_werror_flag" ||
8548	 test ! -s conftest.err
8549       } && test -s conftest$ac_exeext && {
8550	 test "$cross_compiling" = yes ||
8551	 $as_test_x conftest$ac_exeext
8552       }; then
8553
8554lt_aix_libpath_sed='
8555    /Import File Strings/,/^$/ {
8556	/^0/ {
8557	    s/^0  *\(.*\)$/\1/
8558	    p
8559	}
8560    }'
8561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8562# Check for a 64-bit object if we didn't find anything.
8563if test -z "$aix_libpath"; then
8564  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8565fi
8566else
8567  $as_echo "$as_me: failed program was:" >&5
8568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570
8571fi
8572
8573rm -rf conftest.dSYM
8574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575      conftest$ac_exeext conftest.$ac_ext
8576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8577
8578	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8579	  # Warning - without using the other run time loading flags,
8580	  # -berok will link without error, but may produce a broken library.
8581	  no_undefined_flag=' ${wl}-bernotok'
8582	  allow_undefined_flag=' ${wl}-berok'
8583	  # Exported symbols can be pulled into shared objects from archives
8584	  whole_archive_flag_spec='$convenience'
8585	  archive_cmds_need_lc=yes
8586	  # This is similar to how AIX traditionally builds its shared libraries.
8587	  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'
8588	fi
8589      fi
8590      ;;
8591
8592    amigaos*)
8593      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)'
8594      hardcode_libdir_flag_spec='-L$libdir'
8595      hardcode_minus_L=yes
8596      # see comment about different semantics on the GNU ld section
8597      ld_shlibs=no
8598      ;;
8599
8600    bsdi[45]*)
8601      export_dynamic_flag_spec=-rdynamic
8602      ;;
8603
8604    cygwin* | mingw* | pw32*)
8605      # When not using gcc, we currently assume that we are using
8606      # Microsoft Visual C++.
8607      # hardcode_libdir_flag_spec is actually meaningless, as there is
8608      # no search path for DLLs.
8609      hardcode_libdir_flag_spec=' '
8610      allow_undefined_flag=unsupported
8611      # Tell ltmain to make .lib files, not .a files.
8612      libext=lib
8613      # Tell ltmain to make .dll files, not .so files.
8614      shrext_cmds=".dll"
8615      # FIXME: Setting linknames here is a bad hack.
8616      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8617      # The linker will automatically build a .lib file if we build a DLL.
8618      old_archive_From_new_cmds='true'
8619      # FIXME: Should let the user specify the lib program.
8620      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8621      fix_srcfile_path='`cygpath -w "$srcfile"`'
8622      enable_shared_with_static_runtimes=yes
8623      ;;
8624
8625    darwin* | rhapsody*)
8626      case $host_os in
8627        rhapsody* | darwin1.[012])
8628         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8629         ;;
8630       *) # Darwin 1.3 on
8631         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8632           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8633         else
8634           case ${MACOSX_DEPLOYMENT_TARGET} in
8635             10.[012])
8636               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8637               ;;
8638             10.*)
8639               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8640               ;;
8641           esac
8642         fi
8643         ;;
8644      esac
8645      archive_cmds_need_lc=no
8646      hardcode_direct=no
8647      hardcode_automatic=yes
8648      hardcode_shlibpath_var=unsupported
8649      whole_archive_flag_spec=''
8650      link_all_deplibs=yes
8651    if test "$GCC" = yes ; then
8652    	output_verbose_link_cmd='echo'
8653        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8654        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8655        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8656        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8657    else
8658      case $cc_basename in
8659        xlc*)
8660         output_verbose_link_cmd='echo'
8661         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8662         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8663          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8664         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8665          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}'
8666          ;;
8667       *)
8668         ld_shlibs=no
8669          ;;
8670      esac
8671    fi
8672      ;;
8673
8674    dgux*)
8675      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676      hardcode_libdir_flag_spec='-L$libdir'
8677      hardcode_shlibpath_var=no
8678      ;;
8679
8680    freebsd1*)
8681      ld_shlibs=no
8682      ;;
8683
8684    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8685    # support.  Future versions do this automatically, but an explicit c++rt0.o
8686    # does not break anything, and helps significantly (at the cost of a little
8687    # extra space).
8688    freebsd2.2*)
8689      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8690      hardcode_libdir_flag_spec='-R$libdir'
8691      hardcode_direct=yes
8692      hardcode_shlibpath_var=no
8693      ;;
8694
8695    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8696    freebsd2*)
8697      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8698      hardcode_direct=yes
8699      hardcode_minus_L=yes
8700      hardcode_shlibpath_var=no
8701      ;;
8702
8703    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8704    freebsd* | dragonfly*)
8705      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8706      hardcode_libdir_flag_spec='-R$libdir'
8707      hardcode_direct=yes
8708      hardcode_shlibpath_var=no
8709      ;;
8710
8711    hpux9*)
8712      if test "$GCC" = yes; then
8713	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'
8714      else
8715	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'
8716      fi
8717      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8718      hardcode_libdir_separator=:
8719      hardcode_direct=yes
8720
8721      # hardcode_minus_L: Not really in the search PATH,
8722      # but as the default location of the library.
8723      hardcode_minus_L=yes
8724      export_dynamic_flag_spec='${wl}-E'
8725      ;;
8726
8727    hpux10*)
8728      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8729	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730      else
8731	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8732      fi
8733      if test "$with_gnu_ld" = no; then
8734	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8735	hardcode_libdir_separator=:
8736
8737	hardcode_direct=yes
8738	export_dynamic_flag_spec='${wl}-E'
8739
8740	# hardcode_minus_L: Not really in the search PATH,
8741	# but as the default location of the library.
8742	hardcode_minus_L=yes
8743      fi
8744      ;;
8745
8746    hpux11*)
8747      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8748	case $host_cpu in
8749	hppa*64*)
8750	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8751	  ;;
8752	ia64*)
8753	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8754	  ;;
8755	*)
8756	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8757	  ;;
8758	esac
8759      else
8760	case $host_cpu in
8761	hppa*64*)
8762	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8763	  ;;
8764	ia64*)
8765	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8766	  ;;
8767	*)
8768	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8769	  ;;
8770	esac
8771      fi
8772      if test "$with_gnu_ld" = no; then
8773	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8774	hardcode_libdir_separator=:
8775
8776	case $host_cpu in
8777	hppa*64*|ia64*)
8778	  hardcode_libdir_flag_spec_ld='+b $libdir'
8779	  hardcode_direct=no
8780	  hardcode_shlibpath_var=no
8781	  ;;
8782	*)
8783	  hardcode_direct=yes
8784	  export_dynamic_flag_spec='${wl}-E'
8785
8786	  # hardcode_minus_L: Not really in the search PATH,
8787	  # but as the default location of the library.
8788	  hardcode_minus_L=yes
8789	  ;;
8790	esac
8791      fi
8792      ;;
8793
8794    irix5* | irix6* | nonstopux*)
8795      if test "$GCC" = yes; then
8796	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'
8797      else
8798	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'
8799	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8800      fi
8801      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802      hardcode_libdir_separator=:
8803      link_all_deplibs=yes
8804      ;;
8805
8806    netbsd*)
8807      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8808	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8809      else
8810	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8811      fi
8812      hardcode_libdir_flag_spec='-R$libdir'
8813      hardcode_direct=yes
8814      hardcode_shlibpath_var=no
8815      ;;
8816
8817    newsos6)
8818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8819      hardcode_direct=yes
8820      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821      hardcode_libdir_separator=:
8822      hardcode_shlibpath_var=no
8823      ;;
8824
8825    openbsd*)
8826      if test -f /usr/libexec/ld.so; then
8827	hardcode_direct=yes
8828	hardcode_shlibpath_var=no
8829	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8830	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8831	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8832	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8833	  export_dynamic_flag_spec='${wl}-E'
8834	else
8835	  case $host_os in
8836	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8837	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8838	     hardcode_libdir_flag_spec='-R$libdir'
8839	     ;;
8840	   *)
8841	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8842	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8843	     ;;
8844	  esac
8845        fi
8846      else
8847	ld_shlibs=no
8848      fi
8849      ;;
8850
8851    os2*)
8852      hardcode_libdir_flag_spec='-L$libdir'
8853      hardcode_minus_L=yes
8854      allow_undefined_flag=unsupported
8855      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'
8856      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8857      ;;
8858
8859    osf3*)
8860      if test "$GCC" = yes; then
8861	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8862	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'
8863      else
8864	allow_undefined_flag=' -expect_unresolved \*'
8865	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'
8866      fi
8867      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868      hardcode_libdir_separator=:
8869      ;;
8870
8871    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8872      if test "$GCC" = yes; then
8873	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8874	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'
8875	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876      else
8877	allow_undefined_flag=' -expect_unresolved \*'
8878	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'
8879	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8880	$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'
8881
8882	# Both c and cxx compiler support -rpath directly
8883	hardcode_libdir_flag_spec='-rpath $libdir'
8884      fi
8885      hardcode_libdir_separator=:
8886      ;;
8887
8888    solaris*)
8889      no_undefined_flag=' -z text'
8890      if test "$GCC" = yes; then
8891	wlarc='${wl}'
8892	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8895      else
8896	wlarc=''
8897	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8899  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8900      fi
8901      hardcode_libdir_flag_spec='-R$libdir'
8902      hardcode_shlibpath_var=no
8903      case $host_os in
8904      solaris2.[0-5] | solaris2.[0-5].*) ;;
8905      *)
8906	# The compiler driver will combine and reorder linker options,
8907	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8908	# but is careful enough not to reorder.
8909 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8910	if test "$GCC" = yes; then
8911	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8912	else
8913	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8914	fi
8915	;;
8916      esac
8917      link_all_deplibs=yes
8918      ;;
8919
8920    sunos4*)
8921      if test "x$host_vendor" = xsequent; then
8922	# Use $CC to link under sequent, because it throws in some extra .o
8923	# files that make .init and .fini sections work.
8924	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8925      else
8926	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8927      fi
8928      hardcode_libdir_flag_spec='-L$libdir'
8929      hardcode_direct=yes
8930      hardcode_minus_L=yes
8931      hardcode_shlibpath_var=no
8932      ;;
8933
8934    sysv4)
8935      case $host_vendor in
8936	sni)
8937	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938	  hardcode_direct=yes # is this really true???
8939	;;
8940	siemens)
8941	  ## LD is ld it makes a PLAMLIB
8942	  ## CC just makes a GrossModule.
8943	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8944	  reload_cmds='$CC -r -o $output$reload_objs'
8945	  hardcode_direct=no
8946        ;;
8947	motorola)
8948	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8950	;;
8951      esac
8952      runpath_var='LD_RUN_PATH'
8953      hardcode_shlibpath_var=no
8954      ;;
8955
8956    sysv4.3*)
8957      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958      hardcode_shlibpath_var=no
8959      export_dynamic_flag_spec='-Bexport'
8960      ;;
8961
8962    sysv4*MP*)
8963      if test -d /usr/nec; then
8964	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965	hardcode_shlibpath_var=no
8966	runpath_var=LD_RUN_PATH
8967	hardcode_runpath_var=yes
8968	ld_shlibs=yes
8969      fi
8970      ;;
8971
8972    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8973      no_undefined_flag='${wl}-z,text'
8974      archive_cmds_need_lc=no
8975      hardcode_shlibpath_var=no
8976      runpath_var='LD_RUN_PATH'
8977
8978      if test "$GCC" = yes; then
8979	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981      else
8982	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984      fi
8985      ;;
8986
8987    sysv5* | sco3.2v5* | sco5v6*)
8988      # Note: We can NOT use -z defs as we might desire, because we do not
8989      # link with -lc, and that would cause any symbols used from libc to
8990      # always be unresolved, which means just about no library would
8991      # ever link correctly.  If we're not using GNU ld we use -z text
8992      # though, which does catch some bad symbols but isn't as heavy-handed
8993      # as -z defs.
8994      no_undefined_flag='${wl}-z,text'
8995      allow_undefined_flag='${wl}-z,nodefs'
8996      archive_cmds_need_lc=no
8997      hardcode_shlibpath_var=no
8998      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8999      hardcode_libdir_separator=':'
9000      link_all_deplibs=yes
9001      export_dynamic_flag_spec='${wl}-Bexport'
9002      runpath_var='LD_RUN_PATH'
9003
9004      if test "$GCC" = yes; then
9005	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9007      else
9008	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9010      fi
9011      ;;
9012
9013    uts4*)
9014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015      hardcode_libdir_flag_spec='-L$libdir'
9016      hardcode_shlibpath_var=no
9017      ;;
9018
9019    *)
9020      ld_shlibs=no
9021      ;;
9022    esac
9023  fi
9024
9025{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9026$as_echo "$ld_shlibs" >&6; }
9027test "$ld_shlibs" = no && can_build_shared=no
9028
9029#
9030# Do we need to explicitly link libc?
9031#
9032case "x$archive_cmds_need_lc" in
9033x|xyes)
9034  # Assume -lc should be added
9035  archive_cmds_need_lc=yes
9036
9037  if test "$enable_shared" = yes && test "$GCC" = yes; then
9038    case $archive_cmds in
9039    *'~'*)
9040      # FIXME: we may have to deal with multi-command sequences.
9041      ;;
9042    '$CC '*)
9043      # Test whether the compiler implicitly links with -lc since on some
9044      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9045      # to ld, don't add -lc before -lgcc.
9046      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9047$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9048      $rm conftest*
9049      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9050
9051      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052  (eval $ac_compile) 2>&5
9053  ac_status=$?
9054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); } 2>conftest.err; then
9056        soname=conftest
9057        lib=conftest
9058        libobjs=conftest.$ac_objext
9059        deplibs=
9060        wl=$lt_prog_compiler_wl
9061	pic_flag=$lt_prog_compiler_pic
9062        compiler_flags=-v
9063        linker_flags=-v
9064        verstring=
9065        output_objdir=.
9066        libname=conftest
9067        lt_save_allow_undefined_flag=$allow_undefined_flag
9068        allow_undefined_flag=
9069        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9070  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9071  ac_status=$?
9072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073  (exit $ac_status); }
9074        then
9075	  archive_cmds_need_lc=no
9076        else
9077	  archive_cmds_need_lc=yes
9078        fi
9079        allow_undefined_flag=$lt_save_allow_undefined_flag
9080      else
9081        cat conftest.err 1>&5
9082      fi
9083      $rm conftest*
9084      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9085$as_echo "$archive_cmds_need_lc" >&6; }
9086      ;;
9087    esac
9088  fi
9089  ;;
9090esac
9091
9092{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9093$as_echo_n "checking dynamic linker characteristics... " >&6; }
9094library_names_spec=
9095libname_spec='lib$name'
9096soname_spec=
9097shrext_cmds=".so"
9098postinstall_cmds=
9099postuninstall_cmds=
9100finish_cmds=
9101finish_eval=
9102shlibpath_var=
9103shlibpath_overrides_runpath=unknown
9104version_type=none
9105dynamic_linker="$host_os ld.so"
9106sys_lib_dlsearch_path_spec="/lib /usr/lib"
9107
9108if test "$GCC" = yes; then
9109  case $host_os in
9110    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9111    *) lt_awk_arg="/^libraries:/" ;;
9112  esac
9113  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9115    # if the path contains ";" then we assume it to be the separator
9116    # otherwise default to the standard path separator (i.e. ":") - it is
9117    # assumed that no part of a normal pathname contains ";" but that should
9118    # okay in the real world where ";" in dirpaths is itself problematic.
9119    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9120  else
9121    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9122  fi
9123  # Ok, now we have the path, separated by spaces, we can step through it
9124  # and add multilib dir if necessary.
9125  lt_tmp_lt_search_path_spec=
9126  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9127  for lt_sys_path in $lt_search_path_spec; do
9128    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9129      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9130    else
9131      test -d "$lt_sys_path" && \
9132	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9133    fi
9134  done
9135  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9136BEGIN {RS=" "; FS="/|\n";} {
9137  lt_foo="";
9138  lt_count=0;
9139  for (lt_i = NF; lt_i > 0; lt_i--) {
9140    if ($lt_i != "" && $lt_i != ".") {
9141      if ($lt_i == "..") {
9142        lt_count++;
9143      } else {
9144        if (lt_count == 0) {
9145          lt_foo="/" $lt_i lt_foo;
9146        } else {
9147          lt_count--;
9148        }
9149      }
9150    }
9151  }
9152  if (lt_foo != "") { lt_freq[lt_foo]++; }
9153  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9154}'`
9155  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9156else
9157  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9158fi
9159need_lib_prefix=unknown
9160hardcode_into_libs=no
9161
9162# when you set need_version to no, make sure it does not cause -set_version
9163# flags to be left without arguments
9164need_version=unknown
9165
9166case $host_os in
9167aix3*)
9168  version_type=linux
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9170  shlibpath_var=LIBPATH
9171
9172  # AIX 3 has no versioning support, so we append a major version to the name.
9173  soname_spec='${libname}${release}${shared_ext}$major'
9174  ;;
9175
9176aix[4-9]*)
9177  version_type=linux
9178  need_lib_prefix=no
9179  need_version=no
9180  hardcode_into_libs=yes
9181  if test "$host_cpu" = ia64; then
9182    # AIX 5 supports IA64
9183    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9184    shlibpath_var=LD_LIBRARY_PATH
9185  else
9186    # With GCC up to 2.95.x, collect2 would create an import file
9187    # for dependence libraries.  The import file would start with
9188    # the line `#! .'.  This would cause the generated library to
9189    # depend on `.', always an invalid library.  This was fixed in
9190    # development snapshots of GCC prior to 3.0.
9191    case $host_os in
9192      aix4 | aix4.[01] | aix4.[01].*)
9193      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9194	   echo ' yes '
9195	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9196	:
9197      else
9198	can_build_shared=no
9199      fi
9200      ;;
9201    esac
9202    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9203    # soname into executable. Probably we can add versioning support to
9204    # collect2, so additional links can be useful in future.
9205    if test "$aix_use_runtimelinking" = yes; then
9206      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9207      # instead of lib<name>.a to let people know that these are not
9208      # typical AIX shared libraries.
9209      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210    else
9211      # We preserve .a as extension for shared libraries through AIX4.2
9212      # and later when we are not doing run time linking.
9213      library_names_spec='${libname}${release}.a $libname.a'
9214      soname_spec='${libname}${release}${shared_ext}$major'
9215    fi
9216    shlibpath_var=LIBPATH
9217  fi
9218  ;;
9219
9220amigaos*)
9221  library_names_spec='$libname.ixlibrary $libname.a'
9222  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9223  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'
9224  ;;
9225
9226beos*)
9227  library_names_spec='${libname}${shared_ext}'
9228  dynamic_linker="$host_os ld.so"
9229  shlibpath_var=LIBRARY_PATH
9230  ;;
9231
9232bsdi[45]*)
9233  version_type=linux
9234  need_version=no
9235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236  soname_spec='${libname}${release}${shared_ext}$major'
9237  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9238  shlibpath_var=LD_LIBRARY_PATH
9239  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9240  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9241  # the default ld.so.conf also contains /usr/contrib/lib and
9242  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9243  # libtool to hard-code these into programs
9244  ;;
9245
9246cygwin* | mingw* | pw32*)
9247  version_type=windows
9248  shrext_cmds=".dll"
9249  need_version=no
9250  need_lib_prefix=no
9251
9252  case $GCC,$host_os in
9253  yes,cygwin* | yes,mingw* | yes,pw32*)
9254    library_names_spec='$libname.dll.a'
9255    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9256    postinstall_cmds='base_file=`basename \${file}`~
9257      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9258      dldir=$destdir/`dirname \$dlpath`~
9259      test -d \$dldir || mkdir -p \$dldir~
9260      $install_prog $dir/$dlname \$dldir/$dlname~
9261      chmod a+x \$dldir/$dlname'
9262    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9263      dlpath=$dir/\$dldll~
9264       $rm \$dlpath'
9265    shlibpath_overrides_runpath=yes
9266
9267    case $host_os in
9268    cygwin*)
9269      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9270      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9272      ;;
9273    mingw*)
9274      # MinGW DLLs use traditional 'lib' prefix
9275      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9276      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9277      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9278        # It is most probably a Windows format PATH printed by
9279        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9280        # path with ; separators, and with drive letters. We can handle the
9281        # drive letters (cygwin fileutils understands them), so leave them,
9282        # especially as we might pass files found there to a mingw objdump,
9283        # which wouldn't understand a cygwinified path. Ahh.
9284        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9285      else
9286        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9287      fi
9288      ;;
9289    pw32*)
9290      # pw32 DLLs use 'pw' prefix rather than 'lib'
9291      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292      ;;
9293    esac
9294    ;;
9295
9296  *)
9297    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9298    ;;
9299  esac
9300  dynamic_linker='Win32 ld.exe'
9301  # FIXME: first we should search . and the directory the executable is in
9302  shlibpath_var=PATH
9303  ;;
9304
9305darwin* | rhapsody*)
9306  dynamic_linker="$host_os dyld"
9307  version_type=darwin
9308  need_lib_prefix=no
9309  need_version=no
9310  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9311  soname_spec='${libname}${release}${major}$shared_ext'
9312  shlibpath_overrides_runpath=yes
9313  shlibpath_var=DYLD_LIBRARY_PATH
9314  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9315
9316  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9317  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9318  ;;
9319
9320dgux*)
9321  version_type=linux
9322  need_lib_prefix=no
9323  need_version=no
9324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9325  soname_spec='${libname}${release}${shared_ext}$major'
9326  shlibpath_var=LD_LIBRARY_PATH
9327  ;;
9328
9329freebsd1*)
9330  dynamic_linker=no
9331  ;;
9332
9333freebsd* | dragonfly*)
9334  # DragonFly does not have aout.  When/if they implement a new
9335  # versioning mechanism, adjust this.
9336  if test -x /usr/bin/objformat; then
9337    objformat=`/usr/bin/objformat`
9338  else
9339    case $host_os in
9340    freebsd[123]*) objformat=aout ;;
9341    *) objformat=elf ;;
9342    esac
9343  fi
9344  # Handle Gentoo/FreeBSD as it was Linux
9345  case $host_vendor in
9346    gentoo)
9347      version_type=linux ;;
9348    *)
9349      version_type=freebsd-$objformat ;;
9350  esac
9351
9352  case $version_type in
9353    freebsd-elf*)
9354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9355      need_version=no
9356      need_lib_prefix=no
9357      ;;
9358    freebsd-*)
9359      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9360      need_version=yes
9361      ;;
9362    linux)
9363      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364      soname_spec='${libname}${release}${shared_ext}$major'
9365      need_lib_prefix=no
9366      need_version=no
9367      ;;
9368  esac
9369  shlibpath_var=LD_LIBRARY_PATH
9370  case $host_os in
9371  freebsd2*)
9372    shlibpath_overrides_runpath=yes
9373    ;;
9374  freebsd3.[01]* | freebsdelf3.[01]*)
9375    shlibpath_overrides_runpath=yes
9376    hardcode_into_libs=yes
9377    ;;
9378  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9379  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9380    shlibpath_overrides_runpath=no
9381    hardcode_into_libs=yes
9382    ;;
9383  *) # from 4.6 on, and DragonFly
9384    shlibpath_overrides_runpath=yes
9385    hardcode_into_libs=yes
9386    ;;
9387  esac
9388  ;;
9389
9390gnu*)
9391  version_type=linux
9392  need_lib_prefix=no
9393  need_version=no
9394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9395  soname_spec='${libname}${release}${shared_ext}$major'
9396  shlibpath_var=LD_LIBRARY_PATH
9397  hardcode_into_libs=yes
9398  ;;
9399
9400hpux9* | hpux10* | hpux11*)
9401  # Give a soname corresponding to the major version so that dld.sl refuses to
9402  # link against other versions.
9403  version_type=sunos
9404  need_lib_prefix=no
9405  need_version=no
9406  case $host_cpu in
9407  ia64*)
9408    shrext_cmds='.so'
9409    hardcode_into_libs=yes
9410    dynamic_linker="$host_os dld.so"
9411    shlibpath_var=LD_LIBRARY_PATH
9412    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414    soname_spec='${libname}${release}${shared_ext}$major'
9415    if test "X$HPUX_IA64_MODE" = X32; then
9416      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9417    else
9418      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9419    fi
9420    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9421    ;;
9422   hppa*64*)
9423     shrext_cmds='.sl'
9424     hardcode_into_libs=yes
9425     dynamic_linker="$host_os dld.sl"
9426     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429     soname_spec='${libname}${release}${shared_ext}$major'
9430     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9431     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9432     ;;
9433   *)
9434    shrext_cmds='.sl'
9435    dynamic_linker="$host_os dld.sl"
9436    shlibpath_var=SHLIB_PATH
9437    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439    soname_spec='${libname}${release}${shared_ext}$major'
9440    ;;
9441  esac
9442  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9443  postinstall_cmds='chmod 555 $lib'
9444  ;;
9445
9446interix[3-9]*)
9447  version_type=linux
9448  need_lib_prefix=no
9449  need_version=no
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451  soname_spec='${libname}${release}${shared_ext}$major'
9452  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9453  shlibpath_var=LD_LIBRARY_PATH
9454  shlibpath_overrides_runpath=no
9455  hardcode_into_libs=yes
9456  ;;
9457
9458irix5* | irix6* | nonstopux*)
9459  case $host_os in
9460    nonstopux*) version_type=nonstopux ;;
9461    *)
9462	if test "$lt_cv_prog_gnu_ld" = yes; then
9463		version_type=linux
9464	else
9465		version_type=irix
9466	fi ;;
9467  esac
9468  need_lib_prefix=no
9469  need_version=no
9470  soname_spec='${libname}${release}${shared_ext}$major'
9471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9472  case $host_os in
9473  irix5* | nonstopux*)
9474    libsuff= shlibsuff=
9475    ;;
9476  *)
9477    case $LD in # libtool.m4 will add one of these switches to LD
9478    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9479      libsuff= shlibsuff= libmagic=32-bit;;
9480    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9481      libsuff=32 shlibsuff=N32 libmagic=N32;;
9482    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9483      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9484    *) libsuff= shlibsuff= libmagic=never-match;;
9485    esac
9486    ;;
9487  esac
9488  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9489  shlibpath_overrides_runpath=no
9490  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9491  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9492  hardcode_into_libs=yes
9493  ;;
9494
9495# No shared lib support for Linux oldld, aout, or coff.
9496linux*oldld* | linux*aout* | linux*coff*)
9497  dynamic_linker=no
9498  ;;
9499
9500# This must be Linux ELF.
9501linux* | k*bsd*-gnu)
9502  version_type=linux
9503  need_lib_prefix=no
9504  need_version=no
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506  soname_spec='${libname}${release}${shared_ext}$major'
9507  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9508  shlibpath_var=LD_LIBRARY_PATH
9509  shlibpath_overrides_runpath=no
9510  # This implies no fast_install, which is unacceptable.
9511  # Some rework will be needed to allow for fast_install
9512  # before this can be enabled.
9513  hardcode_into_libs=yes
9514
9515  # Append ld.so.conf contents to the search path
9516  if test -f /etc/ld.so.conf; then
9517    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9518    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9519  fi
9520
9521  # We used to test for /lib/ld.so.1 and disable shared libraries on
9522  # powerpc, because MkLinux only supported shared libraries with the
9523  # GNU dynamic linker.  Since this was broken with cross compilers,
9524  # most powerpc-linux boxes support dynamic linking these days and
9525  # people can always --disable-shared, the test was removed, and we
9526  # assume the GNU/Linux dynamic linker is in use.
9527  dynamic_linker='GNU/Linux ld.so'
9528  ;;
9529
9530netbsd*)
9531  version_type=sunos
9532  need_lib_prefix=no
9533  need_version=no
9534  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9535    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9536    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9537    dynamic_linker='NetBSD (a.out) ld.so'
9538  else
9539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540    soname_spec='${libname}${release}${shared_ext}$major'
9541    dynamic_linker='NetBSD ld.elf_so'
9542  fi
9543  shlibpath_var=LD_LIBRARY_PATH
9544  shlibpath_overrides_runpath=yes
9545  hardcode_into_libs=yes
9546  ;;
9547
9548newsos6)
9549  version_type=linux
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551  shlibpath_var=LD_LIBRARY_PATH
9552  shlibpath_overrides_runpath=yes
9553  ;;
9554
9555nto-qnx*)
9556  version_type=linux
9557  need_lib_prefix=no
9558  need_version=no
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  shlibpath_var=LD_LIBRARY_PATH
9562  shlibpath_overrides_runpath=yes
9563  ;;
9564
9565openbsd*)
9566  version_type=sunos
9567  sys_lib_dlsearch_path_spec="/usr/lib"
9568  need_lib_prefix=no
9569  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9570  case $host_os in
9571    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9572    *)                         need_version=no  ;;
9573  esac
9574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9575  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9576  shlibpath_var=LD_LIBRARY_PATH
9577  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578    case $host_os in
9579      openbsd2.[89] | openbsd2.[89].*)
9580	shlibpath_overrides_runpath=no
9581	;;
9582      *)
9583	shlibpath_overrides_runpath=yes
9584	;;
9585      esac
9586  else
9587    shlibpath_overrides_runpath=yes
9588  fi
9589  ;;
9590
9591os2*)
9592  libname_spec='$name'
9593  shrext_cmds=".dll"
9594  need_lib_prefix=no
9595  library_names_spec='$libname${shared_ext} $libname.a'
9596  dynamic_linker='OS/2 ld.exe'
9597  shlibpath_var=LIBPATH
9598  ;;
9599
9600osf3* | osf4* | osf5*)
9601  version_type=osf
9602  need_lib_prefix=no
9603  need_version=no
9604  soname_spec='${libname}${release}${shared_ext}$major'
9605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9608  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9609  ;;
9610
9611rdos*)
9612  dynamic_linker=no
9613  ;;
9614
9615solaris*)
9616  version_type=linux
9617  need_lib_prefix=no
9618  need_version=no
9619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620  soname_spec='${libname}${release}${shared_ext}$major'
9621  shlibpath_var=LD_LIBRARY_PATH
9622  shlibpath_overrides_runpath=yes
9623  hardcode_into_libs=yes
9624  # ldd complains unless libraries are executable
9625  postinstall_cmds='chmod +x $lib'
9626  ;;
9627
9628sunos4*)
9629  version_type=sunos
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=yes
9634  if test "$with_gnu_ld" = yes; then
9635    need_lib_prefix=no
9636  fi
9637  need_version=yes
9638  ;;
9639
9640sysv4 | sysv4.3*)
9641  version_type=linux
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  case $host_vendor in
9646    sni)
9647      shlibpath_overrides_runpath=no
9648      need_lib_prefix=no
9649      export_dynamic_flag_spec='${wl}-Blargedynsym'
9650      runpath_var=LD_RUN_PATH
9651      ;;
9652    siemens)
9653      need_lib_prefix=no
9654      ;;
9655    motorola)
9656      need_lib_prefix=no
9657      need_version=no
9658      shlibpath_overrides_runpath=no
9659      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9660      ;;
9661  esac
9662  ;;
9663
9664sysv4*MP*)
9665  if test -d /usr/nec ;then
9666    version_type=linux
9667    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9668    soname_spec='$libname${shared_ext}.$major'
9669    shlibpath_var=LD_LIBRARY_PATH
9670  fi
9671  ;;
9672
9673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9674  version_type=freebsd-elf
9675  need_lib_prefix=no
9676  need_version=no
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  hardcode_into_libs=yes
9681  if test "$with_gnu_ld" = yes; then
9682    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9683    shlibpath_overrides_runpath=no
9684  else
9685    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9686    shlibpath_overrides_runpath=yes
9687    case $host_os in
9688      sco3.2v5*)
9689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9690	;;
9691    esac
9692  fi
9693  sys_lib_dlsearch_path_spec='/usr/lib'
9694  ;;
9695
9696uts4*)
9697  version_type=linux
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  ;;
9702
9703*)
9704  dynamic_linker=no
9705  ;;
9706esac
9707{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9708$as_echo "$dynamic_linker" >&6; }
9709test "$dynamic_linker" = no && can_build_shared=no
9710
9711if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9712  $as_echo_n "(cached) " >&6
9713else
9714  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9715fi
9716
9717sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9718if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9719  $as_echo_n "(cached) " >&6
9720else
9721  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9722fi
9723
9724sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9725
9726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9727if test "$GCC" = yes; then
9728  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9729fi
9730
9731{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9732$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9733hardcode_action=
9734if test -n "$hardcode_libdir_flag_spec" || \
9735   test -n "$runpath_var" || \
9736   test "X$hardcode_automatic" = "Xyes" ; then
9737
9738  # We can hardcode non-existant directories.
9739  if test "$hardcode_direct" != no &&
9740     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9741     # have to relink, otherwise we might link with an installed library
9742     # when we should be linking with a yet-to-be-installed one
9743     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9744     test "$hardcode_minus_L" != no; then
9745    # Linking always hardcodes the temporary library directory.
9746    hardcode_action=relink
9747  else
9748    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9749    hardcode_action=immediate
9750  fi
9751else
9752  # We cannot hardcode anything, or else we can only hardcode existing
9753  # directories.
9754  hardcode_action=unsupported
9755fi
9756{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9757$as_echo "$hardcode_action" >&6; }
9758
9759if test "$hardcode_action" = relink; then
9760  # Fast installation is not supported
9761  enable_fast_install=no
9762elif test "$shlibpath_overrides_runpath" = yes ||
9763     test "$enable_shared" = no; then
9764  # Fast installation is not necessary
9765  enable_fast_install=needless
9766fi
9767
9768striplib=
9769old_striplib=
9770{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9771$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9772if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9773  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9774  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9775  { $as_echo "$as_me:$LINENO: result: yes" >&5
9776$as_echo "yes" >&6; }
9777else
9778# FIXME - insert some real tests, host_os isn't really good enough
9779  case $host_os in
9780   darwin*)
9781       if test -n "$STRIP" ; then
9782         striplib="$STRIP -x"
9783         old_striplib="$STRIP -S"
9784         { $as_echo "$as_me:$LINENO: result: yes" >&5
9785$as_echo "yes" >&6; }
9786       else
9787  { $as_echo "$as_me:$LINENO: result: no" >&5
9788$as_echo "no" >&6; }
9789fi
9790       ;;
9791   *)
9792  { $as_echo "$as_me:$LINENO: result: no" >&5
9793$as_echo "no" >&6; }
9794    ;;
9795  esac
9796fi
9797
9798if test "x$enable_dlopen" != xyes; then
9799  enable_dlopen=unknown
9800  enable_dlopen_self=unknown
9801  enable_dlopen_self_static=unknown
9802else
9803  lt_cv_dlopen=no
9804  lt_cv_dlopen_libs=
9805
9806  case $host_os in
9807  beos*)
9808    lt_cv_dlopen="load_add_on"
9809    lt_cv_dlopen_libs=
9810    lt_cv_dlopen_self=yes
9811    ;;
9812
9813  mingw* | pw32*)
9814    lt_cv_dlopen="LoadLibrary"
9815    lt_cv_dlopen_libs=
9816   ;;
9817
9818  cygwin*)
9819    lt_cv_dlopen="dlopen"
9820    lt_cv_dlopen_libs=
9821   ;;
9822
9823  darwin*)
9824  # if libdl is installed we need to link against it
9825    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9826$as_echo_n "checking for dlopen in -ldl... " >&6; }
9827if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9828  $as_echo_n "(cached) " >&6
9829else
9830  ac_check_lib_save_LIBS=$LIBS
9831LIBS="-ldl  $LIBS"
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h.  */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h.  */
9838
9839/* Override any GCC internal prototype to avoid an error.
9840   Use char because int might match the return type of a GCC
9841   builtin and then its argument prototype would still apply.  */
9842#ifdef __cplusplus
9843extern "C"
9844#endif
9845char dlopen ();
9846int
9847main ()
9848{
9849return dlopen ();
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext conftest$ac_exeext
9855if { (ac_try="$ac_link"
9856case "(($ac_try" in
9857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858  *) ac_try_echo=$ac_try;;
9859esac
9860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861$as_echo "$ac_try_echo") >&5
9862  (eval "$ac_link") 2>conftest.er1
9863  ac_status=$?
9864  grep -v '^ *+' conftest.er1 >conftest.err
9865  rm -f conftest.er1
9866  cat conftest.err >&5
9867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868  (exit $ac_status); } && {
9869	 test -z "$ac_c_werror_flag" ||
9870	 test ! -s conftest.err
9871       } && test -s conftest$ac_exeext && {
9872	 test "$cross_compiling" = yes ||
9873	 $as_test_x conftest$ac_exeext
9874       }; then
9875  ac_cv_lib_dl_dlopen=yes
9876else
9877  $as_echo "$as_me: failed program was:" >&5
9878sed 's/^/| /' conftest.$ac_ext >&5
9879
9880	ac_cv_lib_dl_dlopen=no
9881fi
9882
9883rm -rf conftest.dSYM
9884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9885      conftest$ac_exeext conftest.$ac_ext
9886LIBS=$ac_check_lib_save_LIBS
9887fi
9888{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9890if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9892else
9893
9894    lt_cv_dlopen="dyld"
9895    lt_cv_dlopen_libs=
9896    lt_cv_dlopen_self=yes
9897
9898fi
9899
9900   ;;
9901
9902  *)
9903    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9904$as_echo_n "checking for shl_load... " >&6; }
9905if test "${ac_cv_func_shl_load+set}" = set; then
9906  $as_echo_n "(cached) " >&6
9907else
9908  cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h.  */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h.  */
9914/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9916#define shl_load innocuous_shl_load
9917
9918/* System header to define __stub macros and hopefully few prototypes,
9919    which can conflict with char shl_load (); below.
9920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921    <limits.h> exists even on freestanding compilers.  */
9922
9923#ifdef __STDC__
9924# include <limits.h>
9925#else
9926# include <assert.h>
9927#endif
9928
9929#undef shl_load
9930
9931/* Override any GCC internal prototype to avoid an error.
9932   Use char because int might match the return type of a GCC
9933   builtin and then its argument prototype would still apply.  */
9934#ifdef __cplusplus
9935extern "C"
9936#endif
9937char shl_load ();
9938/* The GNU C library defines this for functions which it implements
9939    to always fail with ENOSYS.  Some functions are actually named
9940    something starting with __ and the normal name is an alias.  */
9941#if defined __stub_shl_load || defined __stub___shl_load
9942choke me
9943#endif
9944
9945int
9946main ()
9947{
9948return shl_load ();
9949  ;
9950  return 0;
9951}
9952_ACEOF
9953rm -f conftest.$ac_objext conftest$ac_exeext
9954if { (ac_try="$ac_link"
9955case "(($ac_try" in
9956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957  *) ac_try_echo=$ac_try;;
9958esac
9959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9960$as_echo "$ac_try_echo") >&5
9961  (eval "$ac_link") 2>conftest.er1
9962  ac_status=$?
9963  grep -v '^ *+' conftest.er1 >conftest.err
9964  rm -f conftest.er1
9965  cat conftest.err >&5
9966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); } && {
9968	 test -z "$ac_c_werror_flag" ||
9969	 test ! -s conftest.err
9970       } && test -s conftest$ac_exeext && {
9971	 test "$cross_compiling" = yes ||
9972	 $as_test_x conftest$ac_exeext
9973       }; then
9974  ac_cv_func_shl_load=yes
9975else
9976  $as_echo "$as_me: failed program was:" >&5
9977sed 's/^/| /' conftest.$ac_ext >&5
9978
9979	ac_cv_func_shl_load=no
9980fi
9981
9982rm -rf conftest.dSYM
9983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984      conftest$ac_exeext conftest.$ac_ext
9985fi
9986{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9987$as_echo "$ac_cv_func_shl_load" >&6; }
9988if test "x$ac_cv_func_shl_load" = x""yes; then
9989  lt_cv_dlopen="shl_load"
9990else
9991  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9992$as_echo_n "checking for shl_load in -ldld... " >&6; }
9993if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9994  $as_echo_n "(cached) " >&6
9995else
9996  ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldld  $LIBS"
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005/* Override any GCC internal prototype to avoid an error.
10006   Use char because int might match the return type of a GCC
10007   builtin and then its argument prototype would still apply.  */
10008#ifdef __cplusplus
10009extern "C"
10010#endif
10011char shl_load ();
10012int
10013main ()
10014{
10015return shl_load ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024  *) ac_try_echo=$ac_try;;
10025esac
10026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027$as_echo "$ac_try_echo") >&5
10028  (eval "$ac_link") 2>conftest.er1
10029  ac_status=$?
10030  grep -v '^ *+' conftest.er1 >conftest.err
10031  rm -f conftest.er1
10032  cat conftest.err >&5
10033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); } && {
10035	 test -z "$ac_c_werror_flag" ||
10036	 test ! -s conftest.err
10037       } && test -s conftest$ac_exeext && {
10038	 test "$cross_compiling" = yes ||
10039	 $as_test_x conftest$ac_exeext
10040       }; then
10041  ac_cv_lib_dld_shl_load=yes
10042else
10043  $as_echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046	ac_cv_lib_dld_shl_load=no
10047fi
10048
10049rm -rf conftest.dSYM
10050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10051      conftest$ac_exeext conftest.$ac_ext
10052LIBS=$ac_check_lib_save_LIBS
10053fi
10054{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10055$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10056if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10057  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10058else
10059  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10060$as_echo_n "checking for dlopen... " >&6; }
10061if test "${ac_cv_func_dlopen+set}" = set; then
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h.  */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h.  */
10070/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10072#define dlopen innocuous_dlopen
10073
10074/* System header to define __stub macros and hopefully few prototypes,
10075    which can conflict with char dlopen (); below.
10076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077    <limits.h> exists even on freestanding compilers.  */
10078
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
10084
10085#undef dlopen
10086
10087/* Override any GCC internal prototype to avoid an error.
10088   Use char because int might match the return type of a GCC
10089   builtin and then its argument prototype would still apply.  */
10090#ifdef __cplusplus
10091extern "C"
10092#endif
10093char dlopen ();
10094/* The GNU C library defines this for functions which it implements
10095    to always fail with ENOSYS.  Some functions are actually named
10096    something starting with __ and the normal name is an alias.  */
10097#if defined __stub_dlopen || defined __stub___dlopen
10098choke me
10099#endif
10100
10101int
10102main ()
10103{
10104return dlopen ();
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
10110if { (ac_try="$ac_link"
10111case "(($ac_try" in
10112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113  *) ac_try_echo=$ac_try;;
10114esac
10115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10116$as_echo "$ac_try_echo") >&5
10117  (eval "$ac_link") 2>conftest.er1
10118  ac_status=$?
10119  grep -v '^ *+' conftest.er1 >conftest.err
10120  rm -f conftest.er1
10121  cat conftest.err >&5
10122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); } && {
10124	 test -z "$ac_c_werror_flag" ||
10125	 test ! -s conftest.err
10126       } && test -s conftest$ac_exeext && {
10127	 test "$cross_compiling" = yes ||
10128	 $as_test_x conftest$ac_exeext
10129       }; then
10130  ac_cv_func_dlopen=yes
10131else
10132  $as_echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135	ac_cv_func_dlopen=no
10136fi
10137
10138rm -rf conftest.dSYM
10139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140      conftest$ac_exeext conftest.$ac_ext
10141fi
10142{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10143$as_echo "$ac_cv_func_dlopen" >&6; }
10144if test "x$ac_cv_func_dlopen" = x""yes; then
10145  lt_cv_dlopen="dlopen"
10146else
10147  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10148$as_echo_n "checking for dlopen in -ldl... " >&6; }
10149if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10150  $as_echo_n "(cached) " >&6
10151else
10152  ac_check_lib_save_LIBS=$LIBS
10153LIBS="-ldl  $LIBS"
10154cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h.  */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h.  */
10160
10161/* Override any GCC internal prototype to avoid an error.
10162   Use char because int might match the return type of a GCC
10163   builtin and then its argument prototype would still apply.  */
10164#ifdef __cplusplus
10165extern "C"
10166#endif
10167char dlopen ();
10168int
10169main ()
10170{
10171return dlopen ();
10172  ;
10173  return 0;
10174}
10175_ACEOF
10176rm -f conftest.$ac_objext conftest$ac_exeext
10177if { (ac_try="$ac_link"
10178case "(($ac_try" in
10179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180  *) ac_try_echo=$ac_try;;
10181esac
10182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10183$as_echo "$ac_try_echo") >&5
10184  (eval "$ac_link") 2>conftest.er1
10185  ac_status=$?
10186  grep -v '^ *+' conftest.er1 >conftest.err
10187  rm -f conftest.er1
10188  cat conftest.err >&5
10189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); } && {
10191	 test -z "$ac_c_werror_flag" ||
10192	 test ! -s conftest.err
10193       } && test -s conftest$ac_exeext && {
10194	 test "$cross_compiling" = yes ||
10195	 $as_test_x conftest$ac_exeext
10196       }; then
10197  ac_cv_lib_dl_dlopen=yes
10198else
10199  $as_echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202	ac_cv_lib_dl_dlopen=no
10203fi
10204
10205rm -rf conftest.dSYM
10206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207      conftest$ac_exeext conftest.$ac_ext
10208LIBS=$ac_check_lib_save_LIBS
10209fi
10210{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10211$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10212if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10213  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10214else
10215  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10216$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10217if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10218  $as_echo_n "(cached) " >&6
10219else
10220  ac_check_lib_save_LIBS=$LIBS
10221LIBS="-lsvld  $LIBS"
10222cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h.  */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h.  */
10228
10229/* Override any GCC internal prototype to avoid an error.
10230   Use char because int might match the return type of a GCC
10231   builtin and then its argument prototype would still apply.  */
10232#ifdef __cplusplus
10233extern "C"
10234#endif
10235char dlopen ();
10236int
10237main ()
10238{
10239return dlopen ();
10240  ;
10241  return 0;
10242}
10243_ACEOF
10244rm -f conftest.$ac_objext conftest$ac_exeext
10245if { (ac_try="$ac_link"
10246case "(($ac_try" in
10247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248  *) ac_try_echo=$ac_try;;
10249esac
10250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10251$as_echo "$ac_try_echo") >&5
10252  (eval "$ac_link") 2>conftest.er1
10253  ac_status=$?
10254  grep -v '^ *+' conftest.er1 >conftest.err
10255  rm -f conftest.er1
10256  cat conftest.err >&5
10257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); } && {
10259	 test -z "$ac_c_werror_flag" ||
10260	 test ! -s conftest.err
10261       } && test -s conftest$ac_exeext && {
10262	 test "$cross_compiling" = yes ||
10263	 $as_test_x conftest$ac_exeext
10264       }; then
10265  ac_cv_lib_svld_dlopen=yes
10266else
10267  $as_echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270	ac_cv_lib_svld_dlopen=no
10271fi
10272
10273rm -rf conftest.dSYM
10274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10275      conftest$ac_exeext conftest.$ac_ext
10276LIBS=$ac_check_lib_save_LIBS
10277fi
10278{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10279$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10280if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10281  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10282else
10283  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10284$as_echo_n "checking for dld_link in -ldld... " >&6; }
10285if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10286  $as_echo_n "(cached) " >&6
10287else
10288  ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld  $LIBS"
10290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h.  */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h.  */
10296
10297/* Override any GCC internal prototype to avoid an error.
10298   Use char because int might match the return type of a GCC
10299   builtin and then its argument prototype would still apply.  */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char dld_link ();
10304int
10305main ()
10306{
10307return dld_link ();
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316  *) ac_try_echo=$ac_try;;
10317esac
10318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10319$as_echo "$ac_try_echo") >&5
10320  (eval "$ac_link") 2>conftest.er1
10321  ac_status=$?
10322  grep -v '^ *+' conftest.er1 >conftest.err
10323  rm -f conftest.er1
10324  cat conftest.err >&5
10325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); } && {
10327	 test -z "$ac_c_werror_flag" ||
10328	 test ! -s conftest.err
10329       } && test -s conftest$ac_exeext && {
10330	 test "$cross_compiling" = yes ||
10331	 $as_test_x conftest$ac_exeext
10332       }; then
10333  ac_cv_lib_dld_dld_link=yes
10334else
10335  $as_echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
10338	ac_cv_lib_dld_dld_link=no
10339fi
10340
10341rm -rf conftest.dSYM
10342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343      conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
10346{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10347$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10348if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10349  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361
10362fi
10363
10364
10365fi
10366
10367    ;;
10368  esac
10369
10370  if test "x$lt_cv_dlopen" != xno; then
10371    enable_dlopen=yes
10372  else
10373    enable_dlopen=no
10374  fi
10375
10376  case $lt_cv_dlopen in
10377  dlopen)
10378    save_CPPFLAGS="$CPPFLAGS"
10379    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10380
10381    save_LDFLAGS="$LDFLAGS"
10382    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10383
10384    save_LIBS="$LIBS"
10385    LIBS="$lt_cv_dlopen_libs $LIBS"
10386
10387    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10388$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10389if test "${lt_cv_dlopen_self+set}" = set; then
10390  $as_echo_n "(cached) " >&6
10391else
10392  	  if test "$cross_compiling" = yes; then :
10393  lt_cv_dlopen_self=cross
10394else
10395  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396  lt_status=$lt_dlunknown
10397  cat > conftest.$ac_ext <<EOF
10398#line 10398 "configure"
10399#include "confdefs.h"
10400
10401#if HAVE_DLFCN_H
10402#include <dlfcn.h>
10403#endif
10404
10405#include <stdio.h>
10406
10407#ifdef RTLD_GLOBAL
10408#  define LT_DLGLOBAL		RTLD_GLOBAL
10409#else
10410#  ifdef DL_GLOBAL
10411#    define LT_DLGLOBAL		DL_GLOBAL
10412#  else
10413#    define LT_DLGLOBAL		0
10414#  endif
10415#endif
10416
10417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418   find out it does not work in some platform. */
10419#ifndef LT_DLLAZY_OR_NOW
10420#  ifdef RTLD_LAZY
10421#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10422#  else
10423#    ifdef DL_LAZY
10424#      define LT_DLLAZY_OR_NOW		DL_LAZY
10425#    else
10426#      ifdef RTLD_NOW
10427#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10428#      else
10429#        ifdef DL_NOW
10430#          define LT_DLLAZY_OR_NOW	DL_NOW
10431#        else
10432#          define LT_DLLAZY_OR_NOW	0
10433#        endif
10434#      endif
10435#    endif
10436#  endif
10437#endif
10438
10439#ifdef __cplusplus
10440extern "C" void exit (int);
10441#endif
10442
10443void fnord() { int i=42;}
10444int main ()
10445{
10446  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447  int status = $lt_dlunknown;
10448
10449  if (self)
10450    {
10451      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10452      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453      /* dlclose (self); */
10454    }
10455  else
10456    puts (dlerror ());
10457
10458    exit (status);
10459}
10460EOF
10461  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462  (eval $ac_link) 2>&5
10463  ac_status=$?
10464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10466    (./conftest; exit; ) >&5 2>/dev/null
10467    lt_status=$?
10468    case x$lt_status in
10469      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10470      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10471      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10472    esac
10473  else :
10474    # compilation failed
10475    lt_cv_dlopen_self=no
10476  fi
10477fi
10478rm -fr conftest*
10479
10480
10481fi
10482{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10483$as_echo "$lt_cv_dlopen_self" >&6; }
10484
10485    if test "x$lt_cv_dlopen_self" = xyes; then
10486      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10487      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10488$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10489if test "${lt_cv_dlopen_self_static+set}" = set; then
10490  $as_echo_n "(cached) " >&6
10491else
10492  	  if test "$cross_compiling" = yes; then :
10493  lt_cv_dlopen_self_static=cross
10494else
10495  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10496  lt_status=$lt_dlunknown
10497  cat > conftest.$ac_ext <<EOF
10498#line 10498 "configure"
10499#include "confdefs.h"
10500
10501#if HAVE_DLFCN_H
10502#include <dlfcn.h>
10503#endif
10504
10505#include <stdio.h>
10506
10507#ifdef RTLD_GLOBAL
10508#  define LT_DLGLOBAL		RTLD_GLOBAL
10509#else
10510#  ifdef DL_GLOBAL
10511#    define LT_DLGLOBAL		DL_GLOBAL
10512#  else
10513#    define LT_DLGLOBAL		0
10514#  endif
10515#endif
10516
10517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10518   find out it does not work in some platform. */
10519#ifndef LT_DLLAZY_OR_NOW
10520#  ifdef RTLD_LAZY
10521#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10522#  else
10523#    ifdef DL_LAZY
10524#      define LT_DLLAZY_OR_NOW		DL_LAZY
10525#    else
10526#      ifdef RTLD_NOW
10527#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10528#      else
10529#        ifdef DL_NOW
10530#          define LT_DLLAZY_OR_NOW	DL_NOW
10531#        else
10532#          define LT_DLLAZY_OR_NOW	0
10533#        endif
10534#      endif
10535#    endif
10536#  endif
10537#endif
10538
10539#ifdef __cplusplus
10540extern "C" void exit (int);
10541#endif
10542
10543void fnord() { int i=42;}
10544int main ()
10545{
10546  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10547  int status = $lt_dlunknown;
10548
10549  if (self)
10550    {
10551      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10552      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10553      /* dlclose (self); */
10554    }
10555  else
10556    puts (dlerror ());
10557
10558    exit (status);
10559}
10560EOF
10561  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562  (eval $ac_link) 2>&5
10563  ac_status=$?
10564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10566    (./conftest; exit; ) >&5 2>/dev/null
10567    lt_status=$?
10568    case x$lt_status in
10569      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10570      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10571      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10572    esac
10573  else :
10574    # compilation failed
10575    lt_cv_dlopen_self_static=no
10576  fi
10577fi
10578rm -fr conftest*
10579
10580
10581fi
10582{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10583$as_echo "$lt_cv_dlopen_self_static" >&6; }
10584    fi
10585
10586    CPPFLAGS="$save_CPPFLAGS"
10587    LDFLAGS="$save_LDFLAGS"
10588    LIBS="$save_LIBS"
10589    ;;
10590  esac
10591
10592  case $lt_cv_dlopen_self in
10593  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10594  *) enable_dlopen_self=unknown ;;
10595  esac
10596
10597  case $lt_cv_dlopen_self_static in
10598  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10599  *) enable_dlopen_self_static=unknown ;;
10600  esac
10601fi
10602
10603
10604# Report which library types will actually be built
10605{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10606$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10607{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10608$as_echo "$can_build_shared" >&6; }
10609
10610{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10611$as_echo_n "checking whether to build shared libraries... " >&6; }
10612test "$can_build_shared" = "no" && enable_shared=no
10613
10614# On AIX, shared libraries and static libraries use the same namespace, and
10615# are all built from PIC.
10616case $host_os in
10617aix3*)
10618  test "$enable_shared" = yes && enable_static=no
10619  if test -n "$RANLIB"; then
10620    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10621    postinstall_cmds='$RANLIB $lib'
10622  fi
10623  ;;
10624
10625aix[4-9]*)
10626  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10627    test "$enable_shared" = yes && enable_static=no
10628  fi
10629    ;;
10630esac
10631{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10632$as_echo "$enable_shared" >&6; }
10633
10634{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10635$as_echo_n "checking whether to build static libraries... " >&6; }
10636# Make sure either enable_shared or enable_static is yes.
10637test "$enable_shared" = yes || enable_static=yes
10638{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10639$as_echo "$enable_static" >&6; }
10640
10641# The else clause should only fire when bootstrapping the
10642# libtool distribution, otherwise you forgot to ship ltmain.sh
10643# with your package, and you will get complaints that there are
10644# no rules to generate ltmain.sh.
10645if test -f "$ltmain"; then
10646  # See if we are running on zsh, and set the options which allow our commands through
10647  # without removal of \ escapes.
10648  if test -n "${ZSH_VERSION+set}" ; then
10649    setopt NO_GLOB_SUBST
10650  fi
10651  # Now quote all the things that may contain metacharacters while being
10652  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10653  # variables and quote the copies for generation of the libtool script.
10654  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10655    SED SHELL STRIP \
10656    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10657    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10658    deplibs_check_method reload_flag reload_cmds need_locks \
10659    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10660    lt_cv_sys_global_symbol_to_c_name_address \
10661    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10662    old_postinstall_cmds old_postuninstall_cmds \
10663    compiler \
10664    CC \
10665    LD \
10666    lt_prog_compiler_wl \
10667    lt_prog_compiler_pic \
10668    lt_prog_compiler_static \
10669    lt_prog_compiler_no_builtin_flag \
10670    export_dynamic_flag_spec \
10671    thread_safe_flag_spec \
10672    whole_archive_flag_spec \
10673    enable_shared_with_static_runtimes \
10674    old_archive_cmds \
10675    old_archive_from_new_cmds \
10676    predep_objects \
10677    postdep_objects \
10678    predeps \
10679    postdeps \
10680    compiler_lib_search_path \
10681    compiler_lib_search_dirs \
10682    archive_cmds \
10683    archive_expsym_cmds \
10684    postinstall_cmds \
10685    postuninstall_cmds \
10686    old_archive_from_expsyms_cmds \
10687    allow_undefined_flag \
10688    no_undefined_flag \
10689    export_symbols_cmds \
10690    hardcode_libdir_flag_spec \
10691    hardcode_libdir_flag_spec_ld \
10692    hardcode_libdir_separator \
10693    hardcode_automatic \
10694    module_cmds \
10695    module_expsym_cmds \
10696    lt_cv_prog_compiler_c_o \
10697    fix_srcfile_path \
10698    exclude_expsyms \
10699    include_expsyms; do
10700
10701    case $var in
10702    old_archive_cmds | \
10703    old_archive_from_new_cmds | \
10704    archive_cmds | \
10705    archive_expsym_cmds | \
10706    module_cmds | \
10707    module_expsym_cmds | \
10708    old_archive_from_expsyms_cmds | \
10709    export_symbols_cmds | \
10710    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10711    postinstall_cmds | postuninstall_cmds | \
10712    old_postinstall_cmds | old_postuninstall_cmds | \
10713    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10714      # Double-quote double-evaled strings.
10715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10716      ;;
10717    *)
10718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10719      ;;
10720    esac
10721  done
10722
10723  case $lt_echo in
10724  *'\$0 --fallback-echo"')
10725    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10726    ;;
10727  esac
10728
10729cfgfile="${ofile}T"
10730  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10731  $rm -f "$cfgfile"
10732  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10733$as_echo "$as_me: creating $ofile" >&6;}
10734
10735  cat <<__EOF__ >> "$cfgfile"
10736#! $SHELL
10737
10738# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10739# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10740# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10741#
10742# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10743# Free Software Foundation, Inc.
10744#
10745# This file is part of GNU Libtool:
10746# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10747#
10748# This program is free software; you can redistribute it and/or modify
10749# it under the terms of the GNU General Public License as published by
10750# the Free Software Foundation; either version 2 of the License, or
10751# (at your option) any later version.
10752#
10753# This program is distributed in the hope that it will be useful, but
10754# WITHOUT ANY WARRANTY; without even the implied warranty of
10755# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10756# General Public License for more details.
10757#
10758# You should have received a copy of the GNU General Public License
10759# along with this program; if not, write to the Free Software
10760# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10761#
10762# As a special exception to the GNU General Public License, if you
10763# distribute this file as part of a program that contains a
10764# configuration script generated by Autoconf, you may include it under
10765# the same distribution terms that you use for the rest of that program.
10766
10767# A sed program that does not truncate output.
10768SED=$lt_SED
10769
10770# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10771Xsed="$SED -e 1s/^X//"
10772
10773# The HP-UX ksh and POSIX shell print the target directory to stdout
10774# if CDPATH is set.
10775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10776
10777# The names of the tagged configurations supported by this script.
10778available_tags=
10779
10780# ### BEGIN LIBTOOL CONFIG
10781
10782# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10783
10784# Shell to use when invoking shell scripts.
10785SHELL=$lt_SHELL
10786
10787# Whether or not to build shared libraries.
10788build_libtool_libs=$enable_shared
10789
10790# Whether or not to build static libraries.
10791build_old_libs=$enable_static
10792
10793# Whether or not to add -lc for building shared libraries.
10794build_libtool_need_lc=$archive_cmds_need_lc
10795
10796# Whether or not to disallow shared libs when runtime libs are static
10797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10798
10799# Whether or not to optimize for fast installation.
10800fast_install=$enable_fast_install
10801
10802# The host system.
10803host_alias=$host_alias
10804host=$host
10805host_os=$host_os
10806
10807# The build system.
10808build_alias=$build_alias
10809build=$build
10810build_os=$build_os
10811
10812# An echo program that does not interpret backslashes.
10813echo=$lt_echo
10814
10815# The archiver.
10816AR=$lt_AR
10817AR_FLAGS=$lt_AR_FLAGS
10818
10819# A C compiler.
10820LTCC=$lt_LTCC
10821
10822# LTCC compiler flags.
10823LTCFLAGS=$lt_LTCFLAGS
10824
10825# A language-specific compiler.
10826CC=$lt_compiler
10827
10828# Is the compiler the GNU C compiler?
10829with_gcc=$GCC
10830
10831# An ERE matcher.
10832EGREP=$lt_EGREP
10833
10834# The linker used to build libraries.
10835LD=$lt_LD
10836
10837# Whether we need hard or soft links.
10838LN_S=$lt_LN_S
10839
10840# A BSD-compatible nm program.
10841NM=$lt_NM
10842
10843# A symbol stripping program
10844STRIP=$lt_STRIP
10845
10846# Used to examine libraries when file_magic_cmd begins "file"
10847MAGIC_CMD=$MAGIC_CMD
10848
10849# Used on cygwin: DLL creation program.
10850DLLTOOL="$DLLTOOL"
10851
10852# Used on cygwin: object dumper.
10853OBJDUMP="$OBJDUMP"
10854
10855# Used on cygwin: assembler.
10856AS="$AS"
10857
10858# The name of the directory that contains temporary libtool files.
10859objdir=$objdir
10860
10861# How to create reloadable object files.
10862reload_flag=$lt_reload_flag
10863reload_cmds=$lt_reload_cmds
10864
10865# How to pass a linker flag through the compiler.
10866wl=$lt_lt_prog_compiler_wl
10867
10868# Object file suffix (normally "o").
10869objext="$ac_objext"
10870
10871# Old archive suffix (normally "a").
10872libext="$libext"
10873
10874# Shared library suffix (normally ".so").
10875shrext_cmds='$shrext_cmds'
10876
10877# Executable file suffix (normally "").
10878exeext="$exeext"
10879
10880# Additional compiler flags for building library objects.
10881pic_flag=$lt_lt_prog_compiler_pic
10882pic_mode=$pic_mode
10883
10884# What is the maximum length of a command?
10885max_cmd_len=$lt_cv_sys_max_cmd_len
10886
10887# Does compiler simultaneously support -c and -o options?
10888compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10889
10890# Must we lock files when doing compilation?
10891need_locks=$lt_need_locks
10892
10893# Do we need the lib prefix for modules?
10894need_lib_prefix=$need_lib_prefix
10895
10896# Do we need a version for libraries?
10897need_version=$need_version
10898
10899# Whether dlopen is supported.
10900dlopen_support=$enable_dlopen
10901
10902# Whether dlopen of programs is supported.
10903dlopen_self=$enable_dlopen_self
10904
10905# Whether dlopen of statically linked programs is supported.
10906dlopen_self_static=$enable_dlopen_self_static
10907
10908# Compiler flag to prevent dynamic linking.
10909link_static_flag=$lt_lt_prog_compiler_static
10910
10911# Compiler flag to turn off builtin functions.
10912no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10913
10914# Compiler flag to allow reflexive dlopens.
10915export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10916
10917# Compiler flag to generate shared objects directly from archives.
10918whole_archive_flag_spec=$lt_whole_archive_flag_spec
10919
10920# Compiler flag to generate thread-safe objects.
10921thread_safe_flag_spec=$lt_thread_safe_flag_spec
10922
10923# Library versioning type.
10924version_type=$version_type
10925
10926# Format of library name prefix.
10927libname_spec=$lt_libname_spec
10928
10929# List of archive names.  First name is the real one, the rest are links.
10930# The last name is the one that the linker finds with -lNAME.
10931library_names_spec=$lt_library_names_spec
10932
10933# The coded name of the library, if different from the real name.
10934soname_spec=$lt_soname_spec
10935
10936# Commands used to build and install an old-style archive.
10937RANLIB=$lt_RANLIB
10938old_archive_cmds=$lt_old_archive_cmds
10939old_postinstall_cmds=$lt_old_postinstall_cmds
10940old_postuninstall_cmds=$lt_old_postuninstall_cmds
10941
10942# Create an old-style archive from a shared archive.
10943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10944
10945# Create a temporary old-style archive to link instead of a shared archive.
10946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10947
10948# Commands used to build and install a shared archive.
10949archive_cmds=$lt_archive_cmds
10950archive_expsym_cmds=$lt_archive_expsym_cmds
10951postinstall_cmds=$lt_postinstall_cmds
10952postuninstall_cmds=$lt_postuninstall_cmds
10953
10954# Commands used to build a loadable module (assumed same as above if empty)
10955module_cmds=$lt_module_cmds
10956module_expsym_cmds=$lt_module_expsym_cmds
10957
10958# Commands to strip libraries.
10959old_striplib=$lt_old_striplib
10960striplib=$lt_striplib
10961
10962# Dependencies to place before the objects being linked to create a
10963# shared library.
10964predep_objects=$lt_predep_objects
10965
10966# Dependencies to place after the objects being linked to create a
10967# shared library.
10968postdep_objects=$lt_postdep_objects
10969
10970# Dependencies to place before the objects being linked to create a
10971# shared library.
10972predeps=$lt_predeps
10973
10974# Dependencies to place after the objects being linked to create a
10975# shared library.
10976postdeps=$lt_postdeps
10977
10978# The directories searched by this compiler when creating a shared
10979# library
10980compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10981
10982# The library search path used internally by the compiler when linking
10983# a shared library.
10984compiler_lib_search_path=$lt_compiler_lib_search_path
10985
10986# Method to check whether dependent libraries are shared objects.
10987deplibs_check_method=$lt_deplibs_check_method
10988
10989# Command to use when deplibs_check_method == file_magic.
10990file_magic_cmd=$lt_file_magic_cmd
10991
10992# Flag that allows shared libraries with undefined symbols to be built.
10993allow_undefined_flag=$lt_allow_undefined_flag
10994
10995# Flag that forces no undefined symbols.
10996no_undefined_flag=$lt_no_undefined_flag
10997
10998# Commands used to finish a libtool library installation in a directory.
10999finish_cmds=$lt_finish_cmds
11000
11001# Same as above, but a single script fragment to be evaled but not shown.
11002finish_eval=$lt_finish_eval
11003
11004# Take the output of nm and produce a listing of raw symbols and C names.
11005global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11006
11007# Transform the output of nm in a proper C declaration
11008global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11009
11010# Transform the output of nm in a C name address pair
11011global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11012
11013# This is the shared library runtime path variable.
11014runpath_var=$runpath_var
11015
11016# This is the shared library path variable.
11017shlibpath_var=$shlibpath_var
11018
11019# Is shlibpath searched before the hard-coded library search path?
11020shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11021
11022# How to hardcode a shared library path into an executable.
11023hardcode_action=$hardcode_action
11024
11025# Whether we should hardcode library paths into libraries.
11026hardcode_into_libs=$hardcode_into_libs
11027
11028# Flag to hardcode \$libdir into a binary during linking.
11029# This must work even if \$libdir does not exist.
11030hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11031
11032# If ld is used when linking, flag to hardcode \$libdir into
11033# a binary during linking. This must work even if \$libdir does
11034# not exist.
11035hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11036
11037# Whether we need a single -rpath flag with a separated argument.
11038hardcode_libdir_separator=$lt_hardcode_libdir_separator
11039
11040# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11041# resulting binary.
11042hardcode_direct=$hardcode_direct
11043
11044# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11045# resulting binary.
11046hardcode_minus_L=$hardcode_minus_L
11047
11048# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11049# the resulting binary.
11050hardcode_shlibpath_var=$hardcode_shlibpath_var
11051
11052# Set to yes if building a shared library automatically hardcodes DIR into the library
11053# and all subsequent libraries and executables linked against it.
11054hardcode_automatic=$hardcode_automatic
11055
11056# Variables whose values should be saved in libtool wrapper scripts and
11057# restored at relink time.
11058variables_saved_for_relink="$variables_saved_for_relink"
11059
11060# Whether libtool must link a program against all its dependency libraries.
11061link_all_deplibs=$link_all_deplibs
11062
11063# Compile-time system search path for libraries
11064sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11065
11066# Run-time system search path for libraries
11067sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11068
11069# Fix the shell variable \$srcfile for the compiler.
11070fix_srcfile_path=$lt_fix_srcfile_path
11071
11072# Set to yes if exported symbols are required.
11073always_export_symbols=$always_export_symbols
11074
11075# The commands to list exported symbols.
11076export_symbols_cmds=$lt_export_symbols_cmds
11077
11078# The commands to extract the exported symbol list from a shared archive.
11079extract_expsyms_cmds=$lt_extract_expsyms_cmds
11080
11081# Symbols that should not be listed in the preloaded symbols.
11082exclude_expsyms=$lt_exclude_expsyms
11083
11084# Symbols that must always be exported.
11085include_expsyms=$lt_include_expsyms
11086
11087# ### END LIBTOOL CONFIG
11088
11089__EOF__
11090
11091
11092  case $host_os in
11093  aix3*)
11094    cat <<\EOF >> "$cfgfile"
11095
11096# AIX sometimes has problems with the GCC collect2 program.  For some
11097# reason, if we set the COLLECT_NAMES environment variable, the problems
11098# vanish in a puff of smoke.
11099if test "X${COLLECT_NAMES+set}" != Xset; then
11100  COLLECT_NAMES=
11101  export COLLECT_NAMES
11102fi
11103EOF
11104    ;;
11105  esac
11106
11107  # We use sed instead of cat because bash on DJGPP gets confused if
11108  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11109  # text mode, it properly converts lines to CR/LF.  This bash problem
11110  # is reportedly fixed, but why not run on old versions too?
11111  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11112
11113  mv -f "$cfgfile" "$ofile" || \
11114    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11115  chmod +x "$ofile"
11116
11117else
11118  # If there is no Makefile yet, we rely on a make rule to execute
11119  # `config.status --recheck' to rerun these tests and create the
11120  # libtool script then.
11121  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11122  if test -f "$ltmain_in"; then
11123    test -f Makefile && make "$ltmain"
11124  fi
11125fi
11126
11127
11128ac_ext=c
11129ac_cpp='$CPP $CPPFLAGS'
11130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11132ac_compiler_gnu=$ac_cv_c_compiler_gnu
11133
11134CC="$lt_save_CC"
11135
11136
11137# Check whether --with-tags was given.
11138if test "${with_tags+set}" = set; then
11139  withval=$with_tags; tagnames="$withval"
11140fi
11141
11142
11143if test -f "$ltmain" && test -n "$tagnames"; then
11144  if test ! -f "${ofile}"; then
11145    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11146$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11147  fi
11148
11149  if test -z "$LTCC"; then
11150    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11151    if test -z "$LTCC"; then
11152      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11153$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11154    else
11155      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11156$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11157    fi
11158  fi
11159  if test -z "$LTCFLAGS"; then
11160    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11161  fi
11162
11163  # Extract list of available tagged configurations in $ofile.
11164  # Note that this assumes the entire list is on one line.
11165  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11166
11167  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11168  for tagname in $tagnames; do
11169    IFS="$lt_save_ifs"
11170    # Check whether tagname contains only valid characters
11171    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11172    "") ;;
11173    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11174$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11175   { (exit 1); exit 1; }; }
11176	;;
11177    esac
11178
11179    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11180    then
11181      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11182$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11183   { (exit 1); exit 1; }; }
11184    fi
11185
11186    # Update the list of available tags.
11187    if test -n "$tagname"; then
11188      echo appending configuration tag \"$tagname\" to $ofile
11189
11190      case $tagname in
11191      CXX)
11192	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11193	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11194	    (test "X$CXX" != "Xg++"))) ; then
11195	  ac_ext=cpp
11196ac_cpp='$CXXCPP $CPPFLAGS'
11197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11200
11201
11202
11203
11204archive_cmds_need_lc_CXX=no
11205allow_undefined_flag_CXX=
11206always_export_symbols_CXX=no
11207archive_expsym_cmds_CXX=
11208export_dynamic_flag_spec_CXX=
11209hardcode_direct_CXX=no
11210hardcode_libdir_flag_spec_CXX=
11211hardcode_libdir_flag_spec_ld_CXX=
11212hardcode_libdir_separator_CXX=
11213hardcode_minus_L_CXX=no
11214hardcode_shlibpath_var_CXX=unsupported
11215hardcode_automatic_CXX=no
11216module_cmds_CXX=
11217module_expsym_cmds_CXX=
11218link_all_deplibs_CXX=unknown
11219old_archive_cmds_CXX=$old_archive_cmds
11220no_undefined_flag_CXX=
11221whole_archive_flag_spec_CXX=
11222enable_shared_with_static_runtimes_CXX=no
11223
11224# Dependencies to place before and after the object being linked:
11225predep_objects_CXX=
11226postdep_objects_CXX=
11227predeps_CXX=
11228postdeps_CXX=
11229compiler_lib_search_path_CXX=
11230compiler_lib_search_dirs_CXX=
11231
11232# Source file extension for C++ test sources.
11233ac_ext=cpp
11234
11235# Object file extension for compiled C++ test sources.
11236objext=o
11237objext_CXX=$objext
11238
11239# Code to be used in simple compile tests
11240lt_simple_compile_test_code="int some_variable = 0;"
11241
11242# Code to be used in simple link tests
11243lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11244
11245# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11246
11247# If no C compiler was specified, use CC.
11248LTCC=${LTCC-"$CC"}
11249
11250# If no C compiler flags were specified, use CFLAGS.
11251LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11252
11253# Allow CC to be a program name with arguments.
11254compiler=$CC
11255
11256
11257# save warnings/boilerplate of simple test code
11258ac_outfile=conftest.$ac_objext
11259echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11260eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11261_lt_compiler_boilerplate=`cat conftest.err`
11262$rm conftest*
11263
11264ac_outfile=conftest.$ac_objext
11265echo "$lt_simple_link_test_code" >conftest.$ac_ext
11266eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11267_lt_linker_boilerplate=`cat conftest.err`
11268$rm -r conftest*
11269
11270
11271# Allow CC to be a program name with arguments.
11272lt_save_CC=$CC
11273lt_save_LD=$LD
11274lt_save_GCC=$GCC
11275GCC=$GXX
11276lt_save_with_gnu_ld=$with_gnu_ld
11277lt_save_path_LD=$lt_cv_path_LD
11278if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11279  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11280else
11281  $as_unset lt_cv_prog_gnu_ld
11282fi
11283if test -n "${lt_cv_path_LDCXX+set}"; then
11284  lt_cv_path_LD=$lt_cv_path_LDCXX
11285else
11286  $as_unset lt_cv_path_LD
11287fi
11288test -z "${LDCXX+set}" || LD=$LDCXX
11289CC=${CXX-"c++"}
11290compiler=$CC
11291compiler_CXX=$CC
11292for cc_temp in $compiler""; do
11293  case $cc_temp in
11294    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11295    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11296    \-*) ;;
11297    *) break;;
11298  esac
11299done
11300cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11301
11302
11303# We don't want -fno-exception wen compiling C++ code, so set the
11304# no_builtin_flag separately
11305if test "$GXX" = yes; then
11306  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11307else
11308  lt_prog_compiler_no_builtin_flag_CXX=
11309fi
11310
11311if test "$GXX" = yes; then
11312  # Set up default GNU C++ configuration
11313
11314
11315# Check whether --with-gnu-ld was given.
11316if test "${with_gnu_ld+set}" = set; then
11317  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11318else
11319  with_gnu_ld=no
11320fi
11321
11322ac_prog=ld
11323if test "$GCC" = yes; then
11324  # Check if gcc -print-prog-name=ld gives a path.
11325  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11326$as_echo_n "checking for ld used by $CC... " >&6; }
11327  case $host in
11328  *-*-mingw*)
11329    # gcc leaves a trailing carriage return which upsets mingw
11330    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11331  *)
11332    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11333  esac
11334  case $ac_prog in
11335    # Accept absolute paths.
11336    [\\/]* | ?:[\\/]*)
11337      re_direlt='/[^/][^/]*/\.\./'
11338      # Canonicalize the pathname of ld
11339      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11340      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11341	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11342      done
11343      test -z "$LD" && LD="$ac_prog"
11344      ;;
11345  "")
11346    # If it fails, then pretend we aren't using GCC.
11347    ac_prog=ld
11348    ;;
11349  *)
11350    # If it is relative, then search for the first ld in PATH.
11351    with_gnu_ld=unknown
11352    ;;
11353  esac
11354elif test "$with_gnu_ld" = yes; then
11355  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11356$as_echo_n "checking for GNU ld... " >&6; }
11357else
11358  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11359$as_echo_n "checking for non-GNU ld... " >&6; }
11360fi
11361if test "${lt_cv_path_LD+set}" = set; then
11362  $as_echo_n "(cached) " >&6
11363else
11364  if test -z "$LD"; then
11365  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11366  for ac_dir in $PATH; do
11367    IFS="$lt_save_ifs"
11368    test -z "$ac_dir" && ac_dir=.
11369    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11370      lt_cv_path_LD="$ac_dir/$ac_prog"
11371      # Check to see if the program is GNU ld.  I'd rather use --version,
11372      # but apparently some variants of GNU ld only accept -v.
11373      # Break only if it was the GNU/non-GNU ld that we prefer.
11374      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11375      *GNU* | *'with BFD'*)
11376	test "$with_gnu_ld" != no && break
11377	;;
11378      *)
11379	test "$with_gnu_ld" != yes && break
11380	;;
11381      esac
11382    fi
11383  done
11384  IFS="$lt_save_ifs"
11385else
11386  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11387fi
11388fi
11389
11390LD="$lt_cv_path_LD"
11391if test -n "$LD"; then
11392  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11393$as_echo "$LD" >&6; }
11394else
11395  { $as_echo "$as_me:$LINENO: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11399$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11400   { (exit 1); exit 1; }; }
11401{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11402$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11403if test "${lt_cv_prog_gnu_ld+set}" = set; then
11404  $as_echo_n "(cached) " >&6
11405else
11406  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11407case `$LD -v 2>&1 </dev/null` in
11408*GNU* | *'with BFD'*)
11409  lt_cv_prog_gnu_ld=yes
11410  ;;
11411*)
11412  lt_cv_prog_gnu_ld=no
11413  ;;
11414esac
11415fi
11416{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11417$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11418with_gnu_ld=$lt_cv_prog_gnu_ld
11419
11420
11421
11422  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11423  # archiving commands below assume that GNU ld is being used.
11424  if test "$with_gnu_ld" = yes; then
11425    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11426    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'
11427
11428    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11429    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11430
11431    # If archive_cmds runs LD, not CC, wlarc should be empty
11432    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11433    #     investigate it a little bit more. (MM)
11434    wlarc='${wl}'
11435
11436    # ancient GNU ld didn't support --whole-archive et. al.
11437    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11438	grep 'no-whole-archive' > /dev/null; then
11439      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11440    else
11441      whole_archive_flag_spec_CXX=
11442    fi
11443  else
11444    with_gnu_ld=no
11445    wlarc=
11446
11447    # A generic and very simple default shared library creation
11448    # command for GNU C++ for the case where it uses the native
11449    # linker, instead of GNU ld.  If possible, this setting should
11450    # overridden to take advantage of the native linker features on
11451    # the platform it is being used on.
11452    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11453  fi
11454
11455  # Commands to make compiler produce verbose output that lists
11456  # what "hidden" libraries, object files and flags are used when
11457  # linking a shared library.
11458  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11459
11460else
11461  GXX=no
11462  with_gnu_ld=no
11463  wlarc=
11464fi
11465
11466# PORTME: fill in a description of your system's C++ link characteristics
11467{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11468$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11469ld_shlibs_CXX=yes
11470case $host_os in
11471  aix3*)
11472    # FIXME: insert proper C++ library support
11473    ld_shlibs_CXX=no
11474    ;;
11475  aix[4-9]*)
11476    if test "$host_cpu" = ia64; then
11477      # On IA64, the linker does run time linking by default, so we don't
11478      # have to do anything special.
11479      aix_use_runtimelinking=no
11480      exp_sym_flag='-Bexport'
11481      no_entry_flag=""
11482    else
11483      aix_use_runtimelinking=no
11484
11485      # Test if we are trying to use run time linking or normal
11486      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11487      # need to do runtime linking.
11488      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11489	for ld_flag in $LDFLAGS; do
11490	  case $ld_flag in
11491	  *-brtl*)
11492	    aix_use_runtimelinking=yes
11493	    break
11494	    ;;
11495	  esac
11496	done
11497	;;
11498      esac
11499
11500      exp_sym_flag='-bexport'
11501      no_entry_flag='-bnoentry'
11502    fi
11503
11504    # When large executables or shared objects are built, AIX ld can
11505    # have problems creating the table of contents.  If linking a library
11506    # or program results in "error TOC overflow" add -mminimal-toc to
11507    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11508    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11509
11510    archive_cmds_CXX=''
11511    hardcode_direct_CXX=yes
11512    hardcode_libdir_separator_CXX=':'
11513    link_all_deplibs_CXX=yes
11514
11515    if test "$GXX" = yes; then
11516      case $host_os in aix4.[012]|aix4.[012].*)
11517      # We only want to do this on AIX 4.2 and lower, the check
11518      # below for broken collect2 doesn't work under 4.3+
11519	collect2name=`${CC} -print-prog-name=collect2`
11520	if test -f "$collect2name" && \
11521	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11522	then
11523	  # We have reworked collect2
11524	  :
11525	else
11526	  # We have old collect2
11527	  hardcode_direct_CXX=unsupported
11528	  # It fails to find uninstalled libraries when the uninstalled
11529	  # path is not listed in the libpath.  Setting hardcode_minus_L
11530	  # to unsupported forces relinking
11531	  hardcode_minus_L_CXX=yes
11532	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11533	  hardcode_libdir_separator_CXX=
11534	fi
11535	;;
11536      esac
11537      shared_flag='-shared'
11538      if test "$aix_use_runtimelinking" = yes; then
11539	shared_flag="$shared_flag "'${wl}-G'
11540      fi
11541    else
11542      # not using gcc
11543      if test "$host_cpu" = ia64; then
11544	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11545	# chokes on -Wl,-G. The following line is correct:
11546	shared_flag='-G'
11547      else
11548	if test "$aix_use_runtimelinking" = yes; then
11549	  shared_flag='${wl}-G'
11550	else
11551	  shared_flag='${wl}-bM:SRE'
11552	fi
11553      fi
11554    fi
11555
11556    # It seems that -bexpall does not export symbols beginning with
11557    # underscore (_), so it is better to generate a list of symbols to export.
11558    always_export_symbols_CXX=yes
11559    if test "$aix_use_runtimelinking" = yes; then
11560      # Warning - without using the other runtime loading flags (-brtl),
11561      # -berok will link without error, but may produce a broken library.
11562      allow_undefined_flag_CXX='-berok'
11563      # Determine the default libpath from the value encoded in an empty executable.
11564      cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h.  */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h.  */
11570
11571int
11572main ()
11573{
11574
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext conftest$ac_exeext
11580if { (ac_try="$ac_link"
11581case "(($ac_try" in
11582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583  *) ac_try_echo=$ac_try;;
11584esac
11585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586$as_echo "$ac_try_echo") >&5
11587  (eval "$ac_link") 2>conftest.er1
11588  ac_status=$?
11589  grep -v '^ *+' conftest.er1 >conftest.err
11590  rm -f conftest.er1
11591  cat conftest.err >&5
11592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593  (exit $ac_status); } && {
11594	 test -z "$ac_cxx_werror_flag" ||
11595	 test ! -s conftest.err
11596       } && test -s conftest$ac_exeext && {
11597	 test "$cross_compiling" = yes ||
11598	 $as_test_x conftest$ac_exeext
11599       }; then
11600
11601lt_aix_libpath_sed='
11602    /Import File Strings/,/^$/ {
11603	/^0/ {
11604	    s/^0  *\(.*\)$/\1/
11605	    p
11606	}
11607    }'
11608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609# Check for a 64-bit object if we didn't find anything.
11610if test -z "$aix_libpath"; then
11611  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11612fi
11613else
11614  $as_echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617
11618fi
11619
11620rm -rf conftest.dSYM
11621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622      conftest$ac_exeext conftest.$ac_ext
11623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11624
11625      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11626
11627      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"
11628     else
11629      if test "$host_cpu" = ia64; then
11630	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11631	allow_undefined_flag_CXX="-z nodefs"
11632	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"
11633      else
11634	# Determine the default libpath from the value encoded in an empty executable.
11635	cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h.  */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h.  */
11641
11642int
11643main ()
11644{
11645
11646  ;
11647  return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
11651if { (ac_try="$ac_link"
11652case "(($ac_try" in
11653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654  *) ac_try_echo=$ac_try;;
11655esac
11656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657$as_echo "$ac_try_echo") >&5
11658  (eval "$ac_link") 2>conftest.er1
11659  ac_status=$?
11660  grep -v '^ *+' conftest.er1 >conftest.err
11661  rm -f conftest.er1
11662  cat conftest.err >&5
11663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); } && {
11665	 test -z "$ac_cxx_werror_flag" ||
11666	 test ! -s conftest.err
11667       } && test -s conftest$ac_exeext && {
11668	 test "$cross_compiling" = yes ||
11669	 $as_test_x conftest$ac_exeext
11670       }; then
11671
11672lt_aix_libpath_sed='
11673    /Import File Strings/,/^$/ {
11674	/^0/ {
11675	    s/^0  *\(.*\)$/\1/
11676	    p
11677	}
11678    }'
11679aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680# Check for a 64-bit object if we didn't find anything.
11681if test -z "$aix_libpath"; then
11682  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683fi
11684else
11685  $as_echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688
11689fi
11690
11691rm -rf conftest.dSYM
11692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693      conftest$ac_exeext conftest.$ac_ext
11694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695
11696	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697	# Warning - without using the other run time loading flags,
11698	# -berok will link without error, but may produce a broken library.
11699	no_undefined_flag_CXX=' ${wl}-bernotok'
11700	allow_undefined_flag_CXX=' ${wl}-berok'
11701	# Exported symbols can be pulled into shared objects from archives
11702	whole_archive_flag_spec_CXX='$convenience'
11703	archive_cmds_need_lc_CXX=yes
11704	# This is similar to how AIX traditionally builds its shared libraries.
11705	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'
11706      fi
11707    fi
11708    ;;
11709
11710  beos*)
11711    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11712      allow_undefined_flag_CXX=unsupported
11713      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11714      # support --undefined.  This deserves some investigation.  FIXME
11715      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11716    else
11717      ld_shlibs_CXX=no
11718    fi
11719    ;;
11720
11721  chorus*)
11722    case $cc_basename in
11723      *)
11724	# FIXME: insert proper C++ library support
11725	ld_shlibs_CXX=no
11726	;;
11727    esac
11728    ;;
11729
11730  cygwin* | mingw* | pw32*)
11731    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11732    # as there is no search path for DLLs.
11733    hardcode_libdir_flag_spec_CXX='-L$libdir'
11734    allow_undefined_flag_CXX=unsupported
11735    always_export_symbols_CXX=no
11736    enable_shared_with_static_runtimes_CXX=yes
11737
11738    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11739      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'
11740      # If the export-symbols file already is a .def file (1st line
11741      # is EXPORTS), use it as is; otherwise, prepend...
11742      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11743	cp $export_symbols $output_objdir/$soname.def;
11744      else
11745	echo EXPORTS > $output_objdir/$soname.def;
11746	cat $export_symbols >> $output_objdir/$soname.def;
11747      fi~
11748      $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'
11749    else
11750      ld_shlibs_CXX=no
11751    fi
11752  ;;
11753      darwin* | rhapsody*)
11754      archive_cmds_need_lc_CXX=no
11755      hardcode_direct_CXX=no
11756      hardcode_automatic_CXX=yes
11757      hardcode_shlibpath_var_CXX=unsupported
11758      whole_archive_flag_spec_CXX=''
11759      link_all_deplibs_CXX=yes
11760      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11761      if test "$GXX" = yes ; then
11762      output_verbose_link_cmd='echo'
11763      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11764      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11765      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11766      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11767      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11768        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11769        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11770      fi
11771      else
11772      case $cc_basename in
11773        xlc*)
11774         output_verbose_link_cmd='echo'
11775          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11776          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11777          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11778          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11779          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}'
11780          ;;
11781       *)
11782         ld_shlibs_CXX=no
11783          ;;
11784      esac
11785      fi
11786        ;;
11787
11788  dgux*)
11789    case $cc_basename in
11790      ec++*)
11791	# FIXME: insert proper C++ library support
11792	ld_shlibs_CXX=no
11793	;;
11794      ghcx*)
11795	# Green Hills C++ Compiler
11796	# FIXME: insert proper C++ library support
11797	ld_shlibs_CXX=no
11798	;;
11799      *)
11800	# FIXME: insert proper C++ library support
11801	ld_shlibs_CXX=no
11802	;;
11803    esac
11804    ;;
11805  freebsd[12]*)
11806    # C++ shared libraries reported to be fairly broken before switch to ELF
11807    ld_shlibs_CXX=no
11808    ;;
11809  freebsd-elf*)
11810    archive_cmds_need_lc_CXX=no
11811    ;;
11812  freebsd* | dragonfly*)
11813    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11814    # conventions
11815    ld_shlibs_CXX=yes
11816    ;;
11817  gnu*)
11818    ;;
11819  hpux9*)
11820    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11821    hardcode_libdir_separator_CXX=:
11822    export_dynamic_flag_spec_CXX='${wl}-E'
11823    hardcode_direct_CXX=yes
11824    hardcode_minus_L_CXX=yes # Not in the search PATH,
11825				# but as the default
11826				# location of the library.
11827
11828    case $cc_basename in
11829    CC*)
11830      # FIXME: insert proper C++ library support
11831      ld_shlibs_CXX=no
11832      ;;
11833    aCC*)
11834      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'
11835      # Commands to make compiler produce verbose output that lists
11836      # what "hidden" libraries, object files and flags are used when
11837      # linking a shared library.
11838      #
11839      # There doesn't appear to be a way to prevent this compiler from
11840      # explicitly linking system object files so we need to strip them
11841      # from the output so that they don't get included in the library
11842      # dependencies.
11843      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'
11844      ;;
11845    *)
11846      if test "$GXX" = yes; then
11847        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'
11848      else
11849        # FIXME: insert proper C++ library support
11850        ld_shlibs_CXX=no
11851      fi
11852      ;;
11853    esac
11854    ;;
11855  hpux10*|hpux11*)
11856    if test $with_gnu_ld = no; then
11857      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11858      hardcode_libdir_separator_CXX=:
11859
11860      case $host_cpu in
11861      hppa*64*|ia64*) ;;
11862      *)
11863	export_dynamic_flag_spec_CXX='${wl}-E'
11864        ;;
11865      esac
11866    fi
11867    case $host_cpu in
11868    hppa*64*|ia64*)
11869      hardcode_direct_CXX=no
11870      hardcode_shlibpath_var_CXX=no
11871      ;;
11872    *)
11873      hardcode_direct_CXX=yes
11874      hardcode_minus_L_CXX=yes # Not in the search PATH,
11875					      # but as the default
11876					      # location of the library.
11877      ;;
11878    esac
11879
11880    case $cc_basename in
11881      CC*)
11882	# FIXME: insert proper C++ library support
11883	ld_shlibs_CXX=no
11884	;;
11885      aCC*)
11886	case $host_cpu in
11887	hppa*64*)
11888	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889	  ;;
11890	ia64*)
11891	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11892	  ;;
11893	*)
11894	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11895	  ;;
11896	esac
11897	# Commands to make compiler produce verbose output that lists
11898	# what "hidden" libraries, object files and flags are used when
11899	# linking a shared library.
11900	#
11901	# There doesn't appear to be a way to prevent this compiler from
11902	# explicitly linking system object files so we need to strip them
11903	# from the output so that they don't get included in the library
11904	# dependencies.
11905	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'
11906	;;
11907      *)
11908	if test "$GXX" = yes; then
11909	  if test $with_gnu_ld = no; then
11910	    case $host_cpu in
11911	    hppa*64*)
11912	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11913	      ;;
11914	    ia64*)
11915	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916	      ;;
11917	    *)
11918	      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'
11919	      ;;
11920	    esac
11921	  fi
11922	else
11923	  # FIXME: insert proper C++ library support
11924	  ld_shlibs_CXX=no
11925	fi
11926	;;
11927    esac
11928    ;;
11929  interix[3-9]*)
11930    hardcode_direct_CXX=no
11931    hardcode_shlibpath_var_CXX=no
11932    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933    export_dynamic_flag_spec_CXX='${wl}-E'
11934    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11935    # Instead, shared libraries are loaded at an image base (0x10000000 by
11936    # default) and relocated if they conflict, which is a slow very memory
11937    # consuming and fragmenting process.  To avoid this, we pick a random,
11938    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11939    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11940    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'
11941    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'
11942    ;;
11943  irix5* | irix6*)
11944    case $cc_basename in
11945      CC*)
11946	# SGI C++
11947	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'
11948
11949	# Archives containing C++ object files must be created using
11950	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11951	# necessary to make sure instantiated templates are included
11952	# in the archive.
11953	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11954	;;
11955      *)
11956	if test "$GXX" = yes; then
11957	  if test "$with_gnu_ld" = no; then
11958	    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'
11959	  else
11960	    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'
11961	  fi
11962	fi
11963	link_all_deplibs_CXX=yes
11964	;;
11965    esac
11966    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11967    hardcode_libdir_separator_CXX=:
11968    ;;
11969  linux* | k*bsd*-gnu)
11970    case $cc_basename in
11971      KCC*)
11972	# Kuck and Associates, Inc. (KAI) C++ Compiler
11973
11974	# KCC will only create a shared library if the output file
11975	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11976	# to its proper name (with version) after linking.
11977	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'
11978	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'
11979	# Commands to make compiler produce verbose output that lists
11980	# what "hidden" libraries, object files and flags are used when
11981	# linking a shared library.
11982	#
11983	# There doesn't appear to be a way to prevent this compiler from
11984	# explicitly linking system object files so we need to strip them
11985	# from the output so that they don't get included in the library
11986	# dependencies.
11987	output_verbose_link_cmd='templist=`$CC $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'
11988
11989	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11990	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11991
11992	# Archives containing C++ object files must be created using
11993	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11994	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11995	;;
11996      icpc*)
11997	# Intel C++
11998	with_gnu_ld=yes
11999	# version 8.0 and above of icpc choke on multiply defined symbols
12000	# if we add $predep_objects and $postdep_objects, however 7.1 and
12001	# earlier do not add the objects themselves.
12002	case `$CC -V 2>&1` in
12003	*"Version 7."*)
12004  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12005  	  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'
12006	  ;;
12007	*)  # Version 8.0 or newer
12008	  tmp_idyn=
12009	  case $host_cpu in
12010	    ia64*) tmp_idyn=' -i_dynamic';;
12011	  esac
12012  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12013	  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'
12014	  ;;
12015	esac
12016	archive_cmds_need_lc_CXX=no
12017	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12018	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12019	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12020	;;
12021      pgCC* | pgcpp*)
12022        # Portland Group C++ compiler
12023	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12024  	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'
12025
12026	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12027	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12028	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'
12029        ;;
12030      cxx*)
12031	# Compaq C++
12032	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12033	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'
12034
12035	runpath_var=LD_RUN_PATH
12036	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12037	hardcode_libdir_separator_CXX=:
12038
12039	# Commands to make compiler produce verbose output that lists
12040	# what "hidden" libraries, object files and flags are used when
12041	# linking a shared library.
12042	#
12043	# There doesn't appear to be a way to prevent this compiler from
12044	# explicitly linking system object files so we need to strip them
12045	# from the output so that they don't get included in the library
12046	# dependencies.
12047	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'
12048	;;
12049      *)
12050	case `$CC -V 2>&1 | sed 5q` in
12051	*Sun\ C*)
12052	  # Sun C++ 5.9
12053	  no_undefined_flag_CXX=' -zdefs'
12054	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12055	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12056	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12057	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12058
12059	  # Not sure whether something based on
12060	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12061	  # would be better.
12062	  output_verbose_link_cmd='echo'
12063
12064	  # Archives containing C++ object files must be created using
12065	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12066	  # necessary to make sure instantiated templates are included
12067	  # in the archive.
12068	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12069	  ;;
12070	esac
12071	;;
12072    esac
12073    ;;
12074  lynxos*)
12075    # FIXME: insert proper C++ library support
12076    ld_shlibs_CXX=no
12077    ;;
12078  m88k*)
12079    # FIXME: insert proper C++ library support
12080    ld_shlibs_CXX=no
12081    ;;
12082  mvs*)
12083    case $cc_basename in
12084      cxx*)
12085	# FIXME: insert proper C++ library support
12086	ld_shlibs_CXX=no
12087	;;
12088      *)
12089	# FIXME: insert proper C++ library support
12090	ld_shlibs_CXX=no
12091	;;
12092    esac
12093    ;;
12094  netbsd*)
12095    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12096      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12097      wlarc=
12098      hardcode_libdir_flag_spec_CXX='-R$libdir'
12099      hardcode_direct_CXX=yes
12100      hardcode_shlibpath_var_CXX=no
12101    fi
12102    # Workaround some broken pre-1.5 toolchains
12103    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12104    ;;
12105  openbsd2*)
12106    # C++ shared libraries are fairly broken
12107    ld_shlibs_CXX=no
12108    ;;
12109  openbsd*)
12110    if test -f /usr/libexec/ld.so; then
12111      hardcode_direct_CXX=yes
12112      hardcode_shlibpath_var_CXX=no
12113      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12114      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12115      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12116	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12117	export_dynamic_flag_spec_CXX='${wl}-E'
12118	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12119      fi
12120      output_verbose_link_cmd='echo'
12121    else
12122      ld_shlibs_CXX=no
12123    fi
12124    ;;
12125  osf3*)
12126    case $cc_basename in
12127      KCC*)
12128	# Kuck and Associates, Inc. (KAI) C++ Compiler
12129
12130	# KCC will only create a shared library if the output file
12131	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12132	# to its proper name (with version) after linking.
12133	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'
12134
12135	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12136	hardcode_libdir_separator_CXX=:
12137
12138	# Archives containing C++ object files must be created using
12139	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12140	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12141
12142	;;
12143      RCC*)
12144	# Rational C++ 2.4.1
12145	# FIXME: insert proper C++ library support
12146	ld_shlibs_CXX=no
12147	;;
12148      cxx*)
12149	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12150	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'
12151
12152	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12153	hardcode_libdir_separator_CXX=:
12154
12155	# Commands to make compiler produce verbose output that lists
12156	# what "hidden" libraries, object files and flags are used when
12157	# linking a shared library.
12158	#
12159	# There doesn't appear to be a way to prevent this compiler from
12160	# explicitly linking system object files so we need to strip them
12161	# from the output so that they don't get included in the library
12162	# dependencies.
12163	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'
12164	;;
12165      *)
12166	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12167	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12168	  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'
12169
12170	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12171	  hardcode_libdir_separator_CXX=:
12172
12173	  # Commands to make compiler produce verbose output that lists
12174	  # what "hidden" libraries, object files and flags are used when
12175	  # linking a shared library.
12176	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12177
12178	else
12179	  # FIXME: insert proper C++ library support
12180	  ld_shlibs_CXX=no
12181	fi
12182	;;
12183    esac
12184    ;;
12185  osf4* | osf5*)
12186    case $cc_basename in
12187      KCC*)
12188	# Kuck and Associates, Inc. (KAI) C++ Compiler
12189
12190	# KCC will only create a shared library if the output file
12191	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12192	# to its proper name (with version) after linking.
12193	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'
12194
12195	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12196	hardcode_libdir_separator_CXX=:
12197
12198	# Archives containing C++ object files must be created using
12199	# the KAI C++ compiler.
12200	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12201	;;
12202      RCC*)
12203	# Rational C++ 2.4.1
12204	# FIXME: insert proper C++ library support
12205	ld_shlibs_CXX=no
12206	;;
12207      cxx*)
12208	allow_undefined_flag_CXX=' -expect_unresolved \*'
12209	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'
12210	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12211	  echo "-hidden">> $lib.exp~
12212	  $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~
12213	  $rm $lib.exp'
12214
12215	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12216	hardcode_libdir_separator_CXX=:
12217
12218	# Commands to make compiler produce verbose output that lists
12219	# what "hidden" libraries, object files and flags are used when
12220	# linking a shared library.
12221	#
12222	# There doesn't appear to be a way to prevent this compiler from
12223	# explicitly linking system object files so we need to strip them
12224	# from the output so that they don't get included in the library
12225	# dependencies.
12226	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'
12227	;;
12228      *)
12229	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12230	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12231	 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'
12232
12233	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12234	  hardcode_libdir_separator_CXX=:
12235
12236	  # Commands to make compiler produce verbose output that lists
12237	  # what "hidden" libraries, object files and flags are used when
12238	  # linking a shared library.
12239	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12240
12241	else
12242	  # FIXME: insert proper C++ library support
12243	  ld_shlibs_CXX=no
12244	fi
12245	;;
12246    esac
12247    ;;
12248  psos*)
12249    # FIXME: insert proper C++ library support
12250    ld_shlibs_CXX=no
12251    ;;
12252  sunos4*)
12253    case $cc_basename in
12254      CC*)
12255	# Sun C++ 4.x
12256	# FIXME: insert proper C++ library support
12257	ld_shlibs_CXX=no
12258	;;
12259      lcc*)
12260	# Lucid
12261	# FIXME: insert proper C++ library support
12262	ld_shlibs_CXX=no
12263	;;
12264      *)
12265	# FIXME: insert proper C++ library support
12266	ld_shlibs_CXX=no
12267	;;
12268    esac
12269    ;;
12270  solaris*)
12271    case $cc_basename in
12272      CC*)
12273	# Sun C++ 4.2, 5.x and Centerline C++
12274        archive_cmds_need_lc_CXX=yes
12275	no_undefined_flag_CXX=' -zdefs'
12276	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12277	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12278	$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'
12279
12280	hardcode_libdir_flag_spec_CXX='-R$libdir'
12281	hardcode_shlibpath_var_CXX=no
12282	case $host_os in
12283	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12284	  *)
12285	    # The compiler driver will combine and reorder linker options,
12286	    # but understands `-z linker_flag'.
12287	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12288	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12289	    ;;
12290	esac
12291	link_all_deplibs_CXX=yes
12292
12293	output_verbose_link_cmd='echo'
12294
12295	# Archives containing C++ object files must be created using
12296	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12297	# necessary to make sure instantiated templates are included
12298	# in the archive.
12299	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12300	;;
12301      gcx*)
12302	# Green Hills C++ Compiler
12303	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12304
12305	# The C++ compiler must be used to create the archive.
12306	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12307	;;
12308      *)
12309	# GNU C++ compiler with Solaris linker
12310	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12311	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12312	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12313	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12314	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12315		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12316
12317	    # Commands to make compiler produce verbose output that lists
12318	    # what "hidden" libraries, object files and flags are used when
12319	    # linking a shared library.
12320	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12321	  else
12322	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12323	    # platform.
12324	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12325	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12326		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12327
12328	    # Commands to make compiler produce verbose output that lists
12329	    # what "hidden" libraries, object files and flags are used when
12330	    # linking a shared library.
12331	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12332	  fi
12333
12334	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12335	  case $host_os in
12336	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12337	  *)
12338	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12339	    ;;
12340	  esac
12341	fi
12342	;;
12343    esac
12344    ;;
12345  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12346    no_undefined_flag_CXX='${wl}-z,text'
12347    archive_cmds_need_lc_CXX=no
12348    hardcode_shlibpath_var_CXX=no
12349    runpath_var='LD_RUN_PATH'
12350
12351    case $cc_basename in
12352      CC*)
12353	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12354	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355	;;
12356      *)
12357	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12358	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359	;;
12360    esac
12361    ;;
12362  sysv5* | sco3.2v5* | sco5v6*)
12363    # Note: We can NOT use -z defs as we might desire, because we do not
12364    # link with -lc, and that would cause any symbols used from libc to
12365    # always be unresolved, which means just about no library would
12366    # ever link correctly.  If we're not using GNU ld we use -z text
12367    # though, which does catch some bad symbols but isn't as heavy-handed
12368    # as -z defs.
12369    # For security reasons, it is highly recommended that you always
12370    # use absolute paths for naming shared libraries, and exclude the
12371    # DT_RUNPATH tag from executables and libraries.  But doing so
12372    # requires that you compile everything twice, which is a pain.
12373    # So that behaviour is only enabled if SCOABSPATH is set to a
12374    # non-empty value in the environment.  Most likely only useful for
12375    # creating official distributions of packages.
12376    # This is a hack until libtool officially supports absolute path
12377    # names for shared libraries.
12378    no_undefined_flag_CXX='${wl}-z,text'
12379    allow_undefined_flag_CXX='${wl}-z,nodefs'
12380    archive_cmds_need_lc_CXX=no
12381    hardcode_shlibpath_var_CXX=no
12382    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12383    hardcode_libdir_separator_CXX=':'
12384    link_all_deplibs_CXX=yes
12385    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12386    runpath_var='LD_RUN_PATH'
12387
12388    case $cc_basename in
12389      CC*)
12390	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12391	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12392	;;
12393      *)
12394	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12395	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12396	;;
12397    esac
12398    ;;
12399  tandem*)
12400    case $cc_basename in
12401      NCC*)
12402	# NonStop-UX NCC 3.20
12403	# FIXME: insert proper C++ library support
12404	ld_shlibs_CXX=no
12405	;;
12406      *)
12407	# FIXME: insert proper C++ library support
12408	ld_shlibs_CXX=no
12409	;;
12410    esac
12411    ;;
12412  vxworks*)
12413    # FIXME: insert proper C++ library support
12414    ld_shlibs_CXX=no
12415    ;;
12416  *)
12417    # FIXME: insert proper C++ library support
12418    ld_shlibs_CXX=no
12419    ;;
12420esac
12421{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12422$as_echo "$ld_shlibs_CXX" >&6; }
12423test "$ld_shlibs_CXX" = no && can_build_shared=no
12424
12425GCC_CXX="$GXX"
12426LD_CXX="$LD"
12427
12428cat > conftest.$ac_ext <<EOF
12429class Foo
12430{
12431public:
12432  Foo (void) { a = 0; }
12433private:
12434  int a;
12435};
12436EOF
12437
12438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439  (eval $ac_compile) 2>&5
12440  ac_status=$?
12441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); }; then
12443  # Parse the compiler output and extract the necessary
12444  # objects, libraries and library flags.
12445
12446  # Sentinel used to keep track of whether or not we are before
12447  # the conftest object file.
12448  pre_test_object_deps_done=no
12449
12450  # The `*' in the case matches for architectures that use `case' in
12451  # $output_verbose_cmd can trigger glob expansion during the loop
12452  # eval without this substitution.
12453  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12454
12455  for p in `eval $output_verbose_link_cmd`; do
12456    case $p in
12457
12458    -L* | -R* | -l*)
12459       # Some compilers place space between "-{L,R}" and the path.
12460       # Remove the space.
12461       if test $p = "-L" \
12462	  || test $p = "-R"; then
12463	 prev=$p
12464	 continue
12465       else
12466	 prev=
12467       fi
12468
12469       if test "$pre_test_object_deps_done" = no; then
12470	 case $p in
12471	 -L* | -R*)
12472	   # Internal compiler library paths should come after those
12473	   # provided the user.  The postdeps already come after the
12474	   # user supplied libs so there is no need to process them.
12475	   if test -z "$compiler_lib_search_path_CXX"; then
12476	     compiler_lib_search_path_CXX="${prev}${p}"
12477	   else
12478	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12479	   fi
12480	   ;;
12481	 # The "-l" case would never come before the object being
12482	 # linked, so don't bother handling this case.
12483	 esac
12484       else
12485	 if test -z "$postdeps_CXX"; then
12486	   postdeps_CXX="${prev}${p}"
12487	 else
12488	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12489	 fi
12490       fi
12491       ;;
12492
12493    *.$objext)
12494       # This assumes that the test object file only shows up
12495       # once in the compiler output.
12496       if test "$p" = "conftest.$objext"; then
12497	 pre_test_object_deps_done=yes
12498	 continue
12499       fi
12500
12501       if test "$pre_test_object_deps_done" = no; then
12502	 if test -z "$predep_objects_CXX"; then
12503	   predep_objects_CXX="$p"
12504	 else
12505	   predep_objects_CXX="$predep_objects_CXX $p"
12506	 fi
12507       else
12508	 if test -z "$postdep_objects_CXX"; then
12509	   postdep_objects_CXX="$p"
12510	 else
12511	   postdep_objects_CXX="$postdep_objects_CXX $p"
12512	 fi
12513       fi
12514       ;;
12515
12516    *) ;; # Ignore the rest.
12517
12518    esac
12519  done
12520
12521  # Clean up.
12522  rm -f a.out a.exe
12523else
12524  echo "libtool.m4: error: problem compiling CXX test program"
12525fi
12526
12527$rm -f confest.$objext
12528
12529compiler_lib_search_dirs_CXX=
12530if test -n "$compiler_lib_search_path_CXX"; then
12531  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12532fi
12533
12534# PORTME: override above test on systems where it is broken
12535case $host_os in
12536interix[3-9]*)
12537  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12538  # hack all around it, let's just trust "g++" to DTRT.
12539  predep_objects_CXX=
12540  postdep_objects_CXX=
12541  postdeps_CXX=
12542  ;;
12543
12544linux*)
12545  case `$CC -V 2>&1 | sed 5q` in
12546  *Sun\ C*)
12547    # Sun C++ 5.9
12548    #
12549    # The more standards-conforming stlport4 library is
12550    # incompatible with the Cstd library. Avoid specifying
12551    # it if it's in CXXFLAGS. Ignore libCrun as
12552    # -library=stlport4 depends on it.
12553    case " $CXX $CXXFLAGS " in
12554    *" -library=stlport4 "*)
12555      solaris_use_stlport4=yes
12556      ;;
12557    esac
12558    if test "$solaris_use_stlport4" != yes; then
12559      postdeps_CXX='-library=Cstd -library=Crun'
12560    fi
12561    ;;
12562  esac
12563  ;;
12564
12565solaris*)
12566  case $cc_basename in
12567  CC*)
12568    # The more standards-conforming stlport4 library is
12569    # incompatible with the Cstd library. Avoid specifying
12570    # it if it's in CXXFLAGS. Ignore libCrun as
12571    # -library=stlport4 depends on it.
12572    case " $CXX $CXXFLAGS " in
12573    *" -library=stlport4 "*)
12574      solaris_use_stlport4=yes
12575      ;;
12576    esac
12577
12578    # Adding this requires a known-good setup of shared libraries for
12579    # Sun compiler versions before 5.6, else PIC objects from an old
12580    # archive will be linked into the output, leading to subtle bugs.
12581    if test "$solaris_use_stlport4" != yes; then
12582      postdeps_CXX='-library=Cstd -library=Crun'
12583    fi
12584    ;;
12585  esac
12586  ;;
12587esac
12588
12589case " $postdeps_CXX " in
12590*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12591esac
12592
12593lt_prog_compiler_wl_CXX=
12594lt_prog_compiler_pic_CXX=
12595lt_prog_compiler_static_CXX=
12596
12597{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12598$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12599
12600  # C++ specific cases for pic, static, wl, etc.
12601  if test "$GXX" = yes; then
12602    lt_prog_compiler_wl_CXX='-Wl,'
12603    lt_prog_compiler_static_CXX='-static'
12604
12605    case $host_os in
12606    aix*)
12607      # All AIX code is PIC.
12608      if test "$host_cpu" = ia64; then
12609	# AIX 5 now supports IA64 processor
12610	lt_prog_compiler_static_CXX='-Bstatic'
12611      fi
12612      ;;
12613    amigaos*)
12614      # FIXME: we need at least 68020 code to build shared libraries, but
12615      # adding the `-m68020' flag to GCC prevents building anything better,
12616      # like `-m68040'.
12617      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12618      ;;
12619    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12620      # PIC is the default for these OSes.
12621      ;;
12622    mingw* | cygwin* | os2* | pw32*)
12623      # This hack is so that the source file can tell whether it is being
12624      # built for inclusion in a dll (and should export symbols for example).
12625      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12626      # (--disable-auto-import) libraries
12627      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12628      ;;
12629    darwin* | rhapsody*)
12630      # PIC is the default on this platform
12631      # Common symbols not allowed in MH_DYLIB files
12632      lt_prog_compiler_pic_CXX='-fno-common'
12633      ;;
12634    *djgpp*)
12635      # DJGPP does not support shared libraries at all
12636      lt_prog_compiler_pic_CXX=
12637      ;;
12638    interix[3-9]*)
12639      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12640      # Instead, we relocate shared libraries at runtime.
12641      ;;
12642    sysv4*MP*)
12643      if test -d /usr/nec; then
12644	lt_prog_compiler_pic_CXX=-Kconform_pic
12645      fi
12646      ;;
12647    hpux*)
12648      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12649      # not for PA HP-UX.
12650      case $host_cpu in
12651      hppa*64*|ia64*)
12652	;;
12653      *)
12654	lt_prog_compiler_pic_CXX='-fPIC'
12655	;;
12656      esac
12657      ;;
12658    *)
12659      lt_prog_compiler_pic_CXX='-fPIC'
12660      ;;
12661    esac
12662  else
12663    case $host_os in
12664      aix[4-9]*)
12665	# All AIX code is PIC.
12666	if test "$host_cpu" = ia64; then
12667	  # AIX 5 now supports IA64 processor
12668	  lt_prog_compiler_static_CXX='-Bstatic'
12669	else
12670	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12671	fi
12672	;;
12673      chorus*)
12674	case $cc_basename in
12675	cxch68*)
12676	  # Green Hills C++ Compiler
12677	  # _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"
12678	  ;;
12679	esac
12680	;;
12681       darwin*)
12682         # PIC is the default on this platform
12683         # Common symbols not allowed in MH_DYLIB files
12684         case $cc_basename in
12685           xlc*)
12686           lt_prog_compiler_pic_CXX='-qnocommon'
12687           lt_prog_compiler_wl_CXX='-Wl,'
12688           ;;
12689         esac
12690       ;;
12691      dgux*)
12692	case $cc_basename in
12693	  ec++*)
12694	    lt_prog_compiler_pic_CXX='-KPIC'
12695	    ;;
12696	  ghcx*)
12697	    # Green Hills C++ Compiler
12698	    lt_prog_compiler_pic_CXX='-pic'
12699	    ;;
12700	  *)
12701	    ;;
12702	esac
12703	;;
12704      freebsd* | dragonfly*)
12705	# FreeBSD uses GNU C++
12706	;;
12707      hpux9* | hpux10* | hpux11*)
12708	case $cc_basename in
12709	  CC*)
12710	    lt_prog_compiler_wl_CXX='-Wl,'
12711	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12712	    if test "$host_cpu" != ia64; then
12713	      lt_prog_compiler_pic_CXX='+Z'
12714	    fi
12715	    ;;
12716	  aCC*)
12717	    lt_prog_compiler_wl_CXX='-Wl,'
12718	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12719	    case $host_cpu in
12720	    hppa*64*|ia64*)
12721	      # +Z the default
12722	      ;;
12723	    *)
12724	      lt_prog_compiler_pic_CXX='+Z'
12725	      ;;
12726	    esac
12727	    ;;
12728	  *)
12729	    ;;
12730	esac
12731	;;
12732      interix*)
12733	# This is c89, which is MS Visual C++ (no shared libs)
12734	# Anyone wants to do a port?
12735	;;
12736      irix5* | irix6* | nonstopux*)
12737	case $cc_basename in
12738	  CC*)
12739	    lt_prog_compiler_wl_CXX='-Wl,'
12740	    lt_prog_compiler_static_CXX='-non_shared'
12741	    # CC pic flag -KPIC is the default.
12742	    ;;
12743	  *)
12744	    ;;
12745	esac
12746	;;
12747      linux* | k*bsd*-gnu)
12748	case $cc_basename in
12749	  KCC*)
12750	    # KAI C++ Compiler
12751	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12752	    lt_prog_compiler_pic_CXX='-fPIC'
12753	    ;;
12754	  icpc* | ecpc*)
12755	    # Intel C++
12756	    lt_prog_compiler_wl_CXX='-Wl,'
12757	    lt_prog_compiler_pic_CXX='-KPIC'
12758	    lt_prog_compiler_static_CXX='-static'
12759	    ;;
12760	  pgCC* | pgcpp*)
12761	    # Portland Group C++ compiler.
12762	    lt_prog_compiler_wl_CXX='-Wl,'
12763	    lt_prog_compiler_pic_CXX='-fpic'
12764	    lt_prog_compiler_static_CXX='-Bstatic'
12765	    ;;
12766	  cxx*)
12767	    # Compaq C++
12768	    # Make sure the PIC flag is empty.  It appears that all Alpha
12769	    # Linux and Compaq Tru64 Unix objects are PIC.
12770	    lt_prog_compiler_pic_CXX=
12771	    lt_prog_compiler_static_CXX='-non_shared'
12772	    ;;
12773	  *)
12774	    case `$CC -V 2>&1 | sed 5q` in
12775	    *Sun\ C*)
12776	      # Sun C++ 5.9
12777	      lt_prog_compiler_pic_CXX='-KPIC'
12778	      lt_prog_compiler_static_CXX='-Bstatic'
12779	      lt_prog_compiler_wl_CXX='-Qoption ld '
12780	      ;;
12781	    esac
12782	    ;;
12783	esac
12784	;;
12785      lynxos*)
12786	;;
12787      m88k*)
12788	;;
12789      mvs*)
12790	case $cc_basename in
12791	  cxx*)
12792	    lt_prog_compiler_pic_CXX='-W c,exportall'
12793	    ;;
12794	  *)
12795	    ;;
12796	esac
12797	;;
12798      netbsd*)
12799	;;
12800      osf3* | osf4* | osf5*)
12801	case $cc_basename in
12802	  KCC*)
12803	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12804	    ;;
12805	  RCC*)
12806	    # Rational C++ 2.4.1
12807	    lt_prog_compiler_pic_CXX='-pic'
12808	    ;;
12809	  cxx*)
12810	    # Digital/Compaq C++
12811	    lt_prog_compiler_wl_CXX='-Wl,'
12812	    # Make sure the PIC flag is empty.  It appears that all Alpha
12813	    # Linux and Compaq Tru64 Unix objects are PIC.
12814	    lt_prog_compiler_pic_CXX=
12815	    lt_prog_compiler_static_CXX='-non_shared'
12816	    ;;
12817	  *)
12818	    ;;
12819	esac
12820	;;
12821      psos*)
12822	;;
12823      solaris*)
12824	case $cc_basename in
12825	  CC*)
12826	    # Sun C++ 4.2, 5.x and Centerline C++
12827	    lt_prog_compiler_pic_CXX='-KPIC'
12828	    lt_prog_compiler_static_CXX='-Bstatic'
12829	    lt_prog_compiler_wl_CXX='-Qoption ld '
12830	    ;;
12831	  gcx*)
12832	    # Green Hills C++ Compiler
12833	    lt_prog_compiler_pic_CXX='-PIC'
12834	    ;;
12835	  *)
12836	    ;;
12837	esac
12838	;;
12839      sunos4*)
12840	case $cc_basename in
12841	  CC*)
12842	    # Sun C++ 4.x
12843	    lt_prog_compiler_pic_CXX='-pic'
12844	    lt_prog_compiler_static_CXX='-Bstatic'
12845	    ;;
12846	  lcc*)
12847	    # Lucid
12848	    lt_prog_compiler_pic_CXX='-pic'
12849	    ;;
12850	  *)
12851	    ;;
12852	esac
12853	;;
12854      tandem*)
12855	case $cc_basename in
12856	  NCC*)
12857	    # NonStop-UX NCC 3.20
12858	    lt_prog_compiler_pic_CXX='-KPIC'
12859	    ;;
12860	  *)
12861	    ;;
12862	esac
12863	;;
12864      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12865	case $cc_basename in
12866	  CC*)
12867	    lt_prog_compiler_wl_CXX='-Wl,'
12868	    lt_prog_compiler_pic_CXX='-KPIC'
12869	    lt_prog_compiler_static_CXX='-Bstatic'
12870	    ;;
12871	esac
12872	;;
12873      vxworks*)
12874	;;
12875      *)
12876	lt_prog_compiler_can_build_shared_CXX=no
12877	;;
12878    esac
12879  fi
12880
12881{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12882$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12883
12884#
12885# Check to make sure the PIC flag actually works.
12886#
12887if test -n "$lt_prog_compiler_pic_CXX"; then
12888
12889{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12890$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12891if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12892  $as_echo_n "(cached) " >&6
12893else
12894  lt_cv_prog_compiler_pic_works_CXX=no
12895  ac_outfile=conftest.$ac_objext
12896   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12897   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12898   # Insert the option either (1) after the last *FLAGS variable, or
12899   # (2) before a word containing "conftest.", or (3) at the end.
12900   # Note that $ac_compile itself does not contain backslashes and begins
12901   # with a dollar sign (not a hyphen), so the echo should work correctly.
12902   # The option is referenced via a variable to avoid confusing sed.
12903   lt_compile=`echo "$ac_compile" | $SED \
12904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12906   -e 's:$: $lt_compiler_flag:'`
12907   (eval echo "\"\$as_me:12907: $lt_compile\"" >&5)
12908   (eval "$lt_compile" 2>conftest.err)
12909   ac_status=$?
12910   cat conftest.err >&5
12911   echo "$as_me:12911: \$? = $ac_status" >&5
12912   if (exit $ac_status) && test -s "$ac_outfile"; then
12913     # The compiler can only warn and ignore the option if not recognized
12914     # So say no if there are warnings other than the usual output.
12915     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12916     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12917     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12918       lt_cv_prog_compiler_pic_works_CXX=yes
12919     fi
12920   fi
12921   $rm conftest*
12922
12923fi
12924{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12925$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12926
12927if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12928    case $lt_prog_compiler_pic_CXX in
12929     "" | " "*) ;;
12930     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12931     esac
12932else
12933    lt_prog_compiler_pic_CXX=
12934     lt_prog_compiler_can_build_shared_CXX=no
12935fi
12936
12937fi
12938case $host_os in
12939  # For platforms which do not support PIC, -DPIC is meaningless:
12940  *djgpp*)
12941    lt_prog_compiler_pic_CXX=
12942    ;;
12943  *)
12944    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12945    ;;
12946esac
12947
12948#
12949# Check to make sure the static flag actually works.
12950#
12951wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12952{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12953$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12954if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12955  $as_echo_n "(cached) " >&6
12956else
12957  lt_cv_prog_compiler_static_works_CXX=no
12958   save_LDFLAGS="$LDFLAGS"
12959   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12960   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12961   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12962     # The linker can only warn and ignore the option if not recognized
12963     # So say no if there are warnings
12964     if test -s conftest.err; then
12965       # Append any errors to the config.log.
12966       cat conftest.err 1>&5
12967       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12968       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12969       if diff conftest.exp conftest.er2 >/dev/null; then
12970         lt_cv_prog_compiler_static_works_CXX=yes
12971       fi
12972     else
12973       lt_cv_prog_compiler_static_works_CXX=yes
12974     fi
12975   fi
12976   $rm -r conftest*
12977   LDFLAGS="$save_LDFLAGS"
12978
12979fi
12980{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12981$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12982
12983if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12984    :
12985else
12986    lt_prog_compiler_static_CXX=
12987fi
12988
12989
12990{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12992if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12993  $as_echo_n "(cached) " >&6
12994else
12995  lt_cv_prog_compiler_c_o_CXX=no
12996   $rm -r conftest 2>/dev/null
12997   mkdir conftest
12998   cd conftest
12999   mkdir out
13000   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13001
13002   lt_compiler_flag="-o out/conftest2.$ac_objext"
13003   # Insert the option either (1) after the last *FLAGS variable, or
13004   # (2) before a word containing "conftest.", or (3) at the end.
13005   # Note that $ac_compile itself does not contain backslashes and begins
13006   # with a dollar sign (not a hyphen), so the echo should work correctly.
13007   lt_compile=`echo "$ac_compile" | $SED \
13008   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13009   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13010   -e 's:$: $lt_compiler_flag:'`
13011   (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
13012   (eval "$lt_compile" 2>out/conftest.err)
13013   ac_status=$?
13014   cat out/conftest.err >&5
13015   echo "$as_me:13015: \$? = $ac_status" >&5
13016   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13017   then
13018     # The compiler can only warn and ignore the option if not recognized
13019     # So say no if there are warnings
13020     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13021     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13022     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13023       lt_cv_prog_compiler_c_o_CXX=yes
13024     fi
13025   fi
13026   chmod u+w . 2>&5
13027   $rm conftest*
13028   # SGI C++ compiler will create directory out/ii_files/ for
13029   # template instantiation
13030   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13031   $rm out/* && rmdir out
13032   cd ..
13033   rmdir conftest
13034   $rm conftest*
13035
13036fi
13037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13038$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13039
13040
13041hard_links="nottested"
13042if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13043  # do not overwrite the value of need_locks provided by the user
13044  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13045$as_echo_n "checking if we can lock with hard links... " >&6; }
13046  hard_links=yes
13047  $rm conftest*
13048  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13049  touch conftest.a
13050  ln conftest.a conftest.b 2>&5 || hard_links=no
13051  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13052  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13053$as_echo "$hard_links" >&6; }
13054  if test "$hard_links" = no; then
13055    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13056$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13057    need_locks=warn
13058  fi
13059else
13060  need_locks=no
13061fi
13062
13063{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13064$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13065
13066  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13067  case $host_os in
13068  aix[4-9]*)
13069    # If we're using GNU nm, then we don't want the "-C" option.
13070    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13071    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13072      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'
13073    else
13074      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'
13075    fi
13076    ;;
13077  pw32*)
13078    export_symbols_cmds_CXX="$ltdll_cmds"
13079  ;;
13080  cygwin* | mingw*)
13081    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'
13082  ;;
13083  *)
13084    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13085  ;;
13086  esac
13087  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13088
13089{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13090$as_echo "$ld_shlibs_CXX" >&6; }
13091test "$ld_shlibs_CXX" = no && can_build_shared=no
13092
13093#
13094# Do we need to explicitly link libc?
13095#
13096case "x$archive_cmds_need_lc_CXX" in
13097x|xyes)
13098  # Assume -lc should be added
13099  archive_cmds_need_lc_CXX=yes
13100
13101  if test "$enable_shared" = yes && test "$GCC" = yes; then
13102    case $archive_cmds_CXX in
13103    *'~'*)
13104      # FIXME: we may have to deal with multi-command sequences.
13105      ;;
13106    '$CC '*)
13107      # Test whether the compiler implicitly links with -lc since on some
13108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13109      # to ld, don't add -lc before -lgcc.
13110      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13112      $rm conftest*
13113      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13114
13115      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116  (eval $ac_compile) 2>&5
13117  ac_status=$?
13118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119  (exit $ac_status); } 2>conftest.err; then
13120        soname=conftest
13121        lib=conftest
13122        libobjs=conftest.$ac_objext
13123        deplibs=
13124        wl=$lt_prog_compiler_wl_CXX
13125	pic_flag=$lt_prog_compiler_pic_CXX
13126        compiler_flags=-v
13127        linker_flags=-v
13128        verstring=
13129        output_objdir=.
13130        libname=conftest
13131        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13132        allow_undefined_flag_CXX=
13133        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13134  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13135  ac_status=$?
13136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137  (exit $ac_status); }
13138        then
13139	  archive_cmds_need_lc_CXX=no
13140        else
13141	  archive_cmds_need_lc_CXX=yes
13142        fi
13143        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13144      else
13145        cat conftest.err 1>&5
13146      fi
13147      $rm conftest*
13148      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13149$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13150      ;;
13151    esac
13152  fi
13153  ;;
13154esac
13155
13156{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13157$as_echo_n "checking dynamic linker characteristics... " >&6; }
13158library_names_spec=
13159libname_spec='lib$name'
13160soname_spec=
13161shrext_cmds=".so"
13162postinstall_cmds=
13163postuninstall_cmds=
13164finish_cmds=
13165finish_eval=
13166shlibpath_var=
13167shlibpath_overrides_runpath=unknown
13168version_type=none
13169dynamic_linker="$host_os ld.so"
13170sys_lib_dlsearch_path_spec="/lib /usr/lib"
13171
13172need_lib_prefix=unknown
13173hardcode_into_libs=no
13174
13175# when you set need_version to no, make sure it does not cause -set_version
13176# flags to be left without arguments
13177need_version=unknown
13178
13179case $host_os in
13180aix3*)
13181  version_type=linux
13182  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13183  shlibpath_var=LIBPATH
13184
13185  # AIX 3 has no versioning support, so we append a major version to the name.
13186  soname_spec='${libname}${release}${shared_ext}$major'
13187  ;;
13188
13189aix[4-9]*)
13190  version_type=linux
13191  need_lib_prefix=no
13192  need_version=no
13193  hardcode_into_libs=yes
13194  if test "$host_cpu" = ia64; then
13195    # AIX 5 supports IA64
13196    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13197    shlibpath_var=LD_LIBRARY_PATH
13198  else
13199    # With GCC up to 2.95.x, collect2 would create an import file
13200    # for dependence libraries.  The import file would start with
13201    # the line `#! .'.  This would cause the generated library to
13202    # depend on `.', always an invalid library.  This was fixed in
13203    # development snapshots of GCC prior to 3.0.
13204    case $host_os in
13205      aix4 | aix4.[01] | aix4.[01].*)
13206      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13207	   echo ' yes '
13208	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13209	:
13210      else
13211	can_build_shared=no
13212      fi
13213      ;;
13214    esac
13215    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13216    # soname into executable. Probably we can add versioning support to
13217    # collect2, so additional links can be useful in future.
13218    if test "$aix_use_runtimelinking" = yes; then
13219      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13220      # instead of lib<name>.a to let people know that these are not
13221      # typical AIX shared libraries.
13222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223    else
13224      # We preserve .a as extension for shared libraries through AIX4.2
13225      # and later when we are not doing run time linking.
13226      library_names_spec='${libname}${release}.a $libname.a'
13227      soname_spec='${libname}${release}${shared_ext}$major'
13228    fi
13229    shlibpath_var=LIBPATH
13230  fi
13231  ;;
13232
13233amigaos*)
13234  library_names_spec='$libname.ixlibrary $libname.a'
13235  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13236  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'
13237  ;;
13238
13239beos*)
13240  library_names_spec='${libname}${shared_ext}'
13241  dynamic_linker="$host_os ld.so"
13242  shlibpath_var=LIBRARY_PATH
13243  ;;
13244
13245bsdi[45]*)
13246  version_type=linux
13247  need_version=no
13248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249  soname_spec='${libname}${release}${shared_ext}$major'
13250  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13251  shlibpath_var=LD_LIBRARY_PATH
13252  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13253  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13254  # the default ld.so.conf also contains /usr/contrib/lib and
13255  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13256  # libtool to hard-code these into programs
13257  ;;
13258
13259cygwin* | mingw* | pw32*)
13260  version_type=windows
13261  shrext_cmds=".dll"
13262  need_version=no
13263  need_lib_prefix=no
13264
13265  case $GCC,$host_os in
13266  yes,cygwin* | yes,mingw* | yes,pw32*)
13267    library_names_spec='$libname.dll.a'
13268    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13269    postinstall_cmds='base_file=`basename \${file}`~
13270      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13271      dldir=$destdir/`dirname \$dlpath`~
13272      test -d \$dldir || mkdir -p \$dldir~
13273      $install_prog $dir/$dlname \$dldir/$dlname~
13274      chmod a+x \$dldir/$dlname'
13275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13276      dlpath=$dir/\$dldll~
13277       $rm \$dlpath'
13278    shlibpath_overrides_runpath=yes
13279
13280    case $host_os in
13281    cygwin*)
13282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13283      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13284      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13285      ;;
13286    mingw*)
13287      # MinGW DLLs use traditional 'lib' prefix
13288      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13289      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13290      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13291        # It is most probably a Windows format PATH printed by
13292        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13293        # path with ; separators, and with drive letters. We can handle the
13294        # drive letters (cygwin fileutils understands them), so leave them,
13295        # especially as we might pass files found there to a mingw objdump,
13296        # which wouldn't understand a cygwinified path. Ahh.
13297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13298      else
13299        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13300      fi
13301      ;;
13302    pw32*)
13303      # pw32 DLLs use 'pw' prefix rather than 'lib'
13304      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13305      ;;
13306    esac
13307    ;;
13308
13309  *)
13310    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13311    ;;
13312  esac
13313  dynamic_linker='Win32 ld.exe'
13314  # FIXME: first we should search . and the directory the executable is in
13315  shlibpath_var=PATH
13316  ;;
13317
13318darwin* | rhapsody*)
13319  dynamic_linker="$host_os dyld"
13320  version_type=darwin
13321  need_lib_prefix=no
13322  need_version=no
13323  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13324  soname_spec='${libname}${release}${major}$shared_ext'
13325  shlibpath_overrides_runpath=yes
13326  shlibpath_var=DYLD_LIBRARY_PATH
13327  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13328
13329  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13330  ;;
13331
13332dgux*)
13333  version_type=linux
13334  need_lib_prefix=no
13335  need_version=no
13336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13337  soname_spec='${libname}${release}${shared_ext}$major'
13338  shlibpath_var=LD_LIBRARY_PATH
13339  ;;
13340
13341freebsd1*)
13342  dynamic_linker=no
13343  ;;
13344
13345freebsd* | dragonfly*)
13346  # DragonFly does not have aout.  When/if they implement a new
13347  # versioning mechanism, adjust this.
13348  if test -x /usr/bin/objformat; then
13349    objformat=`/usr/bin/objformat`
13350  else
13351    case $host_os in
13352    freebsd[123]*) objformat=aout ;;
13353    *) objformat=elf ;;
13354    esac
13355  fi
13356  # Handle Gentoo/FreeBSD as it was Linux
13357  case $host_vendor in
13358    gentoo)
13359      version_type=linux ;;
13360    *)
13361      version_type=freebsd-$objformat ;;
13362  esac
13363
13364  case $version_type in
13365    freebsd-elf*)
13366      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13367      need_version=no
13368      need_lib_prefix=no
13369      ;;
13370    freebsd-*)
13371      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13372      need_version=yes
13373      ;;
13374    linux)
13375      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376      soname_spec='${libname}${release}${shared_ext}$major'
13377      need_lib_prefix=no
13378      need_version=no
13379      ;;
13380  esac
13381  shlibpath_var=LD_LIBRARY_PATH
13382  case $host_os in
13383  freebsd2*)
13384    shlibpath_overrides_runpath=yes
13385    ;;
13386  freebsd3.[01]* | freebsdelf3.[01]*)
13387    shlibpath_overrides_runpath=yes
13388    hardcode_into_libs=yes
13389    ;;
13390  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13391  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13392    shlibpath_overrides_runpath=no
13393    hardcode_into_libs=yes
13394    ;;
13395  *) # from 4.6 on, and DragonFly
13396    shlibpath_overrides_runpath=yes
13397    hardcode_into_libs=yes
13398    ;;
13399  esac
13400  ;;
13401
13402gnu*)
13403  version_type=linux
13404  need_lib_prefix=no
13405  need_version=no
13406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13407  soname_spec='${libname}${release}${shared_ext}$major'
13408  shlibpath_var=LD_LIBRARY_PATH
13409  hardcode_into_libs=yes
13410  ;;
13411
13412hpux9* | hpux10* | hpux11*)
13413  # Give a soname corresponding to the major version so that dld.sl refuses to
13414  # link against other versions.
13415  version_type=sunos
13416  need_lib_prefix=no
13417  need_version=no
13418  case $host_cpu in
13419  ia64*)
13420    shrext_cmds='.so'
13421    hardcode_into_libs=yes
13422    dynamic_linker="$host_os dld.so"
13423    shlibpath_var=LD_LIBRARY_PATH
13424    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13426    soname_spec='${libname}${release}${shared_ext}$major'
13427    if test "X$HPUX_IA64_MODE" = X32; then
13428      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13429    else
13430      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13431    fi
13432    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13433    ;;
13434   hppa*64*)
13435     shrext_cmds='.sl'
13436     hardcode_into_libs=yes
13437     dynamic_linker="$host_os dld.sl"
13438     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13439     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441     soname_spec='${libname}${release}${shared_ext}$major'
13442     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13443     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13444     ;;
13445   *)
13446    shrext_cmds='.sl'
13447    dynamic_linker="$host_os dld.sl"
13448    shlibpath_var=SHLIB_PATH
13449    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451    soname_spec='${libname}${release}${shared_ext}$major'
13452    ;;
13453  esac
13454  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13455  postinstall_cmds='chmod 555 $lib'
13456  ;;
13457
13458interix[3-9]*)
13459  version_type=linux
13460  need_lib_prefix=no
13461  need_version=no
13462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13463  soname_spec='${libname}${release}${shared_ext}$major'
13464  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13465  shlibpath_var=LD_LIBRARY_PATH
13466  shlibpath_overrides_runpath=no
13467  hardcode_into_libs=yes
13468  ;;
13469
13470irix5* | irix6* | nonstopux*)
13471  case $host_os in
13472    nonstopux*) version_type=nonstopux ;;
13473    *)
13474	if test "$lt_cv_prog_gnu_ld" = yes; then
13475		version_type=linux
13476	else
13477		version_type=irix
13478	fi ;;
13479  esac
13480  need_lib_prefix=no
13481  need_version=no
13482  soname_spec='${libname}${release}${shared_ext}$major'
13483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13484  case $host_os in
13485  irix5* | nonstopux*)
13486    libsuff= shlibsuff=
13487    ;;
13488  *)
13489    case $LD in # libtool.m4 will add one of these switches to LD
13490    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13491      libsuff= shlibsuff= libmagic=32-bit;;
13492    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13493      libsuff=32 shlibsuff=N32 libmagic=N32;;
13494    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13495      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13496    *) libsuff= shlibsuff= libmagic=never-match;;
13497    esac
13498    ;;
13499  esac
13500  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13501  shlibpath_overrides_runpath=no
13502  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13503  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13504  hardcode_into_libs=yes
13505  ;;
13506
13507# No shared lib support for Linux oldld, aout, or coff.
13508linux*oldld* | linux*aout* | linux*coff*)
13509  dynamic_linker=no
13510  ;;
13511
13512# This must be Linux ELF.
13513linux* | k*bsd*-gnu)
13514  version_type=linux
13515  need_lib_prefix=no
13516  need_version=no
13517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518  soname_spec='${libname}${release}${shared_ext}$major'
13519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13520  shlibpath_var=LD_LIBRARY_PATH
13521  shlibpath_overrides_runpath=no
13522  # This implies no fast_install, which is unacceptable.
13523  # Some rework will be needed to allow for fast_install
13524  # before this can be enabled.
13525  hardcode_into_libs=yes
13526
13527  # Append ld.so.conf contents to the search path
13528  if test -f /etc/ld.so.conf; then
13529    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13530    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13531  fi
13532
13533  # We used to test for /lib/ld.so.1 and disable shared libraries on
13534  # powerpc, because MkLinux only supported shared libraries with the
13535  # GNU dynamic linker.  Since this was broken with cross compilers,
13536  # most powerpc-linux boxes support dynamic linking these days and
13537  # people can always --disable-shared, the test was removed, and we
13538  # assume the GNU/Linux dynamic linker is in use.
13539  dynamic_linker='GNU/Linux ld.so'
13540  ;;
13541
13542netbsd*)
13543  version_type=sunos
13544  need_lib_prefix=no
13545  need_version=no
13546  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13548    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13549    dynamic_linker='NetBSD (a.out) ld.so'
13550  else
13551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13552    soname_spec='${libname}${release}${shared_ext}$major'
13553    dynamic_linker='NetBSD ld.elf_so'
13554  fi
13555  shlibpath_var=LD_LIBRARY_PATH
13556  shlibpath_overrides_runpath=yes
13557  hardcode_into_libs=yes
13558  ;;
13559
13560newsos6)
13561  version_type=linux
13562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563  shlibpath_var=LD_LIBRARY_PATH
13564  shlibpath_overrides_runpath=yes
13565  ;;
13566
13567nto-qnx*)
13568  version_type=linux
13569  need_lib_prefix=no
13570  need_version=no
13571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572  soname_spec='${libname}${release}${shared_ext}$major'
13573  shlibpath_var=LD_LIBRARY_PATH
13574  shlibpath_overrides_runpath=yes
13575  ;;
13576
13577openbsd*)
13578  version_type=sunos
13579  sys_lib_dlsearch_path_spec="/usr/lib"
13580  need_lib_prefix=no
13581  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13582  case $host_os in
13583    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13584    *)                         need_version=no  ;;
13585  esac
13586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13588  shlibpath_var=LD_LIBRARY_PATH
13589  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13590    case $host_os in
13591      openbsd2.[89] | openbsd2.[89].*)
13592	shlibpath_overrides_runpath=no
13593	;;
13594      *)
13595	shlibpath_overrides_runpath=yes
13596	;;
13597      esac
13598  else
13599    shlibpath_overrides_runpath=yes
13600  fi
13601  ;;
13602
13603os2*)
13604  libname_spec='$name'
13605  shrext_cmds=".dll"
13606  need_lib_prefix=no
13607  library_names_spec='$libname${shared_ext} $libname.a'
13608  dynamic_linker='OS/2 ld.exe'
13609  shlibpath_var=LIBPATH
13610  ;;
13611
13612osf3* | osf4* | osf5*)
13613  version_type=osf
13614  need_lib_prefix=no
13615  need_version=no
13616  soname_spec='${libname}${release}${shared_ext}$major'
13617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618  shlibpath_var=LD_LIBRARY_PATH
13619  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13620  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13621  ;;
13622
13623rdos*)
13624  dynamic_linker=no
13625  ;;
13626
13627solaris*)
13628  version_type=linux
13629  need_lib_prefix=no
13630  need_version=no
13631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632  soname_spec='${libname}${release}${shared_ext}$major'
13633  shlibpath_var=LD_LIBRARY_PATH
13634  shlibpath_overrides_runpath=yes
13635  hardcode_into_libs=yes
13636  # ldd complains unless libraries are executable
13637  postinstall_cmds='chmod +x $lib'
13638  ;;
13639
13640sunos4*)
13641  version_type=sunos
13642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13643  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13644  shlibpath_var=LD_LIBRARY_PATH
13645  shlibpath_overrides_runpath=yes
13646  if test "$with_gnu_ld" = yes; then
13647    need_lib_prefix=no
13648  fi
13649  need_version=yes
13650  ;;
13651
13652sysv4 | sysv4.3*)
13653  version_type=linux
13654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13655  soname_spec='${libname}${release}${shared_ext}$major'
13656  shlibpath_var=LD_LIBRARY_PATH
13657  case $host_vendor in
13658    sni)
13659      shlibpath_overrides_runpath=no
13660      need_lib_prefix=no
13661      export_dynamic_flag_spec='${wl}-Blargedynsym'
13662      runpath_var=LD_RUN_PATH
13663      ;;
13664    siemens)
13665      need_lib_prefix=no
13666      ;;
13667    motorola)
13668      need_lib_prefix=no
13669      need_version=no
13670      shlibpath_overrides_runpath=no
13671      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13672      ;;
13673  esac
13674  ;;
13675
13676sysv4*MP*)
13677  if test -d /usr/nec ;then
13678    version_type=linux
13679    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13680    soname_spec='$libname${shared_ext}.$major'
13681    shlibpath_var=LD_LIBRARY_PATH
13682  fi
13683  ;;
13684
13685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13686  version_type=freebsd-elf
13687  need_lib_prefix=no
13688  need_version=no
13689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13690  soname_spec='${libname}${release}${shared_ext}$major'
13691  shlibpath_var=LD_LIBRARY_PATH
13692  hardcode_into_libs=yes
13693  if test "$with_gnu_ld" = yes; then
13694    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13695    shlibpath_overrides_runpath=no
13696  else
13697    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13698    shlibpath_overrides_runpath=yes
13699    case $host_os in
13700      sco3.2v5*)
13701        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13702	;;
13703    esac
13704  fi
13705  sys_lib_dlsearch_path_spec='/usr/lib'
13706  ;;
13707
13708uts4*)
13709  version_type=linux
13710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711  soname_spec='${libname}${release}${shared_ext}$major'
13712  shlibpath_var=LD_LIBRARY_PATH
13713  ;;
13714
13715*)
13716  dynamic_linker=no
13717  ;;
13718esac
13719{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13720$as_echo "$dynamic_linker" >&6; }
13721test "$dynamic_linker" = no && can_build_shared=no
13722
13723if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13724  $as_echo_n "(cached) " >&6
13725else
13726  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13727fi
13728
13729sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13730if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13731  $as_echo_n "(cached) " >&6
13732else
13733  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13734fi
13735
13736sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13737
13738variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13739if test "$GCC" = yes; then
13740  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13741fi
13742
13743{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13744$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13745hardcode_action_CXX=
13746if test -n "$hardcode_libdir_flag_spec_CXX" || \
13747   test -n "$runpath_var_CXX" || \
13748   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13749
13750  # We can hardcode non-existant directories.
13751  if test "$hardcode_direct_CXX" != no &&
13752     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13753     # have to relink, otherwise we might link with an installed library
13754     # when we should be linking with a yet-to-be-installed one
13755     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13756     test "$hardcode_minus_L_CXX" != no; then
13757    # Linking always hardcodes the temporary library directory.
13758    hardcode_action_CXX=relink
13759  else
13760    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13761    hardcode_action_CXX=immediate
13762  fi
13763else
13764  # We cannot hardcode anything, or else we can only hardcode existing
13765  # directories.
13766  hardcode_action_CXX=unsupported
13767fi
13768{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13769$as_echo "$hardcode_action_CXX" >&6; }
13770
13771if test "$hardcode_action_CXX" = relink; then
13772  # Fast installation is not supported
13773  enable_fast_install=no
13774elif test "$shlibpath_overrides_runpath" = yes ||
13775     test "$enable_shared" = no; then
13776  # Fast installation is not necessary
13777  enable_fast_install=needless
13778fi
13779
13780
13781# The else clause should only fire when bootstrapping the
13782# libtool distribution, otherwise you forgot to ship ltmain.sh
13783# with your package, and you will get complaints that there are
13784# no rules to generate ltmain.sh.
13785if test -f "$ltmain"; then
13786  # See if we are running on zsh, and set the options which allow our commands through
13787  # without removal of \ escapes.
13788  if test -n "${ZSH_VERSION+set}" ; then
13789    setopt NO_GLOB_SUBST
13790  fi
13791  # Now quote all the things that may contain metacharacters while being
13792  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13793  # variables and quote the copies for generation of the libtool script.
13794  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13795    SED SHELL STRIP \
13796    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13797    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13798    deplibs_check_method reload_flag reload_cmds need_locks \
13799    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13800    lt_cv_sys_global_symbol_to_c_name_address \
13801    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13802    old_postinstall_cmds old_postuninstall_cmds \
13803    compiler_CXX \
13804    CC_CXX \
13805    LD_CXX \
13806    lt_prog_compiler_wl_CXX \
13807    lt_prog_compiler_pic_CXX \
13808    lt_prog_compiler_static_CXX \
13809    lt_prog_compiler_no_builtin_flag_CXX \
13810    export_dynamic_flag_spec_CXX \
13811    thread_safe_flag_spec_CXX \
13812    whole_archive_flag_spec_CXX \
13813    enable_shared_with_static_runtimes_CXX \
13814    old_archive_cmds_CXX \
13815    old_archive_from_new_cmds_CXX \
13816    predep_objects_CXX \
13817    postdep_objects_CXX \
13818    predeps_CXX \
13819    postdeps_CXX \
13820    compiler_lib_search_path_CXX \
13821    compiler_lib_search_dirs_CXX \
13822    archive_cmds_CXX \
13823    archive_expsym_cmds_CXX \
13824    postinstall_cmds_CXX \
13825    postuninstall_cmds_CXX \
13826    old_archive_from_expsyms_cmds_CXX \
13827    allow_undefined_flag_CXX \
13828    no_undefined_flag_CXX \
13829    export_symbols_cmds_CXX \
13830    hardcode_libdir_flag_spec_CXX \
13831    hardcode_libdir_flag_spec_ld_CXX \
13832    hardcode_libdir_separator_CXX \
13833    hardcode_automatic_CXX \
13834    module_cmds_CXX \
13835    module_expsym_cmds_CXX \
13836    lt_cv_prog_compiler_c_o_CXX \
13837    fix_srcfile_path_CXX \
13838    exclude_expsyms_CXX \
13839    include_expsyms_CXX; do
13840
13841    case $var in
13842    old_archive_cmds_CXX | \
13843    old_archive_from_new_cmds_CXX | \
13844    archive_cmds_CXX | \
13845    archive_expsym_cmds_CXX | \
13846    module_cmds_CXX | \
13847    module_expsym_cmds_CXX | \
13848    old_archive_from_expsyms_cmds_CXX | \
13849    export_symbols_cmds_CXX | \
13850    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13851    postinstall_cmds | postuninstall_cmds | \
13852    old_postinstall_cmds | old_postuninstall_cmds | \
13853    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13854      # Double-quote double-evaled strings.
13855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13856      ;;
13857    *)
13858      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13859      ;;
13860    esac
13861  done
13862
13863  case $lt_echo in
13864  *'\$0 --fallback-echo"')
13865    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13866    ;;
13867  esac
13868
13869cfgfile="$ofile"
13870
13871  cat <<__EOF__ >> "$cfgfile"
13872# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13873
13874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13875
13876# Shell to use when invoking shell scripts.
13877SHELL=$lt_SHELL
13878
13879# Whether or not to build shared libraries.
13880build_libtool_libs=$enable_shared
13881
13882# Whether or not to build static libraries.
13883build_old_libs=$enable_static
13884
13885# Whether or not to add -lc for building shared libraries.
13886build_libtool_need_lc=$archive_cmds_need_lc_CXX
13887
13888# Whether or not to disallow shared libs when runtime libs are static
13889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13890
13891# Whether or not to optimize for fast installation.
13892fast_install=$enable_fast_install
13893
13894# The host system.
13895host_alias=$host_alias
13896host=$host
13897host_os=$host_os
13898
13899# The build system.
13900build_alias=$build_alias
13901build=$build
13902build_os=$build_os
13903
13904# An echo program that does not interpret backslashes.
13905echo=$lt_echo
13906
13907# The archiver.
13908AR=$lt_AR
13909AR_FLAGS=$lt_AR_FLAGS
13910
13911# A C compiler.
13912LTCC=$lt_LTCC
13913
13914# LTCC compiler flags.
13915LTCFLAGS=$lt_LTCFLAGS
13916
13917# A language-specific compiler.
13918CC=$lt_compiler_CXX
13919
13920# Is the compiler the GNU C compiler?
13921with_gcc=$GCC_CXX
13922
13923# An ERE matcher.
13924EGREP=$lt_EGREP
13925
13926# The linker used to build libraries.
13927LD=$lt_LD_CXX
13928
13929# Whether we need hard or soft links.
13930LN_S=$lt_LN_S
13931
13932# A BSD-compatible nm program.
13933NM=$lt_NM
13934
13935# A symbol stripping program
13936STRIP=$lt_STRIP
13937
13938# Used to examine libraries when file_magic_cmd begins "file"
13939MAGIC_CMD=$MAGIC_CMD
13940
13941# Used on cygwin: DLL creation program.
13942DLLTOOL="$DLLTOOL"
13943
13944# Used on cygwin: object dumper.
13945OBJDUMP="$OBJDUMP"
13946
13947# Used on cygwin: assembler.
13948AS="$AS"
13949
13950# The name of the directory that contains temporary libtool files.
13951objdir=$objdir
13952
13953# How to create reloadable object files.
13954reload_flag=$lt_reload_flag
13955reload_cmds=$lt_reload_cmds
13956
13957# How to pass a linker flag through the compiler.
13958wl=$lt_lt_prog_compiler_wl_CXX
13959
13960# Object file suffix (normally "o").
13961objext="$ac_objext"
13962
13963# Old archive suffix (normally "a").
13964libext="$libext"
13965
13966# Shared library suffix (normally ".so").
13967shrext_cmds='$shrext_cmds'
13968
13969# Executable file suffix (normally "").
13970exeext="$exeext"
13971
13972# Additional compiler flags for building library objects.
13973pic_flag=$lt_lt_prog_compiler_pic_CXX
13974pic_mode=$pic_mode
13975
13976# What is the maximum length of a command?
13977max_cmd_len=$lt_cv_sys_max_cmd_len
13978
13979# Does compiler simultaneously support -c and -o options?
13980compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13981
13982# Must we lock files when doing compilation?
13983need_locks=$lt_need_locks
13984
13985# Do we need the lib prefix for modules?
13986need_lib_prefix=$need_lib_prefix
13987
13988# Do we need a version for libraries?
13989need_version=$need_version
13990
13991# Whether dlopen is supported.
13992dlopen_support=$enable_dlopen
13993
13994# Whether dlopen of programs is supported.
13995dlopen_self=$enable_dlopen_self
13996
13997# Whether dlopen of statically linked programs is supported.
13998dlopen_self_static=$enable_dlopen_self_static
13999
14000# Compiler flag to prevent dynamic linking.
14001link_static_flag=$lt_lt_prog_compiler_static_CXX
14002
14003# Compiler flag to turn off builtin functions.
14004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14005
14006# Compiler flag to allow reflexive dlopens.
14007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14008
14009# Compiler flag to generate shared objects directly from archives.
14010whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14011
14012# Compiler flag to generate thread-safe objects.
14013thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14014
14015# Library versioning type.
14016version_type=$version_type
14017
14018# Format of library name prefix.
14019libname_spec=$lt_libname_spec
14020
14021# List of archive names.  First name is the real one, the rest are links.
14022# The last name is the one that the linker finds with -lNAME.
14023library_names_spec=$lt_library_names_spec
14024
14025# The coded name of the library, if different from the real name.
14026soname_spec=$lt_soname_spec
14027
14028# Commands used to build and install an old-style archive.
14029RANLIB=$lt_RANLIB
14030old_archive_cmds=$lt_old_archive_cmds_CXX
14031old_postinstall_cmds=$lt_old_postinstall_cmds
14032old_postuninstall_cmds=$lt_old_postuninstall_cmds
14033
14034# Create an old-style archive from a shared archive.
14035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14036
14037# Create a temporary old-style archive to link instead of a shared archive.
14038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14039
14040# Commands used to build and install a shared archive.
14041archive_cmds=$lt_archive_cmds_CXX
14042archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14043postinstall_cmds=$lt_postinstall_cmds
14044postuninstall_cmds=$lt_postuninstall_cmds
14045
14046# Commands used to build a loadable module (assumed same as above if empty)
14047module_cmds=$lt_module_cmds_CXX
14048module_expsym_cmds=$lt_module_expsym_cmds_CXX
14049
14050# Commands to strip libraries.
14051old_striplib=$lt_old_striplib
14052striplib=$lt_striplib
14053
14054# Dependencies to place before the objects being linked to create a
14055# shared library.
14056predep_objects=$lt_predep_objects_CXX
14057
14058# Dependencies to place after the objects being linked to create a
14059# shared library.
14060postdep_objects=$lt_postdep_objects_CXX
14061
14062# Dependencies to place before the objects being linked to create a
14063# shared library.
14064predeps=$lt_predeps_CXX
14065
14066# Dependencies to place after the objects being linked to create a
14067# shared library.
14068postdeps=$lt_postdeps_CXX
14069
14070# The directories searched by this compiler when creating a shared
14071# library
14072compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14073
14074# The library search path used internally by the compiler when linking
14075# a shared library.
14076compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14077
14078# Method to check whether dependent libraries are shared objects.
14079deplibs_check_method=$lt_deplibs_check_method
14080
14081# Command to use when deplibs_check_method == file_magic.
14082file_magic_cmd=$lt_file_magic_cmd
14083
14084# Flag that allows shared libraries with undefined symbols to be built.
14085allow_undefined_flag=$lt_allow_undefined_flag_CXX
14086
14087# Flag that forces no undefined symbols.
14088no_undefined_flag=$lt_no_undefined_flag_CXX
14089
14090# Commands used to finish a libtool library installation in a directory.
14091finish_cmds=$lt_finish_cmds
14092
14093# Same as above, but a single script fragment to be evaled but not shown.
14094finish_eval=$lt_finish_eval
14095
14096# Take the output of nm and produce a listing of raw symbols and C names.
14097global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14098
14099# Transform the output of nm in a proper C declaration
14100global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14101
14102# Transform the output of nm in a C name address pair
14103global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14104
14105# This is the shared library runtime path variable.
14106runpath_var=$runpath_var
14107
14108# This is the shared library path variable.
14109shlibpath_var=$shlibpath_var
14110
14111# Is shlibpath searched before the hard-coded library search path?
14112shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14113
14114# How to hardcode a shared library path into an executable.
14115hardcode_action=$hardcode_action_CXX
14116
14117# Whether we should hardcode library paths into libraries.
14118hardcode_into_libs=$hardcode_into_libs
14119
14120# Flag to hardcode \$libdir into a binary during linking.
14121# This must work even if \$libdir does not exist.
14122hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14123
14124# If ld is used when linking, flag to hardcode \$libdir into
14125# a binary during linking. This must work even if \$libdir does
14126# not exist.
14127hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14128
14129# Whether we need a single -rpath flag with a separated argument.
14130hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14131
14132# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14133# resulting binary.
14134hardcode_direct=$hardcode_direct_CXX
14135
14136# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14137# resulting binary.
14138hardcode_minus_L=$hardcode_minus_L_CXX
14139
14140# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14141# the resulting binary.
14142hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14143
14144# Set to yes if building a shared library automatically hardcodes DIR into the library
14145# and all subsequent libraries and executables linked against it.
14146hardcode_automatic=$hardcode_automatic_CXX
14147
14148# Variables whose values should be saved in libtool wrapper scripts and
14149# restored at relink time.
14150variables_saved_for_relink="$variables_saved_for_relink"
14151
14152# Whether libtool must link a program against all its dependency libraries.
14153link_all_deplibs=$link_all_deplibs_CXX
14154
14155# Compile-time system search path for libraries
14156sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14157
14158# Run-time system search path for libraries
14159sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14160
14161# Fix the shell variable \$srcfile for the compiler.
14162fix_srcfile_path=$lt_fix_srcfile_path
14163
14164# Set to yes if exported symbols are required.
14165always_export_symbols=$always_export_symbols_CXX
14166
14167# The commands to list exported symbols.
14168export_symbols_cmds=$lt_export_symbols_cmds_CXX
14169
14170# The commands to extract the exported symbol list from a shared archive.
14171extract_expsyms_cmds=$lt_extract_expsyms_cmds
14172
14173# Symbols that should not be listed in the preloaded symbols.
14174exclude_expsyms=$lt_exclude_expsyms_CXX
14175
14176# Symbols that must always be exported.
14177include_expsyms=$lt_include_expsyms_CXX
14178
14179# ### END LIBTOOL TAG CONFIG: $tagname
14180
14181__EOF__
14182
14183
14184else
14185  # If there is no Makefile yet, we rely on a make rule to execute
14186  # `config.status --recheck' to rerun these tests and create the
14187  # libtool script then.
14188  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14189  if test -f "$ltmain_in"; then
14190    test -f Makefile && make "$ltmain"
14191  fi
14192fi
14193
14194
14195ac_ext=c
14196ac_cpp='$CPP $CPPFLAGS'
14197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200
14201CC=$lt_save_CC
14202LDCXX=$LD
14203LD=$lt_save_LD
14204GCC=$lt_save_GCC
14205with_gnu_ldcxx=$with_gnu_ld
14206with_gnu_ld=$lt_save_with_gnu_ld
14207lt_cv_path_LDCXX=$lt_cv_path_LD
14208lt_cv_path_LD=$lt_save_path_LD
14209lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14210lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14211
14212	else
14213	  tagname=""
14214	fi
14215	;;
14216
14217      F77)
14218	if test -n "$F77" && test "X$F77" != "Xno"; then
14219
14220ac_ext=f
14221ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14222ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14223ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14224
14225
14226archive_cmds_need_lc_F77=no
14227allow_undefined_flag_F77=
14228always_export_symbols_F77=no
14229archive_expsym_cmds_F77=
14230export_dynamic_flag_spec_F77=
14231hardcode_direct_F77=no
14232hardcode_libdir_flag_spec_F77=
14233hardcode_libdir_flag_spec_ld_F77=
14234hardcode_libdir_separator_F77=
14235hardcode_minus_L_F77=no
14236hardcode_automatic_F77=no
14237module_cmds_F77=
14238module_expsym_cmds_F77=
14239link_all_deplibs_F77=unknown
14240old_archive_cmds_F77=$old_archive_cmds
14241no_undefined_flag_F77=
14242whole_archive_flag_spec_F77=
14243enable_shared_with_static_runtimes_F77=no
14244
14245# Source file extension for f77 test sources.
14246ac_ext=f
14247
14248# Object file extension for compiled f77 test sources.
14249objext=o
14250objext_F77=$objext
14251
14252# Code to be used in simple compile tests
14253lt_simple_compile_test_code="\
14254      subroutine t
14255      return
14256      end
14257"
14258
14259# Code to be used in simple link tests
14260lt_simple_link_test_code="\
14261      program t
14262      end
14263"
14264
14265# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14266
14267# If no C compiler was specified, use CC.
14268LTCC=${LTCC-"$CC"}
14269
14270# If no C compiler flags were specified, use CFLAGS.
14271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14272
14273# Allow CC to be a program name with arguments.
14274compiler=$CC
14275
14276
14277# save warnings/boilerplate of simple test code
14278ac_outfile=conftest.$ac_objext
14279echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14281_lt_compiler_boilerplate=`cat conftest.err`
14282$rm conftest*
14283
14284ac_outfile=conftest.$ac_objext
14285echo "$lt_simple_link_test_code" >conftest.$ac_ext
14286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14287_lt_linker_boilerplate=`cat conftest.err`
14288$rm -r conftest*
14289
14290
14291# Allow CC to be a program name with arguments.
14292lt_save_CC="$CC"
14293CC=${F77-"f77"}
14294compiler=$CC
14295compiler_F77=$CC
14296for cc_temp in $compiler""; do
14297  case $cc_temp in
14298    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14299    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14300    \-*) ;;
14301    *) break;;
14302  esac
14303done
14304cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14305
14306
14307{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14308$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14309{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14310$as_echo "$can_build_shared" >&6; }
14311
14312{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14313$as_echo_n "checking whether to build shared libraries... " >&6; }
14314test "$can_build_shared" = "no" && enable_shared=no
14315
14316# On AIX, shared libraries and static libraries use the same namespace, and
14317# are all built from PIC.
14318case $host_os in
14319aix3*)
14320  test "$enable_shared" = yes && enable_static=no
14321  if test -n "$RANLIB"; then
14322    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14323    postinstall_cmds='$RANLIB $lib'
14324  fi
14325  ;;
14326aix[4-9]*)
14327  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14328    test "$enable_shared" = yes && enable_static=no
14329  fi
14330  ;;
14331esac
14332{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14333$as_echo "$enable_shared" >&6; }
14334
14335{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14336$as_echo_n "checking whether to build static libraries... " >&6; }
14337# Make sure either enable_shared or enable_static is yes.
14338test "$enable_shared" = yes || enable_static=yes
14339{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14340$as_echo "$enable_static" >&6; }
14341
14342GCC_F77="$G77"
14343LD_F77="$LD"
14344
14345lt_prog_compiler_wl_F77=
14346lt_prog_compiler_pic_F77=
14347lt_prog_compiler_static_F77=
14348
14349{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14350$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14351
14352  if test "$GCC" = yes; then
14353    lt_prog_compiler_wl_F77='-Wl,'
14354    lt_prog_compiler_static_F77='-static'
14355
14356    case $host_os in
14357      aix*)
14358      # All AIX code is PIC.
14359      if test "$host_cpu" = ia64; then
14360	# AIX 5 now supports IA64 processor
14361	lt_prog_compiler_static_F77='-Bstatic'
14362      fi
14363      ;;
14364
14365    amigaos*)
14366      # FIXME: we need at least 68020 code to build shared libraries, but
14367      # adding the `-m68020' flag to GCC prevents building anything better,
14368      # like `-m68040'.
14369      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14370      ;;
14371
14372    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14373      # PIC is the default for these OSes.
14374      ;;
14375
14376    mingw* | cygwin* | pw32* | os2*)
14377      # This hack is so that the source file can tell whether it is being
14378      # built for inclusion in a dll (and should export symbols for example).
14379      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14380      # (--disable-auto-import) libraries
14381      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14382      ;;
14383
14384    darwin* | rhapsody*)
14385      # PIC is the default on this platform
14386      # Common symbols not allowed in MH_DYLIB files
14387      lt_prog_compiler_pic_F77='-fno-common'
14388      ;;
14389
14390    interix[3-9]*)
14391      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14392      # Instead, we relocate shared libraries at runtime.
14393      ;;
14394
14395    msdosdjgpp*)
14396      # Just because we use GCC doesn't mean we suddenly get shared libraries
14397      # on systems that don't support them.
14398      lt_prog_compiler_can_build_shared_F77=no
14399      enable_shared=no
14400      ;;
14401
14402    sysv4*MP*)
14403      if test -d /usr/nec; then
14404	lt_prog_compiler_pic_F77=-Kconform_pic
14405      fi
14406      ;;
14407
14408    hpux*)
14409      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14410      # not for PA HP-UX.
14411      case $host_cpu in
14412      hppa*64*|ia64*)
14413	# +Z the default
14414	;;
14415      *)
14416	lt_prog_compiler_pic_F77='-fPIC'
14417	;;
14418      esac
14419      ;;
14420
14421    *)
14422      lt_prog_compiler_pic_F77='-fPIC'
14423      ;;
14424    esac
14425  else
14426    # PORTME Check for flag to pass linker flags through the system compiler.
14427    case $host_os in
14428    aix*)
14429      lt_prog_compiler_wl_F77='-Wl,'
14430      if test "$host_cpu" = ia64; then
14431	# AIX 5 now supports IA64 processor
14432	lt_prog_compiler_static_F77='-Bstatic'
14433      else
14434	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14435      fi
14436      ;;
14437      darwin*)
14438        # PIC is the default on this platform
14439        # Common symbols not allowed in MH_DYLIB files
14440       case $cc_basename in
14441         xlc*)
14442         lt_prog_compiler_pic_F77='-qnocommon'
14443         lt_prog_compiler_wl_F77='-Wl,'
14444         ;;
14445       esac
14446       ;;
14447
14448    mingw* | cygwin* | pw32* | os2*)
14449      # This hack is so that the source file can tell whether it is being
14450      # built for inclusion in a dll (and should export symbols for example).
14451      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14452      ;;
14453
14454    hpux9* | hpux10* | hpux11*)
14455      lt_prog_compiler_wl_F77='-Wl,'
14456      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14457      # not for PA HP-UX.
14458      case $host_cpu in
14459      hppa*64*|ia64*)
14460	# +Z the default
14461	;;
14462      *)
14463	lt_prog_compiler_pic_F77='+Z'
14464	;;
14465      esac
14466      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14467      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14468      ;;
14469
14470    irix5* | irix6* | nonstopux*)
14471      lt_prog_compiler_wl_F77='-Wl,'
14472      # PIC (with -KPIC) is the default.
14473      lt_prog_compiler_static_F77='-non_shared'
14474      ;;
14475
14476    newsos6)
14477      lt_prog_compiler_pic_F77='-KPIC'
14478      lt_prog_compiler_static_F77='-Bstatic'
14479      ;;
14480
14481    linux* | k*bsd*-gnu)
14482      case $cc_basename in
14483      icc* | ecc*)
14484	lt_prog_compiler_wl_F77='-Wl,'
14485	lt_prog_compiler_pic_F77='-KPIC'
14486	lt_prog_compiler_static_F77='-static'
14487        ;;
14488      pgcc* | pgf77* | pgf90* | pgf95*)
14489        # Portland Group compilers (*not* the Pentium gcc compiler,
14490	# which looks to be a dead project)
14491	lt_prog_compiler_wl_F77='-Wl,'
14492	lt_prog_compiler_pic_F77='-fpic'
14493	lt_prog_compiler_static_F77='-Bstatic'
14494        ;;
14495      ccc*)
14496        lt_prog_compiler_wl_F77='-Wl,'
14497        # All Alpha code is PIC.
14498        lt_prog_compiler_static_F77='-non_shared'
14499        ;;
14500      *)
14501        case `$CC -V 2>&1 | sed 5q` in
14502	*Sun\ C*)
14503	  # Sun C 5.9
14504	  lt_prog_compiler_pic_F77='-KPIC'
14505	  lt_prog_compiler_static_F77='-Bstatic'
14506	  lt_prog_compiler_wl_F77='-Wl,'
14507	  ;;
14508	*Sun\ F*)
14509	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14510	  lt_prog_compiler_pic_F77='-KPIC'
14511	  lt_prog_compiler_static_F77='-Bstatic'
14512	  lt_prog_compiler_wl_F77=''
14513	  ;;
14514	esac
14515	;;
14516      esac
14517      ;;
14518
14519    osf3* | osf4* | osf5*)
14520      lt_prog_compiler_wl_F77='-Wl,'
14521      # All OSF/1 code is PIC.
14522      lt_prog_compiler_static_F77='-non_shared'
14523      ;;
14524
14525    rdos*)
14526      lt_prog_compiler_static_F77='-non_shared'
14527      ;;
14528
14529    solaris*)
14530      lt_prog_compiler_pic_F77='-KPIC'
14531      lt_prog_compiler_static_F77='-Bstatic'
14532      case $cc_basename in
14533      f77* | f90* | f95*)
14534	lt_prog_compiler_wl_F77='-Qoption ld ';;
14535      *)
14536	lt_prog_compiler_wl_F77='-Wl,';;
14537      esac
14538      ;;
14539
14540    sunos4*)
14541      lt_prog_compiler_wl_F77='-Qoption ld '
14542      lt_prog_compiler_pic_F77='-PIC'
14543      lt_prog_compiler_static_F77='-Bstatic'
14544      ;;
14545
14546    sysv4 | sysv4.2uw2* | sysv4.3*)
14547      lt_prog_compiler_wl_F77='-Wl,'
14548      lt_prog_compiler_pic_F77='-KPIC'
14549      lt_prog_compiler_static_F77='-Bstatic'
14550      ;;
14551
14552    sysv4*MP*)
14553      if test -d /usr/nec ;then
14554	lt_prog_compiler_pic_F77='-Kconform_pic'
14555	lt_prog_compiler_static_F77='-Bstatic'
14556      fi
14557      ;;
14558
14559    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14560      lt_prog_compiler_wl_F77='-Wl,'
14561      lt_prog_compiler_pic_F77='-KPIC'
14562      lt_prog_compiler_static_F77='-Bstatic'
14563      ;;
14564
14565    unicos*)
14566      lt_prog_compiler_wl_F77='-Wl,'
14567      lt_prog_compiler_can_build_shared_F77=no
14568      ;;
14569
14570    uts4*)
14571      lt_prog_compiler_pic_F77='-pic'
14572      lt_prog_compiler_static_F77='-Bstatic'
14573      ;;
14574
14575    *)
14576      lt_prog_compiler_can_build_shared_F77=no
14577      ;;
14578    esac
14579  fi
14580
14581{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14582$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14583
14584#
14585# Check to make sure the PIC flag actually works.
14586#
14587if test -n "$lt_prog_compiler_pic_F77"; then
14588
14589{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14590$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14591if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14592  $as_echo_n "(cached) " >&6
14593else
14594  lt_cv_prog_compiler_pic_works_F77=no
14595  ac_outfile=conftest.$ac_objext
14596   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14597   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14598   # Insert the option either (1) after the last *FLAGS variable, or
14599   # (2) before a word containing "conftest.", or (3) at the end.
14600   # Note that $ac_compile itself does not contain backslashes and begins
14601   # with a dollar sign (not a hyphen), so the echo should work correctly.
14602   # The option is referenced via a variable to avoid confusing sed.
14603   lt_compile=`echo "$ac_compile" | $SED \
14604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14606   -e 's:$: $lt_compiler_flag:'`
14607   (eval echo "\"\$as_me:14607: $lt_compile\"" >&5)
14608   (eval "$lt_compile" 2>conftest.err)
14609   ac_status=$?
14610   cat conftest.err >&5
14611   echo "$as_me:14611: \$? = $ac_status" >&5
14612   if (exit $ac_status) && test -s "$ac_outfile"; then
14613     # The compiler can only warn and ignore the option if not recognized
14614     # So say no if there are warnings other than the usual output.
14615     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14616     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14617     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14618       lt_cv_prog_compiler_pic_works_F77=yes
14619     fi
14620   fi
14621   $rm conftest*
14622
14623fi
14624{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14625$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14626
14627if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14628    case $lt_prog_compiler_pic_F77 in
14629     "" | " "*) ;;
14630     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14631     esac
14632else
14633    lt_prog_compiler_pic_F77=
14634     lt_prog_compiler_can_build_shared_F77=no
14635fi
14636
14637fi
14638case $host_os in
14639  # For platforms which do not support PIC, -DPIC is meaningless:
14640  *djgpp*)
14641    lt_prog_compiler_pic_F77=
14642    ;;
14643  *)
14644    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14645    ;;
14646esac
14647
14648#
14649# Check to make sure the static flag actually works.
14650#
14651wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14652{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14654if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14655  $as_echo_n "(cached) " >&6
14656else
14657  lt_cv_prog_compiler_static_works_F77=no
14658   save_LDFLAGS="$LDFLAGS"
14659   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14660   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14661   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14662     # The linker can only warn and ignore the option if not recognized
14663     # So say no if there are warnings
14664     if test -s conftest.err; then
14665       # Append any errors to the config.log.
14666       cat conftest.err 1>&5
14667       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14668       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669       if diff conftest.exp conftest.er2 >/dev/null; then
14670         lt_cv_prog_compiler_static_works_F77=yes
14671       fi
14672     else
14673       lt_cv_prog_compiler_static_works_F77=yes
14674     fi
14675   fi
14676   $rm -r conftest*
14677   LDFLAGS="$save_LDFLAGS"
14678
14679fi
14680{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14681$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14682
14683if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14684    :
14685else
14686    lt_prog_compiler_static_F77=
14687fi
14688
14689
14690{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14691$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14692if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14693  $as_echo_n "(cached) " >&6
14694else
14695  lt_cv_prog_compiler_c_o_F77=no
14696   $rm -r conftest 2>/dev/null
14697   mkdir conftest
14698   cd conftest
14699   mkdir out
14700   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14701
14702   lt_compiler_flag="-o out/conftest2.$ac_objext"
14703   # Insert the option either (1) after the last *FLAGS variable, or
14704   # (2) before a word containing "conftest.", or (3) at the end.
14705   # Note that $ac_compile itself does not contain backslashes and begins
14706   # with a dollar sign (not a hyphen), so the echo should work correctly.
14707   lt_compile=`echo "$ac_compile" | $SED \
14708   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14709   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14710   -e 's:$: $lt_compiler_flag:'`
14711   (eval echo "\"\$as_me:14711: $lt_compile\"" >&5)
14712   (eval "$lt_compile" 2>out/conftest.err)
14713   ac_status=$?
14714   cat out/conftest.err >&5
14715   echo "$as_me:14715: \$? = $ac_status" >&5
14716   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14717   then
14718     # The compiler can only warn and ignore the option if not recognized
14719     # So say no if there are warnings
14720     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14721     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14722     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14723       lt_cv_prog_compiler_c_o_F77=yes
14724     fi
14725   fi
14726   chmod u+w . 2>&5
14727   $rm conftest*
14728   # SGI C++ compiler will create directory out/ii_files/ for
14729   # template instantiation
14730   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14731   $rm out/* && rmdir out
14732   cd ..
14733   rmdir conftest
14734   $rm conftest*
14735
14736fi
14737{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14738$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14739
14740
14741hard_links="nottested"
14742if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14743  # do not overwrite the value of need_locks provided by the user
14744  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14745$as_echo_n "checking if we can lock with hard links... " >&6; }
14746  hard_links=yes
14747  $rm conftest*
14748  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14749  touch conftest.a
14750  ln conftest.a conftest.b 2>&5 || hard_links=no
14751  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14752  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14753$as_echo "$hard_links" >&6; }
14754  if test "$hard_links" = no; then
14755    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14756$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14757    need_locks=warn
14758  fi
14759else
14760  need_locks=no
14761fi
14762
14763{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14764$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14765
14766  runpath_var=
14767  allow_undefined_flag_F77=
14768  enable_shared_with_static_runtimes_F77=no
14769  archive_cmds_F77=
14770  archive_expsym_cmds_F77=
14771  old_archive_From_new_cmds_F77=
14772  old_archive_from_expsyms_cmds_F77=
14773  export_dynamic_flag_spec_F77=
14774  whole_archive_flag_spec_F77=
14775  thread_safe_flag_spec_F77=
14776  hardcode_libdir_flag_spec_F77=
14777  hardcode_libdir_flag_spec_ld_F77=
14778  hardcode_libdir_separator_F77=
14779  hardcode_direct_F77=no
14780  hardcode_minus_L_F77=no
14781  hardcode_shlibpath_var_F77=unsupported
14782  link_all_deplibs_F77=unknown
14783  hardcode_automatic_F77=no
14784  module_cmds_F77=
14785  module_expsym_cmds_F77=
14786  always_export_symbols_F77=no
14787  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14788  # include_expsyms should be a list of space-separated symbols to be *always*
14789  # included in the symbol list
14790  include_expsyms_F77=
14791  # exclude_expsyms can be an extended regexp of symbols to exclude
14792  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14793  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14794  # as well as any symbol that contains `d'.
14795  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14796  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14797  # platforms (ab)use it in PIC code, but their linkers get confused if
14798  # the symbol is explicitly referenced.  Since portable code cannot
14799  # rely on this symbol name, it's probably fine to never include it in
14800  # preloaded symbol tables.
14801  # Exclude shared library initialization/finalization symbols.
14802  extract_expsyms_cmds=
14803  # Just being paranoid about ensuring that cc_basename is set.
14804  for cc_temp in $compiler""; do
14805  case $cc_temp in
14806    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14807    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14808    \-*) ;;
14809    *) break;;
14810  esac
14811done
14812cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14813
14814  case $host_os in
14815  cygwin* | mingw* | pw32*)
14816    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14817    # When not using gcc, we currently assume that we are using
14818    # Microsoft Visual C++.
14819    if test "$GCC" != yes; then
14820      with_gnu_ld=no
14821    fi
14822    ;;
14823  interix*)
14824    # we just hope/assume this is gcc and not c89 (= MSVC++)
14825    with_gnu_ld=yes
14826    ;;
14827  openbsd*)
14828    with_gnu_ld=no
14829    ;;
14830  esac
14831
14832  ld_shlibs_F77=yes
14833  if test "$with_gnu_ld" = yes; then
14834    # If archive_cmds runs LD, not CC, wlarc should be empty
14835    wlarc='${wl}'
14836
14837    # Set some defaults for GNU ld with shared library support. These
14838    # are reset later if shared libraries are not supported. Putting them
14839    # here allows them to be overridden if necessary.
14840    runpath_var=LD_RUN_PATH
14841    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14842    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14843    # ancient GNU ld didn't support --whole-archive et. al.
14844    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14845	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14846      else
14847  	whole_archive_flag_spec_F77=
14848    fi
14849    supports_anon_versioning=no
14850    case `$LD -v 2>/dev/null` in
14851      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14852      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14853      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14854      *\ 2.11.*) ;; # other 2.11 versions
14855      *) supports_anon_versioning=yes ;;
14856    esac
14857
14858    # See if GNU ld supports shared libraries.
14859    case $host_os in
14860    aix[3-9]*)
14861      # On AIX/PPC, the GNU linker is very broken
14862      if test "$host_cpu" != ia64; then
14863	ld_shlibs_F77=no
14864	cat <<EOF 1>&2
14865
14866*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14867*** to be unable to reliably create shared libraries on AIX.
14868*** Therefore, libtool is disabling shared libraries support.  If you
14869*** really care for shared libraries, you may want to modify your PATH
14870*** so that a non-GNU linker is found, and then restart.
14871
14872EOF
14873      fi
14874      ;;
14875
14876    amigaos*)
14877      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)'
14878      hardcode_libdir_flag_spec_F77='-L$libdir'
14879      hardcode_minus_L_F77=yes
14880
14881      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14882      # that the semantics of dynamic libraries on AmigaOS, at least up
14883      # to version 4, is to share data among multiple programs linked
14884      # with the same dynamic library.  Since this doesn't match the
14885      # behavior of shared libraries on other platforms, we can't use
14886      # them.
14887      ld_shlibs_F77=no
14888      ;;
14889
14890    beos*)
14891      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14892	allow_undefined_flag_F77=unsupported
14893	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14894	# support --undefined.  This deserves some investigation.  FIXME
14895	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896      else
14897	ld_shlibs_F77=no
14898      fi
14899      ;;
14900
14901    cygwin* | mingw* | pw32*)
14902      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14903      # as there is no search path for DLLs.
14904      hardcode_libdir_flag_spec_F77='-L$libdir'
14905      allow_undefined_flag_F77=unsupported
14906      always_export_symbols_F77=no
14907      enable_shared_with_static_runtimes_F77=yes
14908      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14909
14910      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14911        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14912	# If the export-symbols file already is a .def file (1st line
14913	# is EXPORTS), use it as is; otherwise, prepend...
14914	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14915	  cp $export_symbols $output_objdir/$soname.def;
14916	else
14917	  echo EXPORTS > $output_objdir/$soname.def;
14918	  cat $export_symbols >> $output_objdir/$soname.def;
14919	fi~
14920	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14921      else
14922	ld_shlibs_F77=no
14923      fi
14924      ;;
14925
14926    interix[3-9]*)
14927      hardcode_direct_F77=no
14928      hardcode_shlibpath_var_F77=no
14929      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14930      export_dynamic_flag_spec_F77='${wl}-E'
14931      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14932      # Instead, shared libraries are loaded at an image base (0x10000000 by
14933      # default) and relocated if they conflict, which is a slow very memory
14934      # consuming and fragmenting process.  To avoid this, we pick a random,
14935      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14936      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14937      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'
14938      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'
14939      ;;
14940
14941    gnu* | linux* | k*bsd*-gnu)
14942      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943	tmp_addflag=
14944	case $cc_basename,$host_cpu in
14945	pgcc*)				# Portland Group C compiler
14946	  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'
14947	  tmp_addflag=' $pic_flag'
14948	  ;;
14949	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14950	  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'
14951	  tmp_addflag=' $pic_flag -Mnomain' ;;
14952	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14953	  tmp_addflag=' -i_dynamic' ;;
14954	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14955	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14956	ifc* | ifort*)			# Intel Fortran compiler
14957	  tmp_addflag=' -nofor_main' ;;
14958	esac
14959	case `$CC -V 2>&1 | sed 5q` in
14960	*Sun\ C*)			# Sun C 5.9
14961	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14962	  tmp_sharedflag='-G' ;;
14963	*Sun\ F*)			# Sun Fortran 8.3
14964	  tmp_sharedflag='-G' ;;
14965	*)
14966	  tmp_sharedflag='-shared' ;;
14967	esac
14968	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969
14970	if test $supports_anon_versioning = yes; then
14971	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14972  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14973  $echo "local: *; };" >> $output_objdir/$libname.ver~
14974	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14975	fi
14976      else
14977	ld_shlibs_F77=no
14978      fi
14979      ;;
14980
14981    netbsd*)
14982      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14983	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14984	wlarc=
14985      else
14986	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14988      fi
14989      ;;
14990
14991    solaris*)
14992      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14993	ld_shlibs_F77=no
14994	cat <<EOF 1>&2
14995
14996*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14997*** create shared libraries on Solaris systems.  Therefore, libtool
14998*** is disabling shared libraries support.  We urge you to upgrade GNU
14999*** binutils to release 2.9.1 or newer.  Another option is to modify
15000*** your PATH or compiler configuration so that the native linker is
15001*** used, and then restart.
15002
15003EOF
15004      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15005	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15006	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15007      else
15008	ld_shlibs_F77=no
15009      fi
15010      ;;
15011
15012    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15013      case `$LD -v 2>&1` in
15014        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15015	ld_shlibs_F77=no
15016	cat <<_LT_EOF 1>&2
15017
15018*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15019*** reliably create shared libraries on SCO systems.  Therefore, libtool
15020*** is disabling shared libraries support.  We urge you to upgrade GNU
15021*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15022*** your PATH or compiler configuration so that the native linker is
15023*** used, and then restart.
15024
15025_LT_EOF
15026	;;
15027	*)
15028	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15029	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15030	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15031	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15032	  else
15033	    ld_shlibs_F77=no
15034	  fi
15035	;;
15036      esac
15037      ;;
15038
15039    sunos4*)
15040      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15041      wlarc=
15042      hardcode_direct_F77=yes
15043      hardcode_shlibpath_var_F77=no
15044      ;;
15045
15046    *)
15047      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15050      else
15051	ld_shlibs_F77=no
15052      fi
15053      ;;
15054    esac
15055
15056    if test "$ld_shlibs_F77" = no; then
15057      runpath_var=
15058      hardcode_libdir_flag_spec_F77=
15059      export_dynamic_flag_spec_F77=
15060      whole_archive_flag_spec_F77=
15061    fi
15062  else
15063    # PORTME fill in a description of your system's linker (not GNU ld)
15064    case $host_os in
15065    aix3*)
15066      allow_undefined_flag_F77=unsupported
15067      always_export_symbols_F77=yes
15068      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'
15069      # Note: this linker hardcodes the directories in LIBPATH if there
15070      # are no directories specified by -L.
15071      hardcode_minus_L_F77=yes
15072      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15073	# Neither direct hardcoding nor static linking is supported with a
15074	# broken collect2.
15075	hardcode_direct_F77=unsupported
15076      fi
15077      ;;
15078
15079    aix[4-9]*)
15080      if test "$host_cpu" = ia64; then
15081	# On IA64, the linker does run time linking by default, so we don't
15082	# have to do anything special.
15083	aix_use_runtimelinking=no
15084	exp_sym_flag='-Bexport'
15085	no_entry_flag=""
15086      else
15087	# If we're using GNU nm, then we don't want the "-C" option.
15088	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15089	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15090	  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'
15091	else
15092	  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'
15093	fi
15094	aix_use_runtimelinking=no
15095
15096	# Test if we are trying to use run time linking or normal
15097	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15098	# need to do runtime linking.
15099	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15100	  for ld_flag in $LDFLAGS; do
15101  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15102  	    aix_use_runtimelinking=yes
15103  	    break
15104  	  fi
15105	  done
15106	  ;;
15107	esac
15108
15109	exp_sym_flag='-bexport'
15110	no_entry_flag='-bnoentry'
15111      fi
15112
15113      # When large executables or shared objects are built, AIX ld can
15114      # have problems creating the table of contents.  If linking a library
15115      # or program results in "error TOC overflow" add -mminimal-toc to
15116      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15117      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15118
15119      archive_cmds_F77=''
15120      hardcode_direct_F77=yes
15121      hardcode_libdir_separator_F77=':'
15122      link_all_deplibs_F77=yes
15123
15124      if test "$GCC" = yes; then
15125	case $host_os in aix4.[012]|aix4.[012].*)
15126	# We only want to do this on AIX 4.2 and lower, the check
15127	# below for broken collect2 doesn't work under 4.3+
15128	  collect2name=`${CC} -print-prog-name=collect2`
15129	  if test -f "$collect2name" && \
15130  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15131	  then
15132  	  # We have reworked collect2
15133  	  :
15134	  else
15135  	  # We have old collect2
15136  	  hardcode_direct_F77=unsupported
15137  	  # It fails to find uninstalled libraries when the uninstalled
15138  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15139  	  # to unsupported forces relinking
15140  	  hardcode_minus_L_F77=yes
15141  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15142  	  hardcode_libdir_separator_F77=
15143	  fi
15144	  ;;
15145	esac
15146	shared_flag='-shared'
15147	if test "$aix_use_runtimelinking" = yes; then
15148	  shared_flag="$shared_flag "'${wl}-G'
15149	fi
15150      else
15151	# not using gcc
15152	if test "$host_cpu" = ia64; then
15153  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15154  	# chokes on -Wl,-G. The following line is correct:
15155	  shared_flag='-G'
15156	else
15157	  if test "$aix_use_runtimelinking" = yes; then
15158	    shared_flag='${wl}-G'
15159	  else
15160	    shared_flag='${wl}-bM:SRE'
15161	  fi
15162	fi
15163      fi
15164
15165      # It seems that -bexpall does not export symbols beginning with
15166      # underscore (_), so it is better to generate a list of symbols to export.
15167      always_export_symbols_F77=yes
15168      if test "$aix_use_runtimelinking" = yes; then
15169	# Warning - without using the other runtime loading flags (-brtl),
15170	# -berok will link without error, but may produce a broken library.
15171	allow_undefined_flag_F77='-berok'
15172       # Determine the default libpath from the value encoded in an empty executable.
15173       cat >conftest.$ac_ext <<_ACEOF
15174      program main
15175
15176      end
15177_ACEOF
15178rm -f conftest.$ac_objext conftest$ac_exeext
15179if { (ac_try="$ac_link"
15180case "(($ac_try" in
15181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182  *) ac_try_echo=$ac_try;;
15183esac
15184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15185$as_echo "$ac_try_echo") >&5
15186  (eval "$ac_link") 2>conftest.er1
15187  ac_status=$?
15188  grep -v '^ *+' conftest.er1 >conftest.err
15189  rm -f conftest.er1
15190  cat conftest.err >&5
15191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192  (exit $ac_status); } && {
15193	 test -z "$ac_f77_werror_flag" ||
15194	 test ! -s conftest.err
15195       } && test -s conftest$ac_exeext && {
15196	 test "$cross_compiling" = yes ||
15197	 $as_test_x conftest$ac_exeext
15198       }; then
15199
15200lt_aix_libpath_sed='
15201    /Import File Strings/,/^$/ {
15202	/^0/ {
15203	    s/^0  *\(.*\)$/\1/
15204	    p
15205	}
15206    }'
15207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15208# Check for a 64-bit object if we didn't find anything.
15209if test -z "$aix_libpath"; then
15210  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15211fi
15212else
15213  $as_echo "$as_me: failed program was:" >&5
15214sed 's/^/| /' conftest.$ac_ext >&5
15215
15216
15217fi
15218
15219rm -rf conftest.dSYM
15220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15221      conftest$ac_exeext conftest.$ac_ext
15222if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15223
15224       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15225	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"
15226       else
15227	if test "$host_cpu" = ia64; then
15228	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15229	  allow_undefined_flag_F77="-z nodefs"
15230	  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"
15231	else
15232	 # Determine the default libpath from the value encoded in an empty executable.
15233	 cat >conftest.$ac_ext <<_ACEOF
15234      program main
15235
15236      end
15237_ACEOF
15238rm -f conftest.$ac_objext conftest$ac_exeext
15239if { (ac_try="$ac_link"
15240case "(($ac_try" in
15241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242  *) ac_try_echo=$ac_try;;
15243esac
15244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15245$as_echo "$ac_try_echo") >&5
15246  (eval "$ac_link") 2>conftest.er1
15247  ac_status=$?
15248  grep -v '^ *+' conftest.er1 >conftest.err
15249  rm -f conftest.er1
15250  cat conftest.err >&5
15251  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252  (exit $ac_status); } && {
15253	 test -z "$ac_f77_werror_flag" ||
15254	 test ! -s conftest.err
15255       } && test -s conftest$ac_exeext && {
15256	 test "$cross_compiling" = yes ||
15257	 $as_test_x conftest$ac_exeext
15258       }; then
15259
15260lt_aix_libpath_sed='
15261    /Import File Strings/,/^$/ {
15262	/^0/ {
15263	    s/^0  *\(.*\)$/\1/
15264	    p
15265	}
15266    }'
15267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15268# Check for a 64-bit object if we didn't find anything.
15269if test -z "$aix_libpath"; then
15270  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15271fi
15272else
15273  $as_echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276
15277fi
15278
15279rm -rf conftest.dSYM
15280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15281      conftest$ac_exeext conftest.$ac_ext
15282if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15283
15284	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15285	  # Warning - without using the other run time loading flags,
15286	  # -berok will link without error, but may produce a broken library.
15287	  no_undefined_flag_F77=' ${wl}-bernotok'
15288	  allow_undefined_flag_F77=' ${wl}-berok'
15289	  # Exported symbols can be pulled into shared objects from archives
15290	  whole_archive_flag_spec_F77='$convenience'
15291	  archive_cmds_need_lc_F77=yes
15292	  # This is similar to how AIX traditionally builds its shared libraries.
15293	  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'
15294	fi
15295      fi
15296      ;;
15297
15298    amigaos*)
15299      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)'
15300      hardcode_libdir_flag_spec_F77='-L$libdir'
15301      hardcode_minus_L_F77=yes
15302      # see comment about different semantics on the GNU ld section
15303      ld_shlibs_F77=no
15304      ;;
15305
15306    bsdi[45]*)
15307      export_dynamic_flag_spec_F77=-rdynamic
15308      ;;
15309
15310    cygwin* | mingw* | pw32*)
15311      # When not using gcc, we currently assume that we are using
15312      # Microsoft Visual C++.
15313      # hardcode_libdir_flag_spec is actually meaningless, as there is
15314      # no search path for DLLs.
15315      hardcode_libdir_flag_spec_F77=' '
15316      allow_undefined_flag_F77=unsupported
15317      # Tell ltmain to make .lib files, not .a files.
15318      libext=lib
15319      # Tell ltmain to make .dll files, not .so files.
15320      shrext_cmds=".dll"
15321      # FIXME: Setting linknames here is a bad hack.
15322      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15323      # The linker will automatically build a .lib file if we build a DLL.
15324      old_archive_From_new_cmds_F77='true'
15325      # FIXME: Should let the user specify the lib program.
15326      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15327      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15328      enable_shared_with_static_runtimes_F77=yes
15329      ;;
15330
15331    darwin* | rhapsody*)
15332      case $host_os in
15333        rhapsody* | darwin1.[012])
15334         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15335         ;;
15336       *) # Darwin 1.3 on
15337         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15338           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15339         else
15340           case ${MACOSX_DEPLOYMENT_TARGET} in
15341             10.[012])
15342               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15343               ;;
15344             10.*)
15345               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15346               ;;
15347           esac
15348         fi
15349         ;;
15350      esac
15351      archive_cmds_need_lc_F77=no
15352      hardcode_direct_F77=no
15353      hardcode_automatic_F77=yes
15354      hardcode_shlibpath_var_F77=unsupported
15355      whole_archive_flag_spec_F77=''
15356      link_all_deplibs_F77=yes
15357    if test "$GCC" = yes ; then
15358    	output_verbose_link_cmd='echo'
15359        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15360        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15361        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15362        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15363    else
15364      case $cc_basename in
15365        xlc*)
15366         output_verbose_link_cmd='echo'
15367         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15368         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15369          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15370         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15371          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}'
15372          ;;
15373       *)
15374         ld_shlibs_F77=no
15375          ;;
15376      esac
15377    fi
15378      ;;
15379
15380    dgux*)
15381      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382      hardcode_libdir_flag_spec_F77='-L$libdir'
15383      hardcode_shlibpath_var_F77=no
15384      ;;
15385
15386    freebsd1*)
15387      ld_shlibs_F77=no
15388      ;;
15389
15390    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15391    # support.  Future versions do this automatically, but an explicit c++rt0.o
15392    # does not break anything, and helps significantly (at the cost of a little
15393    # extra space).
15394    freebsd2.2*)
15395      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15396      hardcode_libdir_flag_spec_F77='-R$libdir'
15397      hardcode_direct_F77=yes
15398      hardcode_shlibpath_var_F77=no
15399      ;;
15400
15401    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15402    freebsd2*)
15403      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404      hardcode_direct_F77=yes
15405      hardcode_minus_L_F77=yes
15406      hardcode_shlibpath_var_F77=no
15407      ;;
15408
15409    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15410    freebsd* | dragonfly*)
15411      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15412      hardcode_libdir_flag_spec_F77='-R$libdir'
15413      hardcode_direct_F77=yes
15414      hardcode_shlibpath_var_F77=no
15415      ;;
15416
15417    hpux9*)
15418      if test "$GCC" = yes; then
15419	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'
15420      else
15421	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'
15422      fi
15423      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15424      hardcode_libdir_separator_F77=:
15425      hardcode_direct_F77=yes
15426
15427      # hardcode_minus_L: Not really in the search PATH,
15428      # but as the default location of the library.
15429      hardcode_minus_L_F77=yes
15430      export_dynamic_flag_spec_F77='${wl}-E'
15431      ;;
15432
15433    hpux10*)
15434      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15435	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15436      else
15437	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15438      fi
15439      if test "$with_gnu_ld" = no; then
15440	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15441	hardcode_libdir_separator_F77=:
15442
15443	hardcode_direct_F77=yes
15444	export_dynamic_flag_spec_F77='${wl}-E'
15445
15446	# hardcode_minus_L: Not really in the search PATH,
15447	# but as the default location of the library.
15448	hardcode_minus_L_F77=yes
15449      fi
15450      ;;
15451
15452    hpux11*)
15453      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15454	case $host_cpu in
15455	hppa*64*)
15456	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15457	  ;;
15458	ia64*)
15459	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15460	  ;;
15461	*)
15462	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15463	  ;;
15464	esac
15465      else
15466	case $host_cpu in
15467	hppa*64*)
15468	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469	  ;;
15470	ia64*)
15471	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15472	  ;;
15473	*)
15474	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15475	  ;;
15476	esac
15477      fi
15478      if test "$with_gnu_ld" = no; then
15479	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15480	hardcode_libdir_separator_F77=:
15481
15482	case $host_cpu in
15483	hppa*64*|ia64*)
15484	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15485	  hardcode_direct_F77=no
15486	  hardcode_shlibpath_var_F77=no
15487	  ;;
15488	*)
15489	  hardcode_direct_F77=yes
15490	  export_dynamic_flag_spec_F77='${wl}-E'
15491
15492	  # hardcode_minus_L: Not really in the search PATH,
15493	  # but as the default location of the library.
15494	  hardcode_minus_L_F77=yes
15495	  ;;
15496	esac
15497      fi
15498      ;;
15499
15500    irix5* | irix6* | nonstopux*)
15501      if test "$GCC" = yes; then
15502	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'
15503      else
15504	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'
15505	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15506      fi
15507      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15508      hardcode_libdir_separator_F77=:
15509      link_all_deplibs_F77=yes
15510      ;;
15511
15512    netbsd*)
15513      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15514	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15515      else
15516	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15517      fi
15518      hardcode_libdir_flag_spec_F77='-R$libdir'
15519      hardcode_direct_F77=yes
15520      hardcode_shlibpath_var_F77=no
15521      ;;
15522
15523    newsos6)
15524      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525      hardcode_direct_F77=yes
15526      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15527      hardcode_libdir_separator_F77=:
15528      hardcode_shlibpath_var_F77=no
15529      ;;
15530
15531    openbsd*)
15532      if test -f /usr/libexec/ld.so; then
15533	hardcode_direct_F77=yes
15534	hardcode_shlibpath_var_F77=no
15535	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15536	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15537	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15538	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15539	  export_dynamic_flag_spec_F77='${wl}-E'
15540	else
15541	  case $host_os in
15542	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15543	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544	     hardcode_libdir_flag_spec_F77='-R$libdir'
15545	     ;;
15546	   *)
15547	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15548	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15549	     ;;
15550	  esac
15551        fi
15552      else
15553	ld_shlibs_F77=no
15554      fi
15555      ;;
15556
15557    os2*)
15558      hardcode_libdir_flag_spec_F77='-L$libdir'
15559      hardcode_minus_L_F77=yes
15560      allow_undefined_flag_F77=unsupported
15561      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'
15562      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15563      ;;
15564
15565    osf3*)
15566      if test "$GCC" = yes; then
15567	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15568	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'
15569      else
15570	allow_undefined_flag_F77=' -expect_unresolved \*'
15571	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'
15572      fi
15573      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15574      hardcode_libdir_separator_F77=:
15575      ;;
15576
15577    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15578      if test "$GCC" = yes; then
15579	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15580	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'
15581	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15582      else
15583	allow_undefined_flag_F77=' -expect_unresolved \*'
15584	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'
15585	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~
15586	$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'
15587
15588	# Both c and cxx compiler support -rpath directly
15589	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15590      fi
15591      hardcode_libdir_separator_F77=:
15592      ;;
15593
15594    solaris*)
15595      no_undefined_flag_F77=' -z text'
15596      if test "$GCC" = yes; then
15597	wlarc='${wl}'
15598	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15600	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15601      else
15602	wlarc=''
15603	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15605  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15606      fi
15607      hardcode_libdir_flag_spec_F77='-R$libdir'
15608      hardcode_shlibpath_var_F77=no
15609      case $host_os in
15610      solaris2.[0-5] | solaris2.[0-5].*) ;;
15611      *)
15612	# The compiler driver will combine and reorder linker options,
15613	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15614	# but is careful enough not to reorder.
15615 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15616	if test "$GCC" = yes; then
15617	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15618	else
15619	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15620	fi
15621	;;
15622      esac
15623      link_all_deplibs_F77=yes
15624      ;;
15625
15626    sunos4*)
15627      if test "x$host_vendor" = xsequent; then
15628	# Use $CC to link under sequent, because it throws in some extra .o
15629	# files that make .init and .fini sections work.
15630	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15631      else
15632	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15633      fi
15634      hardcode_libdir_flag_spec_F77='-L$libdir'
15635      hardcode_direct_F77=yes
15636      hardcode_minus_L_F77=yes
15637      hardcode_shlibpath_var_F77=no
15638      ;;
15639
15640    sysv4)
15641      case $host_vendor in
15642	sni)
15643	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644	  hardcode_direct_F77=yes # is this really true???
15645	;;
15646	siemens)
15647	  ## LD is ld it makes a PLAMLIB
15648	  ## CC just makes a GrossModule.
15649	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15650	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15651	  hardcode_direct_F77=no
15652        ;;
15653	motorola)
15654	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15655	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15656	;;
15657      esac
15658      runpath_var='LD_RUN_PATH'
15659      hardcode_shlibpath_var_F77=no
15660      ;;
15661
15662    sysv4.3*)
15663      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15664      hardcode_shlibpath_var_F77=no
15665      export_dynamic_flag_spec_F77='-Bexport'
15666      ;;
15667
15668    sysv4*MP*)
15669      if test -d /usr/nec; then
15670	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671	hardcode_shlibpath_var_F77=no
15672	runpath_var=LD_RUN_PATH
15673	hardcode_runpath_var=yes
15674	ld_shlibs_F77=yes
15675      fi
15676      ;;
15677
15678    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15679      no_undefined_flag_F77='${wl}-z,text'
15680      archive_cmds_need_lc_F77=no
15681      hardcode_shlibpath_var_F77=no
15682      runpath_var='LD_RUN_PATH'
15683
15684      if test "$GCC" = yes; then
15685	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687      else
15688	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15689	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15690      fi
15691      ;;
15692
15693    sysv5* | sco3.2v5* | sco5v6*)
15694      # Note: We can NOT use -z defs as we might desire, because we do not
15695      # link with -lc, and that would cause any symbols used from libc to
15696      # always be unresolved, which means just about no library would
15697      # ever link correctly.  If we're not using GNU ld we use -z text
15698      # though, which does catch some bad symbols but isn't as heavy-handed
15699      # as -z defs.
15700      no_undefined_flag_F77='${wl}-z,text'
15701      allow_undefined_flag_F77='${wl}-z,nodefs'
15702      archive_cmds_need_lc_F77=no
15703      hardcode_shlibpath_var_F77=no
15704      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15705      hardcode_libdir_separator_F77=':'
15706      link_all_deplibs_F77=yes
15707      export_dynamic_flag_spec_F77='${wl}-Bexport'
15708      runpath_var='LD_RUN_PATH'
15709
15710      if test "$GCC" = yes; then
15711	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15713      else
15714	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15716      fi
15717      ;;
15718
15719    uts4*)
15720      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721      hardcode_libdir_flag_spec_F77='-L$libdir'
15722      hardcode_shlibpath_var_F77=no
15723      ;;
15724
15725    *)
15726      ld_shlibs_F77=no
15727      ;;
15728    esac
15729  fi
15730
15731{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15732$as_echo "$ld_shlibs_F77" >&6; }
15733test "$ld_shlibs_F77" = no && can_build_shared=no
15734
15735#
15736# Do we need to explicitly link libc?
15737#
15738case "x$archive_cmds_need_lc_F77" in
15739x|xyes)
15740  # Assume -lc should be added
15741  archive_cmds_need_lc_F77=yes
15742
15743  if test "$enable_shared" = yes && test "$GCC" = yes; then
15744    case $archive_cmds_F77 in
15745    *'~'*)
15746      # FIXME: we may have to deal with multi-command sequences.
15747      ;;
15748    '$CC '*)
15749      # Test whether the compiler implicitly links with -lc since on some
15750      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15751      # to ld, don't add -lc before -lgcc.
15752      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15753$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15754      $rm conftest*
15755      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15756
15757      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758  (eval $ac_compile) 2>&5
15759  ac_status=$?
15760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761  (exit $ac_status); } 2>conftest.err; then
15762        soname=conftest
15763        lib=conftest
15764        libobjs=conftest.$ac_objext
15765        deplibs=
15766        wl=$lt_prog_compiler_wl_F77
15767	pic_flag=$lt_prog_compiler_pic_F77
15768        compiler_flags=-v
15769        linker_flags=-v
15770        verstring=
15771        output_objdir=.
15772        libname=conftest
15773        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15774        allow_undefined_flag_F77=
15775        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15776  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15777  ac_status=$?
15778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779  (exit $ac_status); }
15780        then
15781	  archive_cmds_need_lc_F77=no
15782        else
15783	  archive_cmds_need_lc_F77=yes
15784        fi
15785        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15786      else
15787        cat conftest.err 1>&5
15788      fi
15789      $rm conftest*
15790      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15791$as_echo "$archive_cmds_need_lc_F77" >&6; }
15792      ;;
15793    esac
15794  fi
15795  ;;
15796esac
15797
15798{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15799$as_echo_n "checking dynamic linker characteristics... " >&6; }
15800library_names_spec=
15801libname_spec='lib$name'
15802soname_spec=
15803shrext_cmds=".so"
15804postinstall_cmds=
15805postuninstall_cmds=
15806finish_cmds=
15807finish_eval=
15808shlibpath_var=
15809shlibpath_overrides_runpath=unknown
15810version_type=none
15811dynamic_linker="$host_os ld.so"
15812sys_lib_dlsearch_path_spec="/lib /usr/lib"
15813
15814need_lib_prefix=unknown
15815hardcode_into_libs=no
15816
15817# when you set need_version to no, make sure it does not cause -set_version
15818# flags to be left without arguments
15819need_version=unknown
15820
15821case $host_os in
15822aix3*)
15823  version_type=linux
15824  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15825  shlibpath_var=LIBPATH
15826
15827  # AIX 3 has no versioning support, so we append a major version to the name.
15828  soname_spec='${libname}${release}${shared_ext}$major'
15829  ;;
15830
15831aix[4-9]*)
15832  version_type=linux
15833  need_lib_prefix=no
15834  need_version=no
15835  hardcode_into_libs=yes
15836  if test "$host_cpu" = ia64; then
15837    # AIX 5 supports IA64
15838    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15839    shlibpath_var=LD_LIBRARY_PATH
15840  else
15841    # With GCC up to 2.95.x, collect2 would create an import file
15842    # for dependence libraries.  The import file would start with
15843    # the line `#! .'.  This would cause the generated library to
15844    # depend on `.', always an invalid library.  This was fixed in
15845    # development snapshots of GCC prior to 3.0.
15846    case $host_os in
15847      aix4 | aix4.[01] | aix4.[01].*)
15848      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15849	   echo ' yes '
15850	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15851	:
15852      else
15853	can_build_shared=no
15854      fi
15855      ;;
15856    esac
15857    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15858    # soname into executable. Probably we can add versioning support to
15859    # collect2, so additional links can be useful in future.
15860    if test "$aix_use_runtimelinking" = yes; then
15861      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15862      # instead of lib<name>.a to let people know that these are not
15863      # typical AIX shared libraries.
15864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865    else
15866      # We preserve .a as extension for shared libraries through AIX4.2
15867      # and later when we are not doing run time linking.
15868      library_names_spec='${libname}${release}.a $libname.a'
15869      soname_spec='${libname}${release}${shared_ext}$major'
15870    fi
15871    shlibpath_var=LIBPATH
15872  fi
15873  ;;
15874
15875amigaos*)
15876  library_names_spec='$libname.ixlibrary $libname.a'
15877  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15878  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'
15879  ;;
15880
15881beos*)
15882  library_names_spec='${libname}${shared_ext}'
15883  dynamic_linker="$host_os ld.so"
15884  shlibpath_var=LIBRARY_PATH
15885  ;;
15886
15887bsdi[45]*)
15888  version_type=linux
15889  need_version=no
15890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891  soname_spec='${libname}${release}${shared_ext}$major'
15892  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15893  shlibpath_var=LD_LIBRARY_PATH
15894  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15895  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15896  # the default ld.so.conf also contains /usr/contrib/lib and
15897  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15898  # libtool to hard-code these into programs
15899  ;;
15900
15901cygwin* | mingw* | pw32*)
15902  version_type=windows
15903  shrext_cmds=".dll"
15904  need_version=no
15905  need_lib_prefix=no
15906
15907  case $GCC,$host_os in
15908  yes,cygwin* | yes,mingw* | yes,pw32*)
15909    library_names_spec='$libname.dll.a'
15910    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15911    postinstall_cmds='base_file=`basename \${file}`~
15912      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15913      dldir=$destdir/`dirname \$dlpath`~
15914      test -d \$dldir || mkdir -p \$dldir~
15915      $install_prog $dir/$dlname \$dldir/$dlname~
15916      chmod a+x \$dldir/$dlname'
15917    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15918      dlpath=$dir/\$dldll~
15919       $rm \$dlpath'
15920    shlibpath_overrides_runpath=yes
15921
15922    case $host_os in
15923    cygwin*)
15924      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15925      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15926      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15927      ;;
15928    mingw*)
15929      # MinGW DLLs use traditional 'lib' prefix
15930      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15931      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15932      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15933        # It is most probably a Windows format PATH printed by
15934        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15935        # path with ; separators, and with drive letters. We can handle the
15936        # drive letters (cygwin fileutils understands them), so leave them,
15937        # especially as we might pass files found there to a mingw objdump,
15938        # which wouldn't understand a cygwinified path. Ahh.
15939        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15940      else
15941        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15942      fi
15943      ;;
15944    pw32*)
15945      # pw32 DLLs use 'pw' prefix rather than 'lib'
15946      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15947      ;;
15948    esac
15949    ;;
15950
15951  *)
15952    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15953    ;;
15954  esac
15955  dynamic_linker='Win32 ld.exe'
15956  # FIXME: first we should search . and the directory the executable is in
15957  shlibpath_var=PATH
15958  ;;
15959
15960darwin* | rhapsody*)
15961  dynamic_linker="$host_os dyld"
15962  version_type=darwin
15963  need_lib_prefix=no
15964  need_version=no
15965  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15966  soname_spec='${libname}${release}${major}$shared_ext'
15967  shlibpath_overrides_runpath=yes
15968  shlibpath_var=DYLD_LIBRARY_PATH
15969  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15970
15971  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15972  ;;
15973
15974dgux*)
15975  version_type=linux
15976  need_lib_prefix=no
15977  need_version=no
15978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15979  soname_spec='${libname}${release}${shared_ext}$major'
15980  shlibpath_var=LD_LIBRARY_PATH
15981  ;;
15982
15983freebsd1*)
15984  dynamic_linker=no
15985  ;;
15986
15987freebsd* | dragonfly*)
15988  # DragonFly does not have aout.  When/if they implement a new
15989  # versioning mechanism, adjust this.
15990  if test -x /usr/bin/objformat; then
15991    objformat=`/usr/bin/objformat`
15992  else
15993    case $host_os in
15994    freebsd[123]*) objformat=aout ;;
15995    *) objformat=elf ;;
15996    esac
15997  fi
15998  # Handle Gentoo/FreeBSD as it was Linux
15999  case $host_vendor in
16000    gentoo)
16001      version_type=linux ;;
16002    *)
16003      version_type=freebsd-$objformat ;;
16004  esac
16005
16006  case $version_type in
16007    freebsd-elf*)
16008      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16009      need_version=no
16010      need_lib_prefix=no
16011      ;;
16012    freebsd-*)
16013      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16014      need_version=yes
16015      ;;
16016    linux)
16017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16018      soname_spec='${libname}${release}${shared_ext}$major'
16019      need_lib_prefix=no
16020      need_version=no
16021      ;;
16022  esac
16023  shlibpath_var=LD_LIBRARY_PATH
16024  case $host_os in
16025  freebsd2*)
16026    shlibpath_overrides_runpath=yes
16027    ;;
16028  freebsd3.[01]* | freebsdelf3.[01]*)
16029    shlibpath_overrides_runpath=yes
16030    hardcode_into_libs=yes
16031    ;;
16032  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16033  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16034    shlibpath_overrides_runpath=no
16035    hardcode_into_libs=yes
16036    ;;
16037  *) # from 4.6 on, and DragonFly
16038    shlibpath_overrides_runpath=yes
16039    hardcode_into_libs=yes
16040    ;;
16041  esac
16042  ;;
16043
16044gnu*)
16045  version_type=linux
16046  need_lib_prefix=no
16047  need_version=no
16048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16049  soname_spec='${libname}${release}${shared_ext}$major'
16050  shlibpath_var=LD_LIBRARY_PATH
16051  hardcode_into_libs=yes
16052  ;;
16053
16054hpux9* | hpux10* | hpux11*)
16055  # Give a soname corresponding to the major version so that dld.sl refuses to
16056  # link against other versions.
16057  version_type=sunos
16058  need_lib_prefix=no
16059  need_version=no
16060  case $host_cpu in
16061  ia64*)
16062    shrext_cmds='.so'
16063    hardcode_into_libs=yes
16064    dynamic_linker="$host_os dld.so"
16065    shlibpath_var=LD_LIBRARY_PATH
16066    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068    soname_spec='${libname}${release}${shared_ext}$major'
16069    if test "X$HPUX_IA64_MODE" = X32; then
16070      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16071    else
16072      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16073    fi
16074    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16075    ;;
16076   hppa*64*)
16077     shrext_cmds='.sl'
16078     hardcode_into_libs=yes
16079     dynamic_linker="$host_os dld.sl"
16080     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16081     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083     soname_spec='${libname}${release}${shared_ext}$major'
16084     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16085     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16086     ;;
16087   *)
16088    shrext_cmds='.sl'
16089    dynamic_linker="$host_os dld.sl"
16090    shlibpath_var=SHLIB_PATH
16091    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093    soname_spec='${libname}${release}${shared_ext}$major'
16094    ;;
16095  esac
16096  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16097  postinstall_cmds='chmod 555 $lib'
16098  ;;
16099
16100interix[3-9]*)
16101  version_type=linux
16102  need_lib_prefix=no
16103  need_version=no
16104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16105  soname_spec='${libname}${release}${shared_ext}$major'
16106  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16107  shlibpath_var=LD_LIBRARY_PATH
16108  shlibpath_overrides_runpath=no
16109  hardcode_into_libs=yes
16110  ;;
16111
16112irix5* | irix6* | nonstopux*)
16113  case $host_os in
16114    nonstopux*) version_type=nonstopux ;;
16115    *)
16116	if test "$lt_cv_prog_gnu_ld" = yes; then
16117		version_type=linux
16118	else
16119		version_type=irix
16120	fi ;;
16121  esac
16122  need_lib_prefix=no
16123  need_version=no
16124  soname_spec='${libname}${release}${shared_ext}$major'
16125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16126  case $host_os in
16127  irix5* | nonstopux*)
16128    libsuff= shlibsuff=
16129    ;;
16130  *)
16131    case $LD in # libtool.m4 will add one of these switches to LD
16132    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16133      libsuff= shlibsuff= libmagic=32-bit;;
16134    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16135      libsuff=32 shlibsuff=N32 libmagic=N32;;
16136    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16137      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16138    *) libsuff= shlibsuff= libmagic=never-match;;
16139    esac
16140    ;;
16141  esac
16142  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16143  shlibpath_overrides_runpath=no
16144  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16145  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16146  hardcode_into_libs=yes
16147  ;;
16148
16149# No shared lib support for Linux oldld, aout, or coff.
16150linux*oldld* | linux*aout* | linux*coff*)
16151  dynamic_linker=no
16152  ;;
16153
16154# This must be Linux ELF.
16155linux* | k*bsd*-gnu)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16162  shlibpath_var=LD_LIBRARY_PATH
16163  shlibpath_overrides_runpath=no
16164  # This implies no fast_install, which is unacceptable.
16165  # Some rework will be needed to allow for fast_install
16166  # before this can be enabled.
16167  hardcode_into_libs=yes
16168
16169  # Append ld.so.conf contents to the search path
16170  if test -f /etc/ld.so.conf; then
16171    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16172    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16173  fi
16174
16175  # We used to test for /lib/ld.so.1 and disable shared libraries on
16176  # powerpc, because MkLinux only supported shared libraries with the
16177  # GNU dynamic linker.  Since this was broken with cross compilers,
16178  # most powerpc-linux boxes support dynamic linking these days and
16179  # people can always --disable-shared, the test was removed, and we
16180  # assume the GNU/Linux dynamic linker is in use.
16181  dynamic_linker='GNU/Linux ld.so'
16182  ;;
16183
16184netbsd*)
16185  version_type=sunos
16186  need_lib_prefix=no
16187  need_version=no
16188  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16190    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16191    dynamic_linker='NetBSD (a.out) ld.so'
16192  else
16193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194    soname_spec='${libname}${release}${shared_ext}$major'
16195    dynamic_linker='NetBSD ld.elf_so'
16196  fi
16197  shlibpath_var=LD_LIBRARY_PATH
16198  shlibpath_overrides_runpath=yes
16199  hardcode_into_libs=yes
16200  ;;
16201
16202newsos6)
16203  version_type=linux
16204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205  shlibpath_var=LD_LIBRARY_PATH
16206  shlibpath_overrides_runpath=yes
16207  ;;
16208
16209nto-qnx*)
16210  version_type=linux
16211  need_lib_prefix=no
16212  need_version=no
16213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214  soname_spec='${libname}${release}${shared_ext}$major'
16215  shlibpath_var=LD_LIBRARY_PATH
16216  shlibpath_overrides_runpath=yes
16217  ;;
16218
16219openbsd*)
16220  version_type=sunos
16221  sys_lib_dlsearch_path_spec="/usr/lib"
16222  need_lib_prefix=no
16223  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16224  case $host_os in
16225    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16226    *)                         need_version=no  ;;
16227  esac
16228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16229  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16230  shlibpath_var=LD_LIBRARY_PATH
16231  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16232    case $host_os in
16233      openbsd2.[89] | openbsd2.[89].*)
16234	shlibpath_overrides_runpath=no
16235	;;
16236      *)
16237	shlibpath_overrides_runpath=yes
16238	;;
16239      esac
16240  else
16241    shlibpath_overrides_runpath=yes
16242  fi
16243  ;;
16244
16245os2*)
16246  libname_spec='$name'
16247  shrext_cmds=".dll"
16248  need_lib_prefix=no
16249  library_names_spec='$libname${shared_ext} $libname.a'
16250  dynamic_linker='OS/2 ld.exe'
16251  shlibpath_var=LIBPATH
16252  ;;
16253
16254osf3* | osf4* | osf5*)
16255  version_type=osf
16256  need_lib_prefix=no
16257  need_version=no
16258  soname_spec='${libname}${release}${shared_ext}$major'
16259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16262  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16263  ;;
16264
16265rdos*)
16266  dynamic_linker=no
16267  ;;
16268
16269solaris*)
16270  version_type=linux
16271  need_lib_prefix=no
16272  need_version=no
16273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274  soname_spec='${libname}${release}${shared_ext}$major'
16275  shlibpath_var=LD_LIBRARY_PATH
16276  shlibpath_overrides_runpath=yes
16277  hardcode_into_libs=yes
16278  # ldd complains unless libraries are executable
16279  postinstall_cmds='chmod +x $lib'
16280  ;;
16281
16282sunos4*)
16283  version_type=sunos
16284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16285  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16286  shlibpath_var=LD_LIBRARY_PATH
16287  shlibpath_overrides_runpath=yes
16288  if test "$with_gnu_ld" = yes; then
16289    need_lib_prefix=no
16290  fi
16291  need_version=yes
16292  ;;
16293
16294sysv4 | sysv4.3*)
16295  version_type=linux
16296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297  soname_spec='${libname}${release}${shared_ext}$major'
16298  shlibpath_var=LD_LIBRARY_PATH
16299  case $host_vendor in
16300    sni)
16301      shlibpath_overrides_runpath=no
16302      need_lib_prefix=no
16303      export_dynamic_flag_spec='${wl}-Blargedynsym'
16304      runpath_var=LD_RUN_PATH
16305      ;;
16306    siemens)
16307      need_lib_prefix=no
16308      ;;
16309    motorola)
16310      need_lib_prefix=no
16311      need_version=no
16312      shlibpath_overrides_runpath=no
16313      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16314      ;;
16315  esac
16316  ;;
16317
16318sysv4*MP*)
16319  if test -d /usr/nec ;then
16320    version_type=linux
16321    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16322    soname_spec='$libname${shared_ext}.$major'
16323    shlibpath_var=LD_LIBRARY_PATH
16324  fi
16325  ;;
16326
16327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16328  version_type=freebsd-elf
16329  need_lib_prefix=no
16330  need_version=no
16331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16332  soname_spec='${libname}${release}${shared_ext}$major'
16333  shlibpath_var=LD_LIBRARY_PATH
16334  hardcode_into_libs=yes
16335  if test "$with_gnu_ld" = yes; then
16336    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16337    shlibpath_overrides_runpath=no
16338  else
16339    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16340    shlibpath_overrides_runpath=yes
16341    case $host_os in
16342      sco3.2v5*)
16343        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16344	;;
16345    esac
16346  fi
16347  sys_lib_dlsearch_path_spec='/usr/lib'
16348  ;;
16349
16350uts4*)
16351  version_type=linux
16352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353  soname_spec='${libname}${release}${shared_ext}$major'
16354  shlibpath_var=LD_LIBRARY_PATH
16355  ;;
16356
16357*)
16358  dynamic_linker=no
16359  ;;
16360esac
16361{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16362$as_echo "$dynamic_linker" >&6; }
16363test "$dynamic_linker" = no && can_build_shared=no
16364
16365if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16366  $as_echo_n "(cached) " >&6
16367else
16368  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16369fi
16370
16371sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16372if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16373  $as_echo_n "(cached) " >&6
16374else
16375  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16376fi
16377
16378sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16379
16380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16381if test "$GCC" = yes; then
16382  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16383fi
16384
16385{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16386$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16387hardcode_action_F77=
16388if test -n "$hardcode_libdir_flag_spec_F77" || \
16389   test -n "$runpath_var_F77" || \
16390   test "X$hardcode_automatic_F77" = "Xyes" ; then
16391
16392  # We can hardcode non-existant directories.
16393  if test "$hardcode_direct_F77" != no &&
16394     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16395     # have to relink, otherwise we might link with an installed library
16396     # when we should be linking with a yet-to-be-installed one
16397     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16398     test "$hardcode_minus_L_F77" != no; then
16399    # Linking always hardcodes the temporary library directory.
16400    hardcode_action_F77=relink
16401  else
16402    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16403    hardcode_action_F77=immediate
16404  fi
16405else
16406  # We cannot hardcode anything, or else we can only hardcode existing
16407  # directories.
16408  hardcode_action_F77=unsupported
16409fi
16410{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16411$as_echo "$hardcode_action_F77" >&6; }
16412
16413if test "$hardcode_action_F77" = relink; then
16414  # Fast installation is not supported
16415  enable_fast_install=no
16416elif test "$shlibpath_overrides_runpath" = yes ||
16417     test "$enable_shared" = no; then
16418  # Fast installation is not necessary
16419  enable_fast_install=needless
16420fi
16421
16422
16423# The else clause should only fire when bootstrapping the
16424# libtool distribution, otherwise you forgot to ship ltmain.sh
16425# with your package, and you will get complaints that there are
16426# no rules to generate ltmain.sh.
16427if test -f "$ltmain"; then
16428  # See if we are running on zsh, and set the options which allow our commands through
16429  # without removal of \ escapes.
16430  if test -n "${ZSH_VERSION+set}" ; then
16431    setopt NO_GLOB_SUBST
16432  fi
16433  # Now quote all the things that may contain metacharacters while being
16434  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16435  # variables and quote the copies for generation of the libtool script.
16436  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16437    SED SHELL STRIP \
16438    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16439    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16440    deplibs_check_method reload_flag reload_cmds need_locks \
16441    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16442    lt_cv_sys_global_symbol_to_c_name_address \
16443    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16444    old_postinstall_cmds old_postuninstall_cmds \
16445    compiler_F77 \
16446    CC_F77 \
16447    LD_F77 \
16448    lt_prog_compiler_wl_F77 \
16449    lt_prog_compiler_pic_F77 \
16450    lt_prog_compiler_static_F77 \
16451    lt_prog_compiler_no_builtin_flag_F77 \
16452    export_dynamic_flag_spec_F77 \
16453    thread_safe_flag_spec_F77 \
16454    whole_archive_flag_spec_F77 \
16455    enable_shared_with_static_runtimes_F77 \
16456    old_archive_cmds_F77 \
16457    old_archive_from_new_cmds_F77 \
16458    predep_objects_F77 \
16459    postdep_objects_F77 \
16460    predeps_F77 \
16461    postdeps_F77 \
16462    compiler_lib_search_path_F77 \
16463    compiler_lib_search_dirs_F77 \
16464    archive_cmds_F77 \
16465    archive_expsym_cmds_F77 \
16466    postinstall_cmds_F77 \
16467    postuninstall_cmds_F77 \
16468    old_archive_from_expsyms_cmds_F77 \
16469    allow_undefined_flag_F77 \
16470    no_undefined_flag_F77 \
16471    export_symbols_cmds_F77 \
16472    hardcode_libdir_flag_spec_F77 \
16473    hardcode_libdir_flag_spec_ld_F77 \
16474    hardcode_libdir_separator_F77 \
16475    hardcode_automatic_F77 \
16476    module_cmds_F77 \
16477    module_expsym_cmds_F77 \
16478    lt_cv_prog_compiler_c_o_F77 \
16479    fix_srcfile_path_F77 \
16480    exclude_expsyms_F77 \
16481    include_expsyms_F77; do
16482
16483    case $var in
16484    old_archive_cmds_F77 | \
16485    old_archive_from_new_cmds_F77 | \
16486    archive_cmds_F77 | \
16487    archive_expsym_cmds_F77 | \
16488    module_cmds_F77 | \
16489    module_expsym_cmds_F77 | \
16490    old_archive_from_expsyms_cmds_F77 | \
16491    export_symbols_cmds_F77 | \
16492    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16493    postinstall_cmds | postuninstall_cmds | \
16494    old_postinstall_cmds | old_postuninstall_cmds | \
16495    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16496      # Double-quote double-evaled strings.
16497      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16498      ;;
16499    *)
16500      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16501      ;;
16502    esac
16503  done
16504
16505  case $lt_echo in
16506  *'\$0 --fallback-echo"')
16507    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16508    ;;
16509  esac
16510
16511cfgfile="$ofile"
16512
16513  cat <<__EOF__ >> "$cfgfile"
16514# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16515
16516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16517
16518# Shell to use when invoking shell scripts.
16519SHELL=$lt_SHELL
16520
16521# Whether or not to build shared libraries.
16522build_libtool_libs=$enable_shared
16523
16524# Whether or not to build static libraries.
16525build_old_libs=$enable_static
16526
16527# Whether or not to add -lc for building shared libraries.
16528build_libtool_need_lc=$archive_cmds_need_lc_F77
16529
16530# Whether or not to disallow shared libs when runtime libs are static
16531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16532
16533# Whether or not to optimize for fast installation.
16534fast_install=$enable_fast_install
16535
16536# The host system.
16537host_alias=$host_alias
16538host=$host
16539host_os=$host_os
16540
16541# The build system.
16542build_alias=$build_alias
16543build=$build
16544build_os=$build_os
16545
16546# An echo program that does not interpret backslashes.
16547echo=$lt_echo
16548
16549# The archiver.
16550AR=$lt_AR
16551AR_FLAGS=$lt_AR_FLAGS
16552
16553# A C compiler.
16554LTCC=$lt_LTCC
16555
16556# LTCC compiler flags.
16557LTCFLAGS=$lt_LTCFLAGS
16558
16559# A language-specific compiler.
16560CC=$lt_compiler_F77
16561
16562# Is the compiler the GNU C compiler?
16563with_gcc=$GCC_F77
16564
16565# An ERE matcher.
16566EGREP=$lt_EGREP
16567
16568# The linker used to build libraries.
16569LD=$lt_LD_F77
16570
16571# Whether we need hard or soft links.
16572LN_S=$lt_LN_S
16573
16574# A BSD-compatible nm program.
16575NM=$lt_NM
16576
16577# A symbol stripping program
16578STRIP=$lt_STRIP
16579
16580# Used to examine libraries when file_magic_cmd begins "file"
16581MAGIC_CMD=$MAGIC_CMD
16582
16583# Used on cygwin: DLL creation program.
16584DLLTOOL="$DLLTOOL"
16585
16586# Used on cygwin: object dumper.
16587OBJDUMP="$OBJDUMP"
16588
16589# Used on cygwin: assembler.
16590AS="$AS"
16591
16592# The name of the directory that contains temporary libtool files.
16593objdir=$objdir
16594
16595# How to create reloadable object files.
16596reload_flag=$lt_reload_flag
16597reload_cmds=$lt_reload_cmds
16598
16599# How to pass a linker flag through the compiler.
16600wl=$lt_lt_prog_compiler_wl_F77
16601
16602# Object file suffix (normally "o").
16603objext="$ac_objext"
16604
16605# Old archive suffix (normally "a").
16606libext="$libext"
16607
16608# Shared library suffix (normally ".so").
16609shrext_cmds='$shrext_cmds'
16610
16611# Executable file suffix (normally "").
16612exeext="$exeext"
16613
16614# Additional compiler flags for building library objects.
16615pic_flag=$lt_lt_prog_compiler_pic_F77
16616pic_mode=$pic_mode
16617
16618# What is the maximum length of a command?
16619max_cmd_len=$lt_cv_sys_max_cmd_len
16620
16621# Does compiler simultaneously support -c and -o options?
16622compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16623
16624# Must we lock files when doing compilation?
16625need_locks=$lt_need_locks
16626
16627# Do we need the lib prefix for modules?
16628need_lib_prefix=$need_lib_prefix
16629
16630# Do we need a version for libraries?
16631need_version=$need_version
16632
16633# Whether dlopen is supported.
16634dlopen_support=$enable_dlopen
16635
16636# Whether dlopen of programs is supported.
16637dlopen_self=$enable_dlopen_self
16638
16639# Whether dlopen of statically linked programs is supported.
16640dlopen_self_static=$enable_dlopen_self_static
16641
16642# Compiler flag to prevent dynamic linking.
16643link_static_flag=$lt_lt_prog_compiler_static_F77
16644
16645# Compiler flag to turn off builtin functions.
16646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16647
16648# Compiler flag to allow reflexive dlopens.
16649export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16650
16651# Compiler flag to generate shared objects directly from archives.
16652whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16653
16654# Compiler flag to generate thread-safe objects.
16655thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16656
16657# Library versioning type.
16658version_type=$version_type
16659
16660# Format of library name prefix.
16661libname_spec=$lt_libname_spec
16662
16663# List of archive names.  First name is the real one, the rest are links.
16664# The last name is the one that the linker finds with -lNAME.
16665library_names_spec=$lt_library_names_spec
16666
16667# The coded name of the library, if different from the real name.
16668soname_spec=$lt_soname_spec
16669
16670# Commands used to build and install an old-style archive.
16671RANLIB=$lt_RANLIB
16672old_archive_cmds=$lt_old_archive_cmds_F77
16673old_postinstall_cmds=$lt_old_postinstall_cmds
16674old_postuninstall_cmds=$lt_old_postuninstall_cmds
16675
16676# Create an old-style archive from a shared archive.
16677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16678
16679# Create a temporary old-style archive to link instead of a shared archive.
16680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16681
16682# Commands used to build and install a shared archive.
16683archive_cmds=$lt_archive_cmds_F77
16684archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16685postinstall_cmds=$lt_postinstall_cmds
16686postuninstall_cmds=$lt_postuninstall_cmds
16687
16688# Commands used to build a loadable module (assumed same as above if empty)
16689module_cmds=$lt_module_cmds_F77
16690module_expsym_cmds=$lt_module_expsym_cmds_F77
16691
16692# Commands to strip libraries.
16693old_striplib=$lt_old_striplib
16694striplib=$lt_striplib
16695
16696# Dependencies to place before the objects being linked to create a
16697# shared library.
16698predep_objects=$lt_predep_objects_F77
16699
16700# Dependencies to place after the objects being linked to create a
16701# shared library.
16702postdep_objects=$lt_postdep_objects_F77
16703
16704# Dependencies to place before the objects being linked to create a
16705# shared library.
16706predeps=$lt_predeps_F77
16707
16708# Dependencies to place after the objects being linked to create a
16709# shared library.
16710postdeps=$lt_postdeps_F77
16711
16712# The directories searched by this compiler when creating a shared
16713# library
16714compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16715
16716# The library search path used internally by the compiler when linking
16717# a shared library.
16718compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16719
16720# Method to check whether dependent libraries are shared objects.
16721deplibs_check_method=$lt_deplibs_check_method
16722
16723# Command to use when deplibs_check_method == file_magic.
16724file_magic_cmd=$lt_file_magic_cmd
16725
16726# Flag that allows shared libraries with undefined symbols to be built.
16727allow_undefined_flag=$lt_allow_undefined_flag_F77
16728
16729# Flag that forces no undefined symbols.
16730no_undefined_flag=$lt_no_undefined_flag_F77
16731
16732# Commands used to finish a libtool library installation in a directory.
16733finish_cmds=$lt_finish_cmds
16734
16735# Same as above, but a single script fragment to be evaled but not shown.
16736finish_eval=$lt_finish_eval
16737
16738# Take the output of nm and produce a listing of raw symbols and C names.
16739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16740
16741# Transform the output of nm in a proper C declaration
16742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16743
16744# Transform the output of nm in a C name address pair
16745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16746
16747# This is the shared library runtime path variable.
16748runpath_var=$runpath_var
16749
16750# This is the shared library path variable.
16751shlibpath_var=$shlibpath_var
16752
16753# Is shlibpath searched before the hard-coded library search path?
16754shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16755
16756# How to hardcode a shared library path into an executable.
16757hardcode_action=$hardcode_action_F77
16758
16759# Whether we should hardcode library paths into libraries.
16760hardcode_into_libs=$hardcode_into_libs
16761
16762# Flag to hardcode \$libdir into a binary during linking.
16763# This must work even if \$libdir does not exist.
16764hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16765
16766# If ld is used when linking, flag to hardcode \$libdir into
16767# a binary during linking. This must work even if \$libdir does
16768# not exist.
16769hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16770
16771# Whether we need a single -rpath flag with a separated argument.
16772hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16773
16774# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16775# resulting binary.
16776hardcode_direct=$hardcode_direct_F77
16777
16778# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16779# resulting binary.
16780hardcode_minus_L=$hardcode_minus_L_F77
16781
16782# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16783# the resulting binary.
16784hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16785
16786# Set to yes if building a shared library automatically hardcodes DIR into the library
16787# and all subsequent libraries and executables linked against it.
16788hardcode_automatic=$hardcode_automatic_F77
16789
16790# Variables whose values should be saved in libtool wrapper scripts and
16791# restored at relink time.
16792variables_saved_for_relink="$variables_saved_for_relink"
16793
16794# Whether libtool must link a program against all its dependency libraries.
16795link_all_deplibs=$link_all_deplibs_F77
16796
16797# Compile-time system search path for libraries
16798sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16799
16800# Run-time system search path for libraries
16801sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16802
16803# Fix the shell variable \$srcfile for the compiler.
16804fix_srcfile_path=$lt_fix_srcfile_path
16805
16806# Set to yes if exported symbols are required.
16807always_export_symbols=$always_export_symbols_F77
16808
16809# The commands to list exported symbols.
16810export_symbols_cmds=$lt_export_symbols_cmds_F77
16811
16812# The commands to extract the exported symbol list from a shared archive.
16813extract_expsyms_cmds=$lt_extract_expsyms_cmds
16814
16815# Symbols that should not be listed in the preloaded symbols.
16816exclude_expsyms=$lt_exclude_expsyms_F77
16817
16818# Symbols that must always be exported.
16819include_expsyms=$lt_include_expsyms_F77
16820
16821# ### END LIBTOOL TAG CONFIG: $tagname
16822
16823__EOF__
16824
16825
16826else
16827  # If there is no Makefile yet, we rely on a make rule to execute
16828  # `config.status --recheck' to rerun these tests and create the
16829  # libtool script then.
16830  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16831  if test -f "$ltmain_in"; then
16832    test -f Makefile && make "$ltmain"
16833  fi
16834fi
16835
16836
16837ac_ext=c
16838ac_cpp='$CPP $CPPFLAGS'
16839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841ac_compiler_gnu=$ac_cv_c_compiler_gnu
16842
16843CC="$lt_save_CC"
16844
16845	else
16846	  tagname=""
16847	fi
16848	;;
16849
16850      GCJ)
16851	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16852
16853
16854# Source file extension for Java test sources.
16855ac_ext=java
16856
16857# Object file extension for compiled Java test sources.
16858objext=o
16859objext_GCJ=$objext
16860
16861# Code to be used in simple compile tests
16862lt_simple_compile_test_code="class foo {}"
16863
16864# Code to be used in simple link tests
16865lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16866
16867# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16868
16869# If no C compiler was specified, use CC.
16870LTCC=${LTCC-"$CC"}
16871
16872# If no C compiler flags were specified, use CFLAGS.
16873LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16874
16875# Allow CC to be a program name with arguments.
16876compiler=$CC
16877
16878
16879# save warnings/boilerplate of simple test code
16880ac_outfile=conftest.$ac_objext
16881echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16882eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16883_lt_compiler_boilerplate=`cat conftest.err`
16884$rm conftest*
16885
16886ac_outfile=conftest.$ac_objext
16887echo "$lt_simple_link_test_code" >conftest.$ac_ext
16888eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16889_lt_linker_boilerplate=`cat conftest.err`
16890$rm -r conftest*
16891
16892
16893# Allow CC to be a program name with arguments.
16894lt_save_CC="$CC"
16895CC=${GCJ-"gcj"}
16896compiler=$CC
16897compiler_GCJ=$CC
16898for cc_temp in $compiler""; do
16899  case $cc_temp in
16900    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16901    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16902    \-*) ;;
16903    *) break;;
16904  esac
16905done
16906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16907
16908
16909# GCJ did not exist at the time GCC didn't implicitly link libc in.
16910archive_cmds_need_lc_GCJ=no
16911
16912old_archive_cmds_GCJ=$old_archive_cmds
16913
16914
16915lt_prog_compiler_no_builtin_flag_GCJ=
16916
16917if test "$GCC" = yes; then
16918  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16919
16920
16921{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16922$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16923if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16924  $as_echo_n "(cached) " >&6
16925else
16926  lt_cv_prog_compiler_rtti_exceptions=no
16927  ac_outfile=conftest.$ac_objext
16928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16929   lt_compiler_flag="-fno-rtti -fno-exceptions"
16930   # Insert the option either (1) after the last *FLAGS variable, or
16931   # (2) before a word containing "conftest.", or (3) at the end.
16932   # Note that $ac_compile itself does not contain backslashes and begins
16933   # with a dollar sign (not a hyphen), so the echo should work correctly.
16934   # The option is referenced via a variable to avoid confusing sed.
16935   lt_compile=`echo "$ac_compile" | $SED \
16936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16938   -e 's:$: $lt_compiler_flag:'`
16939   (eval echo "\"\$as_me:16939: $lt_compile\"" >&5)
16940   (eval "$lt_compile" 2>conftest.err)
16941   ac_status=$?
16942   cat conftest.err >&5
16943   echo "$as_me:16943: \$? = $ac_status" >&5
16944   if (exit $ac_status) && test -s "$ac_outfile"; then
16945     # The compiler can only warn and ignore the option if not recognized
16946     # So say no if there are warnings other than the usual output.
16947     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16948     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16949     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16950       lt_cv_prog_compiler_rtti_exceptions=yes
16951     fi
16952   fi
16953   $rm conftest*
16954
16955fi
16956{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16957$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16958
16959if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16960    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16961else
16962    :
16963fi
16964
16965fi
16966
16967lt_prog_compiler_wl_GCJ=
16968lt_prog_compiler_pic_GCJ=
16969lt_prog_compiler_static_GCJ=
16970
16971{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16973
16974  if test "$GCC" = yes; then
16975    lt_prog_compiler_wl_GCJ='-Wl,'
16976    lt_prog_compiler_static_GCJ='-static'
16977
16978    case $host_os in
16979      aix*)
16980      # All AIX code is PIC.
16981      if test "$host_cpu" = ia64; then
16982	# AIX 5 now supports IA64 processor
16983	lt_prog_compiler_static_GCJ='-Bstatic'
16984      fi
16985      ;;
16986
16987    amigaos*)
16988      # FIXME: we need at least 68020 code to build shared libraries, but
16989      # adding the `-m68020' flag to GCC prevents building anything better,
16990      # like `-m68040'.
16991      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16992      ;;
16993
16994    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16995      # PIC is the default for these OSes.
16996      ;;
16997
16998    mingw* | cygwin* | pw32* | os2*)
16999      # This hack is so that the source file can tell whether it is being
17000      # built for inclusion in a dll (and should export symbols for example).
17001      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17002      # (--disable-auto-import) libraries
17003
17004      ;;
17005
17006    darwin* | rhapsody*)
17007      # PIC is the default on this platform
17008      # Common symbols not allowed in MH_DYLIB files
17009      lt_prog_compiler_pic_GCJ='-fno-common'
17010      ;;
17011
17012    interix[3-9]*)
17013      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17014      # Instead, we relocate shared libraries at runtime.
17015      ;;
17016
17017    msdosdjgpp*)
17018      # Just because we use GCC doesn't mean we suddenly get shared libraries
17019      # on systems that don't support them.
17020      lt_prog_compiler_can_build_shared_GCJ=no
17021      enable_shared=no
17022      ;;
17023
17024    sysv4*MP*)
17025      if test -d /usr/nec; then
17026	lt_prog_compiler_pic_GCJ=-Kconform_pic
17027      fi
17028      ;;
17029
17030    hpux*)
17031      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17032      # not for PA HP-UX.
17033      case $host_cpu in
17034      hppa*64*|ia64*)
17035	# +Z the default
17036	;;
17037      *)
17038	lt_prog_compiler_pic_GCJ='-fPIC'
17039	;;
17040      esac
17041      ;;
17042
17043    *)
17044      lt_prog_compiler_pic_GCJ='-fPIC'
17045      ;;
17046    esac
17047  else
17048    # PORTME Check for flag to pass linker flags through the system compiler.
17049    case $host_os in
17050    aix*)
17051      lt_prog_compiler_wl_GCJ='-Wl,'
17052      if test "$host_cpu" = ia64; then
17053	# AIX 5 now supports IA64 processor
17054	lt_prog_compiler_static_GCJ='-Bstatic'
17055      else
17056	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17057      fi
17058      ;;
17059      darwin*)
17060        # PIC is the default on this platform
17061        # Common symbols not allowed in MH_DYLIB files
17062       case $cc_basename in
17063         xlc*)
17064         lt_prog_compiler_pic_GCJ='-qnocommon'
17065         lt_prog_compiler_wl_GCJ='-Wl,'
17066         ;;
17067       esac
17068       ;;
17069
17070    mingw* | cygwin* | pw32* | os2*)
17071      # This hack is so that the source file can tell whether it is being
17072      # built for inclusion in a dll (and should export symbols for example).
17073
17074      ;;
17075
17076    hpux9* | hpux10* | hpux11*)
17077      lt_prog_compiler_wl_GCJ='-Wl,'
17078      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17079      # not for PA HP-UX.
17080      case $host_cpu in
17081      hppa*64*|ia64*)
17082	# +Z the default
17083	;;
17084      *)
17085	lt_prog_compiler_pic_GCJ='+Z'
17086	;;
17087      esac
17088      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17089      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17090      ;;
17091
17092    irix5* | irix6* | nonstopux*)
17093      lt_prog_compiler_wl_GCJ='-Wl,'
17094      # PIC (with -KPIC) is the default.
17095      lt_prog_compiler_static_GCJ='-non_shared'
17096      ;;
17097
17098    newsos6)
17099      lt_prog_compiler_pic_GCJ='-KPIC'
17100      lt_prog_compiler_static_GCJ='-Bstatic'
17101      ;;
17102
17103    linux* | k*bsd*-gnu)
17104      case $cc_basename in
17105      icc* | ecc*)
17106	lt_prog_compiler_wl_GCJ='-Wl,'
17107	lt_prog_compiler_pic_GCJ='-KPIC'
17108	lt_prog_compiler_static_GCJ='-static'
17109        ;;
17110      pgcc* | pgf77* | pgf90* | pgf95*)
17111        # Portland Group compilers (*not* the Pentium gcc compiler,
17112	# which looks to be a dead project)
17113	lt_prog_compiler_wl_GCJ='-Wl,'
17114	lt_prog_compiler_pic_GCJ='-fpic'
17115	lt_prog_compiler_static_GCJ='-Bstatic'
17116        ;;
17117      ccc*)
17118        lt_prog_compiler_wl_GCJ='-Wl,'
17119        # All Alpha code is PIC.
17120        lt_prog_compiler_static_GCJ='-non_shared'
17121        ;;
17122      *)
17123        case `$CC -V 2>&1 | sed 5q` in
17124	*Sun\ C*)
17125	  # Sun C 5.9
17126	  lt_prog_compiler_pic_GCJ='-KPIC'
17127	  lt_prog_compiler_static_GCJ='-Bstatic'
17128	  lt_prog_compiler_wl_GCJ='-Wl,'
17129	  ;;
17130	*Sun\ F*)
17131	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17132	  lt_prog_compiler_pic_GCJ='-KPIC'
17133	  lt_prog_compiler_static_GCJ='-Bstatic'
17134	  lt_prog_compiler_wl_GCJ=''
17135	  ;;
17136	esac
17137	;;
17138      esac
17139      ;;
17140
17141    osf3* | osf4* | osf5*)
17142      lt_prog_compiler_wl_GCJ='-Wl,'
17143      # All OSF/1 code is PIC.
17144      lt_prog_compiler_static_GCJ='-non_shared'
17145      ;;
17146
17147    rdos*)
17148      lt_prog_compiler_static_GCJ='-non_shared'
17149      ;;
17150
17151    solaris*)
17152      lt_prog_compiler_pic_GCJ='-KPIC'
17153      lt_prog_compiler_static_GCJ='-Bstatic'
17154      case $cc_basename in
17155      f77* | f90* | f95*)
17156	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17157      *)
17158	lt_prog_compiler_wl_GCJ='-Wl,';;
17159      esac
17160      ;;
17161
17162    sunos4*)
17163      lt_prog_compiler_wl_GCJ='-Qoption ld '
17164      lt_prog_compiler_pic_GCJ='-PIC'
17165      lt_prog_compiler_static_GCJ='-Bstatic'
17166      ;;
17167
17168    sysv4 | sysv4.2uw2* | sysv4.3*)
17169      lt_prog_compiler_wl_GCJ='-Wl,'
17170      lt_prog_compiler_pic_GCJ='-KPIC'
17171      lt_prog_compiler_static_GCJ='-Bstatic'
17172      ;;
17173
17174    sysv4*MP*)
17175      if test -d /usr/nec ;then
17176	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17177	lt_prog_compiler_static_GCJ='-Bstatic'
17178      fi
17179      ;;
17180
17181    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17182      lt_prog_compiler_wl_GCJ='-Wl,'
17183      lt_prog_compiler_pic_GCJ='-KPIC'
17184      lt_prog_compiler_static_GCJ='-Bstatic'
17185      ;;
17186
17187    unicos*)
17188      lt_prog_compiler_wl_GCJ='-Wl,'
17189      lt_prog_compiler_can_build_shared_GCJ=no
17190      ;;
17191
17192    uts4*)
17193      lt_prog_compiler_pic_GCJ='-pic'
17194      lt_prog_compiler_static_GCJ='-Bstatic'
17195      ;;
17196
17197    *)
17198      lt_prog_compiler_can_build_shared_GCJ=no
17199      ;;
17200    esac
17201  fi
17202
17203{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17204$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17205
17206#
17207# Check to make sure the PIC flag actually works.
17208#
17209if test -n "$lt_prog_compiler_pic_GCJ"; then
17210
17211{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17212$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17213if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17214  $as_echo_n "(cached) " >&6
17215else
17216  lt_cv_prog_compiler_pic_works_GCJ=no
17217  ac_outfile=conftest.$ac_objext
17218   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17219   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17220   # Insert the option either (1) after the last *FLAGS variable, or
17221   # (2) before a word containing "conftest.", or (3) at the end.
17222   # Note that $ac_compile itself does not contain backslashes and begins
17223   # with a dollar sign (not a hyphen), so the echo should work correctly.
17224   # The option is referenced via a variable to avoid confusing sed.
17225   lt_compile=`echo "$ac_compile" | $SED \
17226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17228   -e 's:$: $lt_compiler_flag:'`
17229   (eval echo "\"\$as_me:17229: $lt_compile\"" >&5)
17230   (eval "$lt_compile" 2>conftest.err)
17231   ac_status=$?
17232   cat conftest.err >&5
17233   echo "$as_me:17233: \$? = $ac_status" >&5
17234   if (exit $ac_status) && test -s "$ac_outfile"; then
17235     # The compiler can only warn and ignore the option if not recognized
17236     # So say no if there are warnings other than the usual output.
17237     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17238     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17239     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17240       lt_cv_prog_compiler_pic_works_GCJ=yes
17241     fi
17242   fi
17243   $rm conftest*
17244
17245fi
17246{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17247$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17248
17249if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17250    case $lt_prog_compiler_pic_GCJ in
17251     "" | " "*) ;;
17252     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17253     esac
17254else
17255    lt_prog_compiler_pic_GCJ=
17256     lt_prog_compiler_can_build_shared_GCJ=no
17257fi
17258
17259fi
17260case $host_os in
17261  # For platforms which do not support PIC, -DPIC is meaningless:
17262  *djgpp*)
17263    lt_prog_compiler_pic_GCJ=
17264    ;;
17265  *)
17266    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17267    ;;
17268esac
17269
17270#
17271# Check to make sure the static flag actually works.
17272#
17273wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17274{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17275$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17276if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17277  $as_echo_n "(cached) " >&6
17278else
17279  lt_cv_prog_compiler_static_works_GCJ=no
17280   save_LDFLAGS="$LDFLAGS"
17281   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17282   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17283   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17284     # The linker can only warn and ignore the option if not recognized
17285     # So say no if there are warnings
17286     if test -s conftest.err; then
17287       # Append any errors to the config.log.
17288       cat conftest.err 1>&5
17289       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17290       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17291       if diff conftest.exp conftest.er2 >/dev/null; then
17292         lt_cv_prog_compiler_static_works_GCJ=yes
17293       fi
17294     else
17295       lt_cv_prog_compiler_static_works_GCJ=yes
17296     fi
17297   fi
17298   $rm -r conftest*
17299   LDFLAGS="$save_LDFLAGS"
17300
17301fi
17302{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17303$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17304
17305if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17306    :
17307else
17308    lt_prog_compiler_static_GCJ=
17309fi
17310
17311
17312{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17314if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17315  $as_echo_n "(cached) " >&6
17316else
17317  lt_cv_prog_compiler_c_o_GCJ=no
17318   $rm -r conftest 2>/dev/null
17319   mkdir conftest
17320   cd conftest
17321   mkdir out
17322   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17323
17324   lt_compiler_flag="-o out/conftest2.$ac_objext"
17325   # Insert the option either (1) after the last *FLAGS variable, or
17326   # (2) before a word containing "conftest.", or (3) at the end.
17327   # Note that $ac_compile itself does not contain backslashes and begins
17328   # with a dollar sign (not a hyphen), so the echo should work correctly.
17329   lt_compile=`echo "$ac_compile" | $SED \
17330   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17331   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17332   -e 's:$: $lt_compiler_flag:'`
17333   (eval echo "\"\$as_me:17333: $lt_compile\"" >&5)
17334   (eval "$lt_compile" 2>out/conftest.err)
17335   ac_status=$?
17336   cat out/conftest.err >&5
17337   echo "$as_me:17337: \$? = $ac_status" >&5
17338   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17339   then
17340     # The compiler can only warn and ignore the option if not recognized
17341     # So say no if there are warnings
17342     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17343     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17344     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17345       lt_cv_prog_compiler_c_o_GCJ=yes
17346     fi
17347   fi
17348   chmod u+w . 2>&5
17349   $rm conftest*
17350   # SGI C++ compiler will create directory out/ii_files/ for
17351   # template instantiation
17352   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17353   $rm out/* && rmdir out
17354   cd ..
17355   rmdir conftest
17356   $rm conftest*
17357
17358fi
17359{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17360$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17361
17362
17363hard_links="nottested"
17364if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17365  # do not overwrite the value of need_locks provided by the user
17366  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17367$as_echo_n "checking if we can lock with hard links... " >&6; }
17368  hard_links=yes
17369  $rm conftest*
17370  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17371  touch conftest.a
17372  ln conftest.a conftest.b 2>&5 || hard_links=no
17373  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17374  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17375$as_echo "$hard_links" >&6; }
17376  if test "$hard_links" = no; then
17377    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17378$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17379    need_locks=warn
17380  fi
17381else
17382  need_locks=no
17383fi
17384
17385{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17386$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17387
17388  runpath_var=
17389  allow_undefined_flag_GCJ=
17390  enable_shared_with_static_runtimes_GCJ=no
17391  archive_cmds_GCJ=
17392  archive_expsym_cmds_GCJ=
17393  old_archive_From_new_cmds_GCJ=
17394  old_archive_from_expsyms_cmds_GCJ=
17395  export_dynamic_flag_spec_GCJ=
17396  whole_archive_flag_spec_GCJ=
17397  thread_safe_flag_spec_GCJ=
17398  hardcode_libdir_flag_spec_GCJ=
17399  hardcode_libdir_flag_spec_ld_GCJ=
17400  hardcode_libdir_separator_GCJ=
17401  hardcode_direct_GCJ=no
17402  hardcode_minus_L_GCJ=no
17403  hardcode_shlibpath_var_GCJ=unsupported
17404  link_all_deplibs_GCJ=unknown
17405  hardcode_automatic_GCJ=no
17406  module_cmds_GCJ=
17407  module_expsym_cmds_GCJ=
17408  always_export_symbols_GCJ=no
17409  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17410  # include_expsyms should be a list of space-separated symbols to be *always*
17411  # included in the symbol list
17412  include_expsyms_GCJ=
17413  # exclude_expsyms can be an extended regexp of symbols to exclude
17414  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17415  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17416  # as well as any symbol that contains `d'.
17417  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17418  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17419  # platforms (ab)use it in PIC code, but their linkers get confused if
17420  # the symbol is explicitly referenced.  Since portable code cannot
17421  # rely on this symbol name, it's probably fine to never include it in
17422  # preloaded symbol tables.
17423  # Exclude shared library initialization/finalization symbols.
17424  extract_expsyms_cmds=
17425  # Just being paranoid about ensuring that cc_basename is set.
17426  for cc_temp in $compiler""; do
17427  case $cc_temp in
17428    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17429    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17430    \-*) ;;
17431    *) break;;
17432  esac
17433done
17434cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17435
17436  case $host_os in
17437  cygwin* | mingw* | pw32*)
17438    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17439    # When not using gcc, we currently assume that we are using
17440    # Microsoft Visual C++.
17441    if test "$GCC" != yes; then
17442      with_gnu_ld=no
17443    fi
17444    ;;
17445  interix*)
17446    # we just hope/assume this is gcc and not c89 (= MSVC++)
17447    with_gnu_ld=yes
17448    ;;
17449  openbsd*)
17450    with_gnu_ld=no
17451    ;;
17452  esac
17453
17454  ld_shlibs_GCJ=yes
17455  if test "$with_gnu_ld" = yes; then
17456    # If archive_cmds runs LD, not CC, wlarc should be empty
17457    wlarc='${wl}'
17458
17459    # Set some defaults for GNU ld with shared library support. These
17460    # are reset later if shared libraries are not supported. Putting them
17461    # here allows them to be overridden if necessary.
17462    runpath_var=LD_RUN_PATH
17463    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17464    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17465    # ancient GNU ld didn't support --whole-archive et. al.
17466    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17467	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17468      else
17469  	whole_archive_flag_spec_GCJ=
17470    fi
17471    supports_anon_versioning=no
17472    case `$LD -v 2>/dev/null` in
17473      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17474      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17475      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17476      *\ 2.11.*) ;; # other 2.11 versions
17477      *) supports_anon_versioning=yes ;;
17478    esac
17479
17480    # See if GNU ld supports shared libraries.
17481    case $host_os in
17482    aix[3-9]*)
17483      # On AIX/PPC, the GNU linker is very broken
17484      if test "$host_cpu" != ia64; then
17485	ld_shlibs_GCJ=no
17486	cat <<EOF 1>&2
17487
17488*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17489*** to be unable to reliably create shared libraries on AIX.
17490*** Therefore, libtool is disabling shared libraries support.  If you
17491*** really care for shared libraries, you may want to modify your PATH
17492*** so that a non-GNU linker is found, and then restart.
17493
17494EOF
17495      fi
17496      ;;
17497
17498    amigaos*)
17499      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)'
17500      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17501      hardcode_minus_L_GCJ=yes
17502
17503      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17504      # that the semantics of dynamic libraries on AmigaOS, at least up
17505      # to version 4, is to share data among multiple programs linked
17506      # with the same dynamic library.  Since this doesn't match the
17507      # behavior of shared libraries on other platforms, we can't use
17508      # them.
17509      ld_shlibs_GCJ=no
17510      ;;
17511
17512    beos*)
17513      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17514	allow_undefined_flag_GCJ=unsupported
17515	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17516	# support --undefined.  This deserves some investigation.  FIXME
17517	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17518      else
17519	ld_shlibs_GCJ=no
17520      fi
17521      ;;
17522
17523    cygwin* | mingw* | pw32*)
17524      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17525      # as there is no search path for DLLs.
17526      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527      allow_undefined_flag_GCJ=unsupported
17528      always_export_symbols_GCJ=no
17529      enable_shared_with_static_runtimes_GCJ=yes
17530      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17531
17532      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17533        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17534	# If the export-symbols file already is a .def file (1st line
17535	# is EXPORTS), use it as is; otherwise, prepend...
17536	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17537	  cp $export_symbols $output_objdir/$soname.def;
17538	else
17539	  echo EXPORTS > $output_objdir/$soname.def;
17540	  cat $export_symbols >> $output_objdir/$soname.def;
17541	fi~
17542	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17543      else
17544	ld_shlibs_GCJ=no
17545      fi
17546      ;;
17547
17548    interix[3-9]*)
17549      hardcode_direct_GCJ=no
17550      hardcode_shlibpath_var_GCJ=no
17551      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17552      export_dynamic_flag_spec_GCJ='${wl}-E'
17553      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17554      # Instead, shared libraries are loaded at an image base (0x10000000 by
17555      # default) and relocated if they conflict, which is a slow very memory
17556      # consuming and fragmenting process.  To avoid this, we pick a random,
17557      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17558      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17559      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'
17560      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'
17561      ;;
17562
17563    gnu* | linux* | k*bsd*-gnu)
17564      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17565	tmp_addflag=
17566	case $cc_basename,$host_cpu in
17567	pgcc*)				# Portland Group C compiler
17568	  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'
17569	  tmp_addflag=' $pic_flag'
17570	  ;;
17571	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17572	  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'
17573	  tmp_addflag=' $pic_flag -Mnomain' ;;
17574	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17575	  tmp_addflag=' -i_dynamic' ;;
17576	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17577	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17578	ifc* | ifort*)			# Intel Fortran compiler
17579	  tmp_addflag=' -nofor_main' ;;
17580	esac
17581	case `$CC -V 2>&1 | sed 5q` in
17582	*Sun\ C*)			# Sun C 5.9
17583	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17584	  tmp_sharedflag='-G' ;;
17585	*Sun\ F*)			# Sun Fortran 8.3
17586	  tmp_sharedflag='-G' ;;
17587	*)
17588	  tmp_sharedflag='-shared' ;;
17589	esac
17590	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17591
17592	if test $supports_anon_versioning = yes; then
17593	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17594  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17595  $echo "local: *; };" >> $output_objdir/$libname.ver~
17596	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17597	fi
17598      else
17599	ld_shlibs_GCJ=no
17600      fi
17601      ;;
17602
17603    netbsd*)
17604      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17605	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17606	wlarc=
17607      else
17608	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17610      fi
17611      ;;
17612
17613    solaris*)
17614      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17615	ld_shlibs_GCJ=no
17616	cat <<EOF 1>&2
17617
17618*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17619*** create shared libraries on Solaris systems.  Therefore, libtool
17620*** is disabling shared libraries support.  We urge you to upgrade GNU
17621*** binutils to release 2.9.1 or newer.  Another option is to modify
17622*** your PATH or compiler configuration so that the native linker is
17623*** used, and then restart.
17624
17625EOF
17626      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17627	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17629      else
17630	ld_shlibs_GCJ=no
17631      fi
17632      ;;
17633
17634    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17635      case `$LD -v 2>&1` in
17636        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17637	ld_shlibs_GCJ=no
17638	cat <<_LT_EOF 1>&2
17639
17640*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17641*** reliably create shared libraries on SCO systems.  Therefore, libtool
17642*** is disabling shared libraries support.  We urge you to upgrade GNU
17643*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17644*** your PATH or compiler configuration so that the native linker is
17645*** used, and then restart.
17646
17647_LT_EOF
17648	;;
17649	*)
17650	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17651	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17652	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17653	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17654	  else
17655	    ld_shlibs_GCJ=no
17656	  fi
17657	;;
17658      esac
17659      ;;
17660
17661    sunos4*)
17662      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17663      wlarc=
17664      hardcode_direct_GCJ=yes
17665      hardcode_shlibpath_var_GCJ=no
17666      ;;
17667
17668    *)
17669      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17670	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17671	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17672      else
17673	ld_shlibs_GCJ=no
17674      fi
17675      ;;
17676    esac
17677
17678    if test "$ld_shlibs_GCJ" = no; then
17679      runpath_var=
17680      hardcode_libdir_flag_spec_GCJ=
17681      export_dynamic_flag_spec_GCJ=
17682      whole_archive_flag_spec_GCJ=
17683    fi
17684  else
17685    # PORTME fill in a description of your system's linker (not GNU ld)
17686    case $host_os in
17687    aix3*)
17688      allow_undefined_flag_GCJ=unsupported
17689      always_export_symbols_GCJ=yes
17690      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'
17691      # Note: this linker hardcodes the directories in LIBPATH if there
17692      # are no directories specified by -L.
17693      hardcode_minus_L_GCJ=yes
17694      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17695	# Neither direct hardcoding nor static linking is supported with a
17696	# broken collect2.
17697	hardcode_direct_GCJ=unsupported
17698      fi
17699      ;;
17700
17701    aix[4-9]*)
17702      if test "$host_cpu" = ia64; then
17703	# On IA64, the linker does run time linking by default, so we don't
17704	# have to do anything special.
17705	aix_use_runtimelinking=no
17706	exp_sym_flag='-Bexport'
17707	no_entry_flag=""
17708      else
17709	# If we're using GNU nm, then we don't want the "-C" option.
17710	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17711	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17712	  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'
17713	else
17714	  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'
17715	fi
17716	aix_use_runtimelinking=no
17717
17718	# Test if we are trying to use run time linking or normal
17719	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17720	# need to do runtime linking.
17721	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17722	  for ld_flag in $LDFLAGS; do
17723  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17724  	    aix_use_runtimelinking=yes
17725  	    break
17726  	  fi
17727	  done
17728	  ;;
17729	esac
17730
17731	exp_sym_flag='-bexport'
17732	no_entry_flag='-bnoentry'
17733      fi
17734
17735      # When large executables or shared objects are built, AIX ld can
17736      # have problems creating the table of contents.  If linking a library
17737      # or program results in "error TOC overflow" add -mminimal-toc to
17738      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17739      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17740
17741      archive_cmds_GCJ=''
17742      hardcode_direct_GCJ=yes
17743      hardcode_libdir_separator_GCJ=':'
17744      link_all_deplibs_GCJ=yes
17745
17746      if test "$GCC" = yes; then
17747	case $host_os in aix4.[012]|aix4.[012].*)
17748	# We only want to do this on AIX 4.2 and lower, the check
17749	# below for broken collect2 doesn't work under 4.3+
17750	  collect2name=`${CC} -print-prog-name=collect2`
17751	  if test -f "$collect2name" && \
17752  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17753	  then
17754  	  # We have reworked collect2
17755  	  :
17756	  else
17757  	  # We have old collect2
17758  	  hardcode_direct_GCJ=unsupported
17759  	  # It fails to find uninstalled libraries when the uninstalled
17760  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17761  	  # to unsupported forces relinking
17762  	  hardcode_minus_L_GCJ=yes
17763  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17764  	  hardcode_libdir_separator_GCJ=
17765	  fi
17766	  ;;
17767	esac
17768	shared_flag='-shared'
17769	if test "$aix_use_runtimelinking" = yes; then
17770	  shared_flag="$shared_flag "'${wl}-G'
17771	fi
17772      else
17773	# not using gcc
17774	if test "$host_cpu" = ia64; then
17775  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17776  	# chokes on -Wl,-G. The following line is correct:
17777	  shared_flag='-G'
17778	else
17779	  if test "$aix_use_runtimelinking" = yes; then
17780	    shared_flag='${wl}-G'
17781	  else
17782	    shared_flag='${wl}-bM:SRE'
17783	  fi
17784	fi
17785      fi
17786
17787      # It seems that -bexpall does not export symbols beginning with
17788      # underscore (_), so it is better to generate a list of symbols to export.
17789      always_export_symbols_GCJ=yes
17790      if test "$aix_use_runtimelinking" = yes; then
17791	# Warning - without using the other runtime loading flags (-brtl),
17792	# -berok will link without error, but may produce a broken library.
17793	allow_undefined_flag_GCJ='-berok'
17794       # Determine the default libpath from the value encoded in an empty executable.
17795       cat >conftest.$ac_ext <<_ACEOF
17796/* confdefs.h.  */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h.  */
17801
17802int
17803main ()
17804{
17805
17806  ;
17807  return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (ac_try="$ac_link"
17812case "(($ac_try" in
17813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814  *) ac_try_echo=$ac_try;;
17815esac
17816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17817$as_echo "$ac_try_echo") >&5
17818  (eval "$ac_link") 2>conftest.er1
17819  ac_status=$?
17820  grep -v '^ *+' conftest.er1 >conftest.err
17821  rm -f conftest.er1
17822  cat conftest.err >&5
17823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824  (exit $ac_status); } && {
17825	 test -z "$ac_c_werror_flag" ||
17826	 test ! -s conftest.err
17827       } && test -s conftest$ac_exeext && {
17828	 test "$cross_compiling" = yes ||
17829	 $as_test_x conftest$ac_exeext
17830       }; then
17831
17832lt_aix_libpath_sed='
17833    /Import File Strings/,/^$/ {
17834	/^0/ {
17835	    s/^0  *\(.*\)$/\1/
17836	    p
17837	}
17838    }'
17839aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17840# Check for a 64-bit object if we didn't find anything.
17841if test -z "$aix_libpath"; then
17842  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17843fi
17844else
17845  $as_echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848
17849fi
17850
17851rm -rf conftest.dSYM
17852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853      conftest$ac_exeext conftest.$ac_ext
17854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17855
17856       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17857	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"
17858       else
17859	if test "$host_cpu" = ia64; then
17860	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17861	  allow_undefined_flag_GCJ="-z nodefs"
17862	  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"
17863	else
17864	 # Determine the default libpath from the value encoded in an empty executable.
17865	 cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h.  */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h.  */
17871
17872int
17873main ()
17874{
17875
17876  ;
17877  return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext conftest$ac_exeext
17881if { (ac_try="$ac_link"
17882case "(($ac_try" in
17883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884  *) ac_try_echo=$ac_try;;
17885esac
17886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17887$as_echo "$ac_try_echo") >&5
17888  (eval "$ac_link") 2>conftest.er1
17889  ac_status=$?
17890  grep -v '^ *+' conftest.er1 >conftest.err
17891  rm -f conftest.er1
17892  cat conftest.err >&5
17893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894  (exit $ac_status); } && {
17895	 test -z "$ac_c_werror_flag" ||
17896	 test ! -s conftest.err
17897       } && test -s conftest$ac_exeext && {
17898	 test "$cross_compiling" = yes ||
17899	 $as_test_x conftest$ac_exeext
17900       }; then
17901
17902lt_aix_libpath_sed='
17903    /Import File Strings/,/^$/ {
17904	/^0/ {
17905	    s/^0  *\(.*\)$/\1/
17906	    p
17907	}
17908    }'
17909aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17910# Check for a 64-bit object if we didn't find anything.
17911if test -z "$aix_libpath"; then
17912  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17913fi
17914else
17915  $as_echo "$as_me: failed program was:" >&5
17916sed 's/^/| /' conftest.$ac_ext >&5
17917
17918
17919fi
17920
17921rm -rf conftest.dSYM
17922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17923      conftest$ac_exeext conftest.$ac_ext
17924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17925
17926	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17927	  # Warning - without using the other run time loading flags,
17928	  # -berok will link without error, but may produce a broken library.
17929	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17930	  allow_undefined_flag_GCJ=' ${wl}-berok'
17931	  # Exported symbols can be pulled into shared objects from archives
17932	  whole_archive_flag_spec_GCJ='$convenience'
17933	  archive_cmds_need_lc_GCJ=yes
17934	  # This is similar to how AIX traditionally builds its shared libraries.
17935	  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'
17936	fi
17937      fi
17938      ;;
17939
17940    amigaos*)
17941      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)'
17942      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17943      hardcode_minus_L_GCJ=yes
17944      # see comment about different semantics on the GNU ld section
17945      ld_shlibs_GCJ=no
17946      ;;
17947
17948    bsdi[45]*)
17949      export_dynamic_flag_spec_GCJ=-rdynamic
17950      ;;
17951
17952    cygwin* | mingw* | pw32*)
17953      # When not using gcc, we currently assume that we are using
17954      # Microsoft Visual C++.
17955      # hardcode_libdir_flag_spec is actually meaningless, as there is
17956      # no search path for DLLs.
17957      hardcode_libdir_flag_spec_GCJ=' '
17958      allow_undefined_flag_GCJ=unsupported
17959      # Tell ltmain to make .lib files, not .a files.
17960      libext=lib
17961      # Tell ltmain to make .dll files, not .so files.
17962      shrext_cmds=".dll"
17963      # FIXME: Setting linknames here is a bad hack.
17964      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17965      # The linker will automatically build a .lib file if we build a DLL.
17966      old_archive_From_new_cmds_GCJ='true'
17967      # FIXME: Should let the user specify the lib program.
17968      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17969      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17970      enable_shared_with_static_runtimes_GCJ=yes
17971      ;;
17972
17973    darwin* | rhapsody*)
17974      case $host_os in
17975        rhapsody* | darwin1.[012])
17976         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17977         ;;
17978       *) # Darwin 1.3 on
17979         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17980           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17981         else
17982           case ${MACOSX_DEPLOYMENT_TARGET} in
17983             10.[012])
17984               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17985               ;;
17986             10.*)
17987               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17988               ;;
17989           esac
17990         fi
17991         ;;
17992      esac
17993      archive_cmds_need_lc_GCJ=no
17994      hardcode_direct_GCJ=no
17995      hardcode_automatic_GCJ=yes
17996      hardcode_shlibpath_var_GCJ=unsupported
17997      whole_archive_flag_spec_GCJ=''
17998      link_all_deplibs_GCJ=yes
17999    if test "$GCC" = yes ; then
18000    	output_verbose_link_cmd='echo'
18001        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18002        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18003        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18004        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18005    else
18006      case $cc_basename in
18007        xlc*)
18008         output_verbose_link_cmd='echo'
18009         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18010         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18011          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18012         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18013          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}'
18014          ;;
18015       *)
18016         ld_shlibs_GCJ=no
18017          ;;
18018      esac
18019    fi
18020      ;;
18021
18022    dgux*)
18023      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18024      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18025      hardcode_shlibpath_var_GCJ=no
18026      ;;
18027
18028    freebsd1*)
18029      ld_shlibs_GCJ=no
18030      ;;
18031
18032    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18033    # support.  Future versions do this automatically, but an explicit c++rt0.o
18034    # does not break anything, and helps significantly (at the cost of a little
18035    # extra space).
18036    freebsd2.2*)
18037      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18038      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18039      hardcode_direct_GCJ=yes
18040      hardcode_shlibpath_var_GCJ=no
18041      ;;
18042
18043    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18044    freebsd2*)
18045      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18046      hardcode_direct_GCJ=yes
18047      hardcode_minus_L_GCJ=yes
18048      hardcode_shlibpath_var_GCJ=no
18049      ;;
18050
18051    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18052    freebsd* | dragonfly*)
18053      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18054      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18055      hardcode_direct_GCJ=yes
18056      hardcode_shlibpath_var_GCJ=no
18057      ;;
18058
18059    hpux9*)
18060      if test "$GCC" = yes; then
18061	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'
18062      else
18063	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'
18064      fi
18065      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18066      hardcode_libdir_separator_GCJ=:
18067      hardcode_direct_GCJ=yes
18068
18069      # hardcode_minus_L: Not really in the search PATH,
18070      # but as the default location of the library.
18071      hardcode_minus_L_GCJ=yes
18072      export_dynamic_flag_spec_GCJ='${wl}-E'
18073      ;;
18074
18075    hpux10*)
18076      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18077	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18078      else
18079	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18080      fi
18081      if test "$with_gnu_ld" = no; then
18082	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18083	hardcode_libdir_separator_GCJ=:
18084
18085	hardcode_direct_GCJ=yes
18086	export_dynamic_flag_spec_GCJ='${wl}-E'
18087
18088	# hardcode_minus_L: Not really in the search PATH,
18089	# but as the default location of the library.
18090	hardcode_minus_L_GCJ=yes
18091      fi
18092      ;;
18093
18094    hpux11*)
18095      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18096	case $host_cpu in
18097	hppa*64*)
18098	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099	  ;;
18100	ia64*)
18101	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18102	  ;;
18103	*)
18104	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18105	  ;;
18106	esac
18107      else
18108	case $host_cpu in
18109	hppa*64*)
18110	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18111	  ;;
18112	ia64*)
18113	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18114	  ;;
18115	*)
18116	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18117	  ;;
18118	esac
18119      fi
18120      if test "$with_gnu_ld" = no; then
18121	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18122	hardcode_libdir_separator_GCJ=:
18123
18124	case $host_cpu in
18125	hppa*64*|ia64*)
18126	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18127	  hardcode_direct_GCJ=no
18128	  hardcode_shlibpath_var_GCJ=no
18129	  ;;
18130	*)
18131	  hardcode_direct_GCJ=yes
18132	  export_dynamic_flag_spec_GCJ='${wl}-E'
18133
18134	  # hardcode_minus_L: Not really in the search PATH,
18135	  # but as the default location of the library.
18136	  hardcode_minus_L_GCJ=yes
18137	  ;;
18138	esac
18139      fi
18140      ;;
18141
18142    irix5* | irix6* | nonstopux*)
18143      if test "$GCC" = yes; then
18144	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'
18145      else
18146	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'
18147	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18148      fi
18149      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18150      hardcode_libdir_separator_GCJ=:
18151      link_all_deplibs_GCJ=yes
18152      ;;
18153
18154    netbsd*)
18155      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18156	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18157      else
18158	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18159      fi
18160      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18161      hardcode_direct_GCJ=yes
18162      hardcode_shlibpath_var_GCJ=no
18163      ;;
18164
18165    newsos6)
18166      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18167      hardcode_direct_GCJ=yes
18168      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18169      hardcode_libdir_separator_GCJ=:
18170      hardcode_shlibpath_var_GCJ=no
18171      ;;
18172
18173    openbsd*)
18174      if test -f /usr/libexec/ld.so; then
18175	hardcode_direct_GCJ=yes
18176	hardcode_shlibpath_var_GCJ=no
18177	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18178	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18179	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18180	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18181	  export_dynamic_flag_spec_GCJ='${wl}-E'
18182	else
18183	  case $host_os in
18184	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18185	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18186	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18187	     ;;
18188	   *)
18189	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18190	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18191	     ;;
18192	  esac
18193        fi
18194      else
18195	ld_shlibs_GCJ=no
18196      fi
18197      ;;
18198
18199    os2*)
18200      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18201      hardcode_minus_L_GCJ=yes
18202      allow_undefined_flag_GCJ=unsupported
18203      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'
18204      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18205      ;;
18206
18207    osf3*)
18208      if test "$GCC" = yes; then
18209	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18210	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'
18211      else
18212	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18213	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'
18214      fi
18215      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18216      hardcode_libdir_separator_GCJ=:
18217      ;;
18218
18219    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18220      if test "$GCC" = yes; then
18221	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18222	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'
18223	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18224      else
18225	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18226	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'
18227	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~
18228	$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'
18229
18230	# Both c and cxx compiler support -rpath directly
18231	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18232      fi
18233      hardcode_libdir_separator_GCJ=:
18234      ;;
18235
18236    solaris*)
18237      no_undefined_flag_GCJ=' -z text'
18238      if test "$GCC" = yes; then
18239	wlarc='${wl}'
18240	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18241	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18242	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18243      else
18244	wlarc=''
18245	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18247  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18248      fi
18249      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18250      hardcode_shlibpath_var_GCJ=no
18251      case $host_os in
18252      solaris2.[0-5] | solaris2.[0-5].*) ;;
18253      *)
18254	# The compiler driver will combine and reorder linker options,
18255	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18256	# but is careful enough not to reorder.
18257 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18258	if test "$GCC" = yes; then
18259	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18260	else
18261	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18262	fi
18263	;;
18264      esac
18265      link_all_deplibs_GCJ=yes
18266      ;;
18267
18268    sunos4*)
18269      if test "x$host_vendor" = xsequent; then
18270	# Use $CC to link under sequent, because it throws in some extra .o
18271	# files that make .init and .fini sections work.
18272	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18273      else
18274	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18275      fi
18276      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18277      hardcode_direct_GCJ=yes
18278      hardcode_minus_L_GCJ=yes
18279      hardcode_shlibpath_var_GCJ=no
18280      ;;
18281
18282    sysv4)
18283      case $host_vendor in
18284	sni)
18285	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18286	  hardcode_direct_GCJ=yes # is this really true???
18287	;;
18288	siemens)
18289	  ## LD is ld it makes a PLAMLIB
18290	  ## CC just makes a GrossModule.
18291	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18292	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18293	  hardcode_direct_GCJ=no
18294        ;;
18295	motorola)
18296	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18297	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18298	;;
18299      esac
18300      runpath_var='LD_RUN_PATH'
18301      hardcode_shlibpath_var_GCJ=no
18302      ;;
18303
18304    sysv4.3*)
18305      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306      hardcode_shlibpath_var_GCJ=no
18307      export_dynamic_flag_spec_GCJ='-Bexport'
18308      ;;
18309
18310    sysv4*MP*)
18311      if test -d /usr/nec; then
18312	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18313	hardcode_shlibpath_var_GCJ=no
18314	runpath_var=LD_RUN_PATH
18315	hardcode_runpath_var=yes
18316	ld_shlibs_GCJ=yes
18317      fi
18318      ;;
18319
18320    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18321      no_undefined_flag_GCJ='${wl}-z,text'
18322      archive_cmds_need_lc_GCJ=no
18323      hardcode_shlibpath_var_GCJ=no
18324      runpath_var='LD_RUN_PATH'
18325
18326      if test "$GCC" = yes; then
18327	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18328	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18329      else
18330	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18331	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18332      fi
18333      ;;
18334
18335    sysv5* | sco3.2v5* | sco5v6*)
18336      # Note: We can NOT use -z defs as we might desire, because we do not
18337      # link with -lc, and that would cause any symbols used from libc to
18338      # always be unresolved, which means just about no library would
18339      # ever link correctly.  If we're not using GNU ld we use -z text
18340      # though, which does catch some bad symbols but isn't as heavy-handed
18341      # as -z defs.
18342      no_undefined_flag_GCJ='${wl}-z,text'
18343      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18344      archive_cmds_need_lc_GCJ=no
18345      hardcode_shlibpath_var_GCJ=no
18346      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18347      hardcode_libdir_separator_GCJ=':'
18348      link_all_deplibs_GCJ=yes
18349      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18350      runpath_var='LD_RUN_PATH'
18351
18352      if test "$GCC" = yes; then
18353	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18354	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18355      else
18356	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18357	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18358      fi
18359      ;;
18360
18361    uts4*)
18362      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18363      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18364      hardcode_shlibpath_var_GCJ=no
18365      ;;
18366
18367    *)
18368      ld_shlibs_GCJ=no
18369      ;;
18370    esac
18371  fi
18372
18373{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18374$as_echo "$ld_shlibs_GCJ" >&6; }
18375test "$ld_shlibs_GCJ" = no && can_build_shared=no
18376
18377#
18378# Do we need to explicitly link libc?
18379#
18380case "x$archive_cmds_need_lc_GCJ" in
18381x|xyes)
18382  # Assume -lc should be added
18383  archive_cmds_need_lc_GCJ=yes
18384
18385  if test "$enable_shared" = yes && test "$GCC" = yes; then
18386    case $archive_cmds_GCJ in
18387    *'~'*)
18388      # FIXME: we may have to deal with multi-command sequences.
18389      ;;
18390    '$CC '*)
18391      # Test whether the compiler implicitly links with -lc since on some
18392      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18393      # to ld, don't add -lc before -lgcc.
18394      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18395$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18396      $rm conftest*
18397      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18398
18399      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18400  (eval $ac_compile) 2>&5
18401  ac_status=$?
18402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); } 2>conftest.err; then
18404        soname=conftest
18405        lib=conftest
18406        libobjs=conftest.$ac_objext
18407        deplibs=
18408        wl=$lt_prog_compiler_wl_GCJ
18409	pic_flag=$lt_prog_compiler_pic_GCJ
18410        compiler_flags=-v
18411        linker_flags=-v
18412        verstring=
18413        output_objdir=.
18414        libname=conftest
18415        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18416        allow_undefined_flag_GCJ=
18417        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18418  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18419  ac_status=$?
18420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421  (exit $ac_status); }
18422        then
18423	  archive_cmds_need_lc_GCJ=no
18424        else
18425	  archive_cmds_need_lc_GCJ=yes
18426        fi
18427        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18428      else
18429        cat conftest.err 1>&5
18430      fi
18431      $rm conftest*
18432      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18433$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18434      ;;
18435    esac
18436  fi
18437  ;;
18438esac
18439
18440{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18441$as_echo_n "checking dynamic linker characteristics... " >&6; }
18442library_names_spec=
18443libname_spec='lib$name'
18444soname_spec=
18445shrext_cmds=".so"
18446postinstall_cmds=
18447postuninstall_cmds=
18448finish_cmds=
18449finish_eval=
18450shlibpath_var=
18451shlibpath_overrides_runpath=unknown
18452version_type=none
18453dynamic_linker="$host_os ld.so"
18454sys_lib_dlsearch_path_spec="/lib /usr/lib"
18455
18456need_lib_prefix=unknown
18457hardcode_into_libs=no
18458
18459# when you set need_version to no, make sure it does not cause -set_version
18460# flags to be left without arguments
18461need_version=unknown
18462
18463case $host_os in
18464aix3*)
18465  version_type=linux
18466  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18467  shlibpath_var=LIBPATH
18468
18469  # AIX 3 has no versioning support, so we append a major version to the name.
18470  soname_spec='${libname}${release}${shared_ext}$major'
18471  ;;
18472
18473aix[4-9]*)
18474  version_type=linux
18475  need_lib_prefix=no
18476  need_version=no
18477  hardcode_into_libs=yes
18478  if test "$host_cpu" = ia64; then
18479    # AIX 5 supports IA64
18480    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18481    shlibpath_var=LD_LIBRARY_PATH
18482  else
18483    # With GCC up to 2.95.x, collect2 would create an import file
18484    # for dependence libraries.  The import file would start with
18485    # the line `#! .'.  This would cause the generated library to
18486    # depend on `.', always an invalid library.  This was fixed in
18487    # development snapshots of GCC prior to 3.0.
18488    case $host_os in
18489      aix4 | aix4.[01] | aix4.[01].*)
18490      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18491	   echo ' yes '
18492	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18493	:
18494      else
18495	can_build_shared=no
18496      fi
18497      ;;
18498    esac
18499    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18500    # soname into executable. Probably we can add versioning support to
18501    # collect2, so additional links can be useful in future.
18502    if test "$aix_use_runtimelinking" = yes; then
18503      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18504      # instead of lib<name>.a to let people know that these are not
18505      # typical AIX shared libraries.
18506      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507    else
18508      # We preserve .a as extension for shared libraries through AIX4.2
18509      # and later when we are not doing run time linking.
18510      library_names_spec='${libname}${release}.a $libname.a'
18511      soname_spec='${libname}${release}${shared_ext}$major'
18512    fi
18513    shlibpath_var=LIBPATH
18514  fi
18515  ;;
18516
18517amigaos*)
18518  library_names_spec='$libname.ixlibrary $libname.a'
18519  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18520  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'
18521  ;;
18522
18523beos*)
18524  library_names_spec='${libname}${shared_ext}'
18525  dynamic_linker="$host_os ld.so"
18526  shlibpath_var=LIBRARY_PATH
18527  ;;
18528
18529bsdi[45]*)
18530  version_type=linux
18531  need_version=no
18532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18533  soname_spec='${libname}${release}${shared_ext}$major'
18534  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18535  shlibpath_var=LD_LIBRARY_PATH
18536  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18537  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18538  # the default ld.so.conf also contains /usr/contrib/lib and
18539  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18540  # libtool to hard-code these into programs
18541  ;;
18542
18543cygwin* | mingw* | pw32*)
18544  version_type=windows
18545  shrext_cmds=".dll"
18546  need_version=no
18547  need_lib_prefix=no
18548
18549  case $GCC,$host_os in
18550  yes,cygwin* | yes,mingw* | yes,pw32*)
18551    library_names_spec='$libname.dll.a'
18552    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18553    postinstall_cmds='base_file=`basename \${file}`~
18554      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18555      dldir=$destdir/`dirname \$dlpath`~
18556      test -d \$dldir || mkdir -p \$dldir~
18557      $install_prog $dir/$dlname \$dldir/$dlname~
18558      chmod a+x \$dldir/$dlname'
18559    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18560      dlpath=$dir/\$dldll~
18561       $rm \$dlpath'
18562    shlibpath_overrides_runpath=yes
18563
18564    case $host_os in
18565    cygwin*)
18566      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18567      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18568      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18569      ;;
18570    mingw*)
18571      # MinGW DLLs use traditional 'lib' prefix
18572      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18573      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18574      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18575        # It is most probably a Windows format PATH printed by
18576        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18577        # path with ; separators, and with drive letters. We can handle the
18578        # drive letters (cygwin fileutils understands them), so leave them,
18579        # especially as we might pass files found there to a mingw objdump,
18580        # which wouldn't understand a cygwinified path. Ahh.
18581        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18582      else
18583        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18584      fi
18585      ;;
18586    pw32*)
18587      # pw32 DLLs use 'pw' prefix rather than 'lib'
18588      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18589      ;;
18590    esac
18591    ;;
18592
18593  *)
18594    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18595    ;;
18596  esac
18597  dynamic_linker='Win32 ld.exe'
18598  # FIXME: first we should search . and the directory the executable is in
18599  shlibpath_var=PATH
18600  ;;
18601
18602darwin* | rhapsody*)
18603  dynamic_linker="$host_os dyld"
18604  version_type=darwin
18605  need_lib_prefix=no
18606  need_version=no
18607  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18608  soname_spec='${libname}${release}${major}$shared_ext'
18609  shlibpath_overrides_runpath=yes
18610  shlibpath_var=DYLD_LIBRARY_PATH
18611  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18612
18613  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18614  ;;
18615
18616dgux*)
18617  version_type=linux
18618  need_lib_prefix=no
18619  need_version=no
18620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18621  soname_spec='${libname}${release}${shared_ext}$major'
18622  shlibpath_var=LD_LIBRARY_PATH
18623  ;;
18624
18625freebsd1*)
18626  dynamic_linker=no
18627  ;;
18628
18629freebsd* | dragonfly*)
18630  # DragonFly does not have aout.  When/if they implement a new
18631  # versioning mechanism, adjust this.
18632  if test -x /usr/bin/objformat; then
18633    objformat=`/usr/bin/objformat`
18634  else
18635    case $host_os in
18636    freebsd[123]*) objformat=aout ;;
18637    *) objformat=elf ;;
18638    esac
18639  fi
18640  # Handle Gentoo/FreeBSD as it was Linux
18641  case $host_vendor in
18642    gentoo)
18643      version_type=linux ;;
18644    *)
18645      version_type=freebsd-$objformat ;;
18646  esac
18647
18648  case $version_type in
18649    freebsd-elf*)
18650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18651      need_version=no
18652      need_lib_prefix=no
18653      ;;
18654    freebsd-*)
18655      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18656      need_version=yes
18657      ;;
18658    linux)
18659      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18660      soname_spec='${libname}${release}${shared_ext}$major'
18661      need_lib_prefix=no
18662      need_version=no
18663      ;;
18664  esac
18665  shlibpath_var=LD_LIBRARY_PATH
18666  case $host_os in
18667  freebsd2*)
18668    shlibpath_overrides_runpath=yes
18669    ;;
18670  freebsd3.[01]* | freebsdelf3.[01]*)
18671    shlibpath_overrides_runpath=yes
18672    hardcode_into_libs=yes
18673    ;;
18674  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18675  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18676    shlibpath_overrides_runpath=no
18677    hardcode_into_libs=yes
18678    ;;
18679  *) # from 4.6 on, and DragonFly
18680    shlibpath_overrides_runpath=yes
18681    hardcode_into_libs=yes
18682    ;;
18683  esac
18684  ;;
18685
18686gnu*)
18687  version_type=linux
18688  need_lib_prefix=no
18689  need_version=no
18690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18691  soname_spec='${libname}${release}${shared_ext}$major'
18692  shlibpath_var=LD_LIBRARY_PATH
18693  hardcode_into_libs=yes
18694  ;;
18695
18696hpux9* | hpux10* | hpux11*)
18697  # Give a soname corresponding to the major version so that dld.sl refuses to
18698  # link against other versions.
18699  version_type=sunos
18700  need_lib_prefix=no
18701  need_version=no
18702  case $host_cpu in
18703  ia64*)
18704    shrext_cmds='.so'
18705    hardcode_into_libs=yes
18706    dynamic_linker="$host_os dld.so"
18707    shlibpath_var=LD_LIBRARY_PATH
18708    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18709    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18710    soname_spec='${libname}${release}${shared_ext}$major'
18711    if test "X$HPUX_IA64_MODE" = X32; then
18712      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18713    else
18714      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18715    fi
18716    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18717    ;;
18718   hppa*64*)
18719     shrext_cmds='.sl'
18720     hardcode_into_libs=yes
18721     dynamic_linker="$host_os dld.sl"
18722     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18723     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725     soname_spec='${libname}${release}${shared_ext}$major'
18726     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18727     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18728     ;;
18729   *)
18730    shrext_cmds='.sl'
18731    dynamic_linker="$host_os dld.sl"
18732    shlibpath_var=SHLIB_PATH
18733    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735    soname_spec='${libname}${release}${shared_ext}$major'
18736    ;;
18737  esac
18738  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18739  postinstall_cmds='chmod 555 $lib'
18740  ;;
18741
18742interix[3-9]*)
18743  version_type=linux
18744  need_lib_prefix=no
18745  need_version=no
18746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18747  soname_spec='${libname}${release}${shared_ext}$major'
18748  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18749  shlibpath_var=LD_LIBRARY_PATH
18750  shlibpath_overrides_runpath=no
18751  hardcode_into_libs=yes
18752  ;;
18753
18754irix5* | irix6* | nonstopux*)
18755  case $host_os in
18756    nonstopux*) version_type=nonstopux ;;
18757    *)
18758	if test "$lt_cv_prog_gnu_ld" = yes; then
18759		version_type=linux
18760	else
18761		version_type=irix
18762	fi ;;
18763  esac
18764  need_lib_prefix=no
18765  need_version=no
18766  soname_spec='${libname}${release}${shared_ext}$major'
18767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18768  case $host_os in
18769  irix5* | nonstopux*)
18770    libsuff= shlibsuff=
18771    ;;
18772  *)
18773    case $LD in # libtool.m4 will add one of these switches to LD
18774    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18775      libsuff= shlibsuff= libmagic=32-bit;;
18776    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18777      libsuff=32 shlibsuff=N32 libmagic=N32;;
18778    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18779      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18780    *) libsuff= shlibsuff= libmagic=never-match;;
18781    esac
18782    ;;
18783  esac
18784  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18785  shlibpath_overrides_runpath=no
18786  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18787  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18788  hardcode_into_libs=yes
18789  ;;
18790
18791# No shared lib support for Linux oldld, aout, or coff.
18792linux*oldld* | linux*aout* | linux*coff*)
18793  dynamic_linker=no
18794  ;;
18795
18796# This must be Linux ELF.
18797linux* | k*bsd*-gnu)
18798  version_type=linux
18799  need_lib_prefix=no
18800  need_version=no
18801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802  soname_spec='${libname}${release}${shared_ext}$major'
18803  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18804  shlibpath_var=LD_LIBRARY_PATH
18805  shlibpath_overrides_runpath=no
18806  # This implies no fast_install, which is unacceptable.
18807  # Some rework will be needed to allow for fast_install
18808  # before this can be enabled.
18809  hardcode_into_libs=yes
18810
18811  # Append ld.so.conf contents to the search path
18812  if test -f /etc/ld.so.conf; then
18813    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18814    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18815  fi
18816
18817  # We used to test for /lib/ld.so.1 and disable shared libraries on
18818  # powerpc, because MkLinux only supported shared libraries with the
18819  # GNU dynamic linker.  Since this was broken with cross compilers,
18820  # most powerpc-linux boxes support dynamic linking these days and
18821  # people can always --disable-shared, the test was removed, and we
18822  # assume the GNU/Linux dynamic linker is in use.
18823  dynamic_linker='GNU/Linux ld.so'
18824  ;;
18825
18826netbsd*)
18827  version_type=sunos
18828  need_lib_prefix=no
18829  need_version=no
18830  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18832    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18833    dynamic_linker='NetBSD (a.out) ld.so'
18834  else
18835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18836    soname_spec='${libname}${release}${shared_ext}$major'
18837    dynamic_linker='NetBSD ld.elf_so'
18838  fi
18839  shlibpath_var=LD_LIBRARY_PATH
18840  shlibpath_overrides_runpath=yes
18841  hardcode_into_libs=yes
18842  ;;
18843
18844newsos6)
18845  version_type=linux
18846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847  shlibpath_var=LD_LIBRARY_PATH
18848  shlibpath_overrides_runpath=yes
18849  ;;
18850
18851nto-qnx*)
18852  version_type=linux
18853  need_lib_prefix=no
18854  need_version=no
18855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856  soname_spec='${libname}${release}${shared_ext}$major'
18857  shlibpath_var=LD_LIBRARY_PATH
18858  shlibpath_overrides_runpath=yes
18859  ;;
18860
18861openbsd*)
18862  version_type=sunos
18863  sys_lib_dlsearch_path_spec="/usr/lib"
18864  need_lib_prefix=no
18865  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18866  case $host_os in
18867    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18868    *)                         need_version=no  ;;
18869  esac
18870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18871  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18872  shlibpath_var=LD_LIBRARY_PATH
18873  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18874    case $host_os in
18875      openbsd2.[89] | openbsd2.[89].*)
18876	shlibpath_overrides_runpath=no
18877	;;
18878      *)
18879	shlibpath_overrides_runpath=yes
18880	;;
18881      esac
18882  else
18883    shlibpath_overrides_runpath=yes
18884  fi
18885  ;;
18886
18887os2*)
18888  libname_spec='$name'
18889  shrext_cmds=".dll"
18890  need_lib_prefix=no
18891  library_names_spec='$libname${shared_ext} $libname.a'
18892  dynamic_linker='OS/2 ld.exe'
18893  shlibpath_var=LIBPATH
18894  ;;
18895
18896osf3* | osf4* | osf5*)
18897  version_type=osf
18898  need_lib_prefix=no
18899  need_version=no
18900  soname_spec='${libname}${release}${shared_ext}$major'
18901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18902  shlibpath_var=LD_LIBRARY_PATH
18903  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18904  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18905  ;;
18906
18907rdos*)
18908  dynamic_linker=no
18909  ;;
18910
18911solaris*)
18912  version_type=linux
18913  need_lib_prefix=no
18914  need_version=no
18915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916  soname_spec='${libname}${release}${shared_ext}$major'
18917  shlibpath_var=LD_LIBRARY_PATH
18918  shlibpath_overrides_runpath=yes
18919  hardcode_into_libs=yes
18920  # ldd complains unless libraries are executable
18921  postinstall_cmds='chmod +x $lib'
18922  ;;
18923
18924sunos4*)
18925  version_type=sunos
18926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18927  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18928  shlibpath_var=LD_LIBRARY_PATH
18929  shlibpath_overrides_runpath=yes
18930  if test "$with_gnu_ld" = yes; then
18931    need_lib_prefix=no
18932  fi
18933  need_version=yes
18934  ;;
18935
18936sysv4 | sysv4.3*)
18937  version_type=linux
18938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939  soname_spec='${libname}${release}${shared_ext}$major'
18940  shlibpath_var=LD_LIBRARY_PATH
18941  case $host_vendor in
18942    sni)
18943      shlibpath_overrides_runpath=no
18944      need_lib_prefix=no
18945      export_dynamic_flag_spec='${wl}-Blargedynsym'
18946      runpath_var=LD_RUN_PATH
18947      ;;
18948    siemens)
18949      need_lib_prefix=no
18950      ;;
18951    motorola)
18952      need_lib_prefix=no
18953      need_version=no
18954      shlibpath_overrides_runpath=no
18955      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18956      ;;
18957  esac
18958  ;;
18959
18960sysv4*MP*)
18961  if test -d /usr/nec ;then
18962    version_type=linux
18963    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18964    soname_spec='$libname${shared_ext}.$major'
18965    shlibpath_var=LD_LIBRARY_PATH
18966  fi
18967  ;;
18968
18969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18970  version_type=freebsd-elf
18971  need_lib_prefix=no
18972  need_version=no
18973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18974  soname_spec='${libname}${release}${shared_ext}$major'
18975  shlibpath_var=LD_LIBRARY_PATH
18976  hardcode_into_libs=yes
18977  if test "$with_gnu_ld" = yes; then
18978    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18979    shlibpath_overrides_runpath=no
18980  else
18981    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18982    shlibpath_overrides_runpath=yes
18983    case $host_os in
18984      sco3.2v5*)
18985        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18986	;;
18987    esac
18988  fi
18989  sys_lib_dlsearch_path_spec='/usr/lib'
18990  ;;
18991
18992uts4*)
18993  version_type=linux
18994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18995  soname_spec='${libname}${release}${shared_ext}$major'
18996  shlibpath_var=LD_LIBRARY_PATH
18997  ;;
18998
18999*)
19000  dynamic_linker=no
19001  ;;
19002esac
19003{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19004$as_echo "$dynamic_linker" >&6; }
19005test "$dynamic_linker" = no && can_build_shared=no
19006
19007if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19008  $as_echo_n "(cached) " >&6
19009else
19010  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19011fi
19012
19013sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19014if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19015  $as_echo_n "(cached) " >&6
19016else
19017  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19018fi
19019
19020sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19021
19022variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19023if test "$GCC" = yes; then
19024  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19025fi
19026
19027{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19028$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19029hardcode_action_GCJ=
19030if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19031   test -n "$runpath_var_GCJ" || \
19032   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19033
19034  # We can hardcode non-existant directories.
19035  if test "$hardcode_direct_GCJ" != no &&
19036     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19037     # have to relink, otherwise we might link with an installed library
19038     # when we should be linking with a yet-to-be-installed one
19039     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19040     test "$hardcode_minus_L_GCJ" != no; then
19041    # Linking always hardcodes the temporary library directory.
19042    hardcode_action_GCJ=relink
19043  else
19044    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19045    hardcode_action_GCJ=immediate
19046  fi
19047else
19048  # We cannot hardcode anything, or else we can only hardcode existing
19049  # directories.
19050  hardcode_action_GCJ=unsupported
19051fi
19052{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19053$as_echo "$hardcode_action_GCJ" >&6; }
19054
19055if test "$hardcode_action_GCJ" = relink; then
19056  # Fast installation is not supported
19057  enable_fast_install=no
19058elif test "$shlibpath_overrides_runpath" = yes ||
19059     test "$enable_shared" = no; then
19060  # Fast installation is not necessary
19061  enable_fast_install=needless
19062fi
19063
19064
19065# The else clause should only fire when bootstrapping the
19066# libtool distribution, otherwise you forgot to ship ltmain.sh
19067# with your package, and you will get complaints that there are
19068# no rules to generate ltmain.sh.
19069if test -f "$ltmain"; then
19070  # See if we are running on zsh, and set the options which allow our commands through
19071  # without removal of \ escapes.
19072  if test -n "${ZSH_VERSION+set}" ; then
19073    setopt NO_GLOB_SUBST
19074  fi
19075  # Now quote all the things that may contain metacharacters while being
19076  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19077  # variables and quote the copies for generation of the libtool script.
19078  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19079    SED SHELL STRIP \
19080    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19081    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19082    deplibs_check_method reload_flag reload_cmds need_locks \
19083    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19084    lt_cv_sys_global_symbol_to_c_name_address \
19085    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19086    old_postinstall_cmds old_postuninstall_cmds \
19087    compiler_GCJ \
19088    CC_GCJ \
19089    LD_GCJ \
19090    lt_prog_compiler_wl_GCJ \
19091    lt_prog_compiler_pic_GCJ \
19092    lt_prog_compiler_static_GCJ \
19093    lt_prog_compiler_no_builtin_flag_GCJ \
19094    export_dynamic_flag_spec_GCJ \
19095    thread_safe_flag_spec_GCJ \
19096    whole_archive_flag_spec_GCJ \
19097    enable_shared_with_static_runtimes_GCJ \
19098    old_archive_cmds_GCJ \
19099    old_archive_from_new_cmds_GCJ \
19100    predep_objects_GCJ \
19101    postdep_objects_GCJ \
19102    predeps_GCJ \
19103    postdeps_GCJ \
19104    compiler_lib_search_path_GCJ \
19105    compiler_lib_search_dirs_GCJ \
19106    archive_cmds_GCJ \
19107    archive_expsym_cmds_GCJ \
19108    postinstall_cmds_GCJ \
19109    postuninstall_cmds_GCJ \
19110    old_archive_from_expsyms_cmds_GCJ \
19111    allow_undefined_flag_GCJ \
19112    no_undefined_flag_GCJ \
19113    export_symbols_cmds_GCJ \
19114    hardcode_libdir_flag_spec_GCJ \
19115    hardcode_libdir_flag_spec_ld_GCJ \
19116    hardcode_libdir_separator_GCJ \
19117    hardcode_automatic_GCJ \
19118    module_cmds_GCJ \
19119    module_expsym_cmds_GCJ \
19120    lt_cv_prog_compiler_c_o_GCJ \
19121    fix_srcfile_path_GCJ \
19122    exclude_expsyms_GCJ \
19123    include_expsyms_GCJ; do
19124
19125    case $var in
19126    old_archive_cmds_GCJ | \
19127    old_archive_from_new_cmds_GCJ | \
19128    archive_cmds_GCJ | \
19129    archive_expsym_cmds_GCJ | \
19130    module_cmds_GCJ | \
19131    module_expsym_cmds_GCJ | \
19132    old_archive_from_expsyms_cmds_GCJ | \
19133    export_symbols_cmds_GCJ | \
19134    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19135    postinstall_cmds | postuninstall_cmds | \
19136    old_postinstall_cmds | old_postuninstall_cmds | \
19137    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19138      # Double-quote double-evaled strings.
19139      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19140      ;;
19141    *)
19142      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19143      ;;
19144    esac
19145  done
19146
19147  case $lt_echo in
19148  *'\$0 --fallback-echo"')
19149    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19150    ;;
19151  esac
19152
19153cfgfile="$ofile"
19154
19155  cat <<__EOF__ >> "$cfgfile"
19156# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19157
19158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19159
19160# Shell to use when invoking shell scripts.
19161SHELL=$lt_SHELL
19162
19163# Whether or not to build shared libraries.
19164build_libtool_libs=$enable_shared
19165
19166# Whether or not to build static libraries.
19167build_old_libs=$enable_static
19168
19169# Whether or not to add -lc for building shared libraries.
19170build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19171
19172# Whether or not to disallow shared libs when runtime libs are static
19173allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19174
19175# Whether or not to optimize for fast installation.
19176fast_install=$enable_fast_install
19177
19178# The host system.
19179host_alias=$host_alias
19180host=$host
19181host_os=$host_os
19182
19183# The build system.
19184build_alias=$build_alias
19185build=$build
19186build_os=$build_os
19187
19188# An echo program that does not interpret backslashes.
19189echo=$lt_echo
19190
19191# The archiver.
19192AR=$lt_AR
19193AR_FLAGS=$lt_AR_FLAGS
19194
19195# A C compiler.
19196LTCC=$lt_LTCC
19197
19198# LTCC compiler flags.
19199LTCFLAGS=$lt_LTCFLAGS
19200
19201# A language-specific compiler.
19202CC=$lt_compiler_GCJ
19203
19204# Is the compiler the GNU C compiler?
19205with_gcc=$GCC_GCJ
19206
19207# An ERE matcher.
19208EGREP=$lt_EGREP
19209
19210# The linker used to build libraries.
19211LD=$lt_LD_GCJ
19212
19213# Whether we need hard or soft links.
19214LN_S=$lt_LN_S
19215
19216# A BSD-compatible nm program.
19217NM=$lt_NM
19218
19219# A symbol stripping program
19220STRIP=$lt_STRIP
19221
19222# Used to examine libraries when file_magic_cmd begins "file"
19223MAGIC_CMD=$MAGIC_CMD
19224
19225# Used on cygwin: DLL creation program.
19226DLLTOOL="$DLLTOOL"
19227
19228# Used on cygwin: object dumper.
19229OBJDUMP="$OBJDUMP"
19230
19231# Used on cygwin: assembler.
19232AS="$AS"
19233
19234# The name of the directory that contains temporary libtool files.
19235objdir=$objdir
19236
19237# How to create reloadable object files.
19238reload_flag=$lt_reload_flag
19239reload_cmds=$lt_reload_cmds
19240
19241# How to pass a linker flag through the compiler.
19242wl=$lt_lt_prog_compiler_wl_GCJ
19243
19244# Object file suffix (normally "o").
19245objext="$ac_objext"
19246
19247# Old archive suffix (normally "a").
19248libext="$libext"
19249
19250# Shared library suffix (normally ".so").
19251shrext_cmds='$shrext_cmds'
19252
19253# Executable file suffix (normally "").
19254exeext="$exeext"
19255
19256# Additional compiler flags for building library objects.
19257pic_flag=$lt_lt_prog_compiler_pic_GCJ
19258pic_mode=$pic_mode
19259
19260# What is the maximum length of a command?
19261max_cmd_len=$lt_cv_sys_max_cmd_len
19262
19263# Does compiler simultaneously support -c and -o options?
19264compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19265
19266# Must we lock files when doing compilation?
19267need_locks=$lt_need_locks
19268
19269# Do we need the lib prefix for modules?
19270need_lib_prefix=$need_lib_prefix
19271
19272# Do we need a version for libraries?
19273need_version=$need_version
19274
19275# Whether dlopen is supported.
19276dlopen_support=$enable_dlopen
19277
19278# Whether dlopen of programs is supported.
19279dlopen_self=$enable_dlopen_self
19280
19281# Whether dlopen of statically linked programs is supported.
19282dlopen_self_static=$enable_dlopen_self_static
19283
19284# Compiler flag to prevent dynamic linking.
19285link_static_flag=$lt_lt_prog_compiler_static_GCJ
19286
19287# Compiler flag to turn off builtin functions.
19288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19289
19290# Compiler flag to allow reflexive dlopens.
19291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19292
19293# Compiler flag to generate shared objects directly from archives.
19294whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19295
19296# Compiler flag to generate thread-safe objects.
19297thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19298
19299# Library versioning type.
19300version_type=$version_type
19301
19302# Format of library name prefix.
19303libname_spec=$lt_libname_spec
19304
19305# List of archive names.  First name is the real one, the rest are links.
19306# The last name is the one that the linker finds with -lNAME.
19307library_names_spec=$lt_library_names_spec
19308
19309# The coded name of the library, if different from the real name.
19310soname_spec=$lt_soname_spec
19311
19312# Commands used to build and install an old-style archive.
19313RANLIB=$lt_RANLIB
19314old_archive_cmds=$lt_old_archive_cmds_GCJ
19315old_postinstall_cmds=$lt_old_postinstall_cmds
19316old_postuninstall_cmds=$lt_old_postuninstall_cmds
19317
19318# Create an old-style archive from a shared archive.
19319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19320
19321# Create a temporary old-style archive to link instead of a shared archive.
19322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19323
19324# Commands used to build and install a shared archive.
19325archive_cmds=$lt_archive_cmds_GCJ
19326archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19327postinstall_cmds=$lt_postinstall_cmds
19328postuninstall_cmds=$lt_postuninstall_cmds
19329
19330# Commands used to build a loadable module (assumed same as above if empty)
19331module_cmds=$lt_module_cmds_GCJ
19332module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19333
19334# Commands to strip libraries.
19335old_striplib=$lt_old_striplib
19336striplib=$lt_striplib
19337
19338# Dependencies to place before the objects being linked to create a
19339# shared library.
19340predep_objects=$lt_predep_objects_GCJ
19341
19342# Dependencies to place after the objects being linked to create a
19343# shared library.
19344postdep_objects=$lt_postdep_objects_GCJ
19345
19346# Dependencies to place before the objects being linked to create a
19347# shared library.
19348predeps=$lt_predeps_GCJ
19349
19350# Dependencies to place after the objects being linked to create a
19351# shared library.
19352postdeps=$lt_postdeps_GCJ
19353
19354# The directories searched by this compiler when creating a shared
19355# library
19356compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19357
19358# The library search path used internally by the compiler when linking
19359# a shared library.
19360compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19361
19362# Method to check whether dependent libraries are shared objects.
19363deplibs_check_method=$lt_deplibs_check_method
19364
19365# Command to use when deplibs_check_method == file_magic.
19366file_magic_cmd=$lt_file_magic_cmd
19367
19368# Flag that allows shared libraries with undefined symbols to be built.
19369allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19370
19371# Flag that forces no undefined symbols.
19372no_undefined_flag=$lt_no_undefined_flag_GCJ
19373
19374# Commands used to finish a libtool library installation in a directory.
19375finish_cmds=$lt_finish_cmds
19376
19377# Same as above, but a single script fragment to be evaled but not shown.
19378finish_eval=$lt_finish_eval
19379
19380# Take the output of nm and produce a listing of raw symbols and C names.
19381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19382
19383# Transform the output of nm in a proper C declaration
19384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19385
19386# Transform the output of nm in a C name address pair
19387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19388
19389# This is the shared library runtime path variable.
19390runpath_var=$runpath_var
19391
19392# This is the shared library path variable.
19393shlibpath_var=$shlibpath_var
19394
19395# Is shlibpath searched before the hard-coded library search path?
19396shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19397
19398# How to hardcode a shared library path into an executable.
19399hardcode_action=$hardcode_action_GCJ
19400
19401# Whether we should hardcode library paths into libraries.
19402hardcode_into_libs=$hardcode_into_libs
19403
19404# Flag to hardcode \$libdir into a binary during linking.
19405# This must work even if \$libdir does not exist.
19406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19407
19408# If ld is used when linking, flag to hardcode \$libdir into
19409# a binary during linking. This must work even if \$libdir does
19410# not exist.
19411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19412
19413# Whether we need a single -rpath flag with a separated argument.
19414hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19415
19416# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19417# resulting binary.
19418hardcode_direct=$hardcode_direct_GCJ
19419
19420# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19421# resulting binary.
19422hardcode_minus_L=$hardcode_minus_L_GCJ
19423
19424# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19425# the resulting binary.
19426hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19427
19428# Set to yes if building a shared library automatically hardcodes DIR into the library
19429# and all subsequent libraries and executables linked against it.
19430hardcode_automatic=$hardcode_automatic_GCJ
19431
19432# Variables whose values should be saved in libtool wrapper scripts and
19433# restored at relink time.
19434variables_saved_for_relink="$variables_saved_for_relink"
19435
19436# Whether libtool must link a program against all its dependency libraries.
19437link_all_deplibs=$link_all_deplibs_GCJ
19438
19439# Compile-time system search path for libraries
19440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19441
19442# Run-time system search path for libraries
19443sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19444
19445# Fix the shell variable \$srcfile for the compiler.
19446fix_srcfile_path=$lt_fix_srcfile_path
19447
19448# Set to yes if exported symbols are required.
19449always_export_symbols=$always_export_symbols_GCJ
19450
19451# The commands to list exported symbols.
19452export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19453
19454# The commands to extract the exported symbol list from a shared archive.
19455extract_expsyms_cmds=$lt_extract_expsyms_cmds
19456
19457# Symbols that should not be listed in the preloaded symbols.
19458exclude_expsyms=$lt_exclude_expsyms_GCJ
19459
19460# Symbols that must always be exported.
19461include_expsyms=$lt_include_expsyms_GCJ
19462
19463# ### END LIBTOOL TAG CONFIG: $tagname
19464
19465__EOF__
19466
19467
19468else
19469  # If there is no Makefile yet, we rely on a make rule to execute
19470  # `config.status --recheck' to rerun these tests and create the
19471  # libtool script then.
19472  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19473  if test -f "$ltmain_in"; then
19474    test -f Makefile && make "$ltmain"
19475  fi
19476fi
19477
19478
19479ac_ext=c
19480ac_cpp='$CPP $CPPFLAGS'
19481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483ac_compiler_gnu=$ac_cv_c_compiler_gnu
19484
19485CC="$lt_save_CC"
19486
19487	else
19488	  tagname=""
19489	fi
19490	;;
19491
19492      RC)
19493
19494
19495# Source file extension for RC test sources.
19496ac_ext=rc
19497
19498# Object file extension for compiled RC test sources.
19499objext=o
19500objext_RC=$objext
19501
19502# Code to be used in simple compile tests
19503lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19504
19505# Code to be used in simple link tests
19506lt_simple_link_test_code="$lt_simple_compile_test_code"
19507
19508# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19509
19510# If no C compiler was specified, use CC.
19511LTCC=${LTCC-"$CC"}
19512
19513# If no C compiler flags were specified, use CFLAGS.
19514LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19515
19516# Allow CC to be a program name with arguments.
19517compiler=$CC
19518
19519
19520# save warnings/boilerplate of simple test code
19521ac_outfile=conftest.$ac_objext
19522echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19523eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19524_lt_compiler_boilerplate=`cat conftest.err`
19525$rm conftest*
19526
19527ac_outfile=conftest.$ac_objext
19528echo "$lt_simple_link_test_code" >conftest.$ac_ext
19529eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19530_lt_linker_boilerplate=`cat conftest.err`
19531$rm -r conftest*
19532
19533
19534# Allow CC to be a program name with arguments.
19535lt_save_CC="$CC"
19536CC=${RC-"windres"}
19537compiler=$CC
19538compiler_RC=$CC
19539for cc_temp in $compiler""; do
19540  case $cc_temp in
19541    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19542    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19543    \-*) ;;
19544    *) break;;
19545  esac
19546done
19547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19548
19549lt_cv_prog_compiler_c_o_RC=yes
19550
19551# The else clause should only fire when bootstrapping the
19552# libtool distribution, otherwise you forgot to ship ltmain.sh
19553# with your package, and you will get complaints that there are
19554# no rules to generate ltmain.sh.
19555if test -f "$ltmain"; then
19556  # See if we are running on zsh, and set the options which allow our commands through
19557  # without removal of \ escapes.
19558  if test -n "${ZSH_VERSION+set}" ; then
19559    setopt NO_GLOB_SUBST
19560  fi
19561  # Now quote all the things that may contain metacharacters while being
19562  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19563  # variables and quote the copies for generation of the libtool script.
19564  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19565    SED SHELL STRIP \
19566    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19567    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19568    deplibs_check_method reload_flag reload_cmds need_locks \
19569    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19570    lt_cv_sys_global_symbol_to_c_name_address \
19571    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19572    old_postinstall_cmds old_postuninstall_cmds \
19573    compiler_RC \
19574    CC_RC \
19575    LD_RC \
19576    lt_prog_compiler_wl_RC \
19577    lt_prog_compiler_pic_RC \
19578    lt_prog_compiler_static_RC \
19579    lt_prog_compiler_no_builtin_flag_RC \
19580    export_dynamic_flag_spec_RC \
19581    thread_safe_flag_spec_RC \
19582    whole_archive_flag_spec_RC \
19583    enable_shared_with_static_runtimes_RC \
19584    old_archive_cmds_RC \
19585    old_archive_from_new_cmds_RC \
19586    predep_objects_RC \
19587    postdep_objects_RC \
19588    predeps_RC \
19589    postdeps_RC \
19590    compiler_lib_search_path_RC \
19591    compiler_lib_search_dirs_RC \
19592    archive_cmds_RC \
19593    archive_expsym_cmds_RC \
19594    postinstall_cmds_RC \
19595    postuninstall_cmds_RC \
19596    old_archive_from_expsyms_cmds_RC \
19597    allow_undefined_flag_RC \
19598    no_undefined_flag_RC \
19599    export_symbols_cmds_RC \
19600    hardcode_libdir_flag_spec_RC \
19601    hardcode_libdir_flag_spec_ld_RC \
19602    hardcode_libdir_separator_RC \
19603    hardcode_automatic_RC \
19604    module_cmds_RC \
19605    module_expsym_cmds_RC \
19606    lt_cv_prog_compiler_c_o_RC \
19607    fix_srcfile_path_RC \
19608    exclude_expsyms_RC \
19609    include_expsyms_RC; do
19610
19611    case $var in
19612    old_archive_cmds_RC | \
19613    old_archive_from_new_cmds_RC | \
19614    archive_cmds_RC | \
19615    archive_expsym_cmds_RC | \
19616    module_cmds_RC | \
19617    module_expsym_cmds_RC | \
19618    old_archive_from_expsyms_cmds_RC | \
19619    export_symbols_cmds_RC | \
19620    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19621    postinstall_cmds | postuninstall_cmds | \
19622    old_postinstall_cmds | old_postuninstall_cmds | \
19623    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19624      # Double-quote double-evaled strings.
19625      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19626      ;;
19627    *)
19628      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19629      ;;
19630    esac
19631  done
19632
19633  case $lt_echo in
19634  *'\$0 --fallback-echo"')
19635    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19636    ;;
19637  esac
19638
19639cfgfile="$ofile"
19640
19641  cat <<__EOF__ >> "$cfgfile"
19642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19643
19644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19645
19646# Shell to use when invoking shell scripts.
19647SHELL=$lt_SHELL
19648
19649# Whether or not to build shared libraries.
19650build_libtool_libs=$enable_shared
19651
19652# Whether or not to build static libraries.
19653build_old_libs=$enable_static
19654
19655# Whether or not to add -lc for building shared libraries.
19656build_libtool_need_lc=$archive_cmds_need_lc_RC
19657
19658# Whether or not to disallow shared libs when runtime libs are static
19659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19660
19661# Whether or not to optimize for fast installation.
19662fast_install=$enable_fast_install
19663
19664# The host system.
19665host_alias=$host_alias
19666host=$host
19667host_os=$host_os
19668
19669# The build system.
19670build_alias=$build_alias
19671build=$build
19672build_os=$build_os
19673
19674# An echo program that does not interpret backslashes.
19675echo=$lt_echo
19676
19677# The archiver.
19678AR=$lt_AR
19679AR_FLAGS=$lt_AR_FLAGS
19680
19681# A C compiler.
19682LTCC=$lt_LTCC
19683
19684# LTCC compiler flags.
19685LTCFLAGS=$lt_LTCFLAGS
19686
19687# A language-specific compiler.
19688CC=$lt_compiler_RC
19689
19690# Is the compiler the GNU C compiler?
19691with_gcc=$GCC_RC
19692
19693# An ERE matcher.
19694EGREP=$lt_EGREP
19695
19696# The linker used to build libraries.
19697LD=$lt_LD_RC
19698
19699# Whether we need hard or soft links.
19700LN_S=$lt_LN_S
19701
19702# A BSD-compatible nm program.
19703NM=$lt_NM
19704
19705# A symbol stripping program
19706STRIP=$lt_STRIP
19707
19708# Used to examine libraries when file_magic_cmd begins "file"
19709MAGIC_CMD=$MAGIC_CMD
19710
19711# Used on cygwin: DLL creation program.
19712DLLTOOL="$DLLTOOL"
19713
19714# Used on cygwin: object dumper.
19715OBJDUMP="$OBJDUMP"
19716
19717# Used on cygwin: assembler.
19718AS="$AS"
19719
19720# The name of the directory that contains temporary libtool files.
19721objdir=$objdir
19722
19723# How to create reloadable object files.
19724reload_flag=$lt_reload_flag
19725reload_cmds=$lt_reload_cmds
19726
19727# How to pass a linker flag through the compiler.
19728wl=$lt_lt_prog_compiler_wl_RC
19729
19730# Object file suffix (normally "o").
19731objext="$ac_objext"
19732
19733# Old archive suffix (normally "a").
19734libext="$libext"
19735
19736# Shared library suffix (normally ".so").
19737shrext_cmds='$shrext_cmds'
19738
19739# Executable file suffix (normally "").
19740exeext="$exeext"
19741
19742# Additional compiler flags for building library objects.
19743pic_flag=$lt_lt_prog_compiler_pic_RC
19744pic_mode=$pic_mode
19745
19746# What is the maximum length of a command?
19747max_cmd_len=$lt_cv_sys_max_cmd_len
19748
19749# Does compiler simultaneously support -c and -o options?
19750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19751
19752# Must we lock files when doing compilation?
19753need_locks=$lt_need_locks
19754
19755# Do we need the lib prefix for modules?
19756need_lib_prefix=$need_lib_prefix
19757
19758# Do we need a version for libraries?
19759need_version=$need_version
19760
19761# Whether dlopen is supported.
19762dlopen_support=$enable_dlopen
19763
19764# Whether dlopen of programs is supported.
19765dlopen_self=$enable_dlopen_self
19766
19767# Whether dlopen of statically linked programs is supported.
19768dlopen_self_static=$enable_dlopen_self_static
19769
19770# Compiler flag to prevent dynamic linking.
19771link_static_flag=$lt_lt_prog_compiler_static_RC
19772
19773# Compiler flag to turn off builtin functions.
19774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19775
19776# Compiler flag to allow reflexive dlopens.
19777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19778
19779# Compiler flag to generate shared objects directly from archives.
19780whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19781
19782# Compiler flag to generate thread-safe objects.
19783thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19784
19785# Library versioning type.
19786version_type=$version_type
19787
19788# Format of library name prefix.
19789libname_spec=$lt_libname_spec
19790
19791# List of archive names.  First name is the real one, the rest are links.
19792# The last name is the one that the linker finds with -lNAME.
19793library_names_spec=$lt_library_names_spec
19794
19795# The coded name of the library, if different from the real name.
19796soname_spec=$lt_soname_spec
19797
19798# Commands used to build and install an old-style archive.
19799RANLIB=$lt_RANLIB
19800old_archive_cmds=$lt_old_archive_cmds_RC
19801old_postinstall_cmds=$lt_old_postinstall_cmds
19802old_postuninstall_cmds=$lt_old_postuninstall_cmds
19803
19804# Create an old-style archive from a shared archive.
19805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19806
19807# Create a temporary old-style archive to link instead of a shared archive.
19808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19809
19810# Commands used to build and install a shared archive.
19811archive_cmds=$lt_archive_cmds_RC
19812archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19813postinstall_cmds=$lt_postinstall_cmds
19814postuninstall_cmds=$lt_postuninstall_cmds
19815
19816# Commands used to build a loadable module (assumed same as above if empty)
19817module_cmds=$lt_module_cmds_RC
19818module_expsym_cmds=$lt_module_expsym_cmds_RC
19819
19820# Commands to strip libraries.
19821old_striplib=$lt_old_striplib
19822striplib=$lt_striplib
19823
19824# Dependencies to place before the objects being linked to create a
19825# shared library.
19826predep_objects=$lt_predep_objects_RC
19827
19828# Dependencies to place after the objects being linked to create a
19829# shared library.
19830postdep_objects=$lt_postdep_objects_RC
19831
19832# Dependencies to place before the objects being linked to create a
19833# shared library.
19834predeps=$lt_predeps_RC
19835
19836# Dependencies to place after the objects being linked to create a
19837# shared library.
19838postdeps=$lt_postdeps_RC
19839
19840# The directories searched by this compiler when creating a shared
19841# library
19842compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19843
19844# The library search path used internally by the compiler when linking
19845# a shared library.
19846compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19847
19848# Method to check whether dependent libraries are shared objects.
19849deplibs_check_method=$lt_deplibs_check_method
19850
19851# Command to use when deplibs_check_method == file_magic.
19852file_magic_cmd=$lt_file_magic_cmd
19853
19854# Flag that allows shared libraries with undefined symbols to be built.
19855allow_undefined_flag=$lt_allow_undefined_flag_RC
19856
19857# Flag that forces no undefined symbols.
19858no_undefined_flag=$lt_no_undefined_flag_RC
19859
19860# Commands used to finish a libtool library installation in a directory.
19861finish_cmds=$lt_finish_cmds
19862
19863# Same as above, but a single script fragment to be evaled but not shown.
19864finish_eval=$lt_finish_eval
19865
19866# Take the output of nm and produce a listing of raw symbols and C names.
19867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19868
19869# Transform the output of nm in a proper C declaration
19870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19871
19872# Transform the output of nm in a C name address pair
19873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19874
19875# This is the shared library runtime path variable.
19876runpath_var=$runpath_var
19877
19878# This is the shared library path variable.
19879shlibpath_var=$shlibpath_var
19880
19881# Is shlibpath searched before the hard-coded library search path?
19882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19883
19884# How to hardcode a shared library path into an executable.
19885hardcode_action=$hardcode_action_RC
19886
19887# Whether we should hardcode library paths into libraries.
19888hardcode_into_libs=$hardcode_into_libs
19889
19890# Flag to hardcode \$libdir into a binary during linking.
19891# This must work even if \$libdir does not exist.
19892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19893
19894# If ld is used when linking, flag to hardcode \$libdir into
19895# a binary during linking. This must work even if \$libdir does
19896# not exist.
19897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19898
19899# Whether we need a single -rpath flag with a separated argument.
19900hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19901
19902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19903# resulting binary.
19904hardcode_direct=$hardcode_direct_RC
19905
19906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19907# resulting binary.
19908hardcode_minus_L=$hardcode_minus_L_RC
19909
19910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19911# the resulting binary.
19912hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19913
19914# Set to yes if building a shared library automatically hardcodes DIR into the library
19915# and all subsequent libraries and executables linked against it.
19916hardcode_automatic=$hardcode_automatic_RC
19917
19918# Variables whose values should be saved in libtool wrapper scripts and
19919# restored at relink time.
19920variables_saved_for_relink="$variables_saved_for_relink"
19921
19922# Whether libtool must link a program against all its dependency libraries.
19923link_all_deplibs=$link_all_deplibs_RC
19924
19925# Compile-time system search path for libraries
19926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19927
19928# Run-time system search path for libraries
19929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19930
19931# Fix the shell variable \$srcfile for the compiler.
19932fix_srcfile_path=$lt_fix_srcfile_path
19933
19934# Set to yes if exported symbols are required.
19935always_export_symbols=$always_export_symbols_RC
19936
19937# The commands to list exported symbols.
19938export_symbols_cmds=$lt_export_symbols_cmds_RC
19939
19940# The commands to extract the exported symbol list from a shared archive.
19941extract_expsyms_cmds=$lt_extract_expsyms_cmds
19942
19943# Symbols that should not be listed in the preloaded symbols.
19944exclude_expsyms=$lt_exclude_expsyms_RC
19945
19946# Symbols that must always be exported.
19947include_expsyms=$lt_include_expsyms_RC
19948
19949# ### END LIBTOOL TAG CONFIG: $tagname
19950
19951__EOF__
19952
19953
19954else
19955  # If there is no Makefile yet, we rely on a make rule to execute
19956  # `config.status --recheck' to rerun these tests and create the
19957  # libtool script then.
19958  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19959  if test -f "$ltmain_in"; then
19960    test -f Makefile && make "$ltmain"
19961  fi
19962fi
19963
19964
19965ac_ext=c
19966ac_cpp='$CPP $CPPFLAGS'
19967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970
19971CC="$lt_save_CC"
19972
19973	;;
19974
19975      *)
19976	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19977$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19978   { (exit 1); exit 1; }; }
19979	;;
19980      esac
19981
19982      # Append the new tag name to the list of available tags.
19983      if test -n "$tagname" ; then
19984      available_tags="$available_tags $tagname"
19985    fi
19986    fi
19987  done
19988  IFS="$lt_save_ifs"
19989
19990  # Now substitute the updated list of available tags.
19991  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19992    mv "${ofile}T" "$ofile"
19993    chmod +x "$ofile"
19994  else
19995    rm -f "${ofile}T"
19996    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19997$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19998   { (exit 1); exit 1; }; }
19999  fi
20000fi
20001
20002
20003
20004# This can be used to rebuild libtool when needed
20005LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20006
20007# Always use our own libtool.
20008LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20009
20010# Prevent multiple expansion
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031# Find a good install program.  We prefer a C program (faster),
20032# so one script is as good as another.  But avoid the broken or
20033# incompatible versions:
20034# SysV /etc/install, /usr/sbin/install
20035# SunOS /usr/etc/install
20036# IRIX /sbin/install
20037# AIX /bin/install
20038# AmigaOS /C/install, which installs bootblocks on floppy discs
20039# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20040# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20041# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20042# OS/2's system install, which has a completely different semantic
20043# ./install, which can be erroneously created by make from ./install.sh.
20044# Reject install programs that cannot install multiple files.
20045{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20046$as_echo_n "checking for a BSD-compatible install... " >&6; }
20047if test -z "$INSTALL"; then
20048if test "${ac_cv_path_install+set}" = set; then
20049  $as_echo_n "(cached) " >&6
20050else
20051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052for as_dir in $PATH
20053do
20054  IFS=$as_save_IFS
20055  test -z "$as_dir" && as_dir=.
20056  # Account for people who put trailing slashes in PATH elements.
20057case $as_dir/ in
20058  ./ | .// | /cC/* | \
20059  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20060  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20061  /usr/ucb/* ) ;;
20062  *)
20063    # OSF1 and SCO ODT 3.0 have their own names for install.
20064    # Don't use installbsd from OSF since it installs stuff as root
20065    # by default.
20066    for ac_prog in ginstall scoinst install; do
20067      for ac_exec_ext in '' $ac_executable_extensions; do
20068	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20069	  if test $ac_prog = install &&
20070	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20071	    # AIX install.  It has an incompatible calling convention.
20072	    :
20073	  elif test $ac_prog = install &&
20074	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20075	    # program-specific install script used by HP pwplus--don't use.
20076	    :
20077	  else
20078	    rm -rf conftest.one conftest.two conftest.dir
20079	    echo one > conftest.one
20080	    echo two > conftest.two
20081	    mkdir conftest.dir
20082	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
20083	      test -s conftest.one && test -s conftest.two &&
20084	      test -s conftest.dir/conftest.one &&
20085	      test -s conftest.dir/conftest.two
20086	    then
20087	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20088	      break 3
20089	    fi
20090	  fi
20091	fi
20092      done
20093    done
20094    ;;
20095esac
20096
20097done
20098IFS=$as_save_IFS
20099
20100rm -rf conftest.one conftest.two conftest.dir
20101
20102fi
20103  if test "${ac_cv_path_install+set}" = set; then
20104    INSTALL=$ac_cv_path_install
20105  else
20106    # As a last resort, use the slow shell script.  Don't cache a
20107    # value for INSTALL within a source directory, because that will
20108    # break other packages using the cache if that directory is
20109    # removed, or if the value is a relative name.
20110    INSTALL=$ac_install_sh
20111  fi
20112fi
20113{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
20114$as_echo "$INSTALL" >&6; }
20115
20116# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20117# It thinks the first close brace ends the variable substitution.
20118test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20119
20120test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20121
20122test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20123
20124ac_ext=c
20125ac_cpp='$CPP $CPPFLAGS'
20126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128ac_compiler_gnu=$ac_cv_c_compiler_gnu
20129if test -n "$ac_tool_prefix"; then
20130  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20131set dummy ${ac_tool_prefix}gcc; ac_word=$2
20132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20133$as_echo_n "checking for $ac_word... " >&6; }
20134if test "${ac_cv_prog_CC+set}" = set; then
20135  $as_echo_n "(cached) " >&6
20136else
20137  if test -n "$CC"; then
20138  ac_cv_prog_CC="$CC" # Let the user override the test.
20139else
20140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20141for as_dir in $PATH
20142do
20143  IFS=$as_save_IFS
20144  test -z "$as_dir" && as_dir=.
20145  for ac_exec_ext in '' $ac_executable_extensions; do
20146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20147    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20149    break 2
20150  fi
20151done
20152done
20153IFS=$as_save_IFS
20154
20155fi
20156fi
20157CC=$ac_cv_prog_CC
20158if test -n "$CC"; then
20159  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20160$as_echo "$CC" >&6; }
20161else
20162  { $as_echo "$as_me:$LINENO: result: no" >&5
20163$as_echo "no" >&6; }
20164fi
20165
20166
20167fi
20168if test -z "$ac_cv_prog_CC"; then
20169  ac_ct_CC=$CC
20170  # Extract the first word of "gcc", so it can be a program name with args.
20171set dummy gcc; ac_word=$2
20172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20173$as_echo_n "checking for $ac_word... " >&6; }
20174if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20175  $as_echo_n "(cached) " >&6
20176else
20177  if test -n "$ac_ct_CC"; then
20178  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20179else
20180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20181for as_dir in $PATH
20182do
20183  IFS=$as_save_IFS
20184  test -z "$as_dir" && as_dir=.
20185  for ac_exec_ext in '' $ac_executable_extensions; do
20186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20187    ac_cv_prog_ac_ct_CC="gcc"
20188    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20189    break 2
20190  fi
20191done
20192done
20193IFS=$as_save_IFS
20194
20195fi
20196fi
20197ac_ct_CC=$ac_cv_prog_ac_ct_CC
20198if test -n "$ac_ct_CC"; then
20199  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20200$as_echo "$ac_ct_CC" >&6; }
20201else
20202  { $as_echo "$as_me:$LINENO: result: no" >&5
20203$as_echo "no" >&6; }
20204fi
20205
20206  if test "x$ac_ct_CC" = x; then
20207    CC=""
20208  else
20209    case $cross_compiling:$ac_tool_warned in
20210yes:)
20211{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20213ac_tool_warned=yes ;;
20214esac
20215    CC=$ac_ct_CC
20216  fi
20217else
20218  CC="$ac_cv_prog_CC"
20219fi
20220
20221if test -z "$CC"; then
20222          if test -n "$ac_tool_prefix"; then
20223    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20224set dummy ${ac_tool_prefix}cc; ac_word=$2
20225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20226$as_echo_n "checking for $ac_word... " >&6; }
20227if test "${ac_cv_prog_CC+set}" = set; then
20228  $as_echo_n "(cached) " >&6
20229else
20230  if test -n "$CC"; then
20231  ac_cv_prog_CC="$CC" # Let the user override the test.
20232else
20233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20234for as_dir in $PATH
20235do
20236  IFS=$as_save_IFS
20237  test -z "$as_dir" && as_dir=.
20238  for ac_exec_ext in '' $ac_executable_extensions; do
20239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20240    ac_cv_prog_CC="${ac_tool_prefix}cc"
20241    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20242    break 2
20243  fi
20244done
20245done
20246IFS=$as_save_IFS
20247
20248fi
20249fi
20250CC=$ac_cv_prog_CC
20251if test -n "$CC"; then
20252  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20253$as_echo "$CC" >&6; }
20254else
20255  { $as_echo "$as_me:$LINENO: result: no" >&5
20256$as_echo "no" >&6; }
20257fi
20258
20259
20260  fi
20261fi
20262if test -z "$CC"; then
20263  # Extract the first word of "cc", so it can be a program name with args.
20264set dummy cc; ac_word=$2
20265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20266$as_echo_n "checking for $ac_word... " >&6; }
20267if test "${ac_cv_prog_CC+set}" = set; then
20268  $as_echo_n "(cached) " >&6
20269else
20270  if test -n "$CC"; then
20271  ac_cv_prog_CC="$CC" # Let the user override the test.
20272else
20273  ac_prog_rejected=no
20274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275for as_dir in $PATH
20276do
20277  IFS=$as_save_IFS
20278  test -z "$as_dir" && as_dir=.
20279  for ac_exec_ext in '' $ac_executable_extensions; do
20280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20281    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20282       ac_prog_rejected=yes
20283       continue
20284     fi
20285    ac_cv_prog_CC="cc"
20286    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20287    break 2
20288  fi
20289done
20290done
20291IFS=$as_save_IFS
20292
20293if test $ac_prog_rejected = yes; then
20294  # We found a bogon in the path, so make sure we never use it.
20295  set dummy $ac_cv_prog_CC
20296  shift
20297  if test $# != 0; then
20298    # We chose a different compiler from the bogus one.
20299    # However, it has the same basename, so the bogon will be chosen
20300    # first if we set CC to just the basename; use the full file name.
20301    shift
20302    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20303  fi
20304fi
20305fi
20306fi
20307CC=$ac_cv_prog_CC
20308if test -n "$CC"; then
20309  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20310$as_echo "$CC" >&6; }
20311else
20312  { $as_echo "$as_me:$LINENO: result: no" >&5
20313$as_echo "no" >&6; }
20314fi
20315
20316
20317fi
20318if test -z "$CC"; then
20319  if test -n "$ac_tool_prefix"; then
20320  for ac_prog in cl.exe
20321  do
20322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20325$as_echo_n "checking for $ac_word... " >&6; }
20326if test "${ac_cv_prog_CC+set}" = set; then
20327  $as_echo_n "(cached) " >&6
20328else
20329  if test -n "$CC"; then
20330  ac_cv_prog_CC="$CC" # Let the user override the test.
20331else
20332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20333for as_dir in $PATH
20334do
20335  IFS=$as_save_IFS
20336  test -z "$as_dir" && as_dir=.
20337  for ac_exec_ext in '' $ac_executable_extensions; do
20338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20339    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20340    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20341    break 2
20342  fi
20343done
20344done
20345IFS=$as_save_IFS
20346
20347fi
20348fi
20349CC=$ac_cv_prog_CC
20350if test -n "$CC"; then
20351  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20352$as_echo "$CC" >&6; }
20353else
20354  { $as_echo "$as_me:$LINENO: result: no" >&5
20355$as_echo "no" >&6; }
20356fi
20357
20358
20359    test -n "$CC" && break
20360  done
20361fi
20362if test -z "$CC"; then
20363  ac_ct_CC=$CC
20364  for ac_prog in cl.exe
20365do
20366  # Extract the first word of "$ac_prog", so it can be a program name with args.
20367set dummy $ac_prog; ac_word=$2
20368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20369$as_echo_n "checking for $ac_word... " >&6; }
20370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20371  $as_echo_n "(cached) " >&6
20372else
20373  if test -n "$ac_ct_CC"; then
20374  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20375else
20376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20377for as_dir in $PATH
20378do
20379  IFS=$as_save_IFS
20380  test -z "$as_dir" && as_dir=.
20381  for ac_exec_ext in '' $ac_executable_extensions; do
20382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20383    ac_cv_prog_ac_ct_CC="$ac_prog"
20384    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20385    break 2
20386  fi
20387done
20388done
20389IFS=$as_save_IFS
20390
20391fi
20392fi
20393ac_ct_CC=$ac_cv_prog_ac_ct_CC
20394if test -n "$ac_ct_CC"; then
20395  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20396$as_echo "$ac_ct_CC" >&6; }
20397else
20398  { $as_echo "$as_me:$LINENO: result: no" >&5
20399$as_echo "no" >&6; }
20400fi
20401
20402
20403  test -n "$ac_ct_CC" && break
20404done
20405
20406  if test "x$ac_ct_CC" = x; then
20407    CC=""
20408  else
20409    case $cross_compiling:$ac_tool_warned in
20410yes:)
20411{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20413ac_tool_warned=yes ;;
20414esac
20415    CC=$ac_ct_CC
20416  fi
20417fi
20418
20419fi
20420
20421
20422test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20424{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20425See \`config.log' for more details." >&5
20426$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20427See \`config.log' for more details." >&2;}
20428   { (exit 1); exit 1; }; }; }
20429
20430# Provide some information about the compiler.
20431$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20432set X $ac_compile
20433ac_compiler=$2
20434{ (ac_try="$ac_compiler --version >&5"
20435case "(($ac_try" in
20436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437  *) ac_try_echo=$ac_try;;
20438esac
20439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20440$as_echo "$ac_try_echo") >&5
20441  (eval "$ac_compiler --version >&5") 2>&5
20442  ac_status=$?
20443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444  (exit $ac_status); }
20445{ (ac_try="$ac_compiler -v >&5"
20446case "(($ac_try" in
20447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448  *) ac_try_echo=$ac_try;;
20449esac
20450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20451$as_echo "$ac_try_echo") >&5
20452  (eval "$ac_compiler -v >&5") 2>&5
20453  ac_status=$?
20454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455  (exit $ac_status); }
20456{ (ac_try="$ac_compiler -V >&5"
20457case "(($ac_try" in
20458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459  *) ac_try_echo=$ac_try;;
20460esac
20461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20462$as_echo "$ac_try_echo") >&5
20463  (eval "$ac_compiler -V >&5") 2>&5
20464  ac_status=$?
20465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466  (exit $ac_status); }
20467
20468{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20469$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20470if test "${ac_cv_c_compiler_gnu+set}" = set; then
20471  $as_echo_n "(cached) " >&6
20472else
20473  cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h.  */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h.  */
20479
20480int
20481main ()
20482{
20483#ifndef __GNUC__
20484       choke me
20485#endif
20486
20487  ;
20488  return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (ac_try="$ac_compile"
20493case "(($ac_try" in
20494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495  *) ac_try_echo=$ac_try;;
20496esac
20497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20498$as_echo "$ac_try_echo") >&5
20499  (eval "$ac_compile") 2>conftest.er1
20500  ac_status=$?
20501  grep -v '^ *+' conftest.er1 >conftest.err
20502  rm -f conftest.er1
20503  cat conftest.err >&5
20504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505  (exit $ac_status); } && {
20506	 test -z "$ac_c_werror_flag" ||
20507	 test ! -s conftest.err
20508       } && test -s conftest.$ac_objext; then
20509  ac_compiler_gnu=yes
20510else
20511  $as_echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514	ac_compiler_gnu=no
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518ac_cv_c_compiler_gnu=$ac_compiler_gnu
20519
20520fi
20521{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20522$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20523if test $ac_compiler_gnu = yes; then
20524  GCC=yes
20525else
20526  GCC=
20527fi
20528ac_test_CFLAGS=${CFLAGS+set}
20529ac_save_CFLAGS=$CFLAGS
20530{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20531$as_echo_n "checking whether $CC accepts -g... " >&6; }
20532if test "${ac_cv_prog_cc_g+set}" = set; then
20533  $as_echo_n "(cached) " >&6
20534else
20535  ac_save_c_werror_flag=$ac_c_werror_flag
20536   ac_c_werror_flag=yes
20537   ac_cv_prog_cc_g=no
20538   CFLAGS="-g"
20539   cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h.  */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h.  */
20545
20546int
20547main ()
20548{
20549
20550  ;
20551  return 0;
20552}
20553_ACEOF
20554rm -f conftest.$ac_objext
20555if { (ac_try="$ac_compile"
20556case "(($ac_try" in
20557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558  *) ac_try_echo=$ac_try;;
20559esac
20560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20561$as_echo "$ac_try_echo") >&5
20562  (eval "$ac_compile") 2>conftest.er1
20563  ac_status=$?
20564  grep -v '^ *+' conftest.er1 >conftest.err
20565  rm -f conftest.er1
20566  cat conftest.err >&5
20567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568  (exit $ac_status); } && {
20569	 test -z "$ac_c_werror_flag" ||
20570	 test ! -s conftest.err
20571       } && test -s conftest.$ac_objext; then
20572  ac_cv_prog_cc_g=yes
20573else
20574  $as_echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577	CFLAGS=""
20578      cat >conftest.$ac_ext <<_ACEOF
20579/* confdefs.h.  */
20580_ACEOF
20581cat confdefs.h >>conftest.$ac_ext
20582cat >>conftest.$ac_ext <<_ACEOF
20583/* end confdefs.h.  */
20584
20585int
20586main ()
20587{
20588
20589  ;
20590  return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext
20594if { (ac_try="$ac_compile"
20595case "(($ac_try" in
20596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597  *) ac_try_echo=$ac_try;;
20598esac
20599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20600$as_echo "$ac_try_echo") >&5
20601  (eval "$ac_compile") 2>conftest.er1
20602  ac_status=$?
20603  grep -v '^ *+' conftest.er1 >conftest.err
20604  rm -f conftest.er1
20605  cat conftest.err >&5
20606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607  (exit $ac_status); } && {
20608	 test -z "$ac_c_werror_flag" ||
20609	 test ! -s conftest.err
20610       } && test -s conftest.$ac_objext; then
20611  :
20612else
20613  $as_echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616	ac_c_werror_flag=$ac_save_c_werror_flag
20617	 CFLAGS="-g"
20618	 cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h.  */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h.  */
20624
20625int
20626main ()
20627{
20628
20629  ;
20630  return 0;
20631}
20632_ACEOF
20633rm -f conftest.$ac_objext
20634if { (ac_try="$ac_compile"
20635case "(($ac_try" in
20636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637  *) ac_try_echo=$ac_try;;
20638esac
20639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20640$as_echo "$ac_try_echo") >&5
20641  (eval "$ac_compile") 2>conftest.er1
20642  ac_status=$?
20643  grep -v '^ *+' conftest.er1 >conftest.err
20644  rm -f conftest.er1
20645  cat conftest.err >&5
20646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647  (exit $ac_status); } && {
20648	 test -z "$ac_c_werror_flag" ||
20649	 test ! -s conftest.err
20650       } && test -s conftest.$ac_objext; then
20651  ac_cv_prog_cc_g=yes
20652else
20653  $as_echo "$as_me: failed program was:" >&5
20654sed 's/^/| /' conftest.$ac_ext >&5
20655
20656
20657fi
20658
20659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660fi
20661
20662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663fi
20664
20665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666   ac_c_werror_flag=$ac_save_c_werror_flag
20667fi
20668{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20669$as_echo "$ac_cv_prog_cc_g" >&6; }
20670if test "$ac_test_CFLAGS" = set; then
20671  CFLAGS=$ac_save_CFLAGS
20672elif test $ac_cv_prog_cc_g = yes; then
20673  if test "$GCC" = yes; then
20674    CFLAGS="-g -O2"
20675  else
20676    CFLAGS="-g"
20677  fi
20678else
20679  if test "$GCC" = yes; then
20680    CFLAGS="-O2"
20681  else
20682    CFLAGS=
20683  fi
20684fi
20685{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20686$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20687if test "${ac_cv_prog_cc_c89+set}" = set; then
20688  $as_echo_n "(cached) " >&6
20689else
20690  ac_cv_prog_cc_c89=no
20691ac_save_CC=$CC
20692cat >conftest.$ac_ext <<_ACEOF
20693/* confdefs.h.  */
20694_ACEOF
20695cat confdefs.h >>conftest.$ac_ext
20696cat >>conftest.$ac_ext <<_ACEOF
20697/* end confdefs.h.  */
20698#include <stdarg.h>
20699#include <stdio.h>
20700#include <sys/types.h>
20701#include <sys/stat.h>
20702/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20703struct buf { int x; };
20704FILE * (*rcsopen) (struct buf *, struct stat *, int);
20705static char *e (p, i)
20706     char **p;
20707     int i;
20708{
20709  return p[i];
20710}
20711static char *f (char * (*g) (char **, int), char **p, ...)
20712{
20713  char *s;
20714  va_list v;
20715  va_start (v,p);
20716  s = g (p, va_arg (v,int));
20717  va_end (v);
20718  return s;
20719}
20720
20721/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20722   function prototypes and stuff, but not '\xHH' hex character constants.
20723   These don't provoke an error unfortunately, instead are silently treated
20724   as 'x'.  The following induces an error, until -std is added to get
20725   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20726   array size at least.  It's necessary to write '\x00'==0 to get something
20727   that's true only with -std.  */
20728int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20729
20730/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20731   inside strings and character constants.  */
20732#define FOO(x) 'x'
20733int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20734
20735int test (int i, double x);
20736struct s1 {int (*f) (int a);};
20737struct s2 {int (*f) (double a);};
20738int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20739int argc;
20740char **argv;
20741int
20742main ()
20743{
20744return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20745  ;
20746  return 0;
20747}
20748_ACEOF
20749for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20750	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20751do
20752  CC="$ac_save_CC $ac_arg"
20753  rm -f conftest.$ac_objext
20754if { (ac_try="$ac_compile"
20755case "(($ac_try" in
20756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757  *) ac_try_echo=$ac_try;;
20758esac
20759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760$as_echo "$ac_try_echo") >&5
20761  (eval "$ac_compile") 2>conftest.er1
20762  ac_status=$?
20763  grep -v '^ *+' conftest.er1 >conftest.err
20764  rm -f conftest.er1
20765  cat conftest.err >&5
20766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767  (exit $ac_status); } && {
20768	 test -z "$ac_c_werror_flag" ||
20769	 test ! -s conftest.err
20770       } && test -s conftest.$ac_objext; then
20771  ac_cv_prog_cc_c89=$ac_arg
20772else
20773  $as_echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776
20777fi
20778
20779rm -f core conftest.err conftest.$ac_objext
20780  test "x$ac_cv_prog_cc_c89" != "xno" && break
20781done
20782rm -f conftest.$ac_ext
20783CC=$ac_save_CC
20784
20785fi
20786# AC_CACHE_VAL
20787case "x$ac_cv_prog_cc_c89" in
20788  x)
20789    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20790$as_echo "none needed" >&6; } ;;
20791  xno)
20792    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20793$as_echo "unsupported" >&6; } ;;
20794  *)
20795    CC="$CC $ac_cv_prog_cc_c89"
20796    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20797$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20798esac
20799
20800
20801ac_ext=c
20802ac_cpp='$CPP $CPPFLAGS'
20803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807depcc="$CC"   am_compiler_list=
20808
20809{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20810$as_echo_n "checking dependency style of $depcc... " >&6; }
20811if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20812  $as_echo_n "(cached) " >&6
20813else
20814  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20815  # We make a subdir and do the tests there.  Otherwise we can end up
20816  # making bogus files that we don't know about and never remove.  For
20817  # instance it was reported that on HP-UX the gcc test will end up
20818  # making a dummy file named `D' -- because `-MD' means `put the output
20819  # in D'.
20820  mkdir conftest.dir
20821  # Copy depcomp to subdir because otherwise we won't find it if we're
20822  # using a relative directory.
20823  cp "$am_depcomp" conftest.dir
20824  cd conftest.dir
20825  # We will build objects and dependencies in a subdirectory because
20826  # it helps to detect inapplicable dependency modes.  For instance
20827  # both Tru64's cc and ICC support -MD to output dependencies as a
20828  # side effect of compilation, but ICC will put the dependencies in
20829  # the current directory while Tru64 will put them in the object
20830  # directory.
20831  mkdir sub
20832
20833  am_cv_CC_dependencies_compiler_type=none
20834  if test "$am_compiler_list" = ""; then
20835     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20836  fi
20837  for depmode in $am_compiler_list; do
20838    # Setup a source with many dependencies, because some compilers
20839    # like to wrap large dependency lists on column 80 (with \), and
20840    # we should not choose a depcomp mode which is confused by this.
20841    #
20842    # We need to recreate these files for each test, as the compiler may
20843    # overwrite some of them when testing with obscure command lines.
20844    # This happens at least with the AIX C compiler.
20845    : > sub/conftest.c
20846    for i in 1 2 3 4 5 6; do
20847      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20848      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20849      # Solaris 8's {/usr,}/bin/sh.
20850      touch sub/conftst$i.h
20851    done
20852    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20853
20854    case $depmode in
20855    nosideeffect)
20856      # after this tag, mechanisms are not by side-effect, so they'll
20857      # only be used when explicitly requested
20858      if test "x$enable_dependency_tracking" = xyes; then
20859	continue
20860      else
20861	break
20862      fi
20863      ;;
20864    none) break ;;
20865    esac
20866    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20867    # mode.  It turns out that the SunPro C++ compiler does not properly
20868    # handle `-M -o', and we need to detect this.
20869    if depmode=$depmode \
20870       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20871       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20872       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20873         >/dev/null 2>conftest.err &&
20874       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20875       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20876       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20877       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20878      # icc doesn't choke on unknown options, it will just issue warnings
20879      # or remarks (even with -Werror).  So we grep stderr for any message
20880      # that says an option was ignored or not supported.
20881      # When given -MP, icc 7.0 and 7.1 complain thusly:
20882      #   icc: Command line warning: ignoring option '-M'; no argument required
20883      # The diagnosis changed in icc 8.0:
20884      #   icc: Command line remark: option '-MP' not supported
20885      if (grep 'ignoring option' conftest.err ||
20886          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20887        am_cv_CC_dependencies_compiler_type=$depmode
20888        break
20889      fi
20890    fi
20891  done
20892
20893  cd ..
20894  rm -rf conftest.dir
20895else
20896  am_cv_CC_dependencies_compiler_type=none
20897fi
20898
20899fi
20900{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20901$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20903
20904 if
20905  test "x$enable_dependency_tracking" != xno \
20906  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20907  am__fastdepCC_TRUE=
20908  am__fastdepCC_FALSE='#'
20909else
20910  am__fastdepCC_TRUE='#'
20911  am__fastdepCC_FALSE=
20912fi
20913
20914
20915ac_ext=cpp
20916ac_cpp='$CXXCPP $CPPFLAGS'
20917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20920if test -z "$CXX"; then
20921  if test -n "$CCC"; then
20922    CXX=$CCC
20923  else
20924    if test -n "$ac_tool_prefix"; then
20925  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20926  do
20927    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20930$as_echo_n "checking for $ac_word... " >&6; }
20931if test "${ac_cv_prog_CXX+set}" = set; then
20932  $as_echo_n "(cached) " >&6
20933else
20934  if test -n "$CXX"; then
20935  ac_cv_prog_CXX="$CXX" # Let the user override the test.
20936else
20937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938for as_dir in $PATH
20939do
20940  IFS=$as_save_IFS
20941  test -z "$as_dir" && as_dir=.
20942  for ac_exec_ext in '' $ac_executable_extensions; do
20943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20944    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20945    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20946    break 2
20947  fi
20948done
20949done
20950IFS=$as_save_IFS
20951
20952fi
20953fi
20954CXX=$ac_cv_prog_CXX
20955if test -n "$CXX"; then
20956  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
20957$as_echo "$CXX" >&6; }
20958else
20959  { $as_echo "$as_me:$LINENO: result: no" >&5
20960$as_echo "no" >&6; }
20961fi
20962
20963
20964    test -n "$CXX" && break
20965  done
20966fi
20967if test -z "$CXX"; then
20968  ac_ct_CXX=$CXX
20969  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20970do
20971  # Extract the first word of "$ac_prog", so it can be a program name with args.
20972set dummy $ac_prog; ac_word=$2
20973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20974$as_echo_n "checking for $ac_word... " >&6; }
20975if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20976  $as_echo_n "(cached) " >&6
20977else
20978  if test -n "$ac_ct_CXX"; then
20979  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20980else
20981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982for as_dir in $PATH
20983do
20984  IFS=$as_save_IFS
20985  test -z "$as_dir" && as_dir=.
20986  for ac_exec_ext in '' $ac_executable_extensions; do
20987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20988    ac_cv_prog_ac_ct_CXX="$ac_prog"
20989    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20990    break 2
20991  fi
20992done
20993done
20994IFS=$as_save_IFS
20995
20996fi
20997fi
20998ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20999if test -n "$ac_ct_CXX"; then
21000  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
21001$as_echo "$ac_ct_CXX" >&6; }
21002else
21003  { $as_echo "$as_me:$LINENO: result: no" >&5
21004$as_echo "no" >&6; }
21005fi
21006
21007
21008  test -n "$ac_ct_CXX" && break
21009done
21010
21011  if test "x$ac_ct_CXX" = x; then
21012    CXX="g++"
21013  else
21014    case $cross_compiling:$ac_tool_warned in
21015yes:)
21016{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21018ac_tool_warned=yes ;;
21019esac
21020    CXX=$ac_ct_CXX
21021  fi
21022fi
21023
21024  fi
21025fi
21026# Provide some information about the compiler.
21027$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
21028set X $ac_compile
21029ac_compiler=$2
21030{ (ac_try="$ac_compiler --version >&5"
21031case "(($ac_try" in
21032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033  *) ac_try_echo=$ac_try;;
21034esac
21035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21036$as_echo "$ac_try_echo") >&5
21037  (eval "$ac_compiler --version >&5") 2>&5
21038  ac_status=$?
21039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040  (exit $ac_status); }
21041{ (ac_try="$ac_compiler -v >&5"
21042case "(($ac_try" in
21043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044  *) ac_try_echo=$ac_try;;
21045esac
21046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21047$as_echo "$ac_try_echo") >&5
21048  (eval "$ac_compiler -v >&5") 2>&5
21049  ac_status=$?
21050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051  (exit $ac_status); }
21052{ (ac_try="$ac_compiler -V >&5"
21053case "(($ac_try" in
21054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055  *) ac_try_echo=$ac_try;;
21056esac
21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21058$as_echo "$ac_try_echo") >&5
21059  (eval "$ac_compiler -V >&5") 2>&5
21060  ac_status=$?
21061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062  (exit $ac_status); }
21063
21064{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
21065$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21066if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
21067  $as_echo_n "(cached) " >&6
21068else
21069  cat >conftest.$ac_ext <<_ACEOF
21070/* confdefs.h.  */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h.  */
21075
21076int
21077main ()
21078{
21079#ifndef __GNUC__
21080       choke me
21081#endif
21082
21083  ;
21084  return 0;
21085}
21086_ACEOF
21087rm -f conftest.$ac_objext
21088if { (ac_try="$ac_compile"
21089case "(($ac_try" in
21090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091  *) ac_try_echo=$ac_try;;
21092esac
21093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21094$as_echo "$ac_try_echo") >&5
21095  (eval "$ac_compile") 2>conftest.er1
21096  ac_status=$?
21097  grep -v '^ *+' conftest.er1 >conftest.err
21098  rm -f conftest.er1
21099  cat conftest.err >&5
21100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101  (exit $ac_status); } && {
21102	 test -z "$ac_cxx_werror_flag" ||
21103	 test ! -s conftest.err
21104       } && test -s conftest.$ac_objext; then
21105  ac_compiler_gnu=yes
21106else
21107  $as_echo "$as_me: failed program was:" >&5
21108sed 's/^/| /' conftest.$ac_ext >&5
21109
21110	ac_compiler_gnu=no
21111fi
21112
21113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21115
21116fi
21117{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
21118$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21119if test $ac_compiler_gnu = yes; then
21120  GXX=yes
21121else
21122  GXX=
21123fi
21124ac_test_CXXFLAGS=${CXXFLAGS+set}
21125ac_save_CXXFLAGS=$CXXFLAGS
21126{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
21127$as_echo_n "checking whether $CXX accepts -g... " >&6; }
21128if test "${ac_cv_prog_cxx_g+set}" = set; then
21129  $as_echo_n "(cached) " >&6
21130else
21131  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21132   ac_cxx_werror_flag=yes
21133   ac_cv_prog_cxx_g=no
21134   CXXFLAGS="-g"
21135   cat >conftest.$ac_ext <<_ACEOF
21136/* confdefs.h.  */
21137_ACEOF
21138cat confdefs.h >>conftest.$ac_ext
21139cat >>conftest.$ac_ext <<_ACEOF
21140/* end confdefs.h.  */
21141
21142int
21143main ()
21144{
21145
21146  ;
21147  return 0;
21148}
21149_ACEOF
21150rm -f conftest.$ac_objext
21151if { (ac_try="$ac_compile"
21152case "(($ac_try" in
21153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154  *) ac_try_echo=$ac_try;;
21155esac
21156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21157$as_echo "$ac_try_echo") >&5
21158  (eval "$ac_compile") 2>conftest.er1
21159  ac_status=$?
21160  grep -v '^ *+' conftest.er1 >conftest.err
21161  rm -f conftest.er1
21162  cat conftest.err >&5
21163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164  (exit $ac_status); } && {
21165	 test -z "$ac_cxx_werror_flag" ||
21166	 test ! -s conftest.err
21167       } && test -s conftest.$ac_objext; then
21168  ac_cv_prog_cxx_g=yes
21169else
21170  $as_echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173	CXXFLAGS=""
21174      cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h.  */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h.  */
21180
21181int
21182main ()
21183{
21184
21185  ;
21186  return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext
21190if { (ac_try="$ac_compile"
21191case "(($ac_try" in
21192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193  *) ac_try_echo=$ac_try;;
21194esac
21195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21196$as_echo "$ac_try_echo") >&5
21197  (eval "$ac_compile") 2>conftest.er1
21198  ac_status=$?
21199  grep -v '^ *+' conftest.er1 >conftest.err
21200  rm -f conftest.er1
21201  cat conftest.err >&5
21202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203  (exit $ac_status); } && {
21204	 test -z "$ac_cxx_werror_flag" ||
21205	 test ! -s conftest.err
21206       } && test -s conftest.$ac_objext; then
21207  :
21208else
21209  $as_echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21213	 CXXFLAGS="-g"
21214	 cat >conftest.$ac_ext <<_ACEOF
21215/* confdefs.h.  */
21216_ACEOF
21217cat confdefs.h >>conftest.$ac_ext
21218cat >>conftest.$ac_ext <<_ACEOF
21219/* end confdefs.h.  */
21220
21221int
21222main ()
21223{
21224
21225  ;
21226  return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext
21230if { (ac_try="$ac_compile"
21231case "(($ac_try" in
21232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233  *) ac_try_echo=$ac_try;;
21234esac
21235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21236$as_echo "$ac_try_echo") >&5
21237  (eval "$ac_compile") 2>conftest.er1
21238  ac_status=$?
21239  grep -v '^ *+' conftest.er1 >conftest.err
21240  rm -f conftest.er1
21241  cat conftest.err >&5
21242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243  (exit $ac_status); } && {
21244	 test -z "$ac_cxx_werror_flag" ||
21245	 test ! -s conftest.err
21246       } && test -s conftest.$ac_objext; then
21247  ac_cv_prog_cxx_g=yes
21248else
21249  $as_echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
21252
21253fi
21254
21255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256fi
21257
21258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259fi
21260
21261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21263fi
21264{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
21265$as_echo "$ac_cv_prog_cxx_g" >&6; }
21266if test "$ac_test_CXXFLAGS" = set; then
21267  CXXFLAGS=$ac_save_CXXFLAGS
21268elif test $ac_cv_prog_cxx_g = yes; then
21269  if test "$GXX" = yes; then
21270    CXXFLAGS="-g -O2"
21271  else
21272    CXXFLAGS="-g"
21273  fi
21274else
21275  if test "$GXX" = yes; then
21276    CXXFLAGS="-O2"
21277  else
21278    CXXFLAGS=
21279  fi
21280fi
21281ac_ext=c
21282ac_cpp='$CPP $CPPFLAGS'
21283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21285ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286
21287depcc="$CXX"  am_compiler_list=
21288
21289{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21290$as_echo_n "checking dependency style of $depcc... " >&6; }
21291if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21292  $as_echo_n "(cached) " >&6
21293else
21294  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21295  # We make a subdir and do the tests there.  Otherwise we can end up
21296  # making bogus files that we don't know about and never remove.  For
21297  # instance it was reported that on HP-UX the gcc test will end up
21298  # making a dummy file named `D' -- because `-MD' means `put the output
21299  # in D'.
21300  mkdir conftest.dir
21301  # Copy depcomp to subdir because otherwise we won't find it if we're
21302  # using a relative directory.
21303  cp "$am_depcomp" conftest.dir
21304  cd conftest.dir
21305  # We will build objects and dependencies in a subdirectory because
21306  # it helps to detect inapplicable dependency modes.  For instance
21307  # both Tru64's cc and ICC support -MD to output dependencies as a
21308  # side effect of compilation, but ICC will put the dependencies in
21309  # the current directory while Tru64 will put them in the object
21310  # directory.
21311  mkdir sub
21312
21313  am_cv_CXX_dependencies_compiler_type=none
21314  if test "$am_compiler_list" = ""; then
21315     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21316  fi
21317  for depmode in $am_compiler_list; do
21318    # Setup a source with many dependencies, because some compilers
21319    # like to wrap large dependency lists on column 80 (with \), and
21320    # we should not choose a depcomp mode which is confused by this.
21321    #
21322    # We need to recreate these files for each test, as the compiler may
21323    # overwrite some of them when testing with obscure command lines.
21324    # This happens at least with the AIX C compiler.
21325    : > sub/conftest.c
21326    for i in 1 2 3 4 5 6; do
21327      echo '#include "conftst'$i'.h"' >> sub/conftest.c
21328      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21329      # Solaris 8's {/usr,}/bin/sh.
21330      touch sub/conftst$i.h
21331    done
21332    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21333
21334    case $depmode in
21335    nosideeffect)
21336      # after this tag, mechanisms are not by side-effect, so they'll
21337      # only be used when explicitly requested
21338      if test "x$enable_dependency_tracking" = xyes; then
21339	continue
21340      else
21341	break
21342      fi
21343      ;;
21344    none) break ;;
21345    esac
21346    # We check with `-c' and `-o' for the sake of the "dashmstdout"
21347    # mode.  It turns out that the SunPro C++ compiler does not properly
21348    # handle `-M -o', and we need to detect this.
21349    if depmode=$depmode \
21350       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21351       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21352       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21353         >/dev/null 2>conftest.err &&
21354       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21355       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21356       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21357       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21358      # icc doesn't choke on unknown options, it will just issue warnings
21359      # or remarks (even with -Werror).  So we grep stderr for any message
21360      # that says an option was ignored or not supported.
21361      # When given -MP, icc 7.0 and 7.1 complain thusly:
21362      #   icc: Command line warning: ignoring option '-M'; no argument required
21363      # The diagnosis changed in icc 8.0:
21364      #   icc: Command line remark: option '-MP' not supported
21365      if (grep 'ignoring option' conftest.err ||
21366          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21367        am_cv_CXX_dependencies_compiler_type=$depmode
21368        break
21369      fi
21370    fi
21371  done
21372
21373  cd ..
21374  rm -rf conftest.dir
21375else
21376  am_cv_CXX_dependencies_compiler_type=none
21377fi
21378
21379fi
21380{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21381$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
21382CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21383
21384 if
21385  test "x$enable_dependency_tracking" != xno \
21386  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21387  am__fastdepCXX_TRUE=
21388  am__fastdepCXX_FALSE='#'
21389else
21390  am__fastdepCXX_TRUE='#'
21391  am__fastdepCXX_FALSE=
21392fi
21393
21394
21395
21396
21397if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21398	if test -n "$ac_tool_prefix"; then
21399  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21400set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21402$as_echo_n "checking for $ac_word... " >&6; }
21403if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21404  $as_echo_n "(cached) " >&6
21405else
21406  case $PKG_CONFIG in
21407  [\\/]* | ?:[\\/]*)
21408  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21409  ;;
21410  *)
21411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412for as_dir in $PATH
21413do
21414  IFS=$as_save_IFS
21415  test -z "$as_dir" && as_dir=.
21416  for ac_exec_ext in '' $ac_executable_extensions; do
21417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21419    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21420    break 2
21421  fi
21422done
21423done
21424IFS=$as_save_IFS
21425
21426  ;;
21427esac
21428fi
21429PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21430if test -n "$PKG_CONFIG"; then
21431  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21432$as_echo "$PKG_CONFIG" >&6; }
21433else
21434  { $as_echo "$as_me:$LINENO: result: no" >&5
21435$as_echo "no" >&6; }
21436fi
21437
21438
21439fi
21440if test -z "$ac_cv_path_PKG_CONFIG"; then
21441  ac_pt_PKG_CONFIG=$PKG_CONFIG
21442  # Extract the first word of "pkg-config", so it can be a program name with args.
21443set dummy pkg-config; ac_word=$2
21444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21445$as_echo_n "checking for $ac_word... " >&6; }
21446if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21447  $as_echo_n "(cached) " >&6
21448else
21449  case $ac_pt_PKG_CONFIG in
21450  [\\/]* | ?:[\\/]*)
21451  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21452  ;;
21453  *)
21454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21455for as_dir in $PATH
21456do
21457  IFS=$as_save_IFS
21458  test -z "$as_dir" && as_dir=.
21459  for ac_exec_ext in '' $ac_executable_extensions; do
21460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21461    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21462    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21463    break 2
21464  fi
21465done
21466done
21467IFS=$as_save_IFS
21468
21469  ;;
21470esac
21471fi
21472ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21473if test -n "$ac_pt_PKG_CONFIG"; then
21474  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21475$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21476else
21477  { $as_echo "$as_me:$LINENO: result: no" >&5
21478$as_echo "no" >&6; }
21479fi
21480
21481  if test "x$ac_pt_PKG_CONFIG" = x; then
21482    PKG_CONFIG=""
21483  else
21484    case $cross_compiling:$ac_tool_warned in
21485yes:)
21486{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21488ac_tool_warned=yes ;;
21489esac
21490    PKG_CONFIG=$ac_pt_PKG_CONFIG
21491  fi
21492else
21493  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21494fi
21495
21496fi
21497if test -n "$PKG_CONFIG"; then
21498	_pkg_min_version=0.9.0
21499	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21500$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21501	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21502		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21503$as_echo "yes" >&6; }
21504	else
21505		{ $as_echo "$as_me:$LINENO: result: no" >&5
21506$as_echo "no" >&6; }
21507		PKG_CONFIG=""
21508	fi
21509
21510fi
21511
21512{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21513$as_echo_n "checking for ANSI C header files... " >&6; }
21514if test "${ac_cv_header_stdc+set}" = set; then
21515  $as_echo_n "(cached) " >&6
21516else
21517  cat >conftest.$ac_ext <<_ACEOF
21518/* confdefs.h.  */
21519_ACEOF
21520cat confdefs.h >>conftest.$ac_ext
21521cat >>conftest.$ac_ext <<_ACEOF
21522/* end confdefs.h.  */
21523#include <stdlib.h>
21524#include <stdarg.h>
21525#include <string.h>
21526#include <float.h>
21527
21528int
21529main ()
21530{
21531
21532  ;
21533  return 0;
21534}
21535_ACEOF
21536rm -f conftest.$ac_objext
21537if { (ac_try="$ac_compile"
21538case "(($ac_try" in
21539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540  *) ac_try_echo=$ac_try;;
21541esac
21542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21543$as_echo "$ac_try_echo") >&5
21544  (eval "$ac_compile") 2>conftest.er1
21545  ac_status=$?
21546  grep -v '^ *+' conftest.er1 >conftest.err
21547  rm -f conftest.er1
21548  cat conftest.err >&5
21549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550  (exit $ac_status); } && {
21551	 test -z "$ac_c_werror_flag" ||
21552	 test ! -s conftest.err
21553       } && test -s conftest.$ac_objext; then
21554  ac_cv_header_stdc=yes
21555else
21556  $as_echo "$as_me: failed program was:" >&5
21557sed 's/^/| /' conftest.$ac_ext >&5
21558
21559	ac_cv_header_stdc=no
21560fi
21561
21562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563
21564if test $ac_cv_header_stdc = yes; then
21565  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21566  cat >conftest.$ac_ext <<_ACEOF
21567/* confdefs.h.  */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h.  */
21572#include <string.h>
21573
21574_ACEOF
21575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21576  $EGREP "memchr" >/dev/null 2>&1; then
21577  :
21578else
21579  ac_cv_header_stdc=no
21580fi
21581rm -f conftest*
21582
21583fi
21584
21585if test $ac_cv_header_stdc = yes; then
21586  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21587  cat >conftest.$ac_ext <<_ACEOF
21588/* confdefs.h.  */
21589_ACEOF
21590cat confdefs.h >>conftest.$ac_ext
21591cat >>conftest.$ac_ext <<_ACEOF
21592/* end confdefs.h.  */
21593#include <stdlib.h>
21594
21595_ACEOF
21596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21597  $EGREP "free" >/dev/null 2>&1; then
21598  :
21599else
21600  ac_cv_header_stdc=no
21601fi
21602rm -f conftest*
21603
21604fi
21605
21606if test $ac_cv_header_stdc = yes; then
21607  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21608  if test "$cross_compiling" = yes; then
21609  :
21610else
21611  cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h.  */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h.  */
21617#include <ctype.h>
21618#include <stdlib.h>
21619#if ((' ' & 0x0FF) == 0x020)
21620# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21621# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21622#else
21623# define ISLOWER(c) \
21624		   (('a' <= (c) && (c) <= 'i') \
21625		     || ('j' <= (c) && (c) <= 'r') \
21626		     || ('s' <= (c) && (c) <= 'z'))
21627# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21628#endif
21629
21630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21631int
21632main ()
21633{
21634  int i;
21635  for (i = 0; i < 256; i++)
21636    if (XOR (islower (i), ISLOWER (i))
21637	|| toupper (i) != TOUPPER (i))
21638      return 2;
21639  return 0;
21640}
21641_ACEOF
21642rm -f conftest$ac_exeext
21643if { (ac_try="$ac_link"
21644case "(($ac_try" in
21645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646  *) ac_try_echo=$ac_try;;
21647esac
21648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21649$as_echo "$ac_try_echo") >&5
21650  (eval "$ac_link") 2>&5
21651  ac_status=$?
21652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21654  { (case "(($ac_try" in
21655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656  *) ac_try_echo=$ac_try;;
21657esac
21658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21659$as_echo "$ac_try_echo") >&5
21660  (eval "$ac_try") 2>&5
21661  ac_status=$?
21662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663  (exit $ac_status); }; }; then
21664  :
21665else
21666  $as_echo "$as_me: program exited with status $ac_status" >&5
21667$as_echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670( exit $ac_status )
21671ac_cv_header_stdc=no
21672fi
21673rm -rf conftest.dSYM
21674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21675fi
21676
21677
21678fi
21679fi
21680{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21681$as_echo "$ac_cv_header_stdc" >&6; }
21682if test $ac_cv_header_stdc = yes; then
21683
21684cat >>confdefs.h <<\_ACEOF
21685#define STDC_HEADERS 1
21686_ACEOF
21687
21688fi
21689
21690
21691
21692
21693## Option --disable-test
21694# Check whether --enable-test was given.
21695if test "${enable_test+set}" = set; then
21696  enableval=$enable_test;
21697	XSPF_TEST_YESNO=${enableval}
21698
21699else
21700
21701	XSPF_TEST_YESNO=yes
21702
21703fi
21704
21705 if test "${XSPF_TEST_YESNO}" = "yes"; then
21706  XSPF_TEST_ENABLED_TRUE=
21707  XSPF_TEST_ENABLED_FALSE='#'
21708else
21709  XSPF_TEST_ENABLED_TRUE='#'
21710  XSPF_TEST_ENABLED_FALSE=
21711fi
21712
21713
21714
21715
21716# Expat
21717
21718# Check whether --with-expat was given.
21719if test "${with_expat+set}" = set; then
21720  withval=$with_expat;
21721	if test "x${withval}" = "x"; then
21722		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-expat" >&5
21723$as_echo "$as_me: error: No path given for option --with-expat" >&2;}
21724   { (exit 1); exit 1; }; }
21725	fi
21726	LDFLAGS="-L${withval}/lib ${LDFLAGS}"
21727	CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
21728
21729fi
21730
21731
21732
21733# Check whether --with-expat-inc was given.
21734if test "${with_expat_inc+set}" = set; then
21735  withval=$with_expat_inc;
21736	if test "x${withval}" = "x"; then
21737		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-expat-inc" >&5
21738$as_echo "$as_me: error: No path given for option --with-expat-inc" >&2;}
21739   { (exit 1); exit 1; }; }
21740	fi
21741	CPPFLAGS="-I${withval} ${CPPFLAGS}"
21742
21743fi
21744
21745
21746
21747# Check whether --with-expat-lib was given.
21748if test "${with_expat_lib+set}" = set; then
21749  withval=$with_expat_lib;
21750	if test "x${withval}" = "x"; then
21751		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-expat-lib" >&5
21752$as_echo "$as_me: error: No path given for option --with-expat-lib" >&2;}
21753   { (exit 1); exit 1; }; }
21754	fi
21755	LDFLAGS="-L${withval} ${LDFLAGS}"
21756
21757fi
21758
21759
21760
21761
21762# uriparser
21763
21764# Check whether --with-uriparser was given.
21765if test "${with_uriparser+set}" = set; then
21766  withval=$with_uriparser;
21767	if test "x${withval}" = "x"; then
21768		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-uriparser" >&5
21769$as_echo "$as_me: error: No path given for option --with-uriparser" >&2;}
21770   { (exit 1); exit 1; }; }
21771	fi
21772	LDFLAGS="-L${withval}/lib ${LDFLAGS}"
21773	CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
21774
21775fi
21776
21777
21778
21779# Check whether --with-uriparser-inc was given.
21780if test "${with_uriparser_inc+set}" = set; then
21781  withval=$with_uriparser_inc;
21782	if test "x${withval}" = "x"; then
21783		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-uriparser-inc" >&5
21784$as_echo "$as_me: error: No path given for option --with-uriparser-inc" >&2;}
21785   { (exit 1); exit 1; }; }
21786	fi
21787	CPPFLAGS="-I${withval} ${CPPFLAGS}"
21788
21789fi
21790
21791
21792
21793# Check whether --with-uriparser-lib was given.
21794if test "${with_uriparser_lib+set}" = set; then
21795  withval=$with_uriparser_lib;
21796	if test "x${withval}" = "x"; then
21797		{ { $as_echo "$as_me:$LINENO: error: No path given for option --with-uriparser-lib" >&5
21798$as_echo "$as_me: error: No path given for option --with-uriparser-lib" >&2;}
21799   { (exit 1); exit 1; }; }
21800	fi
21801	LDFLAGS="-L${withval} ${LDFLAGS}"
21802
21803fi
21804
21805
21806
21807## API documentation
21808
21809
21810# Check whether --enable-doc was given.
21811if test "${enable_doc+set}" = set; then
21812  enableval=$enable_doc;
21813	XSPF_DOC_YESNO=${enableval}
21814	if test ${enableval} = yes ; then
21815		subdirs="$subdirs doc"
21816
21817		subdirs="$subdirs bindings/c/doc"
21818
21819	fi
21820
21821else
21822
21823	XSPF_DOC_YESNO=no
21824
21825fi
21826
21827 if test ${XSPF_DOC_YESNO} = yes; then
21828  GENERATE_DOC_TRUE=
21829  GENERATE_DOC_FALSE='#'
21830else
21831  GENERATE_DOC_TRUE='#'
21832  GENERATE_DOC_FALSE=
21833fi
21834
21835
21836
21837
21838# Local headers must come very first. Otherwise we
21839# risk including headers of an already installed
21840# libxspf version if its path is in CPPFLAGS
21841CPPFLAGS="-I${srcdir}/include ${CPPFLAGS}"
21842
21843
21844
21845# Append $prefix as a fallback at the very end
21846if test "x${prefix}" != "xNONE"; then
21847	WORKING_PREFIX=${prefix}
21848else
21849	WORKING_PREFIX=${ac_default_prefix}
21850fi
21851LDFLAGS="${LDFLAGS} -L${WORKING_PREFIX}/lib"
21852CPPFLAGS="${CPPFLAGS} -I${WORKING_PREFIX}/include"
21853
21854
21855
21856# Check presence
21857EXPAT_MISSING="Please install expat 1.95.8 or later.
21858   On a Debian-based system enter 'sudo apt-get install libexpat-dev'."
21859
21860{ $as_echo "$as_me:$LINENO: checking for XML_ResumeParser in -lexpat" >&5
21861$as_echo_n "checking for XML_ResumeParser in -lexpat... " >&6; }
21862if test "${ac_cv_lib_expat_XML_ResumeParser+set}" = set; then
21863  $as_echo_n "(cached) " >&6
21864else
21865  ac_check_lib_save_LIBS=$LIBS
21866LIBS="-lexpat  $LIBS"
21867cat >conftest.$ac_ext <<_ACEOF
21868/* confdefs.h.  */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h.  */
21873
21874/* Override any GCC internal prototype to avoid an error.
21875   Use char because int might match the return type of a GCC
21876   builtin and then its argument prototype would still apply.  */
21877#ifdef __cplusplus
21878extern "C"
21879#endif
21880char XML_ResumeParser ();
21881int
21882main ()
21883{
21884return XML_ResumeParser ();
21885  ;
21886  return 0;
21887}
21888_ACEOF
21889rm -f conftest.$ac_objext conftest$ac_exeext
21890if { (ac_try="$ac_link"
21891case "(($ac_try" in
21892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893  *) ac_try_echo=$ac_try;;
21894esac
21895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896$as_echo "$ac_try_echo") >&5
21897  (eval "$ac_link") 2>conftest.er1
21898  ac_status=$?
21899  grep -v '^ *+' conftest.er1 >conftest.err
21900  rm -f conftest.er1
21901  cat conftest.err >&5
21902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903  (exit $ac_status); } && {
21904	 test -z "$ac_c_werror_flag" ||
21905	 test ! -s conftest.err
21906       } && test -s conftest$ac_exeext && {
21907	 test "$cross_compiling" = yes ||
21908	 $as_test_x conftest$ac_exeext
21909       }; then
21910  ac_cv_lib_expat_XML_ResumeParser=yes
21911else
21912  $as_echo "$as_me: failed program was:" >&5
21913sed 's/^/| /' conftest.$ac_ext >&5
21914
21915	ac_cv_lib_expat_XML_ResumeParser=no
21916fi
21917
21918rm -rf conftest.dSYM
21919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920      conftest$ac_exeext conftest.$ac_ext
21921LIBS=$ac_check_lib_save_LIBS
21922fi
21923{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ResumeParser" >&5
21924$as_echo "$ac_cv_lib_expat_XML_ResumeParser" >&6; }
21925if test "x$ac_cv_lib_expat_XML_ResumeParser" = x""yes; then
21926  cat >>confdefs.h <<_ACEOF
21927#define HAVE_LIBEXPAT 1
21928_ACEOF
21929
21930  LIBS="-lexpat $LIBS"
21931
21932else
21933  { { $as_echo "$as_me:$LINENO: error: ${EXPAT_MISSING}" >&5
21934$as_echo "$as_me: error: ${EXPAT_MISSING}" >&2;}
21935   { (exit 1); exit 1; }; }
21936fi
21937
21938if test "${ac_cv_header_expat_h+set}" = set; then
21939  { $as_echo "$as_me:$LINENO: checking for expat.h" >&5
21940$as_echo_n "checking for expat.h... " >&6; }
21941if test "${ac_cv_header_expat_h+set}" = set; then
21942  $as_echo_n "(cached) " >&6
21943fi
21944{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21945$as_echo "$ac_cv_header_expat_h" >&6; }
21946else
21947  # Is the header compilable?
21948{ $as_echo "$as_me:$LINENO: checking expat.h usability" >&5
21949$as_echo_n "checking expat.h usability... " >&6; }
21950cat >conftest.$ac_ext <<_ACEOF
21951/* confdefs.h.  */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h.  */
21956$ac_includes_default
21957#include <expat.h>
21958_ACEOF
21959rm -f conftest.$ac_objext
21960if { (ac_try="$ac_compile"
21961case "(($ac_try" in
21962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963  *) ac_try_echo=$ac_try;;
21964esac
21965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21966$as_echo "$ac_try_echo") >&5
21967  (eval "$ac_compile") 2>conftest.er1
21968  ac_status=$?
21969  grep -v '^ *+' conftest.er1 >conftest.err
21970  rm -f conftest.er1
21971  cat conftest.err >&5
21972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973  (exit $ac_status); } && {
21974	 test -z "$ac_c_werror_flag" ||
21975	 test ! -s conftest.err
21976       } && test -s conftest.$ac_objext; then
21977  ac_header_compiler=yes
21978else
21979  $as_echo "$as_me: failed program was:" >&5
21980sed 's/^/| /' conftest.$ac_ext >&5
21981
21982	ac_header_compiler=no
21983fi
21984
21985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21987$as_echo "$ac_header_compiler" >&6; }
21988
21989# Is the header present?
21990{ $as_echo "$as_me:$LINENO: checking expat.h presence" >&5
21991$as_echo_n "checking expat.h presence... " >&6; }
21992cat >conftest.$ac_ext <<_ACEOF
21993/* confdefs.h.  */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h.  */
21998#include <expat.h>
21999_ACEOF
22000if { (ac_try="$ac_cpp conftest.$ac_ext"
22001case "(($ac_try" in
22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003  *) ac_try_echo=$ac_try;;
22004esac
22005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22006$as_echo "$ac_try_echo") >&5
22007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22008  ac_status=$?
22009  grep -v '^ *+' conftest.er1 >conftest.err
22010  rm -f conftest.er1
22011  cat conftest.err >&5
22012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); } >/dev/null && {
22014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22015	 test ! -s conftest.err
22016       }; then
22017  ac_header_preproc=yes
22018else
22019  $as_echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022  ac_header_preproc=no
22023fi
22024
22025rm -f conftest.err conftest.$ac_ext
22026{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22027$as_echo "$ac_header_preproc" >&6; }
22028
22029# So?  What about this header?
22030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22031  yes:no: )
22032    { $as_echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22033$as_echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22034    { $as_echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22035$as_echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22036    ac_header_preproc=yes
22037    ;;
22038  no:yes:* )
22039    { $as_echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22040$as_echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
22041    { $as_echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
22042$as_echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
22043    { $as_echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22044$as_echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22045    { $as_echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
22046$as_echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22047    { $as_echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22048$as_echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
22049    { $as_echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22050$as_echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
22051
22052    ;;
22053esac
22054{ $as_echo "$as_me:$LINENO: checking for expat.h" >&5
22055$as_echo_n "checking for expat.h... " >&6; }
22056if test "${ac_cv_header_expat_h+set}" = set; then
22057  $as_echo_n "(cached) " >&6
22058else
22059  ac_cv_header_expat_h=$ac_header_preproc
22060fi
22061{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22062$as_echo "$ac_cv_header_expat_h" >&6; }
22063
22064fi
22065if test "x$ac_cv_header_expat_h" = x""yes; then
22066  :
22067else
22068  { { $as_echo "$as_me:$LINENO: error: ${EXPAT_MISSING}" >&5
22069$as_echo "$as_me: error: ${EXPAT_MISSING}" >&2;}
22070   { (exit 1); exit 1; }; }
22071fi
22072
22073
22074
22075
22076pkg_failed=no
22077{ $as_echo "$as_me:$LINENO: checking for URIPARSER" >&5
22078$as_echo_n "checking for URIPARSER... " >&6; }
22079
22080if test -n "$URIPARSER_CFLAGS"; then
22081    pkg_cv_URIPARSER_CFLAGS="$URIPARSER_CFLAGS"
22082 elif test -n "$PKG_CONFIG"; then
22083    if test -n "$PKG_CONFIG" && \
22084    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22085	liburiparser >= 0.7.5
22086\"") >&5
22087  ($PKG_CONFIG --exists --print-errors "
22088	liburiparser >= 0.7.5
22089") 2>&5
22090  ac_status=$?
22091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092  (exit $ac_status); }; then
22093  pkg_cv_URIPARSER_CFLAGS=`$PKG_CONFIG --cflags "
22094	liburiparser >= 0.7.5
22095" 2>/dev/null`
22096else
22097  pkg_failed=yes
22098fi
22099 else
22100    pkg_failed=untried
22101fi
22102if test -n "$URIPARSER_LIBS"; then
22103    pkg_cv_URIPARSER_LIBS="$URIPARSER_LIBS"
22104 elif test -n "$PKG_CONFIG"; then
22105    if test -n "$PKG_CONFIG" && \
22106    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22107	liburiparser >= 0.7.5
22108\"") >&5
22109  ($PKG_CONFIG --exists --print-errors "
22110	liburiparser >= 0.7.5
22111") 2>&5
22112  ac_status=$?
22113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114  (exit $ac_status); }; then
22115  pkg_cv_URIPARSER_LIBS=`$PKG_CONFIG --libs "
22116	liburiparser >= 0.7.5
22117" 2>/dev/null`
22118else
22119  pkg_failed=yes
22120fi
22121 else
22122    pkg_failed=untried
22123fi
22124
22125
22126
22127if test $pkg_failed = yes; then
22128
22129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22130        _pkg_short_errors_supported=yes
22131else
22132        _pkg_short_errors_supported=no
22133fi
22134        if test $_pkg_short_errors_supported = yes; then
22135	        URIPARSER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
22136	liburiparser >= 0.7.5
22137" 2>&1`
22138        else
22139	        URIPARSER_PKG_ERRORS=`$PKG_CONFIG --print-errors "
22140	liburiparser >= 0.7.5
22141" 2>&1`
22142        fi
22143	# Put the nasty error message in config.log where it belongs
22144	echo "$URIPARSER_PKG_ERRORS" >&5
22145
22146	{ $as_echo "$as_me:$LINENO: result: no" >&5
22147$as_echo "no" >&6; }
22148
22149	{ { $as_echo "$as_me:$LINENO: error: Please install uriparser 0.7.5 or later." >&5
22150$as_echo "$as_me: error: Please install uriparser 0.7.5 or later." >&2;}
22151   { (exit 1); exit 1; }; }
22152
22153elif test $pkg_failed = untried; then
22154
22155	{ { $as_echo "$as_me:$LINENO: error: Please install uriparser 0.7.5 or later." >&5
22156$as_echo "$as_me: error: Please install uriparser 0.7.5 or later." >&2;}
22157   { (exit 1); exit 1; }; }
22158
22159else
22160	URIPARSER_CFLAGS=$pkg_cv_URIPARSER_CFLAGS
22161	URIPARSER_LIBS=$pkg_cv_URIPARSER_LIBS
22162        { $as_echo "$as_me:$LINENO: result: yes" >&5
22163$as_echo "yes" >&6; }
22164	:
22165fi
22166
22167
22168
22169## Check for CppTest
22170if test "${XSPF_TEST_YESNO}" = "yes"; then
22171
22172pkg_failed=no
22173{ $as_echo "$as_me:$LINENO: checking for CPPTEST" >&5
22174$as_echo_n "checking for CPPTEST... " >&6; }
22175
22176if test -n "$CPPTEST_CFLAGS"; then
22177    pkg_cv_CPPTEST_CFLAGS="$CPPTEST_CFLAGS"
22178 elif test -n "$PKG_CONFIG"; then
22179    if test -n "$PKG_CONFIG" && \
22180    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22181		libcpptest >= 1.1.0
22182	\"") >&5
22183  ($PKG_CONFIG --exists --print-errors "
22184		libcpptest >= 1.1.0
22185	") 2>&5
22186  ac_status=$?
22187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188  (exit $ac_status); }; then
22189  pkg_cv_CPPTEST_CFLAGS=`$PKG_CONFIG --cflags "
22190		libcpptest >= 1.1.0
22191	" 2>/dev/null`
22192else
22193  pkg_failed=yes
22194fi
22195 else
22196    pkg_failed=untried
22197fi
22198if test -n "$CPPTEST_LIBS"; then
22199    pkg_cv_CPPTEST_LIBS="$CPPTEST_LIBS"
22200 elif test -n "$PKG_CONFIG"; then
22201    if test -n "$PKG_CONFIG" && \
22202    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22203		libcpptest >= 1.1.0
22204	\"") >&5
22205  ($PKG_CONFIG --exists --print-errors "
22206		libcpptest >= 1.1.0
22207	") 2>&5
22208  ac_status=$?
22209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210  (exit $ac_status); }; then
22211  pkg_cv_CPPTEST_LIBS=`$PKG_CONFIG --libs "
22212		libcpptest >= 1.1.0
22213	" 2>/dev/null`
22214else
22215  pkg_failed=yes
22216fi
22217 else
22218    pkg_failed=untried
22219fi
22220
22221
22222
22223if test $pkg_failed = yes; then
22224
22225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22226        _pkg_short_errors_supported=yes
22227else
22228        _pkg_short_errors_supported=no
22229fi
22230        if test $_pkg_short_errors_supported = yes; then
22231	        CPPTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
22232		libcpptest >= 1.1.0
22233	" 2>&1`
22234        else
22235	        CPPTEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "
22236		libcpptest >= 1.1.0
22237	" 2>&1`
22238        fi
22239	# Put the nasty error message in config.log where it belongs
22240	echo "$CPPTEST_PKG_ERRORS" >&5
22241
22242	{ $as_echo "$as_me:$LINENO: result: no" >&5
22243$as_echo "no" >&6; }
22244
22245		{ { $as_echo "$as_me:$LINENO: error: Please install libcpptest 1.1.0 or later." >&5
22246$as_echo "$as_me: error: Please install libcpptest 1.1.0 or later." >&2;}
22247   { (exit 1); exit 1; }; }
22248
22249elif test $pkg_failed = untried; then
22250
22251		{ { $as_echo "$as_me:$LINENO: error: Please install libcpptest 1.1.0 or later." >&5
22252$as_echo "$as_me: error: Please install libcpptest 1.1.0 or later." >&2;}
22253   { (exit 1); exit 1; }; }
22254
22255else
22256	CPPTEST_CFLAGS=$pkg_cv_CPPTEST_CFLAGS
22257	CPPTEST_LIBS=$pkg_cv_CPPTEST_LIBS
22258        { $as_echo "$as_me:$LINENO: result: yes" >&5
22259$as_echo "yes" >&6; }
22260	:
22261fi
22262fi
22263
22264
22265
22266ac_config_files="$ac_config_files xspf.pc Makefile doc/Makefile bindings/c/doc/Makefile"
22267
22268cat >confcache <<\_ACEOF
22269# This file is a shell script that caches the results of configure
22270# tests run on this system so they can be shared between configure
22271# scripts and configure runs, see configure's option --config-cache.
22272# It is not useful on other systems.  If it contains results you don't
22273# want to keep, you may remove or edit it.
22274#
22275# config.status only pays attention to the cache file if you give it
22276# the --recheck option to rerun configure.
22277#
22278# `ac_cv_env_foo' variables (set or unset) will be overridden when
22279# loading this file, other *unset* `ac_cv_foo' will be assigned the
22280# following values.
22281
22282_ACEOF
22283
22284# The following way of writing the cache mishandles newlines in values,
22285# but we know of no workaround that is simple, portable, and efficient.
22286# So, we kill variables containing newlines.
22287# Ultrix sh set writes to stderr and can't be redirected directly,
22288# and sets the high bit in the cache file unless we assign to the vars.
22289(
22290  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22291    eval ac_val=\$$ac_var
22292    case $ac_val in #(
22293    *${as_nl}*)
22294      case $ac_var in #(
22295      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22296$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22297      esac
22298      case $ac_var in #(
22299      _ | IFS | as_nl) ;; #(
22300      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22301      *) $as_unset $ac_var ;;
22302      esac ;;
22303    esac
22304  done
22305
22306  (set) 2>&1 |
22307    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22308    *${as_nl}ac_space=\ *)
22309      # `set' does not quote correctly, so add quotes (double-quote
22310      # substitution turns \\\\ into \\, and sed turns \\ into \).
22311      sed -n \
22312	"s/'/'\\\\''/g;
22313	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22314      ;; #(
22315    *)
22316      # `set' quotes correctly as required by POSIX, so do not add quotes.
22317      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22318      ;;
22319    esac |
22320    sort
22321) |
22322  sed '
22323     /^ac_cv_env_/b end
22324     t clear
22325     :clear
22326     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22327     t end
22328     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22329     :end' >>confcache
22330if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22331  if test -w "$cache_file"; then
22332    test "x$cache_file" != "x/dev/null" &&
22333      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22334$as_echo "$as_me: updating cache $cache_file" >&6;}
22335    cat confcache >$cache_file
22336  else
22337    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22338$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22339  fi
22340fi
22341rm -f confcache
22342
22343test "x$prefix" = xNONE && prefix=$ac_default_prefix
22344# Let make expand exec_prefix.
22345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22346
22347# Transform confdefs.h into DEFS.
22348# Protect against shell expansion while executing Makefile rules.
22349# Protect against Makefile macro expansion.
22350#
22351# If the first sed substitution is executed (which looks for macros that
22352# take arguments), then branch to the quote section.  Otherwise,
22353# look for a macro that doesn't take arguments.
22354ac_script='
22355:mline
22356/\\$/{
22357 N
22358 s,\\\n,,
22359 b mline
22360}
22361t clear
22362:clear
22363s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
22364t quote
22365s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
22366t quote
22367b any
22368:quote
22369s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22370s/\[/\\&/g
22371s/\]/\\&/g
22372s/\$/$$/g
22373H
22374:any
22375${
22376	g
22377	s/^\n//
22378	s/\n/ /g
22379	p
22380}
22381'
22382DEFS=`sed -n "$ac_script" confdefs.h`
22383
22384
22385ac_libobjs=
22386ac_ltlibobjs=
22387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22388  # 1. Remove the extension, and $U if already installed.
22389  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22390  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22391  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22392  #    will be set to the directory where LIBOBJS objects are built.
22393  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22394  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22395done
22396LIBOBJS=$ac_libobjs
22397
22398LTLIBOBJS=$ac_ltlibobjs
22399
22400
22401if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22402  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22403Usually this means the macro was only invoked conditionally." >&5
22404$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22405Usually this means the macro was only invoked conditionally." >&2;}
22406   { (exit 1); exit 1; }; }
22407fi
22408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22409  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22410Usually this means the macro was only invoked conditionally." >&5
22411$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22412Usually this means the macro was only invoked conditionally." >&2;}
22413   { (exit 1); exit 1; }; }
22414fi
22415if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22416  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22417Usually this means the macro was only invoked conditionally." >&5
22418$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22419Usually this means the macro was only invoked conditionally." >&2;}
22420   { (exit 1); exit 1; }; }
22421fi
22422if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22423  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22424Usually this means the macro was only invoked conditionally." >&5
22425$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22426Usually this means the macro was only invoked conditionally." >&2;}
22427   { (exit 1); exit 1; }; }
22428fi
22429if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22430  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22431Usually this means the macro was only invoked conditionally." >&5
22432$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22433Usually this means the macro was only invoked conditionally." >&2;}
22434   { (exit 1); exit 1; }; }
22435fi
22436if test -z "${XSPF_TEST_ENABLED_TRUE}" && test -z "${XSPF_TEST_ENABLED_FALSE}"; then
22437  { { $as_echo "$as_me:$LINENO: error: conditional \"XSPF_TEST_ENABLED\" was never defined.
22438Usually this means the macro was only invoked conditionally." >&5
22439$as_echo "$as_me: error: conditional \"XSPF_TEST_ENABLED\" was never defined.
22440Usually this means the macro was only invoked conditionally." >&2;}
22441   { (exit 1); exit 1; }; }
22442fi
22443if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then
22444  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_DOC\" was never defined.
22445Usually this means the macro was only invoked conditionally." >&5
22446$as_echo "$as_me: error: conditional \"GENERATE_DOC\" was never defined.
22447Usually this means the macro was only invoked conditionally." >&2;}
22448   { (exit 1); exit 1; }; }
22449fi
22450
22451: ${CONFIG_STATUS=./config.status}
22452ac_write_fail=0
22453ac_clean_files_save=$ac_clean_files
22454ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22455{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22456$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22457cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22458#! $SHELL
22459# Generated by $as_me.
22460# Run this file to recreate the current configuration.
22461# Compiler output produced by configure, useful for debugging
22462# configure, is in config.log if it exists.
22463
22464debug=false
22465ac_cs_recheck=false
22466ac_cs_silent=false
22467SHELL=\${CONFIG_SHELL-$SHELL}
22468_ACEOF
22469
22470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22471## --------------------- ##
22472## M4sh Initialization.  ##
22473## --------------------- ##
22474
22475# Be more Bourne compatible
22476DUALCASE=1; export DUALCASE # for MKS sh
22477if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22478  emulate sh
22479  NULLCMD=:
22480  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22481  # is contrary to our usage.  Disable this feature.
22482  alias -g '${1+"$@"}'='"$@"'
22483  setopt NO_GLOB_SUBST
22484else
22485  case `(set -o) 2>/dev/null` in
22486  *posix*) set -o posix ;;
22487esac
22488
22489fi
22490
22491
22492
22493
22494# PATH needs CR
22495# Avoid depending upon Character Ranges.
22496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22499as_cr_digits='0123456789'
22500as_cr_alnum=$as_cr_Letters$as_cr_digits
22501
22502as_nl='
22503'
22504export as_nl
22505# Printing a long string crashes Solaris 7 /usr/bin/printf.
22506as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22507as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22509if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22510  as_echo='printf %s\n'
22511  as_echo_n='printf %s'
22512else
22513  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22514    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22515    as_echo_n='/usr/ucb/echo -n'
22516  else
22517    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22518    as_echo_n_body='eval
22519      arg=$1;
22520      case $arg in
22521      *"$as_nl"*)
22522	expr "X$arg" : "X\\(.*\\)$as_nl";
22523	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22524      esac;
22525      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22526    '
22527    export as_echo_n_body
22528    as_echo_n='sh -c $as_echo_n_body as_echo'
22529  fi
22530  export as_echo_body
22531  as_echo='sh -c $as_echo_body as_echo'
22532fi
22533
22534# The user is always right.
22535if test "${PATH_SEPARATOR+set}" != set; then
22536  PATH_SEPARATOR=:
22537  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22538    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22539      PATH_SEPARATOR=';'
22540  }
22541fi
22542
22543# Support unset when possible.
22544if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22545  as_unset=unset
22546else
22547  as_unset=false
22548fi
22549
22550
22551# IFS
22552# We need space, tab and new line, in precisely that order.  Quoting is
22553# there to prevent editors from complaining about space-tab.
22554# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22555# splitting by setting IFS to empty value.)
22556IFS=" ""	$as_nl"
22557
22558# Find who we are.  Look in the path if we contain no directory separator.
22559case $0 in
22560  *[\\/]* ) as_myself=$0 ;;
22561  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22562for as_dir in $PATH
22563do
22564  IFS=$as_save_IFS
22565  test -z "$as_dir" && as_dir=.
22566  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22567done
22568IFS=$as_save_IFS
22569
22570     ;;
22571esac
22572# We did not find ourselves, most probably we were run as `sh COMMAND'
22573# in which case we are not to be found in the path.
22574if test "x$as_myself" = x; then
22575  as_myself=$0
22576fi
22577if test ! -f "$as_myself"; then
22578  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22579  { (exit 1); exit 1; }
22580fi
22581
22582# Work around bugs in pre-3.0 UWIN ksh.
22583for as_var in ENV MAIL MAILPATH
22584do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22585done
22586PS1='$ '
22587PS2='> '
22588PS4='+ '
22589
22590# NLS nuisances.
22591LC_ALL=C
22592export LC_ALL
22593LANGUAGE=C
22594export LANGUAGE
22595
22596# Required to use basename.
22597if expr a : '\(a\)' >/dev/null 2>&1 &&
22598   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22599  as_expr=expr
22600else
22601  as_expr=false
22602fi
22603
22604if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22605  as_basename=basename
22606else
22607  as_basename=false
22608fi
22609
22610
22611# Name of the executable.
22612as_me=`$as_basename -- "$0" ||
22613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22614	 X"$0" : 'X\(//\)$' \| \
22615	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22616$as_echo X/"$0" |
22617    sed '/^.*\/\([^/][^/]*\)\/*$/{
22618	    s//\1/
22619	    q
22620	  }
22621	  /^X\/\(\/\/\)$/{
22622	    s//\1/
22623	    q
22624	  }
22625	  /^X\/\(\/\).*/{
22626	    s//\1/
22627	    q
22628	  }
22629	  s/.*/./; q'`
22630
22631# CDPATH.
22632$as_unset CDPATH
22633
22634
22635
22636  as_lineno_1=$LINENO
22637  as_lineno_2=$LINENO
22638  test "x$as_lineno_1" != "x$as_lineno_2" &&
22639  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22640
22641  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22642  # uniformly replaced by the line number.  The first 'sed' inserts a
22643  # line-number line after each line using $LINENO; the second 'sed'
22644  # does the real work.  The second script uses 'N' to pair each
22645  # line-number line with the line containing $LINENO, and appends
22646  # trailing '-' during substitution so that $LINENO is not a special
22647  # case at line end.
22648  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22649  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22650  # E. McMahon (1931-1989) for sed's syntax.  :-)
22651  sed -n '
22652    p
22653    /[$]LINENO/=
22654  ' <$as_myself |
22655    sed '
22656      s/[$]LINENO.*/&-/
22657      t lineno
22658      b
22659      :lineno
22660      N
22661      :loop
22662      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22663      t loop
22664      s/-\n.*//
22665    ' >$as_me.lineno &&
22666  chmod +x "$as_me.lineno" ||
22667    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22668   { (exit 1); exit 1; }; }
22669
22670  # Don't try to exec as it changes $[0], causing all sort of problems
22671  # (the dirname of $[0] is not the place where we might find the
22672  # original and so on.  Autoconf is especially sensitive to this).
22673  . "./$as_me.lineno"
22674  # Exit status is that of the last command.
22675  exit
22676}
22677
22678
22679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22680  as_dirname=dirname
22681else
22682  as_dirname=false
22683fi
22684
22685ECHO_C= ECHO_N= ECHO_T=
22686case `echo -n x` in
22687-n*)
22688  case `echo 'x\c'` in
22689  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22690  *)   ECHO_C='\c';;
22691  esac;;
22692*)
22693  ECHO_N='-n';;
22694esac
22695if expr a : '\(a\)' >/dev/null 2>&1 &&
22696   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22697  as_expr=expr
22698else
22699  as_expr=false
22700fi
22701
22702rm -f conf$$ conf$$.exe conf$$.file
22703if test -d conf$$.dir; then
22704  rm -f conf$$.dir/conf$$.file
22705else
22706  rm -f conf$$.dir
22707  mkdir conf$$.dir 2>/dev/null
22708fi
22709if (echo >conf$$.file) 2>/dev/null; then
22710  if ln -s conf$$.file conf$$ 2>/dev/null; then
22711    as_ln_s='ln -s'
22712    # ... but there are two gotchas:
22713    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22714    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22715    # In both cases, we have to default to `cp -p'.
22716    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22717      as_ln_s='cp -p'
22718  elif ln conf$$.file conf$$ 2>/dev/null; then
22719    as_ln_s=ln
22720  else
22721    as_ln_s='cp -p'
22722  fi
22723else
22724  as_ln_s='cp -p'
22725fi
22726rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22727rmdir conf$$.dir 2>/dev/null
22728
22729if mkdir -p . 2>/dev/null; then
22730  as_mkdir_p=:
22731else
22732  test -d ./-p && rmdir ./-p
22733  as_mkdir_p=false
22734fi
22735
22736if test -x / >/dev/null 2>&1; then
22737  as_test_x='test -x'
22738else
22739  if ls -dL / >/dev/null 2>&1; then
22740    as_ls_L_option=L
22741  else
22742    as_ls_L_option=
22743  fi
22744  as_test_x='
22745    eval sh -c '\''
22746      if test -d "$1"; then
22747	test -d "$1/.";
22748      else
22749	case $1 in
22750	-*)set "./$1";;
22751	esac;
22752	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22753	???[sx]*):;;*)false;;esac;fi
22754    '\'' sh
22755  '
22756fi
22757as_executable_p=$as_test_x
22758
22759# Sed expression to map a string onto a valid CPP name.
22760as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22761
22762# Sed expression to map a string onto a valid variable name.
22763as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22764
22765
22766exec 6>&1
22767
22768# Save the log message, to keep $[0] and so on meaningful, and to
22769# report actual input values of CONFIG_FILES etc. instead of their
22770# values after options handling.
22771ac_log="
22772This file was extended by $as_me, which was
22773generated by GNU Autoconf 2.63.  Invocation command line was
22774
22775  CONFIG_FILES    = $CONFIG_FILES
22776  CONFIG_HEADERS  = $CONFIG_HEADERS
22777  CONFIG_LINKS    = $CONFIG_LINKS
22778  CONFIG_COMMANDS = $CONFIG_COMMANDS
22779  $ $0 $@
22780
22781on `(hostname || uname -n) 2>/dev/null | sed 1q`
22782"
22783
22784_ACEOF
22785
22786case $ac_config_files in *"
22787"*) set x $ac_config_files; shift; ac_config_files=$*;;
22788esac
22789
22790
22791
22792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22793# Files that config.status was made for.
22794config_files="$ac_config_files"
22795config_commands="$ac_config_commands"
22796
22797_ACEOF
22798
22799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22800ac_cs_usage="\
22801\`$as_me' instantiates files from templates according to the
22802current configuration.
22803
22804Usage: $0 [OPTION]... [FILE]...
22805
22806  -h, --help       print this help, then exit
22807  -V, --version    print version number and configuration settings, then exit
22808  -q, --quiet, --silent
22809                   do not print progress messages
22810  -d, --debug      don't remove temporary files
22811      --recheck    update $as_me by reconfiguring in the same conditions
22812      --file=FILE[:TEMPLATE]
22813                   instantiate the configuration file FILE
22814
22815Configuration files:
22816$config_files
22817
22818Configuration commands:
22819$config_commands
22820
22821Report bugs to <bug-autoconf@gnu.org>."
22822
22823_ACEOF
22824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22825ac_cs_version="\\
22826config.status
22827configured by $0, generated by GNU Autoconf 2.63,
22828  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22829
22830Copyright (C) 2008 Free Software Foundation, Inc.
22831This config.status script is free software; the Free Software Foundation
22832gives unlimited permission to copy, distribute and modify it."
22833
22834ac_pwd='$ac_pwd'
22835srcdir='$srcdir'
22836INSTALL='$INSTALL'
22837MKDIR_P='$MKDIR_P'
22838AWK='$AWK'
22839test -n "\$AWK" || AWK=awk
22840_ACEOF
22841
22842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22843# The default lists apply if the user does not specify any file.
22844ac_need_defaults=:
22845while test $# != 0
22846do
22847  case $1 in
22848  --*=*)
22849    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22850    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22851    ac_shift=:
22852    ;;
22853  *)
22854    ac_option=$1
22855    ac_optarg=$2
22856    ac_shift=shift
22857    ;;
22858  esac
22859
22860  case $ac_option in
22861  # Handling of the options.
22862  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22863    ac_cs_recheck=: ;;
22864  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22865    $as_echo "$ac_cs_version"; exit ;;
22866  --debug | --debu | --deb | --de | --d | -d )
22867    debug=: ;;
22868  --file | --fil | --fi | --f )
22869    $ac_shift
22870    case $ac_optarg in
22871    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22872    esac
22873    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22874    ac_need_defaults=false;;
22875  --he | --h |  --help | --hel | -h )
22876    $as_echo "$ac_cs_usage"; exit ;;
22877  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22878  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22879    ac_cs_silent=: ;;
22880
22881  # This is an error.
22882  -*) { $as_echo "$as_me: error: unrecognized option: $1
22883Try \`$0 --help' for more information." >&2
22884   { (exit 1); exit 1; }; } ;;
22885
22886  *) ac_config_targets="$ac_config_targets $1"
22887     ac_need_defaults=false ;;
22888
22889  esac
22890  shift
22891done
22892
22893ac_configure_extra_args=
22894
22895if $ac_cs_silent; then
22896  exec 6>/dev/null
22897  ac_configure_extra_args="$ac_configure_extra_args --silent"
22898fi
22899
22900_ACEOF
22901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22902if \$ac_cs_recheck; then
22903  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22904  shift
22905  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22906  CONFIG_SHELL='$SHELL'
22907  export CONFIG_SHELL
22908  exec "\$@"
22909fi
22910
22911_ACEOF
22912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22913exec 5>>config.log
22914{
22915  echo
22916  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22917## Running $as_me. ##
22918_ASBOX
22919  $as_echo "$ac_log"
22920} >&5
22921
22922_ACEOF
22923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22924#
22925# INIT-COMMANDS
22926#
22927AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22928
22929_ACEOF
22930
22931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22932
22933# Handling of arguments.
22934for ac_config_target in $ac_config_targets
22935do
22936  case $ac_config_target in
22937    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22938    "xspf.pc") CONFIG_FILES="$CONFIG_FILES xspf.pc" ;;
22939    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22940    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22941    "bindings/c/doc/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/c/doc/Makefile" ;;
22942
22943  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22944$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22945   { (exit 1); exit 1; }; };;
22946  esac
22947done
22948
22949
22950# If the user did not use the arguments to specify the items to instantiate,
22951# then the envvar interface is used.  Set only those that are not.
22952# We use the long form for the default assignment because of an extremely
22953# bizarre bug on SunOS 4.1.3.
22954if $ac_need_defaults; then
22955  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22956  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22957fi
22958
22959# Have a temporary directory for convenience.  Make it in the build tree
22960# simply because there is no reason against having it here, and in addition,
22961# creating and moving files from /tmp can sometimes cause problems.
22962# Hook for its removal unless debugging.
22963# Note that there is a small window in which the directory will not be cleaned:
22964# after its creation but before its name has been assigned to `$tmp'.
22965$debug ||
22966{
22967  tmp=
22968  trap 'exit_status=$?
22969  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22970' 0
22971  trap '{ (exit 1); exit 1; }' 1 2 13 15
22972}
22973# Create a (secure) tmp directory for tmp files.
22974
22975{
22976  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22977  test -n "$tmp" && test -d "$tmp"
22978}  ||
22979{
22980  tmp=./conf$$-$RANDOM
22981  (umask 077 && mkdir "$tmp")
22982} ||
22983{
22984   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22985   { (exit 1); exit 1; }
22986}
22987
22988# Set up the scripts for CONFIG_FILES section.
22989# No need to generate them if there are no CONFIG_FILES.
22990# This happens for instance with `./config.status config.h'.
22991if test -n "$CONFIG_FILES"; then
22992
22993
22994ac_cr='
22995'
22996ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22997if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22998  ac_cs_awk_cr='\\r'
22999else
23000  ac_cs_awk_cr=$ac_cr
23001fi
23002
23003echo 'BEGIN {' >"$tmp/subs1.awk" &&
23004_ACEOF
23005
23006
23007{
23008  echo "cat >conf$$subs.awk <<_ACEOF" &&
23009  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23010  echo "_ACEOF"
23011} >conf$$subs.sh ||
23012  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23013$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23014   { (exit 1); exit 1; }; }
23015ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23016ac_delim='%!_!# '
23017for ac_last_try in false false false false false :; do
23018  . ./conf$$subs.sh ||
23019    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23020$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23021   { (exit 1); exit 1; }; }
23022
23023  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23024  if test $ac_delim_n = $ac_delim_num; then
23025    break
23026  elif $ac_last_try; then
23027    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23028$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23029   { (exit 1); exit 1; }; }
23030  else
23031    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23032  fi
23033done
23034rm -f conf$$subs.sh
23035
23036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23037cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23038_ACEOF
23039sed -n '
23040h
23041s/^/S["/; s/!.*/"]=/
23042p
23043g
23044s/^[^!]*!//
23045:repl
23046t repl
23047s/'"$ac_delim"'$//
23048t delim
23049:nl
23050h
23051s/\(.\{148\}\).*/\1/
23052t more1
23053s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23054p
23055n
23056b repl
23057:more1
23058s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23059p
23060g
23061s/.\{148\}//
23062t nl
23063:delim
23064h
23065s/\(.\{148\}\).*/\1/
23066t more2
23067s/["\\]/\\&/g; s/^/"/; s/$/"/
23068p
23069b
23070:more2
23071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23072p
23073g
23074s/.\{148\}//
23075t delim
23076' <conf$$subs.awk | sed '
23077/^[^""]/{
23078  N
23079  s/\n//
23080}
23081' >>$CONFIG_STATUS || ac_write_fail=1
23082rm -f conf$$subs.awk
23083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084_ACAWK
23085cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23086  for (key in S) S_is_set[key] = 1
23087  FS = ""
23088
23089}
23090{
23091  line = $ 0
23092  nfields = split(line, field, "@")
23093  substed = 0
23094  len = length(field[1])
23095  for (i = 2; i < nfields; i++) {
23096    key = field[i]
23097    keylen = length(key)
23098    if (S_is_set[key]) {
23099      value = S[key]
23100      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23101      len += length(value) + length(field[++i])
23102      substed = 1
23103    } else
23104      len += 1 + keylen
23105  }
23106
23107  print line
23108}
23109
23110_ACAWK
23111_ACEOF
23112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23113if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23114  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23115else
23116  cat
23117fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23118  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23119$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23120   { (exit 1); exit 1; }; }
23121_ACEOF
23122
23123# VPATH may cause trouble with some makes, so we remove $(srcdir),
23124# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23125# trailing colons and then remove the whole line if VPATH becomes empty
23126# (actually we leave an empty line to preserve line numbers).
23127if test "x$srcdir" = x.; then
23128  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23129s/:*\$(srcdir):*/:/
23130s/:*\${srcdir}:*/:/
23131s/:*@srcdir@:*/:/
23132s/^\([^=]*=[	 ]*\):*/\1/
23133s/:*$//
23134s/^[^=]*=[	 ]*$//
23135}'
23136fi
23137
23138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23139fi # test -n "$CONFIG_FILES"
23140
23141
23142eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
23143shift
23144for ac_tag
23145do
23146  case $ac_tag in
23147  :[FHLC]) ac_mode=$ac_tag; continue;;
23148  esac
23149  case $ac_mode$ac_tag in
23150  :[FHL]*:*);;
23151  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23152$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23153   { (exit 1); exit 1; }; };;
23154  :[FH]-) ac_tag=-:-;;
23155  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23156  esac
23157  ac_save_IFS=$IFS
23158  IFS=:
23159  set x $ac_tag
23160  IFS=$ac_save_IFS
23161  shift
23162  ac_file=$1
23163  shift
23164
23165  case $ac_mode in
23166  :L) ac_source=$1;;
23167  :[FH])
23168    ac_file_inputs=
23169    for ac_f
23170    do
23171      case $ac_f in
23172      -) ac_f="$tmp/stdin";;
23173      *) # Look for the file first in the build tree, then in the source tree
23174	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23175	 # because $ac_f cannot contain `:'.
23176	 test -f "$ac_f" ||
23177	   case $ac_f in
23178	   [\\/$]*) false;;
23179	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23180	   esac ||
23181	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23182$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23183   { (exit 1); exit 1; }; };;
23184      esac
23185      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23186      ac_file_inputs="$ac_file_inputs '$ac_f'"
23187    done
23188
23189    # Let's still pretend it is `configure' which instantiates (i.e., don't
23190    # use $as_me), people would be surprised to read:
23191    #    /* config.h.  Generated by config.status.  */
23192    configure_input='Generated from '`
23193	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23194	`' by configure.'
23195    if test x"$ac_file" != x-; then
23196      configure_input="$ac_file.  $configure_input"
23197      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23198$as_echo "$as_me: creating $ac_file" >&6;}
23199    fi
23200    # Neutralize special characters interpreted by sed in replacement strings.
23201    case $configure_input in #(
23202    *\&* | *\|* | *\\* )
23203       ac_sed_conf_input=`$as_echo "$configure_input" |
23204       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23205    *) ac_sed_conf_input=$configure_input;;
23206    esac
23207
23208    case $ac_tag in
23209    *:-:* | *:-) cat >"$tmp/stdin" \
23210      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23211$as_echo "$as_me: error: could not create $ac_file" >&2;}
23212   { (exit 1); exit 1; }; } ;;
23213    esac
23214    ;;
23215  esac
23216
23217  ac_dir=`$as_dirname -- "$ac_file" ||
23218$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219	 X"$ac_file" : 'X\(//\)[^/]' \| \
23220	 X"$ac_file" : 'X\(//\)$' \| \
23221	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23222$as_echo X"$ac_file" |
23223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23224	    s//\1/
23225	    q
23226	  }
23227	  /^X\(\/\/\)[^/].*/{
23228	    s//\1/
23229	    q
23230	  }
23231	  /^X\(\/\/\)$/{
23232	    s//\1/
23233	    q
23234	  }
23235	  /^X\(\/\).*/{
23236	    s//\1/
23237	    q
23238	  }
23239	  s/.*/./; q'`
23240  { as_dir="$ac_dir"
23241  case $as_dir in #(
23242  -*) as_dir=./$as_dir;;
23243  esac
23244  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23245    as_dirs=
23246    while :; do
23247      case $as_dir in #(
23248      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23249      *) as_qdir=$as_dir;;
23250      esac
23251      as_dirs="'$as_qdir' $as_dirs"
23252      as_dir=`$as_dirname -- "$as_dir" ||
23253$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254	 X"$as_dir" : 'X\(//\)[^/]' \| \
23255	 X"$as_dir" : 'X\(//\)$' \| \
23256	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23257$as_echo X"$as_dir" |
23258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259	    s//\1/
23260	    q
23261	  }
23262	  /^X\(\/\/\)[^/].*/{
23263	    s//\1/
23264	    q
23265	  }
23266	  /^X\(\/\/\)$/{
23267	    s//\1/
23268	    q
23269	  }
23270	  /^X\(\/\).*/{
23271	    s//\1/
23272	    q
23273	  }
23274	  s/.*/./; q'`
23275      test -d "$as_dir" && break
23276    done
23277    test -z "$as_dirs" || eval "mkdir $as_dirs"
23278  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23279$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23280   { (exit 1); exit 1; }; }; }
23281  ac_builddir=.
23282
23283case "$ac_dir" in
23284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23285*)
23286  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23287  # A ".." for each directory in $ac_dir_suffix.
23288  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23289  case $ac_top_builddir_sub in
23290  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23291  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23292  esac ;;
23293esac
23294ac_abs_top_builddir=$ac_pwd
23295ac_abs_builddir=$ac_pwd$ac_dir_suffix
23296# for backward compatibility:
23297ac_top_builddir=$ac_top_build_prefix
23298
23299case $srcdir in
23300  .)  # We are building in place.
23301    ac_srcdir=.
23302    ac_top_srcdir=$ac_top_builddir_sub
23303    ac_abs_top_srcdir=$ac_pwd ;;
23304  [\\/]* | ?:[\\/]* )  # Absolute name.
23305    ac_srcdir=$srcdir$ac_dir_suffix;
23306    ac_top_srcdir=$srcdir
23307    ac_abs_top_srcdir=$srcdir ;;
23308  *) # Relative name.
23309    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23310    ac_top_srcdir=$ac_top_build_prefix$srcdir
23311    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23312esac
23313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23314
23315
23316  case $ac_mode in
23317  :F)
23318  #
23319  # CONFIG_FILE
23320  #
23321
23322  case $INSTALL in
23323  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23324  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23325  esac
23326  ac_MKDIR_P=$MKDIR_P
23327  case $MKDIR_P in
23328  [\\/$]* | ?:[\\/]* ) ;;
23329  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23330  esac
23331_ACEOF
23332
23333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23334# If the template does not know about datarootdir, expand it.
23335# FIXME: This hack should be removed a few years after 2.60.
23336ac_datarootdir_hack=; ac_datarootdir_seen=
23337
23338ac_sed_dataroot='
23339/datarootdir/ {
23340  p
23341  q
23342}
23343/@datadir@/p
23344/@docdir@/p
23345/@infodir@/p
23346/@localedir@/p
23347/@mandir@/p
23348'
23349case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23350*datarootdir*) ac_datarootdir_seen=yes;;
23351*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23352  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23353$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23354_ACEOF
23355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23356  ac_datarootdir_hack='
23357  s&@datadir@&$datadir&g
23358  s&@docdir@&$docdir&g
23359  s&@infodir@&$infodir&g
23360  s&@localedir@&$localedir&g
23361  s&@mandir@&$mandir&g
23362    s&\\\${datarootdir}&$datarootdir&g' ;;
23363esac
23364_ACEOF
23365
23366# Neutralize VPATH when `$srcdir' = `.'.
23367# Shell code in configure.ac might set extrasub.
23368# FIXME: do we really want to maintain this feature?
23369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23370ac_sed_extra="$ac_vpsub
23371$extrasub
23372_ACEOF
23373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23374:t
23375/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23376s|@configure_input@|$ac_sed_conf_input|;t t
23377s&@top_builddir@&$ac_top_builddir_sub&;t t
23378s&@top_build_prefix@&$ac_top_build_prefix&;t t
23379s&@srcdir@&$ac_srcdir&;t t
23380s&@abs_srcdir@&$ac_abs_srcdir&;t t
23381s&@top_srcdir@&$ac_top_srcdir&;t t
23382s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23383s&@builddir@&$ac_builddir&;t t
23384s&@abs_builddir@&$ac_abs_builddir&;t t
23385s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23386s&@INSTALL@&$ac_INSTALL&;t t
23387s&@MKDIR_P@&$ac_MKDIR_P&;t t
23388$ac_datarootdir_hack
23389"
23390eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23391  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23392$as_echo "$as_me: error: could not create $ac_file" >&2;}
23393   { (exit 1); exit 1; }; }
23394
23395test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23396  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23397  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23398  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23399which seems to be undefined.  Please make sure it is defined." >&5
23400$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23401which seems to be undefined.  Please make sure it is defined." >&2;}
23402
23403  rm -f "$tmp/stdin"
23404  case $ac_file in
23405  -) cat "$tmp/out" && rm -f "$tmp/out";;
23406  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23407  esac \
23408  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23409$as_echo "$as_me: error: could not create $ac_file" >&2;}
23410   { (exit 1); exit 1; }; }
23411 ;;
23412
23413
23414  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23415$as_echo "$as_me: executing $ac_file commands" >&6;}
23416 ;;
23417  esac
23418
23419
23420  case $ac_file$ac_mode in
23421    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23422# are listed without --file.  Let's play safe and only enable the eval
23423# if we detect the quoting.
23424case $CONFIG_FILES in
23425*\'*) eval set x "$CONFIG_FILES" ;;
23426*)   set x $CONFIG_FILES ;;
23427esac
23428shift
23429for mf
23430do
23431  # Strip MF so we end up with the name of the file.
23432  mf=`echo "$mf" | sed -e 's/:.*$//'`
23433  # Check whether this is an Automake generated Makefile or not.
23434  # We used to match only the files named `Makefile.in', but
23435  # some people rename them; so instead we look at the file content.
23436  # Grep'ing the first line is not enough: some people post-process
23437  # each Makefile.in and add a new line on top of each file to say so.
23438  # Grep'ing the whole file is not good either: AIX grep has a line
23439  # limit of 2048, but all sed's we know have understand at least 4000.
23440  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23441    dirpart=`$as_dirname -- "$mf" ||
23442$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23443	 X"$mf" : 'X\(//\)[^/]' \| \
23444	 X"$mf" : 'X\(//\)$' \| \
23445	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23446$as_echo X"$mf" |
23447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23448	    s//\1/
23449	    q
23450	  }
23451	  /^X\(\/\/\)[^/].*/{
23452	    s//\1/
23453	    q
23454	  }
23455	  /^X\(\/\/\)$/{
23456	    s//\1/
23457	    q
23458	  }
23459	  /^X\(\/\).*/{
23460	    s//\1/
23461	    q
23462	  }
23463	  s/.*/./; q'`
23464  else
23465    continue
23466  fi
23467  # Extract the definition of DEPDIR, am__include, and am__quote
23468  # from the Makefile without running `make'.
23469  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23470  test -z "$DEPDIR" && continue
23471  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23472  test -z "am__include" && continue
23473  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23474  # When using ansi2knr, U may be empty or an underscore; expand it
23475  U=`sed -n 's/^U = //p' < "$mf"`
23476  # Find all dependency output files, they are included files with
23477  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23478  # simplest approach to changing $(DEPDIR) to its actual value in the
23479  # expansion.
23480  for file in `sed -n "
23481    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23482       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23483    # Make sure the directory exists.
23484    test -f "$dirpart/$file" && continue
23485    fdir=`$as_dirname -- "$file" ||
23486$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23487	 X"$file" : 'X\(//\)[^/]' \| \
23488	 X"$file" : 'X\(//\)$' \| \
23489	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23490$as_echo X"$file" |
23491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23492	    s//\1/
23493	    q
23494	  }
23495	  /^X\(\/\/\)[^/].*/{
23496	    s//\1/
23497	    q
23498	  }
23499	  /^X\(\/\/\)$/{
23500	    s//\1/
23501	    q
23502	  }
23503	  /^X\(\/\).*/{
23504	    s//\1/
23505	    q
23506	  }
23507	  s/.*/./; q'`
23508    { as_dir=$dirpart/$fdir
23509  case $as_dir in #(
23510  -*) as_dir=./$as_dir;;
23511  esac
23512  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23513    as_dirs=
23514    while :; do
23515      case $as_dir in #(
23516      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23517      *) as_qdir=$as_dir;;
23518      esac
23519      as_dirs="'$as_qdir' $as_dirs"
23520      as_dir=`$as_dirname -- "$as_dir" ||
23521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23522	 X"$as_dir" : 'X\(//\)[^/]' \| \
23523	 X"$as_dir" : 'X\(//\)$' \| \
23524	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23525$as_echo X"$as_dir" |
23526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23527	    s//\1/
23528	    q
23529	  }
23530	  /^X\(\/\/\)[^/].*/{
23531	    s//\1/
23532	    q
23533	  }
23534	  /^X\(\/\/\)$/{
23535	    s//\1/
23536	    q
23537	  }
23538	  /^X\(\/\).*/{
23539	    s//\1/
23540	    q
23541	  }
23542	  s/.*/./; q'`
23543      test -d "$as_dir" && break
23544    done
23545    test -z "$as_dirs" || eval "mkdir $as_dirs"
23546  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23547$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23548   { (exit 1); exit 1; }; }; }
23549    # echo "creating $dirpart/$file"
23550    echo '# dummy' > "$dirpart/$file"
23551  done
23552done
23553 ;;
23554
23555  esac
23556done # for ac_tag
23557
23558
23559{ (exit 0); exit 0; }
23560_ACEOF
23561chmod +x $CONFIG_STATUS
23562ac_clean_files=$ac_clean_files_save
23563
23564test $ac_write_fail = 0 ||
23565  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23566$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23567   { (exit 1); exit 1; }; }
23568
23569
23570# configure is writing to config.log, and then calls config.status.
23571# config.status does its own redirection, appending to config.log.
23572# Unfortunately, on DOS this fails, as config.log is still kept open
23573# by configure, so config.status won't be able to write to it; its
23574# output is simply discarded.  So we exec the FD to /dev/null,
23575# effectively closing config.log, so it can be properly (re)opened and
23576# appended to by config.status.  When coming back to configure, we
23577# need to make the FD available again.
23578if test "$no_create" != yes; then
23579  ac_cs_success=:
23580  ac_config_status_args=
23581  test "$silent" = yes &&
23582    ac_config_status_args="$ac_config_status_args --quiet"
23583  exec 5>/dev/null
23584  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23585  exec 5>>config.log
23586  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23587  # would make configure fail if this is the last instruction.
23588  $ac_cs_success || { (exit 1); exit 1; }
23589fi
23590
23591#
23592# CONFIG_SUBDIRS section.
23593#
23594if test "$no_recursion" != yes; then
23595
23596  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23597  # so they do not pile up.
23598  ac_sub_configure_args=
23599  ac_prev=
23600  eval "set x $ac_configure_args"
23601  shift
23602  for ac_arg
23603  do
23604    if test -n "$ac_prev"; then
23605      ac_prev=
23606      continue
23607    fi
23608    case $ac_arg in
23609    -cache-file | --cache-file | --cache-fil | --cache-fi \
23610    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23611      ac_prev=cache_file ;;
23612    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23613    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23614    | --c=*)
23615      ;;
23616    --config-cache | -C)
23617      ;;
23618    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23619      ac_prev=srcdir ;;
23620    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23621      ;;
23622    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23623      ac_prev=prefix ;;
23624    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23625      ;;
23626    --disable-option-checking)
23627      ;;
23628    *)
23629      case $ac_arg in
23630      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23631      esac
23632      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23633    esac
23634  done
23635
23636  # Always prepend --prefix to ensure using the same prefix
23637  # in subdir configurations.
23638  ac_arg="--prefix=$prefix"
23639  case $ac_arg in
23640  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23641  esac
23642  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23643
23644  # Pass --silent
23645  if test "$silent" = yes; then
23646    ac_sub_configure_args="--silent $ac_sub_configure_args"
23647  fi
23648
23649  # Always prepend --disable-option-checking to silence warnings, since
23650  # different subdirs can have different --enable and --with options.
23651  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23652
23653  ac_popdir=`pwd`
23654  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23655
23656    # Do not complain, so a configure script can configure whichever
23657    # parts of a large source tree are present.
23658    test -d "$srcdir/$ac_dir" || continue
23659
23660    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23661    $as_echo "$as_me:$LINENO: $ac_msg" >&5
23662    $as_echo "$ac_msg" >&6
23663    { as_dir="$ac_dir"
23664  case $as_dir in #(
23665  -*) as_dir=./$as_dir;;
23666  esac
23667  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23668    as_dirs=
23669    while :; do
23670      case $as_dir in #(
23671      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23672      *) as_qdir=$as_dir;;
23673      esac
23674      as_dirs="'$as_qdir' $as_dirs"
23675      as_dir=`$as_dirname -- "$as_dir" ||
23676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677	 X"$as_dir" : 'X\(//\)[^/]' \| \
23678	 X"$as_dir" : 'X\(//\)$' \| \
23679	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23680$as_echo X"$as_dir" |
23681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23682	    s//\1/
23683	    q
23684	  }
23685	  /^X\(\/\/\)[^/].*/{
23686	    s//\1/
23687	    q
23688	  }
23689	  /^X\(\/\/\)$/{
23690	    s//\1/
23691	    q
23692	  }
23693	  /^X\(\/\).*/{
23694	    s//\1/
23695	    q
23696	  }
23697	  s/.*/./; q'`
23698      test -d "$as_dir" && break
23699    done
23700    test -z "$as_dirs" || eval "mkdir $as_dirs"
23701  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23702$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23703   { (exit 1); exit 1; }; }; }
23704    ac_builddir=.
23705
23706case "$ac_dir" in
23707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23708*)
23709  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23710  # A ".." for each directory in $ac_dir_suffix.
23711  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23712  case $ac_top_builddir_sub in
23713  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23714  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23715  esac ;;
23716esac
23717ac_abs_top_builddir=$ac_pwd
23718ac_abs_builddir=$ac_pwd$ac_dir_suffix
23719# for backward compatibility:
23720ac_top_builddir=$ac_top_build_prefix
23721
23722case $srcdir in
23723  .)  # We are building in place.
23724    ac_srcdir=.
23725    ac_top_srcdir=$ac_top_builddir_sub
23726    ac_abs_top_srcdir=$ac_pwd ;;
23727  [\\/]* | ?:[\\/]* )  # Absolute name.
23728    ac_srcdir=$srcdir$ac_dir_suffix;
23729    ac_top_srcdir=$srcdir
23730    ac_abs_top_srcdir=$srcdir ;;
23731  *) # Relative name.
23732    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23733    ac_top_srcdir=$ac_top_build_prefix$srcdir
23734    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23735esac
23736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23737
23738
23739    cd "$ac_dir"
23740
23741    # Check for guested configure; otherwise get Cygnus style configure.
23742    if test -f "$ac_srcdir/configure.gnu"; then
23743      ac_sub_configure=$ac_srcdir/configure.gnu
23744    elif test -f "$ac_srcdir/configure"; then
23745      ac_sub_configure=$ac_srcdir/configure
23746    elif test -f "$ac_srcdir/configure.in"; then
23747      # This should be Cygnus configure.
23748      ac_sub_configure=$ac_aux_dir/configure
23749    else
23750      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23751$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23752      ac_sub_configure=
23753    fi
23754
23755    # The recursion is here.
23756    if test -n "$ac_sub_configure"; then
23757      # Make the cache file name correct relative to the subdirectory.
23758      case $cache_file in
23759      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23760      *) # Relative name.
23761	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23762      esac
23763
23764      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23765$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23766      # The eval makes quoting arguments work.
23767      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23768	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23769	{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23770$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23771   { (exit 1); exit 1; }; }
23772    fi
23773
23774    cd "$ac_popdir"
23775  done
23776fi
23777if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23778  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23779$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23780fi
23781
23782
23783cat <<CONFIG
23784===========================================================================
23785
23786Configuration
23787  Prefix ........... ${prefix}
23788  Test suite ....... ${XSPF_TEST_YESNO}
23789  Documentation .... ${XSPF_DOC_YESNO}
23790
23791CONFIG
23792
23793cat <<"INFO"
23794Continue with
23795  make
23796  make check
23797  sudo make install
23798
23799INFO
23800