configure revision 4e411241
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libxkbfile 1.0.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libxkbfile'
752PACKAGE_TARNAME='libxkbfile'
753PACKAGE_VERSION='1.0.6'
754PACKAGE_STRING='libxkbfile 1.0.6'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757# Factoring default headers for most tests.
758ac_includes_default="\
759#include <stdio.h>
760#ifdef HAVE_SYS_TYPES_H
761# include <sys/types.h>
762#endif
763#ifdef HAVE_SYS_STAT_H
764# include <sys/stat.h>
765#endif
766#ifdef STDC_HEADERS
767# include <stdlib.h>
768# include <stddef.h>
769#else
770# ifdef HAVE_STDLIB_H
771#  include <stdlib.h>
772# endif
773#endif
774#ifdef HAVE_STRING_H
775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776#  include <memory.h>
777# endif
778# include <string.h>
779#endif
780#ifdef HAVE_STRINGS_H
781# include <strings.h>
782#endif
783#ifdef HAVE_INTTYPES_H
784# include <inttypes.h>
785#endif
786#ifdef HAVE_STDINT_H
787# include <stdint.h>
788#endif
789#ifdef HAVE_UNISTD_H
790# include <unistd.h>
791#endif"
792
793ac_subst_vars='am__EXEEXT_FALSE
794am__EXEEXT_TRUE
795LTLIBOBJS
796LIBOBJS
797XKBFILE_LIBS
798XKBFILE_CFLAGS
799PKG_CONFIG
800ADMIN_MAN_DIR
801DRIVER_MAN_DIR
802MISC_MAN_DIR
803FILE_MAN_DIR
804LIB_MAN_DIR
805APP_MAN_DIR
806ADMIN_MAN_SUFFIX
807DRIVER_MAN_SUFFIX
808MISC_MAN_SUFFIX
809FILE_MAN_SUFFIX
810LIB_MAN_SUFFIX
811APP_MAN_SUFFIX
812distcleancheck_listfiles
813CHANGELOG_CMD
814AM_BACKSLASH
815AM_DEFAULT_VERBOSITY
816CWARNFLAGS
817LIBTOOL
818ac_ct_F77
819FFLAGS
820F77
821CXXCPP
822am__fastdepCXX_FALSE
823am__fastdepCXX_TRUE
824CXXDEPMODE
825ac_ct_CXX
826CXXFLAGS
827CXX
828CPP
829NMEDIT
830DSYMUTIL
831RANLIB
832AR
833ECHO
834LN_S
835EGREP
836GREP
837SED
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846am__fastdepCC_FALSE
847am__fastdepCC_TRUE
848CCDEPMODE
849AMDEPBACKSLASH
850AMDEP_FALSE
851AMDEP_TRUE
852am__quote
853am__include
854DEPDIR
855OBJEXT
856EXEEXT
857ac_ct_CC
858CPPFLAGS
859LDFLAGS
860CFLAGS
861CC
862MAINT
863MAINTAINER_MODE_FALSE
864MAINTAINER_MODE_TRUE
865am__untar
866am__tar
867AMTAR
868am__leading_dot
869SET_MAKE
870AWK
871mkdir_p
872MKDIR_P
873INSTALL_STRIP_PROGRAM
874STRIP
875install_sh
876MAKEINFO
877AUTOHEADER
878AUTOMAKE
879AUTOCONF
880ACLOCAL
881VERSION
882PACKAGE
883CYGPATH_W
884am__isrc
885INSTALL_DATA
886INSTALL_SCRIPT
887INSTALL_PROGRAM
888target_alias
889host_alias
890build_alias
891LIBS
892ECHO_T
893ECHO_N
894ECHO_C
895DEFS
896mandir
897localedir
898libdir
899psdir
900pdfdir
901dvidir
902htmldir
903infodir
904docdir
905oldincludedir
906includedir
907localstatedir
908sharedstatedir
909sysconfdir
910datadir
911datarootdir
912libexecdir
913sbindir
914bindir
915program_transform_name
916prefix
917exec_prefix
918PACKAGE_BUGREPORT
919PACKAGE_STRING
920PACKAGE_VERSION
921PACKAGE_TARNAME
922PACKAGE_NAME
923PATH_SEPARATOR
924SHELL'
925ac_subst_files=''
926ac_user_opts='
927enable_option_checking
928enable_maintainer_mode
929enable_dependency_tracking
930enable_shared
931enable_static
932enable_fast_install
933with_gnu_ld
934enable_libtool_lock
935with_pic
936with_tags
937enable_silent_rules
938enable_strict_compilation
939with_release_version
940'
941      ac_precious_vars='build_alias
942host_alias
943target_alias
944CC
945CFLAGS
946LDFLAGS
947LIBS
948CPPFLAGS
949CPP
950CXX
951CXXFLAGS
952CCC
953CXXCPP
954F77
955FFLAGS
956PKG_CONFIG
957XKBFILE_CFLAGS
958XKBFILE_LIBS'
959
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"enable_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval enable_$ac_useropt=no ;;
1079
1080  -docdir | --docdir | --docdi | --doc | --do)
1081    ac_prev=docdir ;;
1082  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083    docdir=$ac_optarg ;;
1084
1085  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086    ac_prev=dvidir ;;
1087  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088    dvidir=$ac_optarg ;;
1089
1090  -enable-* | --enable-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095   { (exit 1); exit 1; }; }
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109  | --exec | --exe | --ex)
1110    ac_prev=exec_prefix ;;
1111  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113  | --exec=* | --exe=* | --ex=*)
1114    exec_prefix=$ac_optarg ;;
1115
1116  -gas | --gas | --ga | --g)
1117    # Obsolete; use --with-gas.
1118    with_gas=yes ;;
1119
1120  -help | --help | --hel | --he | -h)
1121    ac_init_help=long ;;
1122  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123    ac_init_help=recursive ;;
1124  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125    ac_init_help=short ;;
1126
1127  -host | --host | --hos | --ho)
1128    ac_prev=host_alias ;;
1129  -host=* | --host=* | --hos=* | --ho=*)
1130    host_alias=$ac_optarg ;;
1131
1132  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133    ac_prev=htmldir ;;
1134  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135  | --ht=*)
1136    htmldir=$ac_optarg ;;
1137
1138  -includedir | --includedir | --includedi | --included | --include \
1139  | --includ | --inclu | --incl | --inc)
1140    ac_prev=includedir ;;
1141  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142  | --includ=* | --inclu=* | --incl=* | --inc=*)
1143    includedir=$ac_optarg ;;
1144
1145  -infodir | --infodir | --infodi | --infod | --info | --inf)
1146    ac_prev=infodir ;;
1147  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148    infodir=$ac_optarg ;;
1149
1150  -libdir | --libdir | --libdi | --libd)
1151    ac_prev=libdir ;;
1152  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153    libdir=$ac_optarg ;;
1154
1155  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156  | --libexe | --libex | --libe)
1157    ac_prev=libexecdir ;;
1158  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159  | --libexe=* | --libex=* | --libe=*)
1160    libexecdir=$ac_optarg ;;
1161
1162  -localedir | --localedir | --localedi | --localed | --locale)
1163    ac_prev=localedir ;;
1164  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165    localedir=$ac_optarg ;;
1166
1167  -localstatedir | --localstatedir | --localstatedi | --localstated \
1168  | --localstate | --localstat | --localsta | --localst | --locals)
1169    ac_prev=localstatedir ;;
1170  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172    localstatedir=$ac_optarg ;;
1173
1174  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175    ac_prev=mandir ;;
1176  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177    mandir=$ac_optarg ;;
1178
1179  -nfp | --nfp | --nf)
1180    # Obsolete; use --without-fp.
1181    with_fp=no ;;
1182
1183  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184  | --no-cr | --no-c | -n)
1185    no_create=yes ;;
1186
1187  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189    no_recursion=yes ;;
1190
1191  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193  | --oldin | --oldi | --old | --ol | --o)
1194    ac_prev=oldincludedir ;;
1195  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198    oldincludedir=$ac_optarg ;;
1199
1200  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201    ac_prev=prefix ;;
1202  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203    prefix=$ac_optarg ;;
1204
1205  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206  | --program-pre | --program-pr | --program-p)
1207    ac_prev=program_prefix ;;
1208  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210    program_prefix=$ac_optarg ;;
1211
1212  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213  | --program-suf | --program-su | --program-s)
1214    ac_prev=program_suffix ;;
1215  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217    program_suffix=$ac_optarg ;;
1218
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    ac_prev=program_transform_name ;;
1227  -program-transform-name=* | --program-transform-name=* \
1228  | --program-transform-nam=* | --program-transform-na=* \
1229  | --program-transform-n=* | --program-transform-=* \
1230  | --program-transform=* | --program-transfor=* \
1231  | --program-transfo=* | --program-transf=* \
1232  | --program-trans=* | --program-tran=* \
1233  | --progr-tra=* | --program-tr=* | --program-t=*)
1234    program_transform_name=$ac_optarg ;;
1235
1236  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237    ac_prev=pdfdir ;;
1238  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239    pdfdir=$ac_optarg ;;
1240
1241  -psdir | --psdir | --psdi | --psd | --ps)
1242    ac_prev=psdir ;;
1243  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244    psdir=$ac_optarg ;;
1245
1246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247  | -silent | --silent | --silen | --sile | --sil)
1248    silent=yes ;;
1249
1250  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251    ac_prev=sbindir ;;
1252  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253  | --sbi=* | --sb=*)
1254    sbindir=$ac_optarg ;;
1255
1256  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258  | --sharedst | --shareds | --shared | --share | --shar \
1259  | --sha | --sh)
1260    ac_prev=sharedstatedir ;;
1261  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264  | --sha=* | --sh=*)
1265    sharedstatedir=$ac_optarg ;;
1266
1267  -site | --site | --sit)
1268    ac_prev=site ;;
1269  -site=* | --site=* | --sit=*)
1270    site=$ac_optarg ;;
1271
1272  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273    ac_prev=srcdir ;;
1274  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275    srcdir=$ac_optarg ;;
1276
1277  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278  | --syscon | --sysco | --sysc | --sys | --sy)
1279    ac_prev=sysconfdir ;;
1280  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282    sysconfdir=$ac_optarg ;;
1283
1284  -target | --target | --targe | --targ | --tar | --ta | --t)
1285    ac_prev=target_alias ;;
1286  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287    target_alias=$ac_optarg ;;
1288
1289  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290    verbose=yes ;;
1291
1292  -version | --version | --versio | --versi | --vers | -V)
1293    ac_init_version=: ;;
1294
1295  -with-* | --with-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300   { (exit 1); exit 1; }; }
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=\$ac_optarg ;;
1311
1312  -without-* | --without-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317   { (exit 1); exit 1; }; }
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348Try \`$0 --help' for more information." >&2
1349   { (exit 1); exit 1; }; }
1350    ;;
1351
1352  *=*)
1353    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357   { (exit 1); exit 1; }; }
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375   { (exit 1); exit 1; }; }
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379  case $enable_option_checking in
1380    no) ;;
1381    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382   { (exit 1); exit 1; }; } ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406   { (exit 1); exit 1; }; }
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418  if test "x$build_alias" = x; then
1419    cross_compiling=maybe
1420    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421    If a cross compiler is detected then cross compile mode will be used." >&2
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437   { (exit 1); exit 1; }; }
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440   { (exit 1); exit 1; }; }
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445  ac_srcdir_defaulted=yes
1446  # Try the directory containing this script, then the parent directory.
1447  ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449	 X"$as_myself" : 'X\(//\)[^/]' \| \
1450	 X"$as_myself" : 'X\(//\)$' \| \
1451	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452$as_echo X"$as_myself" |
1453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)[^/].*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\).*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  s/.*/./; q'`
1470  srcdir=$ac_confdir
1471  if test ! -r "$srcdir/$ac_unique_file"; then
1472    srcdir=..
1473  fi
1474else
1475  ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480   { (exit 1); exit 1; }; }
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485   { (exit 1); exit 1; }; }
1486	pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489  srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_env_${ac_var}_value=\$${ac_var}
1500  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508  # Omit some internal or obsolete options to make the list less imposing.
1509  # This message is too long to be a string in the A/UX 3.1 sh.
1510  cat <<_ACEOF
1511\`configure' configures libxkbfile 1.0.6 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE.  See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521  -h, --help              display this help and exit
1522      --help=short        display options specific to this package
1523      --help=recursive    display the short help of all the included packages
1524  -V, --version           display version information and exit
1525  -q, --quiet, --silent   do not print \`checking...' messages
1526      --cache-file=FILE   cache test results in FILE [disabled]
1527  -C, --config-cache      alias for \`--cache-file=config.cache'
1528  -n, --no-create         do not create output files
1529      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532  --prefix=PREFIX         install architecture-independent files in PREFIX
1533                          [$ac_default_prefix]
1534  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1535                          [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545  --bindir=DIR            user executables [EPREFIX/bin]
1546  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1547  --libexecdir=DIR        program executables [EPREFIX/libexec]
1548  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1549  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1550  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1551  --libdir=DIR            object code libraries [EPREFIX/lib]
1552  --includedir=DIR        C header files [PREFIX/include]
1553  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1554  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1555  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1556  --infodir=DIR           info documentation [DATAROOTDIR/info]
1557  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1558  --mandir=DIR            man documentation [DATAROOTDIR/man]
1559  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxkbfile]
1560  --htmldir=DIR           html documentation [DOCDIR]
1561  --dvidir=DIR            dvi documentation [DOCDIR]
1562  --pdfdir=DIR            pdf documentation [DOCDIR]
1563  --psdir=DIR             ps documentation [DOCDIR]
1564_ACEOF
1565
1566  cat <<\_ACEOF
1567
1568Program names:
1569  --program-prefix=PREFIX            prepend PREFIX to installed program names
1570  --program-suffix=SUFFIX            append SUFFIX to installed program names
1571  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1572
1573System types:
1574  --build=BUILD     configure for building on BUILD [guessed]
1575  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1576_ACEOF
1577fi
1578
1579if test -n "$ac_init_help"; then
1580  case $ac_init_help in
1581     short | recursive ) echo "Configuration of libxkbfile 1.0.6:";;
1582   esac
1583  cat <<\_ACEOF
1584
1585Optional Features:
1586  --disable-option-checking  ignore unrecognized --enable/--with options
1587  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1588  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1589  --enable-maintainer-mode  enable make rules and dependencies not useful
1590			  (and sometimes confusing) to the casual installer
1591  --disable-dependency-tracking  speeds up one-time build
1592  --enable-dependency-tracking   do not reject slow dependency extractors
1593  --enable-shared[=PKGS]  build shared libraries [default=yes]
1594  --enable-static[=PKGS]  build static libraries [default=yes]
1595  --enable-fast-install[=PKGS]
1596                          optimize for fast installation [default=yes]
1597  --disable-libtool-lock  avoid locking (might break parallel builds)
1598  --enable-silent-rules          less verbose build output (undo: `make V=1')
1599  --disable-silent-rules         verbose build output (undo: `make V=0')
1600  --enable-strict-compilation
1601                          Enable all warnings from compiler and make them
1602                          errors (default: disabled)
1603
1604Optional Packages:
1605  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1608  --with-pic              try to use only PIC/non-PIC objects [default=use
1609                          both]
1610  --with-tags[=TAGS]      include additional configurations [automatic]
1611  --with-release-version=STRING
1612                          Use release version string in package name
1613
1614Some influential environment variables:
1615  CC          C compiler command
1616  CFLAGS      C compiler flags
1617  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1618              nonstandard directory <lib dir>
1619  LIBS        libraries to pass to the linker, e.g. -l<library>
1620  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621              you have headers in a nonstandard directory <include dir>
1622  CPP         C preprocessor
1623  CXX         C++ compiler command
1624  CXXFLAGS    C++ compiler flags
1625  CXXCPP      C++ preprocessor
1626  F77         Fortran 77 compiler command
1627  FFLAGS      Fortran 77 compiler flags
1628  PKG_CONFIG  path to pkg-config utility
1629  XKBFILE_CFLAGS
1630              C compiler flags for XKBFILE, overriding pkg-config
1631  XKBFILE_LIBS
1632              linker flags for XKBFILE, overriding pkg-config
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
1637Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1638_ACEOF
1639ac_status=$?
1640fi
1641
1642if test "$ac_init_help" = "recursive"; then
1643  # If there are subdirs, report their specific --help.
1644  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645    test -d "$ac_dir" ||
1646      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647      continue
1648    ac_builddir=.
1649
1650case "$ac_dir" in
1651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652*)
1653  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654  # A ".." for each directory in $ac_dir_suffix.
1655  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656  case $ac_top_builddir_sub in
1657  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659  esac ;;
1660esac
1661ac_abs_top_builddir=$ac_pwd
1662ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663# for backward compatibility:
1664ac_top_builddir=$ac_top_build_prefix
1665
1666case $srcdir in
1667  .)  # We are building in place.
1668    ac_srcdir=.
1669    ac_top_srcdir=$ac_top_builddir_sub
1670    ac_abs_top_srcdir=$ac_pwd ;;
1671  [\\/]* | ?:[\\/]* )  # Absolute name.
1672    ac_srcdir=$srcdir$ac_dir_suffix;
1673    ac_top_srcdir=$srcdir
1674    ac_abs_top_srcdir=$srcdir ;;
1675  *) # Relative name.
1676    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677    ac_top_srcdir=$ac_top_build_prefix$srcdir
1678    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679esac
1680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682    cd "$ac_dir" || { ac_status=$?; continue; }
1683    # Check for guested configure.
1684    if test -f "$ac_srcdir/configure.gnu"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687    elif test -f "$ac_srcdir/configure"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure" --help=recursive
1690    else
1691      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692    fi || ac_status=$?
1693    cd "$ac_pwd" || { ac_status=$?; break; }
1694  done
1695fi
1696
1697test -n "$ac_init_help" && exit $ac_status
1698if $ac_init_version; then
1699  cat <<\_ACEOF
1700libxkbfile configure 1.0.6
1701generated by GNU Autoconf 2.63
1702
1703Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17042002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1705This configure script is free software; the Free Software Foundation
1706gives unlimited permission to copy, distribute and modify it.
1707_ACEOF
1708  exit
1709fi
1710cat >config.log <<_ACEOF
1711This file contains any messages produced by compilers while
1712running configure, to aid debugging if configure makes a mistake.
1713
1714It was created by libxkbfile $as_me 1.0.6, which was
1715generated by GNU Autoconf 2.63.  Invocation command line was
1716
1717  $ $0 $@
1718
1719_ACEOF
1720exec 5>>config.log
1721{
1722cat <<_ASUNAME
1723## --------- ##
1724## Platform. ##
1725## --------- ##
1726
1727hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1728uname -m = `(uname -m) 2>/dev/null || echo unknown`
1729uname -r = `(uname -r) 2>/dev/null || echo unknown`
1730uname -s = `(uname -s) 2>/dev/null || echo unknown`
1731uname -v = `(uname -v) 2>/dev/null || echo unknown`
1732
1733/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1734/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1735
1736/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1737/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1738/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1739/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1740/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1741/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1742/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1743
1744_ASUNAME
1745
1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747for as_dir in $PATH
1748do
1749  IFS=$as_save_IFS
1750  test -z "$as_dir" && as_dir=.
1751  $as_echo "PATH: $as_dir"
1752done
1753IFS=$as_save_IFS
1754
1755} >&5
1756
1757cat >&5 <<_ACEOF
1758
1759
1760## ----------- ##
1761## Core tests. ##
1762## ----------- ##
1763
1764_ACEOF
1765
1766
1767# Keep a trace of the command line.
1768# Strip out --no-create and --no-recursion so they do not pile up.
1769# Strip out --silent because we don't want to record it for future runs.
1770# Also quote any args containing shell meta-characters.
1771# Make two passes to allow for proper duplicate-argument suppression.
1772ac_configure_args=
1773ac_configure_args0=
1774ac_configure_args1=
1775ac_must_keep_next=false
1776for ac_pass in 1 2
1777do
1778  for ac_arg
1779  do
1780    case $ac_arg in
1781    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1782    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1783    | -silent | --silent | --silen | --sile | --sil)
1784      continue ;;
1785    *\'*)
1786      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1787    esac
1788    case $ac_pass in
1789    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1790    2)
1791      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1792      if test $ac_must_keep_next = true; then
1793	ac_must_keep_next=false # Got value, back to normal.
1794      else
1795	case $ac_arg in
1796	  *=* | --config-cache | -C | -disable-* | --disable-* \
1797	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1798	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1799	  | -with-* | --with-* | -without-* | --without-* | --x)
1800	    case "$ac_configure_args0 " in
1801	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1802	    esac
1803	    ;;
1804	  -* ) ac_must_keep_next=true ;;
1805	esac
1806      fi
1807      ac_configure_args="$ac_configure_args '$ac_arg'"
1808      ;;
1809    esac
1810  done
1811done
1812$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1813$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1814
1815# When interrupted or exit'd, cleanup temporary files, and complete
1816# config.log.  We remove comments because anyway the quotes in there
1817# would cause problems or look ugly.
1818# WARNING: Use '\'' to represent an apostrophe within the trap.
1819# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1820trap 'exit_status=$?
1821  # Save into config.log some information that might help in debugging.
1822  {
1823    echo
1824
1825    cat <<\_ASBOX
1826## ---------------- ##
1827## Cache variables. ##
1828## ---------------- ##
1829_ASBOX
1830    echo
1831    # The following way of writing the cache mishandles newlines in values,
1832(
1833  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1834    eval ac_val=\$$ac_var
1835    case $ac_val in #(
1836    *${as_nl}*)
1837      case $ac_var in #(
1838      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1840      esac
1841      case $ac_var in #(
1842      _ | IFS | as_nl) ;; #(
1843      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1844      *) $as_unset $ac_var ;;
1845      esac ;;
1846    esac
1847  done
1848  (set) 2>&1 |
1849    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1850    *${as_nl}ac_space=\ *)
1851      sed -n \
1852	"s/'\''/'\''\\\\'\'''\''/g;
1853	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1854      ;; #(
1855    *)
1856      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1857      ;;
1858    esac |
1859    sort
1860)
1861    echo
1862
1863    cat <<\_ASBOX
1864## ----------------- ##
1865## Output variables. ##
1866## ----------------- ##
1867_ASBOX
1868    echo
1869    for ac_var in $ac_subst_vars
1870    do
1871      eval ac_val=\$$ac_var
1872      case $ac_val in
1873      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874      esac
1875      $as_echo "$ac_var='\''$ac_val'\''"
1876    done | sort
1877    echo
1878
1879    if test -n "$ac_subst_files"; then
1880      cat <<\_ASBOX
1881## ------------------- ##
1882## File substitutions. ##
1883## ------------------- ##
1884_ASBOX
1885      echo
1886      for ac_var in $ac_subst_files
1887      do
1888	eval ac_val=\$$ac_var
1889	case $ac_val in
1890	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891	esac
1892	$as_echo "$ac_var='\''$ac_val'\''"
1893      done | sort
1894      echo
1895    fi
1896
1897    if test -s confdefs.h; then
1898      cat <<\_ASBOX
1899## ----------- ##
1900## confdefs.h. ##
1901## ----------- ##
1902_ASBOX
1903      echo
1904      cat confdefs.h
1905      echo
1906    fi
1907    test "$ac_signal" != 0 &&
1908      $as_echo "$as_me: caught signal $ac_signal"
1909    $as_echo "$as_me: exit $exit_status"
1910  } >&5
1911  rm -f core *.core core.conftest.* &&
1912    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1913    exit $exit_status
1914' 0
1915for ac_signal in 1 2 13 15; do
1916  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1917done
1918ac_signal=0
1919
1920# confdefs.h avoids OS command line length limits that DEFS can exceed.
1921rm -f -r conftest* confdefs.h
1922
1923# Predefined preprocessor variables.
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_NAME "$PACKAGE_NAME"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_VERSION "$PACKAGE_VERSION"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_STRING "$PACKAGE_STRING"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1947_ACEOF
1948
1949
1950# Let the site file select an alternate cache file if it wants to.
1951# Prefer an explicitly selected file to automatically selected ones.
1952ac_site_file1=NONE
1953ac_site_file2=NONE
1954if test -n "$CONFIG_SITE"; then
1955  ac_site_file1=$CONFIG_SITE
1956elif test "x$prefix" != xNONE; then
1957  ac_site_file1=$prefix/share/config.site
1958  ac_site_file2=$prefix/etc/config.site
1959else
1960  ac_site_file1=$ac_default_prefix/share/config.site
1961  ac_site_file2=$ac_default_prefix/etc/config.site
1962fi
1963for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1964do
1965  test "x$ac_site_file" = xNONE && continue
1966  if test -r "$ac_site_file"; then
1967    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1968$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1969    sed 's/^/| /' "$ac_site_file" >&5
1970    . "$ac_site_file"
1971  fi
1972done
1973
1974if test -r "$cache_file"; then
1975  # Some versions of bash will fail to source /dev/null (special
1976  # files actually), so we avoid doing that.
1977  if test -f "$cache_file"; then
1978    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1979$as_echo "$as_me: loading cache $cache_file" >&6;}
1980    case $cache_file in
1981      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982      *)                      . "./$cache_file";;
1983    esac
1984  fi
1985else
1986  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1987$as_echo "$as_me: creating cache $cache_file" >&6;}
1988  >$cache_file
1989fi
1990
1991# Check that the precious variables saved in the cache have kept the same
1992# value.
1993ac_cache_corrupted=false
1994for ac_var in $ac_precious_vars; do
1995  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1996  eval ac_new_set=\$ac_env_${ac_var}_set
1997  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1998  eval ac_new_val=\$ac_env_${ac_var}_value
1999  case $ac_old_set,$ac_new_set in
2000    set,)
2001      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2002$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2003      ac_cache_corrupted=: ;;
2004    ,set)
2005      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2006$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2007      ac_cache_corrupted=: ;;
2008    ,);;
2009    *)
2010      if test "x$ac_old_val" != "x$ac_new_val"; then
2011	# differences in whitespace do not lead to failure.
2012	ac_old_val_w=`echo x $ac_old_val`
2013	ac_new_val_w=`echo x $ac_new_val`
2014	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2015	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2016$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2017	  ac_cache_corrupted=:
2018	else
2019	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2020$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2021	  eval $ac_var=\$ac_old_val
2022	fi
2023	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2024$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2025	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2026$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2027      fi;;
2028  esac
2029  # Pass precious variables to config.status.
2030  if test "$ac_new_set" = set; then
2031    case $ac_new_val in
2032    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2033    *) ac_arg=$ac_var=$ac_new_val ;;
2034    esac
2035    case " $ac_configure_args " in
2036      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2037      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2038    esac
2039  fi
2040done
2041if $ac_cache_corrupted; then
2042  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2045$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2046  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2047$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2048   { (exit 1); exit 1; }; }
2049fi
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075ac_ext=c
2076ac_cpp='$CPP $CPPFLAGS'
2077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080
2081
2082am__api_version='1.11'
2083
2084ac_aux_dir=
2085for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086  if test -f "$ac_dir/install-sh"; then
2087    ac_aux_dir=$ac_dir
2088    ac_install_sh="$ac_aux_dir/install-sh -c"
2089    break
2090  elif test -f "$ac_dir/install.sh"; then
2091    ac_aux_dir=$ac_dir
2092    ac_install_sh="$ac_aux_dir/install.sh -c"
2093    break
2094  elif test -f "$ac_dir/shtool"; then
2095    ac_aux_dir=$ac_dir
2096    ac_install_sh="$ac_aux_dir/shtool install -c"
2097    break
2098  fi
2099done
2100if test -z "$ac_aux_dir"; then
2101  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103   { (exit 1); exit 1; }; }
2104fi
2105
2106# These three variables are undocumented and unsupported,
2107# and are intended to be withdrawn in a future Autoconf release.
2108# They can cause serious problems if a builder's source tree is in a directory
2109# whose full name contains unusual characters.
2110ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2111ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2112ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2113
2114
2115# Find a good install program.  We prefer a C program (faster),
2116# so one script is as good as another.  But avoid the broken or
2117# incompatible versions:
2118# SysV /etc/install, /usr/sbin/install
2119# SunOS /usr/etc/install
2120# IRIX /sbin/install
2121# AIX /bin/install
2122# AmigaOS /C/install, which installs bootblocks on floppy discs
2123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126# OS/2's system install, which has a completely different semantic
2127# ./install, which can be erroneously created by make from ./install.sh.
2128# Reject install programs that cannot install multiple files.
2129{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2130$as_echo_n "checking for a BSD-compatible install... " >&6; }
2131if test -z "$INSTALL"; then
2132if test "${ac_cv_path_install+set}" = set; then
2133  $as_echo_n "(cached) " >&6
2134else
2135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  # Account for people who put trailing slashes in PATH elements.
2141case $as_dir/ in
2142  ./ | .// | /cC/* | \
2143  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2144  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145  /usr/ucb/* ) ;;
2146  *)
2147    # OSF1 and SCO ODT 3.0 have their own names for install.
2148    # Don't use installbsd from OSF since it installs stuff as root
2149    # by default.
2150    for ac_prog in ginstall scoinst install; do
2151      for ac_exec_ext in '' $ac_executable_extensions; do
2152	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2153	  if test $ac_prog = install &&
2154	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2155	    # AIX install.  It has an incompatible calling convention.
2156	    :
2157	  elif test $ac_prog = install &&
2158	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159	    # program-specific install script used by HP pwplus--don't use.
2160	    :
2161	  else
2162	    rm -rf conftest.one conftest.two conftest.dir
2163	    echo one > conftest.one
2164	    echo two > conftest.two
2165	    mkdir conftest.dir
2166	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2167	      test -s conftest.one && test -s conftest.two &&
2168	      test -s conftest.dir/conftest.one &&
2169	      test -s conftest.dir/conftest.two
2170	    then
2171	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172	      break 3
2173	    fi
2174	  fi
2175	fi
2176      done
2177    done
2178    ;;
2179esac
2180
2181done
2182IFS=$as_save_IFS
2183
2184rm -rf conftest.one conftest.two conftest.dir
2185
2186fi
2187  if test "${ac_cv_path_install+set}" = set; then
2188    INSTALL=$ac_cv_path_install
2189  else
2190    # As a last resort, use the slow shell script.  Don't cache a
2191    # value for INSTALL within a source directory, because that will
2192    # break other packages using the cache if that directory is
2193    # removed, or if the value is a relative name.
2194    INSTALL=$ac_install_sh
2195  fi
2196fi
2197{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2198$as_echo "$INSTALL" >&6; }
2199
2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201# It thinks the first close brace ends the variable substitution.
2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
2208{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209$as_echo_n "checking whether build environment is sane... " >&6; }
2210# Just in case
2211sleep 1
2212echo timestamp > conftest.file
2213# Reject unsafe characters in $srcdir or the absolute working directory
2214# name.  Accept space and tab only in the latter.
2215am_lf='
2216'
2217case `pwd` in
2218  *[\\\"\#\$\&\'\`$am_lf]*)
2219    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2220$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2221   { (exit 1); exit 1; }; };;
2222esac
2223case $srcdir in
2224  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2225    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2226$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2227   { (exit 1); exit 1; }; };;
2228esac
2229
2230# Do `set' in a subshell so we don't clobber the current shell's
2231# arguments.  Must try -L first in case configure is actually a
2232# symlink; some systems play weird games with the mod time of symlinks
2233# (eg FreeBSD returns the mod time of the symlink's containing
2234# directory).
2235if (
2236   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237   if test "$*" = "X"; then
2238      # -L didn't work.
2239      set X `ls -t "$srcdir/configure" conftest.file`
2240   fi
2241   rm -f conftest.file
2242   if test "$*" != "X $srcdir/configure conftest.file" \
2243      && test "$*" != "X conftest.file $srcdir/configure"; then
2244
2245      # If neither matched, then we have a broken ls.  This can happen
2246      # if, for instance, CONFIG_SHELL is bash and it inherits a
2247      # broken ls alias from the environment.  This has actually
2248      # happened.  Such a system could not be considered "sane".
2249      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2250alias in your environment" >&5
2251$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2252alias in your environment" >&2;}
2253   { (exit 1); exit 1; }; }
2254   fi
2255
2256   test "$2" = conftest.file
2257   )
2258then
2259   # Ok.
2260   :
2261else
2262   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2263Check your system clock" >&5
2264$as_echo "$as_me: error: newly created file is older than distributed files!
2265Check your system clock" >&2;}
2266   { (exit 1); exit 1; }; }
2267fi
2268{ $as_echo "$as_me:$LINENO: result: yes" >&5
2269$as_echo "yes" >&6; }
2270test "$program_prefix" != NONE &&
2271  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272# Use a double $ so make ignores it.
2273test "$program_suffix" != NONE &&
2274  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275# Double any \ or $.
2276# By default was `s,x,x', remove it if useless.
2277ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280# expand $ac_aux_dir to an absolute path
2281am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283if test x"${MISSING+set}" != xset; then
2284  case $am_aux_dir in
2285  *\ * | *\	*)
2286    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287  *)
2288    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289  esac
2290fi
2291# Use eval to expand $SHELL
2292if eval "$MISSING --run true"; then
2293  am_missing_run="$MISSING --run "
2294else
2295  am_missing_run=
2296  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2297$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298fi
2299
2300if test x"${install_sh}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304  *)
2305    install_sh="\${SHELL} $am_aux_dir/install-sh"
2306  esac
2307fi
2308
2309# Installed binaries are usually stripped using `strip' when the user
2310# run `make install-strip'.  However `strip' might not be the right
2311# tool to use in cross-compilation environments, therefore Automake
2312# will honor the `STRIP' environment variable to overrule this program.
2313if test "$cross_compiling" != no; then
2314  if test -n "$ac_tool_prefix"; then
2315  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}strip; ac_word=$2
2317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if test "${ac_cv_prog_STRIP+set}" = set; then
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$STRIP"; then
2323  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330  for ac_exec_ext in '' $ac_executable_extensions; do
2331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342STRIP=$ac_cv_prog_STRIP
2343if test -n "$STRIP"; then
2344  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2345$as_echo "$STRIP" >&6; }
2346else
2347  { $as_echo "$as_me:$LINENO: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_STRIP"; then
2354  ac_ct_STRIP=$STRIP
2355  # Extract the first word of "strip", so it can be a program name with args.
2356set dummy strip; ac_word=$2
2357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$ac_ct_STRIP"; then
2363  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370  for ac_exec_ext in '' $ac_executable_extensions; do
2371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372    ac_cv_prog_ac_ct_STRIP="strip"
2373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383if test -n "$ac_ct_STRIP"; then
2384  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385$as_echo "$ac_ct_STRIP" >&6; }
2386else
2387  { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391  if test "x$ac_ct_STRIP" = x; then
2392    STRIP=":"
2393  else
2394    case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400    STRIP=$ac_ct_STRIP
2401  fi
2402else
2403  STRIP="$ac_cv_prog_STRIP"
2404fi
2405
2406fi
2407INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2410$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411if test -z "$MKDIR_P"; then
2412  if test "${ac_cv_path_mkdir+set}" = set; then
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420  for ac_prog in mkdir gmkdir; do
2421	 for ac_exec_ext in '' $ac_executable_extensions; do
2422	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424	     'mkdir (GNU coreutils) '* | \
2425	     'mkdir (coreutils) '* | \
2426	     'mkdir (fileutils) '4.1*)
2427	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428	       break 3;;
2429	   esac
2430	 done
2431       done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436
2437  if test "${ac_cv_path_mkdir+set}" = set; then
2438    MKDIR_P="$ac_cv_path_mkdir -p"
2439  else
2440    # As a last resort, use the slow shell script.  Don't cache a
2441    # value for MKDIR_P within a source directory, because that will
2442    # break other packages using the cache if that directory is
2443    # removed, or if the value is a relative name.
2444    test -d ./--version && rmdir ./--version
2445    MKDIR_P="$ac_install_sh -d"
2446  fi
2447fi
2448{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2449$as_echo "$MKDIR_P" >&6; }
2450
2451mkdir_p="$MKDIR_P"
2452case $mkdir_p in
2453  [\\/$]* | ?:[\\/]*) ;;
2454  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455esac
2456
2457for ac_prog in gawk mawk nawk awk
2458do
2459  # Extract the first word of "$ac_prog", so it can be a program name with args.
2460set dummy $ac_prog; ac_word=$2
2461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if test "${ac_cv_prog_AWK+set}" = set; then
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$AWK"; then
2467  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474  for ac_exec_ext in '' $ac_executable_extensions; do
2475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476    ac_cv_prog_AWK="$ac_prog"
2477    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486AWK=$ac_cv_prog_AWK
2487if test -n "$AWK"; then
2488  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2489$as_echo "$AWK" >&6; }
2490else
2491  { $as_echo "$as_me:$LINENO: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496  test -n "$AWK" && break
2497done
2498
2499{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501set x ${MAKE-make}
2502ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2504  $as_echo_n "(cached) " >&6
2505else
2506  cat >conftest.make <<\_ACEOF
2507SHELL = /bin/sh
2508all:
2509	@echo '@@@%%%=$(MAKE)=@@@%%%'
2510_ACEOF
2511# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2512case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513  *@@@%%%=?*=@@@%%%*)
2514    eval ac_cv_prog_make_${ac_make}_set=yes;;
2515  *)
2516    eval ac_cv_prog_make_${ac_make}_set=no;;
2517esac
2518rm -f conftest.make
2519fi
2520if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521  { $as_echo "$as_me:$LINENO: result: yes" >&5
2522$as_echo "yes" >&6; }
2523  SET_MAKE=
2524else
2525  { $as_echo "$as_me:$LINENO: result: no" >&5
2526$as_echo "no" >&6; }
2527  SET_MAKE="MAKE=${MAKE-make}"
2528fi
2529
2530rm -rf .tst 2>/dev/null
2531mkdir .tst 2>/dev/null
2532if test -d .tst; then
2533  am__leading_dot=.
2534else
2535  am__leading_dot=_
2536fi
2537rmdir .tst 2>/dev/null
2538
2539if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541  # is not polluted with repeated "-I."
2542  am__isrc=' -I$(srcdir)'
2543  # test to see if srcdir already configured
2544  if test -f $srcdir/config.status; then
2545    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2546$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2547   { (exit 1); exit 1; }; }
2548  fi
2549fi
2550
2551# test whether we have cygpath
2552if test -z "$CYGPATH_W"; then
2553  if (cygpath --version) >/dev/null 2>/dev/null; then
2554    CYGPATH_W='cygpath -w'
2555  else
2556    CYGPATH_W=echo
2557  fi
2558fi
2559
2560
2561# Define the identity of the package.
2562 PACKAGE='libxkbfile'
2563 VERSION='1.0.6'
2564
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE "$PACKAGE"
2568_ACEOF
2569
2570
2571cat >>confdefs.h <<_ACEOF
2572#define VERSION "$VERSION"
2573_ACEOF
2574
2575# Some tools Automake needs.
2576
2577ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2578
2579
2580AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2581
2582
2583AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2584
2585
2586AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2587
2588
2589MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2590
2591# We need awk for the "check" target.  The system "awk" is bad on
2592# some platforms.
2593# Always define AMTAR for backward compatibility.
2594
2595AMTAR=${AMTAR-"${am_missing_run}tar"}
2596
2597am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2598
2599
2600
2601
2602
2603
2604{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2605$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2606    # Check whether --enable-maintainer-mode was given.
2607if test "${enable_maintainer_mode+set}" = set; then
2608  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2609else
2610  USE_MAINTAINER_MODE=no
2611fi
2612
2613  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2614$as_echo "$USE_MAINTAINER_MODE" >&6; }
2615   if test $USE_MAINTAINER_MODE = yes; then
2616  MAINTAINER_MODE_TRUE=
2617  MAINTAINER_MODE_FALSE='#'
2618else
2619  MAINTAINER_MODE_TRUE='#'
2620  MAINTAINER_MODE_FALSE=
2621fi
2622
2623  MAINT=$MAINTAINER_MODE_TRUE
2624
2625
2626
2627# Require xorg-macros: XORG_DEFAULT_OPTIONS
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639ac_config_headers="$ac_config_headers config.h"
2640
2641
2642# Check for progs
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648if test -n "$ac_tool_prefix"; then
2649  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_CC+set}" = set; then
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$CC"; then
2657  ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664  for ac_exec_ext in '' $ac_executable_extensions; do
2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2667    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
2678  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679$as_echo "$CC" >&6; }
2680else
2681  { $as_echo "$as_me:$LINENO: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686fi
2687if test -z "$ac_cv_prog_CC"; then
2688  ac_ct_CC=$CC
2689  # Extract the first word of "gcc", so it can be a program name with args.
2690set dummy gcc; ac_word=$2
2691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2694  $as_echo_n "(cached) " >&6
2695else
2696  if test -n "$ac_ct_CC"; then
2697  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702  IFS=$as_save_IFS
2703  test -z "$as_dir" && as_dir=.
2704  for ac_exec_ext in '' $ac_executable_extensions; do
2705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706    ac_cv_prog_ac_ct_CC="gcc"
2707    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708    break 2
2709  fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717if test -n "$ac_ct_CC"; then
2718  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2719$as_echo "$ac_ct_CC" >&6; }
2720else
2721  { $as_echo "$as_me:$LINENO: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725  if test "x$ac_ct_CC" = x; then
2726    CC=""
2727  else
2728    case $cross_compiling:$ac_tool_warned in
2729yes:)
2730{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734    CC=$ac_ct_CC
2735  fi
2736else
2737  CC="$ac_cv_prog_CC"
2738fi
2739
2740if test -z "$CC"; then
2741          if test -n "$ac_tool_prefix"; then
2742    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}cc; ac_word=$2
2744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if test "${ac_cv_prog_CC+set}" = set; then
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$CC"; then
2750  ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757  for ac_exec_ext in '' $ac_executable_extensions; do
2758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759    ac_cv_prog_CC="${ac_tool_prefix}cc"
2760    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2772$as_echo "$CC" >&6; }
2773else
2774  { $as_echo "$as_me:$LINENO: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779  fi
2780fi
2781if test -z "$CC"; then
2782  # Extract the first word of "cc", so it can be a program name with args.
2783set dummy cc; ac_word=$2
2784{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if test "${ac_cv_prog_CC+set}" = set; then
2787  $as_echo_n "(cached) " >&6
2788else
2789  if test -n "$CC"; then
2790  ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792  ac_prog_rejected=no
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798  for ac_exec_ext in '' $ac_executable_extensions; do
2799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2801       ac_prog_rejected=yes
2802       continue
2803     fi
2804    ac_cv_prog_CC="cc"
2805    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806    break 2
2807  fi
2808done
2809done
2810IFS=$as_save_IFS
2811
2812if test $ac_prog_rejected = yes; then
2813  # We found a bogon in the path, so make sure we never use it.
2814  set dummy $ac_cv_prog_CC
2815  shift
2816  if test $# != 0; then
2817    # We chose a different compiler from the bogus one.
2818    # However, it has the same basename, so the bogon will be chosen
2819    # first if we set CC to just the basename; use the full file name.
2820    shift
2821    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822  fi
2823fi
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2829$as_echo "$CC" >&6; }
2830else
2831  { $as_echo "$as_me:$LINENO: result: no" >&5
2832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$CC"; then
2838  if test -n "$ac_tool_prefix"; then
2839  for ac_prog in cl.exe
2840  do
2841    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856  for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2859    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2871$as_echo "$CC" >&6; }
2872else
2873  { $as_echo "$as_me:$LINENO: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877
2878    test -n "$CC" && break
2879  done
2880fi
2881if test -z "$CC"; then
2882  ac_ct_CC=$CC
2883  for ac_prog in cl.exe
2884do
2885  # Extract the first word of "$ac_prog", so it can be a program name with args.
2886set dummy $ac_prog; ac_word=$2
2887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$ac_ct_CC"; then
2893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900  for ac_exec_ext in '' $ac_executable_extensions; do
2901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902    ac_cv_prog_ac_ct_CC="$ac_prog"
2903    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
2914  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2915$as_echo "$ac_ct_CC" >&6; }
2916else
2917  { $as_echo "$as_me:$LINENO: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922  test -n "$ac_ct_CC" && break
2923done
2924
2925  if test "x$ac_ct_CC" = x; then
2926    CC=""
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    CC=$ac_ct_CC
2935  fi
2936fi
2937
2938fi
2939
2940
2941test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2944See \`config.log' for more details." >&5
2945$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2946See \`config.log' for more details." >&2;}
2947   { (exit 1); exit 1; }; }; }
2948
2949# Provide some information about the compiler.
2950$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2951set X $ac_compile
2952ac_compiler=$2
2953{ (ac_try="$ac_compiler --version >&5"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959$as_echo "$ac_try_echo") >&5
2960  (eval "$ac_compiler --version >&5") 2>&5
2961  ac_status=$?
2962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }
2964{ (ac_try="$ac_compiler -v >&5"
2965case "(($ac_try" in
2966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967  *) ac_try_echo=$ac_try;;
2968esac
2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970$as_echo "$ac_try_echo") >&5
2971  (eval "$ac_compiler -v >&5") 2>&5
2972  ac_status=$?
2973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }
2975{ (ac_try="$ac_compiler -V >&5"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981$as_echo "$ac_try_echo") >&5
2982  (eval "$ac_compiler -V >&5") 2>&5
2983  ac_status=$?
2984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }
2986
2987cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002ac_clean_files_save=$ac_clean_files
3003ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3004# Try to create an executable without -o first, disregard a.out.
3005# It will help us diagnose broken compilers, and finding out an intuition
3006# of exeext.
3007{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3008$as_echo_n "checking for C compiler default output file name... " >&6; }
3009ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3010
3011# The possible output files:
3012ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3013
3014ac_rmfiles=
3015for ac_file in $ac_files
3016do
3017  case $ac_file in
3018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3020  esac
3021done
3022rm -f $ac_rmfiles
3023
3024if { (ac_try="$ac_link_default"
3025case "(($ac_try" in
3026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027  *) ac_try_echo=$ac_try;;
3028esac
3029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030$as_echo "$ac_try_echo") >&5
3031  (eval "$ac_link_default") 2>&5
3032  ac_status=$?
3033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; then
3035  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3038# so that the user can short-circuit this test for compilers unknown to
3039# Autoconf.
3040for ac_file in $ac_files ''
3041do
3042  test -f "$ac_file" || continue
3043  case $ac_file in
3044    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3045	;;
3046    [ab].out )
3047	# We found the default executable, but exeext='' is most
3048	# certainly right.
3049	break;;
3050    *.* )
3051        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3052	then :; else
3053	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054	fi
3055	# We set ac_cv_exeext here because the later test for it is not
3056	# safe: cross compilers may not add the suffix if given an `-o'
3057	# argument, so we may need to know it at that point already.
3058	# Even if this section looks crufty: it has the advantage of
3059	# actually working.
3060	break;;
3061    * )
3062	break;;
3063  esac
3064done
3065test "$ac_cv_exeext" = no && ac_cv_exeext=
3066
3067else
3068  ac_file=''
3069fi
3070
3071{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3072$as_echo "$ac_file" >&6; }
3073if test -z "$ac_file"; then
3074  $as_echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3080See \`config.log' for more details." >&5
3081$as_echo "$as_me: error: C compiler cannot create executables
3082See \`config.log' for more details." >&2;}
3083   { (exit 77); exit 77; }; }; }
3084fi
3085
3086ac_exeext=$ac_cv_exeext
3087
3088# Check that the compiler produces executables we can run.  If not, either
3089# the compiler is broken, or we cross compile.
3090{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3091$as_echo_n "checking whether the C compiler works... " >&6; }
3092# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3093# If not cross compiling, check that we can run a simple program.
3094if test "$cross_compiling" != yes; then
3095  if { ac_try='./$ac_file'
3096  { (case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101$as_echo "$ac_try_echo") >&5
3102  (eval "$ac_try") 2>&5
3103  ac_status=$?
3104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; }; then
3106    cross_compiling=no
3107  else
3108    if test "$cross_compiling" = maybe; then
3109	cross_compiling=yes
3110    else
3111	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114If you meant to cross compile, use \`--host'.
3115See \`config.log' for more details." >&5
3116$as_echo "$as_me: error: cannot run C compiled programs.
3117If you meant to cross compile, use \`--host'.
3118See \`config.log' for more details." >&2;}
3119   { (exit 1); exit 1; }; }; }
3120    fi
3121  fi
3122fi
3123{ $as_echo "$as_me:$LINENO: result: yes" >&5
3124$as_echo "yes" >&6; }
3125
3126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127ac_clean_files=$ac_clean_files_save
3128# Check that the compiler produces executables we can run.  If not, either
3129# the compiler is broken, or we cross compile.
3130{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131$as_echo_n "checking whether we are cross compiling... " >&6; }
3132{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133$as_echo "$cross_compiling" >&6; }
3134
3135{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136$as_echo_n "checking for suffix of executables... " >&6; }
3137if { (ac_try="$ac_link"
3138case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143$as_echo "$ac_try_echo") >&5
3144  (eval "$ac_link") 2>&5
3145  ac_status=$?
3146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; then
3148  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3149# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3150# work properly (i.e., refer to `conftest.exe'), while it won't with
3151# `rm'.
3152for ac_file in conftest.exe conftest conftest.*; do
3153  test -f "$ac_file" || continue
3154  case $ac_file in
3155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157	  break;;
3158    * ) break;;
3159  esac
3160done
3161else
3162  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3165See \`config.log' for more details." >&5
3166$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3167See \`config.log' for more details." >&2;}
3168   { (exit 1); exit 1; }; }; }
3169fi
3170
3171rm -f conftest$ac_cv_exeext
3172{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3173$as_echo "$ac_cv_exeext" >&6; }
3174
3175rm -f conftest.$ac_ext
3176EXEEXT=$ac_cv_exeext
3177ac_exeext=$EXEEXT
3178{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3179$as_echo_n "checking for suffix of object files... " >&6; }
3180if test "${ac_cv_objext+set}" = set; then
3181  $as_echo_n "(cached) " >&6
3182else
3183  cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h.  */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h.  */
3189
3190int
3191main ()
3192{
3193
3194  ;
3195  return 0;
3196}
3197_ACEOF
3198rm -f conftest.o conftest.obj
3199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205$as_echo "$ac_try_echo") >&5
3206  (eval "$ac_compile") 2>&5
3207  ac_status=$?
3208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }; then
3210  for ac_file in conftest.o conftest.obj conftest.*; do
3211  test -f "$ac_file" || continue;
3212  case $ac_file in
3213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3214    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3215       break;;
3216  esac
3217done
3218else
3219  $as_echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3225See \`config.log' for more details." >&5
3226$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3227See \`config.log' for more details." >&2;}
3228   { (exit 1); exit 1; }; }; }
3229fi
3230
3231rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232fi
3233{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3234$as_echo "$ac_cv_objext" >&6; }
3235OBJEXT=$ac_cv_objext
3236ac_objext=$OBJEXT
3237{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3238$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3239if test "${ac_cv_c_compiler_gnu+set}" = set; then
3240  $as_echo_n "(cached) " >&6
3241else
3242  cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h.  */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h.  */
3248
3249int
3250main ()
3251{
3252#ifndef __GNUC__
3253       choke me
3254#endif
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (ac_try="$ac_compile"
3262case "(($ac_try" in
3263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264  *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267$as_echo "$ac_try_echo") >&5
3268  (eval "$ac_compile") 2>conftest.er1
3269  ac_status=$?
3270  grep -v '^ *+' conftest.er1 >conftest.err
3271  rm -f conftest.er1
3272  cat conftest.err >&5
3273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); } && {
3275	 test -z "$ac_c_werror_flag" ||
3276	 test ! -s conftest.err
3277       } && test -s conftest.$ac_objext; then
3278  ac_compiler_gnu=yes
3279else
3280  $as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283	ac_compiler_gnu=no
3284fi
3285
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287ac_cv_c_compiler_gnu=$ac_compiler_gnu
3288
3289fi
3290{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3291$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3292if test $ac_compiler_gnu = yes; then
3293  GCC=yes
3294else
3295  GCC=
3296fi
3297ac_test_CFLAGS=${CFLAGS+set}
3298ac_save_CFLAGS=$CFLAGS
3299{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300$as_echo_n "checking whether $CC accepts -g... " >&6; }
3301if test "${ac_cv_prog_cc_g+set}" = set; then
3302  $as_echo_n "(cached) " >&6
3303else
3304  ac_save_c_werror_flag=$ac_c_werror_flag
3305   ac_c_werror_flag=yes
3306   ac_cv_prog_cc_g=no
3307   CFLAGS="-g"
3308   cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h.  */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330$as_echo "$ac_try_echo") >&5
3331  (eval "$ac_compile") 2>conftest.er1
3332  ac_status=$?
3333  grep -v '^ *+' conftest.er1 >conftest.err
3334  rm -f conftest.er1
3335  cat conftest.err >&5
3336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); } && {
3338	 test -z "$ac_c_werror_flag" ||
3339	 test ! -s conftest.err
3340       } && test -s conftest.$ac_objext; then
3341  ac_cv_prog_cc_g=yes
3342else
3343  $as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346	CFLAGS=""
3347      cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h.  */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h.  */
3353
3354int
3355main ()
3356{
3357
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369$as_echo "$ac_try_echo") >&5
3370  (eval "$ac_compile") 2>conftest.er1
3371  ac_status=$?
3372  grep -v '^ *+' conftest.er1 >conftest.err
3373  rm -f conftest.er1
3374  cat conftest.err >&5
3375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); } && {
3377	 test -z "$ac_c_werror_flag" ||
3378	 test ! -s conftest.err
3379       } && test -s conftest.$ac_objext; then
3380  :
3381else
3382  $as_echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385	ac_c_werror_flag=$ac_save_c_werror_flag
3386	 CFLAGS="-g"
3387	 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393
3394int
3395main ()
3396{
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402rm -f conftest.$ac_objext
3403if { (ac_try="$ac_compile"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409$as_echo "$ac_try_echo") >&5
3410  (eval "$ac_compile") 2>conftest.er1
3411  ac_status=$?
3412  grep -v '^ *+' conftest.er1 >conftest.err
3413  rm -f conftest.er1
3414  cat conftest.err >&5
3415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } && {
3417	 test -z "$ac_c_werror_flag" ||
3418	 test ! -s conftest.err
3419       } && test -s conftest.$ac_objext; then
3420  ac_cv_prog_cc_g=yes
3421else
3422  $as_echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425
3426fi
3427
3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429fi
3430
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432fi
3433
3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435   ac_c_werror_flag=$ac_save_c_werror_flag
3436fi
3437{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3438$as_echo "$ac_cv_prog_cc_g" >&6; }
3439if test "$ac_test_CFLAGS" = set; then
3440  CFLAGS=$ac_save_CFLAGS
3441elif test $ac_cv_prog_cc_g = yes; then
3442  if test "$GCC" = yes; then
3443    CFLAGS="-g -O2"
3444  else
3445    CFLAGS="-g"
3446  fi
3447else
3448  if test "$GCC" = yes; then
3449    CFLAGS="-O2"
3450  else
3451    CFLAGS=
3452  fi
3453fi
3454{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3455$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3456if test "${ac_cv_prog_cc_c89+set}" = set; then
3457  $as_echo_n "(cached) " >&6
3458else
3459  ac_cv_prog_cc_c89=no
3460ac_save_CC=$CC
3461cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467#include <stdarg.h>
3468#include <stdio.h>
3469#include <sys/types.h>
3470#include <sys/stat.h>
3471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3472struct buf { int x; };
3473FILE * (*rcsopen) (struct buf *, struct stat *, int);
3474static char *e (p, i)
3475     char **p;
3476     int i;
3477{
3478  return p[i];
3479}
3480static char *f (char * (*g) (char **, int), char **p, ...)
3481{
3482  char *s;
3483  va_list v;
3484  va_start (v,p);
3485  s = g (p, va_arg (v,int));
3486  va_end (v);
3487  return s;
3488}
3489
3490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3491   function prototypes and stuff, but not '\xHH' hex character constants.
3492   These don't provoke an error unfortunately, instead are silently treated
3493   as 'x'.  The following induces an error, until -std is added to get
3494   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3495   array size at least.  It's necessary to write '\x00'==0 to get something
3496   that's true only with -std.  */
3497int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3498
3499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3500   inside strings and character constants.  */
3501#define FOO(x) 'x'
3502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3503
3504int test (int i, double x);
3505struct s1 {int (*f) (int a);};
3506struct s2 {int (*f) (double a);};
3507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3508int argc;
3509char **argv;
3510int
3511main ()
3512{
3513return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3519	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3520do
3521  CC="$ac_save_CC $ac_arg"
3522  rm -f conftest.$ac_objext
3523if { (ac_try="$ac_compile"
3524case "(($ac_try" in
3525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526  *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529$as_echo "$ac_try_echo") >&5
3530  (eval "$ac_compile") 2>conftest.er1
3531  ac_status=$?
3532  grep -v '^ *+' conftest.er1 >conftest.err
3533  rm -f conftest.er1
3534  cat conftest.err >&5
3535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); } && {
3537	 test -z "$ac_c_werror_flag" ||
3538	 test ! -s conftest.err
3539       } && test -s conftest.$ac_objext; then
3540  ac_cv_prog_cc_c89=$ac_arg
3541else
3542  $as_echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545
3546fi
3547
3548rm -f core conftest.err conftest.$ac_objext
3549  test "x$ac_cv_prog_cc_c89" != "xno" && break
3550done
3551rm -f conftest.$ac_ext
3552CC=$ac_save_CC
3553
3554fi
3555# AC_CACHE_VAL
3556case "x$ac_cv_prog_cc_c89" in
3557  x)
3558    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3559$as_echo "none needed" >&6; } ;;
3560  xno)
3561    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3562$as_echo "unsupported" >&6; } ;;
3563  *)
3564    CC="$CC $ac_cv_prog_cc_c89"
3565    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3567esac
3568
3569
3570ac_ext=c
3571ac_cpp='$CPP $CPPFLAGS'
3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575DEPDIR="${am__leading_dot}deps"
3576
3577ac_config_commands="$ac_config_commands depfiles"
3578
3579
3580am_make=${MAKE-make}
3581cat > confinc << 'END'
3582am__doit:
3583	@echo this is the am__doit target
3584.PHONY: am__doit
3585END
3586# If we don't find an include directive, just comment out the code.
3587{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3588$as_echo_n "checking for style of include used by $am_make... " >&6; }
3589am__include="#"
3590am__quote=
3591_am_result=none
3592# First try GNU make style include.
3593echo "include confinc" > confmf
3594# Ignore all kinds of additional output from `make'.
3595case `$am_make -s -f confmf 2> /dev/null` in #(
3596*the\ am__doit\ target*)
3597  am__include=include
3598  am__quote=
3599  _am_result=GNU
3600  ;;
3601esac
3602# Now try BSD make style include.
3603if test "$am__include" = "#"; then
3604   echo '.include "confinc"' > confmf
3605   case `$am_make -s -f confmf 2> /dev/null` in #(
3606   *the\ am__doit\ target*)
3607     am__include=.include
3608     am__quote="\""
3609     _am_result=BSD
3610     ;;
3611   esac
3612fi
3613
3614
3615{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3616$as_echo "$_am_result" >&6; }
3617rm -f confinc confmf
3618
3619# Check whether --enable-dependency-tracking was given.
3620if test "${enable_dependency_tracking+set}" = set; then
3621  enableval=$enable_dependency_tracking;
3622fi
3623
3624if test "x$enable_dependency_tracking" != xno; then
3625  am_depcomp="$ac_aux_dir/depcomp"
3626  AMDEPBACKSLASH='\'
3627fi
3628 if test "x$enable_dependency_tracking" != xno; then
3629  AMDEP_TRUE=
3630  AMDEP_FALSE='#'
3631else
3632  AMDEP_TRUE='#'
3633  AMDEP_FALSE=
3634fi
3635
3636
3637
3638depcc="$CC"   am_compiler_list=
3639
3640{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3641$as_echo_n "checking dependency style of $depcc... " >&6; }
3642if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3643  $as_echo_n "(cached) " >&6
3644else
3645  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3646  # We make a subdir and do the tests there.  Otherwise we can end up
3647  # making bogus files that we don't know about and never remove.  For
3648  # instance it was reported that on HP-UX the gcc test will end up
3649  # making a dummy file named `D' -- because `-MD' means `put the output
3650  # in D'.
3651  mkdir conftest.dir
3652  # Copy depcomp to subdir because otherwise we won't find it if we're
3653  # using a relative directory.
3654  cp "$am_depcomp" conftest.dir
3655  cd conftest.dir
3656  # We will build objects and dependencies in a subdirectory because
3657  # it helps to detect inapplicable dependency modes.  For instance
3658  # both Tru64's cc and ICC support -MD to output dependencies as a
3659  # side effect of compilation, but ICC will put the dependencies in
3660  # the current directory while Tru64 will put them in the object
3661  # directory.
3662  mkdir sub
3663
3664  am_cv_CC_dependencies_compiler_type=none
3665  if test "$am_compiler_list" = ""; then
3666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3667  fi
3668  am__universal=false
3669  case " $depcc " in #(
3670     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3671     esac
3672
3673  for depmode in $am_compiler_list; do
3674    # Setup a source with many dependencies, because some compilers
3675    # like to wrap large dependency lists on column 80 (with \), and
3676    # we should not choose a depcomp mode which is confused by this.
3677    #
3678    # We need to recreate these files for each test, as the compiler may
3679    # overwrite some of them when testing with obscure command lines.
3680    # This happens at least with the AIX C compiler.
3681    : > sub/conftest.c
3682    for i in 1 2 3 4 5 6; do
3683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3684      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3685      # Solaris 8's {/usr,}/bin/sh.
3686      touch sub/conftst$i.h
3687    done
3688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3689
3690    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3691    # mode.  It turns out that the SunPro C++ compiler does not properly
3692    # handle `-M -o', and we need to detect this.  Also, some Intel
3693    # versions had trouble with output in subdirs
3694    am__obj=sub/conftest.${OBJEXT-o}
3695    am__minus_obj="-o $am__obj"
3696    case $depmode in
3697    gcc)
3698      # This depmode causes a compiler race in universal mode.
3699      test "$am__universal" = false || continue
3700      ;;
3701    nosideeffect)
3702      # after this tag, mechanisms are not by side-effect, so they'll
3703      # only be used when explicitly requested
3704      if test "x$enable_dependency_tracking" = xyes; then
3705	continue
3706      else
3707	break
3708      fi
3709      ;;
3710    msvisualcpp | msvcmsys)
3711      # This compiler won't grok `-c -o', but also, the minuso test has
3712      # not run yet.  These depmodes are late enough in the game, and
3713      # so weak that their functioning should not be impacted.
3714      am__obj=conftest.${OBJEXT-o}
3715      am__minus_obj=
3716      ;;
3717    none) break ;;
3718    esac
3719    if depmode=$depmode \
3720       source=sub/conftest.c object=$am__obj \
3721       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3722       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3723         >/dev/null 2>conftest.err &&
3724       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3725       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3726       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3727       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3728      # icc doesn't choke on unknown options, it will just issue warnings
3729      # or remarks (even with -Werror).  So we grep stderr for any message
3730      # that says an option was ignored or not supported.
3731      # When given -MP, icc 7.0 and 7.1 complain thusly:
3732      #   icc: Command line warning: ignoring option '-M'; no argument required
3733      # The diagnosis changed in icc 8.0:
3734      #   icc: Command line remark: option '-MP' not supported
3735      if (grep 'ignoring option' conftest.err ||
3736          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3737        am_cv_CC_dependencies_compiler_type=$depmode
3738        break
3739      fi
3740    fi
3741  done
3742
3743  cd ..
3744  rm -rf conftest.dir
3745else
3746  am_cv_CC_dependencies_compiler_type=none
3747fi
3748
3749fi
3750{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3751$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3753
3754 if
3755  test "x$enable_dependency_tracking" != xno \
3756  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3757  am__fastdepCC_TRUE=
3758  am__fastdepCC_FALSE='#'
3759else
3760  am__fastdepCC_TRUE='#'
3761  am__fastdepCC_FALSE=
3762fi
3763
3764
3765# Check whether --enable-shared was given.
3766if test "${enable_shared+set}" = set; then
3767  enableval=$enable_shared; p=${PACKAGE-default}
3768    case $enableval in
3769    yes) enable_shared=yes ;;
3770    no) enable_shared=no ;;
3771    *)
3772      enable_shared=no
3773      # Look at the argument we got.  We use all the common list separators.
3774      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775      for pkg in $enableval; do
3776	IFS="$lt_save_ifs"
3777	if test "X$pkg" = "X$p"; then
3778	  enable_shared=yes
3779	fi
3780      done
3781      IFS="$lt_save_ifs"
3782      ;;
3783    esac
3784else
3785  enable_shared=yes
3786fi
3787
3788
3789# Check whether --enable-static was given.
3790if test "${enable_static+set}" = set; then
3791  enableval=$enable_static; p=${PACKAGE-default}
3792    case $enableval in
3793    yes) enable_static=yes ;;
3794    no) enable_static=no ;;
3795    *)
3796     enable_static=no
3797      # Look at the argument we got.  We use all the common list separators.
3798      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3799      for pkg in $enableval; do
3800	IFS="$lt_save_ifs"
3801	if test "X$pkg" = "X$p"; then
3802	  enable_static=yes
3803	fi
3804      done
3805      IFS="$lt_save_ifs"
3806      ;;
3807    esac
3808else
3809  enable_static=yes
3810fi
3811
3812
3813# Check whether --enable-fast-install was given.
3814if test "${enable_fast_install+set}" = set; then
3815  enableval=$enable_fast_install; p=${PACKAGE-default}
3816    case $enableval in
3817    yes) enable_fast_install=yes ;;
3818    no) enable_fast_install=no ;;
3819    *)
3820      enable_fast_install=no
3821      # Look at the argument we got.  We use all the common list separators.
3822      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3823      for pkg in $enableval; do
3824	IFS="$lt_save_ifs"
3825	if test "X$pkg" = "X$p"; then
3826	  enable_fast_install=yes
3827	fi
3828      done
3829      IFS="$lt_save_ifs"
3830      ;;
3831    esac
3832else
3833  enable_fast_install=yes
3834fi
3835
3836
3837# Make sure we can run config.sub.
3838$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3839  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3840$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3841   { (exit 1); exit 1; }; }
3842
3843{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3844$as_echo_n "checking build system type... " >&6; }
3845if test "${ac_cv_build+set}" = set; then
3846  $as_echo_n "(cached) " >&6
3847else
3848  ac_build_alias=$build_alias
3849test "x$ac_build_alias" = x &&
3850  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3851test "x$ac_build_alias" = x &&
3852  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3853$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3854   { (exit 1); exit 1; }; }
3855ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3856  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3857$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3858   { (exit 1); exit 1; }; }
3859
3860fi
3861{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3862$as_echo "$ac_cv_build" >&6; }
3863case $ac_cv_build in
3864*-*-*) ;;
3865*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3866$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3867   { (exit 1); exit 1; }; };;
3868esac
3869build=$ac_cv_build
3870ac_save_IFS=$IFS; IFS='-'
3871set x $ac_cv_build
3872shift
3873build_cpu=$1
3874build_vendor=$2
3875shift; shift
3876# Remember, the first character of IFS is used to create $*,
3877# except with old shells:
3878build_os=$*
3879IFS=$ac_save_IFS
3880case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3881
3882
3883{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3884$as_echo_n "checking host system type... " >&6; }
3885if test "${ac_cv_host+set}" = set; then
3886  $as_echo_n "(cached) " >&6
3887else
3888  if test "x$host_alias" = x; then
3889  ac_cv_host=$ac_cv_build
3890else
3891  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3892    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3893$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3894   { (exit 1); exit 1; }; }
3895fi
3896
3897fi
3898{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3899$as_echo "$ac_cv_host" >&6; }
3900case $ac_cv_host in
3901*-*-*) ;;
3902*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3903$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3904   { (exit 1); exit 1; }; };;
3905esac
3906host=$ac_cv_host
3907ac_save_IFS=$IFS; IFS='-'
3908set x $ac_cv_host
3909shift
3910host_cpu=$1
3911host_vendor=$2
3912shift; shift
3913# Remember, the first character of IFS is used to create $*,
3914# except with old shells:
3915host_os=$*
3916IFS=$ac_save_IFS
3917case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3918
3919
3920{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3921$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3922if test "${lt_cv_path_SED+set}" = set; then
3923  $as_echo_n "(cached) " >&6
3924else
3925  # Loop through the user's path and test for sed and gsed.
3926# Then use that list of sed's as ones to test for truncation.
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932  for lt_ac_prog in sed gsed; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3935        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3936      fi
3937    done
3938  done
3939done
3940IFS=$as_save_IFS
3941lt_ac_max=0
3942lt_ac_count=0
3943# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3944# along with /bin/sed that truncates output.
3945for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3946  test ! -f $lt_ac_sed && continue
3947  cat /dev/null > conftest.in
3948  lt_ac_count=0
3949  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3950  # Check for GNU sed and select it if it is found.
3951  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3952    lt_cv_path_SED=$lt_ac_sed
3953    break
3954  fi
3955  while true; do
3956    cat conftest.in conftest.in >conftest.tmp
3957    mv conftest.tmp conftest.in
3958    cp conftest.in conftest.nl
3959    echo >>conftest.nl
3960    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3961    cmp -s conftest.out conftest.nl || break
3962    # 10000 chars as input seems more than enough
3963    test $lt_ac_count -gt 10 && break
3964    lt_ac_count=`expr $lt_ac_count + 1`
3965    if test $lt_ac_count -gt $lt_ac_max; then
3966      lt_ac_max=$lt_ac_count
3967      lt_cv_path_SED=$lt_ac_sed
3968    fi
3969  done
3970done
3971
3972fi
3973
3974SED=$lt_cv_path_SED
3975
3976{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3977$as_echo "$SED" >&6; }
3978
3979{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3981if test "${ac_cv_path_GREP+set}" = set; then
3982  $as_echo_n "(cached) " >&6
3983else
3984  if test -z "$GREP"; then
3985  ac_path_GREP_found=false
3986  # Loop through the user's path and test for each of PROGNAME-LIST
3987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989do
3990  IFS=$as_save_IFS
3991  test -z "$as_dir" && as_dir=.
3992  for ac_prog in grep ggrep; do
3993    for ac_exec_ext in '' $ac_executable_extensions; do
3994      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996# Check for GNU ac_path_GREP and select it if it is found.
3997  # Check for GNU $ac_path_GREP
3998case `"$ac_path_GREP" --version 2>&1` in
3999*GNU*)
4000  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001*)
4002  ac_count=0
4003  $as_echo_n 0123456789 >"conftest.in"
4004  while :
4005  do
4006    cat "conftest.in" "conftest.in" >"conftest.tmp"
4007    mv "conftest.tmp" "conftest.in"
4008    cp "conftest.in" "conftest.nl"
4009    $as_echo 'GREP' >> "conftest.nl"
4010    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012    ac_count=`expr $ac_count + 1`
4013    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014      # Best one so far, save it but keep looking for a better one
4015      ac_cv_path_GREP="$ac_path_GREP"
4016      ac_path_GREP_max=$ac_count
4017    fi
4018    # 10*(2^10) chars as input seems more than enough
4019    test $ac_count -gt 10 && break
4020  done
4021  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022esac
4023
4024      $ac_path_GREP_found && break 3
4025    done
4026  done
4027done
4028IFS=$as_save_IFS
4029  if test -z "$ac_cv_path_GREP"; then
4030    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4031$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4032   { (exit 1); exit 1; }; }
4033  fi
4034else
4035  ac_cv_path_GREP=$GREP
4036fi
4037
4038fi
4039{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4040$as_echo "$ac_cv_path_GREP" >&6; }
4041 GREP="$ac_cv_path_GREP"
4042
4043
4044{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4045$as_echo_n "checking for egrep... " >&6; }
4046if test "${ac_cv_path_EGREP+set}" = set; then
4047  $as_echo_n "(cached) " >&6
4048else
4049  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4050   then ac_cv_path_EGREP="$GREP -E"
4051   else
4052     if test -z "$EGREP"; then
4053  ac_path_EGREP_found=false
4054  # Loop through the user's path and test for each of PROGNAME-LIST
4055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057do
4058  IFS=$as_save_IFS
4059  test -z "$as_dir" && as_dir=.
4060  for ac_prog in egrep; do
4061    for ac_exec_ext in '' $ac_executable_extensions; do
4062      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4063      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4064# Check for GNU ac_path_EGREP and select it if it is found.
4065  # Check for GNU $ac_path_EGREP
4066case `"$ac_path_EGREP" --version 2>&1` in
4067*GNU*)
4068  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069*)
4070  ac_count=0
4071  $as_echo_n 0123456789 >"conftest.in"
4072  while :
4073  do
4074    cat "conftest.in" "conftest.in" >"conftest.tmp"
4075    mv "conftest.tmp" "conftest.in"
4076    cp "conftest.in" "conftest.nl"
4077    $as_echo 'EGREP' >> "conftest.nl"
4078    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080    ac_count=`expr $ac_count + 1`
4081    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4082      # Best one so far, save it but keep looking for a better one
4083      ac_cv_path_EGREP="$ac_path_EGREP"
4084      ac_path_EGREP_max=$ac_count
4085    fi
4086    # 10*(2^10) chars as input seems more than enough
4087    test $ac_count -gt 10 && break
4088  done
4089  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090esac
4091
4092      $ac_path_EGREP_found && break 3
4093    done
4094  done
4095done
4096IFS=$as_save_IFS
4097  if test -z "$ac_cv_path_EGREP"; then
4098    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4099$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4100   { (exit 1); exit 1; }; }
4101  fi
4102else
4103  ac_cv_path_EGREP=$EGREP
4104fi
4105
4106   fi
4107fi
4108{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4109$as_echo "$ac_cv_path_EGREP" >&6; }
4110 EGREP="$ac_cv_path_EGREP"
4111
4112
4113
4114# Check whether --with-gnu-ld was given.
4115if test "${with_gnu_ld+set}" = set; then
4116  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4117else
4118  with_gnu_ld=no
4119fi
4120
4121ac_prog=ld
4122if test "$GCC" = yes; then
4123  # Check if gcc -print-prog-name=ld gives a path.
4124  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4125$as_echo_n "checking for ld used by $CC... " >&6; }
4126  case $host in
4127  *-*-mingw*)
4128    # gcc leaves a trailing carriage return which upsets mingw
4129    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4130  *)
4131    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4132  esac
4133  case $ac_prog in
4134    # Accept absolute paths.
4135    [\\/]* | ?:[\\/]*)
4136      re_direlt='/[^/][^/]*/\.\./'
4137      # Canonicalize the pathname of ld
4138      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4139      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4140	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4141      done
4142      test -z "$LD" && LD="$ac_prog"
4143      ;;
4144  "")
4145    # If it fails, then pretend we aren't using GCC.
4146    ac_prog=ld
4147    ;;
4148  *)
4149    # If it is relative, then search for the first ld in PATH.
4150    with_gnu_ld=unknown
4151    ;;
4152  esac
4153elif test "$with_gnu_ld" = yes; then
4154  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4155$as_echo_n "checking for GNU ld... " >&6; }
4156else
4157  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4158$as_echo_n "checking for non-GNU ld... " >&6; }
4159fi
4160if test "${lt_cv_path_LD+set}" = set; then
4161  $as_echo_n "(cached) " >&6
4162else
4163  if test -z "$LD"; then
4164  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4165  for ac_dir in $PATH; do
4166    IFS="$lt_save_ifs"
4167    test -z "$ac_dir" && ac_dir=.
4168    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169      lt_cv_path_LD="$ac_dir/$ac_prog"
4170      # Check to see if the program is GNU ld.  I'd rather use --version,
4171      # but apparently some variants of GNU ld only accept -v.
4172      # Break only if it was the GNU/non-GNU ld that we prefer.
4173      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4174      *GNU* | *'with BFD'*)
4175	test "$with_gnu_ld" != no && break
4176	;;
4177      *)
4178	test "$with_gnu_ld" != yes && break
4179	;;
4180      esac
4181    fi
4182  done
4183  IFS="$lt_save_ifs"
4184else
4185  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4186fi
4187fi
4188
4189LD="$lt_cv_path_LD"
4190if test -n "$LD"; then
4191  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4192$as_echo "$LD" >&6; }
4193else
4194  { $as_echo "$as_me:$LINENO: result: no" >&5
4195$as_echo "no" >&6; }
4196fi
4197test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4198$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4199   { (exit 1); exit 1; }; }
4200{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4201$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4202if test "${lt_cv_prog_gnu_ld+set}" = set; then
4203  $as_echo_n "(cached) " >&6
4204else
4205  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4206case `$LD -v 2>&1 </dev/null` in
4207*GNU* | *'with BFD'*)
4208  lt_cv_prog_gnu_ld=yes
4209  ;;
4210*)
4211  lt_cv_prog_gnu_ld=no
4212  ;;
4213esac
4214fi
4215{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4216$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4217with_gnu_ld=$lt_cv_prog_gnu_ld
4218
4219
4220{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4221$as_echo_n "checking for $LD option to reload object files... " >&6; }
4222if test "${lt_cv_ld_reload_flag+set}" = set; then
4223  $as_echo_n "(cached) " >&6
4224else
4225  lt_cv_ld_reload_flag='-r'
4226fi
4227{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4228$as_echo "$lt_cv_ld_reload_flag" >&6; }
4229reload_flag=$lt_cv_ld_reload_flag
4230case $reload_flag in
4231"" | " "*) ;;
4232*) reload_flag=" $reload_flag" ;;
4233esac
4234reload_cmds='$LD$reload_flag -o $output$reload_objs'
4235case $host_os in
4236  darwin*)
4237    if test "$GCC" = yes; then
4238      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4239    else
4240      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4241    fi
4242    ;;
4243esac
4244
4245{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4246$as_echo_n "checking for BSD-compatible nm... " >&6; }
4247if test "${lt_cv_path_NM+set}" = set; then
4248  $as_echo_n "(cached) " >&6
4249else
4250  if test -n "$NM"; then
4251  # Let the user override the test.
4252  lt_cv_path_NM="$NM"
4253else
4254  lt_nm_to_check="${ac_tool_prefix}nm"
4255  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4256    lt_nm_to_check="$lt_nm_to_check nm"
4257  fi
4258  for lt_tmp_nm in $lt_nm_to_check; do
4259    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4260    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4261      IFS="$lt_save_ifs"
4262      test -z "$ac_dir" && ac_dir=.
4263      tmp_nm="$ac_dir/$lt_tmp_nm"
4264      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4265	# Check to see if the nm accepts a BSD-compat flag.
4266	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4267	#   nm: unknown option "B" ignored
4268	# Tru64's nm complains that /dev/null is an invalid object file
4269	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4270	*/dev/null* | *'Invalid file or object type'*)
4271	  lt_cv_path_NM="$tmp_nm -B"
4272	  break
4273	  ;;
4274	*)
4275	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4276	  */dev/null*)
4277	    lt_cv_path_NM="$tmp_nm -p"
4278	    break
4279	    ;;
4280	  *)
4281	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4282	    continue # so that we can try to find one that supports BSD flags
4283	    ;;
4284	  esac
4285	  ;;
4286	esac
4287      fi
4288    done
4289    IFS="$lt_save_ifs"
4290  done
4291  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4292fi
4293fi
4294{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4295$as_echo "$lt_cv_path_NM" >&6; }
4296NM="$lt_cv_path_NM"
4297
4298{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4299$as_echo_n "checking whether ln -s works... " >&6; }
4300LN_S=$as_ln_s
4301if test "$LN_S" = "ln -s"; then
4302  { $as_echo "$as_me:$LINENO: result: yes" >&5
4303$as_echo "yes" >&6; }
4304else
4305  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4306$as_echo "no, using $LN_S" >&6; }
4307fi
4308
4309{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4310$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4311if test "${lt_cv_deplibs_check_method+set}" = set; then
4312  $as_echo_n "(cached) " >&6
4313else
4314  lt_cv_file_magic_cmd='$MAGIC_CMD'
4315lt_cv_file_magic_test_file=
4316lt_cv_deplibs_check_method='unknown'
4317# Need to set the preceding variable on all platforms that support
4318# interlibrary dependencies.
4319# 'none' -- dependencies not supported.
4320# `unknown' -- same as none, but documents that we really don't know.
4321# 'pass_all' -- all dependencies passed with no checks.
4322# 'test_compile' -- check by making test program.
4323# 'file_magic [[regex]]' -- check by looking for files in library path
4324# which responds to the $file_magic_cmd with a given extended regex.
4325# If you have `file' or equivalent on your system and you're not sure
4326# whether `pass_all' will *always* work, you probably want this one.
4327
4328case $host_os in
4329aix[4-9]*)
4330  lt_cv_deplibs_check_method=pass_all
4331  ;;
4332
4333beos*)
4334  lt_cv_deplibs_check_method=pass_all
4335  ;;
4336
4337bsdi[45]*)
4338  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4339  lt_cv_file_magic_cmd='/usr/bin/file -L'
4340  lt_cv_file_magic_test_file=/shlib/libc.so
4341  ;;
4342
4343cygwin*)
4344  # func_win32_libid is a shell function defined in ltmain.sh
4345  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4346  lt_cv_file_magic_cmd='func_win32_libid'
4347  ;;
4348
4349mingw* | pw32*)
4350  # Base MSYS/MinGW do not provide the 'file' command needed by
4351  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4352  # unless we find 'file', for example because we are cross-compiling.
4353  if ( file / ) >/dev/null 2>&1; then
4354    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4355    lt_cv_file_magic_cmd='func_win32_libid'
4356  else
4357    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4358    lt_cv_file_magic_cmd='$OBJDUMP -f'
4359  fi
4360  ;;
4361
4362darwin* | rhapsody*)
4363  lt_cv_deplibs_check_method=pass_all
4364  ;;
4365
4366freebsd* | dragonfly*)
4367  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4368    case $host_cpu in
4369    i*86 )
4370      # Not sure whether the presence of OpenBSD here was a mistake.
4371      # Let's accept both of them until this is cleared up.
4372      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4373      lt_cv_file_magic_cmd=/usr/bin/file
4374      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4375      ;;
4376    esac
4377  else
4378    lt_cv_deplibs_check_method=pass_all
4379  fi
4380  ;;
4381
4382gnu*)
4383  lt_cv_deplibs_check_method=pass_all
4384  ;;
4385
4386hpux10.20* | hpux11*)
4387  lt_cv_file_magic_cmd=/usr/bin/file
4388  case $host_cpu in
4389  ia64*)
4390    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4391    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4392    ;;
4393  hppa*64*)
4394    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]'
4395    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4396    ;;
4397  *)
4398    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4399    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4400    ;;
4401  esac
4402  ;;
4403
4404interix[3-9]*)
4405  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4406  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4407  ;;
4408
4409irix5* | irix6* | nonstopux*)
4410  case $LD in
4411  *-32|*"-32 ") libmagic=32-bit;;
4412  *-n32|*"-n32 ") libmagic=N32;;
4413  *-64|*"-64 ") libmagic=64-bit;;
4414  *) libmagic=never-match;;
4415  esac
4416  lt_cv_deplibs_check_method=pass_all
4417  ;;
4418
4419# This must be Linux ELF.
4420linux* | k*bsd*-gnu)
4421  lt_cv_deplibs_check_method=pass_all
4422  ;;
4423
4424netbsd*)
4425  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4426    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4427  else
4428    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4429  fi
4430  ;;
4431
4432newos6*)
4433  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4434  lt_cv_file_magic_cmd=/usr/bin/file
4435  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4436  ;;
4437
4438nto-qnx*)
4439  lt_cv_deplibs_check_method=unknown
4440  ;;
4441
4442openbsd*)
4443  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4444    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4445  else
4446    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4447  fi
4448  ;;
4449
4450osf3* | osf4* | osf5*)
4451  lt_cv_deplibs_check_method=pass_all
4452  ;;
4453
4454rdos*)
4455  lt_cv_deplibs_check_method=pass_all
4456  ;;
4457
4458solaris*)
4459  lt_cv_deplibs_check_method=pass_all
4460  ;;
4461
4462sysv4 | sysv4.3*)
4463  case $host_vendor in
4464  motorola)
4465    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]'
4466    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4467    ;;
4468  ncr)
4469    lt_cv_deplibs_check_method=pass_all
4470    ;;
4471  sequent)
4472    lt_cv_file_magic_cmd='/bin/file'
4473    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4474    ;;
4475  sni)
4476    lt_cv_file_magic_cmd='/bin/file'
4477    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4478    lt_cv_file_magic_test_file=/lib/libc.so
4479    ;;
4480  siemens)
4481    lt_cv_deplibs_check_method=pass_all
4482    ;;
4483  pc)
4484    lt_cv_deplibs_check_method=pass_all
4485    ;;
4486  esac
4487  ;;
4488
4489sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4490  lt_cv_deplibs_check_method=pass_all
4491  ;;
4492esac
4493
4494fi
4495{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4496$as_echo "$lt_cv_deplibs_check_method" >&6; }
4497file_magic_cmd=$lt_cv_file_magic_cmd
4498deplibs_check_method=$lt_cv_deplibs_check_method
4499test -z "$deplibs_check_method" && deplibs_check_method=unknown
4500
4501
4502
4503
4504# If no C compiler was specified, use CC.
4505LTCC=${LTCC-"$CC"}
4506
4507# If no C compiler flags were specified, use CFLAGS.
4508LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4509
4510# Allow CC to be a program name with arguments.
4511compiler=$CC
4512
4513
4514# Check whether --enable-libtool-lock was given.
4515if test "${enable_libtool_lock+set}" = set; then
4516  enableval=$enable_libtool_lock;
4517fi
4518
4519test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4520
4521# Some flags need to be propagated to the compiler or linker for good
4522# libtool support.
4523case $host in
4524ia64-*-hpux*)
4525  # Find out which ABI we are using.
4526  echo 'int i;' > conftest.$ac_ext
4527  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528  (eval $ac_compile) 2>&5
4529  ac_status=$?
4530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; then
4532    case `/usr/bin/file conftest.$ac_objext` in
4533    *ELF-32*)
4534      HPUX_IA64_MODE="32"
4535      ;;
4536    *ELF-64*)
4537      HPUX_IA64_MODE="64"
4538      ;;
4539    esac
4540  fi
4541  rm -rf conftest*
4542  ;;
4543*-*-irix6*)
4544  # Find out which ABI we are using.
4545  echo '#line 4545 "configure"' > conftest.$ac_ext
4546  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547  (eval $ac_compile) 2>&5
4548  ac_status=$?
4549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; then
4551   if test "$lt_cv_prog_gnu_ld" = yes; then
4552    case `/usr/bin/file conftest.$ac_objext` in
4553    *32-bit*)
4554      LD="${LD-ld} -melf32bsmip"
4555      ;;
4556    *N32*)
4557      LD="${LD-ld} -melf32bmipn32"
4558      ;;
4559    *64-bit*)
4560      LD="${LD-ld} -melf64bmip"
4561      ;;
4562    esac
4563   else
4564    case `/usr/bin/file conftest.$ac_objext` in
4565    *32-bit*)
4566      LD="${LD-ld} -32"
4567      ;;
4568    *N32*)
4569      LD="${LD-ld} -n32"
4570      ;;
4571    *64-bit*)
4572      LD="${LD-ld} -64"
4573      ;;
4574    esac
4575   fi
4576  fi
4577  rm -rf conftest*
4578  ;;
4579
4580x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4581s390*-*linux*|sparc*-*linux*)
4582  # Find out which ABI we are using.
4583  echo 'int i;' > conftest.$ac_ext
4584  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585  (eval $ac_compile) 2>&5
4586  ac_status=$?
4587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); }; then
4589    case `/usr/bin/file conftest.o` in
4590    *32-bit*)
4591      case $host in
4592        x86_64-*kfreebsd*-gnu)
4593          LD="${LD-ld} -m elf_i386_fbsd"
4594          ;;
4595        x86_64-*linux*)
4596          LD="${LD-ld} -m elf_i386"
4597          ;;
4598        ppc64-*linux*|powerpc64-*linux*)
4599          LD="${LD-ld} -m elf32ppclinux"
4600          ;;
4601        s390x-*linux*)
4602          LD="${LD-ld} -m elf_s390"
4603          ;;
4604        sparc64-*linux*)
4605          LD="${LD-ld} -m elf32_sparc"
4606          ;;
4607      esac
4608      ;;
4609    *64-bit*)
4610      case $host in
4611        x86_64-*kfreebsd*-gnu)
4612          LD="${LD-ld} -m elf_x86_64_fbsd"
4613          ;;
4614        x86_64-*linux*)
4615          LD="${LD-ld} -m elf_x86_64"
4616          ;;
4617        ppc*-*linux*|powerpc*-*linux*)
4618          LD="${LD-ld} -m elf64ppc"
4619          ;;
4620        s390*-*linux*)
4621          LD="${LD-ld} -m elf64_s390"
4622          ;;
4623        sparc*-*linux*)
4624          LD="${LD-ld} -m elf64_sparc"
4625          ;;
4626      esac
4627      ;;
4628    esac
4629  fi
4630  rm -rf conftest*
4631  ;;
4632
4633*-*-sco3.2v5*)
4634  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4635  SAVE_CFLAGS="$CFLAGS"
4636  CFLAGS="$CFLAGS -belf"
4637  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4638$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4639if test "${lt_cv_cc_needs_belf+set}" = set; then
4640  $as_echo_n "(cached) " >&6
4641else
4642  ac_ext=c
4643ac_cpp='$CPP $CPPFLAGS'
4644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648     cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654
4655int
4656main ()
4657{
4658
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (ac_try="$ac_link"
4665case "(($ac_try" in
4666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667  *) ac_try_echo=$ac_try;;
4668esac
4669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670$as_echo "$ac_try_echo") >&5
4671  (eval "$ac_link") 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } && {
4678	 test -z "$ac_c_werror_flag" ||
4679	 test ! -s conftest.err
4680       } && test -s conftest$ac_exeext && {
4681	 test "$cross_compiling" = yes ||
4682	 $as_test_x conftest$ac_exeext
4683       }; then
4684  lt_cv_cc_needs_belf=yes
4685else
4686  $as_echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689	lt_cv_cc_needs_belf=no
4690fi
4691
4692rm -rf conftest.dSYM
4693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4694      conftest$ac_exeext conftest.$ac_ext
4695     ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
4701fi
4702{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4703$as_echo "$lt_cv_cc_needs_belf" >&6; }
4704  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4705    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4706    CFLAGS="$SAVE_CFLAGS"
4707  fi
4708  ;;
4709sparc*-*solaris*)
4710  # Find out which ABI we are using.
4711  echo 'int i;' > conftest.$ac_ext
4712  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713  (eval $ac_compile) 2>&5
4714  ac_status=$?
4715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; then
4717    case `/usr/bin/file conftest.o` in
4718    *64-bit*)
4719      case $lt_cv_prog_gnu_ld in
4720      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4721      *)
4722        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4723	  LD="${LD-ld} -64"
4724	fi
4725	;;
4726      esac
4727      ;;
4728    esac
4729  fi
4730  rm -rf conftest*
4731  ;;
4732
4733
4734esac
4735
4736need_locks="$enable_libtool_lock"
4737
4738
4739ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4745$as_echo_n "checking how to run the C preprocessor... " >&6; }
4746# On Suns, sometimes $CPP names a directory.
4747if test -n "$CPP" && test -d "$CPP"; then
4748  CPP=
4749fi
4750if test -z "$CPP"; then
4751  if test "${ac_cv_prog_CPP+set}" = set; then
4752  $as_echo_n "(cached) " >&6
4753else
4754      # Double quotes because CPP needs to be expanded
4755    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756    do
4757      ac_preproc_ok=false
4758for ac_c_preproc_warn_flag in '' yes
4759do
4760  # Use a header file that comes with gcc, so configuring glibc
4761  # with a fresh cross-compiler works.
4762  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763  # <limits.h> exists even on freestanding compilers.
4764  # On the NeXT, cc -E runs the code through the compiler's parser,
4765  # not just through cpp. "Syntax error" is here to catch this case.
4766  cat >conftest.$ac_ext <<_ACEOF
4767/* confdefs.h.  */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h.  */
4772#ifdef __STDC__
4773# include <limits.h>
4774#else
4775# include <assert.h>
4776#endif
4777		     Syntax error
4778_ACEOF
4779if { (ac_try="$ac_cpp conftest.$ac_ext"
4780case "(($ac_try" in
4781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782  *) ac_try_echo=$ac_try;;
4783esac
4784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785$as_echo "$ac_try_echo") >&5
4786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4787  ac_status=$?
4788  grep -v '^ *+' conftest.er1 >conftest.err
4789  rm -f conftest.er1
4790  cat conftest.err >&5
4791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); } >/dev/null && {
4793	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4794	 test ! -s conftest.err
4795       }; then
4796  :
4797else
4798  $as_echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801  # Broken: fails on valid input.
4802continue
4803fi
4804
4805rm -f conftest.err conftest.$ac_ext
4806
4807  # OK, works on sane cases.  Now check whether nonexistent headers
4808  # can be detected and how.
4809  cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#include <ac_nonexistent.h>
4816_ACEOF
4817if { (ac_try="$ac_cpp conftest.$ac_ext"
4818case "(($ac_try" in
4819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820  *) ac_try_echo=$ac_try;;
4821esac
4822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823$as_echo "$ac_try_echo") >&5
4824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825  ac_status=$?
4826  grep -v '^ *+' conftest.er1 >conftest.err
4827  rm -f conftest.er1
4828  cat conftest.err >&5
4829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830  (exit $ac_status); } >/dev/null && {
4831	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4832	 test ! -s conftest.err
4833       }; then
4834  # Broken: success on invalid input.
4835continue
4836else
4837  $as_echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840  # Passes both tests.
4841ac_preproc_ok=:
4842break
4843fi
4844
4845rm -f conftest.err conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then
4851  break
4852fi
4853
4854    done
4855    ac_cv_prog_CPP=$CPP
4856
4857fi
4858  CPP=$ac_cv_prog_CPP
4859else
4860  ac_cv_prog_CPP=$CPP
4861fi
4862{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4863$as_echo "$CPP" >&6; }
4864ac_preproc_ok=false
4865for ac_c_preproc_warn_flag in '' yes
4866do
4867  # Use a header file that comes with gcc, so configuring glibc
4868  # with a fresh cross-compiler works.
4869  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870  # <limits.h> exists even on freestanding compilers.
4871  # On the NeXT, cc -E runs the code through the compiler's parser,
4872  # not just through cpp. "Syntax error" is here to catch this case.
4873  cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879#ifdef __STDC__
4880# include <limits.h>
4881#else
4882# include <assert.h>
4883#endif
4884		     Syntax error
4885_ACEOF
4886if { (ac_try="$ac_cpp conftest.$ac_ext"
4887case "(($ac_try" in
4888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889  *) ac_try_echo=$ac_try;;
4890esac
4891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892$as_echo "$ac_try_echo") >&5
4893  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894  ac_status=$?
4895  grep -v '^ *+' conftest.er1 >conftest.err
4896  rm -f conftest.er1
4897  cat conftest.err >&5
4898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); } >/dev/null && {
4900	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901	 test ! -s conftest.err
4902       }; then
4903  :
4904else
4905  $as_echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908  # Broken: fails on valid input.
4909continue
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914  # OK, works on sane cases.  Now check whether nonexistent headers
4915  # can be detected and how.
4916  cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922#include <ac_nonexistent.h>
4923_ACEOF
4924if { (ac_try="$ac_cpp conftest.$ac_ext"
4925case "(($ac_try" in
4926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927  *) ac_try_echo=$ac_try;;
4928esac
4929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930$as_echo "$ac_try_echo") >&5
4931  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } >/dev/null && {
4938	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939	 test ! -s conftest.err
4940       }; then
4941  # Broken: success on invalid input.
4942continue
4943else
4944  $as_echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947  # Passes both tests.
4948ac_preproc_ok=:
4949break
4950fi
4951
4952rm -f conftest.err conftest.$ac_ext
4953
4954done
4955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956rm -f conftest.err conftest.$ac_ext
4957if $ac_preproc_ok; then
4958  :
4959else
4960  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4963See \`config.log' for more details." >&5
4964$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4965See \`config.log' for more details." >&2;}
4966   { (exit 1); exit 1; }; }; }
4967fi
4968
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975
4976{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4977$as_echo_n "checking for ANSI C header files... " >&6; }
4978if test "${ac_cv_header_stdc+set}" = set; then
4979  $as_echo_n "(cached) " >&6
4980else
4981  cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h.  */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h.  */
4987#include <stdlib.h>
4988#include <stdarg.h>
4989#include <string.h>
4990#include <float.h>
4991
4992int
4993main ()
4994{
4995
4996  ;
4997  return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (ac_try="$ac_compile"
5002case "(($ac_try" in
5003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004  *) ac_try_echo=$ac_try;;
5005esac
5006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5007$as_echo "$ac_try_echo") >&5
5008  (eval "$ac_compile") 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } && {
5015	 test -z "$ac_c_werror_flag" ||
5016	 test ! -s conftest.err
5017       } && test -s conftest.$ac_objext; then
5018  ac_cv_header_stdc=yes
5019else
5020  $as_echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023	ac_cv_header_stdc=no
5024fi
5025
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027
5028if test $ac_cv_header_stdc = yes; then
5029  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#include <string.h>
5037
5038_ACEOF
5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040  $EGREP "memchr" >/dev/null 2>&1; then
5041  :
5042else
5043  ac_cv_header_stdc=no
5044fi
5045rm -f conftest*
5046
5047fi
5048
5049if test $ac_cv_header_stdc = yes; then
5050  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5051  cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057#include <stdlib.h>
5058
5059_ACEOF
5060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5061  $EGREP "free" >/dev/null 2>&1; then
5062  :
5063else
5064  ac_cv_header_stdc=no
5065fi
5066rm -f conftest*
5067
5068fi
5069
5070if test $ac_cv_header_stdc = yes; then
5071  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5072  if test "$cross_compiling" = yes; then
5073  :
5074else
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081#include <ctype.h>
5082#include <stdlib.h>
5083#if ((' ' & 0x0FF) == 0x020)
5084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5086#else
5087# define ISLOWER(c) \
5088		   (('a' <= (c) && (c) <= 'i') \
5089		     || ('j' <= (c) && (c) <= 'r') \
5090		     || ('s' <= (c) && (c) <= 'z'))
5091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092#endif
5093
5094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5095int
5096main ()
5097{
5098  int i;
5099  for (i = 0; i < 256; i++)
5100    if (XOR (islower (i), ISLOWER (i))
5101	|| toupper (i) != TOUPPER (i))
5102      return 2;
5103  return 0;
5104}
5105_ACEOF
5106rm -f conftest$ac_exeext
5107if { (ac_try="$ac_link"
5108case "(($ac_try" in
5109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110  *) ac_try_echo=$ac_try;;
5111esac
5112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5113$as_echo "$ac_try_echo") >&5
5114  (eval "$ac_link") 2>&5
5115  ac_status=$?
5116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5118  { (case "(($ac_try" in
5119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120  *) ac_try_echo=$ac_try;;
5121esac
5122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5123$as_echo "$ac_try_echo") >&5
5124  (eval "$ac_try") 2>&5
5125  ac_status=$?
5126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); }; }; then
5128  :
5129else
5130  $as_echo "$as_me: program exited with status $ac_status" >&5
5131$as_echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134( exit $ac_status )
5135ac_cv_header_stdc=no
5136fi
5137rm -rf conftest.dSYM
5138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139fi
5140
5141
5142fi
5143fi
5144{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5145$as_echo "$ac_cv_header_stdc" >&6; }
5146if test $ac_cv_header_stdc = yes; then
5147
5148cat >>confdefs.h <<\_ACEOF
5149#define STDC_HEADERS 1
5150_ACEOF
5151
5152fi
5153
5154# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5165		  inttypes.h stdint.h unistd.h
5166do
5167as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5169$as_echo_n "checking for $ac_header... " >&6; }
5170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171  $as_echo_n "(cached) " >&6
5172else
5173  cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179$ac_includes_default
5180
5181#include <$ac_header>
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (ac_try="$ac_compile"
5185case "(($ac_try" in
5186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187  *) ac_try_echo=$ac_try;;
5188esac
5189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5190$as_echo "$ac_try_echo") >&5
5191  (eval "$ac_compile") 2>conftest.er1
5192  ac_status=$?
5193  grep -v '^ *+' conftest.er1 >conftest.err
5194  rm -f conftest.er1
5195  cat conftest.err >&5
5196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } && {
5198	 test -z "$ac_c_werror_flag" ||
5199	 test ! -s conftest.err
5200       } && test -s conftest.$ac_objext; then
5201  eval "$as_ac_Header=yes"
5202else
5203  $as_echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206	eval "$as_ac_Header=no"
5207fi
5208
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210fi
5211ac_res=`eval 'as_val=${'$as_ac_Header'}
5212		 $as_echo "$as_val"'`
5213	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5214$as_echo "$ac_res" >&6; }
5215as_val=`eval 'as_val=${'$as_ac_Header'}
5216		 $as_echo "$as_val"'`
5217   if test "x$as_val" = x""yes; then
5218  cat >>confdefs.h <<_ACEOF
5219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220_ACEOF
5221
5222fi
5223
5224done
5225
5226
5227
5228for ac_header in dlfcn.h
5229do
5230as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5232  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5233$as_echo_n "checking for $ac_header... " >&6; }
5234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5235  $as_echo_n "(cached) " >&6
5236fi
5237ac_res=`eval 'as_val=${'$as_ac_Header'}
5238		 $as_echo "$as_val"'`
5239	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5240$as_echo "$ac_res" >&6; }
5241else
5242  # Is the header compilable?
5243{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5244$as_echo_n "checking $ac_header usability... " >&6; }
5245cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h.  */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h.  */
5251$ac_includes_default
5252#include <$ac_header>
5253_ACEOF
5254rm -f conftest.$ac_objext
5255if { (ac_try="$ac_compile"
5256case "(($ac_try" in
5257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258  *) ac_try_echo=$ac_try;;
5259esac
5260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261$as_echo "$ac_try_echo") >&5
5262  (eval "$ac_compile") 2>conftest.er1
5263  ac_status=$?
5264  grep -v '^ *+' conftest.er1 >conftest.err
5265  rm -f conftest.er1
5266  cat conftest.err >&5
5267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); } && {
5269	 test -z "$ac_c_werror_flag" ||
5270	 test ! -s conftest.err
5271       } && test -s conftest.$ac_objext; then
5272  ac_header_compiler=yes
5273else
5274  $as_echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
5277	ac_header_compiler=no
5278fi
5279
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5282$as_echo "$ac_header_compiler" >&6; }
5283
5284# Is the header present?
5285{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5286$as_echo_n "checking $ac_header presence... " >&6; }
5287cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293#include <$ac_header>
5294_ACEOF
5295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298  *) ac_try_echo=$ac_try;;
5299esac
5300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5301$as_echo "$ac_try_echo") >&5
5302  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303  ac_status=$?
5304  grep -v '^ *+' conftest.er1 >conftest.err
5305  rm -f conftest.er1
5306  cat conftest.err >&5
5307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308  (exit $ac_status); } >/dev/null && {
5309	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5310	 test ! -s conftest.err
5311       }; then
5312  ac_header_preproc=yes
5313else
5314  $as_echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317  ac_header_preproc=no
5318fi
5319
5320rm -f conftest.err conftest.$ac_ext
5321{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5322$as_echo "$ac_header_preproc" >&6; }
5323
5324# So?  What about this header?
5325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5326  yes:no: )
5327    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5328$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5329    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5330$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5331    ac_header_preproc=yes
5332    ;;
5333  no:yes:* )
5334    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5335$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5336    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5337$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5339$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5341$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5343$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5345$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5346    ( cat <<\_ASBOX
5347## ---------------------------------------------------------------------- ##
5348## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5349## ---------------------------------------------------------------------- ##
5350_ASBOX
5351     ) | sed "s/^/$as_me: WARNING:     /" >&2
5352    ;;
5353esac
5354{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5355$as_echo_n "checking for $ac_header... " >&6; }
5356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5357  $as_echo_n "(cached) " >&6
5358else
5359  eval "$as_ac_Header=\$ac_header_preproc"
5360fi
5361ac_res=`eval 'as_val=${'$as_ac_Header'}
5362		 $as_echo "$as_val"'`
5363	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5364$as_echo "$ac_res" >&6; }
5365
5366fi
5367as_val=`eval 'as_val=${'$as_ac_Header'}
5368		 $as_echo "$as_val"'`
5369   if test "x$as_val" = x""yes; then
5370  cat >>confdefs.h <<_ACEOF
5371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372_ACEOF
5373
5374fi
5375
5376done
5377
5378ac_ext=cpp
5379ac_cpp='$CXXCPP $CPPFLAGS'
5380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5383if test -z "$CXX"; then
5384  if test -n "$CCC"; then
5385    CXX=$CCC
5386  else
5387    if test -n "$ac_tool_prefix"; then
5388  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5389  do
5390    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5391set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if test "${ac_cv_prog_CXX+set}" = set; then
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -n "$CXX"; then
5398  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417CXX=$ac_cv_prog_CXX
5418if test -n "$CXX"; then
5419  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5420$as_echo "$CXX" >&6; }
5421else
5422  { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427    test -n "$CXX" && break
5428  done
5429fi
5430if test -z "$CXX"; then
5431  ac_ct_CXX=$CXX
5432  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5433do
5434  # Extract the first word of "$ac_prog", so it can be a program name with args.
5435set dummy $ac_prog; ac_word=$2
5436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -n "$ac_ct_CXX"; then
5442  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449  for ac_exec_ext in '' $ac_executable_extensions; do
5450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451    ac_cv_prog_ac_ct_CXX="$ac_prog"
5452    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5462if test -n "$ac_ct_CXX"; then
5463  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5464$as_echo "$ac_ct_CXX" >&6; }
5465else
5466  { $as_echo "$as_me:$LINENO: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470
5471  test -n "$ac_ct_CXX" && break
5472done
5473
5474  if test "x$ac_ct_CXX" = x; then
5475    CXX="g++"
5476  else
5477    case $cross_compiling:$ac_tool_warned in
5478yes:)
5479{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481ac_tool_warned=yes ;;
5482esac
5483    CXX=$ac_ct_CXX
5484  fi
5485fi
5486
5487  fi
5488fi
5489# Provide some information about the compiler.
5490$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5491set X $ac_compile
5492ac_compiler=$2
5493{ (ac_try="$ac_compiler --version >&5"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499$as_echo "$ac_try_echo") >&5
5500  (eval "$ac_compiler --version >&5") 2>&5
5501  ac_status=$?
5502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); }
5504{ (ac_try="$ac_compiler -v >&5"
5505case "(($ac_try" in
5506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507  *) ac_try_echo=$ac_try;;
5508esac
5509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510$as_echo "$ac_try_echo") >&5
5511  (eval "$ac_compiler -v >&5") 2>&5
5512  ac_status=$?
5513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }
5515{ (ac_try="$ac_compiler -V >&5"
5516case "(($ac_try" in
5517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518  *) ac_try_echo=$ac_try;;
5519esac
5520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5521$as_echo "$ac_try_echo") >&5
5522  (eval "$ac_compiler -V >&5") 2>&5
5523  ac_status=$?
5524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }
5526
5527{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5528$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5529if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5530  $as_echo_n "(cached) " >&6
5531else
5532  cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538
5539int
5540main ()
5541{
5542#ifndef __GNUC__
5543       choke me
5544#endif
5545
5546  ;
5547  return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554  *) ac_try_echo=$ac_try;;
5555esac
5556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557$as_echo "$ac_try_echo") >&5
5558  (eval "$ac_compile") 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } && {
5565	 test -z "$ac_cxx_werror_flag" ||
5566	 test ! -s conftest.err
5567       } && test -s conftest.$ac_objext; then
5568  ac_compiler_gnu=yes
5569else
5570  $as_echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
5573	ac_compiler_gnu=no
5574fi
5575
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5578
5579fi
5580{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5581$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5582if test $ac_compiler_gnu = yes; then
5583  GXX=yes
5584else
5585  GXX=
5586fi
5587ac_test_CXXFLAGS=${CXXFLAGS+set}
5588ac_save_CXXFLAGS=$CXXFLAGS
5589{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5590$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5591if test "${ac_cv_prog_cxx_g+set}" = set; then
5592  $as_echo_n "(cached) " >&6
5593else
5594  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5595   ac_cxx_werror_flag=yes
5596   ac_cv_prog_cxx_g=no
5597   CXXFLAGS="-g"
5598   cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h.  */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h.  */
5604
5605int
5606main ()
5607{
5608
5609  ;
5610  return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (ac_try="$ac_compile"
5615case "(($ac_try" in
5616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617  *) ac_try_echo=$ac_try;;
5618esac
5619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620$as_echo "$ac_try_echo") >&5
5621  (eval "$ac_compile") 2>conftest.er1
5622  ac_status=$?
5623  grep -v '^ *+' conftest.er1 >conftest.err
5624  rm -f conftest.er1
5625  cat conftest.err >&5
5626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); } && {
5628	 test -z "$ac_cxx_werror_flag" ||
5629	 test ! -s conftest.err
5630       } && test -s conftest.$ac_objext; then
5631  ac_cv_prog_cxx_g=yes
5632else
5633  $as_echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636	CXXFLAGS=""
5637      cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643
5644int
5645main ()
5646{
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660  (eval "$ac_compile") 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } && {
5667	 test -z "$ac_cxx_werror_flag" ||
5668	 test ! -s conftest.err
5669       } && test -s conftest.$ac_objext; then
5670  :
5671else
5672  $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5676	 CXXFLAGS="-g"
5677	 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683
5684int
5685main ()
5686{
5687
5688  ;
5689  return 0;
5690}
5691_ACEOF
5692rm -f conftest.$ac_objext
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696  *) ac_try_echo=$ac_try;;
5697esac
5698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699$as_echo "$ac_try_echo") >&5
5700  (eval "$ac_compile") 2>conftest.er1
5701  ac_status=$?
5702  grep -v '^ *+' conftest.er1 >conftest.err
5703  rm -f conftest.er1
5704  cat conftest.err >&5
5705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706  (exit $ac_status); } && {
5707	 test -z "$ac_cxx_werror_flag" ||
5708	 test ! -s conftest.err
5709       } && test -s conftest.$ac_objext; then
5710  ac_cv_prog_cxx_g=yes
5711else
5712  $as_echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715
5716fi
5717
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
5720
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5726fi
5727{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5728$as_echo "$ac_cv_prog_cxx_g" >&6; }
5729if test "$ac_test_CXXFLAGS" = set; then
5730  CXXFLAGS=$ac_save_CXXFLAGS
5731elif test $ac_cv_prog_cxx_g = yes; then
5732  if test "$GXX" = yes; then
5733    CXXFLAGS="-g -O2"
5734  else
5735    CXXFLAGS="-g"
5736  fi
5737else
5738  if test "$GXX" = yes; then
5739    CXXFLAGS="-O2"
5740  else
5741    CXXFLAGS=
5742  fi
5743fi
5744ac_ext=cpp
5745ac_cpp='$CXXCPP $CPPFLAGS'
5746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749
5750depcc="$CXX"  am_compiler_list=
5751
5752{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5753$as_echo_n "checking dependency style of $depcc... " >&6; }
5754if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5758  # We make a subdir and do the tests there.  Otherwise we can end up
5759  # making bogus files that we don't know about and never remove.  For
5760  # instance it was reported that on HP-UX the gcc test will end up
5761  # making a dummy file named `D' -- because `-MD' means `put the output
5762  # in D'.
5763  mkdir conftest.dir
5764  # Copy depcomp to subdir because otherwise we won't find it if we're
5765  # using a relative directory.
5766  cp "$am_depcomp" conftest.dir
5767  cd conftest.dir
5768  # We will build objects and dependencies in a subdirectory because
5769  # it helps to detect inapplicable dependency modes.  For instance
5770  # both Tru64's cc and ICC support -MD to output dependencies as a
5771  # side effect of compilation, but ICC will put the dependencies in
5772  # the current directory while Tru64 will put them in the object
5773  # directory.
5774  mkdir sub
5775
5776  am_cv_CXX_dependencies_compiler_type=none
5777  if test "$am_compiler_list" = ""; then
5778     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779  fi
5780  am__universal=false
5781  case " $depcc " in #(
5782     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5783     esac
5784
5785  for depmode in $am_compiler_list; do
5786    # Setup a source with many dependencies, because some compilers
5787    # like to wrap large dependency lists on column 80 (with \), and
5788    # we should not choose a depcomp mode which is confused by this.
5789    #
5790    # We need to recreate these files for each test, as the compiler may
5791    # overwrite some of them when testing with obscure command lines.
5792    # This happens at least with the AIX C compiler.
5793    : > sub/conftest.c
5794    for i in 1 2 3 4 5 6; do
5795      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5796      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5797      # Solaris 8's {/usr,}/bin/sh.
5798      touch sub/conftst$i.h
5799    done
5800    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5801
5802    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5803    # mode.  It turns out that the SunPro C++ compiler does not properly
5804    # handle `-M -o', and we need to detect this.  Also, some Intel
5805    # versions had trouble with output in subdirs
5806    am__obj=sub/conftest.${OBJEXT-o}
5807    am__minus_obj="-o $am__obj"
5808    case $depmode in
5809    gcc)
5810      # This depmode causes a compiler race in universal mode.
5811      test "$am__universal" = false || continue
5812      ;;
5813    nosideeffect)
5814      # after this tag, mechanisms are not by side-effect, so they'll
5815      # only be used when explicitly requested
5816      if test "x$enable_dependency_tracking" = xyes; then
5817	continue
5818      else
5819	break
5820      fi
5821      ;;
5822    msvisualcpp | msvcmsys)
5823      # This compiler won't grok `-c -o', but also, the minuso test has
5824      # not run yet.  These depmodes are late enough in the game, and
5825      # so weak that their functioning should not be impacted.
5826      am__obj=conftest.${OBJEXT-o}
5827      am__minus_obj=
5828      ;;
5829    none) break ;;
5830    esac
5831    if depmode=$depmode \
5832       source=sub/conftest.c object=$am__obj \
5833       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5834       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5835         >/dev/null 2>conftest.err &&
5836       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5837       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5838       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5839       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5840      # icc doesn't choke on unknown options, it will just issue warnings
5841      # or remarks (even with -Werror).  So we grep stderr for any message
5842      # that says an option was ignored or not supported.
5843      # When given -MP, icc 7.0 and 7.1 complain thusly:
5844      #   icc: Command line warning: ignoring option '-M'; no argument required
5845      # The diagnosis changed in icc 8.0:
5846      #   icc: Command line remark: option '-MP' not supported
5847      if (grep 'ignoring option' conftest.err ||
5848          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5849        am_cv_CXX_dependencies_compiler_type=$depmode
5850        break
5851      fi
5852    fi
5853  done
5854
5855  cd ..
5856  rm -rf conftest.dir
5857else
5858  am_cv_CXX_dependencies_compiler_type=none
5859fi
5860
5861fi
5862{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5863$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5864CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5865
5866 if
5867  test "x$enable_dependency_tracking" != xno \
5868  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5869  am__fastdepCXX_TRUE=
5870  am__fastdepCXX_FALSE='#'
5871else
5872  am__fastdepCXX_TRUE='#'
5873  am__fastdepCXX_FALSE=
5874fi
5875
5876
5877
5878
5879if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5880    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5881    (test "X$CXX" != "Xg++"))) ; then
5882  ac_ext=cpp
5883ac_cpp='$CXXCPP $CPPFLAGS'
5884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5887{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5888$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5889if test -z "$CXXCPP"; then
5890  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5891  $as_echo_n "(cached) " >&6
5892else
5893      # Double quotes because CXXCPP needs to be expanded
5894    for CXXCPP in "$CXX -E" "/lib/cpp"
5895    do
5896      ac_preproc_ok=false
5897for ac_cxx_preproc_warn_flag in '' yes
5898do
5899  # Use a header file that comes with gcc, so configuring glibc
5900  # with a fresh cross-compiler works.
5901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902  # <limits.h> exists even on freestanding compilers.
5903  # On the NeXT, cc -E runs the code through the compiler's parser,
5904  # not just through cpp. "Syntax error" is here to catch this case.
5905  cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
5916		     Syntax error
5917_ACEOF
5918if { (ac_try="$ac_cpp conftest.$ac_ext"
5919case "(($ac_try" in
5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921  *) ac_try_echo=$ac_try;;
5922esac
5923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5924$as_echo "$ac_try_echo") >&5
5925  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5926  ac_status=$?
5927  grep -v '^ *+' conftest.er1 >conftest.err
5928  rm -f conftest.er1
5929  cat conftest.err >&5
5930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); } >/dev/null && {
5932	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5933	 test ! -s conftest.err
5934       }; then
5935  :
5936else
5937  $as_echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940  # Broken: fails on valid input.
5941continue
5942fi
5943
5944rm -f conftest.err conftest.$ac_ext
5945
5946  # OK, works on sane cases.  Now check whether nonexistent headers
5947  # can be detected and how.
5948  cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h.  */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h.  */
5954#include <ac_nonexistent.h>
5955_ACEOF
5956if { (ac_try="$ac_cpp conftest.$ac_ext"
5957case "(($ac_try" in
5958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959  *) ac_try_echo=$ac_try;;
5960esac
5961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962$as_echo "$ac_try_echo") >&5
5963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964  ac_status=$?
5965  grep -v '^ *+' conftest.er1 >conftest.err
5966  rm -f conftest.er1
5967  cat conftest.err >&5
5968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); } >/dev/null && {
5970	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5971	 test ! -s conftest.err
5972       }; then
5973  # Broken: success on invalid input.
5974continue
5975else
5976  $as_echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979  # Passes both tests.
5980ac_preproc_ok=:
5981break
5982fi
5983
5984rm -f conftest.err conftest.$ac_ext
5985
5986done
5987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5988rm -f conftest.err conftest.$ac_ext
5989if $ac_preproc_ok; then
5990  break
5991fi
5992
5993    done
5994    ac_cv_prog_CXXCPP=$CXXCPP
5995
5996fi
5997  CXXCPP=$ac_cv_prog_CXXCPP
5998else
5999  ac_cv_prog_CXXCPP=$CXXCPP
6000fi
6001{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6002$as_echo "$CXXCPP" >&6; }
6003ac_preproc_ok=false
6004for ac_cxx_preproc_warn_flag in '' yes
6005do
6006  # Use a header file that comes with gcc, so configuring glibc
6007  # with a fresh cross-compiler works.
6008  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6009  # <limits.h> exists even on freestanding compilers.
6010  # On the NeXT, cc -E runs the code through the compiler's parser,
6011  # not just through cpp. "Syntax error" is here to catch this case.
6012  cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h.  */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h.  */
6018#ifdef __STDC__
6019# include <limits.h>
6020#else
6021# include <assert.h>
6022#endif
6023		     Syntax error
6024_ACEOF
6025if { (ac_try="$ac_cpp conftest.$ac_ext"
6026case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6031$as_echo "$ac_try_echo") >&5
6032  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6033  ac_status=$?
6034  grep -v '^ *+' conftest.er1 >conftest.err
6035  rm -f conftest.er1
6036  cat conftest.err >&5
6037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); } >/dev/null && {
6039	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6040	 test ! -s conftest.err
6041       }; then
6042  :
6043else
6044  $as_echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047  # Broken: fails on valid input.
6048continue
6049fi
6050
6051rm -f conftest.err conftest.$ac_ext
6052
6053  # OK, works on sane cases.  Now check whether nonexistent headers
6054  # can be detected and how.
6055  cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <ac_nonexistent.h>
6062_ACEOF
6063if { (ac_try="$ac_cpp conftest.$ac_ext"
6064case "(($ac_try" in
6065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066  *) ac_try_echo=$ac_try;;
6067esac
6068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6069$as_echo "$ac_try_echo") >&5
6070  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6071  ac_status=$?
6072  grep -v '^ *+' conftest.er1 >conftest.err
6073  rm -f conftest.er1
6074  cat conftest.err >&5
6075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); } >/dev/null && {
6077	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6078	 test ! -s conftest.err
6079       }; then
6080  # Broken: success on invalid input.
6081continue
6082else
6083  $as_echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086  # Passes both tests.
6087ac_preproc_ok=:
6088break
6089fi
6090
6091rm -f conftest.err conftest.$ac_ext
6092
6093done
6094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6095rm -f conftest.err conftest.$ac_ext
6096if $ac_preproc_ok; then
6097  :
6098else
6099  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6101{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6102See \`config.log' for more details." >&5
6103$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6104See \`config.log' for more details." >&2;}
6105   { (exit 1); exit 1; }; }; }
6106fi
6107
6108ac_ext=cpp
6109ac_cpp='$CXXCPP $CPPFLAGS'
6110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6113
6114fi
6115
6116
6117ac_ext=f
6118ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6119ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6121if test -n "$ac_tool_prefix"; then
6122  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
6123  do
6124    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_F77+set}" = set; then
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$F77"; then
6132  ac_cv_prog_F77="$F77" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139  for ac_exec_ext in '' $ac_executable_extensions; do
6140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6142    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151F77=$ac_cv_prog_F77
6152if test -n "$F77"; then
6153  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6154$as_echo "$F77" >&6; }
6155else
6156  { $as_echo "$as_me:$LINENO: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161    test -n "$F77" && break
6162  done
6163fi
6164if test -z "$F77"; then
6165  ac_ct_F77=$F77
6166  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
6167do
6168  # Extract the first word of "$ac_prog", so it can be a program name with args.
6169set dummy $ac_prog; ac_word=$2
6170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$ac_ct_F77"; then
6176  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183  for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_prog_ac_ct_F77="$ac_prog"
6186    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195ac_ct_F77=$ac_cv_prog_ac_ct_F77
6196if test -n "$ac_ct_F77"; then
6197  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6198$as_echo "$ac_ct_F77" >&6; }
6199else
6200  { $as_echo "$as_me:$LINENO: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205  test -n "$ac_ct_F77" && break
6206done
6207
6208  if test "x$ac_ct_F77" = x; then
6209    F77=""
6210  else
6211    case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217    F77=$ac_ct_F77
6218  fi
6219fi
6220
6221
6222# Provide some information about the compiler.
6223$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6224set X $ac_compile
6225ac_compiler=$2
6226{ (ac_try="$ac_compiler --version >&5"
6227case "(($ac_try" in
6228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229  *) ac_try_echo=$ac_try;;
6230esac
6231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232$as_echo "$ac_try_echo") >&5
6233  (eval "$ac_compiler --version >&5") 2>&5
6234  ac_status=$?
6235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); }
6237{ (ac_try="$ac_compiler -v >&5"
6238case "(($ac_try" in
6239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240  *) ac_try_echo=$ac_try;;
6241esac
6242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243$as_echo "$ac_try_echo") >&5
6244  (eval "$ac_compiler -v >&5") 2>&5
6245  ac_status=$?
6246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); }
6248{ (ac_try="$ac_compiler -V >&5"
6249case "(($ac_try" in
6250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251  *) ac_try_echo=$ac_try;;
6252esac
6253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6254$as_echo "$ac_try_echo") >&5
6255  (eval "$ac_compiler -V >&5") 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }
6259rm -f a.out
6260
6261# If we don't use `.F' as extension, the preprocessor is not run on the
6262# input file.  (Note that this only needs to work for GNU compilers.)
6263ac_save_ext=$ac_ext
6264ac_ext=F
6265{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6266$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6267if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6268  $as_echo_n "(cached) " >&6
6269else
6270  cat >conftest.$ac_ext <<_ACEOF
6271      program main
6272#ifndef __GNUC__
6273       choke me
6274#endif
6275
6276      end
6277_ACEOF
6278rm -f conftest.$ac_objext
6279if { (ac_try="$ac_compile"
6280case "(($ac_try" in
6281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282  *) ac_try_echo=$ac_try;;
6283esac
6284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6285$as_echo "$ac_try_echo") >&5
6286  (eval "$ac_compile") 2>conftest.er1
6287  ac_status=$?
6288  grep -v '^ *+' conftest.er1 >conftest.err
6289  rm -f conftest.er1
6290  cat conftest.err >&5
6291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } && {
6293	 test -z "$ac_f77_werror_flag" ||
6294	 test ! -s conftest.err
6295       } && test -s conftest.$ac_objext; then
6296  ac_compiler_gnu=yes
6297else
6298  $as_echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301	ac_compiler_gnu=no
6302fi
6303
6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6306
6307fi
6308{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6309$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6310ac_ext=$ac_save_ext
6311ac_test_FFLAGS=${FFLAGS+set}
6312ac_save_FFLAGS=$FFLAGS
6313FFLAGS=
6314{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6315$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6316if test "${ac_cv_prog_f77_g+set}" = set; then
6317  $as_echo_n "(cached) " >&6
6318else
6319  FFLAGS=-g
6320cat >conftest.$ac_ext <<_ACEOF
6321      program main
6322
6323      end
6324_ACEOF
6325rm -f conftest.$ac_objext
6326if { (ac_try="$ac_compile"
6327case "(($ac_try" in
6328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329  *) ac_try_echo=$ac_try;;
6330esac
6331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6332$as_echo "$ac_try_echo") >&5
6333  (eval "$ac_compile") 2>conftest.er1
6334  ac_status=$?
6335  grep -v '^ *+' conftest.er1 >conftest.err
6336  rm -f conftest.er1
6337  cat conftest.err >&5
6338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); } && {
6340	 test -z "$ac_f77_werror_flag" ||
6341	 test ! -s conftest.err
6342       } && test -s conftest.$ac_objext; then
6343  ac_cv_prog_f77_g=yes
6344else
6345  $as_echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348	ac_cv_prog_f77_g=no
6349fi
6350
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352
6353fi
6354{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6355$as_echo "$ac_cv_prog_f77_g" >&6; }
6356if test "$ac_test_FFLAGS" = set; then
6357  FFLAGS=$ac_save_FFLAGS
6358elif test $ac_cv_prog_f77_g = yes; then
6359  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6360    FFLAGS="-g -O2"
6361  else
6362    FFLAGS="-g"
6363  fi
6364else
6365  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366    FFLAGS="-O2"
6367  else
6368    FFLAGS=
6369  fi
6370fi
6371
6372if test $ac_compiler_gnu = yes; then
6373  G77=yes
6374else
6375  G77=
6376fi
6377ac_ext=c
6378ac_cpp='$CPP $CPPFLAGS'
6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383
6384
6385# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6386# find the maximum length of command line arguments
6387{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6388$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6389if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6390  $as_echo_n "(cached) " >&6
6391else
6392    i=0
6393  teststring="ABCD"
6394
6395  case $build_os in
6396  msdosdjgpp*)
6397    # On DJGPP, this test can blow up pretty badly due to problems in libc
6398    # (any single argument exceeding 2000 bytes causes a buffer overrun
6399    # during glob expansion).  Even if it were fixed, the result of this
6400    # check would be larger than it should be.
6401    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6402    ;;
6403
6404  gnu*)
6405    # Under GNU Hurd, this test is not required because there is
6406    # no limit to the length of command line arguments.
6407    # Libtool will interpret -1 as no limit whatsoever
6408    lt_cv_sys_max_cmd_len=-1;
6409    ;;
6410
6411  cygwin* | mingw*)
6412    # On Win9x/ME, this test blows up -- it succeeds, but takes
6413    # about 5 minutes as the teststring grows exponentially.
6414    # Worse, since 9x/ME are not pre-emptively multitasking,
6415    # you end up with a "frozen" computer, even though with patience
6416    # the test eventually succeeds (with a max line length of 256k).
6417    # Instead, let's just punt: use the minimum linelength reported by
6418    # all of the supported platforms: 8192 (on NT/2K/XP).
6419    lt_cv_sys_max_cmd_len=8192;
6420    ;;
6421
6422  amigaos*)
6423    # On AmigaOS with pdksh, this test takes hours, literally.
6424    # So we just punt and use a minimum line length of 8192.
6425    lt_cv_sys_max_cmd_len=8192;
6426    ;;
6427
6428  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6429    # This has been around since 386BSD, at least.  Likely further.
6430    if test -x /sbin/sysctl; then
6431      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6432    elif test -x /usr/sbin/sysctl; then
6433      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6434    else
6435      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6436    fi
6437    # And add a safety zone
6438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440    ;;
6441
6442  interix*)
6443    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6444    lt_cv_sys_max_cmd_len=196608
6445    ;;
6446
6447  osf*)
6448    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6449    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6450    # nice to cause kernel panics so lets avoid the loop below.
6451    # First set a reasonable default.
6452    lt_cv_sys_max_cmd_len=16384
6453    #
6454    if test -x /sbin/sysconfig; then
6455      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6456        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6457      esac
6458    fi
6459    ;;
6460  sco3.2v5*)
6461    lt_cv_sys_max_cmd_len=102400
6462    ;;
6463  sysv5* | sco5v6* | sysv4.2uw2*)
6464    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6465    if test -n "$kargmax"; then
6466      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6467    else
6468      lt_cv_sys_max_cmd_len=32768
6469    fi
6470    ;;
6471  *)
6472    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6473    if test -n "$lt_cv_sys_max_cmd_len"; then
6474      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6475      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6476    else
6477      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6478      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6479	       = "XX$teststring") >/dev/null 2>&1 &&
6480	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6481	      lt_cv_sys_max_cmd_len=$new_result &&
6482	      test $i != 17 # 1/2 MB should be enough
6483      do
6484        i=`expr $i + 1`
6485        teststring=$teststring$teststring
6486      done
6487      teststring=
6488      # Add a significant safety factor because C++ compilers can tack on massive
6489      # amounts of additional arguments before passing them to the linker.
6490      # It appears as though 1/2 is a usable value.
6491      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6492    fi
6493    ;;
6494  esac
6495
6496fi
6497
6498if test -n $lt_cv_sys_max_cmd_len ; then
6499  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6500$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6501else
6502  { $as_echo "$as_me:$LINENO: result: none" >&5
6503$as_echo "none" >&6; }
6504fi
6505
6506
6507
6508
6509
6510# Check for command to grab the raw symbol name followed by C symbol from nm.
6511{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6513if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6514  $as_echo_n "(cached) " >&6
6515else
6516
6517# These are sane defaults that work on at least a few old systems.
6518# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6519
6520# Character class describing NM global symbol codes.
6521symcode='[BCDEGRST]'
6522
6523# Regexp to match symbols that can be accessed directly from C.
6524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6525
6526# Transform an extracted symbol line into a proper C declaration
6527lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6528
6529# Transform an extracted symbol line into symbol name and symbol address
6530lt_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'"
6531
6532# Define system-specific variables.
6533case $host_os in
6534aix*)
6535  symcode='[BCDT]'
6536  ;;
6537cygwin* | mingw* | pw32*)
6538  symcode='[ABCDGISTW]'
6539  ;;
6540hpux*) # Its linker distinguishes data from code symbols
6541  if test "$host_cpu" = ia64; then
6542    symcode='[ABCDEGRST]'
6543  fi
6544  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545  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'"
6546  ;;
6547linux* | k*bsd*-gnu)
6548  if test "$host_cpu" = ia64; then
6549    symcode='[ABCDGIRSTW]'
6550    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551    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'"
6552  fi
6553  ;;
6554irix* | nonstopux*)
6555  symcode='[BCDEGRST]'
6556  ;;
6557osf*)
6558  symcode='[BCDEGQRST]'
6559  ;;
6560solaris*)
6561  symcode='[BDRT]'
6562  ;;
6563sco3.2v5*)
6564  symcode='[DT]'
6565  ;;
6566sysv4.2uw2*)
6567  symcode='[DT]'
6568  ;;
6569sysv5* | sco5v6* | unixware* | OpenUNIX*)
6570  symcode='[ABDT]'
6571  ;;
6572sysv4)
6573  symcode='[DFNSTU]'
6574  ;;
6575esac
6576
6577# Handle CRLF in mingw tool chain
6578opt_cr=
6579case $build_os in
6580mingw*)
6581  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6582  ;;
6583esac
6584
6585# If we're using GNU nm, then use its standard symbol codes.
6586case `$NM -V 2>&1` in
6587*GNU* | *'with BFD'*)
6588  symcode='[ABCDGIRSTW]' ;;
6589esac
6590
6591# Try without a prefix undercore, then with it.
6592for ac_symprfx in "" "_"; do
6593
6594  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595  symxfrm="\\1 $ac_symprfx\\2 \\2"
6596
6597  # Write the raw and C identifiers.
6598  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6599
6600  # Check to see that the pipe works correctly.
6601  pipe_works=no
6602
6603  rm -f conftest*
6604  cat > conftest.$ac_ext <<EOF
6605#ifdef __cplusplus
6606extern "C" {
6607#endif
6608char nm_test_var;
6609void nm_test_func(){}
6610#ifdef __cplusplus
6611}
6612#endif
6613int main(){nm_test_var='a';nm_test_func();return(0);}
6614EOF
6615
6616  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617  (eval $ac_compile) 2>&5
6618  ac_status=$?
6619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; then
6621    # Now try to grab the symbols.
6622    nlist=conftest.nm
6623    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6624  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6625  ac_status=$?
6626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); } && test -s "$nlist"; then
6628      # Try sorting and uniquifying the output.
6629      if sort "$nlist" | uniq > "$nlist"T; then
6630	mv -f "$nlist"T "$nlist"
6631      else
6632	rm -f "$nlist"T
6633      fi
6634
6635      # Make sure that we snagged all the symbols we need.
6636      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6637	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6638	  cat <<EOF > conftest.$ac_ext
6639#ifdef __cplusplus
6640extern "C" {
6641#endif
6642
6643EOF
6644	  # Now generate the symbol file.
6645	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6646
6647	  cat <<EOF >> conftest.$ac_ext
6648#if defined (__STDC__) && __STDC__
6649# define lt_ptr_t void *
6650#else
6651# define lt_ptr_t char *
6652# define const
6653#endif
6654
6655/* The mapping between symbol names and symbols. */
6656const struct {
6657  const char *name;
6658  lt_ptr_t address;
6659}
6660lt_preloaded_symbols[] =
6661{
6662EOF
6663	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6664	  cat <<\EOF >> conftest.$ac_ext
6665  {0, (lt_ptr_t) 0}
6666};
6667
6668#ifdef __cplusplus
6669}
6670#endif
6671EOF
6672	  # Now try linking the two files.
6673	  mv conftest.$ac_objext conftstm.$ac_objext
6674	  lt_save_LIBS="$LIBS"
6675	  lt_save_CFLAGS="$CFLAGS"
6676	  LIBS="conftstm.$ac_objext"
6677	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6678	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679  (eval $ac_link) 2>&5
6680  ac_status=$?
6681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6683	    pipe_works=yes
6684	  fi
6685	  LIBS="$lt_save_LIBS"
6686	  CFLAGS="$lt_save_CFLAGS"
6687	else
6688	  echo "cannot find nm_test_func in $nlist" >&5
6689	fi
6690      else
6691	echo "cannot find nm_test_var in $nlist" >&5
6692      fi
6693    else
6694      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6695    fi
6696  else
6697    echo "$progname: failed program was:" >&5
6698    cat conftest.$ac_ext >&5
6699  fi
6700  rm -rf conftest* conftst*
6701
6702  # Do not use the global_symbol_pipe unless it works.
6703  if test "$pipe_works" = yes; then
6704    break
6705  else
6706    lt_cv_sys_global_symbol_pipe=
6707  fi
6708done
6709
6710fi
6711
6712if test -z "$lt_cv_sys_global_symbol_pipe"; then
6713  lt_cv_sys_global_symbol_to_cdecl=
6714fi
6715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6716  { $as_echo "$as_me:$LINENO: result: failed" >&5
6717$as_echo "failed" >&6; }
6718else
6719  { $as_echo "$as_me:$LINENO: result: ok" >&5
6720$as_echo "ok" >&6; }
6721fi
6722
6723{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6724$as_echo_n "checking for objdir... " >&6; }
6725if test "${lt_cv_objdir+set}" = set; then
6726  $as_echo_n "(cached) " >&6
6727else
6728  rm -f .libs 2>/dev/null
6729mkdir .libs 2>/dev/null
6730if test -d .libs; then
6731  lt_cv_objdir=.libs
6732else
6733  # MS-DOS does not allow filenames that begin with a dot.
6734  lt_cv_objdir=_libs
6735fi
6736rmdir .libs 2>/dev/null
6737fi
6738{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6739$as_echo "$lt_cv_objdir" >&6; }
6740objdir=$lt_cv_objdir
6741
6742
6743
6744
6745
6746case $host_os in
6747aix3*)
6748  # AIX sometimes has problems with the GCC collect2 program.  For some
6749  # reason, if we set the COLLECT_NAMES environment variable, the problems
6750  # vanish in a puff of smoke.
6751  if test "X${COLLECT_NAMES+set}" != Xset; then
6752    COLLECT_NAMES=
6753    export COLLECT_NAMES
6754  fi
6755  ;;
6756esac
6757
6758# Sed substitution that helps us do robust quoting.  It backslashifies
6759# metacharacters that are still active within double-quoted strings.
6760Xsed='sed -e 1s/^X//'
6761sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6762
6763# Same as above, but do not quote variable references.
6764double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6765
6766# Sed substitution to delay expansion of an escaped shell variable in a
6767# double_quote_subst'ed string.
6768delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6769
6770# Sed substitution to avoid accidental globbing in evaled expressions
6771no_glob_subst='s/\*/\\\*/g'
6772
6773# Constants:
6774rm="rm -f"
6775
6776# Global variables:
6777default_ofile=libtool
6778can_build_shared=yes
6779
6780# All known linkers require a `.a' archive for static linking (except MSVC,
6781# which needs '.lib').
6782libext=a
6783ltmain="$ac_aux_dir/ltmain.sh"
6784ofile="$default_ofile"
6785with_gnu_ld="$lt_cv_prog_gnu_ld"
6786
6787if test -n "$ac_tool_prefix"; then
6788  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}ar; ac_word=$2
6790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if test "${ac_cv_prog_AR+set}" = set; then
6793  $as_echo_n "(cached) " >&6
6794else
6795  if test -n "$AR"; then
6796  ac_cv_prog_AR="$AR" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_prog_AR="${ac_tool_prefix}ar"
6806    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815AR=$ac_cv_prog_AR
6816if test -n "$AR"; then
6817  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6818$as_echo "$AR" >&6; }
6819else
6820  { $as_echo "$as_me:$LINENO: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_AR"; then
6827  ac_ct_AR=$AR
6828  # Extract the first word of "ar", so it can be a program name with args.
6829set dummy ar; ac_word=$2
6830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$ac_ct_AR"; then
6836  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843  for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_ac_ct_AR="ar"
6846    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856if test -n "$ac_ct_AR"; then
6857  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6858$as_echo "$ac_ct_AR" >&6; }
6859else
6860  { $as_echo "$as_me:$LINENO: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864  if test "x$ac_ct_AR" = x; then
6865    AR="false"
6866  else
6867    case $cross_compiling:$ac_tool_warned in
6868yes:)
6869{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873    AR=$ac_ct_AR
6874  fi
6875else
6876  AR="$ac_cv_prog_AR"
6877fi
6878
6879if test -n "$ac_tool_prefix"; then
6880  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if test "${ac_cv_prog_RANLIB+set}" = set; then
6885  $as_echo_n "(cached) " >&6
6886else
6887  if test -n "$RANLIB"; then
6888  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895  for ac_exec_ext in '' $ac_executable_extensions; do
6896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6898    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907RANLIB=$ac_cv_prog_RANLIB
6908if test -n "$RANLIB"; then
6909  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6910$as_echo "$RANLIB" >&6; }
6911else
6912  { $as_echo "$as_me:$LINENO: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916
6917fi
6918if test -z "$ac_cv_prog_RANLIB"; then
6919  ac_ct_RANLIB=$RANLIB
6920  # Extract the first word of "ranlib", so it can be a program name with args.
6921set dummy ranlib; ac_word=$2
6922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6923$as_echo_n "checking for $ac_word... " >&6; }
6924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6925  $as_echo_n "(cached) " >&6
6926else
6927  if test -n "$ac_ct_RANLIB"; then
6928  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935  for ac_exec_ext in '' $ac_executable_extensions; do
6936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937    ac_cv_prog_ac_ct_RANLIB="ranlib"
6938    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942done
6943IFS=$as_save_IFS
6944
6945fi
6946fi
6947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6948if test -n "$ac_ct_RANLIB"; then
6949  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6950$as_echo "$ac_ct_RANLIB" >&6; }
6951else
6952  { $as_echo "$as_me:$LINENO: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956  if test "x$ac_ct_RANLIB" = x; then
6957    RANLIB=":"
6958  else
6959    case $cross_compiling:$ac_tool_warned in
6960yes:)
6961{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963ac_tool_warned=yes ;;
6964esac
6965    RANLIB=$ac_ct_RANLIB
6966  fi
6967else
6968  RANLIB="$ac_cv_prog_RANLIB"
6969fi
6970
6971if test -n "$ac_tool_prefix"; then
6972  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6973set dummy ${ac_tool_prefix}strip; ac_word=$2
6974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if test "${ac_cv_prog_STRIP+set}" = set; then
6977  $as_echo_n "(cached) " >&6
6978else
6979  if test -n "$STRIP"; then
6980  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987  for ac_exec_ext in '' $ac_executable_extensions; do
6988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6990    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991    break 2
6992  fi
6993done
6994done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999STRIP=$ac_cv_prog_STRIP
7000if test -n "$STRIP"; then
7001  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7002$as_echo "$STRIP" >&6; }
7003else
7004  { $as_echo "$as_me:$LINENO: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008
7009fi
7010if test -z "$ac_cv_prog_STRIP"; then
7011  ac_ct_STRIP=$STRIP
7012  # Extract the first word of "strip", so it can be a program name with args.
7013set dummy strip; ac_word=$2
7014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
7016if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7017  $as_echo_n "(cached) " >&6
7018else
7019  if test -n "$ac_ct_STRIP"; then
7020  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027  for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_prog_ac_ct_STRIP="strip"
7030    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7040if test -n "$ac_ct_STRIP"; then
7041  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7042$as_echo "$ac_ct_STRIP" >&6; }
7043else
7044  { $as_echo "$as_me:$LINENO: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048  if test "x$ac_ct_STRIP" = x; then
7049    STRIP=":"
7050  else
7051    case $cross_compiling:$ac_tool_warned in
7052yes:)
7053{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055ac_tool_warned=yes ;;
7056esac
7057    STRIP=$ac_ct_STRIP
7058  fi
7059else
7060  STRIP="$ac_cv_prog_STRIP"
7061fi
7062
7063
7064old_CC="$CC"
7065old_CFLAGS="$CFLAGS"
7066
7067# Set sane defaults for various variables
7068test -z "$AR" && AR=ar
7069test -z "$AR_FLAGS" && AR_FLAGS=cru
7070test -z "$AS" && AS=as
7071test -z "$CC" && CC=cc
7072test -z "$LTCC" && LTCC=$CC
7073test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7074test -z "$DLLTOOL" && DLLTOOL=dlltool
7075test -z "$LD" && LD=ld
7076test -z "$LN_S" && LN_S="ln -s"
7077test -z "$MAGIC_CMD" && MAGIC_CMD=file
7078test -z "$NM" && NM=nm
7079test -z "$SED" && SED=sed
7080test -z "$OBJDUMP" && OBJDUMP=objdump
7081test -z "$RANLIB" && RANLIB=:
7082test -z "$STRIP" && STRIP=:
7083test -z "$ac_objext" && ac_objext=o
7084
7085# Determine commands to create old-style static archives.
7086old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7087old_postinstall_cmds='chmod 644 $oldlib'
7088old_postuninstall_cmds=
7089
7090if test -n "$RANLIB"; then
7091  case $host_os in
7092  openbsd*)
7093    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7094    ;;
7095  *)
7096    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7097    ;;
7098  esac
7099  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7100fi
7101
7102for cc_temp in $compiler""; do
7103  case $cc_temp in
7104    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7105    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7106    \-*) ;;
7107    *) break;;
7108  esac
7109done
7110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7111
7112
7113# Only perform the check for file, if the check method requires it
7114case $deplibs_check_method in
7115file_magic*)
7116  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7117    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7118$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7119if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7120  $as_echo_n "(cached) " >&6
7121else
7122  case $MAGIC_CMD in
7123[\\/*] |  ?:[\\/]*)
7124  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7125  ;;
7126*)
7127  lt_save_MAGIC_CMD="$MAGIC_CMD"
7128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7129  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7130  for ac_dir in $ac_dummy; do
7131    IFS="$lt_save_ifs"
7132    test -z "$ac_dir" && ac_dir=.
7133    if test -f $ac_dir/${ac_tool_prefix}file; then
7134      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7135      if test -n "$file_magic_test_file"; then
7136	case $deplibs_check_method in
7137	"file_magic "*)
7138	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7139	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7141	    $EGREP "$file_magic_regex" > /dev/null; then
7142	    :
7143	  else
7144	    cat <<EOF 1>&2
7145
7146*** Warning: the command libtool uses to detect shared libraries,
7147*** $file_magic_cmd, produces output that libtool cannot recognize.
7148*** The result is that libtool may fail to recognize shared libraries
7149*** as such.  This will affect the creation of libtool libraries that
7150*** depend on shared libraries, but programs linked with such libtool
7151*** libraries will work regardless of this problem.  Nevertheless, you
7152*** may want to report the problem to your system manager and/or to
7153*** bug-libtool@gnu.org
7154
7155EOF
7156	  fi ;;
7157	esac
7158      fi
7159      break
7160    fi
7161  done
7162  IFS="$lt_save_ifs"
7163  MAGIC_CMD="$lt_save_MAGIC_CMD"
7164  ;;
7165esac
7166fi
7167
7168MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7169if test -n "$MAGIC_CMD"; then
7170  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7171$as_echo "$MAGIC_CMD" >&6; }
7172else
7173  { $as_echo "$as_me:$LINENO: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177if test -z "$lt_cv_path_MAGIC_CMD"; then
7178  if test -n "$ac_tool_prefix"; then
7179    { $as_echo "$as_me:$LINENO: checking for file" >&5
7180$as_echo_n "checking for file... " >&6; }
7181if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7182  $as_echo_n "(cached) " >&6
7183else
7184  case $MAGIC_CMD in
7185[\\/*] |  ?:[\\/]*)
7186  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7187  ;;
7188*)
7189  lt_save_MAGIC_CMD="$MAGIC_CMD"
7190  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7191  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7192  for ac_dir in $ac_dummy; do
7193    IFS="$lt_save_ifs"
7194    test -z "$ac_dir" && ac_dir=.
7195    if test -f $ac_dir/file; then
7196      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7197      if test -n "$file_magic_test_file"; then
7198	case $deplibs_check_method in
7199	"file_magic "*)
7200	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7201	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7203	    $EGREP "$file_magic_regex" > /dev/null; then
7204	    :
7205	  else
7206	    cat <<EOF 1>&2
7207
7208*** Warning: the command libtool uses to detect shared libraries,
7209*** $file_magic_cmd, produces output that libtool cannot recognize.
7210*** The result is that libtool may fail to recognize shared libraries
7211*** as such.  This will affect the creation of libtool libraries that
7212*** depend on shared libraries, but programs linked with such libtool
7213*** libraries will work regardless of this problem.  Nevertheless, you
7214*** may want to report the problem to your system manager and/or to
7215*** bug-libtool@gnu.org
7216
7217EOF
7218	  fi ;;
7219	esac
7220      fi
7221      break
7222    fi
7223  done
7224  IFS="$lt_save_ifs"
7225  MAGIC_CMD="$lt_save_MAGIC_CMD"
7226  ;;
7227esac
7228fi
7229
7230MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7231if test -n "$MAGIC_CMD"; then
7232  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7233$as_echo "$MAGIC_CMD" >&6; }
7234else
7235  { $as_echo "$as_me:$LINENO: result: no" >&5
7236$as_echo "no" >&6; }
7237fi
7238
7239  else
7240    MAGIC_CMD=:
7241  fi
7242fi
7243
7244  fi
7245  ;;
7246esac
7247
7248
7249  case $host_os in
7250    rhapsody* | darwin*)
7251    if test -n "$ac_tool_prefix"; then
7252  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7253set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$DSYMUTIL"; then
7260  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267  for ac_exec_ext in '' $ac_executable_extensions; do
7268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7270    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279DSYMUTIL=$ac_cv_prog_DSYMUTIL
7280if test -n "$DSYMUTIL"; then
7281  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7282$as_echo "$DSYMUTIL" >&6; }
7283else
7284  { $as_echo "$as_me:$LINENO: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289fi
7290if test -z "$ac_cv_prog_DSYMUTIL"; then
7291  ac_ct_DSYMUTIL=$DSYMUTIL
7292  # Extract the first word of "dsymutil", so it can be a program name with args.
7293set dummy dsymutil; ac_word=$2
7294{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7297  $as_echo_n "(cached) " >&6
7298else
7299  if test -n "$ac_ct_DSYMUTIL"; then
7300  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307  for ac_exec_ext in '' $ac_executable_extensions; do
7308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7310    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314done
7315IFS=$as_save_IFS
7316
7317fi
7318fi
7319ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7320if test -n "$ac_ct_DSYMUTIL"; then
7321  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7322$as_echo "$ac_ct_DSYMUTIL" >&6; }
7323else
7324  { $as_echo "$as_me:$LINENO: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328  if test "x$ac_ct_DSYMUTIL" = x; then
7329    DSYMUTIL=":"
7330  else
7331    case $cross_compiling:$ac_tool_warned in
7332yes:)
7333{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335ac_tool_warned=yes ;;
7336esac
7337    DSYMUTIL=$ac_ct_DSYMUTIL
7338  fi
7339else
7340  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7341fi
7342
7343    if test -n "$ac_tool_prefix"; then
7344  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7345set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if test "${ac_cv_prog_NMEDIT+set}" = set; then
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$NMEDIT"; then
7352  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359  for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7362    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371NMEDIT=$ac_cv_prog_NMEDIT
7372if test -n "$NMEDIT"; then
7373  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7374$as_echo "$NMEDIT" >&6; }
7375else
7376  { $as_echo "$as_me:$LINENO: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381fi
7382if test -z "$ac_cv_prog_NMEDIT"; then
7383  ac_ct_NMEDIT=$NMEDIT
7384  # Extract the first word of "nmedit", so it can be a program name with args.
7385set dummy nmedit; ac_word=$2
7386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
7388if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7389  $as_echo_n "(cached) " >&6
7390else
7391  if test -n "$ac_ct_NMEDIT"; then
7392  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399  for ac_exec_ext in '' $ac_executable_extensions; do
7400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7402    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7412if test -n "$ac_ct_NMEDIT"; then
7413  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7414$as_echo "$ac_ct_NMEDIT" >&6; }
7415else
7416  { $as_echo "$as_me:$LINENO: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420  if test "x$ac_ct_NMEDIT" = x; then
7421    NMEDIT=":"
7422  else
7423    case $cross_compiling:$ac_tool_warned in
7424yes:)
7425{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427ac_tool_warned=yes ;;
7428esac
7429    NMEDIT=$ac_ct_NMEDIT
7430  fi
7431else
7432  NMEDIT="$ac_cv_prog_NMEDIT"
7433fi
7434
7435
7436    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7437$as_echo_n "checking for -single_module linker flag... " >&6; }
7438if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7439  $as_echo_n "(cached) " >&6
7440else
7441  lt_cv_apple_cc_single_mod=no
7442      if test -z "${LT_MULTI_MODULE}"; then
7443   # By default we will add the -single_module flag. You can override
7444   # by either setting the environment variable LT_MULTI_MODULE
7445   # non-empty at configure time, or by adding -multi_module to the
7446   # link flags.
7447   echo "int foo(void){return 1;}" > conftest.c
7448   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7449     -dynamiclib ${wl}-single_module conftest.c
7450   if test -f libconftest.dylib; then
7451     lt_cv_apple_cc_single_mod=yes
7452     rm -rf libconftest.dylib*
7453   fi
7454   rm conftest.c
7455      fi
7456fi
7457{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7458$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7459    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7460$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7461if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7462  $as_echo_n "(cached) " >&6
7463else
7464  lt_cv_ld_exported_symbols_list=no
7465      save_LDFLAGS=$LDFLAGS
7466      echo "_main" > conftest.sym
7467      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7468      cat >conftest.$ac_ext <<_ACEOF
7469/* confdefs.h.  */
7470_ACEOF
7471cat confdefs.h >>conftest.$ac_ext
7472cat >>conftest.$ac_ext <<_ACEOF
7473/* end confdefs.h.  */
7474
7475int
7476main ()
7477{
7478
7479  ;
7480  return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext conftest$ac_exeext
7484if { (ac_try="$ac_link"
7485case "(($ac_try" in
7486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487  *) ac_try_echo=$ac_try;;
7488esac
7489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490$as_echo "$ac_try_echo") >&5
7491  (eval "$ac_link") 2>conftest.er1
7492  ac_status=$?
7493  grep -v '^ *+' conftest.er1 >conftest.err
7494  rm -f conftest.er1
7495  cat conftest.err >&5
7496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); } && {
7498	 test -z "$ac_c_werror_flag" ||
7499	 test ! -s conftest.err
7500       } && test -s conftest$ac_exeext && {
7501	 test "$cross_compiling" = yes ||
7502	 $as_test_x conftest$ac_exeext
7503       }; then
7504  lt_cv_ld_exported_symbols_list=yes
7505else
7506  $as_echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509	lt_cv_ld_exported_symbols_list=no
7510fi
7511
7512rm -rf conftest.dSYM
7513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514      conftest$ac_exeext conftest.$ac_ext
7515   LDFLAGS="$save_LDFLAGS"
7516
7517fi
7518{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7519$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7520    case $host_os in
7521    rhapsody* | darwin1.[0123])
7522      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7523    darwin1.*)
7524     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7525    darwin*)
7526      # if running on 10.5 or later, the deployment target defaults
7527      # to the OS version, if on x86, and 10.4, the deployment
7528      # target defaults to 10.4. Don't you love it?
7529      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7530   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7531     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7532   10.[012]*)
7533     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7534   10.*)
7535     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7536      esac
7537    ;;
7538  esac
7539    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7540      _lt_dar_single_mod='$single_module'
7541    fi
7542    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7543      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7544    else
7545      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7546    fi
7547    if test "$DSYMUTIL" != ":"; then
7548      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7549    else
7550      _lt_dsymutil=
7551    fi
7552    ;;
7553  esac
7554
7555
7556enable_dlopen=no
7557enable_win32_dll=no
7558
7559# Check whether --enable-libtool-lock was given.
7560if test "${enable_libtool_lock+set}" = set; then
7561  enableval=$enable_libtool_lock;
7562fi
7563
7564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7565
7566
7567# Check whether --with-pic was given.
7568if test "${with_pic+set}" = set; then
7569  withval=$with_pic; pic_mode="$withval"
7570else
7571  pic_mode=default
7572fi
7573
7574test -z "$pic_mode" && pic_mode=default
7575
7576# Use C for the default configuration in the libtool script
7577tagname=
7578lt_save_CC="$CC"
7579ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585
7586# Source file extension for C test sources.
7587ac_ext=c
7588
7589# Object file extension for compiled C test sources.
7590objext=o
7591objext=$objext
7592
7593# Code to be used in simple compile tests
7594lt_simple_compile_test_code="int some_variable = 0;"
7595
7596# Code to be used in simple link tests
7597lt_simple_link_test_code='int main(){return(0);}'
7598
7599
7600# If no C compiler was specified, use CC.
7601LTCC=${LTCC-"$CC"}
7602
7603# If no C compiler flags were specified, use CFLAGS.
7604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7605
7606# Allow CC to be a program name with arguments.
7607compiler=$CC
7608
7609
7610# save warnings/boilerplate of simple test code
7611ac_outfile=conftest.$ac_objext
7612echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7614_lt_compiler_boilerplate=`cat conftest.err`
7615$rm conftest*
7616
7617ac_outfile=conftest.$ac_objext
7618echo "$lt_simple_link_test_code" >conftest.$ac_ext
7619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620_lt_linker_boilerplate=`cat conftest.err`
7621$rm -r conftest*
7622
7623
7624
7625lt_prog_compiler_no_builtin_flag=
7626
7627if test "$GCC" = yes; then
7628  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7629
7630
7631{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7632$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7633if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7634  $as_echo_n "(cached) " >&6
7635else
7636  lt_cv_prog_compiler_rtti_exceptions=no
7637  ac_outfile=conftest.$ac_objext
7638   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7639   lt_compiler_flag="-fno-rtti -fno-exceptions"
7640   # Insert the option either (1) after the last *FLAGS variable, or
7641   # (2) before a word containing "conftest.", or (3) at the end.
7642   # Note that $ac_compile itself does not contain backslashes and begins
7643   # with a dollar sign (not a hyphen), so the echo should work correctly.
7644   # The option is referenced via a variable to avoid confusing sed.
7645   lt_compile=`echo "$ac_compile" | $SED \
7646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7648   -e 's:$: $lt_compiler_flag:'`
7649   (eval echo "\"\$as_me:7649: $lt_compile\"" >&5)
7650   (eval "$lt_compile" 2>conftest.err)
7651   ac_status=$?
7652   cat conftest.err >&5
7653   echo "$as_me:7653: \$? = $ac_status" >&5
7654   if (exit $ac_status) && test -s "$ac_outfile"; then
7655     # The compiler can only warn and ignore the option if not recognized
7656     # So say no if there are warnings other than the usual output.
7657     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7660       lt_cv_prog_compiler_rtti_exceptions=yes
7661     fi
7662   fi
7663   $rm conftest*
7664
7665fi
7666{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7667$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7668
7669if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7670    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7671else
7672    :
7673fi
7674
7675fi
7676
7677lt_prog_compiler_wl=
7678lt_prog_compiler_pic=
7679lt_prog_compiler_static=
7680
7681{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7682$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7683
7684  if test "$GCC" = yes; then
7685    lt_prog_compiler_wl='-Wl,'
7686    lt_prog_compiler_static='-static'
7687
7688    case $host_os in
7689      aix*)
7690      # All AIX code is PIC.
7691      if test "$host_cpu" = ia64; then
7692	# AIX 5 now supports IA64 processor
7693	lt_prog_compiler_static='-Bstatic'
7694      fi
7695      ;;
7696
7697    amigaos*)
7698      # FIXME: we need at least 68020 code to build shared libraries, but
7699      # adding the `-m68020' flag to GCC prevents building anything better,
7700      # like `-m68040'.
7701      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7702      ;;
7703
7704    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7705      # PIC is the default for these OSes.
7706      ;;
7707
7708    mingw* | cygwin* | pw32* | os2*)
7709      # This hack is so that the source file can tell whether it is being
7710      # built for inclusion in a dll (and should export symbols for example).
7711      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7712      # (--disable-auto-import) libraries
7713      lt_prog_compiler_pic='-DDLL_EXPORT'
7714      ;;
7715
7716    darwin* | rhapsody*)
7717      # PIC is the default on this platform
7718      # Common symbols not allowed in MH_DYLIB files
7719      lt_prog_compiler_pic='-fno-common'
7720      ;;
7721
7722    interix[3-9]*)
7723      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7724      # Instead, we relocate shared libraries at runtime.
7725      ;;
7726
7727    msdosdjgpp*)
7728      # Just because we use GCC doesn't mean we suddenly get shared libraries
7729      # on systems that don't support them.
7730      lt_prog_compiler_can_build_shared=no
7731      enable_shared=no
7732      ;;
7733
7734    sysv4*MP*)
7735      if test -d /usr/nec; then
7736	lt_prog_compiler_pic=-Kconform_pic
7737      fi
7738      ;;
7739
7740    hpux*)
7741      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7742      # not for PA HP-UX.
7743      case $host_cpu in
7744      hppa*64*|ia64*)
7745	# +Z the default
7746	;;
7747      *)
7748	lt_prog_compiler_pic='-fPIC'
7749	;;
7750      esac
7751      ;;
7752
7753    *)
7754      lt_prog_compiler_pic='-fPIC'
7755      ;;
7756    esac
7757  else
7758    # PORTME Check for flag to pass linker flags through the system compiler.
7759    case $host_os in
7760    aix*)
7761      lt_prog_compiler_wl='-Wl,'
7762      if test "$host_cpu" = ia64; then
7763	# AIX 5 now supports IA64 processor
7764	lt_prog_compiler_static='-Bstatic'
7765      else
7766	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7767      fi
7768      ;;
7769      darwin*)
7770        # PIC is the default on this platform
7771        # Common symbols not allowed in MH_DYLIB files
7772       case $cc_basename in
7773         xlc*)
7774         lt_prog_compiler_pic='-qnocommon'
7775         lt_prog_compiler_wl='-Wl,'
7776         ;;
7777       esac
7778       ;;
7779
7780    mingw* | cygwin* | pw32* | os2*)
7781      # This hack is so that the source file can tell whether it is being
7782      # built for inclusion in a dll (and should export symbols for example).
7783      lt_prog_compiler_pic='-DDLL_EXPORT'
7784      ;;
7785
7786    hpux9* | hpux10* | hpux11*)
7787      lt_prog_compiler_wl='-Wl,'
7788      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789      # not for PA HP-UX.
7790      case $host_cpu in
7791      hppa*64*|ia64*)
7792	# +Z the default
7793	;;
7794      *)
7795	lt_prog_compiler_pic='+Z'
7796	;;
7797      esac
7798      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7799      lt_prog_compiler_static='${wl}-a ${wl}archive'
7800      ;;
7801
7802    irix5* | irix6* | nonstopux*)
7803      lt_prog_compiler_wl='-Wl,'
7804      # PIC (with -KPIC) is the default.
7805      lt_prog_compiler_static='-non_shared'
7806      ;;
7807
7808    newsos6)
7809      lt_prog_compiler_pic='-KPIC'
7810      lt_prog_compiler_static='-Bstatic'
7811      ;;
7812
7813    linux* | k*bsd*-gnu)
7814      case $cc_basename in
7815      icc* | ecc*)
7816	lt_prog_compiler_wl='-Wl,'
7817	lt_prog_compiler_pic='-KPIC'
7818	lt_prog_compiler_static='-static'
7819        ;;
7820      pgcc* | pgf77* | pgf90* | pgf95*)
7821        # Portland Group compilers (*not* the Pentium gcc compiler,
7822	# which looks to be a dead project)
7823	lt_prog_compiler_wl='-Wl,'
7824	lt_prog_compiler_pic='-fpic'
7825	lt_prog_compiler_static='-Bstatic'
7826        ;;
7827      ccc*)
7828        lt_prog_compiler_wl='-Wl,'
7829        # All Alpha code is PIC.
7830        lt_prog_compiler_static='-non_shared'
7831        ;;
7832      *)
7833        case `$CC -V 2>&1 | sed 5q` in
7834	*Sun\ C*)
7835	  # Sun C 5.9
7836	  lt_prog_compiler_pic='-KPIC'
7837	  lt_prog_compiler_static='-Bstatic'
7838	  lt_prog_compiler_wl='-Wl,'
7839	  ;;
7840	*Sun\ F*)
7841	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7842	  lt_prog_compiler_pic='-KPIC'
7843	  lt_prog_compiler_static='-Bstatic'
7844	  lt_prog_compiler_wl=''
7845	  ;;
7846	esac
7847	;;
7848      esac
7849      ;;
7850
7851    osf3* | osf4* | osf5*)
7852      lt_prog_compiler_wl='-Wl,'
7853      # All OSF/1 code is PIC.
7854      lt_prog_compiler_static='-non_shared'
7855      ;;
7856
7857    rdos*)
7858      lt_prog_compiler_static='-non_shared'
7859      ;;
7860
7861    solaris*)
7862      lt_prog_compiler_pic='-KPIC'
7863      lt_prog_compiler_static='-Bstatic'
7864      case $cc_basename in
7865      f77* | f90* | f95*)
7866	lt_prog_compiler_wl='-Qoption ld ';;
7867      *)
7868	lt_prog_compiler_wl='-Wl,';;
7869      esac
7870      ;;
7871
7872    sunos4*)
7873      lt_prog_compiler_wl='-Qoption ld '
7874      lt_prog_compiler_pic='-PIC'
7875      lt_prog_compiler_static='-Bstatic'
7876      ;;
7877
7878    sysv4 | sysv4.2uw2* | sysv4.3*)
7879      lt_prog_compiler_wl='-Wl,'
7880      lt_prog_compiler_pic='-KPIC'
7881      lt_prog_compiler_static='-Bstatic'
7882      ;;
7883
7884    sysv4*MP*)
7885      if test -d /usr/nec ;then
7886	lt_prog_compiler_pic='-Kconform_pic'
7887	lt_prog_compiler_static='-Bstatic'
7888      fi
7889      ;;
7890
7891    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7892      lt_prog_compiler_wl='-Wl,'
7893      lt_prog_compiler_pic='-KPIC'
7894      lt_prog_compiler_static='-Bstatic'
7895      ;;
7896
7897    unicos*)
7898      lt_prog_compiler_wl='-Wl,'
7899      lt_prog_compiler_can_build_shared=no
7900      ;;
7901
7902    uts4*)
7903      lt_prog_compiler_pic='-pic'
7904      lt_prog_compiler_static='-Bstatic'
7905      ;;
7906
7907    *)
7908      lt_prog_compiler_can_build_shared=no
7909      ;;
7910    esac
7911  fi
7912
7913{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7914$as_echo "$lt_prog_compiler_pic" >&6; }
7915
7916#
7917# Check to make sure the PIC flag actually works.
7918#
7919if test -n "$lt_prog_compiler_pic"; then
7920
7921{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7922$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7923if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7924  $as_echo_n "(cached) " >&6
7925else
7926  lt_cv_prog_compiler_pic_works=no
7927  ac_outfile=conftest.$ac_objext
7928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7929   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7930   # Insert the option either (1) after the last *FLAGS variable, or
7931   # (2) before a word containing "conftest.", or (3) at the end.
7932   # Note that $ac_compile itself does not contain backslashes and begins
7933   # with a dollar sign (not a hyphen), so the echo should work correctly.
7934   # The option is referenced via a variable to avoid confusing sed.
7935   lt_compile=`echo "$ac_compile" | $SED \
7936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7938   -e 's:$: $lt_compiler_flag:'`
7939   (eval echo "\"\$as_me:7939: $lt_compile\"" >&5)
7940   (eval "$lt_compile" 2>conftest.err)
7941   ac_status=$?
7942   cat conftest.err >&5
7943   echo "$as_me:7943: \$? = $ac_status" >&5
7944   if (exit $ac_status) && test -s "$ac_outfile"; then
7945     # The compiler can only warn and ignore the option if not recognized
7946     # So say no if there are warnings other than the usual output.
7947     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7948     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7949     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7950       lt_cv_prog_compiler_pic_works=yes
7951     fi
7952   fi
7953   $rm conftest*
7954
7955fi
7956{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7957$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7958
7959if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7960    case $lt_prog_compiler_pic in
7961     "" | " "*) ;;
7962     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7963     esac
7964else
7965    lt_prog_compiler_pic=
7966     lt_prog_compiler_can_build_shared=no
7967fi
7968
7969fi
7970case $host_os in
7971  # For platforms which do not support PIC, -DPIC is meaningless:
7972  *djgpp*)
7973    lt_prog_compiler_pic=
7974    ;;
7975  *)
7976    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7977    ;;
7978esac
7979
7980#
7981# Check to make sure the static flag actually works.
7982#
7983wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7984{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7985$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7986if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7987  $as_echo_n "(cached) " >&6
7988else
7989  lt_cv_prog_compiler_static_works=no
7990   save_LDFLAGS="$LDFLAGS"
7991   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7992   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7993   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7994     # The linker can only warn and ignore the option if not recognized
7995     # So say no if there are warnings
7996     if test -s conftest.err; then
7997       # Append any errors to the config.log.
7998       cat conftest.err 1>&5
7999       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8000       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001       if diff conftest.exp conftest.er2 >/dev/null; then
8002         lt_cv_prog_compiler_static_works=yes
8003       fi
8004     else
8005       lt_cv_prog_compiler_static_works=yes
8006     fi
8007   fi
8008   $rm -r conftest*
8009   LDFLAGS="$save_LDFLAGS"
8010
8011fi
8012{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8013$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8014
8015if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8016    :
8017else
8018    lt_prog_compiler_static=
8019fi
8020
8021
8022{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8023$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8024if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8025  $as_echo_n "(cached) " >&6
8026else
8027  lt_cv_prog_compiler_c_o=no
8028   $rm -r conftest 2>/dev/null
8029   mkdir conftest
8030   cd conftest
8031   mkdir out
8032   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8033
8034   lt_compiler_flag="-o out/conftest2.$ac_objext"
8035   # Insert the option either (1) after the last *FLAGS variable, or
8036   # (2) before a word containing "conftest.", or (3) at the end.
8037   # Note that $ac_compile itself does not contain backslashes and begins
8038   # with a dollar sign (not a hyphen), so the echo should work correctly.
8039   lt_compile=`echo "$ac_compile" | $SED \
8040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042   -e 's:$: $lt_compiler_flag:'`
8043   (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
8044   (eval "$lt_compile" 2>out/conftest.err)
8045   ac_status=$?
8046   cat out/conftest.err >&5
8047   echo "$as_me:8047: \$? = $ac_status" >&5
8048   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8049   then
8050     # The compiler can only warn and ignore the option if not recognized
8051     # So say no if there are warnings
8052     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8053     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8054     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8055       lt_cv_prog_compiler_c_o=yes
8056     fi
8057   fi
8058   chmod u+w . 2>&5
8059   $rm conftest*
8060   # SGI C++ compiler will create directory out/ii_files/ for
8061   # template instantiation
8062   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8063   $rm out/* && rmdir out
8064   cd ..
8065   rmdir conftest
8066   $rm conftest*
8067
8068fi
8069{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8070$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8071
8072
8073hard_links="nottested"
8074if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8075  # do not overwrite the value of need_locks provided by the user
8076  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8077$as_echo_n "checking if we can lock with hard links... " >&6; }
8078  hard_links=yes
8079  $rm conftest*
8080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8081  touch conftest.a
8082  ln conftest.a conftest.b 2>&5 || hard_links=no
8083  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8084  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8085$as_echo "$hard_links" >&6; }
8086  if test "$hard_links" = no; then
8087    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8088$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8089    need_locks=warn
8090  fi
8091else
8092  need_locks=no
8093fi
8094
8095{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8097
8098  runpath_var=
8099  allow_undefined_flag=
8100  enable_shared_with_static_runtimes=no
8101  archive_cmds=
8102  archive_expsym_cmds=
8103  old_archive_From_new_cmds=
8104  old_archive_from_expsyms_cmds=
8105  export_dynamic_flag_spec=
8106  whole_archive_flag_spec=
8107  thread_safe_flag_spec=
8108  hardcode_libdir_flag_spec=
8109  hardcode_libdir_flag_spec_ld=
8110  hardcode_libdir_separator=
8111  hardcode_direct=no
8112  hardcode_minus_L=no
8113  hardcode_shlibpath_var=unsupported
8114  link_all_deplibs=unknown
8115  hardcode_automatic=no
8116  module_cmds=
8117  module_expsym_cmds=
8118  always_export_symbols=no
8119  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8120  # include_expsyms should be a list of space-separated symbols to be *always*
8121  # included in the symbol list
8122  include_expsyms=
8123  # exclude_expsyms can be an extended regexp of symbols to exclude
8124  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8125  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8126  # as well as any symbol that contains `d'.
8127  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8128  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8129  # platforms (ab)use it in PIC code, but their linkers get confused if
8130  # the symbol is explicitly referenced.  Since portable code cannot
8131  # rely on this symbol name, it's probably fine to never include it in
8132  # preloaded symbol tables.
8133  # Exclude shared library initialization/finalization symbols.
8134  extract_expsyms_cmds=
8135  # Just being paranoid about ensuring that cc_basename is set.
8136  for cc_temp in $compiler""; do
8137  case $cc_temp in
8138    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8140    \-*) ;;
8141    *) break;;
8142  esac
8143done
8144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8145
8146  case $host_os in
8147  cygwin* | mingw* | pw32*)
8148    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149    # When not using gcc, we currently assume that we are using
8150    # Microsoft Visual C++.
8151    if test "$GCC" != yes; then
8152      with_gnu_ld=no
8153    fi
8154    ;;
8155  interix*)
8156    # we just hope/assume this is gcc and not c89 (= MSVC++)
8157    with_gnu_ld=yes
8158    ;;
8159  openbsd*)
8160    with_gnu_ld=no
8161    ;;
8162  esac
8163
8164  ld_shlibs=yes
8165  if test "$with_gnu_ld" = yes; then
8166    # If archive_cmds runs LD, not CC, wlarc should be empty
8167    wlarc='${wl}'
8168
8169    # Set some defaults for GNU ld with shared library support. These
8170    # are reset later if shared libraries are not supported. Putting them
8171    # here allows them to be overridden if necessary.
8172    runpath_var=LD_RUN_PATH
8173    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8174    export_dynamic_flag_spec='${wl}--export-dynamic'
8175    # ancient GNU ld didn't support --whole-archive et. al.
8176    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8177	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8178      else
8179  	whole_archive_flag_spec=
8180    fi
8181    supports_anon_versioning=no
8182    case `$LD -v 2>/dev/null` in
8183      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8184      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8185      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8186      *\ 2.11.*) ;; # other 2.11 versions
8187      *) supports_anon_versioning=yes ;;
8188    esac
8189
8190    # See if GNU ld supports shared libraries.
8191    case $host_os in
8192    aix[3-9]*)
8193      # On AIX/PPC, the GNU linker is very broken
8194      if test "$host_cpu" != ia64; then
8195	ld_shlibs=no
8196	cat <<EOF 1>&2
8197
8198*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8199*** to be unable to reliably create shared libraries on AIX.
8200*** Therefore, libtool is disabling shared libraries support.  If you
8201*** really care for shared libraries, you may want to modify your PATH
8202*** so that a non-GNU linker is found, and then restart.
8203
8204EOF
8205      fi
8206      ;;
8207
8208    amigaos*)
8209      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)'
8210      hardcode_libdir_flag_spec='-L$libdir'
8211      hardcode_minus_L=yes
8212
8213      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8214      # that the semantics of dynamic libraries on AmigaOS, at least up
8215      # to version 4, is to share data among multiple programs linked
8216      # with the same dynamic library.  Since this doesn't match the
8217      # behavior of shared libraries on other platforms, we can't use
8218      # them.
8219      ld_shlibs=no
8220      ;;
8221
8222    beos*)
8223      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8224	allow_undefined_flag=unsupported
8225	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8226	# support --undefined.  This deserves some investigation.  FIXME
8227	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228      else
8229	ld_shlibs=no
8230      fi
8231      ;;
8232
8233    cygwin* | mingw* | pw32*)
8234      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8235      # as there is no search path for DLLs.
8236      hardcode_libdir_flag_spec='-L$libdir'
8237      allow_undefined_flag=unsupported
8238      always_export_symbols=no
8239      enable_shared_with_static_runtimes=yes
8240      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8241
8242      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8243        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8244	# If the export-symbols file already is a .def file (1st line
8245	# is EXPORTS), use it as is; otherwise, prepend...
8246	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8247	  cp $export_symbols $output_objdir/$soname.def;
8248	else
8249	  echo EXPORTS > $output_objdir/$soname.def;
8250	  cat $export_symbols >> $output_objdir/$soname.def;
8251	fi~
8252	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8253      else
8254	ld_shlibs=no
8255      fi
8256      ;;
8257
8258    interix[3-9]*)
8259      hardcode_direct=no
8260      hardcode_shlibpath_var=no
8261      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8262      export_dynamic_flag_spec='${wl}-E'
8263      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8264      # Instead, shared libraries are loaded at an image base (0x10000000 by
8265      # default) and relocated if they conflict, which is a slow very memory
8266      # consuming and fragmenting process.  To avoid this, we pick a random,
8267      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8268      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8269      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8270      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'
8271      ;;
8272
8273    gnu* | linux* | k*bsd*-gnu)
8274      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275	tmp_addflag=
8276	case $cc_basename,$host_cpu in
8277	pgcc*)				# Portland Group C compiler
8278	  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'
8279	  tmp_addflag=' $pic_flag'
8280	  ;;
8281	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8282	  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'
8283	  tmp_addflag=' $pic_flag -Mnomain' ;;
8284	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8285	  tmp_addflag=' -i_dynamic' ;;
8286	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8287	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8288	ifc* | ifort*)			# Intel Fortran compiler
8289	  tmp_addflag=' -nofor_main' ;;
8290	esac
8291	case `$CC -V 2>&1 | sed 5q` in
8292	*Sun\ C*)			# Sun C 5.9
8293	  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'
8294	  tmp_sharedflag='-G' ;;
8295	*Sun\ F*)			# Sun Fortran 8.3
8296	  tmp_sharedflag='-G' ;;
8297	*)
8298	  tmp_sharedflag='-shared' ;;
8299	esac
8300	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301
8302	if test $supports_anon_versioning = yes; then
8303	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8304  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8305  $echo "local: *; };" >> $output_objdir/$libname.ver~
8306	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8307	fi
8308      else
8309	ld_shlibs=no
8310      fi
8311      ;;
8312
8313    netbsd*)
8314      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8315	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8316	wlarc=
8317      else
8318	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320      fi
8321      ;;
8322
8323    solaris*)
8324      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8325	ld_shlibs=no
8326	cat <<EOF 1>&2
8327
8328*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8329*** create shared libraries on Solaris systems.  Therefore, libtool
8330*** is disabling shared libraries support.  We urge you to upgrade GNU
8331*** binutils to release 2.9.1 or newer.  Another option is to modify
8332*** your PATH or compiler configuration so that the native linker is
8333*** used, and then restart.
8334
8335EOF
8336      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339      else
8340	ld_shlibs=no
8341      fi
8342      ;;
8343
8344    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8345      case `$LD -v 2>&1` in
8346        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8347	ld_shlibs=no
8348	cat <<_LT_EOF 1>&2
8349
8350*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8351*** reliably create shared libraries on SCO systems.  Therefore, libtool
8352*** is disabling shared libraries support.  We urge you to upgrade GNU
8353*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8354*** your PATH or compiler configuration so that the native linker is
8355*** used, and then restart.
8356
8357_LT_EOF
8358	;;
8359	*)
8360	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8361	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8362	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8363	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8364	  else
8365	    ld_shlibs=no
8366	  fi
8367	;;
8368      esac
8369      ;;
8370
8371    sunos4*)
8372      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8373      wlarc=
8374      hardcode_direct=yes
8375      hardcode_shlibpath_var=no
8376      ;;
8377
8378    *)
8379      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8380	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382      else
8383	ld_shlibs=no
8384      fi
8385      ;;
8386    esac
8387
8388    if test "$ld_shlibs" = no; then
8389      runpath_var=
8390      hardcode_libdir_flag_spec=
8391      export_dynamic_flag_spec=
8392      whole_archive_flag_spec=
8393    fi
8394  else
8395    # PORTME fill in a description of your system's linker (not GNU ld)
8396    case $host_os in
8397    aix3*)
8398      allow_undefined_flag=unsupported
8399      always_export_symbols=yes
8400      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'
8401      # Note: this linker hardcodes the directories in LIBPATH if there
8402      # are no directories specified by -L.
8403      hardcode_minus_L=yes
8404      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8405	# Neither direct hardcoding nor static linking is supported with a
8406	# broken collect2.
8407	hardcode_direct=unsupported
8408      fi
8409      ;;
8410
8411    aix[4-9]*)
8412      if test "$host_cpu" = ia64; then
8413	# On IA64, the linker does run time linking by default, so we don't
8414	# have to do anything special.
8415	aix_use_runtimelinking=no
8416	exp_sym_flag='-Bexport'
8417	no_entry_flag=""
8418      else
8419	# If we're using GNU nm, then we don't want the "-C" option.
8420	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8421	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8422	  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'
8423	else
8424	  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'
8425	fi
8426	aix_use_runtimelinking=no
8427
8428	# Test if we are trying to use run time linking or normal
8429	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8430	# need to do runtime linking.
8431	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8432	  for ld_flag in $LDFLAGS; do
8433  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8434  	    aix_use_runtimelinking=yes
8435  	    break
8436  	  fi
8437	  done
8438	  ;;
8439	esac
8440
8441	exp_sym_flag='-bexport'
8442	no_entry_flag='-bnoentry'
8443      fi
8444
8445      # When large executables or shared objects are built, AIX ld can
8446      # have problems creating the table of contents.  If linking a library
8447      # or program results in "error TOC overflow" add -mminimal-toc to
8448      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8449      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8450
8451      archive_cmds=''
8452      hardcode_direct=yes
8453      hardcode_libdir_separator=':'
8454      link_all_deplibs=yes
8455
8456      if test "$GCC" = yes; then
8457	case $host_os in aix4.[012]|aix4.[012].*)
8458	# We only want to do this on AIX 4.2 and lower, the check
8459	# below for broken collect2 doesn't work under 4.3+
8460	  collect2name=`${CC} -print-prog-name=collect2`
8461	  if test -f "$collect2name" && \
8462  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8463	  then
8464  	  # We have reworked collect2
8465  	  :
8466	  else
8467  	  # We have old collect2
8468  	  hardcode_direct=unsupported
8469  	  # It fails to find uninstalled libraries when the uninstalled
8470  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8471  	  # to unsupported forces relinking
8472  	  hardcode_minus_L=yes
8473  	  hardcode_libdir_flag_spec='-L$libdir'
8474  	  hardcode_libdir_separator=
8475	  fi
8476	  ;;
8477	esac
8478	shared_flag='-shared'
8479	if test "$aix_use_runtimelinking" = yes; then
8480	  shared_flag="$shared_flag "'${wl}-G'
8481	fi
8482      else
8483	# not using gcc
8484	if test "$host_cpu" = ia64; then
8485  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8486  	# chokes on -Wl,-G. The following line is correct:
8487	  shared_flag='-G'
8488	else
8489	  if test "$aix_use_runtimelinking" = yes; then
8490	    shared_flag='${wl}-G'
8491	  else
8492	    shared_flag='${wl}-bM:SRE'
8493	  fi
8494	fi
8495      fi
8496
8497      # It seems that -bexpall does not export symbols beginning with
8498      # underscore (_), so it is better to generate a list of symbols to export.
8499      always_export_symbols=yes
8500      if test "$aix_use_runtimelinking" = yes; then
8501	# Warning - without using the other runtime loading flags (-brtl),
8502	# -berok will link without error, but may produce a broken library.
8503	allow_undefined_flag='-berok'
8504       # Determine the default libpath from the value encoded in an empty executable.
8505       cat >conftest.$ac_ext <<_ACEOF
8506/* confdefs.h.  */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h.  */
8511
8512int
8513main ()
8514{
8515
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext conftest$ac_exeext
8521if { (ac_try="$ac_link"
8522case "(($ac_try" in
8523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524  *) ac_try_echo=$ac_try;;
8525esac
8526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527$as_echo "$ac_try_echo") >&5
8528  (eval "$ac_link") 2>conftest.er1
8529  ac_status=$?
8530  grep -v '^ *+' conftest.er1 >conftest.err
8531  rm -f conftest.er1
8532  cat conftest.err >&5
8533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); } && {
8535	 test -z "$ac_c_werror_flag" ||
8536	 test ! -s conftest.err
8537       } && test -s conftest$ac_exeext && {
8538	 test "$cross_compiling" = yes ||
8539	 $as_test_x conftest$ac_exeext
8540       }; then
8541
8542lt_aix_libpath_sed='
8543    /Import File Strings/,/^$/ {
8544	/^0/ {
8545	    s/^0  *\(.*\)$/\1/
8546	    p
8547	}
8548    }'
8549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8550# Check for a 64-bit object if we didn't find anything.
8551if test -z "$aix_libpath"; then
8552  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8553fi
8554else
8555  $as_echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559fi
8560
8561rm -rf conftest.dSYM
8562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8563      conftest$ac_exeext conftest.$ac_ext
8564if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8565
8566       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8567	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"
8568       else
8569	if test "$host_cpu" = ia64; then
8570	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8571	  allow_undefined_flag="-z nodefs"
8572	  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"
8573	else
8574	 # Determine the default libpath from the value encoded in an empty executable.
8575	 cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h.  */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h.  */
8581
8582int
8583main ()
8584{
8585
8586  ;
8587  return 0;
8588}
8589_ACEOF
8590rm -f conftest.$ac_objext conftest$ac_exeext
8591if { (ac_try="$ac_link"
8592case "(($ac_try" in
8593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594  *) ac_try_echo=$ac_try;;
8595esac
8596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597$as_echo "$ac_try_echo") >&5
8598  (eval "$ac_link") 2>conftest.er1
8599  ac_status=$?
8600  grep -v '^ *+' conftest.er1 >conftest.err
8601  rm -f conftest.er1
8602  cat conftest.err >&5
8603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); } && {
8605	 test -z "$ac_c_werror_flag" ||
8606	 test ! -s conftest.err
8607       } && test -s conftest$ac_exeext && {
8608	 test "$cross_compiling" = yes ||
8609	 $as_test_x conftest$ac_exeext
8610       }; then
8611
8612lt_aix_libpath_sed='
8613    /Import File Strings/,/^$/ {
8614	/^0/ {
8615	    s/^0  *\(.*\)$/\1/
8616	    p
8617	}
8618    }'
8619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620# Check for a 64-bit object if we didn't find anything.
8621if test -z "$aix_libpath"; then
8622  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8623fi
8624else
8625  $as_echo "$as_me: failed program was:" >&5
8626sed 's/^/| /' conftest.$ac_ext >&5
8627
8628
8629fi
8630
8631rm -rf conftest.dSYM
8632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8633      conftest$ac_exeext conftest.$ac_ext
8634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8635
8636	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8637	  # Warning - without using the other run time loading flags,
8638	  # -berok will link without error, but may produce a broken library.
8639	  no_undefined_flag=' ${wl}-bernotok'
8640	  allow_undefined_flag=' ${wl}-berok'
8641	  # Exported symbols can be pulled into shared objects from archives
8642	  whole_archive_flag_spec='$convenience'
8643	  archive_cmds_need_lc=yes
8644	  # This is similar to how AIX traditionally builds its shared libraries.
8645	  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'
8646	fi
8647      fi
8648      ;;
8649
8650    amigaos*)
8651      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)'
8652      hardcode_libdir_flag_spec='-L$libdir'
8653      hardcode_minus_L=yes
8654      # see comment about different semantics on the GNU ld section
8655      ld_shlibs=no
8656      ;;
8657
8658    bsdi[45]*)
8659      export_dynamic_flag_spec=-rdynamic
8660      ;;
8661
8662    cygwin* | mingw* | pw32*)
8663      # When not using gcc, we currently assume that we are using
8664      # Microsoft Visual C++.
8665      # hardcode_libdir_flag_spec is actually meaningless, as there is
8666      # no search path for DLLs.
8667      hardcode_libdir_flag_spec=' '
8668      allow_undefined_flag=unsupported
8669      # Tell ltmain to make .lib files, not .a files.
8670      libext=lib
8671      # Tell ltmain to make .dll files, not .so files.
8672      shrext_cmds=".dll"
8673      # FIXME: Setting linknames here is a bad hack.
8674      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8675      # The linker will automatically build a .lib file if we build a DLL.
8676      old_archive_From_new_cmds='true'
8677      # FIXME: Should let the user specify the lib program.
8678      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8679      fix_srcfile_path='`cygpath -w "$srcfile"`'
8680      enable_shared_with_static_runtimes=yes
8681      ;;
8682
8683    darwin* | rhapsody*)
8684      case $host_os in
8685        rhapsody* | darwin1.[012])
8686         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8687         ;;
8688       *) # Darwin 1.3 on
8689         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8690           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8691         else
8692           case ${MACOSX_DEPLOYMENT_TARGET} in
8693             10.[012])
8694               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8695               ;;
8696             10.*)
8697               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8698               ;;
8699           esac
8700         fi
8701         ;;
8702      esac
8703      archive_cmds_need_lc=no
8704      hardcode_direct=no
8705      hardcode_automatic=yes
8706      hardcode_shlibpath_var=unsupported
8707      whole_archive_flag_spec=''
8708      link_all_deplibs=yes
8709    if test "$GCC" = yes ; then
8710    	output_verbose_link_cmd='echo'
8711        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8712        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8713        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}"
8714        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}"
8715    else
8716      case $cc_basename in
8717        xlc*)
8718         output_verbose_link_cmd='echo'
8719         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8720         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8721          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8722         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}'
8723          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}'
8724          ;;
8725       *)
8726         ld_shlibs=no
8727          ;;
8728      esac
8729    fi
8730      ;;
8731
8732    dgux*)
8733      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734      hardcode_libdir_flag_spec='-L$libdir'
8735      hardcode_shlibpath_var=no
8736      ;;
8737
8738    freebsd1*)
8739      ld_shlibs=no
8740      ;;
8741
8742    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8743    # support.  Future versions do this automatically, but an explicit c++rt0.o
8744    # does not break anything, and helps significantly (at the cost of a little
8745    # extra space).
8746    freebsd2.2*)
8747      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8748      hardcode_libdir_flag_spec='-R$libdir'
8749      hardcode_direct=yes
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8754    freebsd2*)
8755      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756      hardcode_direct=yes
8757      hardcode_minus_L=yes
8758      hardcode_shlibpath_var=no
8759      ;;
8760
8761    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8762    freebsd* | dragonfly*)
8763      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8764      hardcode_libdir_flag_spec='-R$libdir'
8765      hardcode_direct=yes
8766      hardcode_shlibpath_var=no
8767      ;;
8768
8769    hpux9*)
8770      if test "$GCC" = yes; then
8771	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'
8772      else
8773	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'
8774      fi
8775      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8776      hardcode_libdir_separator=:
8777      hardcode_direct=yes
8778
8779      # hardcode_minus_L: Not really in the search PATH,
8780      # but as the default location of the library.
8781      hardcode_minus_L=yes
8782      export_dynamic_flag_spec='${wl}-E'
8783      ;;
8784
8785    hpux10*)
8786      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8787	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8788      else
8789	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8790      fi
8791      if test "$with_gnu_ld" = no; then
8792	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8793	hardcode_libdir_separator=:
8794
8795	hardcode_direct=yes
8796	export_dynamic_flag_spec='${wl}-E'
8797
8798	# hardcode_minus_L: Not really in the search PATH,
8799	# but as the default location of the library.
8800	hardcode_minus_L=yes
8801      fi
8802      ;;
8803
8804    hpux11*)
8805      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8806	case $host_cpu in
8807	hppa*64*)
8808	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8809	  ;;
8810	ia64*)
8811	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8812	  ;;
8813	*)
8814	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8815	  ;;
8816	esac
8817      else
8818	case $host_cpu in
8819	hppa*64*)
8820	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	ia64*)
8823	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8824	  ;;
8825	*)
8826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827	  ;;
8828	esac
8829      fi
8830      if test "$with_gnu_ld" = no; then
8831	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832	hardcode_libdir_separator=:
8833
8834	case $host_cpu in
8835	hppa*64*|ia64*)
8836	  hardcode_libdir_flag_spec_ld='+b $libdir'
8837	  hardcode_direct=no
8838	  hardcode_shlibpath_var=no
8839	  ;;
8840	*)
8841	  hardcode_direct=yes
8842	  export_dynamic_flag_spec='${wl}-E'
8843
8844	  # hardcode_minus_L: Not really in the search PATH,
8845	  # but as the default location of the library.
8846	  hardcode_minus_L=yes
8847	  ;;
8848	esac
8849      fi
8850      ;;
8851
8852    irix5* | irix6* | nonstopux*)
8853      if test "$GCC" = yes; then
8854	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'
8855      else
8856	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'
8857	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8858      fi
8859      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860      hardcode_libdir_separator=:
8861      link_all_deplibs=yes
8862      ;;
8863
8864    netbsd*)
8865      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8866	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8867      else
8868	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8869      fi
8870      hardcode_libdir_flag_spec='-R$libdir'
8871      hardcode_direct=yes
8872      hardcode_shlibpath_var=no
8873      ;;
8874
8875    newsos6)
8876      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8877      hardcode_direct=yes
8878      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879      hardcode_libdir_separator=:
8880      hardcode_shlibpath_var=no
8881      ;;
8882
8883    openbsd*)
8884      if test -f /usr/libexec/ld.so; then
8885	hardcode_direct=yes
8886	hardcode_shlibpath_var=no
8887	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8888	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8889	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8890	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891	  export_dynamic_flag_spec='${wl}-E'
8892	else
8893	  case $host_os in
8894	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8895	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8896	     hardcode_libdir_flag_spec='-R$libdir'
8897	     ;;
8898	   *)
8899	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8900	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8901	     ;;
8902	  esac
8903        fi
8904      else
8905	ld_shlibs=no
8906      fi
8907      ;;
8908
8909    os2*)
8910      hardcode_libdir_flag_spec='-L$libdir'
8911      hardcode_minus_L=yes
8912      allow_undefined_flag=unsupported
8913      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'
8914      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8915      ;;
8916
8917    osf3*)
8918      if test "$GCC" = yes; then
8919	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8920	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'
8921      else
8922	allow_undefined_flag=' -expect_unresolved \*'
8923	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'
8924      fi
8925      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8926      hardcode_libdir_separator=:
8927      ;;
8928
8929    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8930      if test "$GCC" = yes; then
8931	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8932	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'
8933	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8934      else
8935	allow_undefined_flag=' -expect_unresolved \*'
8936	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'
8937	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8938	$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'
8939
8940	# Both c and cxx compiler support -rpath directly
8941	hardcode_libdir_flag_spec='-rpath $libdir'
8942      fi
8943      hardcode_libdir_separator=:
8944      ;;
8945
8946    solaris*)
8947      no_undefined_flag=' -z text'
8948      if test "$GCC" = yes; then
8949	wlarc='${wl}'
8950	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8951	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8952	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8953      else
8954	wlarc=''
8955	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8957  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8958      fi
8959      hardcode_libdir_flag_spec='-R$libdir'
8960      hardcode_shlibpath_var=no
8961      case $host_os in
8962      solaris2.[0-5] | solaris2.[0-5].*) ;;
8963      *)
8964	# The compiler driver will combine and reorder linker options,
8965	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8966	# but is careful enough not to reorder.
8967 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8968	if test "$GCC" = yes; then
8969	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8970	else
8971	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8972	fi
8973	;;
8974      esac
8975      link_all_deplibs=yes
8976      ;;
8977
8978    sunos4*)
8979      if test "x$host_vendor" = xsequent; then
8980	# Use $CC to link under sequent, because it throws in some extra .o
8981	# files that make .init and .fini sections work.
8982	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8983      else
8984	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8985      fi
8986      hardcode_libdir_flag_spec='-L$libdir'
8987      hardcode_direct=yes
8988      hardcode_minus_L=yes
8989      hardcode_shlibpath_var=no
8990      ;;
8991
8992    sysv4)
8993      case $host_vendor in
8994	sni)
8995	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996	  hardcode_direct=yes # is this really true???
8997	;;
8998	siemens)
8999	  ## LD is ld it makes a PLAMLIB
9000	  ## CC just makes a GrossModule.
9001	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9002	  reload_cmds='$CC -r -o $output$reload_objs'
9003	  hardcode_direct=no
9004        ;;
9005	motorola)
9006	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9008	;;
9009      esac
9010      runpath_var='LD_RUN_PATH'
9011      hardcode_shlibpath_var=no
9012      ;;
9013
9014    sysv4.3*)
9015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016      hardcode_shlibpath_var=no
9017      export_dynamic_flag_spec='-Bexport'
9018      ;;
9019
9020    sysv4*MP*)
9021      if test -d /usr/nec; then
9022	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023	hardcode_shlibpath_var=no
9024	runpath_var=LD_RUN_PATH
9025	hardcode_runpath_var=yes
9026	ld_shlibs=yes
9027      fi
9028      ;;
9029
9030    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9031      no_undefined_flag='${wl}-z,text'
9032      archive_cmds_need_lc=no
9033      hardcode_shlibpath_var=no
9034      runpath_var='LD_RUN_PATH'
9035
9036      if test "$GCC" = yes; then
9037	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039      else
9040	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042      fi
9043      ;;
9044
9045    sysv5* | sco3.2v5* | sco5v6*)
9046      # Note: We can NOT use -z defs as we might desire, because we do not
9047      # link with -lc, and that would cause any symbols used from libc to
9048      # always be unresolved, which means just about no library would
9049      # ever link correctly.  If we're not using GNU ld we use -z text
9050      # though, which does catch some bad symbols but isn't as heavy-handed
9051      # as -z defs.
9052      no_undefined_flag='${wl}-z,text'
9053      allow_undefined_flag='${wl}-z,nodefs'
9054      archive_cmds_need_lc=no
9055      hardcode_shlibpath_var=no
9056      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9057      hardcode_libdir_separator=':'
9058      link_all_deplibs=yes
9059      export_dynamic_flag_spec='${wl}-Bexport'
9060      runpath_var='LD_RUN_PATH'
9061
9062      if test "$GCC" = yes; then
9063	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9064	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9067	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9068      fi
9069      ;;
9070
9071    uts4*)
9072      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073      hardcode_libdir_flag_spec='-L$libdir'
9074      hardcode_shlibpath_var=no
9075      ;;
9076
9077    *)
9078      ld_shlibs=no
9079      ;;
9080    esac
9081  fi
9082
9083{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9084$as_echo "$ld_shlibs" >&6; }
9085test "$ld_shlibs" = no && can_build_shared=no
9086
9087#
9088# Do we need to explicitly link libc?
9089#
9090case "x$archive_cmds_need_lc" in
9091x|xyes)
9092  # Assume -lc should be added
9093  archive_cmds_need_lc=yes
9094
9095  if test "$enable_shared" = yes && test "$GCC" = yes; then
9096    case $archive_cmds in
9097    *'~'*)
9098      # FIXME: we may have to deal with multi-command sequences.
9099      ;;
9100    '$CC '*)
9101      # Test whether the compiler implicitly links with -lc since on some
9102      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9103      # to ld, don't add -lc before -lgcc.
9104      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9105$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9106      $rm conftest*
9107      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108
9109      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110  (eval $ac_compile) 2>&5
9111  ac_status=$?
9112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); } 2>conftest.err; then
9114        soname=conftest
9115        lib=conftest
9116        libobjs=conftest.$ac_objext
9117        deplibs=
9118        wl=$lt_prog_compiler_wl
9119	pic_flag=$lt_prog_compiler_pic
9120        compiler_flags=-v
9121        linker_flags=-v
9122        verstring=
9123        output_objdir=.
9124        libname=conftest
9125        lt_save_allow_undefined_flag=$allow_undefined_flag
9126        allow_undefined_flag=
9127        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9128  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9129  ac_status=$?
9130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); }
9132        then
9133	  archive_cmds_need_lc=no
9134        else
9135	  archive_cmds_need_lc=yes
9136        fi
9137        allow_undefined_flag=$lt_save_allow_undefined_flag
9138      else
9139        cat conftest.err 1>&5
9140      fi
9141      $rm conftest*
9142      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9143$as_echo "$archive_cmds_need_lc" >&6; }
9144      ;;
9145    esac
9146  fi
9147  ;;
9148esac
9149
9150{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9151$as_echo_n "checking dynamic linker characteristics... " >&6; }
9152library_names_spec=
9153libname_spec='lib$name'
9154soname_spec=
9155shrext_cmds=".so"
9156postinstall_cmds=
9157postuninstall_cmds=
9158finish_cmds=
9159finish_eval=
9160shlibpath_var=
9161shlibpath_overrides_runpath=unknown
9162version_type=none
9163dynamic_linker="$host_os ld.so"
9164sys_lib_dlsearch_path_spec="/lib /usr/lib"
9165
9166if test "$GCC" = yes; then
9167  case $host_os in
9168    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9169    *) lt_awk_arg="/^libraries:/" ;;
9170  esac
9171  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9172  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9173    # if the path contains ";" then we assume it to be the separator
9174    # otherwise default to the standard path separator (i.e. ":") - it is
9175    # assumed that no part of a normal pathname contains ";" but that should
9176    # okay in the real world where ";" in dirpaths is itself problematic.
9177    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9178  else
9179    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9180  fi
9181  # Ok, now we have the path, separated by spaces, we can step through it
9182  # and add multilib dir if necessary.
9183  lt_tmp_lt_search_path_spec=
9184  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9185  for lt_sys_path in $lt_search_path_spec; do
9186    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9187      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9188    else
9189      test -d "$lt_sys_path" && \
9190	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9191    fi
9192  done
9193  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9194BEGIN {RS=" "; FS="/|\n";} {
9195  lt_foo="";
9196  lt_count=0;
9197  for (lt_i = NF; lt_i > 0; lt_i--) {
9198    if ($lt_i != "" && $lt_i != ".") {
9199      if ($lt_i == "..") {
9200        lt_count++;
9201      } else {
9202        if (lt_count == 0) {
9203          lt_foo="/" $lt_i lt_foo;
9204        } else {
9205          lt_count--;
9206        }
9207      }
9208    }
9209  }
9210  if (lt_foo != "") { lt_freq[lt_foo]++; }
9211  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9212}'`
9213  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9214else
9215  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9216fi
9217need_lib_prefix=unknown
9218hardcode_into_libs=no
9219
9220# when you set need_version to no, make sure it does not cause -set_version
9221# flags to be left without arguments
9222need_version=unknown
9223
9224case $host_os in
9225aix3*)
9226  version_type=linux
9227  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9228  shlibpath_var=LIBPATH
9229
9230  # AIX 3 has no versioning support, so we append a major version to the name.
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  ;;
9233
9234aix[4-9]*)
9235  version_type=linux
9236  need_lib_prefix=no
9237  need_version=no
9238  hardcode_into_libs=yes
9239  if test "$host_cpu" = ia64; then
9240    # AIX 5 supports IA64
9241    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9242    shlibpath_var=LD_LIBRARY_PATH
9243  else
9244    # With GCC up to 2.95.x, collect2 would create an import file
9245    # for dependence libraries.  The import file would start with
9246    # the line `#! .'.  This would cause the generated library to
9247    # depend on `.', always an invalid library.  This was fixed in
9248    # development snapshots of GCC prior to 3.0.
9249    case $host_os in
9250      aix4 | aix4.[01] | aix4.[01].*)
9251      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9252	   echo ' yes '
9253	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9254	:
9255      else
9256	can_build_shared=no
9257      fi
9258      ;;
9259    esac
9260    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9261    # soname into executable. Probably we can add versioning support to
9262    # collect2, so additional links can be useful in future.
9263    if test "$aix_use_runtimelinking" = yes; then
9264      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9265      # instead of lib<name>.a to let people know that these are not
9266      # typical AIX shared libraries.
9267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268    else
9269      # We preserve .a as extension for shared libraries through AIX4.2
9270      # and later when we are not doing run time linking.
9271      library_names_spec='${libname}${release}.a $libname.a'
9272      soname_spec='${libname}${release}${shared_ext}$major'
9273    fi
9274    shlibpath_var=LIBPATH
9275  fi
9276  ;;
9277
9278amigaos*)
9279  library_names_spec='$libname.ixlibrary $libname.a'
9280  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9281  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'
9282  ;;
9283
9284beos*)
9285  library_names_spec='${libname}${shared_ext}'
9286  dynamic_linker="$host_os ld.so"
9287  shlibpath_var=LIBRARY_PATH
9288  ;;
9289
9290bsdi[45]*)
9291  version_type=linux
9292  need_version=no
9293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294  soname_spec='${libname}${release}${shared_ext}$major'
9295  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9296  shlibpath_var=LD_LIBRARY_PATH
9297  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9298  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9299  # the default ld.so.conf also contains /usr/contrib/lib and
9300  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9301  # libtool to hard-code these into programs
9302  ;;
9303
9304cygwin* | mingw* | pw32*)
9305  version_type=windows
9306  shrext_cmds=".dll"
9307  need_version=no
9308  need_lib_prefix=no
9309
9310  case $GCC,$host_os in
9311  yes,cygwin* | yes,mingw* | yes,pw32*)
9312    library_names_spec='$libname.dll.a'
9313    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9314    postinstall_cmds='base_file=`basename \${file}`~
9315      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9316      dldir=$destdir/`dirname \$dlpath`~
9317      test -d \$dldir || mkdir -p \$dldir~
9318      $install_prog $dir/$dlname \$dldir/$dlname~
9319      chmod a+x \$dldir/$dlname'
9320    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9321      dlpath=$dir/\$dldll~
9322       $rm \$dlpath'
9323    shlibpath_overrides_runpath=yes
9324
9325    case $host_os in
9326    cygwin*)
9327      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9328      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9329      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9330      ;;
9331    mingw*)
9332      # MinGW DLLs use traditional 'lib' prefix
9333      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9334      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9335      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9336        # It is most probably a Windows format PATH printed by
9337        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9338        # path with ; separators, and with drive letters. We can handle the
9339        # drive letters (cygwin fileutils understands them), so leave them,
9340        # especially as we might pass files found there to a mingw objdump,
9341        # which wouldn't understand a cygwinified path. Ahh.
9342        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9343      else
9344        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9345      fi
9346      ;;
9347    pw32*)
9348      # pw32 DLLs use 'pw' prefix rather than 'lib'
9349      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350      ;;
9351    esac
9352    ;;
9353
9354  *)
9355    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9356    ;;
9357  esac
9358  dynamic_linker='Win32 ld.exe'
9359  # FIXME: first we should search . and the directory the executable is in
9360  shlibpath_var=PATH
9361  ;;
9362
9363darwin* | rhapsody*)
9364  dynamic_linker="$host_os dyld"
9365  version_type=darwin
9366  need_lib_prefix=no
9367  need_version=no
9368  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9369  soname_spec='${libname}${release}${major}$shared_ext'
9370  shlibpath_overrides_runpath=yes
9371  shlibpath_var=DYLD_LIBRARY_PATH
9372  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9373
9374  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9375  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9376  ;;
9377
9378dgux*)
9379  version_type=linux
9380  need_lib_prefix=no
9381  need_version=no
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9383  soname_spec='${libname}${release}${shared_ext}$major'
9384  shlibpath_var=LD_LIBRARY_PATH
9385  ;;
9386
9387freebsd1*)
9388  dynamic_linker=no
9389  ;;
9390
9391freebsd* | dragonfly*)
9392  # DragonFly does not have aout.  When/if they implement a new
9393  # versioning mechanism, adjust this.
9394  if test -x /usr/bin/objformat; then
9395    objformat=`/usr/bin/objformat`
9396  else
9397    case $host_os in
9398    freebsd[123]*) objformat=aout ;;
9399    *) objformat=elf ;;
9400    esac
9401  fi
9402  version_type=freebsd-$objformat
9403  case $version_type in
9404    freebsd-elf*)
9405      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9406      need_version=no
9407      need_lib_prefix=no
9408      ;;
9409    freebsd-*)
9410      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9411      need_version=yes
9412      ;;
9413  esac
9414  shlibpath_var=LD_LIBRARY_PATH
9415  case $host_os in
9416  freebsd2*)
9417    shlibpath_overrides_runpath=yes
9418    ;;
9419  freebsd3.[01]* | freebsdelf3.[01]*)
9420    shlibpath_overrides_runpath=yes
9421    hardcode_into_libs=yes
9422    ;;
9423  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9424  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9425    shlibpath_overrides_runpath=no
9426    hardcode_into_libs=yes
9427    ;;
9428  *) # from 4.6 on, and DragonFly
9429    shlibpath_overrides_runpath=yes
9430    hardcode_into_libs=yes
9431    ;;
9432  esac
9433  ;;
9434
9435gnu*)
9436  version_type=linux
9437  need_lib_prefix=no
9438  need_version=no
9439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9440  soname_spec='${libname}${release}${shared_ext}$major'
9441  shlibpath_var=LD_LIBRARY_PATH
9442  hardcode_into_libs=yes
9443  ;;
9444
9445hpux9* | hpux10* | hpux11*)
9446  # Give a soname corresponding to the major version so that dld.sl refuses to
9447  # link against other versions.
9448  version_type=sunos
9449  need_lib_prefix=no
9450  need_version=no
9451  case $host_cpu in
9452  ia64*)
9453    shrext_cmds='.so'
9454    hardcode_into_libs=yes
9455    dynamic_linker="$host_os dld.so"
9456    shlibpath_var=LD_LIBRARY_PATH
9457    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459    soname_spec='${libname}${release}${shared_ext}$major'
9460    if test "X$HPUX_IA64_MODE" = X32; then
9461      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9462    else
9463      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9464    fi
9465    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9466    ;;
9467   hppa*64*)
9468     shrext_cmds='.sl'
9469     hardcode_into_libs=yes
9470     dynamic_linker="$host_os dld.sl"
9471     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9472     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9476     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9477     ;;
9478   *)
9479    shrext_cmds='.sl'
9480    dynamic_linker="$host_os dld.sl"
9481    shlibpath_var=SHLIB_PATH
9482    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484    soname_spec='${libname}${release}${shared_ext}$major'
9485    ;;
9486  esac
9487  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9488  postinstall_cmds='chmod 555 $lib'
9489  ;;
9490
9491interix[3-9]*)
9492  version_type=linux
9493  need_lib_prefix=no
9494  need_version=no
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  shlibpath_overrides_runpath=no
9500  hardcode_into_libs=yes
9501  ;;
9502
9503irix5* | irix6* | nonstopux*)
9504  case $host_os in
9505    nonstopux*) version_type=nonstopux ;;
9506    *)
9507	if test "$lt_cv_prog_gnu_ld" = yes; then
9508		version_type=linux
9509	else
9510		version_type=irix
9511	fi ;;
9512  esac
9513  need_lib_prefix=no
9514  need_version=no
9515  soname_spec='${libname}${release}${shared_ext}$major'
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9517  case $host_os in
9518  irix5* | nonstopux*)
9519    libsuff= shlibsuff=
9520    ;;
9521  *)
9522    case $LD in # libtool.m4 will add one of these switches to LD
9523    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9524      libsuff= shlibsuff= libmagic=32-bit;;
9525    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9526      libsuff=32 shlibsuff=N32 libmagic=N32;;
9527    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9528      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9529    *) libsuff= shlibsuff= libmagic=never-match;;
9530    esac
9531    ;;
9532  esac
9533  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9534  shlibpath_overrides_runpath=no
9535  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9536  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9537  hardcode_into_libs=yes
9538  ;;
9539
9540# No shared lib support for Linux oldld, aout, or coff.
9541linux*oldld* | linux*aout* | linux*coff*)
9542  dynamic_linker=no
9543  ;;
9544
9545# This must be Linux ELF.
9546linux* | k*bsd*-gnu)
9547  version_type=linux
9548  need_lib_prefix=no
9549  need_version=no
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551  soname_spec='${libname}${release}${shared_ext}$major'
9552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  shlibpath_overrides_runpath=no
9555  # This implies no fast_install, which is unacceptable.
9556  # Some rework will be needed to allow for fast_install
9557  # before this can be enabled.
9558  hardcode_into_libs=yes
9559
9560  # Append ld.so.conf contents to the search path
9561  if test -f /etc/ld.so.conf; then
9562    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' ' '`
9563    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9564  fi
9565
9566  # We used to test for /lib/ld.so.1 and disable shared libraries on
9567  # powerpc, because MkLinux only supported shared libraries with the
9568  # GNU dynamic linker.  Since this was broken with cross compilers,
9569  # most powerpc-linux boxes support dynamic linking these days and
9570  # people can always --disable-shared, the test was removed, and we
9571  # assume the GNU/Linux dynamic linker is in use.
9572  dynamic_linker='GNU/Linux ld.so'
9573  ;;
9574
9575netbsd*)
9576  version_type=sunos
9577  need_lib_prefix=no
9578  need_version=no
9579  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9581    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9582    dynamic_linker='NetBSD (a.out) ld.so'
9583  else
9584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9585    soname_spec='${libname}${release}${shared_ext}$major'
9586    dynamic_linker='NetBSD ld.elf_so'
9587  fi
9588  shlibpath_var=LD_LIBRARY_PATH
9589  shlibpath_overrides_runpath=yes
9590  hardcode_into_libs=yes
9591  ;;
9592
9593newsos6)
9594  version_type=linux
9595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596  shlibpath_var=LD_LIBRARY_PATH
9597  shlibpath_overrides_runpath=yes
9598  ;;
9599
9600nto-qnx*)
9601  version_type=linux
9602  need_lib_prefix=no
9603  need_version=no
9604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605  soname_spec='${libname}${release}${shared_ext}$major'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=yes
9608  ;;
9609
9610openbsd*)
9611  version_type=sunos
9612  sys_lib_dlsearch_path_spec="/usr/lib"
9613  need_lib_prefix=no
9614  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9615  case $host_os in
9616    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9617    *)                         need_version=no  ;;
9618  esac
9619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621  shlibpath_var=LD_LIBRARY_PATH
9622  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9623    case $host_os in
9624      openbsd2.[89] | openbsd2.[89].*)
9625	shlibpath_overrides_runpath=no
9626	;;
9627      *)
9628	shlibpath_overrides_runpath=yes
9629	;;
9630      esac
9631  else
9632    shlibpath_overrides_runpath=yes
9633  fi
9634  ;;
9635
9636os2*)
9637  libname_spec='$name'
9638  shrext_cmds=".dll"
9639  need_lib_prefix=no
9640  library_names_spec='$libname${shared_ext} $libname.a'
9641  dynamic_linker='OS/2 ld.exe'
9642  shlibpath_var=LIBPATH
9643  ;;
9644
9645osf3* | osf4* | osf5*)
9646  version_type=osf
9647  need_lib_prefix=no
9648  need_version=no
9649  soname_spec='${libname}${release}${shared_ext}$major'
9650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651  shlibpath_var=LD_LIBRARY_PATH
9652  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9653  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9654  ;;
9655
9656rdos*)
9657  dynamic_linker=no
9658  ;;
9659
9660solaris*)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  shlibpath_overrides_runpath=yes
9668  hardcode_into_libs=yes
9669  # ldd complains unless libraries are executable
9670  postinstall_cmds='chmod +x $lib'
9671  ;;
9672
9673sunos4*)
9674  version_type=sunos
9675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  shlibpath_overrides_runpath=yes
9679  if test "$with_gnu_ld" = yes; then
9680    need_lib_prefix=no
9681  fi
9682  need_version=yes
9683  ;;
9684
9685sysv4 | sysv4.3*)
9686  version_type=linux
9687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688  soname_spec='${libname}${release}${shared_ext}$major'
9689  shlibpath_var=LD_LIBRARY_PATH
9690  case $host_vendor in
9691    sni)
9692      shlibpath_overrides_runpath=no
9693      need_lib_prefix=no
9694      export_dynamic_flag_spec='${wl}-Blargedynsym'
9695      runpath_var=LD_RUN_PATH
9696      ;;
9697    siemens)
9698      need_lib_prefix=no
9699      ;;
9700    motorola)
9701      need_lib_prefix=no
9702      need_version=no
9703      shlibpath_overrides_runpath=no
9704      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9705      ;;
9706  esac
9707  ;;
9708
9709sysv4*MP*)
9710  if test -d /usr/nec ;then
9711    version_type=linux
9712    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9713    soname_spec='$libname${shared_ext}.$major'
9714    shlibpath_var=LD_LIBRARY_PATH
9715  fi
9716  ;;
9717
9718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9719  version_type=freebsd-elf
9720  need_lib_prefix=no
9721  need_version=no
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  hardcode_into_libs=yes
9726  if test "$with_gnu_ld" = yes; then
9727    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9728    shlibpath_overrides_runpath=no
9729  else
9730    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9731    shlibpath_overrides_runpath=yes
9732    case $host_os in
9733      sco3.2v5*)
9734        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9735	;;
9736    esac
9737  fi
9738  sys_lib_dlsearch_path_spec='/usr/lib'
9739  ;;
9740
9741uts4*)
9742  version_type=linux
9743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744  soname_spec='${libname}${release}${shared_ext}$major'
9745  shlibpath_var=LD_LIBRARY_PATH
9746  ;;
9747
9748*)
9749  dynamic_linker=no
9750  ;;
9751esac
9752{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9753$as_echo "$dynamic_linker" >&6; }
9754test "$dynamic_linker" = no && can_build_shared=no
9755
9756if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9757  $as_echo_n "(cached) " >&6
9758else
9759  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9760fi
9761
9762sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9763if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9764  $as_echo_n "(cached) " >&6
9765else
9766  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9767fi
9768
9769sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9770
9771variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9772if test "$GCC" = yes; then
9773  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9774fi
9775
9776{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9777$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9778hardcode_action=
9779if test -n "$hardcode_libdir_flag_spec" || \
9780   test -n "$runpath_var" || \
9781   test "X$hardcode_automatic" = "Xyes" ; then
9782
9783  # We can hardcode non-existant directories.
9784  if test "$hardcode_direct" != no &&
9785     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9786     # have to relink, otherwise we might link with an installed library
9787     # when we should be linking with a yet-to-be-installed one
9788     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9789     test "$hardcode_minus_L" != no; then
9790    # Linking always hardcodes the temporary library directory.
9791    hardcode_action=relink
9792  else
9793    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9794    hardcode_action=immediate
9795  fi
9796else
9797  # We cannot hardcode anything, or else we can only hardcode existing
9798  # directories.
9799  hardcode_action=unsupported
9800fi
9801{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9802$as_echo "$hardcode_action" >&6; }
9803
9804if test "$hardcode_action" = relink; then
9805  # Fast installation is not supported
9806  enable_fast_install=no
9807elif test "$shlibpath_overrides_runpath" = yes ||
9808     test "$enable_shared" = no; then
9809  # Fast installation is not necessary
9810  enable_fast_install=needless
9811fi
9812
9813striplib=
9814old_striplib=
9815{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9816$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9817if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9818  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9819  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9820  { $as_echo "$as_me:$LINENO: result: yes" >&5
9821$as_echo "yes" >&6; }
9822else
9823# FIXME - insert some real tests, host_os isn't really good enough
9824  case $host_os in
9825   darwin*)
9826       if test -n "$STRIP" ; then
9827         striplib="$STRIP -x"
9828         old_striplib="$STRIP -S"
9829         { $as_echo "$as_me:$LINENO: result: yes" >&5
9830$as_echo "yes" >&6; }
9831       else
9832  { $as_echo "$as_me:$LINENO: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835       ;;
9836   *)
9837  { $as_echo "$as_me:$LINENO: result: no" >&5
9838$as_echo "no" >&6; }
9839    ;;
9840  esac
9841fi
9842
9843if test "x$enable_dlopen" != xyes; then
9844  enable_dlopen=unknown
9845  enable_dlopen_self=unknown
9846  enable_dlopen_self_static=unknown
9847else
9848  lt_cv_dlopen=no
9849  lt_cv_dlopen_libs=
9850
9851  case $host_os in
9852  beos*)
9853    lt_cv_dlopen="load_add_on"
9854    lt_cv_dlopen_libs=
9855    lt_cv_dlopen_self=yes
9856    ;;
9857
9858  mingw* | pw32*)
9859    lt_cv_dlopen="LoadLibrary"
9860    lt_cv_dlopen_libs=
9861   ;;
9862
9863  cygwin*)
9864    lt_cv_dlopen="dlopen"
9865    lt_cv_dlopen_libs=
9866   ;;
9867
9868  darwin*)
9869  # if libdl is installed we need to link against it
9870    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9871$as_echo_n "checking for dlopen in -ldl... " >&6; }
9872if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9873  $as_echo_n "(cached) " >&6
9874else
9875  ac_check_lib_save_LIBS=$LIBS
9876LIBS="-ldl  $LIBS"
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h.  */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h.  */
9883
9884/* Override any GCC internal prototype to avoid an error.
9885   Use char because int might match the return type of a GCC
9886   builtin and then its argument prototype would still apply.  */
9887#ifdef __cplusplus
9888extern "C"
9889#endif
9890char dlopen ();
9891int
9892main ()
9893{
9894return dlopen ();
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
9900if { (ac_try="$ac_link"
9901case "(($ac_try" in
9902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903  *) ac_try_echo=$ac_try;;
9904esac
9905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906$as_echo "$ac_try_echo") >&5
9907  (eval "$ac_link") 2>conftest.er1
9908  ac_status=$?
9909  grep -v '^ *+' conftest.er1 >conftest.err
9910  rm -f conftest.er1
9911  cat conftest.err >&5
9912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } && {
9914	 test -z "$ac_c_werror_flag" ||
9915	 test ! -s conftest.err
9916       } && test -s conftest$ac_exeext && {
9917	 test "$cross_compiling" = yes ||
9918	 $as_test_x conftest$ac_exeext
9919       }; then
9920  ac_cv_lib_dl_dlopen=yes
9921else
9922  $as_echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
9924
9925	ac_cv_lib_dl_dlopen=no
9926fi
9927
9928rm -rf conftest.dSYM
9929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9930      conftest$ac_exeext conftest.$ac_ext
9931LIBS=$ac_check_lib_save_LIBS
9932fi
9933{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9934$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9935if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9936  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9937else
9938
9939    lt_cv_dlopen="dyld"
9940    lt_cv_dlopen_libs=
9941    lt_cv_dlopen_self=yes
9942
9943fi
9944
9945   ;;
9946
9947  *)
9948    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9949$as_echo_n "checking for shl_load... " >&6; }
9950if test "${ac_cv_func_shl_load+set}" = set; then
9951  $as_echo_n "(cached) " >&6
9952else
9953  cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h.  */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
9958/* end confdefs.h.  */
9959/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9960   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9961#define shl_load innocuous_shl_load
9962
9963/* System header to define __stub macros and hopefully few prototypes,
9964    which can conflict with char shl_load (); below.
9965    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966    <limits.h> exists even on freestanding compilers.  */
9967
9968#ifdef __STDC__
9969# include <limits.h>
9970#else
9971# include <assert.h>
9972#endif
9973
9974#undef shl_load
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982char shl_load ();
9983/* The GNU C library defines this for functions which it implements
9984    to always fail with ENOSYS.  Some functions are actually named
9985    something starting with __ and the normal name is an alias.  */
9986#if defined __stub_shl_load || defined __stub___shl_load
9987choke me
9988#endif
9989
9990int
9991main ()
9992{
9993return shl_load ();
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (ac_try="$ac_link"
10000case "(($ac_try" in
10001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002  *) ac_try_echo=$ac_try;;
10003esac
10004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10005$as_echo "$ac_try_echo") >&5
10006  (eval "$ac_link") 2>conftest.er1
10007  ac_status=$?
10008  grep -v '^ *+' conftest.er1 >conftest.err
10009  rm -f conftest.er1
10010  cat conftest.err >&5
10011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); } && {
10013	 test -z "$ac_c_werror_flag" ||
10014	 test ! -s conftest.err
10015       } && test -s conftest$ac_exeext && {
10016	 test "$cross_compiling" = yes ||
10017	 $as_test_x conftest$ac_exeext
10018       }; then
10019  ac_cv_func_shl_load=yes
10020else
10021  $as_echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
10023
10024	ac_cv_func_shl_load=no
10025fi
10026
10027rm -rf conftest.dSYM
10028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029      conftest$ac_exeext conftest.$ac_ext
10030fi
10031{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10032$as_echo "$ac_cv_func_shl_load" >&6; }
10033if test "x$ac_cv_func_shl_load" = x""yes; then
10034  lt_cv_dlopen="shl_load"
10035else
10036  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10037$as_echo_n "checking for shl_load in -ldld... " >&6; }
10038if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10039  $as_echo_n "(cached) " >&6
10040else
10041  ac_check_lib_save_LIBS=$LIBS
10042LIBS="-ldld  $LIBS"
10043cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h.  */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h.  */
10049
10050/* Override any GCC internal prototype to avoid an error.
10051   Use char because int might match the return type of a GCC
10052   builtin and then its argument prototype would still apply.  */
10053#ifdef __cplusplus
10054extern "C"
10055#endif
10056char shl_load ();
10057int
10058main ()
10059{
10060return shl_load ();
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext
10066if { (ac_try="$ac_link"
10067case "(($ac_try" in
10068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069  *) ac_try_echo=$ac_try;;
10070esac
10071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072$as_echo "$ac_try_echo") >&5
10073  (eval "$ac_link") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && {
10080	 test -z "$ac_c_werror_flag" ||
10081	 test ! -s conftest.err
10082       } && test -s conftest$ac_exeext && {
10083	 test "$cross_compiling" = yes ||
10084	 $as_test_x conftest$ac_exeext
10085       }; then
10086  ac_cv_lib_dld_shl_load=yes
10087else
10088  $as_echo "$as_me: failed program was:" >&5
10089sed 's/^/| /' conftest.$ac_ext >&5
10090
10091	ac_cv_lib_dld_shl_load=no
10092fi
10093
10094rm -rf conftest.dSYM
10095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096      conftest$ac_exeext conftest.$ac_ext
10097LIBS=$ac_check_lib_save_LIBS
10098fi
10099{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10100$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10101if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10102  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10103else
10104  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10105$as_echo_n "checking for dlopen... " >&6; }
10106if test "${ac_cv_func_dlopen+set}" = set; then
10107  $as_echo_n "(cached) " >&6
10108else
10109  cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h.  */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h.  */
10115/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10116   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10117#define dlopen innocuous_dlopen
10118
10119/* System header to define __stub macros and hopefully few prototypes,
10120    which can conflict with char dlopen (); below.
10121    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122    <limits.h> exists even on freestanding compilers.  */
10123
10124#ifdef __STDC__
10125# include <limits.h>
10126#else
10127# include <assert.h>
10128#endif
10129
10130#undef dlopen
10131
10132/* Override any GCC internal prototype to avoid an error.
10133   Use char because int might match the return type of a GCC
10134   builtin and then its argument prototype would still apply.  */
10135#ifdef __cplusplus
10136extern "C"
10137#endif
10138char dlopen ();
10139/* The GNU C library defines this for functions which it implements
10140    to always fail with ENOSYS.  Some functions are actually named
10141    something starting with __ and the normal name is an alias.  */
10142#if defined __stub_dlopen || defined __stub___dlopen
10143choke me
10144#endif
10145
10146int
10147main ()
10148{
10149return dlopen ();
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext conftest$ac_exeext
10155if { (ac_try="$ac_link"
10156case "(($ac_try" in
10157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158  *) ac_try_echo=$ac_try;;
10159esac
10160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161$as_echo "$ac_try_echo") >&5
10162  (eval "$ac_link") 2>conftest.er1
10163  ac_status=$?
10164  grep -v '^ *+' conftest.er1 >conftest.err
10165  rm -f conftest.er1
10166  cat conftest.err >&5
10167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); } && {
10169	 test -z "$ac_c_werror_flag" ||
10170	 test ! -s conftest.err
10171       } && test -s conftest$ac_exeext && {
10172	 test "$cross_compiling" = yes ||
10173	 $as_test_x conftest$ac_exeext
10174       }; then
10175  ac_cv_func_dlopen=yes
10176else
10177  $as_echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
10180	ac_cv_func_dlopen=no
10181fi
10182
10183rm -rf conftest.dSYM
10184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185      conftest$ac_exeext conftest.$ac_ext
10186fi
10187{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10188$as_echo "$ac_cv_func_dlopen" >&6; }
10189if test "x$ac_cv_func_dlopen" = x""yes; then
10190  lt_cv_dlopen="dlopen"
10191else
10192  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10193$as_echo_n "checking for dlopen in -ldl... " >&6; }
10194if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10195  $as_echo_n "(cached) " >&6
10196else
10197  ac_check_lib_save_LIBS=$LIBS
10198LIBS="-ldl  $LIBS"
10199cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h.  */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h.  */
10205
10206/* Override any GCC internal prototype to avoid an error.
10207   Use char because int might match the return type of a GCC
10208   builtin and then its argument prototype would still apply.  */
10209#ifdef __cplusplus
10210extern "C"
10211#endif
10212char dlopen ();
10213int
10214main ()
10215{
10216return dlopen ();
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
10222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228$as_echo "$ac_try_echo") >&5
10229  (eval "$ac_link") 2>conftest.er1
10230  ac_status=$?
10231  grep -v '^ *+' conftest.er1 >conftest.err
10232  rm -f conftest.er1
10233  cat conftest.err >&5
10234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); } && {
10236	 test -z "$ac_c_werror_flag" ||
10237	 test ! -s conftest.err
10238       } && test -s conftest$ac_exeext && {
10239	 test "$cross_compiling" = yes ||
10240	 $as_test_x conftest$ac_exeext
10241       }; then
10242  ac_cv_lib_dl_dlopen=yes
10243else
10244  $as_echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247	ac_cv_lib_dl_dlopen=no
10248fi
10249
10250rm -rf conftest.dSYM
10251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252      conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
10255{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10257if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10258  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10259else
10260  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10261$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10262if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10263  $as_echo_n "(cached) " >&6
10264else
10265  ac_check_lib_save_LIBS=$LIBS
10266LIBS="-lsvld  $LIBS"
10267cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h.  */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h.  */
10273
10274/* Override any GCC internal prototype to avoid an error.
10275   Use char because int might match the return type of a GCC
10276   builtin and then its argument prototype would still apply.  */
10277#ifdef __cplusplus
10278extern "C"
10279#endif
10280char dlopen ();
10281int
10282main ()
10283{
10284return dlopen ();
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (ac_try="$ac_link"
10291case "(($ac_try" in
10292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293  *) ac_try_echo=$ac_try;;
10294esac
10295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10296$as_echo "$ac_try_echo") >&5
10297  (eval "$ac_link") 2>conftest.er1
10298  ac_status=$?
10299  grep -v '^ *+' conftest.er1 >conftest.err
10300  rm -f conftest.er1
10301  cat conftest.err >&5
10302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } && {
10304	 test -z "$ac_c_werror_flag" ||
10305	 test ! -s conftest.err
10306       } && test -s conftest$ac_exeext && {
10307	 test "$cross_compiling" = yes ||
10308	 $as_test_x conftest$ac_exeext
10309       }; then
10310  ac_cv_lib_svld_dlopen=yes
10311else
10312  $as_echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315	ac_cv_lib_svld_dlopen=no
10316fi
10317
10318rm -rf conftest.dSYM
10319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320      conftest$ac_exeext conftest.$ac_ext
10321LIBS=$ac_check_lib_save_LIBS
10322fi
10323{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10324$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10325if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10326  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10327else
10328  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10329$as_echo_n "checking for dld_link in -ldld... " >&6; }
10330if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10331  $as_echo_n "(cached) " >&6
10332else
10333  ac_check_lib_save_LIBS=$LIBS
10334LIBS="-ldld  $LIBS"
10335cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h.  */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h.  */
10341
10342/* Override any GCC internal prototype to avoid an error.
10343   Use char because int might match the return type of a GCC
10344   builtin and then its argument prototype would still apply.  */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348char dld_link ();
10349int
10350main ()
10351{
10352return dld_link ();
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext conftest$ac_exeext
10358if { (ac_try="$ac_link"
10359case "(($ac_try" in
10360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361  *) ac_try_echo=$ac_try;;
10362esac
10363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10364$as_echo "$ac_try_echo") >&5
10365  (eval "$ac_link") 2>conftest.er1
10366  ac_status=$?
10367  grep -v '^ *+' conftest.er1 >conftest.err
10368  rm -f conftest.er1
10369  cat conftest.err >&5
10370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); } && {
10372	 test -z "$ac_c_werror_flag" ||
10373	 test ! -s conftest.err
10374       } && test -s conftest$ac_exeext && {
10375	 test "$cross_compiling" = yes ||
10376	 $as_test_x conftest$ac_exeext
10377       }; then
10378  ac_cv_lib_dld_dld_link=yes
10379else
10380  $as_echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383	ac_cv_lib_dld_dld_link=no
10384fi
10385
10386rm -rf conftest.dSYM
10387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10388      conftest$ac_exeext conftest.$ac_ext
10389LIBS=$ac_check_lib_save_LIBS
10390fi
10391{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10392$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10393if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10394  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10395fi
10396
10397
10398fi
10399
10400
10401fi
10402
10403
10404fi
10405
10406
10407fi
10408
10409
10410fi
10411
10412    ;;
10413  esac
10414
10415  if test "x$lt_cv_dlopen" != xno; then
10416    enable_dlopen=yes
10417  else
10418    enable_dlopen=no
10419  fi
10420
10421  case $lt_cv_dlopen in
10422  dlopen)
10423    save_CPPFLAGS="$CPPFLAGS"
10424    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10425
10426    save_LDFLAGS="$LDFLAGS"
10427    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10428
10429    save_LIBS="$LIBS"
10430    LIBS="$lt_cv_dlopen_libs $LIBS"
10431
10432    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10433$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10434if test "${lt_cv_dlopen_self+set}" = set; then
10435  $as_echo_n "(cached) " >&6
10436else
10437  	  if test "$cross_compiling" = yes; then :
10438  lt_cv_dlopen_self=cross
10439else
10440  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10441  lt_status=$lt_dlunknown
10442  cat > conftest.$ac_ext <<EOF
10443#line 10443 "configure"
10444#include "confdefs.h"
10445
10446#if HAVE_DLFCN_H
10447#include <dlfcn.h>
10448#endif
10449
10450#include <stdio.h>
10451
10452#ifdef RTLD_GLOBAL
10453#  define LT_DLGLOBAL		RTLD_GLOBAL
10454#else
10455#  ifdef DL_GLOBAL
10456#    define LT_DLGLOBAL		DL_GLOBAL
10457#  else
10458#    define LT_DLGLOBAL		0
10459#  endif
10460#endif
10461
10462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10463   find out it does not work in some platform. */
10464#ifndef LT_DLLAZY_OR_NOW
10465#  ifdef RTLD_LAZY
10466#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10467#  else
10468#    ifdef DL_LAZY
10469#      define LT_DLLAZY_OR_NOW		DL_LAZY
10470#    else
10471#      ifdef RTLD_NOW
10472#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10473#      else
10474#        ifdef DL_NOW
10475#          define LT_DLLAZY_OR_NOW	DL_NOW
10476#        else
10477#          define LT_DLLAZY_OR_NOW	0
10478#        endif
10479#      endif
10480#    endif
10481#  endif
10482#endif
10483
10484#ifdef __cplusplus
10485extern "C" void exit (int);
10486#endif
10487
10488void fnord() { int i=42;}
10489int main ()
10490{
10491  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10492  int status = $lt_dlunknown;
10493
10494  if (self)
10495    {
10496      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10497      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10498      /* dlclose (self); */
10499    }
10500  else
10501    puts (dlerror ());
10502
10503    exit (status);
10504}
10505EOF
10506  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507  (eval $ac_link) 2>&5
10508  ac_status=$?
10509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10511    (./conftest; exit; ) >&5 2>/dev/null
10512    lt_status=$?
10513    case x$lt_status in
10514      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10515      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10516      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10517    esac
10518  else :
10519    # compilation failed
10520    lt_cv_dlopen_self=no
10521  fi
10522fi
10523rm -fr conftest*
10524
10525
10526fi
10527{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10528$as_echo "$lt_cv_dlopen_self" >&6; }
10529
10530    if test "x$lt_cv_dlopen_self" = xyes; then
10531      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10532      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10533$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10534if test "${lt_cv_dlopen_self_static+set}" = set; then
10535  $as_echo_n "(cached) " >&6
10536else
10537  	  if test "$cross_compiling" = yes; then :
10538  lt_cv_dlopen_self_static=cross
10539else
10540  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541  lt_status=$lt_dlunknown
10542  cat > conftest.$ac_ext <<EOF
10543#line 10543 "configure"
10544#include "confdefs.h"
10545
10546#if HAVE_DLFCN_H
10547#include <dlfcn.h>
10548#endif
10549
10550#include <stdio.h>
10551
10552#ifdef RTLD_GLOBAL
10553#  define LT_DLGLOBAL		RTLD_GLOBAL
10554#else
10555#  ifdef DL_GLOBAL
10556#    define LT_DLGLOBAL		DL_GLOBAL
10557#  else
10558#    define LT_DLGLOBAL		0
10559#  endif
10560#endif
10561
10562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563   find out it does not work in some platform. */
10564#ifndef LT_DLLAZY_OR_NOW
10565#  ifdef RTLD_LAZY
10566#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10567#  else
10568#    ifdef DL_LAZY
10569#      define LT_DLLAZY_OR_NOW		DL_LAZY
10570#    else
10571#      ifdef RTLD_NOW
10572#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10573#      else
10574#        ifdef DL_NOW
10575#          define LT_DLLAZY_OR_NOW	DL_NOW
10576#        else
10577#          define LT_DLLAZY_OR_NOW	0
10578#        endif
10579#      endif
10580#    endif
10581#  endif
10582#endif
10583
10584#ifdef __cplusplus
10585extern "C" void exit (int);
10586#endif
10587
10588void fnord() { int i=42;}
10589int main ()
10590{
10591  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10592  int status = $lt_dlunknown;
10593
10594  if (self)
10595    {
10596      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10597      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10598      /* dlclose (self); */
10599    }
10600  else
10601    puts (dlerror ());
10602
10603    exit (status);
10604}
10605EOF
10606  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607  (eval $ac_link) 2>&5
10608  ac_status=$?
10609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10611    (./conftest; exit; ) >&5 2>/dev/null
10612    lt_status=$?
10613    case x$lt_status in
10614      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10615      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10616      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10617    esac
10618  else :
10619    # compilation failed
10620    lt_cv_dlopen_self_static=no
10621  fi
10622fi
10623rm -fr conftest*
10624
10625
10626fi
10627{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10628$as_echo "$lt_cv_dlopen_self_static" >&6; }
10629    fi
10630
10631    CPPFLAGS="$save_CPPFLAGS"
10632    LDFLAGS="$save_LDFLAGS"
10633    LIBS="$save_LIBS"
10634    ;;
10635  esac
10636
10637  case $lt_cv_dlopen_self in
10638  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10639  *) enable_dlopen_self=unknown ;;
10640  esac
10641
10642  case $lt_cv_dlopen_self_static in
10643  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10644  *) enable_dlopen_self_static=unknown ;;
10645  esac
10646fi
10647
10648
10649# Report which library types will actually be built
10650{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10651$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10652{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10653$as_echo "$can_build_shared" >&6; }
10654
10655{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10656$as_echo_n "checking whether to build shared libraries... " >&6; }
10657test "$can_build_shared" = "no" && enable_shared=no
10658
10659# On AIX, shared libraries and static libraries use the same namespace, and
10660# are all built from PIC.
10661case $host_os in
10662aix3*)
10663  test "$enable_shared" = yes && enable_static=no
10664  if test -n "$RANLIB"; then
10665    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10666    postinstall_cmds='$RANLIB $lib'
10667  fi
10668  ;;
10669
10670aix[4-9]*)
10671  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10672    test "$enable_shared" = yes && enable_static=no
10673  fi
10674    ;;
10675esac
10676{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10677$as_echo "$enable_shared" >&6; }
10678
10679{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10680$as_echo_n "checking whether to build static libraries... " >&6; }
10681# Make sure either enable_shared or enable_static is yes.
10682test "$enable_shared" = yes || enable_static=yes
10683{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10684$as_echo "$enable_static" >&6; }
10685
10686# The else clause should only fire when bootstrapping the
10687# libtool distribution, otherwise you forgot to ship ltmain.sh
10688# with your package, and you will get complaints that there are
10689# no rules to generate ltmain.sh.
10690if test -f "$ltmain"; then
10691  # See if we are running on zsh, and set the options which allow our commands through
10692  # without removal of \ escapes.
10693  if test -n "${ZSH_VERSION+set}" ; then
10694    setopt NO_GLOB_SUBST
10695  fi
10696  # Now quote all the things that may contain metacharacters while being
10697  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10698  # variables and quote the copies for generation of the libtool script.
10699  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10700    SED SHELL STRIP \
10701    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10702    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10703    deplibs_check_method reload_flag reload_cmds need_locks \
10704    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10705    lt_cv_sys_global_symbol_to_c_name_address \
10706    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10707    old_postinstall_cmds old_postuninstall_cmds \
10708    compiler \
10709    CC \
10710    LD \
10711    lt_prog_compiler_wl \
10712    lt_prog_compiler_pic \
10713    lt_prog_compiler_static \
10714    lt_prog_compiler_no_builtin_flag \
10715    export_dynamic_flag_spec \
10716    thread_safe_flag_spec \
10717    whole_archive_flag_spec \
10718    enable_shared_with_static_runtimes \
10719    old_archive_cmds \
10720    old_archive_from_new_cmds \
10721    predep_objects \
10722    postdep_objects \
10723    predeps \
10724    postdeps \
10725    compiler_lib_search_path \
10726    compiler_lib_search_dirs \
10727    archive_cmds \
10728    archive_expsym_cmds \
10729    postinstall_cmds \
10730    postuninstall_cmds \
10731    old_archive_from_expsyms_cmds \
10732    allow_undefined_flag \
10733    no_undefined_flag \
10734    export_symbols_cmds \
10735    hardcode_libdir_flag_spec \
10736    hardcode_libdir_flag_spec_ld \
10737    hardcode_libdir_separator \
10738    hardcode_automatic \
10739    module_cmds \
10740    module_expsym_cmds \
10741    lt_cv_prog_compiler_c_o \
10742    fix_srcfile_path \
10743    exclude_expsyms \
10744    include_expsyms; do
10745
10746    case $var in
10747    old_archive_cmds | \
10748    old_archive_from_new_cmds | \
10749    archive_cmds | \
10750    archive_expsym_cmds | \
10751    module_cmds | \
10752    module_expsym_cmds | \
10753    old_archive_from_expsyms_cmds | \
10754    export_symbols_cmds | \
10755    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10756    postinstall_cmds | postuninstall_cmds | \
10757    old_postinstall_cmds | old_postuninstall_cmds | \
10758    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10759      # Double-quote double-evaled strings.
10760      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10761      ;;
10762    *)
10763      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10764      ;;
10765    esac
10766  done
10767
10768  case $lt_echo in
10769  *'\$0 --fallback-echo"')
10770    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10771    ;;
10772  esac
10773
10774cfgfile="${ofile}T"
10775  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10776  $rm -f "$cfgfile"
10777  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10778$as_echo "$as_me: creating $ofile" >&6;}
10779
10780  cat <<__EOF__ >> "$cfgfile"
10781#! $SHELL
10782
10783# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10784# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10785# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10786#
10787# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10788# Free Software Foundation, Inc.
10789#
10790# This file is part of GNU Libtool:
10791# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10792#
10793# This program is free software; you can redistribute it and/or modify
10794# it under the terms of the GNU General Public License as published by
10795# the Free Software Foundation; either version 2 of the License, or
10796# (at your option) any later version.
10797#
10798# This program is distributed in the hope that it will be useful, but
10799# WITHOUT ANY WARRANTY; without even the implied warranty of
10800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10801# General Public License for more details.
10802#
10803# You should have received a copy of the GNU General Public License
10804# along with this program; if not, write to the Free Software
10805# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10806#
10807# As a special exception to the GNU General Public License, if you
10808# distribute this file as part of a program that contains a
10809# configuration script generated by Autoconf, you may include it under
10810# the same distribution terms that you use for the rest of that program.
10811
10812# A sed program that does not truncate output.
10813SED=$lt_SED
10814
10815# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10816Xsed="$SED -e 1s/^X//"
10817
10818# The HP-UX ksh and POSIX shell print the target directory to stdout
10819# if CDPATH is set.
10820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10821
10822# The names of the tagged configurations supported by this script.
10823available_tags=
10824
10825# ### BEGIN LIBTOOL CONFIG
10826
10827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10828
10829# Shell to use when invoking shell scripts.
10830SHELL=$lt_SHELL
10831
10832# Whether or not to build shared libraries.
10833build_libtool_libs=$enable_shared
10834
10835# Whether or not to build static libraries.
10836build_old_libs=$enable_static
10837
10838# Whether or not to add -lc for building shared libraries.
10839build_libtool_need_lc=$archive_cmds_need_lc
10840
10841# Whether or not to disallow shared libs when runtime libs are static
10842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10843
10844# Whether or not to optimize for fast installation.
10845fast_install=$enable_fast_install
10846
10847# The host system.
10848host_alias=$host_alias
10849host=$host
10850host_os=$host_os
10851
10852# The build system.
10853build_alias=$build_alias
10854build=$build
10855build_os=$build_os
10856
10857# An echo program that does not interpret backslashes.
10858echo=$lt_echo
10859
10860# The archiver.
10861AR=$lt_AR
10862AR_FLAGS=$lt_AR_FLAGS
10863
10864# A C compiler.
10865LTCC=$lt_LTCC
10866
10867# LTCC compiler flags.
10868LTCFLAGS=$lt_LTCFLAGS
10869
10870# A language-specific compiler.
10871CC=$lt_compiler
10872
10873# Is the compiler the GNU C compiler?
10874with_gcc=$GCC
10875
10876# An ERE matcher.
10877EGREP=$lt_EGREP
10878
10879# The linker used to build libraries.
10880LD=$lt_LD
10881
10882# Whether we need hard or soft links.
10883LN_S=$lt_LN_S
10884
10885# A BSD-compatible nm program.
10886NM=$lt_NM
10887
10888# A symbol stripping program
10889STRIP=$lt_STRIP
10890
10891# Used to examine libraries when file_magic_cmd begins "file"
10892MAGIC_CMD=$MAGIC_CMD
10893
10894# Used on cygwin: DLL creation program.
10895DLLTOOL="$DLLTOOL"
10896
10897# Used on cygwin: object dumper.
10898OBJDUMP="$OBJDUMP"
10899
10900# Used on cygwin: assembler.
10901AS="$AS"
10902
10903# The name of the directory that contains temporary libtool files.
10904objdir=$objdir
10905
10906# How to create reloadable object files.
10907reload_flag=$lt_reload_flag
10908reload_cmds=$lt_reload_cmds
10909
10910# How to pass a linker flag through the compiler.
10911wl=$lt_lt_prog_compiler_wl
10912
10913# Object file suffix (normally "o").
10914objext="$ac_objext"
10915
10916# Old archive suffix (normally "a").
10917libext="$libext"
10918
10919# Shared library suffix (normally ".so").
10920shrext_cmds='$shrext_cmds'
10921
10922# Executable file suffix (normally "").
10923exeext="$exeext"
10924
10925# Additional compiler flags for building library objects.
10926pic_flag=$lt_lt_prog_compiler_pic
10927pic_mode=$pic_mode
10928
10929# What is the maximum length of a command?
10930max_cmd_len=$lt_cv_sys_max_cmd_len
10931
10932# Does compiler simultaneously support -c and -o options?
10933compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10934
10935# Must we lock files when doing compilation?
10936need_locks=$lt_need_locks
10937
10938# Do we need the lib prefix for modules?
10939need_lib_prefix=$need_lib_prefix
10940
10941# Do we need a version for libraries?
10942need_version=$need_version
10943
10944# Whether dlopen is supported.
10945dlopen_support=$enable_dlopen
10946
10947# Whether dlopen of programs is supported.
10948dlopen_self=$enable_dlopen_self
10949
10950# Whether dlopen of statically linked programs is supported.
10951dlopen_self_static=$enable_dlopen_self_static
10952
10953# Compiler flag to prevent dynamic linking.
10954link_static_flag=$lt_lt_prog_compiler_static
10955
10956# Compiler flag to turn off builtin functions.
10957no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10958
10959# Compiler flag to allow reflexive dlopens.
10960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10961
10962# Compiler flag to generate shared objects directly from archives.
10963whole_archive_flag_spec=$lt_whole_archive_flag_spec
10964
10965# Compiler flag to generate thread-safe objects.
10966thread_safe_flag_spec=$lt_thread_safe_flag_spec
10967
10968# Library versioning type.
10969version_type=$version_type
10970
10971# Format of library name prefix.
10972libname_spec=$lt_libname_spec
10973
10974# List of archive names.  First name is the real one, the rest are links.
10975# The last name is the one that the linker finds with -lNAME.
10976library_names_spec=$lt_library_names_spec
10977
10978# The coded name of the library, if different from the real name.
10979soname_spec=$lt_soname_spec
10980
10981# Commands used to build and install an old-style archive.
10982RANLIB=$lt_RANLIB
10983old_archive_cmds=$lt_old_archive_cmds
10984old_postinstall_cmds=$lt_old_postinstall_cmds
10985old_postuninstall_cmds=$lt_old_postuninstall_cmds
10986
10987# Create an old-style archive from a shared archive.
10988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10989
10990# Create a temporary old-style archive to link instead of a shared archive.
10991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10992
10993# Commands used to build and install a shared archive.
10994archive_cmds=$lt_archive_cmds
10995archive_expsym_cmds=$lt_archive_expsym_cmds
10996postinstall_cmds=$lt_postinstall_cmds
10997postuninstall_cmds=$lt_postuninstall_cmds
10998
10999# Commands used to build a loadable module (assumed same as above if empty)
11000module_cmds=$lt_module_cmds
11001module_expsym_cmds=$lt_module_expsym_cmds
11002
11003# Commands to strip libraries.
11004old_striplib=$lt_old_striplib
11005striplib=$lt_striplib
11006
11007# Dependencies to place before the objects being linked to create a
11008# shared library.
11009predep_objects=$lt_predep_objects
11010
11011# Dependencies to place after the objects being linked to create a
11012# shared library.
11013postdep_objects=$lt_postdep_objects
11014
11015# Dependencies to place before the objects being linked to create a
11016# shared library.
11017predeps=$lt_predeps
11018
11019# Dependencies to place after the objects being linked to create a
11020# shared library.
11021postdeps=$lt_postdeps
11022
11023# The directories searched by this compiler when creating a shared
11024# library
11025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11026
11027# The library search path used internally by the compiler when linking
11028# a shared library.
11029compiler_lib_search_path=$lt_compiler_lib_search_path
11030
11031# Method to check whether dependent libraries are shared objects.
11032deplibs_check_method=$lt_deplibs_check_method
11033
11034# Command to use when deplibs_check_method == file_magic.
11035file_magic_cmd=$lt_file_magic_cmd
11036
11037# Flag that allows shared libraries with undefined symbols to be built.
11038allow_undefined_flag=$lt_allow_undefined_flag
11039
11040# Flag that forces no undefined symbols.
11041no_undefined_flag=$lt_no_undefined_flag
11042
11043# Commands used to finish a libtool library installation in a directory.
11044finish_cmds=$lt_finish_cmds
11045
11046# Same as above, but a single script fragment to be evaled but not shown.
11047finish_eval=$lt_finish_eval
11048
11049# Take the output of nm and produce a listing of raw symbols and C names.
11050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11051
11052# Transform the output of nm in a proper C declaration
11053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11054
11055# Transform the output of nm in a C name address pair
11056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11057
11058# This is the shared library runtime path variable.
11059runpath_var=$runpath_var
11060
11061# This is the shared library path variable.
11062shlibpath_var=$shlibpath_var
11063
11064# Is shlibpath searched before the hard-coded library search path?
11065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11066
11067# How to hardcode a shared library path into an executable.
11068hardcode_action=$hardcode_action
11069
11070# Whether we should hardcode library paths into libraries.
11071hardcode_into_libs=$hardcode_into_libs
11072
11073# Flag to hardcode \$libdir into a binary during linking.
11074# This must work even if \$libdir does not exist.
11075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11076
11077# If ld is used when linking, flag to hardcode \$libdir into
11078# a binary during linking. This must work even if \$libdir does
11079# not exist.
11080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11081
11082# Whether we need a single -rpath flag with a separated argument.
11083hardcode_libdir_separator=$lt_hardcode_libdir_separator
11084
11085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11086# resulting binary.
11087hardcode_direct=$hardcode_direct
11088
11089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11090# resulting binary.
11091hardcode_minus_L=$hardcode_minus_L
11092
11093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11094# the resulting binary.
11095hardcode_shlibpath_var=$hardcode_shlibpath_var
11096
11097# Set to yes if building a shared library automatically hardcodes DIR into the library
11098# and all subsequent libraries and executables linked against it.
11099hardcode_automatic=$hardcode_automatic
11100
11101# Variables whose values should be saved in libtool wrapper scripts and
11102# restored at relink time.
11103variables_saved_for_relink="$variables_saved_for_relink"
11104
11105# Whether libtool must link a program against all its dependency libraries.
11106link_all_deplibs=$link_all_deplibs
11107
11108# Compile-time system search path for libraries
11109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11110
11111# Run-time system search path for libraries
11112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11113
11114# Fix the shell variable \$srcfile for the compiler.
11115fix_srcfile_path=$lt_fix_srcfile_path
11116
11117# Set to yes if exported symbols are required.
11118always_export_symbols=$always_export_symbols
11119
11120# The commands to list exported symbols.
11121export_symbols_cmds=$lt_export_symbols_cmds
11122
11123# The commands to extract the exported symbol list from a shared archive.
11124extract_expsyms_cmds=$lt_extract_expsyms_cmds
11125
11126# Symbols that should not be listed in the preloaded symbols.
11127exclude_expsyms=$lt_exclude_expsyms
11128
11129# Symbols that must always be exported.
11130include_expsyms=$lt_include_expsyms
11131
11132# ### END LIBTOOL CONFIG
11133
11134__EOF__
11135
11136
11137  case $host_os in
11138  aix3*)
11139    cat <<\EOF >> "$cfgfile"
11140
11141# AIX sometimes has problems with the GCC collect2 program.  For some
11142# reason, if we set the COLLECT_NAMES environment variable, the problems
11143# vanish in a puff of smoke.
11144if test "X${COLLECT_NAMES+set}" != Xset; then
11145  COLLECT_NAMES=
11146  export COLLECT_NAMES
11147fi
11148EOF
11149    ;;
11150  esac
11151
11152  # We use sed instead of cat because bash on DJGPP gets confused if
11153  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11154  # text mode, it properly converts lines to CR/LF.  This bash problem
11155  # is reportedly fixed, but why not run on old versions too?
11156  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11157
11158  mv -f "$cfgfile" "$ofile" || \
11159    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11160  chmod +x "$ofile"
11161
11162else
11163  # If there is no Makefile yet, we rely on a make rule to execute
11164  # `config.status --recheck' to rerun these tests and create the
11165  # libtool script then.
11166  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11167  if test -f "$ltmain_in"; then
11168    test -f Makefile && make "$ltmain"
11169  fi
11170fi
11171
11172
11173ac_ext=c
11174ac_cpp='$CPP $CPPFLAGS'
11175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11177ac_compiler_gnu=$ac_cv_c_compiler_gnu
11178
11179CC="$lt_save_CC"
11180
11181
11182# Check whether --with-tags was given.
11183if test "${with_tags+set}" = set; then
11184  withval=$with_tags; tagnames="$withval"
11185fi
11186
11187
11188if test -f "$ltmain" && test -n "$tagnames"; then
11189  if test ! -f "${ofile}"; then
11190    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11191$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11192  fi
11193
11194  if test -z "$LTCC"; then
11195    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11196    if test -z "$LTCC"; then
11197      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11198$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11199    else
11200      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11201$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11202    fi
11203  fi
11204  if test -z "$LTCFLAGS"; then
11205    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11206  fi
11207
11208  # Extract list of available tagged configurations in $ofile.
11209  # Note that this assumes the entire list is on one line.
11210  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11211
11212  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11213  for tagname in $tagnames; do
11214    IFS="$lt_save_ifs"
11215    # Check whether tagname contains only valid characters
11216    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11217    "") ;;
11218    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11219$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11220   { (exit 1); exit 1; }; }
11221	;;
11222    esac
11223
11224    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11225    then
11226      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11227$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11228   { (exit 1); exit 1; }; }
11229    fi
11230
11231    # Update the list of available tags.
11232    if test -n "$tagname"; then
11233      echo appending configuration tag \"$tagname\" to $ofile
11234
11235      case $tagname in
11236      CXX)
11237	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11238	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11239	    (test "X$CXX" != "Xg++"))) ; then
11240	  ac_ext=cpp
11241ac_cpp='$CXXCPP $CPPFLAGS'
11242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11245
11246
11247
11248
11249archive_cmds_need_lc_CXX=no
11250allow_undefined_flag_CXX=
11251always_export_symbols_CXX=no
11252archive_expsym_cmds_CXX=
11253export_dynamic_flag_spec_CXX=
11254hardcode_direct_CXX=no
11255hardcode_libdir_flag_spec_CXX=
11256hardcode_libdir_flag_spec_ld_CXX=
11257hardcode_libdir_separator_CXX=
11258hardcode_minus_L_CXX=no
11259hardcode_shlibpath_var_CXX=unsupported
11260hardcode_automatic_CXX=no
11261module_cmds_CXX=
11262module_expsym_cmds_CXX=
11263link_all_deplibs_CXX=unknown
11264old_archive_cmds_CXX=$old_archive_cmds
11265no_undefined_flag_CXX=
11266whole_archive_flag_spec_CXX=
11267enable_shared_with_static_runtimes_CXX=no
11268
11269# Dependencies to place before and after the object being linked:
11270predep_objects_CXX=
11271postdep_objects_CXX=
11272predeps_CXX=
11273postdeps_CXX=
11274compiler_lib_search_path_CXX=
11275compiler_lib_search_dirs_CXX=
11276
11277# Source file extension for C++ test sources.
11278ac_ext=cpp
11279
11280# Object file extension for compiled C++ test sources.
11281objext=o
11282objext_CXX=$objext
11283
11284# Code to be used in simple compile tests
11285lt_simple_compile_test_code="int some_variable = 0;"
11286
11287# Code to be used in simple link tests
11288lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11289
11290# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11291
11292# If no C compiler was specified, use CC.
11293LTCC=${LTCC-"$CC"}
11294
11295# If no C compiler flags were specified, use CFLAGS.
11296LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11297
11298# Allow CC to be a program name with arguments.
11299compiler=$CC
11300
11301
11302# save warnings/boilerplate of simple test code
11303ac_outfile=conftest.$ac_objext
11304echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11306_lt_compiler_boilerplate=`cat conftest.err`
11307$rm conftest*
11308
11309ac_outfile=conftest.$ac_objext
11310echo "$lt_simple_link_test_code" >conftest.$ac_ext
11311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11312_lt_linker_boilerplate=`cat conftest.err`
11313$rm -r conftest*
11314
11315
11316# Allow CC to be a program name with arguments.
11317lt_save_CC=$CC
11318lt_save_LD=$LD
11319lt_save_GCC=$GCC
11320GCC=$GXX
11321lt_save_with_gnu_ld=$with_gnu_ld
11322lt_save_path_LD=$lt_cv_path_LD
11323if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11324  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11325else
11326  $as_unset lt_cv_prog_gnu_ld
11327fi
11328if test -n "${lt_cv_path_LDCXX+set}"; then
11329  lt_cv_path_LD=$lt_cv_path_LDCXX
11330else
11331  $as_unset lt_cv_path_LD
11332fi
11333test -z "${LDCXX+set}" || LD=$LDCXX
11334CC=${CXX-"c++"}
11335compiler=$CC
11336compiler_CXX=$CC
11337for cc_temp in $compiler""; do
11338  case $cc_temp in
11339    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11340    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11341    \-*) ;;
11342    *) break;;
11343  esac
11344done
11345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11346
11347
11348# We don't want -fno-exception wen compiling C++ code, so set the
11349# no_builtin_flag separately
11350if test "$GXX" = yes; then
11351  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11352else
11353  lt_prog_compiler_no_builtin_flag_CXX=
11354fi
11355
11356if test "$GXX" = yes; then
11357  # Set up default GNU C++ configuration
11358
11359
11360# Check whether --with-gnu-ld was given.
11361if test "${with_gnu_ld+set}" = set; then
11362  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11363else
11364  with_gnu_ld=no
11365fi
11366
11367ac_prog=ld
11368if test "$GCC" = yes; then
11369  # Check if gcc -print-prog-name=ld gives a path.
11370  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11371$as_echo_n "checking for ld used by $CC... " >&6; }
11372  case $host in
11373  *-*-mingw*)
11374    # gcc leaves a trailing carriage return which upsets mingw
11375    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11376  *)
11377    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11378  esac
11379  case $ac_prog in
11380    # Accept absolute paths.
11381    [\\/]* | ?:[\\/]*)
11382      re_direlt='/[^/][^/]*/\.\./'
11383      # Canonicalize the pathname of ld
11384      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11385      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11386	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11387      done
11388      test -z "$LD" && LD="$ac_prog"
11389      ;;
11390  "")
11391    # If it fails, then pretend we aren't using GCC.
11392    ac_prog=ld
11393    ;;
11394  *)
11395    # If it is relative, then search for the first ld in PATH.
11396    with_gnu_ld=unknown
11397    ;;
11398  esac
11399elif test "$with_gnu_ld" = yes; then
11400  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11401$as_echo_n "checking for GNU ld... " >&6; }
11402else
11403  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11404$as_echo_n "checking for non-GNU ld... " >&6; }
11405fi
11406if test "${lt_cv_path_LD+set}" = set; then
11407  $as_echo_n "(cached) " >&6
11408else
11409  if test -z "$LD"; then
11410  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11411  for ac_dir in $PATH; do
11412    IFS="$lt_save_ifs"
11413    test -z "$ac_dir" && ac_dir=.
11414    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11415      lt_cv_path_LD="$ac_dir/$ac_prog"
11416      # Check to see if the program is GNU ld.  I'd rather use --version,
11417      # but apparently some variants of GNU ld only accept -v.
11418      # Break only if it was the GNU/non-GNU ld that we prefer.
11419      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11420      *GNU* | *'with BFD'*)
11421	test "$with_gnu_ld" != no && break
11422	;;
11423      *)
11424	test "$with_gnu_ld" != yes && break
11425	;;
11426      esac
11427    fi
11428  done
11429  IFS="$lt_save_ifs"
11430else
11431  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11432fi
11433fi
11434
11435LD="$lt_cv_path_LD"
11436if test -n "$LD"; then
11437  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11438$as_echo "$LD" >&6; }
11439else
11440  { $as_echo "$as_me:$LINENO: result: no" >&5
11441$as_echo "no" >&6; }
11442fi
11443test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11444$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11445   { (exit 1); exit 1; }; }
11446{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11447$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11448if test "${lt_cv_prog_gnu_ld+set}" = set; then
11449  $as_echo_n "(cached) " >&6
11450else
11451  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11452case `$LD -v 2>&1 </dev/null` in
11453*GNU* | *'with BFD'*)
11454  lt_cv_prog_gnu_ld=yes
11455  ;;
11456*)
11457  lt_cv_prog_gnu_ld=no
11458  ;;
11459esac
11460fi
11461{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11462$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11463with_gnu_ld=$lt_cv_prog_gnu_ld
11464
11465
11466
11467  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11468  # archiving commands below assume that GNU ld is being used.
11469  if test "$with_gnu_ld" = yes; then
11470    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11471    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'
11472
11473    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11474    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11475
11476    # If archive_cmds runs LD, not CC, wlarc should be empty
11477    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11478    #     investigate it a little bit more. (MM)
11479    wlarc='${wl}'
11480
11481    # ancient GNU ld didn't support --whole-archive et. al.
11482    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11483	grep 'no-whole-archive' > /dev/null; then
11484      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11485    else
11486      whole_archive_flag_spec_CXX=
11487    fi
11488  else
11489    with_gnu_ld=no
11490    wlarc=
11491
11492    # A generic and very simple default shared library creation
11493    # command for GNU C++ for the case where it uses the native
11494    # linker, instead of GNU ld.  If possible, this setting should
11495    # overridden to take advantage of the native linker features on
11496    # the platform it is being used on.
11497    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11498  fi
11499
11500  # Commands to make compiler produce verbose output that lists
11501  # what "hidden" libraries, object files and flags are used when
11502  # linking a shared library.
11503  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11504
11505else
11506  GXX=no
11507  with_gnu_ld=no
11508  wlarc=
11509fi
11510
11511# PORTME: fill in a description of your system's C++ link characteristics
11512{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11513$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11514ld_shlibs_CXX=yes
11515case $host_os in
11516  aix3*)
11517    # FIXME: insert proper C++ library support
11518    ld_shlibs_CXX=no
11519    ;;
11520  aix[4-9]*)
11521    if test "$host_cpu" = ia64; then
11522      # On IA64, the linker does run time linking by default, so we don't
11523      # have to do anything special.
11524      aix_use_runtimelinking=no
11525      exp_sym_flag='-Bexport'
11526      no_entry_flag=""
11527    else
11528      aix_use_runtimelinking=no
11529
11530      # Test if we are trying to use run time linking or normal
11531      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11532      # need to do runtime linking.
11533      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11534	for ld_flag in $LDFLAGS; do
11535	  case $ld_flag in
11536	  *-brtl*)
11537	    aix_use_runtimelinking=yes
11538	    break
11539	    ;;
11540	  esac
11541	done
11542	;;
11543      esac
11544
11545      exp_sym_flag='-bexport'
11546      no_entry_flag='-bnoentry'
11547    fi
11548
11549    # When large executables or shared objects are built, AIX ld can
11550    # have problems creating the table of contents.  If linking a library
11551    # or program results in "error TOC overflow" add -mminimal-toc to
11552    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11553    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11554
11555    archive_cmds_CXX=''
11556    hardcode_direct_CXX=yes
11557    hardcode_libdir_separator_CXX=':'
11558    link_all_deplibs_CXX=yes
11559
11560    if test "$GXX" = yes; then
11561      case $host_os in aix4.[012]|aix4.[012].*)
11562      # We only want to do this on AIX 4.2 and lower, the check
11563      # below for broken collect2 doesn't work under 4.3+
11564	collect2name=`${CC} -print-prog-name=collect2`
11565	if test -f "$collect2name" && \
11566	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11567	then
11568	  # We have reworked collect2
11569	  :
11570	else
11571	  # We have old collect2
11572	  hardcode_direct_CXX=unsupported
11573	  # It fails to find uninstalled libraries when the uninstalled
11574	  # path is not listed in the libpath.  Setting hardcode_minus_L
11575	  # to unsupported forces relinking
11576	  hardcode_minus_L_CXX=yes
11577	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11578	  hardcode_libdir_separator_CXX=
11579	fi
11580	;;
11581      esac
11582      shared_flag='-shared'
11583      if test "$aix_use_runtimelinking" = yes; then
11584	shared_flag="$shared_flag "'${wl}-G'
11585      fi
11586    else
11587      # not using gcc
11588      if test "$host_cpu" = ia64; then
11589	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11590	# chokes on -Wl,-G. The following line is correct:
11591	shared_flag='-G'
11592      else
11593	if test "$aix_use_runtimelinking" = yes; then
11594	  shared_flag='${wl}-G'
11595	else
11596	  shared_flag='${wl}-bM:SRE'
11597	fi
11598      fi
11599    fi
11600
11601    # It seems that -bexpall does not export symbols beginning with
11602    # underscore (_), so it is better to generate a list of symbols to export.
11603    always_export_symbols_CXX=yes
11604    if test "$aix_use_runtimelinking" = yes; then
11605      # Warning - without using the other runtime loading flags (-brtl),
11606      # -berok will link without error, but may produce a broken library.
11607      allow_undefined_flag_CXX='-berok'
11608      # Determine the default libpath from the value encoded in an empty executable.
11609      cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h.  */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h.  */
11615
11616int
11617main ()
11618{
11619
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631$as_echo "$ac_try_echo") >&5
11632  (eval "$ac_link") 2>conftest.er1
11633  ac_status=$?
11634  grep -v '^ *+' conftest.er1 >conftest.err
11635  rm -f conftest.er1
11636  cat conftest.err >&5
11637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638  (exit $ac_status); } && {
11639	 test -z "$ac_cxx_werror_flag" ||
11640	 test ! -s conftest.err
11641       } && test -s conftest$ac_exeext && {
11642	 test "$cross_compiling" = yes ||
11643	 $as_test_x conftest$ac_exeext
11644       }; then
11645
11646lt_aix_libpath_sed='
11647    /Import File Strings/,/^$/ {
11648	/^0/ {
11649	    s/^0  *\(.*\)$/\1/
11650	    p
11651	}
11652    }'
11653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11654# Check for a 64-bit object if we didn't find anything.
11655if test -z "$aix_libpath"; then
11656  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11657fi
11658else
11659  $as_echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662
11663fi
11664
11665rm -rf conftest.dSYM
11666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667      conftest$ac_exeext conftest.$ac_ext
11668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11669
11670      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11671
11672      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"
11673     else
11674      if test "$host_cpu" = ia64; then
11675	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11676	allow_undefined_flag_CXX="-z nodefs"
11677	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"
11678      else
11679	# Determine the default libpath from the value encoded in an empty executable.
11680	cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h.  */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h.  */
11686
11687int
11688main ()
11689{
11690
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695rm -f conftest.$ac_objext conftest$ac_exeext
11696if { (ac_try="$ac_link"
11697case "(($ac_try" in
11698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699  *) ac_try_echo=$ac_try;;
11700esac
11701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702$as_echo "$ac_try_echo") >&5
11703  (eval "$ac_link") 2>conftest.er1
11704  ac_status=$?
11705  grep -v '^ *+' conftest.er1 >conftest.err
11706  rm -f conftest.er1
11707  cat conftest.err >&5
11708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709  (exit $ac_status); } && {
11710	 test -z "$ac_cxx_werror_flag" ||
11711	 test ! -s conftest.err
11712       } && test -s conftest$ac_exeext && {
11713	 test "$cross_compiling" = yes ||
11714	 $as_test_x conftest$ac_exeext
11715       }; then
11716
11717lt_aix_libpath_sed='
11718    /Import File Strings/,/^$/ {
11719	/^0/ {
11720	    s/^0  *\(.*\)$/\1/
11721	    p
11722	}
11723    }'
11724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725# Check for a 64-bit object if we didn't find anything.
11726if test -z "$aix_libpath"; then
11727  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11728fi
11729else
11730  $as_echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733
11734fi
11735
11736rm -rf conftest.dSYM
11737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11738      conftest$ac_exeext conftest.$ac_ext
11739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11740
11741	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11742	# Warning - without using the other run time loading flags,
11743	# -berok will link without error, but may produce a broken library.
11744	no_undefined_flag_CXX=' ${wl}-bernotok'
11745	allow_undefined_flag_CXX=' ${wl}-berok'
11746	# Exported symbols can be pulled into shared objects from archives
11747	whole_archive_flag_spec_CXX='$convenience'
11748	archive_cmds_need_lc_CXX=yes
11749	# This is similar to how AIX traditionally builds its shared libraries.
11750	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'
11751      fi
11752    fi
11753    ;;
11754
11755  beos*)
11756    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11757      allow_undefined_flag_CXX=unsupported
11758      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11759      # support --undefined.  This deserves some investigation.  FIXME
11760      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11761    else
11762      ld_shlibs_CXX=no
11763    fi
11764    ;;
11765
11766  chorus*)
11767    case $cc_basename in
11768      *)
11769	# FIXME: insert proper C++ library support
11770	ld_shlibs_CXX=no
11771	;;
11772    esac
11773    ;;
11774
11775  cygwin* | mingw* | pw32*)
11776    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11777    # as there is no search path for DLLs.
11778    hardcode_libdir_flag_spec_CXX='-L$libdir'
11779    allow_undefined_flag_CXX=unsupported
11780    always_export_symbols_CXX=no
11781    enable_shared_with_static_runtimes_CXX=yes
11782
11783    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11784      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'
11785      # If the export-symbols file already is a .def file (1st line
11786      # is EXPORTS), use it as is; otherwise, prepend...
11787      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11788	cp $export_symbols $output_objdir/$soname.def;
11789      else
11790	echo EXPORTS > $output_objdir/$soname.def;
11791	cat $export_symbols >> $output_objdir/$soname.def;
11792      fi~
11793      $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'
11794    else
11795      ld_shlibs_CXX=no
11796    fi
11797  ;;
11798      darwin* | rhapsody*)
11799      archive_cmds_need_lc_CXX=no
11800      hardcode_direct_CXX=no
11801      hardcode_automatic_CXX=yes
11802      hardcode_shlibpath_var_CXX=unsupported
11803      whole_archive_flag_spec_CXX=''
11804      link_all_deplibs_CXX=yes
11805      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11806      if test "$GXX" = yes ; then
11807      output_verbose_link_cmd='echo'
11808      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}"
11809      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11810      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}"
11811      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}"
11812      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11813        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}"
11814        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}"
11815      fi
11816      else
11817      case $cc_basename in
11818        xlc*)
11819         output_verbose_link_cmd='echo'
11820          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'
11821          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11822          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11823          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}'
11824          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}'
11825          ;;
11826       *)
11827         ld_shlibs_CXX=no
11828          ;;
11829      esac
11830      fi
11831        ;;
11832
11833  dgux*)
11834    case $cc_basename in
11835      ec++*)
11836	# FIXME: insert proper C++ library support
11837	ld_shlibs_CXX=no
11838	;;
11839      ghcx*)
11840	# Green Hills C++ Compiler
11841	# FIXME: insert proper C++ library support
11842	ld_shlibs_CXX=no
11843	;;
11844      *)
11845	# FIXME: insert proper C++ library support
11846	ld_shlibs_CXX=no
11847	;;
11848    esac
11849    ;;
11850  freebsd[12]*)
11851    # C++ shared libraries reported to be fairly broken before switch to ELF
11852    ld_shlibs_CXX=no
11853    ;;
11854  freebsd-elf*)
11855    archive_cmds_need_lc_CXX=no
11856    ;;
11857  freebsd* | dragonfly*)
11858    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11859    # conventions
11860    ld_shlibs_CXX=yes
11861    ;;
11862  gnu*)
11863    ;;
11864  hpux9*)
11865    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11866    hardcode_libdir_separator_CXX=:
11867    export_dynamic_flag_spec_CXX='${wl}-E'
11868    hardcode_direct_CXX=yes
11869    hardcode_minus_L_CXX=yes # Not in the search PATH,
11870				# but as the default
11871				# location of the library.
11872
11873    case $cc_basename in
11874    CC*)
11875      # FIXME: insert proper C++ library support
11876      ld_shlibs_CXX=no
11877      ;;
11878    aCC*)
11879      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'
11880      # Commands to make compiler produce verbose output that lists
11881      # what "hidden" libraries, object files and flags are used when
11882      # linking a shared library.
11883      #
11884      # There doesn't appear to be a way to prevent this compiler from
11885      # explicitly linking system object files so we need to strip them
11886      # from the output so that they don't get included in the library
11887      # dependencies.
11888      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'
11889      ;;
11890    *)
11891      if test "$GXX" = yes; then
11892        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'
11893      else
11894        # FIXME: insert proper C++ library support
11895        ld_shlibs_CXX=no
11896      fi
11897      ;;
11898    esac
11899    ;;
11900  hpux10*|hpux11*)
11901    if test $with_gnu_ld = no; then
11902      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11903      hardcode_libdir_separator_CXX=:
11904
11905      case $host_cpu in
11906      hppa*64*|ia64*) ;;
11907      *)
11908	export_dynamic_flag_spec_CXX='${wl}-E'
11909        ;;
11910      esac
11911    fi
11912    case $host_cpu in
11913    hppa*64*|ia64*)
11914      hardcode_direct_CXX=no
11915      hardcode_shlibpath_var_CXX=no
11916      ;;
11917    *)
11918      hardcode_direct_CXX=yes
11919      hardcode_minus_L_CXX=yes # Not in the search PATH,
11920					      # but as the default
11921					      # location of the library.
11922      ;;
11923    esac
11924
11925    case $cc_basename in
11926      CC*)
11927	# FIXME: insert proper C++ library support
11928	ld_shlibs_CXX=no
11929	;;
11930      aCC*)
11931	case $host_cpu in
11932	hppa*64*)
11933	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11934	  ;;
11935	ia64*)
11936	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937	  ;;
11938	*)
11939	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940	  ;;
11941	esac
11942	# Commands to make compiler produce verbose output that lists
11943	# what "hidden" libraries, object files and flags are used when
11944	# linking a shared library.
11945	#
11946	# There doesn't appear to be a way to prevent this compiler from
11947	# explicitly linking system object files so we need to strip them
11948	# from the output so that they don't get included in the library
11949	# dependencies.
11950	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'
11951	;;
11952      *)
11953	if test "$GXX" = yes; then
11954	  if test $with_gnu_ld = no; then
11955	    case $host_cpu in
11956	    hppa*64*)
11957	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958	      ;;
11959	    ia64*)
11960	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961	      ;;
11962	    *)
11963	      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'
11964	      ;;
11965	    esac
11966	  fi
11967	else
11968	  # FIXME: insert proper C++ library support
11969	  ld_shlibs_CXX=no
11970	fi
11971	;;
11972    esac
11973    ;;
11974  interix[3-9]*)
11975    hardcode_direct_CXX=no
11976    hardcode_shlibpath_var_CXX=no
11977    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11978    export_dynamic_flag_spec_CXX='${wl}-E'
11979    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11980    # Instead, shared libraries are loaded at an image base (0x10000000 by
11981    # default) and relocated if they conflict, which is a slow very memory
11982    # consuming and fragmenting process.  To avoid this, we pick a random,
11983    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11984    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11985    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'
11986    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'
11987    ;;
11988  irix5* | irix6*)
11989    case $cc_basename in
11990      CC*)
11991	# SGI C++
11992	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'
11993
11994	# Archives containing C++ object files must be created using
11995	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11996	# necessary to make sure instantiated templates are included
11997	# in the archive.
11998	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11999	;;
12000      *)
12001	if test "$GXX" = yes; then
12002	  if test "$with_gnu_ld" = no; then
12003	    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'
12004	  else
12005	    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'
12006	  fi
12007	fi
12008	link_all_deplibs_CXX=yes
12009	;;
12010    esac
12011    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12012    hardcode_libdir_separator_CXX=:
12013    ;;
12014  linux* | k*bsd*-gnu)
12015    case $cc_basename in
12016      KCC*)
12017	# Kuck and Associates, Inc. (KAI) C++ Compiler
12018
12019	# KCC will only create a shared library if the output file
12020	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12021	# to its proper name (with version) after linking.
12022	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'
12023	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'
12024	# Commands to make compiler produce verbose output that lists
12025	# what "hidden" libraries, object files and flags are used when
12026	# linking a shared library.
12027	#
12028	# There doesn't appear to be a way to prevent this compiler from
12029	# explicitly linking system object files so we need to strip them
12030	# from the output so that they don't get included in the library
12031	# dependencies.
12032	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'
12033
12034	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12035	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12036
12037	# Archives containing C++ object files must be created using
12038	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12039	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12040	;;
12041      icpc*)
12042	# Intel C++
12043	with_gnu_ld=yes
12044	# version 8.0 and above of icpc choke on multiply defined symbols
12045	# if we add $predep_objects and $postdep_objects, however 7.1 and
12046	# earlier do not add the objects themselves.
12047	case `$CC -V 2>&1` in
12048	*"Version 7."*)
12049  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050  	  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'
12051	  ;;
12052	*)  # Version 8.0 or newer
12053	  tmp_idyn=
12054	  case $host_cpu in
12055	    ia64*) tmp_idyn=' -i_dynamic';;
12056	  esac
12057  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12058	  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'
12059	  ;;
12060	esac
12061	archive_cmds_need_lc_CXX=no
12062	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12063	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12064	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12065	;;
12066      pgCC* | pgcpp*)
12067        # Portland Group C++ compiler
12068	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12069  	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'
12070
12071	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12072	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12073	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'
12074        ;;
12075      cxx*)
12076	# Compaq C++
12077	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12078	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'
12079
12080	runpath_var=LD_RUN_PATH
12081	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12082	hardcode_libdir_separator_CXX=:
12083
12084	# Commands to make compiler produce verbose output that lists
12085	# what "hidden" libraries, object files and flags are used when
12086	# linking a shared library.
12087	#
12088	# There doesn't appear to be a way to prevent this compiler from
12089	# explicitly linking system object files so we need to strip them
12090	# from the output so that they don't get included in the library
12091	# dependencies.
12092	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'
12093	;;
12094      *)
12095	case `$CC -V 2>&1 | sed 5q` in
12096	*Sun\ C*)
12097	  # Sun C++ 5.9
12098	  no_undefined_flag_CXX=' -zdefs'
12099	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100	  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'
12101	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12102	  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'
12103
12104	  # Not sure whether something based on
12105	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12106	  # would be better.
12107	  output_verbose_link_cmd='echo'
12108
12109	  # Archives containing C++ object files must be created using
12110	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12111	  # necessary to make sure instantiated templates are included
12112	  # in the archive.
12113	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12114	  ;;
12115	esac
12116	;;
12117    esac
12118    ;;
12119  lynxos*)
12120    # FIXME: insert proper C++ library support
12121    ld_shlibs_CXX=no
12122    ;;
12123  m88k*)
12124    # FIXME: insert proper C++ library support
12125    ld_shlibs_CXX=no
12126    ;;
12127  mvs*)
12128    case $cc_basename in
12129      cxx*)
12130	# FIXME: insert proper C++ library support
12131	ld_shlibs_CXX=no
12132	;;
12133      *)
12134	# FIXME: insert proper C++ library support
12135	ld_shlibs_CXX=no
12136	;;
12137    esac
12138    ;;
12139  netbsd*)
12140    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12141      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12142      wlarc=
12143      hardcode_libdir_flag_spec_CXX='-R$libdir'
12144      hardcode_direct_CXX=yes
12145      hardcode_shlibpath_var_CXX=no
12146    fi
12147    # Workaround some broken pre-1.5 toolchains
12148    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12149    ;;
12150  openbsd2*)
12151    # C++ shared libraries are fairly broken
12152    ld_shlibs_CXX=no
12153    ;;
12154  openbsd*)
12155    if test -f /usr/libexec/ld.so; then
12156      hardcode_direct_CXX=yes
12157      hardcode_shlibpath_var_CXX=no
12158      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12159      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12160      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12161	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12162	export_dynamic_flag_spec_CXX='${wl}-E'
12163	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12164      fi
12165      output_verbose_link_cmd='echo'
12166    else
12167      ld_shlibs_CXX=no
12168    fi
12169    ;;
12170  osf3*)
12171    case $cc_basename in
12172      KCC*)
12173	# Kuck and Associates, Inc. (KAI) C++ Compiler
12174
12175	# KCC will only create a shared library if the output file
12176	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12177	# to its proper name (with version) after linking.
12178	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'
12179
12180	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181	hardcode_libdir_separator_CXX=:
12182
12183	# Archives containing C++ object files must be created using
12184	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12185	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12186
12187	;;
12188      RCC*)
12189	# Rational C++ 2.4.1
12190	# FIXME: insert proper C++ library support
12191	ld_shlibs_CXX=no
12192	;;
12193      cxx*)
12194	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12195	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'
12196
12197	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12198	hardcode_libdir_separator_CXX=:
12199
12200	# Commands to make compiler produce verbose output that lists
12201	# what "hidden" libraries, object files and flags are used when
12202	# linking a shared library.
12203	#
12204	# There doesn't appear to be a way to prevent this compiler from
12205	# explicitly linking system object files so we need to strip them
12206	# from the output so that they don't get included in the library
12207	# dependencies.
12208	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'
12209	;;
12210      *)
12211	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12212	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12213	  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'
12214
12215	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12222
12223	else
12224	  # FIXME: insert proper C++ library support
12225	  ld_shlibs_CXX=no
12226	fi
12227	;;
12228    esac
12229    ;;
12230  osf4* | osf5*)
12231    case $cc_basename in
12232      KCC*)
12233	# Kuck and Associates, Inc. (KAI) C++ Compiler
12234
12235	# KCC will only create a shared library if the output file
12236	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12237	# to its proper name (with version) after linking.
12238	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'
12239
12240	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12241	hardcode_libdir_separator_CXX=:
12242
12243	# Archives containing C++ object files must be created using
12244	# the KAI C++ compiler.
12245	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12246	;;
12247      RCC*)
12248	# Rational C++ 2.4.1
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252      cxx*)
12253	allow_undefined_flag_CXX=' -expect_unresolved \*'
12254	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'
12255	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12256	  echo "-hidden">> $lib.exp~
12257	  $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~
12258	  $rm $lib.exp'
12259
12260	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12261	hardcode_libdir_separator_CXX=:
12262
12263	# Commands to make compiler produce verbose output that lists
12264	# what "hidden" libraries, object files and flags are used when
12265	# linking a shared library.
12266	#
12267	# There doesn't appear to be a way to prevent this compiler from
12268	# explicitly linking system object files so we need to strip them
12269	# from the output so that they don't get included in the library
12270	# dependencies.
12271	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'
12272	;;
12273      *)
12274	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12275	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12276	 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'
12277
12278	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12279	  hardcode_libdir_separator_CXX=:
12280
12281	  # Commands to make compiler produce verbose output that lists
12282	  # what "hidden" libraries, object files and flags are used when
12283	  # linking a shared library.
12284	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12285
12286	else
12287	  # FIXME: insert proper C++ library support
12288	  ld_shlibs_CXX=no
12289	fi
12290	;;
12291    esac
12292    ;;
12293  psos*)
12294    # FIXME: insert proper C++ library support
12295    ld_shlibs_CXX=no
12296    ;;
12297  sunos4*)
12298    case $cc_basename in
12299      CC*)
12300	# Sun C++ 4.x
12301	# FIXME: insert proper C++ library support
12302	ld_shlibs_CXX=no
12303	;;
12304      lcc*)
12305	# Lucid
12306	# FIXME: insert proper C++ library support
12307	ld_shlibs_CXX=no
12308	;;
12309      *)
12310	# FIXME: insert proper C++ library support
12311	ld_shlibs_CXX=no
12312	;;
12313    esac
12314    ;;
12315  solaris*)
12316    case $cc_basename in
12317      CC*)
12318	# Sun C++ 4.2, 5.x and Centerline C++
12319        archive_cmds_need_lc_CXX=yes
12320	no_undefined_flag_CXX=' -zdefs'
12321	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12322	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12323	$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'
12324
12325	hardcode_libdir_flag_spec_CXX='-R$libdir'
12326	hardcode_shlibpath_var_CXX=no
12327	case $host_os in
12328	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12329	  *)
12330	    # The compiler driver will combine and reorder linker options,
12331	    # but understands `-z linker_flag'.
12332	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12333	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12334	    ;;
12335	esac
12336	link_all_deplibs_CXX=yes
12337
12338	output_verbose_link_cmd='echo'
12339
12340	# Archives containing C++ object files must be created using
12341	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12342	# necessary to make sure instantiated templates are included
12343	# in the archive.
12344	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12345	;;
12346      gcx*)
12347	# Green Hills C++ Compiler
12348	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12349
12350	# The C++ compiler must be used to create the archive.
12351	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12352	;;
12353      *)
12354	# GNU C++ compiler with Solaris linker
12355	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12356	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12357	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12358	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12359	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12360		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12361
12362	    # Commands to make compiler produce verbose output that lists
12363	    # what "hidden" libraries, object files and flags are used when
12364	    # linking a shared library.
12365	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12366	  else
12367	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12368	    # platform.
12369	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12370	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12371		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12372
12373	    # Commands to make compiler produce verbose output that lists
12374	    # what "hidden" libraries, object files and flags are used when
12375	    # linking a shared library.
12376	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12377	  fi
12378
12379	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12380	  case $host_os in
12381	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12382	  *)
12383	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12384	    ;;
12385	  esac
12386	fi
12387	;;
12388    esac
12389    ;;
12390  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12391    no_undefined_flag_CXX='${wl}-z,text'
12392    archive_cmds_need_lc_CXX=no
12393    hardcode_shlibpath_var_CXX=no
12394    runpath_var='LD_RUN_PATH'
12395
12396    case $cc_basename in
12397      CC*)
12398	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12399	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400	;;
12401      *)
12402	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404	;;
12405    esac
12406    ;;
12407  sysv5* | sco3.2v5* | sco5v6*)
12408    # Note: We can NOT use -z defs as we might desire, because we do not
12409    # link with -lc, and that would cause any symbols used from libc to
12410    # always be unresolved, which means just about no library would
12411    # ever link correctly.  If we're not using GNU ld we use -z text
12412    # though, which does catch some bad symbols but isn't as heavy-handed
12413    # as -z defs.
12414    # For security reasons, it is highly recommended that you always
12415    # use absolute paths for naming shared libraries, and exclude the
12416    # DT_RUNPATH tag from executables and libraries.  But doing so
12417    # requires that you compile everything twice, which is a pain.
12418    # So that behaviour is only enabled if SCOABSPATH is set to a
12419    # non-empty value in the environment.  Most likely only useful for
12420    # creating official distributions of packages.
12421    # This is a hack until libtool officially supports absolute path
12422    # names for shared libraries.
12423    no_undefined_flag_CXX='${wl}-z,text'
12424    allow_undefined_flag_CXX='${wl}-z,nodefs'
12425    archive_cmds_need_lc_CXX=no
12426    hardcode_shlibpath_var_CXX=no
12427    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12428    hardcode_libdir_separator_CXX=':'
12429    link_all_deplibs_CXX=yes
12430    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12431    runpath_var='LD_RUN_PATH'
12432
12433    case $cc_basename in
12434      CC*)
12435	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12436	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437	;;
12438      *)
12439	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12440	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441	;;
12442    esac
12443    ;;
12444  tandem*)
12445    case $cc_basename in
12446      NCC*)
12447	# NonStop-UX NCC 3.20
12448	# FIXME: insert proper C++ library support
12449	ld_shlibs_CXX=no
12450	;;
12451      *)
12452	# FIXME: insert proper C++ library support
12453	ld_shlibs_CXX=no
12454	;;
12455    esac
12456    ;;
12457  vxworks*)
12458    # FIXME: insert proper C++ library support
12459    ld_shlibs_CXX=no
12460    ;;
12461  *)
12462    # FIXME: insert proper C++ library support
12463    ld_shlibs_CXX=no
12464    ;;
12465esac
12466{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12467$as_echo "$ld_shlibs_CXX" >&6; }
12468test "$ld_shlibs_CXX" = no && can_build_shared=no
12469
12470GCC_CXX="$GXX"
12471LD_CXX="$LD"
12472
12473cat > conftest.$ac_ext <<EOF
12474class Foo
12475{
12476public:
12477  Foo (void) { a = 0; }
12478private:
12479  int a;
12480};
12481EOF
12482
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484  (eval $ac_compile) 2>&5
12485  ac_status=$?
12486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487  (exit $ac_status); }; then
12488  # Parse the compiler output and extract the necessary
12489  # objects, libraries and library flags.
12490
12491  # Sentinel used to keep track of whether or not we are before
12492  # the conftest object file.
12493  pre_test_object_deps_done=no
12494
12495  # The `*' in the case matches for architectures that use `case' in
12496  # $output_verbose_cmd can trigger glob expansion during the loop
12497  # eval without this substitution.
12498  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12499
12500  for p in `eval $output_verbose_link_cmd`; do
12501    case $p in
12502
12503    -L* | -R* | -l*)
12504       # Some compilers place space between "-{L,R}" and the path.
12505       # Remove the space.
12506       if test $p = "-L" \
12507	  || test $p = "-R"; then
12508	 prev=$p
12509	 continue
12510       else
12511	 prev=
12512       fi
12513
12514       if test "$pre_test_object_deps_done" = no; then
12515	 case $p in
12516	 -L* | -R*)
12517	   # Internal compiler library paths should come after those
12518	   # provided the user.  The postdeps already come after the
12519	   # user supplied libs so there is no need to process them.
12520	   if test -z "$compiler_lib_search_path_CXX"; then
12521	     compiler_lib_search_path_CXX="${prev}${p}"
12522	   else
12523	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12524	   fi
12525	   ;;
12526	 # The "-l" case would never come before the object being
12527	 # linked, so don't bother handling this case.
12528	 esac
12529       else
12530	 if test -z "$postdeps_CXX"; then
12531	   postdeps_CXX="${prev}${p}"
12532	 else
12533	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12534	 fi
12535       fi
12536       ;;
12537
12538    *.$objext)
12539       # This assumes that the test object file only shows up
12540       # once in the compiler output.
12541       if test "$p" = "conftest.$objext"; then
12542	 pre_test_object_deps_done=yes
12543	 continue
12544       fi
12545
12546       if test "$pre_test_object_deps_done" = no; then
12547	 if test -z "$predep_objects_CXX"; then
12548	   predep_objects_CXX="$p"
12549	 else
12550	   predep_objects_CXX="$predep_objects_CXX $p"
12551	 fi
12552       else
12553	 if test -z "$postdep_objects_CXX"; then
12554	   postdep_objects_CXX="$p"
12555	 else
12556	   postdep_objects_CXX="$postdep_objects_CXX $p"
12557	 fi
12558       fi
12559       ;;
12560
12561    *) ;; # Ignore the rest.
12562
12563    esac
12564  done
12565
12566  # Clean up.
12567  rm -f a.out a.exe
12568else
12569  echo "libtool.m4: error: problem compiling CXX test program"
12570fi
12571
12572$rm -f confest.$objext
12573
12574compiler_lib_search_dirs_CXX=
12575if test -n "$compiler_lib_search_path_CXX"; then
12576  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12577fi
12578
12579# PORTME: override above test on systems where it is broken
12580case $host_os in
12581interix[3-9]*)
12582  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12583  # hack all around it, let's just trust "g++" to DTRT.
12584  predep_objects_CXX=
12585  postdep_objects_CXX=
12586  postdeps_CXX=
12587  ;;
12588
12589linux*)
12590  case `$CC -V 2>&1 | sed 5q` in
12591  *Sun\ C*)
12592    # Sun C++ 5.9
12593    #
12594    # The more standards-conforming stlport4 library is
12595    # incompatible with the Cstd library. Avoid specifying
12596    # it if it's in CXXFLAGS. Ignore libCrun as
12597    # -library=stlport4 depends on it.
12598    case " $CXX $CXXFLAGS " in
12599    *" -library=stlport4 "*)
12600      solaris_use_stlport4=yes
12601      ;;
12602    esac
12603    if test "$solaris_use_stlport4" != yes; then
12604      postdeps_CXX='-library=Cstd -library=Crun'
12605    fi
12606    ;;
12607  esac
12608  ;;
12609
12610solaris*)
12611  case $cc_basename in
12612  CC*)
12613    # The more standards-conforming stlport4 library is
12614    # incompatible with the Cstd library. Avoid specifying
12615    # it if it's in CXXFLAGS. Ignore libCrun as
12616    # -library=stlport4 depends on it.
12617    case " $CXX $CXXFLAGS " in
12618    *" -library=stlport4 "*)
12619      solaris_use_stlport4=yes
12620      ;;
12621    esac
12622
12623    # Adding this requires a known-good setup of shared libraries for
12624    # Sun compiler versions before 5.6, else PIC objects from an old
12625    # archive will be linked into the output, leading to subtle bugs.
12626    if test "$solaris_use_stlport4" != yes; then
12627      postdeps_CXX='-library=Cstd -library=Crun'
12628    fi
12629    ;;
12630  esac
12631  ;;
12632esac
12633
12634case " $postdeps_CXX " in
12635*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12636esac
12637
12638lt_prog_compiler_wl_CXX=
12639lt_prog_compiler_pic_CXX=
12640lt_prog_compiler_static_CXX=
12641
12642{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12643$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12644
12645  # C++ specific cases for pic, static, wl, etc.
12646  if test "$GXX" = yes; then
12647    lt_prog_compiler_wl_CXX='-Wl,'
12648    lt_prog_compiler_static_CXX='-static'
12649
12650    case $host_os in
12651    aix*)
12652      # All AIX code is PIC.
12653      if test "$host_cpu" = ia64; then
12654	# AIX 5 now supports IA64 processor
12655	lt_prog_compiler_static_CXX='-Bstatic'
12656      fi
12657      ;;
12658    amigaos*)
12659      # FIXME: we need at least 68020 code to build shared libraries, but
12660      # adding the `-m68020' flag to GCC prevents building anything better,
12661      # like `-m68040'.
12662      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12663      ;;
12664    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12665      # PIC is the default for these OSes.
12666      ;;
12667    mingw* | cygwin* | os2* | pw32*)
12668      # This hack is so that the source file can tell whether it is being
12669      # built for inclusion in a dll (and should export symbols for example).
12670      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12671      # (--disable-auto-import) libraries
12672      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12673      ;;
12674    darwin* | rhapsody*)
12675      # PIC is the default on this platform
12676      # Common symbols not allowed in MH_DYLIB files
12677      lt_prog_compiler_pic_CXX='-fno-common'
12678      ;;
12679    *djgpp*)
12680      # DJGPP does not support shared libraries at all
12681      lt_prog_compiler_pic_CXX=
12682      ;;
12683    interix[3-9]*)
12684      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12685      # Instead, we relocate shared libraries at runtime.
12686      ;;
12687    sysv4*MP*)
12688      if test -d /usr/nec; then
12689	lt_prog_compiler_pic_CXX=-Kconform_pic
12690      fi
12691      ;;
12692    hpux*)
12693      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12694      # not for PA HP-UX.
12695      case $host_cpu in
12696      hppa*64*|ia64*)
12697	;;
12698      *)
12699	lt_prog_compiler_pic_CXX='-fPIC'
12700	;;
12701      esac
12702      ;;
12703    *)
12704      lt_prog_compiler_pic_CXX='-fPIC'
12705      ;;
12706    esac
12707  else
12708    case $host_os in
12709      aix[4-9]*)
12710	# All AIX code is PIC.
12711	if test "$host_cpu" = ia64; then
12712	  # AIX 5 now supports IA64 processor
12713	  lt_prog_compiler_static_CXX='-Bstatic'
12714	else
12715	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12716	fi
12717	;;
12718      chorus*)
12719	case $cc_basename in
12720	cxch68*)
12721	  # Green Hills C++ Compiler
12722	  # _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"
12723	  ;;
12724	esac
12725	;;
12726       darwin*)
12727         # PIC is the default on this platform
12728         # Common symbols not allowed in MH_DYLIB files
12729         case $cc_basename in
12730           xlc*)
12731           lt_prog_compiler_pic_CXX='-qnocommon'
12732           lt_prog_compiler_wl_CXX='-Wl,'
12733           ;;
12734         esac
12735       ;;
12736      dgux*)
12737	case $cc_basename in
12738	  ec++*)
12739	    lt_prog_compiler_pic_CXX='-KPIC'
12740	    ;;
12741	  ghcx*)
12742	    # Green Hills C++ Compiler
12743	    lt_prog_compiler_pic_CXX='-pic'
12744	    ;;
12745	  *)
12746	    ;;
12747	esac
12748	;;
12749      freebsd* | dragonfly*)
12750	# FreeBSD uses GNU C++
12751	;;
12752      hpux9* | hpux10* | hpux11*)
12753	case $cc_basename in
12754	  CC*)
12755	    lt_prog_compiler_wl_CXX='-Wl,'
12756	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12757	    if test "$host_cpu" != ia64; then
12758	      lt_prog_compiler_pic_CXX='+Z'
12759	    fi
12760	    ;;
12761	  aCC*)
12762	    lt_prog_compiler_wl_CXX='-Wl,'
12763	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12764	    case $host_cpu in
12765	    hppa*64*|ia64*)
12766	      # +Z the default
12767	      ;;
12768	    *)
12769	      lt_prog_compiler_pic_CXX='+Z'
12770	      ;;
12771	    esac
12772	    ;;
12773	  *)
12774	    ;;
12775	esac
12776	;;
12777      interix*)
12778	# This is c89, which is MS Visual C++ (no shared libs)
12779	# Anyone wants to do a port?
12780	;;
12781      irix5* | irix6* | nonstopux*)
12782	case $cc_basename in
12783	  CC*)
12784	    lt_prog_compiler_wl_CXX='-Wl,'
12785	    lt_prog_compiler_static_CXX='-non_shared'
12786	    # CC pic flag -KPIC is the default.
12787	    ;;
12788	  *)
12789	    ;;
12790	esac
12791	;;
12792      linux* | k*bsd*-gnu)
12793	case $cc_basename in
12794	  KCC*)
12795	    # KAI C++ Compiler
12796	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12797	    lt_prog_compiler_pic_CXX='-fPIC'
12798	    ;;
12799	  icpc* | ecpc*)
12800	    # Intel C++
12801	    lt_prog_compiler_wl_CXX='-Wl,'
12802	    lt_prog_compiler_pic_CXX='-KPIC'
12803	    lt_prog_compiler_static_CXX='-static'
12804	    ;;
12805	  pgCC* | pgcpp*)
12806	    # Portland Group C++ compiler.
12807	    lt_prog_compiler_wl_CXX='-Wl,'
12808	    lt_prog_compiler_pic_CXX='-fpic'
12809	    lt_prog_compiler_static_CXX='-Bstatic'
12810	    ;;
12811	  cxx*)
12812	    # Compaq C++
12813	    # Make sure the PIC flag is empty.  It appears that all Alpha
12814	    # Linux and Compaq Tru64 Unix objects are PIC.
12815	    lt_prog_compiler_pic_CXX=
12816	    lt_prog_compiler_static_CXX='-non_shared'
12817	    ;;
12818	  *)
12819	    case `$CC -V 2>&1 | sed 5q` in
12820	    *Sun\ C*)
12821	      # Sun C++ 5.9
12822	      lt_prog_compiler_pic_CXX='-KPIC'
12823	      lt_prog_compiler_static_CXX='-Bstatic'
12824	      lt_prog_compiler_wl_CXX='-Qoption ld '
12825	      ;;
12826	    esac
12827	    ;;
12828	esac
12829	;;
12830      lynxos*)
12831	;;
12832      m88k*)
12833	;;
12834      mvs*)
12835	case $cc_basename in
12836	  cxx*)
12837	    lt_prog_compiler_pic_CXX='-W c,exportall'
12838	    ;;
12839	  *)
12840	    ;;
12841	esac
12842	;;
12843      netbsd*)
12844	;;
12845      osf3* | osf4* | osf5*)
12846	case $cc_basename in
12847	  KCC*)
12848	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12849	    ;;
12850	  RCC*)
12851	    # Rational C++ 2.4.1
12852	    lt_prog_compiler_pic_CXX='-pic'
12853	    ;;
12854	  cxx*)
12855	    # Digital/Compaq C++
12856	    lt_prog_compiler_wl_CXX='-Wl,'
12857	    # Make sure the PIC flag is empty.  It appears that all Alpha
12858	    # Linux and Compaq Tru64 Unix objects are PIC.
12859	    lt_prog_compiler_pic_CXX=
12860	    lt_prog_compiler_static_CXX='-non_shared'
12861	    ;;
12862	  *)
12863	    ;;
12864	esac
12865	;;
12866      psos*)
12867	;;
12868      solaris*)
12869	case $cc_basename in
12870	  CC*)
12871	    # Sun C++ 4.2, 5.x and Centerline C++
12872	    lt_prog_compiler_pic_CXX='-KPIC'
12873	    lt_prog_compiler_static_CXX='-Bstatic'
12874	    lt_prog_compiler_wl_CXX='-Qoption ld '
12875	    ;;
12876	  gcx*)
12877	    # Green Hills C++ Compiler
12878	    lt_prog_compiler_pic_CXX='-PIC'
12879	    ;;
12880	  *)
12881	    ;;
12882	esac
12883	;;
12884      sunos4*)
12885	case $cc_basename in
12886	  CC*)
12887	    # Sun C++ 4.x
12888	    lt_prog_compiler_pic_CXX='-pic'
12889	    lt_prog_compiler_static_CXX='-Bstatic'
12890	    ;;
12891	  lcc*)
12892	    # Lucid
12893	    lt_prog_compiler_pic_CXX='-pic'
12894	    ;;
12895	  *)
12896	    ;;
12897	esac
12898	;;
12899      tandem*)
12900	case $cc_basename in
12901	  NCC*)
12902	    # NonStop-UX NCC 3.20
12903	    lt_prog_compiler_pic_CXX='-KPIC'
12904	    ;;
12905	  *)
12906	    ;;
12907	esac
12908	;;
12909      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12910	case $cc_basename in
12911	  CC*)
12912	    lt_prog_compiler_wl_CXX='-Wl,'
12913	    lt_prog_compiler_pic_CXX='-KPIC'
12914	    lt_prog_compiler_static_CXX='-Bstatic'
12915	    ;;
12916	esac
12917	;;
12918      vxworks*)
12919	;;
12920      *)
12921	lt_prog_compiler_can_build_shared_CXX=no
12922	;;
12923    esac
12924  fi
12925
12926{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12927$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12928
12929#
12930# Check to make sure the PIC flag actually works.
12931#
12932if test -n "$lt_prog_compiler_pic_CXX"; then
12933
12934{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12935$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12936if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12937  $as_echo_n "(cached) " >&6
12938else
12939  lt_cv_prog_compiler_pic_works_CXX=no
12940  ac_outfile=conftest.$ac_objext
12941   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12942   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12943   # Insert the option either (1) after the last *FLAGS variable, or
12944   # (2) before a word containing "conftest.", or (3) at the end.
12945   # Note that $ac_compile itself does not contain backslashes and begins
12946   # with a dollar sign (not a hyphen), so the echo should work correctly.
12947   # The option is referenced via a variable to avoid confusing sed.
12948   lt_compile=`echo "$ac_compile" | $SED \
12949   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12950   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12951   -e 's:$: $lt_compiler_flag:'`
12952   (eval echo "\"\$as_me:12952: $lt_compile\"" >&5)
12953   (eval "$lt_compile" 2>conftest.err)
12954   ac_status=$?
12955   cat conftest.err >&5
12956   echo "$as_me:12956: \$? = $ac_status" >&5
12957   if (exit $ac_status) && test -s "$ac_outfile"; then
12958     # The compiler can only warn and ignore the option if not recognized
12959     # So say no if there are warnings other than the usual output.
12960     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12961     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12963       lt_cv_prog_compiler_pic_works_CXX=yes
12964     fi
12965   fi
12966   $rm conftest*
12967
12968fi
12969{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12970$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12971
12972if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12973    case $lt_prog_compiler_pic_CXX in
12974     "" | " "*) ;;
12975     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12976     esac
12977else
12978    lt_prog_compiler_pic_CXX=
12979     lt_prog_compiler_can_build_shared_CXX=no
12980fi
12981
12982fi
12983case $host_os in
12984  # For platforms which do not support PIC, -DPIC is meaningless:
12985  *djgpp*)
12986    lt_prog_compiler_pic_CXX=
12987    ;;
12988  *)
12989    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12990    ;;
12991esac
12992
12993#
12994# Check to make sure the static flag actually works.
12995#
12996wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12997{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12998$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12999if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13000  $as_echo_n "(cached) " >&6
13001else
13002  lt_cv_prog_compiler_static_works_CXX=no
13003   save_LDFLAGS="$LDFLAGS"
13004   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13005   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13006   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13007     # The linker can only warn and ignore the option if not recognized
13008     # So say no if there are warnings
13009     if test -s conftest.err; then
13010       # Append any errors to the config.log.
13011       cat conftest.err 1>&5
13012       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13013       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13014       if diff conftest.exp conftest.er2 >/dev/null; then
13015         lt_cv_prog_compiler_static_works_CXX=yes
13016       fi
13017     else
13018       lt_cv_prog_compiler_static_works_CXX=yes
13019     fi
13020   fi
13021   $rm -r conftest*
13022   LDFLAGS="$save_LDFLAGS"
13023
13024fi
13025{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13026$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13027
13028if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13029    :
13030else
13031    lt_prog_compiler_static_CXX=
13032fi
13033
13034
13035{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13036$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13037if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13038  $as_echo_n "(cached) " >&6
13039else
13040  lt_cv_prog_compiler_c_o_CXX=no
13041   $rm -r conftest 2>/dev/null
13042   mkdir conftest
13043   cd conftest
13044   mkdir out
13045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13046
13047   lt_compiler_flag="-o out/conftest2.$ac_objext"
13048   # Insert the option either (1) after the last *FLAGS variable, or
13049   # (2) before a word containing "conftest.", or (3) at the end.
13050   # Note that $ac_compile itself does not contain backslashes and begins
13051   # with a dollar sign (not a hyphen), so the echo should work correctly.
13052   lt_compile=`echo "$ac_compile" | $SED \
13053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13055   -e 's:$: $lt_compiler_flag:'`
13056   (eval echo "\"\$as_me:13056: $lt_compile\"" >&5)
13057   (eval "$lt_compile" 2>out/conftest.err)
13058   ac_status=$?
13059   cat out/conftest.err >&5
13060   echo "$as_me:13060: \$? = $ac_status" >&5
13061   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13062   then
13063     # The compiler can only warn and ignore the option if not recognized
13064     # So say no if there are warnings
13065     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13066     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13067     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13068       lt_cv_prog_compiler_c_o_CXX=yes
13069     fi
13070   fi
13071   chmod u+w . 2>&5
13072   $rm conftest*
13073   # SGI C++ compiler will create directory out/ii_files/ for
13074   # template instantiation
13075   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13076   $rm out/* && rmdir out
13077   cd ..
13078   rmdir conftest
13079   $rm conftest*
13080
13081fi
13082{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13083$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13084
13085
13086hard_links="nottested"
13087if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13088  # do not overwrite the value of need_locks provided by the user
13089  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13090$as_echo_n "checking if we can lock with hard links... " >&6; }
13091  hard_links=yes
13092  $rm conftest*
13093  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13094  touch conftest.a
13095  ln conftest.a conftest.b 2>&5 || hard_links=no
13096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13097  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13098$as_echo "$hard_links" >&6; }
13099  if test "$hard_links" = no; then
13100    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13101$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13102    need_locks=warn
13103  fi
13104else
13105  need_locks=no
13106fi
13107
13108{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13109$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13110
13111  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13112  case $host_os in
13113  aix[4-9]*)
13114    # If we're using GNU nm, then we don't want the "-C" option.
13115    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13116    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13117      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'
13118    else
13119      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'
13120    fi
13121    ;;
13122  pw32*)
13123    export_symbols_cmds_CXX="$ltdll_cmds"
13124  ;;
13125  cygwin* | mingw*)
13126    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'
13127  ;;
13128  *)
13129    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13130  ;;
13131  esac
13132  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13133
13134{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13135$as_echo "$ld_shlibs_CXX" >&6; }
13136test "$ld_shlibs_CXX" = no && can_build_shared=no
13137
13138#
13139# Do we need to explicitly link libc?
13140#
13141case "x$archive_cmds_need_lc_CXX" in
13142x|xyes)
13143  # Assume -lc should be added
13144  archive_cmds_need_lc_CXX=yes
13145
13146  if test "$enable_shared" = yes && test "$GCC" = yes; then
13147    case $archive_cmds_CXX in
13148    *'~'*)
13149      # FIXME: we may have to deal with multi-command sequences.
13150      ;;
13151    '$CC '*)
13152      # Test whether the compiler implicitly links with -lc since on some
13153      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154      # to ld, don't add -lc before -lgcc.
13155      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13156$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13157      $rm conftest*
13158      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13159
13160      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161  (eval $ac_compile) 2>&5
13162  ac_status=$?
13163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164  (exit $ac_status); } 2>conftest.err; then
13165        soname=conftest
13166        lib=conftest
13167        libobjs=conftest.$ac_objext
13168        deplibs=
13169        wl=$lt_prog_compiler_wl_CXX
13170	pic_flag=$lt_prog_compiler_pic_CXX
13171        compiler_flags=-v
13172        linker_flags=-v
13173        verstring=
13174        output_objdir=.
13175        libname=conftest
13176        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13177        allow_undefined_flag_CXX=
13178        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13179  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13180  ac_status=$?
13181  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182  (exit $ac_status); }
13183        then
13184	  archive_cmds_need_lc_CXX=no
13185        else
13186	  archive_cmds_need_lc_CXX=yes
13187        fi
13188        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13189      else
13190        cat conftest.err 1>&5
13191      fi
13192      $rm conftest*
13193      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13194$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13195      ;;
13196    esac
13197  fi
13198  ;;
13199esac
13200
13201{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13202$as_echo_n "checking dynamic linker characteristics... " >&6; }
13203library_names_spec=
13204libname_spec='lib$name'
13205soname_spec=
13206shrext_cmds=".so"
13207postinstall_cmds=
13208postuninstall_cmds=
13209finish_cmds=
13210finish_eval=
13211shlibpath_var=
13212shlibpath_overrides_runpath=unknown
13213version_type=none
13214dynamic_linker="$host_os ld.so"
13215sys_lib_dlsearch_path_spec="/lib /usr/lib"
13216
13217need_lib_prefix=unknown
13218hardcode_into_libs=no
13219
13220# when you set need_version to no, make sure it does not cause -set_version
13221# flags to be left without arguments
13222need_version=unknown
13223
13224case $host_os in
13225aix3*)
13226  version_type=linux
13227  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13228  shlibpath_var=LIBPATH
13229
13230  # AIX 3 has no versioning support, so we append a major version to the name.
13231  soname_spec='${libname}${release}${shared_ext}$major'
13232  ;;
13233
13234aix[4-9]*)
13235  version_type=linux
13236  need_lib_prefix=no
13237  need_version=no
13238  hardcode_into_libs=yes
13239  if test "$host_cpu" = ia64; then
13240    # AIX 5 supports IA64
13241    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13242    shlibpath_var=LD_LIBRARY_PATH
13243  else
13244    # With GCC up to 2.95.x, collect2 would create an import file
13245    # for dependence libraries.  The import file would start with
13246    # the line `#! .'.  This would cause the generated library to
13247    # depend on `.', always an invalid library.  This was fixed in
13248    # development snapshots of GCC prior to 3.0.
13249    case $host_os in
13250      aix4 | aix4.[01] | aix4.[01].*)
13251      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13252	   echo ' yes '
13253	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13254	:
13255      else
13256	can_build_shared=no
13257      fi
13258      ;;
13259    esac
13260    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13261    # soname into executable. Probably we can add versioning support to
13262    # collect2, so additional links can be useful in future.
13263    if test "$aix_use_runtimelinking" = yes; then
13264      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13265      # instead of lib<name>.a to let people know that these are not
13266      # typical AIX shared libraries.
13267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268    else
13269      # We preserve .a as extension for shared libraries through AIX4.2
13270      # and later when we are not doing run time linking.
13271      library_names_spec='${libname}${release}.a $libname.a'
13272      soname_spec='${libname}${release}${shared_ext}$major'
13273    fi
13274    shlibpath_var=LIBPATH
13275  fi
13276  ;;
13277
13278amigaos*)
13279  library_names_spec='$libname.ixlibrary $libname.a'
13280  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13281  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'
13282  ;;
13283
13284beos*)
13285  library_names_spec='${libname}${shared_ext}'
13286  dynamic_linker="$host_os ld.so"
13287  shlibpath_var=LIBRARY_PATH
13288  ;;
13289
13290bsdi[45]*)
13291  version_type=linux
13292  need_version=no
13293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294  soname_spec='${libname}${release}${shared_ext}$major'
13295  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13296  shlibpath_var=LD_LIBRARY_PATH
13297  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13298  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13299  # the default ld.so.conf also contains /usr/contrib/lib and
13300  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13301  # libtool to hard-code these into programs
13302  ;;
13303
13304cygwin* | mingw* | pw32*)
13305  version_type=windows
13306  shrext_cmds=".dll"
13307  need_version=no
13308  need_lib_prefix=no
13309
13310  case $GCC,$host_os in
13311  yes,cygwin* | yes,mingw* | yes,pw32*)
13312    library_names_spec='$libname.dll.a'
13313    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13314    postinstall_cmds='base_file=`basename \${file}`~
13315      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13316      dldir=$destdir/`dirname \$dlpath`~
13317      test -d \$dldir || mkdir -p \$dldir~
13318      $install_prog $dir/$dlname \$dldir/$dlname~
13319      chmod a+x \$dldir/$dlname'
13320    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13321      dlpath=$dir/\$dldll~
13322       $rm \$dlpath'
13323    shlibpath_overrides_runpath=yes
13324
13325    case $host_os in
13326    cygwin*)
13327      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13328      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13329      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13330      ;;
13331    mingw*)
13332      # MinGW DLLs use traditional 'lib' prefix
13333      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13334      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13335      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13336        # It is most probably a Windows format PATH printed by
13337        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13338        # path with ; separators, and with drive letters. We can handle the
13339        # drive letters (cygwin fileutils understands them), so leave them,
13340        # especially as we might pass files found there to a mingw objdump,
13341        # which wouldn't understand a cygwinified path. Ahh.
13342        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13343      else
13344        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13345      fi
13346      ;;
13347    pw32*)
13348      # pw32 DLLs use 'pw' prefix rather than 'lib'
13349      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13350      ;;
13351    esac
13352    ;;
13353
13354  *)
13355    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13356    ;;
13357  esac
13358  dynamic_linker='Win32 ld.exe'
13359  # FIXME: first we should search . and the directory the executable is in
13360  shlibpath_var=PATH
13361  ;;
13362
13363darwin* | rhapsody*)
13364  dynamic_linker="$host_os dyld"
13365  version_type=darwin
13366  need_lib_prefix=no
13367  need_version=no
13368  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13369  soname_spec='${libname}${release}${major}$shared_ext'
13370  shlibpath_overrides_runpath=yes
13371  shlibpath_var=DYLD_LIBRARY_PATH
13372  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13373
13374  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13375  ;;
13376
13377dgux*)
13378  version_type=linux
13379  need_lib_prefix=no
13380  need_version=no
13381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13382  soname_spec='${libname}${release}${shared_ext}$major'
13383  shlibpath_var=LD_LIBRARY_PATH
13384  ;;
13385
13386freebsd1*)
13387  dynamic_linker=no
13388  ;;
13389
13390freebsd* | dragonfly*)
13391  # DragonFly does not have aout.  When/if they implement a new
13392  # versioning mechanism, adjust this.
13393  if test -x /usr/bin/objformat; then
13394    objformat=`/usr/bin/objformat`
13395  else
13396    case $host_os in
13397    freebsd[123]*) objformat=aout ;;
13398    *) objformat=elf ;;
13399    esac
13400  fi
13401  version_type=freebsd-$objformat
13402  case $version_type in
13403    freebsd-elf*)
13404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13405      need_version=no
13406      need_lib_prefix=no
13407      ;;
13408    freebsd-*)
13409      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13410      need_version=yes
13411      ;;
13412  esac
13413  shlibpath_var=LD_LIBRARY_PATH
13414  case $host_os in
13415  freebsd2*)
13416    shlibpath_overrides_runpath=yes
13417    ;;
13418  freebsd3.[01]* | freebsdelf3.[01]*)
13419    shlibpath_overrides_runpath=yes
13420    hardcode_into_libs=yes
13421    ;;
13422  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13423  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13424    shlibpath_overrides_runpath=no
13425    hardcode_into_libs=yes
13426    ;;
13427  *) # from 4.6 on, and DragonFly
13428    shlibpath_overrides_runpath=yes
13429    hardcode_into_libs=yes
13430    ;;
13431  esac
13432  ;;
13433
13434gnu*)
13435  version_type=linux
13436  need_lib_prefix=no
13437  need_version=no
13438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439  soname_spec='${libname}${release}${shared_ext}$major'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  hardcode_into_libs=yes
13442  ;;
13443
13444hpux9* | hpux10* | hpux11*)
13445  # Give a soname corresponding to the major version so that dld.sl refuses to
13446  # link against other versions.
13447  version_type=sunos
13448  need_lib_prefix=no
13449  need_version=no
13450  case $host_cpu in
13451  ia64*)
13452    shrext_cmds='.so'
13453    hardcode_into_libs=yes
13454    dynamic_linker="$host_os dld.so"
13455    shlibpath_var=LD_LIBRARY_PATH
13456    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458    soname_spec='${libname}${release}${shared_ext}$major'
13459    if test "X$HPUX_IA64_MODE" = X32; then
13460      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461    else
13462      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463    fi
13464    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465    ;;
13466   hppa*64*)
13467     shrext_cmds='.sl'
13468     hardcode_into_libs=yes
13469     dynamic_linker="$host_os dld.sl"
13470     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473     soname_spec='${libname}${release}${shared_ext}$major'
13474     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476     ;;
13477   *)
13478    shrext_cmds='.sl'
13479    dynamic_linker="$host_os dld.sl"
13480    shlibpath_var=SHLIB_PATH
13481    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483    soname_spec='${libname}${release}${shared_ext}$major'
13484    ;;
13485  esac
13486  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487  postinstall_cmds='chmod 555 $lib'
13488  ;;
13489
13490interix[3-9]*)
13491  version_type=linux
13492  need_lib_prefix=no
13493  need_version=no
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495  soname_spec='${libname}${release}${shared_ext}$major'
13496  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13497  shlibpath_var=LD_LIBRARY_PATH
13498  shlibpath_overrides_runpath=no
13499  hardcode_into_libs=yes
13500  ;;
13501
13502irix5* | irix6* | nonstopux*)
13503  case $host_os in
13504    nonstopux*) version_type=nonstopux ;;
13505    *)
13506	if test "$lt_cv_prog_gnu_ld" = yes; then
13507		version_type=linux
13508	else
13509		version_type=irix
13510	fi ;;
13511  esac
13512  need_lib_prefix=no
13513  need_version=no
13514  soname_spec='${libname}${release}${shared_ext}$major'
13515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13516  case $host_os in
13517  irix5* | nonstopux*)
13518    libsuff= shlibsuff=
13519    ;;
13520  *)
13521    case $LD in # libtool.m4 will add one of these switches to LD
13522    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13523      libsuff= shlibsuff= libmagic=32-bit;;
13524    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13525      libsuff=32 shlibsuff=N32 libmagic=N32;;
13526    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13527      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13528    *) libsuff= shlibsuff= libmagic=never-match;;
13529    esac
13530    ;;
13531  esac
13532  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13533  shlibpath_overrides_runpath=no
13534  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13535  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13536  hardcode_into_libs=yes
13537  ;;
13538
13539# No shared lib support for Linux oldld, aout, or coff.
13540linux*oldld* | linux*aout* | linux*coff*)
13541  dynamic_linker=no
13542  ;;
13543
13544# This must be Linux ELF.
13545linux* | k*bsd*-gnu)
13546  version_type=linux
13547  need_lib_prefix=no
13548  need_version=no
13549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550  soname_spec='${libname}${release}${shared_ext}$major'
13551  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13552  shlibpath_var=LD_LIBRARY_PATH
13553  shlibpath_overrides_runpath=no
13554  # This implies no fast_install, which is unacceptable.
13555  # Some rework will be needed to allow for fast_install
13556  # before this can be enabled.
13557  hardcode_into_libs=yes
13558
13559  # Append ld.so.conf contents to the search path
13560  if test -f /etc/ld.so.conf; then
13561    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' ' '`
13562    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13563  fi
13564
13565  # We used to test for /lib/ld.so.1 and disable shared libraries on
13566  # powerpc, because MkLinux only supported shared libraries with the
13567  # GNU dynamic linker.  Since this was broken with cross compilers,
13568  # most powerpc-linux boxes support dynamic linking these days and
13569  # people can always --disable-shared, the test was removed, and we
13570  # assume the GNU/Linux dynamic linker is in use.
13571  dynamic_linker='GNU/Linux ld.so'
13572  ;;
13573
13574netbsd*)
13575  version_type=sunos
13576  need_lib_prefix=no
13577  need_version=no
13578  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581    dynamic_linker='NetBSD (a.out) ld.so'
13582  else
13583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584    soname_spec='${libname}${release}${shared_ext}$major'
13585    dynamic_linker='NetBSD ld.elf_so'
13586  fi
13587  shlibpath_var=LD_LIBRARY_PATH
13588  shlibpath_overrides_runpath=yes
13589  hardcode_into_libs=yes
13590  ;;
13591
13592newsos6)
13593  version_type=linux
13594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595  shlibpath_var=LD_LIBRARY_PATH
13596  shlibpath_overrides_runpath=yes
13597  ;;
13598
13599nto-qnx*)
13600  version_type=linux
13601  need_lib_prefix=no
13602  need_version=no
13603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604  soname_spec='${libname}${release}${shared_ext}$major'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=yes
13607  ;;
13608
13609openbsd*)
13610  version_type=sunos
13611  sys_lib_dlsearch_path_spec="/usr/lib"
13612  need_lib_prefix=no
13613  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13614  case $host_os in
13615    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13616    *)                         need_version=no  ;;
13617  esac
13618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13619  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13620  shlibpath_var=LD_LIBRARY_PATH
13621  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13622    case $host_os in
13623      openbsd2.[89] | openbsd2.[89].*)
13624	shlibpath_overrides_runpath=no
13625	;;
13626      *)
13627	shlibpath_overrides_runpath=yes
13628	;;
13629      esac
13630  else
13631    shlibpath_overrides_runpath=yes
13632  fi
13633  ;;
13634
13635os2*)
13636  libname_spec='$name'
13637  shrext_cmds=".dll"
13638  need_lib_prefix=no
13639  library_names_spec='$libname${shared_ext} $libname.a'
13640  dynamic_linker='OS/2 ld.exe'
13641  shlibpath_var=LIBPATH
13642  ;;
13643
13644osf3* | osf4* | osf5*)
13645  version_type=osf
13646  need_lib_prefix=no
13647  need_version=no
13648  soname_spec='${libname}${release}${shared_ext}$major'
13649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13650  shlibpath_var=LD_LIBRARY_PATH
13651  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13652  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13653  ;;
13654
13655rdos*)
13656  dynamic_linker=no
13657  ;;
13658
13659solaris*)
13660  version_type=linux
13661  need_lib_prefix=no
13662  need_version=no
13663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664  soname_spec='${libname}${release}${shared_ext}$major'
13665  shlibpath_var=LD_LIBRARY_PATH
13666  shlibpath_overrides_runpath=yes
13667  hardcode_into_libs=yes
13668  # ldd complains unless libraries are executable
13669  postinstall_cmds='chmod +x $lib'
13670  ;;
13671
13672sunos4*)
13673  version_type=sunos
13674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13675  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13676  shlibpath_var=LD_LIBRARY_PATH
13677  shlibpath_overrides_runpath=yes
13678  if test "$with_gnu_ld" = yes; then
13679    need_lib_prefix=no
13680  fi
13681  need_version=yes
13682  ;;
13683
13684sysv4 | sysv4.3*)
13685  version_type=linux
13686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687  soname_spec='${libname}${release}${shared_ext}$major'
13688  shlibpath_var=LD_LIBRARY_PATH
13689  case $host_vendor in
13690    sni)
13691      shlibpath_overrides_runpath=no
13692      need_lib_prefix=no
13693      export_dynamic_flag_spec='${wl}-Blargedynsym'
13694      runpath_var=LD_RUN_PATH
13695      ;;
13696    siemens)
13697      need_lib_prefix=no
13698      ;;
13699    motorola)
13700      need_lib_prefix=no
13701      need_version=no
13702      shlibpath_overrides_runpath=no
13703      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13704      ;;
13705  esac
13706  ;;
13707
13708sysv4*MP*)
13709  if test -d /usr/nec ;then
13710    version_type=linux
13711    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13712    soname_spec='$libname${shared_ext}.$major'
13713    shlibpath_var=LD_LIBRARY_PATH
13714  fi
13715  ;;
13716
13717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13718  version_type=freebsd-elf
13719  need_lib_prefix=no
13720  need_version=no
13721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13722  soname_spec='${libname}${release}${shared_ext}$major'
13723  shlibpath_var=LD_LIBRARY_PATH
13724  hardcode_into_libs=yes
13725  if test "$with_gnu_ld" = yes; then
13726    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13727    shlibpath_overrides_runpath=no
13728  else
13729    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13730    shlibpath_overrides_runpath=yes
13731    case $host_os in
13732      sco3.2v5*)
13733        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13734	;;
13735    esac
13736  fi
13737  sys_lib_dlsearch_path_spec='/usr/lib'
13738  ;;
13739
13740uts4*)
13741  version_type=linux
13742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743  soname_spec='${libname}${release}${shared_ext}$major'
13744  shlibpath_var=LD_LIBRARY_PATH
13745  ;;
13746
13747*)
13748  dynamic_linker=no
13749  ;;
13750esac
13751{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13752$as_echo "$dynamic_linker" >&6; }
13753test "$dynamic_linker" = no && can_build_shared=no
13754
13755if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13756  $as_echo_n "(cached) " >&6
13757else
13758  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13759fi
13760
13761sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13762if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13763  $as_echo_n "(cached) " >&6
13764else
13765  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13766fi
13767
13768sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13769
13770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13771if test "$GCC" = yes; then
13772  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13773fi
13774
13775{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13776$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13777hardcode_action_CXX=
13778if test -n "$hardcode_libdir_flag_spec_CXX" || \
13779   test -n "$runpath_var_CXX" || \
13780   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13781
13782  # We can hardcode non-existant directories.
13783  if test "$hardcode_direct_CXX" != no &&
13784     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13785     # have to relink, otherwise we might link with an installed library
13786     # when we should be linking with a yet-to-be-installed one
13787     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13788     test "$hardcode_minus_L_CXX" != no; then
13789    # Linking always hardcodes the temporary library directory.
13790    hardcode_action_CXX=relink
13791  else
13792    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13793    hardcode_action_CXX=immediate
13794  fi
13795else
13796  # We cannot hardcode anything, or else we can only hardcode existing
13797  # directories.
13798  hardcode_action_CXX=unsupported
13799fi
13800{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13801$as_echo "$hardcode_action_CXX" >&6; }
13802
13803if test "$hardcode_action_CXX" = relink; then
13804  # Fast installation is not supported
13805  enable_fast_install=no
13806elif test "$shlibpath_overrides_runpath" = yes ||
13807     test "$enable_shared" = no; then
13808  # Fast installation is not necessary
13809  enable_fast_install=needless
13810fi
13811
13812
13813# The else clause should only fire when bootstrapping the
13814# libtool distribution, otherwise you forgot to ship ltmain.sh
13815# with your package, and you will get complaints that there are
13816# no rules to generate ltmain.sh.
13817if test -f "$ltmain"; then
13818  # See if we are running on zsh, and set the options which allow our commands through
13819  # without removal of \ escapes.
13820  if test -n "${ZSH_VERSION+set}" ; then
13821    setopt NO_GLOB_SUBST
13822  fi
13823  # Now quote all the things that may contain metacharacters while being
13824  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13825  # variables and quote the copies for generation of the libtool script.
13826  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13827    SED SHELL STRIP \
13828    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13829    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13830    deplibs_check_method reload_flag reload_cmds need_locks \
13831    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13832    lt_cv_sys_global_symbol_to_c_name_address \
13833    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13834    old_postinstall_cmds old_postuninstall_cmds \
13835    compiler_CXX \
13836    CC_CXX \
13837    LD_CXX \
13838    lt_prog_compiler_wl_CXX \
13839    lt_prog_compiler_pic_CXX \
13840    lt_prog_compiler_static_CXX \
13841    lt_prog_compiler_no_builtin_flag_CXX \
13842    export_dynamic_flag_spec_CXX \
13843    thread_safe_flag_spec_CXX \
13844    whole_archive_flag_spec_CXX \
13845    enable_shared_with_static_runtimes_CXX \
13846    old_archive_cmds_CXX \
13847    old_archive_from_new_cmds_CXX \
13848    predep_objects_CXX \
13849    postdep_objects_CXX \
13850    predeps_CXX \
13851    postdeps_CXX \
13852    compiler_lib_search_path_CXX \
13853    compiler_lib_search_dirs_CXX \
13854    archive_cmds_CXX \
13855    archive_expsym_cmds_CXX \
13856    postinstall_cmds_CXX \
13857    postuninstall_cmds_CXX \
13858    old_archive_from_expsyms_cmds_CXX \
13859    allow_undefined_flag_CXX \
13860    no_undefined_flag_CXX \
13861    export_symbols_cmds_CXX \
13862    hardcode_libdir_flag_spec_CXX \
13863    hardcode_libdir_flag_spec_ld_CXX \
13864    hardcode_libdir_separator_CXX \
13865    hardcode_automatic_CXX \
13866    module_cmds_CXX \
13867    module_expsym_cmds_CXX \
13868    lt_cv_prog_compiler_c_o_CXX \
13869    fix_srcfile_path_CXX \
13870    exclude_expsyms_CXX \
13871    include_expsyms_CXX; do
13872
13873    case $var in
13874    old_archive_cmds_CXX | \
13875    old_archive_from_new_cmds_CXX | \
13876    archive_cmds_CXX | \
13877    archive_expsym_cmds_CXX | \
13878    module_cmds_CXX | \
13879    module_expsym_cmds_CXX | \
13880    old_archive_from_expsyms_cmds_CXX | \
13881    export_symbols_cmds_CXX | \
13882    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13883    postinstall_cmds | postuninstall_cmds | \
13884    old_postinstall_cmds | old_postuninstall_cmds | \
13885    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13886      # Double-quote double-evaled strings.
13887      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13888      ;;
13889    *)
13890      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13891      ;;
13892    esac
13893  done
13894
13895  case $lt_echo in
13896  *'\$0 --fallback-echo"')
13897    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13898    ;;
13899  esac
13900
13901cfgfile="$ofile"
13902
13903  cat <<__EOF__ >> "$cfgfile"
13904# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13905
13906# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13907
13908# Shell to use when invoking shell scripts.
13909SHELL=$lt_SHELL
13910
13911# Whether or not to build shared libraries.
13912build_libtool_libs=$enable_shared
13913
13914# Whether or not to build static libraries.
13915build_old_libs=$enable_static
13916
13917# Whether or not to add -lc for building shared libraries.
13918build_libtool_need_lc=$archive_cmds_need_lc_CXX
13919
13920# Whether or not to disallow shared libs when runtime libs are static
13921allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13922
13923# Whether or not to optimize for fast installation.
13924fast_install=$enable_fast_install
13925
13926# The host system.
13927host_alias=$host_alias
13928host=$host
13929host_os=$host_os
13930
13931# The build system.
13932build_alias=$build_alias
13933build=$build
13934build_os=$build_os
13935
13936# An echo program that does not interpret backslashes.
13937echo=$lt_echo
13938
13939# The archiver.
13940AR=$lt_AR
13941AR_FLAGS=$lt_AR_FLAGS
13942
13943# A C compiler.
13944LTCC=$lt_LTCC
13945
13946# LTCC compiler flags.
13947LTCFLAGS=$lt_LTCFLAGS
13948
13949# A language-specific compiler.
13950CC=$lt_compiler_CXX
13951
13952# Is the compiler the GNU C compiler?
13953with_gcc=$GCC_CXX
13954
13955# An ERE matcher.
13956EGREP=$lt_EGREP
13957
13958# The linker used to build libraries.
13959LD=$lt_LD_CXX
13960
13961# Whether we need hard or soft links.
13962LN_S=$lt_LN_S
13963
13964# A BSD-compatible nm program.
13965NM=$lt_NM
13966
13967# A symbol stripping program
13968STRIP=$lt_STRIP
13969
13970# Used to examine libraries when file_magic_cmd begins "file"
13971MAGIC_CMD=$MAGIC_CMD
13972
13973# Used on cygwin: DLL creation program.
13974DLLTOOL="$DLLTOOL"
13975
13976# Used on cygwin: object dumper.
13977OBJDUMP="$OBJDUMP"
13978
13979# Used on cygwin: assembler.
13980AS="$AS"
13981
13982# The name of the directory that contains temporary libtool files.
13983objdir=$objdir
13984
13985# How to create reloadable object files.
13986reload_flag=$lt_reload_flag
13987reload_cmds=$lt_reload_cmds
13988
13989# How to pass a linker flag through the compiler.
13990wl=$lt_lt_prog_compiler_wl_CXX
13991
13992# Object file suffix (normally "o").
13993objext="$ac_objext"
13994
13995# Old archive suffix (normally "a").
13996libext="$libext"
13997
13998# Shared library suffix (normally ".so").
13999shrext_cmds='$shrext_cmds'
14000
14001# Executable file suffix (normally "").
14002exeext="$exeext"
14003
14004# Additional compiler flags for building library objects.
14005pic_flag=$lt_lt_prog_compiler_pic_CXX
14006pic_mode=$pic_mode
14007
14008# What is the maximum length of a command?
14009max_cmd_len=$lt_cv_sys_max_cmd_len
14010
14011# Does compiler simultaneously support -c and -o options?
14012compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14013
14014# Must we lock files when doing compilation?
14015need_locks=$lt_need_locks
14016
14017# Do we need the lib prefix for modules?
14018need_lib_prefix=$need_lib_prefix
14019
14020# Do we need a version for libraries?
14021need_version=$need_version
14022
14023# Whether dlopen is supported.
14024dlopen_support=$enable_dlopen
14025
14026# Whether dlopen of programs is supported.
14027dlopen_self=$enable_dlopen_self
14028
14029# Whether dlopen of statically linked programs is supported.
14030dlopen_self_static=$enable_dlopen_self_static
14031
14032# Compiler flag to prevent dynamic linking.
14033link_static_flag=$lt_lt_prog_compiler_static_CXX
14034
14035# Compiler flag to turn off builtin functions.
14036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14037
14038# Compiler flag to allow reflexive dlopens.
14039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14040
14041# Compiler flag to generate shared objects directly from archives.
14042whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14043
14044# Compiler flag to generate thread-safe objects.
14045thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14046
14047# Library versioning type.
14048version_type=$version_type
14049
14050# Format of library name prefix.
14051libname_spec=$lt_libname_spec
14052
14053# List of archive names.  First name is the real one, the rest are links.
14054# The last name is the one that the linker finds with -lNAME.
14055library_names_spec=$lt_library_names_spec
14056
14057# The coded name of the library, if different from the real name.
14058soname_spec=$lt_soname_spec
14059
14060# Commands used to build and install an old-style archive.
14061RANLIB=$lt_RANLIB
14062old_archive_cmds=$lt_old_archive_cmds_CXX
14063old_postinstall_cmds=$lt_old_postinstall_cmds
14064old_postuninstall_cmds=$lt_old_postuninstall_cmds
14065
14066# Create an old-style archive from a shared archive.
14067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14068
14069# Create a temporary old-style archive to link instead of a shared archive.
14070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14071
14072# Commands used to build and install a shared archive.
14073archive_cmds=$lt_archive_cmds_CXX
14074archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14075postinstall_cmds=$lt_postinstall_cmds
14076postuninstall_cmds=$lt_postuninstall_cmds
14077
14078# Commands used to build a loadable module (assumed same as above if empty)
14079module_cmds=$lt_module_cmds_CXX
14080module_expsym_cmds=$lt_module_expsym_cmds_CXX
14081
14082# Commands to strip libraries.
14083old_striplib=$lt_old_striplib
14084striplib=$lt_striplib
14085
14086# Dependencies to place before the objects being linked to create a
14087# shared library.
14088predep_objects=$lt_predep_objects_CXX
14089
14090# Dependencies to place after the objects being linked to create a
14091# shared library.
14092postdep_objects=$lt_postdep_objects_CXX
14093
14094# Dependencies to place before the objects being linked to create a
14095# shared library.
14096predeps=$lt_predeps_CXX
14097
14098# Dependencies to place after the objects being linked to create a
14099# shared library.
14100postdeps=$lt_postdeps_CXX
14101
14102# The directories searched by this compiler when creating a shared
14103# library
14104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14105
14106# The library search path used internally by the compiler when linking
14107# a shared library.
14108compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14109
14110# Method to check whether dependent libraries are shared objects.
14111deplibs_check_method=$lt_deplibs_check_method
14112
14113# Command to use when deplibs_check_method == file_magic.
14114file_magic_cmd=$lt_file_magic_cmd
14115
14116# Flag that allows shared libraries with undefined symbols to be built.
14117allow_undefined_flag=$lt_allow_undefined_flag_CXX
14118
14119# Flag that forces no undefined symbols.
14120no_undefined_flag=$lt_no_undefined_flag_CXX
14121
14122# Commands used to finish a libtool library installation in a directory.
14123finish_cmds=$lt_finish_cmds
14124
14125# Same as above, but a single script fragment to be evaled but not shown.
14126finish_eval=$lt_finish_eval
14127
14128# Take the output of nm and produce a listing of raw symbols and C names.
14129global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14130
14131# Transform the output of nm in a proper C declaration
14132global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14133
14134# Transform the output of nm in a C name address pair
14135global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14136
14137# This is the shared library runtime path variable.
14138runpath_var=$runpath_var
14139
14140# This is the shared library path variable.
14141shlibpath_var=$shlibpath_var
14142
14143# Is shlibpath searched before the hard-coded library search path?
14144shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14145
14146# How to hardcode a shared library path into an executable.
14147hardcode_action=$hardcode_action_CXX
14148
14149# Whether we should hardcode library paths into libraries.
14150hardcode_into_libs=$hardcode_into_libs
14151
14152# Flag to hardcode \$libdir into a binary during linking.
14153# This must work even if \$libdir does not exist.
14154hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14155
14156# If ld is used when linking, flag to hardcode \$libdir into
14157# a binary during linking. This must work even if \$libdir does
14158# not exist.
14159hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14160
14161# Whether we need a single -rpath flag with a separated argument.
14162hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14163
14164# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14165# resulting binary.
14166hardcode_direct=$hardcode_direct_CXX
14167
14168# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14169# resulting binary.
14170hardcode_minus_L=$hardcode_minus_L_CXX
14171
14172# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14173# the resulting binary.
14174hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14175
14176# Set to yes if building a shared library automatically hardcodes DIR into the library
14177# and all subsequent libraries and executables linked against it.
14178hardcode_automatic=$hardcode_automatic_CXX
14179
14180# Variables whose values should be saved in libtool wrapper scripts and
14181# restored at relink time.
14182variables_saved_for_relink="$variables_saved_for_relink"
14183
14184# Whether libtool must link a program against all its dependency libraries.
14185link_all_deplibs=$link_all_deplibs_CXX
14186
14187# Compile-time system search path for libraries
14188sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14189
14190# Run-time system search path for libraries
14191sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14192
14193# Fix the shell variable \$srcfile for the compiler.
14194fix_srcfile_path=$lt_fix_srcfile_path
14195
14196# Set to yes if exported symbols are required.
14197always_export_symbols=$always_export_symbols_CXX
14198
14199# The commands to list exported symbols.
14200export_symbols_cmds=$lt_export_symbols_cmds_CXX
14201
14202# The commands to extract the exported symbol list from a shared archive.
14203extract_expsyms_cmds=$lt_extract_expsyms_cmds
14204
14205# Symbols that should not be listed in the preloaded symbols.
14206exclude_expsyms=$lt_exclude_expsyms_CXX
14207
14208# Symbols that must always be exported.
14209include_expsyms=$lt_include_expsyms_CXX
14210
14211# ### END LIBTOOL TAG CONFIG: $tagname
14212
14213__EOF__
14214
14215
14216else
14217  # If there is no Makefile yet, we rely on a make rule to execute
14218  # `config.status --recheck' to rerun these tests and create the
14219  # libtool script then.
14220  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14221  if test -f "$ltmain_in"; then
14222    test -f Makefile && make "$ltmain"
14223  fi
14224fi
14225
14226
14227ac_ext=c
14228ac_cpp='$CPP $CPPFLAGS'
14229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232
14233CC=$lt_save_CC
14234LDCXX=$LD
14235LD=$lt_save_LD
14236GCC=$lt_save_GCC
14237with_gnu_ldcxx=$with_gnu_ld
14238with_gnu_ld=$lt_save_with_gnu_ld
14239lt_cv_path_LDCXX=$lt_cv_path_LD
14240lt_cv_path_LD=$lt_save_path_LD
14241lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14242lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14243
14244	else
14245	  tagname=""
14246	fi
14247	;;
14248
14249      F77)
14250	if test -n "$F77" && test "X$F77" != "Xno"; then
14251
14252ac_ext=f
14253ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14254ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14256
14257
14258archive_cmds_need_lc_F77=no
14259allow_undefined_flag_F77=
14260always_export_symbols_F77=no
14261archive_expsym_cmds_F77=
14262export_dynamic_flag_spec_F77=
14263hardcode_direct_F77=no
14264hardcode_libdir_flag_spec_F77=
14265hardcode_libdir_flag_spec_ld_F77=
14266hardcode_libdir_separator_F77=
14267hardcode_minus_L_F77=no
14268hardcode_automatic_F77=no
14269module_cmds_F77=
14270module_expsym_cmds_F77=
14271link_all_deplibs_F77=unknown
14272old_archive_cmds_F77=$old_archive_cmds
14273no_undefined_flag_F77=
14274whole_archive_flag_spec_F77=
14275enable_shared_with_static_runtimes_F77=no
14276
14277# Source file extension for f77 test sources.
14278ac_ext=f
14279
14280# Object file extension for compiled f77 test sources.
14281objext=o
14282objext_F77=$objext
14283
14284# Code to be used in simple compile tests
14285lt_simple_compile_test_code="\
14286      subroutine t
14287      return
14288      end
14289"
14290
14291# Code to be used in simple link tests
14292lt_simple_link_test_code="\
14293      program t
14294      end
14295"
14296
14297# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14298
14299# If no C compiler was specified, use CC.
14300LTCC=${LTCC-"$CC"}
14301
14302# If no C compiler flags were specified, use CFLAGS.
14303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14304
14305# Allow CC to be a program name with arguments.
14306compiler=$CC
14307
14308
14309# save warnings/boilerplate of simple test code
14310ac_outfile=conftest.$ac_objext
14311echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14313_lt_compiler_boilerplate=`cat conftest.err`
14314$rm conftest*
14315
14316ac_outfile=conftest.$ac_objext
14317echo "$lt_simple_link_test_code" >conftest.$ac_ext
14318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14319_lt_linker_boilerplate=`cat conftest.err`
14320$rm -r conftest*
14321
14322
14323# Allow CC to be a program name with arguments.
14324lt_save_CC="$CC"
14325CC=${F77-"f77"}
14326compiler=$CC
14327compiler_F77=$CC
14328for cc_temp in $compiler""; do
14329  case $cc_temp in
14330    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14331    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14332    \-*) ;;
14333    *) break;;
14334  esac
14335done
14336cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14337
14338
14339{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14340$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14341{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14342$as_echo "$can_build_shared" >&6; }
14343
14344{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14345$as_echo_n "checking whether to build shared libraries... " >&6; }
14346test "$can_build_shared" = "no" && enable_shared=no
14347
14348# On AIX, shared libraries and static libraries use the same namespace, and
14349# are all built from PIC.
14350case $host_os in
14351aix3*)
14352  test "$enable_shared" = yes && enable_static=no
14353  if test -n "$RANLIB"; then
14354    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14355    postinstall_cmds='$RANLIB $lib'
14356  fi
14357  ;;
14358aix[4-9]*)
14359  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14360    test "$enable_shared" = yes && enable_static=no
14361  fi
14362  ;;
14363esac
14364{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14365$as_echo "$enable_shared" >&6; }
14366
14367{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14368$as_echo_n "checking whether to build static libraries... " >&6; }
14369# Make sure either enable_shared or enable_static is yes.
14370test "$enable_shared" = yes || enable_static=yes
14371{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14372$as_echo "$enable_static" >&6; }
14373
14374GCC_F77="$G77"
14375LD_F77="$LD"
14376
14377lt_prog_compiler_wl_F77=
14378lt_prog_compiler_pic_F77=
14379lt_prog_compiler_static_F77=
14380
14381{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14382$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14383
14384  if test "$GCC" = yes; then
14385    lt_prog_compiler_wl_F77='-Wl,'
14386    lt_prog_compiler_static_F77='-static'
14387
14388    case $host_os in
14389      aix*)
14390      # All AIX code is PIC.
14391      if test "$host_cpu" = ia64; then
14392	# AIX 5 now supports IA64 processor
14393	lt_prog_compiler_static_F77='-Bstatic'
14394      fi
14395      ;;
14396
14397    amigaos*)
14398      # FIXME: we need at least 68020 code to build shared libraries, but
14399      # adding the `-m68020' flag to GCC prevents building anything better,
14400      # like `-m68040'.
14401      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14402      ;;
14403
14404    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14405      # PIC is the default for these OSes.
14406      ;;
14407
14408    mingw* | cygwin* | pw32* | os2*)
14409      # This hack is so that the source file can tell whether it is being
14410      # built for inclusion in a dll (and should export symbols for example).
14411      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14412      # (--disable-auto-import) libraries
14413      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14414      ;;
14415
14416    darwin* | rhapsody*)
14417      # PIC is the default on this platform
14418      # Common symbols not allowed in MH_DYLIB files
14419      lt_prog_compiler_pic_F77='-fno-common'
14420      ;;
14421
14422    interix[3-9]*)
14423      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14424      # Instead, we relocate shared libraries at runtime.
14425      ;;
14426
14427    msdosdjgpp*)
14428      # Just because we use GCC doesn't mean we suddenly get shared libraries
14429      # on systems that don't support them.
14430      lt_prog_compiler_can_build_shared_F77=no
14431      enable_shared=no
14432      ;;
14433
14434    sysv4*MP*)
14435      if test -d /usr/nec; then
14436	lt_prog_compiler_pic_F77=-Kconform_pic
14437      fi
14438      ;;
14439
14440    hpux*)
14441      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14442      # not for PA HP-UX.
14443      case $host_cpu in
14444      hppa*64*|ia64*)
14445	# +Z the default
14446	;;
14447      *)
14448	lt_prog_compiler_pic_F77='-fPIC'
14449	;;
14450      esac
14451      ;;
14452
14453    *)
14454      lt_prog_compiler_pic_F77='-fPIC'
14455      ;;
14456    esac
14457  else
14458    # PORTME Check for flag to pass linker flags through the system compiler.
14459    case $host_os in
14460    aix*)
14461      lt_prog_compiler_wl_F77='-Wl,'
14462      if test "$host_cpu" = ia64; then
14463	# AIX 5 now supports IA64 processor
14464	lt_prog_compiler_static_F77='-Bstatic'
14465      else
14466	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14467      fi
14468      ;;
14469      darwin*)
14470        # PIC is the default on this platform
14471        # Common symbols not allowed in MH_DYLIB files
14472       case $cc_basename in
14473         xlc*)
14474         lt_prog_compiler_pic_F77='-qnocommon'
14475         lt_prog_compiler_wl_F77='-Wl,'
14476         ;;
14477       esac
14478       ;;
14479
14480    mingw* | cygwin* | pw32* | os2*)
14481      # This hack is so that the source file can tell whether it is being
14482      # built for inclusion in a dll (and should export symbols for example).
14483      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14484      ;;
14485
14486    hpux9* | hpux10* | hpux11*)
14487      lt_prog_compiler_wl_F77='-Wl,'
14488      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14489      # not for PA HP-UX.
14490      case $host_cpu in
14491      hppa*64*|ia64*)
14492	# +Z the default
14493	;;
14494      *)
14495	lt_prog_compiler_pic_F77='+Z'
14496	;;
14497      esac
14498      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14499      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14500      ;;
14501
14502    irix5* | irix6* | nonstopux*)
14503      lt_prog_compiler_wl_F77='-Wl,'
14504      # PIC (with -KPIC) is the default.
14505      lt_prog_compiler_static_F77='-non_shared'
14506      ;;
14507
14508    newsos6)
14509      lt_prog_compiler_pic_F77='-KPIC'
14510      lt_prog_compiler_static_F77='-Bstatic'
14511      ;;
14512
14513    linux* | k*bsd*-gnu)
14514      case $cc_basename in
14515      icc* | ecc*)
14516	lt_prog_compiler_wl_F77='-Wl,'
14517	lt_prog_compiler_pic_F77='-KPIC'
14518	lt_prog_compiler_static_F77='-static'
14519        ;;
14520      pgcc* | pgf77* | pgf90* | pgf95*)
14521        # Portland Group compilers (*not* the Pentium gcc compiler,
14522	# which looks to be a dead project)
14523	lt_prog_compiler_wl_F77='-Wl,'
14524	lt_prog_compiler_pic_F77='-fpic'
14525	lt_prog_compiler_static_F77='-Bstatic'
14526        ;;
14527      ccc*)
14528        lt_prog_compiler_wl_F77='-Wl,'
14529        # All Alpha code is PIC.
14530        lt_prog_compiler_static_F77='-non_shared'
14531        ;;
14532      *)
14533        case `$CC -V 2>&1 | sed 5q` in
14534	*Sun\ C*)
14535	  # Sun C 5.9
14536	  lt_prog_compiler_pic_F77='-KPIC'
14537	  lt_prog_compiler_static_F77='-Bstatic'
14538	  lt_prog_compiler_wl_F77='-Wl,'
14539	  ;;
14540	*Sun\ F*)
14541	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14542	  lt_prog_compiler_pic_F77='-KPIC'
14543	  lt_prog_compiler_static_F77='-Bstatic'
14544	  lt_prog_compiler_wl_F77=''
14545	  ;;
14546	esac
14547	;;
14548      esac
14549      ;;
14550
14551    osf3* | osf4* | osf5*)
14552      lt_prog_compiler_wl_F77='-Wl,'
14553      # All OSF/1 code is PIC.
14554      lt_prog_compiler_static_F77='-non_shared'
14555      ;;
14556
14557    rdos*)
14558      lt_prog_compiler_static_F77='-non_shared'
14559      ;;
14560
14561    solaris*)
14562      lt_prog_compiler_pic_F77='-KPIC'
14563      lt_prog_compiler_static_F77='-Bstatic'
14564      case $cc_basename in
14565      f77* | f90* | f95*)
14566	lt_prog_compiler_wl_F77='-Qoption ld ';;
14567      *)
14568	lt_prog_compiler_wl_F77='-Wl,';;
14569      esac
14570      ;;
14571
14572    sunos4*)
14573      lt_prog_compiler_wl_F77='-Qoption ld '
14574      lt_prog_compiler_pic_F77='-PIC'
14575      lt_prog_compiler_static_F77='-Bstatic'
14576      ;;
14577
14578    sysv4 | sysv4.2uw2* | sysv4.3*)
14579      lt_prog_compiler_wl_F77='-Wl,'
14580      lt_prog_compiler_pic_F77='-KPIC'
14581      lt_prog_compiler_static_F77='-Bstatic'
14582      ;;
14583
14584    sysv4*MP*)
14585      if test -d /usr/nec ;then
14586	lt_prog_compiler_pic_F77='-Kconform_pic'
14587	lt_prog_compiler_static_F77='-Bstatic'
14588      fi
14589      ;;
14590
14591    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14592      lt_prog_compiler_wl_F77='-Wl,'
14593      lt_prog_compiler_pic_F77='-KPIC'
14594      lt_prog_compiler_static_F77='-Bstatic'
14595      ;;
14596
14597    unicos*)
14598      lt_prog_compiler_wl_F77='-Wl,'
14599      lt_prog_compiler_can_build_shared_F77=no
14600      ;;
14601
14602    uts4*)
14603      lt_prog_compiler_pic_F77='-pic'
14604      lt_prog_compiler_static_F77='-Bstatic'
14605      ;;
14606
14607    *)
14608      lt_prog_compiler_can_build_shared_F77=no
14609      ;;
14610    esac
14611  fi
14612
14613{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14614$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14615
14616#
14617# Check to make sure the PIC flag actually works.
14618#
14619if test -n "$lt_prog_compiler_pic_F77"; then
14620
14621{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14623if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14624  $as_echo_n "(cached) " >&6
14625else
14626  lt_cv_prog_compiler_pic_works_F77=no
14627  ac_outfile=conftest.$ac_objext
14628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14629   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14630   # Insert the option either (1) after the last *FLAGS variable, or
14631   # (2) before a word containing "conftest.", or (3) at the end.
14632   # Note that $ac_compile itself does not contain backslashes and begins
14633   # with a dollar sign (not a hyphen), so the echo should work correctly.
14634   # The option is referenced via a variable to avoid confusing sed.
14635   lt_compile=`echo "$ac_compile" | $SED \
14636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14638   -e 's:$: $lt_compiler_flag:'`
14639   (eval echo "\"\$as_me:14639: $lt_compile\"" >&5)
14640   (eval "$lt_compile" 2>conftest.err)
14641   ac_status=$?
14642   cat conftest.err >&5
14643   echo "$as_me:14643: \$? = $ac_status" >&5
14644   if (exit $ac_status) && test -s "$ac_outfile"; then
14645     # The compiler can only warn and ignore the option if not recognized
14646     # So say no if there are warnings other than the usual output.
14647     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14648     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14649     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14650       lt_cv_prog_compiler_pic_works_F77=yes
14651     fi
14652   fi
14653   $rm conftest*
14654
14655fi
14656{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14657$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14658
14659if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14660    case $lt_prog_compiler_pic_F77 in
14661     "" | " "*) ;;
14662     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14663     esac
14664else
14665    lt_prog_compiler_pic_F77=
14666     lt_prog_compiler_can_build_shared_F77=no
14667fi
14668
14669fi
14670case $host_os in
14671  # For platforms which do not support PIC, -DPIC is meaningless:
14672  *djgpp*)
14673    lt_prog_compiler_pic_F77=
14674    ;;
14675  *)
14676    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14677    ;;
14678esac
14679
14680#
14681# Check to make sure the static flag actually works.
14682#
14683wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14684{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14685$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14686if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14687  $as_echo_n "(cached) " >&6
14688else
14689  lt_cv_prog_compiler_static_works_F77=no
14690   save_LDFLAGS="$LDFLAGS"
14691   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14692   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14693   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14694     # The linker can only warn and ignore the option if not recognized
14695     # So say no if there are warnings
14696     if test -s conftest.err; then
14697       # Append any errors to the config.log.
14698       cat conftest.err 1>&5
14699       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14700       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14701       if diff conftest.exp conftest.er2 >/dev/null; then
14702         lt_cv_prog_compiler_static_works_F77=yes
14703       fi
14704     else
14705       lt_cv_prog_compiler_static_works_F77=yes
14706     fi
14707   fi
14708   $rm -r conftest*
14709   LDFLAGS="$save_LDFLAGS"
14710
14711fi
14712{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14713$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14714
14715if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14716    :
14717else
14718    lt_prog_compiler_static_F77=
14719fi
14720
14721
14722{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14723$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14724if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14725  $as_echo_n "(cached) " >&6
14726else
14727  lt_cv_prog_compiler_c_o_F77=no
14728   $rm -r conftest 2>/dev/null
14729   mkdir conftest
14730   cd conftest
14731   mkdir out
14732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733
14734   lt_compiler_flag="-o out/conftest2.$ac_objext"
14735   # Insert the option either (1) after the last *FLAGS variable, or
14736   # (2) before a word containing "conftest.", or (3) at the end.
14737   # Note that $ac_compile itself does not contain backslashes and begins
14738   # with a dollar sign (not a hyphen), so the echo should work correctly.
14739   lt_compile=`echo "$ac_compile" | $SED \
14740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742   -e 's:$: $lt_compiler_flag:'`
14743   (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
14744   (eval "$lt_compile" 2>out/conftest.err)
14745   ac_status=$?
14746   cat out/conftest.err >&5
14747   echo "$as_me:14747: \$? = $ac_status" >&5
14748   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14749   then
14750     # The compiler can only warn and ignore the option if not recognized
14751     # So say no if there are warnings
14752     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14753     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14754     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14755       lt_cv_prog_compiler_c_o_F77=yes
14756     fi
14757   fi
14758   chmod u+w . 2>&5
14759   $rm conftest*
14760   # SGI C++ compiler will create directory out/ii_files/ for
14761   # template instantiation
14762   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14763   $rm out/* && rmdir out
14764   cd ..
14765   rmdir conftest
14766   $rm conftest*
14767
14768fi
14769{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14770$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14771
14772
14773hard_links="nottested"
14774if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14775  # do not overwrite the value of need_locks provided by the user
14776  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14777$as_echo_n "checking if we can lock with hard links... " >&6; }
14778  hard_links=yes
14779  $rm conftest*
14780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14781  touch conftest.a
14782  ln conftest.a conftest.b 2>&5 || hard_links=no
14783  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14784  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14785$as_echo "$hard_links" >&6; }
14786  if test "$hard_links" = no; then
14787    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14788$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14789    need_locks=warn
14790  fi
14791else
14792  need_locks=no
14793fi
14794
14795{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14796$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14797
14798  runpath_var=
14799  allow_undefined_flag_F77=
14800  enable_shared_with_static_runtimes_F77=no
14801  archive_cmds_F77=
14802  archive_expsym_cmds_F77=
14803  old_archive_From_new_cmds_F77=
14804  old_archive_from_expsyms_cmds_F77=
14805  export_dynamic_flag_spec_F77=
14806  whole_archive_flag_spec_F77=
14807  thread_safe_flag_spec_F77=
14808  hardcode_libdir_flag_spec_F77=
14809  hardcode_libdir_flag_spec_ld_F77=
14810  hardcode_libdir_separator_F77=
14811  hardcode_direct_F77=no
14812  hardcode_minus_L_F77=no
14813  hardcode_shlibpath_var_F77=unsupported
14814  link_all_deplibs_F77=unknown
14815  hardcode_automatic_F77=no
14816  module_cmds_F77=
14817  module_expsym_cmds_F77=
14818  always_export_symbols_F77=no
14819  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14820  # include_expsyms should be a list of space-separated symbols to be *always*
14821  # included in the symbol list
14822  include_expsyms_F77=
14823  # exclude_expsyms can be an extended regexp of symbols to exclude
14824  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14825  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14826  # as well as any symbol that contains `d'.
14827  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14828  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14829  # platforms (ab)use it in PIC code, but their linkers get confused if
14830  # the symbol is explicitly referenced.  Since portable code cannot
14831  # rely on this symbol name, it's probably fine to never include it in
14832  # preloaded symbol tables.
14833  # Exclude shared library initialization/finalization symbols.
14834  extract_expsyms_cmds=
14835  # Just being paranoid about ensuring that cc_basename is set.
14836  for cc_temp in $compiler""; do
14837  case $cc_temp in
14838    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14839    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14840    \-*) ;;
14841    *) break;;
14842  esac
14843done
14844cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14845
14846  case $host_os in
14847  cygwin* | mingw* | pw32*)
14848    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14849    # When not using gcc, we currently assume that we are using
14850    # Microsoft Visual C++.
14851    if test "$GCC" != yes; then
14852      with_gnu_ld=no
14853    fi
14854    ;;
14855  interix*)
14856    # we just hope/assume this is gcc and not c89 (= MSVC++)
14857    with_gnu_ld=yes
14858    ;;
14859  openbsd*)
14860    with_gnu_ld=no
14861    ;;
14862  esac
14863
14864  ld_shlibs_F77=yes
14865  if test "$with_gnu_ld" = yes; then
14866    # If archive_cmds runs LD, not CC, wlarc should be empty
14867    wlarc='${wl}'
14868
14869    # Set some defaults for GNU ld with shared library support. These
14870    # are reset later if shared libraries are not supported. Putting them
14871    # here allows them to be overridden if necessary.
14872    runpath_var=LD_RUN_PATH
14873    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14874    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14875    # ancient GNU ld didn't support --whole-archive et. al.
14876    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14877	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14878      else
14879  	whole_archive_flag_spec_F77=
14880    fi
14881    supports_anon_versioning=no
14882    case `$LD -v 2>/dev/null` in
14883      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14884      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14885      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14886      *\ 2.11.*) ;; # other 2.11 versions
14887      *) supports_anon_versioning=yes ;;
14888    esac
14889
14890    # See if GNU ld supports shared libraries.
14891    case $host_os in
14892    aix[3-9]*)
14893      # On AIX/PPC, the GNU linker is very broken
14894      if test "$host_cpu" != ia64; then
14895	ld_shlibs_F77=no
14896	cat <<EOF 1>&2
14897
14898*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14899*** to be unable to reliably create shared libraries on AIX.
14900*** Therefore, libtool is disabling shared libraries support.  If you
14901*** really care for shared libraries, you may want to modify your PATH
14902*** so that a non-GNU linker is found, and then restart.
14903
14904EOF
14905      fi
14906      ;;
14907
14908    amigaos*)
14909      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)'
14910      hardcode_libdir_flag_spec_F77='-L$libdir'
14911      hardcode_minus_L_F77=yes
14912
14913      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14914      # that the semantics of dynamic libraries on AmigaOS, at least up
14915      # to version 4, is to share data among multiple programs linked
14916      # with the same dynamic library.  Since this doesn't match the
14917      # behavior of shared libraries on other platforms, we can't use
14918      # them.
14919      ld_shlibs_F77=no
14920      ;;
14921
14922    beos*)
14923      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14924	allow_undefined_flag_F77=unsupported
14925	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14926	# support --undefined.  This deserves some investigation.  FIXME
14927	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928      else
14929	ld_shlibs_F77=no
14930      fi
14931      ;;
14932
14933    cygwin* | mingw* | pw32*)
14934      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14935      # as there is no search path for DLLs.
14936      hardcode_libdir_flag_spec_F77='-L$libdir'
14937      allow_undefined_flag_F77=unsupported
14938      always_export_symbols_F77=no
14939      enable_shared_with_static_runtimes_F77=yes
14940      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14941
14942      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14943        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14944	# If the export-symbols file already is a .def file (1st line
14945	# is EXPORTS), use it as is; otherwise, prepend...
14946	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14947	  cp $export_symbols $output_objdir/$soname.def;
14948	else
14949	  echo EXPORTS > $output_objdir/$soname.def;
14950	  cat $export_symbols >> $output_objdir/$soname.def;
14951	fi~
14952	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14953      else
14954	ld_shlibs_F77=no
14955      fi
14956      ;;
14957
14958    interix[3-9]*)
14959      hardcode_direct_F77=no
14960      hardcode_shlibpath_var_F77=no
14961      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14962      export_dynamic_flag_spec_F77='${wl}-E'
14963      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14964      # Instead, shared libraries are loaded at an image base (0x10000000 by
14965      # default) and relocated if they conflict, which is a slow very memory
14966      # consuming and fragmenting process.  To avoid this, we pick a random,
14967      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14968      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14969      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'
14970      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'
14971      ;;
14972
14973    gnu* | linux* | k*bsd*-gnu)
14974      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14975	tmp_addflag=
14976	case $cc_basename,$host_cpu in
14977	pgcc*)				# Portland Group C compiler
14978	  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'
14979	  tmp_addflag=' $pic_flag'
14980	  ;;
14981	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14982	  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'
14983	  tmp_addflag=' $pic_flag -Mnomain' ;;
14984	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14985	  tmp_addflag=' -i_dynamic' ;;
14986	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14987	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14988	ifc* | ifort*)			# Intel Fortran compiler
14989	  tmp_addflag=' -nofor_main' ;;
14990	esac
14991	case `$CC -V 2>&1 | sed 5q` in
14992	*Sun\ C*)			# Sun C 5.9
14993	  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'
14994	  tmp_sharedflag='-G' ;;
14995	*Sun\ F*)			# Sun Fortran 8.3
14996	  tmp_sharedflag='-G' ;;
14997	*)
14998	  tmp_sharedflag='-shared' ;;
14999	esac
15000	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001
15002	if test $supports_anon_versioning = yes; then
15003	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15004  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15005  $echo "local: *; };" >> $output_objdir/$libname.ver~
15006	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15007	fi
15008      else
15009	ld_shlibs_F77=no
15010      fi
15011      ;;
15012
15013    netbsd*)
15014      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15015	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15016	wlarc=
15017      else
15018	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15019	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15020      fi
15021      ;;
15022
15023    solaris*)
15024      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15025	ld_shlibs_F77=no
15026	cat <<EOF 1>&2
15027
15028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15029*** create shared libraries on Solaris systems.  Therefore, libtool
15030*** is disabling shared libraries support.  We urge you to upgrade GNU
15031*** binutils to release 2.9.1 or newer.  Another option is to modify
15032*** your PATH or compiler configuration so that the native linker is
15033*** used, and then restart.
15034
15035EOF
15036      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15037	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15039      else
15040	ld_shlibs_F77=no
15041      fi
15042      ;;
15043
15044    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15045      case `$LD -v 2>&1` in
15046        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15047	ld_shlibs_F77=no
15048	cat <<_LT_EOF 1>&2
15049
15050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15051*** reliably create shared libraries on SCO systems.  Therefore, libtool
15052*** is disabling shared libraries support.  We urge you to upgrade GNU
15053*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15054*** your PATH or compiler configuration so that the native linker is
15055*** used, and then restart.
15056
15057_LT_EOF
15058	;;
15059	*)
15060	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15061	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15062	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15063	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15064	  else
15065	    ld_shlibs_F77=no
15066	  fi
15067	;;
15068      esac
15069      ;;
15070
15071    sunos4*)
15072      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15073      wlarc=
15074      hardcode_direct_F77=yes
15075      hardcode_shlibpath_var_F77=no
15076      ;;
15077
15078    *)
15079      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15080	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15081	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15082      else
15083	ld_shlibs_F77=no
15084      fi
15085      ;;
15086    esac
15087
15088    if test "$ld_shlibs_F77" = no; then
15089      runpath_var=
15090      hardcode_libdir_flag_spec_F77=
15091      export_dynamic_flag_spec_F77=
15092      whole_archive_flag_spec_F77=
15093    fi
15094  else
15095    # PORTME fill in a description of your system's linker (not GNU ld)
15096    case $host_os in
15097    aix3*)
15098      allow_undefined_flag_F77=unsupported
15099      always_export_symbols_F77=yes
15100      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'
15101      # Note: this linker hardcodes the directories in LIBPATH if there
15102      # are no directories specified by -L.
15103      hardcode_minus_L_F77=yes
15104      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15105	# Neither direct hardcoding nor static linking is supported with a
15106	# broken collect2.
15107	hardcode_direct_F77=unsupported
15108      fi
15109      ;;
15110
15111    aix[4-9]*)
15112      if test "$host_cpu" = ia64; then
15113	# On IA64, the linker does run time linking by default, so we don't
15114	# have to do anything special.
15115	aix_use_runtimelinking=no
15116	exp_sym_flag='-Bexport'
15117	no_entry_flag=""
15118      else
15119	# If we're using GNU nm, then we don't want the "-C" option.
15120	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15121	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15122	  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'
15123	else
15124	  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'
15125	fi
15126	aix_use_runtimelinking=no
15127
15128	# Test if we are trying to use run time linking or normal
15129	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15130	# need to do runtime linking.
15131	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15132	  for ld_flag in $LDFLAGS; do
15133  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15134  	    aix_use_runtimelinking=yes
15135  	    break
15136  	  fi
15137	  done
15138	  ;;
15139	esac
15140
15141	exp_sym_flag='-bexport'
15142	no_entry_flag='-bnoentry'
15143      fi
15144
15145      # When large executables or shared objects are built, AIX ld can
15146      # have problems creating the table of contents.  If linking a library
15147      # or program results in "error TOC overflow" add -mminimal-toc to
15148      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15149      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15150
15151      archive_cmds_F77=''
15152      hardcode_direct_F77=yes
15153      hardcode_libdir_separator_F77=':'
15154      link_all_deplibs_F77=yes
15155
15156      if test "$GCC" = yes; then
15157	case $host_os in aix4.[012]|aix4.[012].*)
15158	# We only want to do this on AIX 4.2 and lower, the check
15159	# below for broken collect2 doesn't work under 4.3+
15160	  collect2name=`${CC} -print-prog-name=collect2`
15161	  if test -f "$collect2name" && \
15162  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15163	  then
15164  	  # We have reworked collect2
15165  	  :
15166	  else
15167  	  # We have old collect2
15168  	  hardcode_direct_F77=unsupported
15169  	  # It fails to find uninstalled libraries when the uninstalled
15170  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15171  	  # to unsupported forces relinking
15172  	  hardcode_minus_L_F77=yes
15173  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15174  	  hardcode_libdir_separator_F77=
15175	  fi
15176	  ;;
15177	esac
15178	shared_flag='-shared'
15179	if test "$aix_use_runtimelinking" = yes; then
15180	  shared_flag="$shared_flag "'${wl}-G'
15181	fi
15182      else
15183	# not using gcc
15184	if test "$host_cpu" = ia64; then
15185  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15186  	# chokes on -Wl,-G. The following line is correct:
15187	  shared_flag='-G'
15188	else
15189	  if test "$aix_use_runtimelinking" = yes; then
15190	    shared_flag='${wl}-G'
15191	  else
15192	    shared_flag='${wl}-bM:SRE'
15193	  fi
15194	fi
15195      fi
15196
15197      # It seems that -bexpall does not export symbols beginning with
15198      # underscore (_), so it is better to generate a list of symbols to export.
15199      always_export_symbols_F77=yes
15200      if test "$aix_use_runtimelinking" = yes; then
15201	# Warning - without using the other runtime loading flags (-brtl),
15202	# -berok will link without error, but may produce a broken library.
15203	allow_undefined_flag_F77='-berok'
15204       # Determine the default libpath from the value encoded in an empty executable.
15205       cat >conftest.$ac_ext <<_ACEOF
15206      program main
15207
15208      end
15209_ACEOF
15210rm -f conftest.$ac_objext conftest$ac_exeext
15211if { (ac_try="$ac_link"
15212case "(($ac_try" in
15213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214  *) ac_try_echo=$ac_try;;
15215esac
15216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15217$as_echo "$ac_try_echo") >&5
15218  (eval "$ac_link") 2>conftest.er1
15219  ac_status=$?
15220  grep -v '^ *+' conftest.er1 >conftest.err
15221  rm -f conftest.er1
15222  cat conftest.err >&5
15223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224  (exit $ac_status); } && {
15225	 test -z "$ac_f77_werror_flag" ||
15226	 test ! -s conftest.err
15227       } && test -s conftest$ac_exeext && {
15228	 test "$cross_compiling" = yes ||
15229	 $as_test_x conftest$ac_exeext
15230       }; then
15231
15232lt_aix_libpath_sed='
15233    /Import File Strings/,/^$/ {
15234	/^0/ {
15235	    s/^0  *\(.*\)$/\1/
15236	    p
15237	}
15238    }'
15239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15240# Check for a 64-bit object if we didn't find anything.
15241if test -z "$aix_libpath"; then
15242  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243fi
15244else
15245  $as_echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248
15249fi
15250
15251rm -rf conftest.dSYM
15252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15253      conftest$ac_exeext conftest.$ac_ext
15254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15255
15256       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15257	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"
15258       else
15259	if test "$host_cpu" = ia64; then
15260	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15261	  allow_undefined_flag_F77="-z nodefs"
15262	  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"
15263	else
15264	 # Determine the default libpath from the value encoded in an empty executable.
15265	 cat >conftest.$ac_ext <<_ACEOF
15266      program main
15267
15268      end
15269_ACEOF
15270rm -f conftest.$ac_objext conftest$ac_exeext
15271if { (ac_try="$ac_link"
15272case "(($ac_try" in
15273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274  *) ac_try_echo=$ac_try;;
15275esac
15276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15277$as_echo "$ac_try_echo") >&5
15278  (eval "$ac_link") 2>conftest.er1
15279  ac_status=$?
15280  grep -v '^ *+' conftest.er1 >conftest.err
15281  rm -f conftest.er1
15282  cat conftest.err >&5
15283  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284  (exit $ac_status); } && {
15285	 test -z "$ac_f77_werror_flag" ||
15286	 test ! -s conftest.err
15287       } && test -s conftest$ac_exeext && {
15288	 test "$cross_compiling" = yes ||
15289	 $as_test_x conftest$ac_exeext
15290       }; then
15291
15292lt_aix_libpath_sed='
15293    /Import File Strings/,/^$/ {
15294	/^0/ {
15295	    s/^0  *\(.*\)$/\1/
15296	    p
15297	}
15298    }'
15299aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300# Check for a 64-bit object if we didn't find anything.
15301if test -z "$aix_libpath"; then
15302  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15303fi
15304else
15305  $as_echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308
15309fi
15310
15311rm -rf conftest.dSYM
15312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15313      conftest$ac_exeext conftest.$ac_ext
15314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15315
15316	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15317	  # Warning - without using the other run time loading flags,
15318	  # -berok will link without error, but may produce a broken library.
15319	  no_undefined_flag_F77=' ${wl}-bernotok'
15320	  allow_undefined_flag_F77=' ${wl}-berok'
15321	  # Exported symbols can be pulled into shared objects from archives
15322	  whole_archive_flag_spec_F77='$convenience'
15323	  archive_cmds_need_lc_F77=yes
15324	  # This is similar to how AIX traditionally builds its shared libraries.
15325	  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'
15326	fi
15327      fi
15328      ;;
15329
15330    amigaos*)
15331      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)'
15332      hardcode_libdir_flag_spec_F77='-L$libdir'
15333      hardcode_minus_L_F77=yes
15334      # see comment about different semantics on the GNU ld section
15335      ld_shlibs_F77=no
15336      ;;
15337
15338    bsdi[45]*)
15339      export_dynamic_flag_spec_F77=-rdynamic
15340      ;;
15341
15342    cygwin* | mingw* | pw32*)
15343      # When not using gcc, we currently assume that we are using
15344      # Microsoft Visual C++.
15345      # hardcode_libdir_flag_spec is actually meaningless, as there is
15346      # no search path for DLLs.
15347      hardcode_libdir_flag_spec_F77=' '
15348      allow_undefined_flag_F77=unsupported
15349      # Tell ltmain to make .lib files, not .a files.
15350      libext=lib
15351      # Tell ltmain to make .dll files, not .so files.
15352      shrext_cmds=".dll"
15353      # FIXME: Setting linknames here is a bad hack.
15354      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15355      # The linker will automatically build a .lib file if we build a DLL.
15356      old_archive_From_new_cmds_F77='true'
15357      # FIXME: Should let the user specify the lib program.
15358      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15359      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15360      enable_shared_with_static_runtimes_F77=yes
15361      ;;
15362
15363    darwin* | rhapsody*)
15364      case $host_os in
15365        rhapsody* | darwin1.[012])
15366         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15367         ;;
15368       *) # Darwin 1.3 on
15369         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15371         else
15372           case ${MACOSX_DEPLOYMENT_TARGET} in
15373             10.[012])
15374               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15375               ;;
15376             10.*)
15377               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15378               ;;
15379           esac
15380         fi
15381         ;;
15382      esac
15383      archive_cmds_need_lc_F77=no
15384      hardcode_direct_F77=no
15385      hardcode_automatic_F77=yes
15386      hardcode_shlibpath_var_F77=unsupported
15387      whole_archive_flag_spec_F77=''
15388      link_all_deplibs_F77=yes
15389    if test "$GCC" = yes ; then
15390    	output_verbose_link_cmd='echo'
15391        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}"
15392        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15393        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}"
15394        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}"
15395    else
15396      case $cc_basename in
15397        xlc*)
15398         output_verbose_link_cmd='echo'
15399         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15400         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15401          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15402         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}'
15403          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}'
15404          ;;
15405       *)
15406         ld_shlibs_F77=no
15407          ;;
15408      esac
15409    fi
15410      ;;
15411
15412    dgux*)
15413      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15414      hardcode_libdir_flag_spec_F77='-L$libdir'
15415      hardcode_shlibpath_var_F77=no
15416      ;;
15417
15418    freebsd1*)
15419      ld_shlibs_F77=no
15420      ;;
15421
15422    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15423    # support.  Future versions do this automatically, but an explicit c++rt0.o
15424    # does not break anything, and helps significantly (at the cost of a little
15425    # extra space).
15426    freebsd2.2*)
15427      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15428      hardcode_libdir_flag_spec_F77='-R$libdir'
15429      hardcode_direct_F77=yes
15430      hardcode_shlibpath_var_F77=no
15431      ;;
15432
15433    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15434    freebsd2*)
15435      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15436      hardcode_direct_F77=yes
15437      hardcode_minus_L_F77=yes
15438      hardcode_shlibpath_var_F77=no
15439      ;;
15440
15441    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15442    freebsd* | dragonfly*)
15443      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15444      hardcode_libdir_flag_spec_F77='-R$libdir'
15445      hardcode_direct_F77=yes
15446      hardcode_shlibpath_var_F77=no
15447      ;;
15448
15449    hpux9*)
15450      if test "$GCC" = yes; then
15451	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'
15452      else
15453	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'
15454      fi
15455      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15456      hardcode_libdir_separator_F77=:
15457      hardcode_direct_F77=yes
15458
15459      # hardcode_minus_L: Not really in the search PATH,
15460      # but as the default location of the library.
15461      hardcode_minus_L_F77=yes
15462      export_dynamic_flag_spec_F77='${wl}-E'
15463      ;;
15464
15465    hpux10*)
15466      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15467	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15468      else
15469	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15470      fi
15471      if test "$with_gnu_ld" = no; then
15472	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15473	hardcode_libdir_separator_F77=:
15474
15475	hardcode_direct_F77=yes
15476	export_dynamic_flag_spec_F77='${wl}-E'
15477
15478	# hardcode_minus_L: Not really in the search PATH,
15479	# but as the default location of the library.
15480	hardcode_minus_L_F77=yes
15481      fi
15482      ;;
15483
15484    hpux11*)
15485      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15486	case $host_cpu in
15487	hppa*64*)
15488	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489	  ;;
15490	ia64*)
15491	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15492	  ;;
15493	*)
15494	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15495	  ;;
15496	esac
15497      else
15498	case $host_cpu in
15499	hppa*64*)
15500	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15501	  ;;
15502	ia64*)
15503	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15504	  ;;
15505	*)
15506	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15507	  ;;
15508	esac
15509      fi
15510      if test "$with_gnu_ld" = no; then
15511	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15512	hardcode_libdir_separator_F77=:
15513
15514	case $host_cpu in
15515	hppa*64*|ia64*)
15516	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15517	  hardcode_direct_F77=no
15518	  hardcode_shlibpath_var_F77=no
15519	  ;;
15520	*)
15521	  hardcode_direct_F77=yes
15522	  export_dynamic_flag_spec_F77='${wl}-E'
15523
15524	  # hardcode_minus_L: Not really in the search PATH,
15525	  # but as the default location of the library.
15526	  hardcode_minus_L_F77=yes
15527	  ;;
15528	esac
15529      fi
15530      ;;
15531
15532    irix5* | irix6* | nonstopux*)
15533      if test "$GCC" = yes; then
15534	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'
15535      else
15536	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'
15537	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15538      fi
15539      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15540      hardcode_libdir_separator_F77=:
15541      link_all_deplibs_F77=yes
15542      ;;
15543
15544    netbsd*)
15545      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15546	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15547      else
15548	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15549      fi
15550      hardcode_libdir_flag_spec_F77='-R$libdir'
15551      hardcode_direct_F77=yes
15552      hardcode_shlibpath_var_F77=no
15553      ;;
15554
15555    newsos6)
15556      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557      hardcode_direct_F77=yes
15558      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15559      hardcode_libdir_separator_F77=:
15560      hardcode_shlibpath_var_F77=no
15561      ;;
15562
15563    openbsd*)
15564      if test -f /usr/libexec/ld.so; then
15565	hardcode_direct_F77=yes
15566	hardcode_shlibpath_var_F77=no
15567	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15568	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15569	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15570	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15571	  export_dynamic_flag_spec_F77='${wl}-E'
15572	else
15573	  case $host_os in
15574	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15575	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576	     hardcode_libdir_flag_spec_F77='-R$libdir'
15577	     ;;
15578	   *)
15579	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15581	     ;;
15582	  esac
15583        fi
15584      else
15585	ld_shlibs_F77=no
15586      fi
15587      ;;
15588
15589    os2*)
15590      hardcode_libdir_flag_spec_F77='-L$libdir'
15591      hardcode_minus_L_F77=yes
15592      allow_undefined_flag_F77=unsupported
15593      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'
15594      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15595      ;;
15596
15597    osf3*)
15598      if test "$GCC" = yes; then
15599	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15600	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'
15601      else
15602	allow_undefined_flag_F77=' -expect_unresolved \*'
15603	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'
15604      fi
15605      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15606      hardcode_libdir_separator_F77=:
15607      ;;
15608
15609    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15610      if test "$GCC" = yes; then
15611	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15612	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'
15613	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15614      else
15615	allow_undefined_flag_F77=' -expect_unresolved \*'
15616	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'
15617	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~
15618	$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'
15619
15620	# Both c and cxx compiler support -rpath directly
15621	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15622      fi
15623      hardcode_libdir_separator_F77=:
15624      ;;
15625
15626    solaris*)
15627      no_undefined_flag_F77=' -z text'
15628      if test "$GCC" = yes; then
15629	wlarc='${wl}'
15630	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15632	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15633      else
15634	wlarc=''
15635	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15637  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15638      fi
15639      hardcode_libdir_flag_spec_F77='-R$libdir'
15640      hardcode_shlibpath_var_F77=no
15641      case $host_os in
15642      solaris2.[0-5] | solaris2.[0-5].*) ;;
15643      *)
15644	# The compiler driver will combine and reorder linker options,
15645	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15646	# but is careful enough not to reorder.
15647 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15648	if test "$GCC" = yes; then
15649	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15650	else
15651	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15652	fi
15653	;;
15654      esac
15655      link_all_deplibs_F77=yes
15656      ;;
15657
15658    sunos4*)
15659      if test "x$host_vendor" = xsequent; then
15660	# Use $CC to link under sequent, because it throws in some extra .o
15661	# files that make .init and .fini sections work.
15662	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15663      else
15664	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15665      fi
15666      hardcode_libdir_flag_spec_F77='-L$libdir'
15667      hardcode_direct_F77=yes
15668      hardcode_minus_L_F77=yes
15669      hardcode_shlibpath_var_F77=no
15670      ;;
15671
15672    sysv4)
15673      case $host_vendor in
15674	sni)
15675	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676	  hardcode_direct_F77=yes # is this really true???
15677	;;
15678	siemens)
15679	  ## LD is ld it makes a PLAMLIB
15680	  ## CC just makes a GrossModule.
15681	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15682	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15683	  hardcode_direct_F77=no
15684        ;;
15685	motorola)
15686	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15688	;;
15689      esac
15690      runpath_var='LD_RUN_PATH'
15691      hardcode_shlibpath_var_F77=no
15692      ;;
15693
15694    sysv4.3*)
15695      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696      hardcode_shlibpath_var_F77=no
15697      export_dynamic_flag_spec_F77='-Bexport'
15698      ;;
15699
15700    sysv4*MP*)
15701      if test -d /usr/nec; then
15702	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703	hardcode_shlibpath_var_F77=no
15704	runpath_var=LD_RUN_PATH
15705	hardcode_runpath_var=yes
15706	ld_shlibs_F77=yes
15707      fi
15708      ;;
15709
15710    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15711      no_undefined_flag_F77='${wl}-z,text'
15712      archive_cmds_need_lc_F77=no
15713      hardcode_shlibpath_var_F77=no
15714      runpath_var='LD_RUN_PATH'
15715
15716      if test "$GCC" = yes; then
15717	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15718	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719      else
15720	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722      fi
15723      ;;
15724
15725    sysv5* | sco3.2v5* | sco5v6*)
15726      # Note: We can NOT use -z defs as we might desire, because we do not
15727      # link with -lc, and that would cause any symbols used from libc to
15728      # always be unresolved, which means just about no library would
15729      # ever link correctly.  If we're not using GNU ld we use -z text
15730      # though, which does catch some bad symbols but isn't as heavy-handed
15731      # as -z defs.
15732      no_undefined_flag_F77='${wl}-z,text'
15733      allow_undefined_flag_F77='${wl}-z,nodefs'
15734      archive_cmds_need_lc_F77=no
15735      hardcode_shlibpath_var_F77=no
15736      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15737      hardcode_libdir_separator_F77=':'
15738      link_all_deplibs_F77=yes
15739      export_dynamic_flag_spec_F77='${wl}-Bexport'
15740      runpath_var='LD_RUN_PATH'
15741
15742      if test "$GCC" = yes; then
15743	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15745      else
15746	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15747	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748      fi
15749      ;;
15750
15751    uts4*)
15752      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753      hardcode_libdir_flag_spec_F77='-L$libdir'
15754      hardcode_shlibpath_var_F77=no
15755      ;;
15756
15757    *)
15758      ld_shlibs_F77=no
15759      ;;
15760    esac
15761  fi
15762
15763{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15764$as_echo "$ld_shlibs_F77" >&6; }
15765test "$ld_shlibs_F77" = no && can_build_shared=no
15766
15767#
15768# Do we need to explicitly link libc?
15769#
15770case "x$archive_cmds_need_lc_F77" in
15771x|xyes)
15772  # Assume -lc should be added
15773  archive_cmds_need_lc_F77=yes
15774
15775  if test "$enable_shared" = yes && test "$GCC" = yes; then
15776    case $archive_cmds_F77 in
15777    *'~'*)
15778      # FIXME: we may have to deal with multi-command sequences.
15779      ;;
15780    '$CC '*)
15781      # Test whether the compiler implicitly links with -lc since on some
15782      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15783      # to ld, don't add -lc before -lgcc.
15784      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15785$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15786      $rm conftest*
15787      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788
15789      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15790  (eval $ac_compile) 2>&5
15791  ac_status=$?
15792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793  (exit $ac_status); } 2>conftest.err; then
15794        soname=conftest
15795        lib=conftest
15796        libobjs=conftest.$ac_objext
15797        deplibs=
15798        wl=$lt_prog_compiler_wl_F77
15799	pic_flag=$lt_prog_compiler_pic_F77
15800        compiler_flags=-v
15801        linker_flags=-v
15802        verstring=
15803        output_objdir=.
15804        libname=conftest
15805        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15806        allow_undefined_flag_F77=
15807        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15808  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15809  ac_status=$?
15810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811  (exit $ac_status); }
15812        then
15813	  archive_cmds_need_lc_F77=no
15814        else
15815	  archive_cmds_need_lc_F77=yes
15816        fi
15817        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15818      else
15819        cat conftest.err 1>&5
15820      fi
15821      $rm conftest*
15822      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15823$as_echo "$archive_cmds_need_lc_F77" >&6; }
15824      ;;
15825    esac
15826  fi
15827  ;;
15828esac
15829
15830{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15831$as_echo_n "checking dynamic linker characteristics... " >&6; }
15832library_names_spec=
15833libname_spec='lib$name'
15834soname_spec=
15835shrext_cmds=".so"
15836postinstall_cmds=
15837postuninstall_cmds=
15838finish_cmds=
15839finish_eval=
15840shlibpath_var=
15841shlibpath_overrides_runpath=unknown
15842version_type=none
15843dynamic_linker="$host_os ld.so"
15844sys_lib_dlsearch_path_spec="/lib /usr/lib"
15845
15846need_lib_prefix=unknown
15847hardcode_into_libs=no
15848
15849# when you set need_version to no, make sure it does not cause -set_version
15850# flags to be left without arguments
15851need_version=unknown
15852
15853case $host_os in
15854aix3*)
15855  version_type=linux
15856  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15857  shlibpath_var=LIBPATH
15858
15859  # AIX 3 has no versioning support, so we append a major version to the name.
15860  soname_spec='${libname}${release}${shared_ext}$major'
15861  ;;
15862
15863aix[4-9]*)
15864  version_type=linux
15865  need_lib_prefix=no
15866  need_version=no
15867  hardcode_into_libs=yes
15868  if test "$host_cpu" = ia64; then
15869    # AIX 5 supports IA64
15870    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15871    shlibpath_var=LD_LIBRARY_PATH
15872  else
15873    # With GCC up to 2.95.x, collect2 would create an import file
15874    # for dependence libraries.  The import file would start with
15875    # the line `#! .'.  This would cause the generated library to
15876    # depend on `.', always an invalid library.  This was fixed in
15877    # development snapshots of GCC prior to 3.0.
15878    case $host_os in
15879      aix4 | aix4.[01] | aix4.[01].*)
15880      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15881	   echo ' yes '
15882	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15883	:
15884      else
15885	can_build_shared=no
15886      fi
15887      ;;
15888    esac
15889    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15890    # soname into executable. Probably we can add versioning support to
15891    # collect2, so additional links can be useful in future.
15892    if test "$aix_use_runtimelinking" = yes; then
15893      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15894      # instead of lib<name>.a to let people know that these are not
15895      # typical AIX shared libraries.
15896      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897    else
15898      # We preserve .a as extension for shared libraries through AIX4.2
15899      # and later when we are not doing run time linking.
15900      library_names_spec='${libname}${release}.a $libname.a'
15901      soname_spec='${libname}${release}${shared_ext}$major'
15902    fi
15903    shlibpath_var=LIBPATH
15904  fi
15905  ;;
15906
15907amigaos*)
15908  library_names_spec='$libname.ixlibrary $libname.a'
15909  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15910  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'
15911  ;;
15912
15913beos*)
15914  library_names_spec='${libname}${shared_ext}'
15915  dynamic_linker="$host_os ld.so"
15916  shlibpath_var=LIBRARY_PATH
15917  ;;
15918
15919bsdi[45]*)
15920  version_type=linux
15921  need_version=no
15922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923  soname_spec='${libname}${release}${shared_ext}$major'
15924  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15925  shlibpath_var=LD_LIBRARY_PATH
15926  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15927  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15928  # the default ld.so.conf also contains /usr/contrib/lib and
15929  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15930  # libtool to hard-code these into programs
15931  ;;
15932
15933cygwin* | mingw* | pw32*)
15934  version_type=windows
15935  shrext_cmds=".dll"
15936  need_version=no
15937  need_lib_prefix=no
15938
15939  case $GCC,$host_os in
15940  yes,cygwin* | yes,mingw* | yes,pw32*)
15941    library_names_spec='$libname.dll.a'
15942    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15943    postinstall_cmds='base_file=`basename \${file}`~
15944      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15945      dldir=$destdir/`dirname \$dlpath`~
15946      test -d \$dldir || mkdir -p \$dldir~
15947      $install_prog $dir/$dlname \$dldir/$dlname~
15948      chmod a+x \$dldir/$dlname'
15949    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15950      dlpath=$dir/\$dldll~
15951       $rm \$dlpath'
15952    shlibpath_overrides_runpath=yes
15953
15954    case $host_os in
15955    cygwin*)
15956      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15957      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15959      ;;
15960    mingw*)
15961      # MinGW DLLs use traditional 'lib' prefix
15962      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15964      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15965        # It is most probably a Windows format PATH printed by
15966        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15967        # path with ; separators, and with drive letters. We can handle the
15968        # drive letters (cygwin fileutils understands them), so leave them,
15969        # especially as we might pass files found there to a mingw objdump,
15970        # which wouldn't understand a cygwinified path. Ahh.
15971        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15972      else
15973        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15974      fi
15975      ;;
15976    pw32*)
15977      # pw32 DLLs use 'pw' prefix rather than 'lib'
15978      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15979      ;;
15980    esac
15981    ;;
15982
15983  *)
15984    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15985    ;;
15986  esac
15987  dynamic_linker='Win32 ld.exe'
15988  # FIXME: first we should search . and the directory the executable is in
15989  shlibpath_var=PATH
15990  ;;
15991
15992darwin* | rhapsody*)
15993  dynamic_linker="$host_os dyld"
15994  version_type=darwin
15995  need_lib_prefix=no
15996  need_version=no
15997  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15998  soname_spec='${libname}${release}${major}$shared_ext'
15999  shlibpath_overrides_runpath=yes
16000  shlibpath_var=DYLD_LIBRARY_PATH
16001  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16002
16003  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16004  ;;
16005
16006dgux*)
16007  version_type=linux
16008  need_lib_prefix=no
16009  need_version=no
16010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16011  soname_spec='${libname}${release}${shared_ext}$major'
16012  shlibpath_var=LD_LIBRARY_PATH
16013  ;;
16014
16015freebsd1*)
16016  dynamic_linker=no
16017  ;;
16018
16019freebsd* | dragonfly*)
16020  # DragonFly does not have aout.  When/if they implement a new
16021  # versioning mechanism, adjust this.
16022  if test -x /usr/bin/objformat; then
16023    objformat=`/usr/bin/objformat`
16024  else
16025    case $host_os in
16026    freebsd[123]*) objformat=aout ;;
16027    *) objformat=elf ;;
16028    esac
16029  fi
16030  version_type=freebsd-$objformat
16031  case $version_type in
16032    freebsd-elf*)
16033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16034      need_version=no
16035      need_lib_prefix=no
16036      ;;
16037    freebsd-*)
16038      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16039      need_version=yes
16040      ;;
16041  esac
16042  shlibpath_var=LD_LIBRARY_PATH
16043  case $host_os in
16044  freebsd2*)
16045    shlibpath_overrides_runpath=yes
16046    ;;
16047  freebsd3.[01]* | freebsdelf3.[01]*)
16048    shlibpath_overrides_runpath=yes
16049    hardcode_into_libs=yes
16050    ;;
16051  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053    shlibpath_overrides_runpath=no
16054    hardcode_into_libs=yes
16055    ;;
16056  *) # from 4.6 on, and DragonFly
16057    shlibpath_overrides_runpath=yes
16058    hardcode_into_libs=yes
16059    ;;
16060  esac
16061  ;;
16062
16063gnu*)
16064  version_type=linux
16065  need_lib_prefix=no
16066  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
16070  hardcode_into_libs=yes
16071  ;;
16072
16073hpux9* | hpux10* | hpux11*)
16074  # Give a soname corresponding to the major version so that dld.sl refuses to
16075  # link against other versions.
16076  version_type=sunos
16077  need_lib_prefix=no
16078  need_version=no
16079  case $host_cpu in
16080  ia64*)
16081    shrext_cmds='.so'
16082    hardcode_into_libs=yes
16083    dynamic_linker="$host_os dld.so"
16084    shlibpath_var=LD_LIBRARY_PATH
16085    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087    soname_spec='${libname}${release}${shared_ext}$major'
16088    if test "X$HPUX_IA64_MODE" = X32; then
16089      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16090    else
16091      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16092    fi
16093    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094    ;;
16095   hppa*64*)
16096     shrext_cmds='.sl'
16097     hardcode_into_libs=yes
16098     dynamic_linker="$host_os dld.sl"
16099     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102     soname_spec='${libname}${release}${shared_ext}$major'
16103     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105     ;;
16106   *)
16107    shrext_cmds='.sl'
16108    dynamic_linker="$host_os dld.sl"
16109    shlibpath_var=SHLIB_PATH
16110    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112    soname_spec='${libname}${release}${shared_ext}$major'
16113    ;;
16114  esac
16115  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16116  postinstall_cmds='chmod 555 $lib'
16117  ;;
16118
16119interix[3-9]*)
16120  version_type=linux
16121  need_lib_prefix=no
16122  need_version=no
16123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124  soname_spec='${libname}${release}${shared_ext}$major'
16125  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16126  shlibpath_var=LD_LIBRARY_PATH
16127  shlibpath_overrides_runpath=no
16128  hardcode_into_libs=yes
16129  ;;
16130
16131irix5* | irix6* | nonstopux*)
16132  case $host_os in
16133    nonstopux*) version_type=nonstopux ;;
16134    *)
16135	if test "$lt_cv_prog_gnu_ld" = yes; then
16136		version_type=linux
16137	else
16138		version_type=irix
16139	fi ;;
16140  esac
16141  need_lib_prefix=no
16142  need_version=no
16143  soname_spec='${libname}${release}${shared_ext}$major'
16144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16145  case $host_os in
16146  irix5* | nonstopux*)
16147    libsuff= shlibsuff=
16148    ;;
16149  *)
16150    case $LD in # libtool.m4 will add one of these switches to LD
16151    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16152      libsuff= shlibsuff= libmagic=32-bit;;
16153    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16154      libsuff=32 shlibsuff=N32 libmagic=N32;;
16155    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16156      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16157    *) libsuff= shlibsuff= libmagic=never-match;;
16158    esac
16159    ;;
16160  esac
16161  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16162  shlibpath_overrides_runpath=no
16163  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16164  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16165  hardcode_into_libs=yes
16166  ;;
16167
16168# No shared lib support for Linux oldld, aout, or coff.
16169linux*oldld* | linux*aout* | linux*coff*)
16170  dynamic_linker=no
16171  ;;
16172
16173# This must be Linux ELF.
16174linux* | k*bsd*-gnu)
16175  version_type=linux
16176  need_lib_prefix=no
16177  need_version=no
16178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179  soname_spec='${libname}${release}${shared_ext}$major'
16180  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16181  shlibpath_var=LD_LIBRARY_PATH
16182  shlibpath_overrides_runpath=no
16183  # This implies no fast_install, which is unacceptable.
16184  # Some rework will be needed to allow for fast_install
16185  # before this can be enabled.
16186  hardcode_into_libs=yes
16187
16188  # Append ld.so.conf contents to the search path
16189  if test -f /etc/ld.so.conf; then
16190    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' ' '`
16191    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16192  fi
16193
16194  # We used to test for /lib/ld.so.1 and disable shared libraries on
16195  # powerpc, because MkLinux only supported shared libraries with the
16196  # GNU dynamic linker.  Since this was broken with cross compilers,
16197  # most powerpc-linux boxes support dynamic linking these days and
16198  # people can always --disable-shared, the test was removed, and we
16199  # assume the GNU/Linux dynamic linker is in use.
16200  dynamic_linker='GNU/Linux ld.so'
16201  ;;
16202
16203netbsd*)
16204  version_type=sunos
16205  need_lib_prefix=no
16206  need_version=no
16207  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16209    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16210    dynamic_linker='NetBSD (a.out) ld.so'
16211  else
16212    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16213    soname_spec='${libname}${release}${shared_ext}$major'
16214    dynamic_linker='NetBSD ld.elf_so'
16215  fi
16216  shlibpath_var=LD_LIBRARY_PATH
16217  shlibpath_overrides_runpath=yes
16218  hardcode_into_libs=yes
16219  ;;
16220
16221newsos6)
16222  version_type=linux
16223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224  shlibpath_var=LD_LIBRARY_PATH
16225  shlibpath_overrides_runpath=yes
16226  ;;
16227
16228nto-qnx*)
16229  version_type=linux
16230  need_lib_prefix=no
16231  need_version=no
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233  soname_spec='${libname}${release}${shared_ext}$major'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  shlibpath_overrides_runpath=yes
16236  ;;
16237
16238openbsd*)
16239  version_type=sunos
16240  sys_lib_dlsearch_path_spec="/usr/lib"
16241  need_lib_prefix=no
16242  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16243  case $host_os in
16244    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16245    *)                         need_version=no  ;;
16246  esac
16247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16248  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16249  shlibpath_var=LD_LIBRARY_PATH
16250  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16251    case $host_os in
16252      openbsd2.[89] | openbsd2.[89].*)
16253	shlibpath_overrides_runpath=no
16254	;;
16255      *)
16256	shlibpath_overrides_runpath=yes
16257	;;
16258      esac
16259  else
16260    shlibpath_overrides_runpath=yes
16261  fi
16262  ;;
16263
16264os2*)
16265  libname_spec='$name'
16266  shrext_cmds=".dll"
16267  need_lib_prefix=no
16268  library_names_spec='$libname${shared_ext} $libname.a'
16269  dynamic_linker='OS/2 ld.exe'
16270  shlibpath_var=LIBPATH
16271  ;;
16272
16273osf3* | osf4* | osf5*)
16274  version_type=osf
16275  need_lib_prefix=no
16276  need_version=no
16277  soname_spec='${libname}${release}${shared_ext}$major'
16278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279  shlibpath_var=LD_LIBRARY_PATH
16280  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16281  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16282  ;;
16283
16284rdos*)
16285  dynamic_linker=no
16286  ;;
16287
16288solaris*)
16289  version_type=linux
16290  need_lib_prefix=no
16291  need_version=no
16292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293  soname_spec='${libname}${release}${shared_ext}$major'
16294  shlibpath_var=LD_LIBRARY_PATH
16295  shlibpath_overrides_runpath=yes
16296  hardcode_into_libs=yes
16297  # ldd complains unless libraries are executable
16298  postinstall_cmds='chmod +x $lib'
16299  ;;
16300
16301sunos4*)
16302  version_type=sunos
16303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  shlibpath_overrides_runpath=yes
16307  if test "$with_gnu_ld" = yes; then
16308    need_lib_prefix=no
16309  fi
16310  need_version=yes
16311  ;;
16312
16313sysv4 | sysv4.3*)
16314  version_type=linux
16315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316  soname_spec='${libname}${release}${shared_ext}$major'
16317  shlibpath_var=LD_LIBRARY_PATH
16318  case $host_vendor in
16319    sni)
16320      shlibpath_overrides_runpath=no
16321      need_lib_prefix=no
16322      export_dynamic_flag_spec='${wl}-Blargedynsym'
16323      runpath_var=LD_RUN_PATH
16324      ;;
16325    siemens)
16326      need_lib_prefix=no
16327      ;;
16328    motorola)
16329      need_lib_prefix=no
16330      need_version=no
16331      shlibpath_overrides_runpath=no
16332      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16333      ;;
16334  esac
16335  ;;
16336
16337sysv4*MP*)
16338  if test -d /usr/nec ;then
16339    version_type=linux
16340    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16341    soname_spec='$libname${shared_ext}.$major'
16342    shlibpath_var=LD_LIBRARY_PATH
16343  fi
16344  ;;
16345
16346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16347  version_type=freebsd-elf
16348  need_lib_prefix=no
16349  need_version=no
16350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16351  soname_spec='${libname}${release}${shared_ext}$major'
16352  shlibpath_var=LD_LIBRARY_PATH
16353  hardcode_into_libs=yes
16354  if test "$with_gnu_ld" = yes; then
16355    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16356    shlibpath_overrides_runpath=no
16357  else
16358    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16359    shlibpath_overrides_runpath=yes
16360    case $host_os in
16361      sco3.2v5*)
16362        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16363	;;
16364    esac
16365  fi
16366  sys_lib_dlsearch_path_spec='/usr/lib'
16367  ;;
16368
16369uts4*)
16370  version_type=linux
16371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372  soname_spec='${libname}${release}${shared_ext}$major'
16373  shlibpath_var=LD_LIBRARY_PATH
16374  ;;
16375
16376*)
16377  dynamic_linker=no
16378  ;;
16379esac
16380{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16381$as_echo "$dynamic_linker" >&6; }
16382test "$dynamic_linker" = no && can_build_shared=no
16383
16384if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16385  $as_echo_n "(cached) " >&6
16386else
16387  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16388fi
16389
16390sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16391if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16392  $as_echo_n "(cached) " >&6
16393else
16394  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16395fi
16396
16397sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16398
16399variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16400if test "$GCC" = yes; then
16401  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16402fi
16403
16404{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16405$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16406hardcode_action_F77=
16407if test -n "$hardcode_libdir_flag_spec_F77" || \
16408   test -n "$runpath_var_F77" || \
16409   test "X$hardcode_automatic_F77" = "Xyes" ; then
16410
16411  # We can hardcode non-existant directories.
16412  if test "$hardcode_direct_F77" != no &&
16413     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16414     # have to relink, otherwise we might link with an installed library
16415     # when we should be linking with a yet-to-be-installed one
16416     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16417     test "$hardcode_minus_L_F77" != no; then
16418    # Linking always hardcodes the temporary library directory.
16419    hardcode_action_F77=relink
16420  else
16421    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16422    hardcode_action_F77=immediate
16423  fi
16424else
16425  # We cannot hardcode anything, or else we can only hardcode existing
16426  # directories.
16427  hardcode_action_F77=unsupported
16428fi
16429{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16430$as_echo "$hardcode_action_F77" >&6; }
16431
16432if test "$hardcode_action_F77" = relink; then
16433  # Fast installation is not supported
16434  enable_fast_install=no
16435elif test "$shlibpath_overrides_runpath" = yes ||
16436     test "$enable_shared" = no; then
16437  # Fast installation is not necessary
16438  enable_fast_install=needless
16439fi
16440
16441
16442# The else clause should only fire when bootstrapping the
16443# libtool distribution, otherwise you forgot to ship ltmain.sh
16444# with your package, and you will get complaints that there are
16445# no rules to generate ltmain.sh.
16446if test -f "$ltmain"; then
16447  # See if we are running on zsh, and set the options which allow our commands through
16448  # without removal of \ escapes.
16449  if test -n "${ZSH_VERSION+set}" ; then
16450    setopt NO_GLOB_SUBST
16451  fi
16452  # Now quote all the things that may contain metacharacters while being
16453  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16454  # variables and quote the copies for generation of the libtool script.
16455  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16456    SED SHELL STRIP \
16457    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16458    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16459    deplibs_check_method reload_flag reload_cmds need_locks \
16460    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16461    lt_cv_sys_global_symbol_to_c_name_address \
16462    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16463    old_postinstall_cmds old_postuninstall_cmds \
16464    compiler_F77 \
16465    CC_F77 \
16466    LD_F77 \
16467    lt_prog_compiler_wl_F77 \
16468    lt_prog_compiler_pic_F77 \
16469    lt_prog_compiler_static_F77 \
16470    lt_prog_compiler_no_builtin_flag_F77 \
16471    export_dynamic_flag_spec_F77 \
16472    thread_safe_flag_spec_F77 \
16473    whole_archive_flag_spec_F77 \
16474    enable_shared_with_static_runtimes_F77 \
16475    old_archive_cmds_F77 \
16476    old_archive_from_new_cmds_F77 \
16477    predep_objects_F77 \
16478    postdep_objects_F77 \
16479    predeps_F77 \
16480    postdeps_F77 \
16481    compiler_lib_search_path_F77 \
16482    compiler_lib_search_dirs_F77 \
16483    archive_cmds_F77 \
16484    archive_expsym_cmds_F77 \
16485    postinstall_cmds_F77 \
16486    postuninstall_cmds_F77 \
16487    old_archive_from_expsyms_cmds_F77 \
16488    allow_undefined_flag_F77 \
16489    no_undefined_flag_F77 \
16490    export_symbols_cmds_F77 \
16491    hardcode_libdir_flag_spec_F77 \
16492    hardcode_libdir_flag_spec_ld_F77 \
16493    hardcode_libdir_separator_F77 \
16494    hardcode_automatic_F77 \
16495    module_cmds_F77 \
16496    module_expsym_cmds_F77 \
16497    lt_cv_prog_compiler_c_o_F77 \
16498    fix_srcfile_path_F77 \
16499    exclude_expsyms_F77 \
16500    include_expsyms_F77; do
16501
16502    case $var in
16503    old_archive_cmds_F77 | \
16504    old_archive_from_new_cmds_F77 | \
16505    archive_cmds_F77 | \
16506    archive_expsym_cmds_F77 | \
16507    module_cmds_F77 | \
16508    module_expsym_cmds_F77 | \
16509    old_archive_from_expsyms_cmds_F77 | \
16510    export_symbols_cmds_F77 | \
16511    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16512    postinstall_cmds | postuninstall_cmds | \
16513    old_postinstall_cmds | old_postuninstall_cmds | \
16514    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16515      # Double-quote double-evaled strings.
16516      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16517      ;;
16518    *)
16519      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16520      ;;
16521    esac
16522  done
16523
16524  case $lt_echo in
16525  *'\$0 --fallback-echo"')
16526    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16527    ;;
16528  esac
16529
16530cfgfile="$ofile"
16531
16532  cat <<__EOF__ >> "$cfgfile"
16533# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16534
16535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16536
16537# Shell to use when invoking shell scripts.
16538SHELL=$lt_SHELL
16539
16540# Whether or not to build shared libraries.
16541build_libtool_libs=$enable_shared
16542
16543# Whether or not to build static libraries.
16544build_old_libs=$enable_static
16545
16546# Whether or not to add -lc for building shared libraries.
16547build_libtool_need_lc=$archive_cmds_need_lc_F77
16548
16549# Whether or not to disallow shared libs when runtime libs are static
16550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16551
16552# Whether or not to optimize for fast installation.
16553fast_install=$enable_fast_install
16554
16555# The host system.
16556host_alias=$host_alias
16557host=$host
16558host_os=$host_os
16559
16560# The build system.
16561build_alias=$build_alias
16562build=$build
16563build_os=$build_os
16564
16565# An echo program that does not interpret backslashes.
16566echo=$lt_echo
16567
16568# The archiver.
16569AR=$lt_AR
16570AR_FLAGS=$lt_AR_FLAGS
16571
16572# A C compiler.
16573LTCC=$lt_LTCC
16574
16575# LTCC compiler flags.
16576LTCFLAGS=$lt_LTCFLAGS
16577
16578# A language-specific compiler.
16579CC=$lt_compiler_F77
16580
16581# Is the compiler the GNU C compiler?
16582with_gcc=$GCC_F77
16583
16584# An ERE matcher.
16585EGREP=$lt_EGREP
16586
16587# The linker used to build libraries.
16588LD=$lt_LD_F77
16589
16590# Whether we need hard or soft links.
16591LN_S=$lt_LN_S
16592
16593# A BSD-compatible nm program.
16594NM=$lt_NM
16595
16596# A symbol stripping program
16597STRIP=$lt_STRIP
16598
16599# Used to examine libraries when file_magic_cmd begins "file"
16600MAGIC_CMD=$MAGIC_CMD
16601
16602# Used on cygwin: DLL creation program.
16603DLLTOOL="$DLLTOOL"
16604
16605# Used on cygwin: object dumper.
16606OBJDUMP="$OBJDUMP"
16607
16608# Used on cygwin: assembler.
16609AS="$AS"
16610
16611# The name of the directory that contains temporary libtool files.
16612objdir=$objdir
16613
16614# How to create reloadable object files.
16615reload_flag=$lt_reload_flag
16616reload_cmds=$lt_reload_cmds
16617
16618# How to pass a linker flag through the compiler.
16619wl=$lt_lt_prog_compiler_wl_F77
16620
16621# Object file suffix (normally "o").
16622objext="$ac_objext"
16623
16624# Old archive suffix (normally "a").
16625libext="$libext"
16626
16627# Shared library suffix (normally ".so").
16628shrext_cmds='$shrext_cmds'
16629
16630# Executable file suffix (normally "").
16631exeext="$exeext"
16632
16633# Additional compiler flags for building library objects.
16634pic_flag=$lt_lt_prog_compiler_pic_F77
16635pic_mode=$pic_mode
16636
16637# What is the maximum length of a command?
16638max_cmd_len=$lt_cv_sys_max_cmd_len
16639
16640# Does compiler simultaneously support -c and -o options?
16641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16642
16643# Must we lock files when doing compilation?
16644need_locks=$lt_need_locks
16645
16646# Do we need the lib prefix for modules?
16647need_lib_prefix=$need_lib_prefix
16648
16649# Do we need a version for libraries?
16650need_version=$need_version
16651
16652# Whether dlopen is supported.
16653dlopen_support=$enable_dlopen
16654
16655# Whether dlopen of programs is supported.
16656dlopen_self=$enable_dlopen_self
16657
16658# Whether dlopen of statically linked programs is supported.
16659dlopen_self_static=$enable_dlopen_self_static
16660
16661# Compiler flag to prevent dynamic linking.
16662link_static_flag=$lt_lt_prog_compiler_static_F77
16663
16664# Compiler flag to turn off builtin functions.
16665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16666
16667# Compiler flag to allow reflexive dlopens.
16668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16669
16670# Compiler flag to generate shared objects directly from archives.
16671whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16672
16673# Compiler flag to generate thread-safe objects.
16674thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16675
16676# Library versioning type.
16677version_type=$version_type
16678
16679# Format of library name prefix.
16680libname_spec=$lt_libname_spec
16681
16682# List of archive names.  First name is the real one, the rest are links.
16683# The last name is the one that the linker finds with -lNAME.
16684library_names_spec=$lt_library_names_spec
16685
16686# The coded name of the library, if different from the real name.
16687soname_spec=$lt_soname_spec
16688
16689# Commands used to build and install an old-style archive.
16690RANLIB=$lt_RANLIB
16691old_archive_cmds=$lt_old_archive_cmds_F77
16692old_postinstall_cmds=$lt_old_postinstall_cmds
16693old_postuninstall_cmds=$lt_old_postuninstall_cmds
16694
16695# Create an old-style archive from a shared archive.
16696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16697
16698# Create a temporary old-style archive to link instead of a shared archive.
16699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16700
16701# Commands used to build and install a shared archive.
16702archive_cmds=$lt_archive_cmds_F77
16703archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16704postinstall_cmds=$lt_postinstall_cmds
16705postuninstall_cmds=$lt_postuninstall_cmds
16706
16707# Commands used to build a loadable module (assumed same as above if empty)
16708module_cmds=$lt_module_cmds_F77
16709module_expsym_cmds=$lt_module_expsym_cmds_F77
16710
16711# Commands to strip libraries.
16712old_striplib=$lt_old_striplib
16713striplib=$lt_striplib
16714
16715# Dependencies to place before the objects being linked to create a
16716# shared library.
16717predep_objects=$lt_predep_objects_F77
16718
16719# Dependencies to place after the objects being linked to create a
16720# shared library.
16721postdep_objects=$lt_postdep_objects_F77
16722
16723# Dependencies to place before the objects being linked to create a
16724# shared library.
16725predeps=$lt_predeps_F77
16726
16727# Dependencies to place after the objects being linked to create a
16728# shared library.
16729postdeps=$lt_postdeps_F77
16730
16731# The directories searched by this compiler when creating a shared
16732# library
16733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16734
16735# The library search path used internally by the compiler when linking
16736# a shared library.
16737compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16738
16739# Method to check whether dependent libraries are shared objects.
16740deplibs_check_method=$lt_deplibs_check_method
16741
16742# Command to use when deplibs_check_method == file_magic.
16743file_magic_cmd=$lt_file_magic_cmd
16744
16745# Flag that allows shared libraries with undefined symbols to be built.
16746allow_undefined_flag=$lt_allow_undefined_flag_F77
16747
16748# Flag that forces no undefined symbols.
16749no_undefined_flag=$lt_no_undefined_flag_F77
16750
16751# Commands used to finish a libtool library installation in a directory.
16752finish_cmds=$lt_finish_cmds
16753
16754# Same as above, but a single script fragment to be evaled but not shown.
16755finish_eval=$lt_finish_eval
16756
16757# Take the output of nm and produce a listing of raw symbols and C names.
16758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16759
16760# Transform the output of nm in a proper C declaration
16761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16762
16763# Transform the output of nm in a C name address pair
16764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16765
16766# This is the shared library runtime path variable.
16767runpath_var=$runpath_var
16768
16769# This is the shared library path variable.
16770shlibpath_var=$shlibpath_var
16771
16772# Is shlibpath searched before the hard-coded library search path?
16773shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16774
16775# How to hardcode a shared library path into an executable.
16776hardcode_action=$hardcode_action_F77
16777
16778# Whether we should hardcode library paths into libraries.
16779hardcode_into_libs=$hardcode_into_libs
16780
16781# Flag to hardcode \$libdir into a binary during linking.
16782# This must work even if \$libdir does not exist.
16783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16784
16785# If ld is used when linking, flag to hardcode \$libdir into
16786# a binary during linking. This must work even if \$libdir does
16787# not exist.
16788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16789
16790# Whether we need a single -rpath flag with a separated argument.
16791hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16792
16793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16794# resulting binary.
16795hardcode_direct=$hardcode_direct_F77
16796
16797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16798# resulting binary.
16799hardcode_minus_L=$hardcode_minus_L_F77
16800
16801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16802# the resulting binary.
16803hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16804
16805# Set to yes if building a shared library automatically hardcodes DIR into the library
16806# and all subsequent libraries and executables linked against it.
16807hardcode_automatic=$hardcode_automatic_F77
16808
16809# Variables whose values should be saved in libtool wrapper scripts and
16810# restored at relink time.
16811variables_saved_for_relink="$variables_saved_for_relink"
16812
16813# Whether libtool must link a program against all its dependency libraries.
16814link_all_deplibs=$link_all_deplibs_F77
16815
16816# Compile-time system search path for libraries
16817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16818
16819# Run-time system search path for libraries
16820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16821
16822# Fix the shell variable \$srcfile for the compiler.
16823fix_srcfile_path=$lt_fix_srcfile_path
16824
16825# Set to yes if exported symbols are required.
16826always_export_symbols=$always_export_symbols_F77
16827
16828# The commands to list exported symbols.
16829export_symbols_cmds=$lt_export_symbols_cmds_F77
16830
16831# The commands to extract the exported symbol list from a shared archive.
16832extract_expsyms_cmds=$lt_extract_expsyms_cmds
16833
16834# Symbols that should not be listed in the preloaded symbols.
16835exclude_expsyms=$lt_exclude_expsyms_F77
16836
16837# Symbols that must always be exported.
16838include_expsyms=$lt_include_expsyms_F77
16839
16840# ### END LIBTOOL TAG CONFIG: $tagname
16841
16842__EOF__
16843
16844
16845else
16846  # If there is no Makefile yet, we rely on a make rule to execute
16847  # `config.status --recheck' to rerun these tests and create the
16848  # libtool script then.
16849  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16850  if test -f "$ltmain_in"; then
16851    test -f Makefile && make "$ltmain"
16852  fi
16853fi
16854
16855
16856ac_ext=c
16857ac_cpp='$CPP $CPPFLAGS'
16858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16860ac_compiler_gnu=$ac_cv_c_compiler_gnu
16861
16862CC="$lt_save_CC"
16863
16864	else
16865	  tagname=""
16866	fi
16867	;;
16868
16869      GCJ)
16870	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16871
16872
16873# Source file extension for Java test sources.
16874ac_ext=java
16875
16876# Object file extension for compiled Java test sources.
16877objext=o
16878objext_GCJ=$objext
16879
16880# Code to be used in simple compile tests
16881lt_simple_compile_test_code="class foo {}"
16882
16883# Code to be used in simple link tests
16884lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16885
16886# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16887
16888# If no C compiler was specified, use CC.
16889LTCC=${LTCC-"$CC"}
16890
16891# If no C compiler flags were specified, use CFLAGS.
16892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16893
16894# Allow CC to be a program name with arguments.
16895compiler=$CC
16896
16897
16898# save warnings/boilerplate of simple test code
16899ac_outfile=conftest.$ac_objext
16900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16902_lt_compiler_boilerplate=`cat conftest.err`
16903$rm conftest*
16904
16905ac_outfile=conftest.$ac_objext
16906echo "$lt_simple_link_test_code" >conftest.$ac_ext
16907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16908_lt_linker_boilerplate=`cat conftest.err`
16909$rm -r conftest*
16910
16911
16912# Allow CC to be a program name with arguments.
16913lt_save_CC="$CC"
16914CC=${GCJ-"gcj"}
16915compiler=$CC
16916compiler_GCJ=$CC
16917for cc_temp in $compiler""; do
16918  case $cc_temp in
16919    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16920    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16921    \-*) ;;
16922    *) break;;
16923  esac
16924done
16925cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16926
16927
16928# GCJ did not exist at the time GCC didn't implicitly link libc in.
16929archive_cmds_need_lc_GCJ=no
16930
16931old_archive_cmds_GCJ=$old_archive_cmds
16932
16933
16934lt_prog_compiler_no_builtin_flag_GCJ=
16935
16936if test "$GCC" = yes; then
16937  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16938
16939
16940{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16941$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16942if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16943  $as_echo_n "(cached) " >&6
16944else
16945  lt_cv_prog_compiler_rtti_exceptions=no
16946  ac_outfile=conftest.$ac_objext
16947   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16948   lt_compiler_flag="-fno-rtti -fno-exceptions"
16949   # Insert the option either (1) after the last *FLAGS variable, or
16950   # (2) before a word containing "conftest.", or (3) at the end.
16951   # Note that $ac_compile itself does not contain backslashes and begins
16952   # with a dollar sign (not a hyphen), so the echo should work correctly.
16953   # The option is referenced via a variable to avoid confusing sed.
16954   lt_compile=`echo "$ac_compile" | $SED \
16955   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16956   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16957   -e 's:$: $lt_compiler_flag:'`
16958   (eval echo "\"\$as_me:16958: $lt_compile\"" >&5)
16959   (eval "$lt_compile" 2>conftest.err)
16960   ac_status=$?
16961   cat conftest.err >&5
16962   echo "$as_me:16962: \$? = $ac_status" >&5
16963   if (exit $ac_status) && test -s "$ac_outfile"; then
16964     # The compiler can only warn and ignore the option if not recognized
16965     # So say no if there are warnings other than the usual output.
16966     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16967     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16968     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16969       lt_cv_prog_compiler_rtti_exceptions=yes
16970     fi
16971   fi
16972   $rm conftest*
16973
16974fi
16975{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16976$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16977
16978if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16979    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16980else
16981    :
16982fi
16983
16984fi
16985
16986lt_prog_compiler_wl_GCJ=
16987lt_prog_compiler_pic_GCJ=
16988lt_prog_compiler_static_GCJ=
16989
16990{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16991$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16992
16993  if test "$GCC" = yes; then
16994    lt_prog_compiler_wl_GCJ='-Wl,'
16995    lt_prog_compiler_static_GCJ='-static'
16996
16997    case $host_os in
16998      aix*)
16999      # All AIX code is PIC.
17000      if test "$host_cpu" = ia64; then
17001	# AIX 5 now supports IA64 processor
17002	lt_prog_compiler_static_GCJ='-Bstatic'
17003      fi
17004      ;;
17005
17006    amigaos*)
17007      # FIXME: we need at least 68020 code to build shared libraries, but
17008      # adding the `-m68020' flag to GCC prevents building anything better,
17009      # like `-m68040'.
17010      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17011      ;;
17012
17013    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17014      # PIC is the default for these OSes.
17015      ;;
17016
17017    mingw* | cygwin* | pw32* | os2*)
17018      # This hack is so that the source file can tell whether it is being
17019      # built for inclusion in a dll (and should export symbols for example).
17020      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17021      # (--disable-auto-import) libraries
17022
17023      ;;
17024
17025    darwin* | rhapsody*)
17026      # PIC is the default on this platform
17027      # Common symbols not allowed in MH_DYLIB files
17028      lt_prog_compiler_pic_GCJ='-fno-common'
17029      ;;
17030
17031    interix[3-9]*)
17032      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17033      # Instead, we relocate shared libraries at runtime.
17034      ;;
17035
17036    msdosdjgpp*)
17037      # Just because we use GCC doesn't mean we suddenly get shared libraries
17038      # on systems that don't support them.
17039      lt_prog_compiler_can_build_shared_GCJ=no
17040      enable_shared=no
17041      ;;
17042
17043    sysv4*MP*)
17044      if test -d /usr/nec; then
17045	lt_prog_compiler_pic_GCJ=-Kconform_pic
17046      fi
17047      ;;
17048
17049    hpux*)
17050      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17051      # not for PA HP-UX.
17052      case $host_cpu in
17053      hppa*64*|ia64*)
17054	# +Z the default
17055	;;
17056      *)
17057	lt_prog_compiler_pic_GCJ='-fPIC'
17058	;;
17059      esac
17060      ;;
17061
17062    *)
17063      lt_prog_compiler_pic_GCJ='-fPIC'
17064      ;;
17065    esac
17066  else
17067    # PORTME Check for flag to pass linker flags through the system compiler.
17068    case $host_os in
17069    aix*)
17070      lt_prog_compiler_wl_GCJ='-Wl,'
17071      if test "$host_cpu" = ia64; then
17072	# AIX 5 now supports IA64 processor
17073	lt_prog_compiler_static_GCJ='-Bstatic'
17074      else
17075	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17076      fi
17077      ;;
17078      darwin*)
17079        # PIC is the default on this platform
17080        # Common symbols not allowed in MH_DYLIB files
17081       case $cc_basename in
17082         xlc*)
17083         lt_prog_compiler_pic_GCJ='-qnocommon'
17084         lt_prog_compiler_wl_GCJ='-Wl,'
17085         ;;
17086       esac
17087       ;;
17088
17089    mingw* | cygwin* | pw32* | os2*)
17090      # This hack is so that the source file can tell whether it is being
17091      # built for inclusion in a dll (and should export symbols for example).
17092
17093      ;;
17094
17095    hpux9* | hpux10* | hpux11*)
17096      lt_prog_compiler_wl_GCJ='-Wl,'
17097      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17098      # not for PA HP-UX.
17099      case $host_cpu in
17100      hppa*64*|ia64*)
17101	# +Z the default
17102	;;
17103      *)
17104	lt_prog_compiler_pic_GCJ='+Z'
17105	;;
17106      esac
17107      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17108      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17109      ;;
17110
17111    irix5* | irix6* | nonstopux*)
17112      lt_prog_compiler_wl_GCJ='-Wl,'
17113      # PIC (with -KPIC) is the default.
17114      lt_prog_compiler_static_GCJ='-non_shared'
17115      ;;
17116
17117    newsos6)
17118      lt_prog_compiler_pic_GCJ='-KPIC'
17119      lt_prog_compiler_static_GCJ='-Bstatic'
17120      ;;
17121
17122    linux* | k*bsd*-gnu)
17123      case $cc_basename in
17124      icc* | ecc*)
17125	lt_prog_compiler_wl_GCJ='-Wl,'
17126	lt_prog_compiler_pic_GCJ='-KPIC'
17127	lt_prog_compiler_static_GCJ='-static'
17128        ;;
17129      pgcc* | pgf77* | pgf90* | pgf95*)
17130        # Portland Group compilers (*not* the Pentium gcc compiler,
17131	# which looks to be a dead project)
17132	lt_prog_compiler_wl_GCJ='-Wl,'
17133	lt_prog_compiler_pic_GCJ='-fpic'
17134	lt_prog_compiler_static_GCJ='-Bstatic'
17135        ;;
17136      ccc*)
17137        lt_prog_compiler_wl_GCJ='-Wl,'
17138        # All Alpha code is PIC.
17139        lt_prog_compiler_static_GCJ='-non_shared'
17140        ;;
17141      *)
17142        case `$CC -V 2>&1 | sed 5q` in
17143	*Sun\ C*)
17144	  # Sun C 5.9
17145	  lt_prog_compiler_pic_GCJ='-KPIC'
17146	  lt_prog_compiler_static_GCJ='-Bstatic'
17147	  lt_prog_compiler_wl_GCJ='-Wl,'
17148	  ;;
17149	*Sun\ F*)
17150	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17151	  lt_prog_compiler_pic_GCJ='-KPIC'
17152	  lt_prog_compiler_static_GCJ='-Bstatic'
17153	  lt_prog_compiler_wl_GCJ=''
17154	  ;;
17155	esac
17156	;;
17157      esac
17158      ;;
17159
17160    osf3* | osf4* | osf5*)
17161      lt_prog_compiler_wl_GCJ='-Wl,'
17162      # All OSF/1 code is PIC.
17163      lt_prog_compiler_static_GCJ='-non_shared'
17164      ;;
17165
17166    rdos*)
17167      lt_prog_compiler_static_GCJ='-non_shared'
17168      ;;
17169
17170    solaris*)
17171      lt_prog_compiler_pic_GCJ='-KPIC'
17172      lt_prog_compiler_static_GCJ='-Bstatic'
17173      case $cc_basename in
17174      f77* | f90* | f95*)
17175	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17176      *)
17177	lt_prog_compiler_wl_GCJ='-Wl,';;
17178      esac
17179      ;;
17180
17181    sunos4*)
17182      lt_prog_compiler_wl_GCJ='-Qoption ld '
17183      lt_prog_compiler_pic_GCJ='-PIC'
17184      lt_prog_compiler_static_GCJ='-Bstatic'
17185      ;;
17186
17187    sysv4 | sysv4.2uw2* | sysv4.3*)
17188      lt_prog_compiler_wl_GCJ='-Wl,'
17189      lt_prog_compiler_pic_GCJ='-KPIC'
17190      lt_prog_compiler_static_GCJ='-Bstatic'
17191      ;;
17192
17193    sysv4*MP*)
17194      if test -d /usr/nec ;then
17195	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17196	lt_prog_compiler_static_GCJ='-Bstatic'
17197      fi
17198      ;;
17199
17200    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17201      lt_prog_compiler_wl_GCJ='-Wl,'
17202      lt_prog_compiler_pic_GCJ='-KPIC'
17203      lt_prog_compiler_static_GCJ='-Bstatic'
17204      ;;
17205
17206    unicos*)
17207      lt_prog_compiler_wl_GCJ='-Wl,'
17208      lt_prog_compiler_can_build_shared_GCJ=no
17209      ;;
17210
17211    uts4*)
17212      lt_prog_compiler_pic_GCJ='-pic'
17213      lt_prog_compiler_static_GCJ='-Bstatic'
17214      ;;
17215
17216    *)
17217      lt_prog_compiler_can_build_shared_GCJ=no
17218      ;;
17219    esac
17220  fi
17221
17222{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17223$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17224
17225#
17226# Check to make sure the PIC flag actually works.
17227#
17228if test -n "$lt_prog_compiler_pic_GCJ"; then
17229
17230{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17231$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17232if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17233  $as_echo_n "(cached) " >&6
17234else
17235  lt_cv_prog_compiler_pic_works_GCJ=no
17236  ac_outfile=conftest.$ac_objext
17237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17238   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17239   # Insert the option either (1) after the last *FLAGS variable, or
17240   # (2) before a word containing "conftest.", or (3) at the end.
17241   # Note that $ac_compile itself does not contain backslashes and begins
17242   # with a dollar sign (not a hyphen), so the echo should work correctly.
17243   # The option is referenced via a variable to avoid confusing sed.
17244   lt_compile=`echo "$ac_compile" | $SED \
17245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17247   -e 's:$: $lt_compiler_flag:'`
17248   (eval echo "\"\$as_me:17248: $lt_compile\"" >&5)
17249   (eval "$lt_compile" 2>conftest.err)
17250   ac_status=$?
17251   cat conftest.err >&5
17252   echo "$as_me:17252: \$? = $ac_status" >&5
17253   if (exit $ac_status) && test -s "$ac_outfile"; then
17254     # The compiler can only warn and ignore the option if not recognized
17255     # So say no if there are warnings other than the usual output.
17256     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17257     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17258     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17259       lt_cv_prog_compiler_pic_works_GCJ=yes
17260     fi
17261   fi
17262   $rm conftest*
17263
17264fi
17265{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17266$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17267
17268if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17269    case $lt_prog_compiler_pic_GCJ in
17270     "" | " "*) ;;
17271     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17272     esac
17273else
17274    lt_prog_compiler_pic_GCJ=
17275     lt_prog_compiler_can_build_shared_GCJ=no
17276fi
17277
17278fi
17279case $host_os in
17280  # For platforms which do not support PIC, -DPIC is meaningless:
17281  *djgpp*)
17282    lt_prog_compiler_pic_GCJ=
17283    ;;
17284  *)
17285    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17286    ;;
17287esac
17288
17289#
17290# Check to make sure the static flag actually works.
17291#
17292wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17293{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17294$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17295if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17296  $as_echo_n "(cached) " >&6
17297else
17298  lt_cv_prog_compiler_static_works_GCJ=no
17299   save_LDFLAGS="$LDFLAGS"
17300   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17301   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17302   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17303     # The linker can only warn and ignore the option if not recognized
17304     # So say no if there are warnings
17305     if test -s conftest.err; then
17306       # Append any errors to the config.log.
17307       cat conftest.err 1>&5
17308       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17309       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17310       if diff conftest.exp conftest.er2 >/dev/null; then
17311         lt_cv_prog_compiler_static_works_GCJ=yes
17312       fi
17313     else
17314       lt_cv_prog_compiler_static_works_GCJ=yes
17315     fi
17316   fi
17317   $rm -r conftest*
17318   LDFLAGS="$save_LDFLAGS"
17319
17320fi
17321{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17322$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17323
17324if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17325    :
17326else
17327    lt_prog_compiler_static_GCJ=
17328fi
17329
17330
17331{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17333if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17334  $as_echo_n "(cached) " >&6
17335else
17336  lt_cv_prog_compiler_c_o_GCJ=no
17337   $rm -r conftest 2>/dev/null
17338   mkdir conftest
17339   cd conftest
17340   mkdir out
17341   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17342
17343   lt_compiler_flag="-o out/conftest2.$ac_objext"
17344   # Insert the option either (1) after the last *FLAGS variable, or
17345   # (2) before a word containing "conftest.", or (3) at the end.
17346   # Note that $ac_compile itself does not contain backslashes and begins
17347   # with a dollar sign (not a hyphen), so the echo should work correctly.
17348   lt_compile=`echo "$ac_compile" | $SED \
17349   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17351   -e 's:$: $lt_compiler_flag:'`
17352   (eval echo "\"\$as_me:17352: $lt_compile\"" >&5)
17353   (eval "$lt_compile" 2>out/conftest.err)
17354   ac_status=$?
17355   cat out/conftest.err >&5
17356   echo "$as_me:17356: \$? = $ac_status" >&5
17357   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17358   then
17359     # The compiler can only warn and ignore the option if not recognized
17360     # So say no if there are warnings
17361     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17362     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17363     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17364       lt_cv_prog_compiler_c_o_GCJ=yes
17365     fi
17366   fi
17367   chmod u+w . 2>&5
17368   $rm conftest*
17369   # SGI C++ compiler will create directory out/ii_files/ for
17370   # template instantiation
17371   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17372   $rm out/* && rmdir out
17373   cd ..
17374   rmdir conftest
17375   $rm conftest*
17376
17377fi
17378{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17379$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17380
17381
17382hard_links="nottested"
17383if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17384  # do not overwrite the value of need_locks provided by the user
17385  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17386$as_echo_n "checking if we can lock with hard links... " >&6; }
17387  hard_links=yes
17388  $rm conftest*
17389  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390  touch conftest.a
17391  ln conftest.a conftest.b 2>&5 || hard_links=no
17392  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17393  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17394$as_echo "$hard_links" >&6; }
17395  if test "$hard_links" = no; then
17396    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17397$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17398    need_locks=warn
17399  fi
17400else
17401  need_locks=no
17402fi
17403
17404{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17405$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17406
17407  runpath_var=
17408  allow_undefined_flag_GCJ=
17409  enable_shared_with_static_runtimes_GCJ=no
17410  archive_cmds_GCJ=
17411  archive_expsym_cmds_GCJ=
17412  old_archive_From_new_cmds_GCJ=
17413  old_archive_from_expsyms_cmds_GCJ=
17414  export_dynamic_flag_spec_GCJ=
17415  whole_archive_flag_spec_GCJ=
17416  thread_safe_flag_spec_GCJ=
17417  hardcode_libdir_flag_spec_GCJ=
17418  hardcode_libdir_flag_spec_ld_GCJ=
17419  hardcode_libdir_separator_GCJ=
17420  hardcode_direct_GCJ=no
17421  hardcode_minus_L_GCJ=no
17422  hardcode_shlibpath_var_GCJ=unsupported
17423  link_all_deplibs_GCJ=unknown
17424  hardcode_automatic_GCJ=no
17425  module_cmds_GCJ=
17426  module_expsym_cmds_GCJ=
17427  always_export_symbols_GCJ=no
17428  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17429  # include_expsyms should be a list of space-separated symbols to be *always*
17430  # included in the symbol list
17431  include_expsyms_GCJ=
17432  # exclude_expsyms can be an extended regexp of symbols to exclude
17433  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17434  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17435  # as well as any symbol that contains `d'.
17436  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17437  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17438  # platforms (ab)use it in PIC code, but their linkers get confused if
17439  # the symbol is explicitly referenced.  Since portable code cannot
17440  # rely on this symbol name, it's probably fine to never include it in
17441  # preloaded symbol tables.
17442  # Exclude shared library initialization/finalization symbols.
17443  extract_expsyms_cmds=
17444  # Just being paranoid about ensuring that cc_basename is set.
17445  for cc_temp in $compiler""; do
17446  case $cc_temp in
17447    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17448    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17449    \-*) ;;
17450    *) break;;
17451  esac
17452done
17453cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17454
17455  case $host_os in
17456  cygwin* | mingw* | pw32*)
17457    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17458    # When not using gcc, we currently assume that we are using
17459    # Microsoft Visual C++.
17460    if test "$GCC" != yes; then
17461      with_gnu_ld=no
17462    fi
17463    ;;
17464  interix*)
17465    # we just hope/assume this is gcc and not c89 (= MSVC++)
17466    with_gnu_ld=yes
17467    ;;
17468  openbsd*)
17469    with_gnu_ld=no
17470    ;;
17471  esac
17472
17473  ld_shlibs_GCJ=yes
17474  if test "$with_gnu_ld" = yes; then
17475    # If archive_cmds runs LD, not CC, wlarc should be empty
17476    wlarc='${wl}'
17477
17478    # Set some defaults for GNU ld with shared library support. These
17479    # are reset later if shared libraries are not supported. Putting them
17480    # here allows them to be overridden if necessary.
17481    runpath_var=LD_RUN_PATH
17482    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17483    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17484    # ancient GNU ld didn't support --whole-archive et. al.
17485    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17486	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17487      else
17488  	whole_archive_flag_spec_GCJ=
17489    fi
17490    supports_anon_versioning=no
17491    case `$LD -v 2>/dev/null` in
17492      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17493      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17494      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17495      *\ 2.11.*) ;; # other 2.11 versions
17496      *) supports_anon_versioning=yes ;;
17497    esac
17498
17499    # See if GNU ld supports shared libraries.
17500    case $host_os in
17501    aix[3-9]*)
17502      # On AIX/PPC, the GNU linker is very broken
17503      if test "$host_cpu" != ia64; then
17504	ld_shlibs_GCJ=no
17505	cat <<EOF 1>&2
17506
17507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17508*** to be unable to reliably create shared libraries on AIX.
17509*** Therefore, libtool is disabling shared libraries support.  If you
17510*** really care for shared libraries, you may want to modify your PATH
17511*** so that a non-GNU linker is found, and then restart.
17512
17513EOF
17514      fi
17515      ;;
17516
17517    amigaos*)
17518      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17519      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520      hardcode_minus_L_GCJ=yes
17521
17522      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17523      # that the semantics of dynamic libraries on AmigaOS, at least up
17524      # to version 4, is to share data among multiple programs linked
17525      # with the same dynamic library.  Since this doesn't match the
17526      # behavior of shared libraries on other platforms, we can't use
17527      # them.
17528      ld_shlibs_GCJ=no
17529      ;;
17530
17531    beos*)
17532      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533	allow_undefined_flag_GCJ=unsupported
17534	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17535	# support --undefined.  This deserves some investigation.  FIXME
17536	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17537      else
17538	ld_shlibs_GCJ=no
17539      fi
17540      ;;
17541
17542    cygwin* | mingw* | pw32*)
17543      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17544      # as there is no search path for DLLs.
17545      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546      allow_undefined_flag_GCJ=unsupported
17547      always_export_symbols_GCJ=no
17548      enable_shared_with_static_runtimes_GCJ=yes
17549      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17550
17551      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17552        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17553	# If the export-symbols file already is a .def file (1st line
17554	# is EXPORTS), use it as is; otherwise, prepend...
17555	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17556	  cp $export_symbols $output_objdir/$soname.def;
17557	else
17558	  echo EXPORTS > $output_objdir/$soname.def;
17559	  cat $export_symbols >> $output_objdir/$soname.def;
17560	fi~
17561	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17562      else
17563	ld_shlibs_GCJ=no
17564      fi
17565      ;;
17566
17567    interix[3-9]*)
17568      hardcode_direct_GCJ=no
17569      hardcode_shlibpath_var_GCJ=no
17570      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17571      export_dynamic_flag_spec_GCJ='${wl}-E'
17572      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17573      # Instead, shared libraries are loaded at an image base (0x10000000 by
17574      # default) and relocated if they conflict, which is a slow very memory
17575      # consuming and fragmenting process.  To avoid this, we pick a random,
17576      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17577      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17578      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17579      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17580      ;;
17581
17582    gnu* | linux* | k*bsd*-gnu)
17583      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17584	tmp_addflag=
17585	case $cc_basename,$host_cpu in
17586	pgcc*)				# Portland Group C compiler
17587	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17588	  tmp_addflag=' $pic_flag'
17589	  ;;
17590	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17591	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17592	  tmp_addflag=' $pic_flag -Mnomain' ;;
17593	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17594	  tmp_addflag=' -i_dynamic' ;;
17595	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17596	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17597	ifc* | ifort*)			# Intel Fortran compiler
17598	  tmp_addflag=' -nofor_main' ;;
17599	esac
17600	case `$CC -V 2>&1 | sed 5q` in
17601	*Sun\ C*)			# Sun C 5.9
17602	  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'
17603	  tmp_sharedflag='-G' ;;
17604	*Sun\ F*)			# Sun Fortran 8.3
17605	  tmp_sharedflag='-G' ;;
17606	*)
17607	  tmp_sharedflag='-shared' ;;
17608	esac
17609	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17610
17611	if test $supports_anon_versioning = yes; then
17612	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17613  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17614  $echo "local: *; };" >> $output_objdir/$libname.ver~
17615	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17616	fi
17617      else
17618	ld_shlibs_GCJ=no
17619      fi
17620      ;;
17621
17622    netbsd*)
17623      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17624	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17625	wlarc=
17626      else
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      fi
17630      ;;
17631
17632    solaris*)
17633      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17634	ld_shlibs_GCJ=no
17635	cat <<EOF 1>&2
17636
17637*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17638*** create shared libraries on Solaris systems.  Therefore, libtool
17639*** is disabling shared libraries support.  We urge you to upgrade GNU
17640*** binutils to release 2.9.1 or newer.  Another option is to modify
17641*** your PATH or compiler configuration so that the native linker is
17642*** used, and then restart.
17643
17644EOF
17645      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17646	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17647	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17648      else
17649	ld_shlibs_GCJ=no
17650      fi
17651      ;;
17652
17653    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17654      case `$LD -v 2>&1` in
17655        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17656	ld_shlibs_GCJ=no
17657	cat <<_LT_EOF 1>&2
17658
17659*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17660*** reliably create shared libraries on SCO systems.  Therefore, libtool
17661*** is disabling shared libraries support.  We urge you to upgrade GNU
17662*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17663*** your PATH or compiler configuration so that the native linker is
17664*** used, and then restart.
17665
17666_LT_EOF
17667	;;
17668	*)
17669	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17670	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17671	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17672	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17673	  else
17674	    ld_shlibs_GCJ=no
17675	  fi
17676	;;
17677      esac
17678      ;;
17679
17680    sunos4*)
17681      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17682      wlarc=
17683      hardcode_direct_GCJ=yes
17684      hardcode_shlibpath_var_GCJ=no
17685      ;;
17686
17687    *)
17688      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17689	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17690	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17691      else
17692	ld_shlibs_GCJ=no
17693      fi
17694      ;;
17695    esac
17696
17697    if test "$ld_shlibs_GCJ" = no; then
17698      runpath_var=
17699      hardcode_libdir_flag_spec_GCJ=
17700      export_dynamic_flag_spec_GCJ=
17701      whole_archive_flag_spec_GCJ=
17702    fi
17703  else
17704    # PORTME fill in a description of your system's linker (not GNU ld)
17705    case $host_os in
17706    aix3*)
17707      allow_undefined_flag_GCJ=unsupported
17708      always_export_symbols_GCJ=yes
17709      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'
17710      # Note: this linker hardcodes the directories in LIBPATH if there
17711      # are no directories specified by -L.
17712      hardcode_minus_L_GCJ=yes
17713      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17714	# Neither direct hardcoding nor static linking is supported with a
17715	# broken collect2.
17716	hardcode_direct_GCJ=unsupported
17717      fi
17718      ;;
17719
17720    aix[4-9]*)
17721      if test "$host_cpu" = ia64; then
17722	# On IA64, the linker does run time linking by default, so we don't
17723	# have to do anything special.
17724	aix_use_runtimelinking=no
17725	exp_sym_flag='-Bexport'
17726	no_entry_flag=""
17727      else
17728	# If we're using GNU nm, then we don't want the "-C" option.
17729	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17730	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17731	  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'
17732	else
17733	  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'
17734	fi
17735	aix_use_runtimelinking=no
17736
17737	# Test if we are trying to use run time linking or normal
17738	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17739	# need to do runtime linking.
17740	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17741	  for ld_flag in $LDFLAGS; do
17742  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17743  	    aix_use_runtimelinking=yes
17744  	    break
17745  	  fi
17746	  done
17747	  ;;
17748	esac
17749
17750	exp_sym_flag='-bexport'
17751	no_entry_flag='-bnoentry'
17752      fi
17753
17754      # When large executables or shared objects are built, AIX ld can
17755      # have problems creating the table of contents.  If linking a library
17756      # or program results in "error TOC overflow" add -mminimal-toc to
17757      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17758      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17759
17760      archive_cmds_GCJ=''
17761      hardcode_direct_GCJ=yes
17762      hardcode_libdir_separator_GCJ=':'
17763      link_all_deplibs_GCJ=yes
17764
17765      if test "$GCC" = yes; then
17766	case $host_os in aix4.[012]|aix4.[012].*)
17767	# We only want to do this on AIX 4.2 and lower, the check
17768	# below for broken collect2 doesn't work under 4.3+
17769	  collect2name=`${CC} -print-prog-name=collect2`
17770	  if test -f "$collect2name" && \
17771  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17772	  then
17773  	  # We have reworked collect2
17774  	  :
17775	  else
17776  	  # We have old collect2
17777  	  hardcode_direct_GCJ=unsupported
17778  	  # It fails to find uninstalled libraries when the uninstalled
17779  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17780  	  # to unsupported forces relinking
17781  	  hardcode_minus_L_GCJ=yes
17782  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17783  	  hardcode_libdir_separator_GCJ=
17784	  fi
17785	  ;;
17786	esac
17787	shared_flag='-shared'
17788	if test "$aix_use_runtimelinking" = yes; then
17789	  shared_flag="$shared_flag "'${wl}-G'
17790	fi
17791      else
17792	# not using gcc
17793	if test "$host_cpu" = ia64; then
17794  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17795  	# chokes on -Wl,-G. The following line is correct:
17796	  shared_flag='-G'
17797	else
17798	  if test "$aix_use_runtimelinking" = yes; then
17799	    shared_flag='${wl}-G'
17800	  else
17801	    shared_flag='${wl}-bM:SRE'
17802	  fi
17803	fi
17804      fi
17805
17806      # It seems that -bexpall does not export symbols beginning with
17807      # underscore (_), so it is better to generate a list of symbols to export.
17808      always_export_symbols_GCJ=yes
17809      if test "$aix_use_runtimelinking" = yes; then
17810	# Warning - without using the other runtime loading flags (-brtl),
17811	# -berok will link without error, but may produce a broken library.
17812	allow_undefined_flag_GCJ='-berok'
17813       # Determine the default libpath from the value encoded in an empty executable.
17814       cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h.  */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h.  */
17820
17821int
17822main ()
17823{
17824
17825  ;
17826  return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext conftest$ac_exeext
17830if { (ac_try="$ac_link"
17831case "(($ac_try" in
17832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833  *) ac_try_echo=$ac_try;;
17834esac
17835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836$as_echo "$ac_try_echo") >&5
17837  (eval "$ac_link") 2>conftest.er1
17838  ac_status=$?
17839  grep -v '^ *+' conftest.er1 >conftest.err
17840  rm -f conftest.er1
17841  cat conftest.err >&5
17842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843  (exit $ac_status); } && {
17844	 test -z "$ac_c_werror_flag" ||
17845	 test ! -s conftest.err
17846       } && test -s conftest$ac_exeext && {
17847	 test "$cross_compiling" = yes ||
17848	 $as_test_x conftest$ac_exeext
17849       }; then
17850
17851lt_aix_libpath_sed='
17852    /Import File Strings/,/^$/ {
17853	/^0/ {
17854	    s/^0  *\(.*\)$/\1/
17855	    p
17856	}
17857    }'
17858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859# Check for a 64-bit object if we didn't find anything.
17860if test -z "$aix_libpath"; then
17861  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862fi
17863else
17864  $as_echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867
17868fi
17869
17870rm -rf conftest.dSYM
17871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872      conftest$ac_exeext conftest.$ac_ext
17873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17874
17875       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17876	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"
17877       else
17878	if test "$host_cpu" = ia64; then
17879	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17880	  allow_undefined_flag_GCJ="-z nodefs"
17881	  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"
17882	else
17883	 # Determine the default libpath from the value encoded in an empty executable.
17884	 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h.  */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h.  */
17890
17891int
17892main ()
17893{
17894
17895  ;
17896  return 0;
17897}
17898_ACEOF
17899rm -f conftest.$ac_objext conftest$ac_exeext
17900if { (ac_try="$ac_link"
17901case "(($ac_try" in
17902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903  *) ac_try_echo=$ac_try;;
17904esac
17905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17906$as_echo "$ac_try_echo") >&5
17907  (eval "$ac_link") 2>conftest.er1
17908  ac_status=$?
17909  grep -v '^ *+' conftest.er1 >conftest.err
17910  rm -f conftest.er1
17911  cat conftest.err >&5
17912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913  (exit $ac_status); } && {
17914	 test -z "$ac_c_werror_flag" ||
17915	 test ! -s conftest.err
17916       } && test -s conftest$ac_exeext && {
17917	 test "$cross_compiling" = yes ||
17918	 $as_test_x conftest$ac_exeext
17919       }; then
17920
17921lt_aix_libpath_sed='
17922    /Import File Strings/,/^$/ {
17923	/^0/ {
17924	    s/^0  *\(.*\)$/\1/
17925	    p
17926	}
17927    }'
17928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17929# Check for a 64-bit object if we didn't find anything.
17930if test -z "$aix_libpath"; then
17931  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17932fi
17933else
17934  $as_echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937
17938fi
17939
17940rm -rf conftest.dSYM
17941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17942      conftest$ac_exeext conftest.$ac_ext
17943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17944
17945	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17946	  # Warning - without using the other run time loading flags,
17947	  # -berok will link without error, but may produce a broken library.
17948	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17949	  allow_undefined_flag_GCJ=' ${wl}-berok'
17950	  # Exported symbols can be pulled into shared objects from archives
17951	  whole_archive_flag_spec_GCJ='$convenience'
17952	  archive_cmds_need_lc_GCJ=yes
17953	  # This is similar to how AIX traditionally builds its shared libraries.
17954	  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'
17955	fi
17956      fi
17957      ;;
17958
17959    amigaos*)
17960      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)'
17961      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17962      hardcode_minus_L_GCJ=yes
17963      # see comment about different semantics on the GNU ld section
17964      ld_shlibs_GCJ=no
17965      ;;
17966
17967    bsdi[45]*)
17968      export_dynamic_flag_spec_GCJ=-rdynamic
17969      ;;
17970
17971    cygwin* | mingw* | pw32*)
17972      # When not using gcc, we currently assume that we are using
17973      # Microsoft Visual C++.
17974      # hardcode_libdir_flag_spec is actually meaningless, as there is
17975      # no search path for DLLs.
17976      hardcode_libdir_flag_spec_GCJ=' '
17977      allow_undefined_flag_GCJ=unsupported
17978      # Tell ltmain to make .lib files, not .a files.
17979      libext=lib
17980      # Tell ltmain to make .dll files, not .so files.
17981      shrext_cmds=".dll"
17982      # FIXME: Setting linknames here is a bad hack.
17983      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17984      # The linker will automatically build a .lib file if we build a DLL.
17985      old_archive_From_new_cmds_GCJ='true'
17986      # FIXME: Should let the user specify the lib program.
17987      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17988      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17989      enable_shared_with_static_runtimes_GCJ=yes
17990      ;;
17991
17992    darwin* | rhapsody*)
17993      case $host_os in
17994        rhapsody* | darwin1.[012])
17995         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17996         ;;
17997       *) # Darwin 1.3 on
17998         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17999           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18000         else
18001           case ${MACOSX_DEPLOYMENT_TARGET} in
18002             10.[012])
18003               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18004               ;;
18005             10.*)
18006               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18007               ;;
18008           esac
18009         fi
18010         ;;
18011      esac
18012      archive_cmds_need_lc_GCJ=no
18013      hardcode_direct_GCJ=no
18014      hardcode_automatic_GCJ=yes
18015      hardcode_shlibpath_var_GCJ=unsupported
18016      whole_archive_flag_spec_GCJ=''
18017      link_all_deplibs_GCJ=yes
18018    if test "$GCC" = yes ; then
18019    	output_verbose_link_cmd='echo'
18020        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}"
18021        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18022        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}"
18023        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}"
18024    else
18025      case $cc_basename in
18026        xlc*)
18027         output_verbose_link_cmd='echo'
18028         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18029         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18030          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18031         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}'
18032          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}'
18033          ;;
18034       *)
18035         ld_shlibs_GCJ=no
18036          ;;
18037      esac
18038    fi
18039      ;;
18040
18041    dgux*)
18042      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18043      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18044      hardcode_shlibpath_var_GCJ=no
18045      ;;
18046
18047    freebsd1*)
18048      ld_shlibs_GCJ=no
18049      ;;
18050
18051    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18052    # support.  Future versions do this automatically, but an explicit c++rt0.o
18053    # does not break anything, and helps significantly (at the cost of a little
18054    # extra space).
18055    freebsd2.2*)
18056      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18057      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18058      hardcode_direct_GCJ=yes
18059      hardcode_shlibpath_var_GCJ=no
18060      ;;
18061
18062    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18063    freebsd2*)
18064      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18065      hardcode_direct_GCJ=yes
18066      hardcode_minus_L_GCJ=yes
18067      hardcode_shlibpath_var_GCJ=no
18068      ;;
18069
18070    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18071    freebsd* | dragonfly*)
18072      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18073      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18074      hardcode_direct_GCJ=yes
18075      hardcode_shlibpath_var_GCJ=no
18076      ;;
18077
18078    hpux9*)
18079      if test "$GCC" = yes; then
18080	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'
18081      else
18082	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'
18083      fi
18084      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18085      hardcode_libdir_separator_GCJ=:
18086      hardcode_direct_GCJ=yes
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      export_dynamic_flag_spec_GCJ='${wl}-E'
18092      ;;
18093
18094    hpux10*)
18095      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18096	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18097      else
18098	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18099      fi
18100      if test "$with_gnu_ld" = no; then
18101	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18102	hardcode_libdir_separator_GCJ=:
18103
18104	hardcode_direct_GCJ=yes
18105	export_dynamic_flag_spec_GCJ='${wl}-E'
18106
18107	# hardcode_minus_L: Not really in the search PATH,
18108	# but as the default location of the library.
18109	hardcode_minus_L_GCJ=yes
18110      fi
18111      ;;
18112
18113    hpux11*)
18114      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18115	case $host_cpu in
18116	hppa*64*)
18117	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18118	  ;;
18119	ia64*)
18120	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18121	  ;;
18122	*)
18123	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18124	  ;;
18125	esac
18126      else
18127	case $host_cpu in
18128	hppa*64*)
18129	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130	  ;;
18131	ia64*)
18132	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18133	  ;;
18134	*)
18135	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18136	  ;;
18137	esac
18138      fi
18139      if test "$with_gnu_ld" = no; then
18140	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18141	hardcode_libdir_separator_GCJ=:
18142
18143	case $host_cpu in
18144	hppa*64*|ia64*)
18145	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18146	  hardcode_direct_GCJ=no
18147	  hardcode_shlibpath_var_GCJ=no
18148	  ;;
18149	*)
18150	  hardcode_direct_GCJ=yes
18151	  export_dynamic_flag_spec_GCJ='${wl}-E'
18152
18153	  # hardcode_minus_L: Not really in the search PATH,
18154	  # but as the default location of the library.
18155	  hardcode_minus_L_GCJ=yes
18156	  ;;
18157	esac
18158      fi
18159      ;;
18160
18161    irix5* | irix6* | nonstopux*)
18162      if test "$GCC" = yes; then
18163	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'
18164      else
18165	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'
18166	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18167      fi
18168      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18169      hardcode_libdir_separator_GCJ=:
18170      link_all_deplibs_GCJ=yes
18171      ;;
18172
18173    netbsd*)
18174      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18175	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18176      else
18177	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18178      fi
18179      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18180      hardcode_direct_GCJ=yes
18181      hardcode_shlibpath_var_GCJ=no
18182      ;;
18183
18184    newsos6)
18185      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18186      hardcode_direct_GCJ=yes
18187      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18188      hardcode_libdir_separator_GCJ=:
18189      hardcode_shlibpath_var_GCJ=no
18190      ;;
18191
18192    openbsd*)
18193      if test -f /usr/libexec/ld.so; then
18194	hardcode_direct_GCJ=yes
18195	hardcode_shlibpath_var_GCJ=no
18196	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18197	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18198	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18199	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18200	  export_dynamic_flag_spec_GCJ='${wl}-E'
18201	else
18202	  case $host_os in
18203	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18204	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18205	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18206	     ;;
18207	   *)
18208	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18209	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18210	     ;;
18211	  esac
18212        fi
18213      else
18214	ld_shlibs_GCJ=no
18215      fi
18216      ;;
18217
18218    os2*)
18219      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18220      hardcode_minus_L_GCJ=yes
18221      allow_undefined_flag_GCJ=unsupported
18222      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'
18223      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18224      ;;
18225
18226    osf3*)
18227      if test "$GCC" = yes; then
18228	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18229	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'
18230      else
18231	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18232	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'
18233      fi
18234      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18235      hardcode_libdir_separator_GCJ=:
18236      ;;
18237
18238    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18239      if test "$GCC" = yes; then
18240	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18241	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'
18242	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18243      else
18244	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18245	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'
18246	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~
18247	$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'
18248
18249	# Both c and cxx compiler support -rpath directly
18250	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18251      fi
18252      hardcode_libdir_separator_GCJ=:
18253      ;;
18254
18255    solaris*)
18256      no_undefined_flag_GCJ=' -z text'
18257      if test "$GCC" = yes; then
18258	wlarc='${wl}'
18259	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18260	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18261	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18262      else
18263	wlarc=''
18264	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18265	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18266  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18267      fi
18268      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18269      hardcode_shlibpath_var_GCJ=no
18270      case $host_os in
18271      solaris2.[0-5] | solaris2.[0-5].*) ;;
18272      *)
18273	# The compiler driver will combine and reorder linker options,
18274	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18275	# but is careful enough not to reorder.
18276 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18277	if test "$GCC" = yes; then
18278	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18279	else
18280	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18281	fi
18282	;;
18283      esac
18284      link_all_deplibs_GCJ=yes
18285      ;;
18286
18287    sunos4*)
18288      if test "x$host_vendor" = xsequent; then
18289	# Use $CC to link under sequent, because it throws in some extra .o
18290	# files that make .init and .fini sections work.
18291	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18292      else
18293	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18294      fi
18295      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18296      hardcode_direct_GCJ=yes
18297      hardcode_minus_L_GCJ=yes
18298      hardcode_shlibpath_var_GCJ=no
18299      ;;
18300
18301    sysv4)
18302      case $host_vendor in
18303	sni)
18304	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18305	  hardcode_direct_GCJ=yes # is this really true???
18306	;;
18307	siemens)
18308	  ## LD is ld it makes a PLAMLIB
18309	  ## CC just makes a GrossModule.
18310	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18311	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18312	  hardcode_direct_GCJ=no
18313        ;;
18314	motorola)
18315	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18317	;;
18318      esac
18319      runpath_var='LD_RUN_PATH'
18320      hardcode_shlibpath_var_GCJ=no
18321      ;;
18322
18323    sysv4.3*)
18324      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325      hardcode_shlibpath_var_GCJ=no
18326      export_dynamic_flag_spec_GCJ='-Bexport'
18327      ;;
18328
18329    sysv4*MP*)
18330      if test -d /usr/nec; then
18331	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18332	hardcode_shlibpath_var_GCJ=no
18333	runpath_var=LD_RUN_PATH
18334	hardcode_runpath_var=yes
18335	ld_shlibs_GCJ=yes
18336      fi
18337      ;;
18338
18339    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18340      no_undefined_flag_GCJ='${wl}-z,text'
18341      archive_cmds_need_lc_GCJ=no
18342      hardcode_shlibpath_var_GCJ=no
18343      runpath_var='LD_RUN_PATH'
18344
18345      if test "$GCC" = yes; then
18346	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18347	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348      else
18349	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18350	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18351      fi
18352      ;;
18353
18354    sysv5* | sco3.2v5* | sco5v6*)
18355      # Note: We can NOT use -z defs as we might desire, because we do not
18356      # link with -lc, and that would cause any symbols used from libc to
18357      # always be unresolved, which means just about no library would
18358      # ever link correctly.  If we're not using GNU ld we use -z text
18359      # though, which does catch some bad symbols but isn't as heavy-handed
18360      # as -z defs.
18361      no_undefined_flag_GCJ='${wl}-z,text'
18362      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18363      archive_cmds_need_lc_GCJ=no
18364      hardcode_shlibpath_var_GCJ=no
18365      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18366      hardcode_libdir_separator_GCJ=':'
18367      link_all_deplibs_GCJ=yes
18368      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18369      runpath_var='LD_RUN_PATH'
18370
18371      if test "$GCC" = yes; then
18372	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18373	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374      else
18375	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18376	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18377      fi
18378      ;;
18379
18380    uts4*)
18381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18383      hardcode_shlibpath_var_GCJ=no
18384      ;;
18385
18386    *)
18387      ld_shlibs_GCJ=no
18388      ;;
18389    esac
18390  fi
18391
18392{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18393$as_echo "$ld_shlibs_GCJ" >&6; }
18394test "$ld_shlibs_GCJ" = no && can_build_shared=no
18395
18396#
18397# Do we need to explicitly link libc?
18398#
18399case "x$archive_cmds_need_lc_GCJ" in
18400x|xyes)
18401  # Assume -lc should be added
18402  archive_cmds_need_lc_GCJ=yes
18403
18404  if test "$enable_shared" = yes && test "$GCC" = yes; then
18405    case $archive_cmds_GCJ in
18406    *'~'*)
18407      # FIXME: we may have to deal with multi-command sequences.
18408      ;;
18409    '$CC '*)
18410      # Test whether the compiler implicitly links with -lc since on some
18411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18412      # to ld, don't add -lc before -lgcc.
18413      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18414$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18415      $rm conftest*
18416      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18417
18418      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419  (eval $ac_compile) 2>&5
18420  ac_status=$?
18421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422  (exit $ac_status); } 2>conftest.err; then
18423        soname=conftest
18424        lib=conftest
18425        libobjs=conftest.$ac_objext
18426        deplibs=
18427        wl=$lt_prog_compiler_wl_GCJ
18428	pic_flag=$lt_prog_compiler_pic_GCJ
18429        compiler_flags=-v
18430        linker_flags=-v
18431        verstring=
18432        output_objdir=.
18433        libname=conftest
18434        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18435        allow_undefined_flag_GCJ=
18436        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18437  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18438  ac_status=$?
18439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); }
18441        then
18442	  archive_cmds_need_lc_GCJ=no
18443        else
18444	  archive_cmds_need_lc_GCJ=yes
18445        fi
18446        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18447      else
18448        cat conftest.err 1>&5
18449      fi
18450      $rm conftest*
18451      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18452$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18453      ;;
18454    esac
18455  fi
18456  ;;
18457esac
18458
18459{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18460$as_echo_n "checking dynamic linker characteristics... " >&6; }
18461library_names_spec=
18462libname_spec='lib$name'
18463soname_spec=
18464shrext_cmds=".so"
18465postinstall_cmds=
18466postuninstall_cmds=
18467finish_cmds=
18468finish_eval=
18469shlibpath_var=
18470shlibpath_overrides_runpath=unknown
18471version_type=none
18472dynamic_linker="$host_os ld.so"
18473sys_lib_dlsearch_path_spec="/lib /usr/lib"
18474
18475need_lib_prefix=unknown
18476hardcode_into_libs=no
18477
18478# when you set need_version to no, make sure it does not cause -set_version
18479# flags to be left without arguments
18480need_version=unknown
18481
18482case $host_os in
18483aix3*)
18484  version_type=linux
18485  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18486  shlibpath_var=LIBPATH
18487
18488  # AIX 3 has no versioning support, so we append a major version to the name.
18489  soname_spec='${libname}${release}${shared_ext}$major'
18490  ;;
18491
18492aix[4-9]*)
18493  version_type=linux
18494  need_lib_prefix=no
18495  need_version=no
18496  hardcode_into_libs=yes
18497  if test "$host_cpu" = ia64; then
18498    # AIX 5 supports IA64
18499    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18500    shlibpath_var=LD_LIBRARY_PATH
18501  else
18502    # With GCC up to 2.95.x, collect2 would create an import file
18503    # for dependence libraries.  The import file would start with
18504    # the line `#! .'.  This would cause the generated library to
18505    # depend on `.', always an invalid library.  This was fixed in
18506    # development snapshots of GCC prior to 3.0.
18507    case $host_os in
18508      aix4 | aix4.[01] | aix4.[01].*)
18509      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18510	   echo ' yes '
18511	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18512	:
18513      else
18514	can_build_shared=no
18515      fi
18516      ;;
18517    esac
18518    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18519    # soname into executable. Probably we can add versioning support to
18520    # collect2, so additional links can be useful in future.
18521    if test "$aix_use_runtimelinking" = yes; then
18522      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18523      # instead of lib<name>.a to let people know that these are not
18524      # typical AIX shared libraries.
18525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18526    else
18527      # We preserve .a as extension for shared libraries through AIX4.2
18528      # and later when we are not doing run time linking.
18529      library_names_spec='${libname}${release}.a $libname.a'
18530      soname_spec='${libname}${release}${shared_ext}$major'
18531    fi
18532    shlibpath_var=LIBPATH
18533  fi
18534  ;;
18535
18536amigaos*)
18537  library_names_spec='$libname.ixlibrary $libname.a'
18538  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18539  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'
18540  ;;
18541
18542beos*)
18543  library_names_spec='${libname}${shared_ext}'
18544  dynamic_linker="$host_os ld.so"
18545  shlibpath_var=LIBRARY_PATH
18546  ;;
18547
18548bsdi[45]*)
18549  version_type=linux
18550  need_version=no
18551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552  soname_spec='${libname}${release}${shared_ext}$major'
18553  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18554  shlibpath_var=LD_LIBRARY_PATH
18555  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18556  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18557  # the default ld.so.conf also contains /usr/contrib/lib and
18558  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18559  # libtool to hard-code these into programs
18560  ;;
18561
18562cygwin* | mingw* | pw32*)
18563  version_type=windows
18564  shrext_cmds=".dll"
18565  need_version=no
18566  need_lib_prefix=no
18567
18568  case $GCC,$host_os in
18569  yes,cygwin* | yes,mingw* | yes,pw32*)
18570    library_names_spec='$libname.dll.a'
18571    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18572    postinstall_cmds='base_file=`basename \${file}`~
18573      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18574      dldir=$destdir/`dirname \$dlpath`~
18575      test -d \$dldir || mkdir -p \$dldir~
18576      $install_prog $dir/$dlname \$dldir/$dlname~
18577      chmod a+x \$dldir/$dlname'
18578    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18579      dlpath=$dir/\$dldll~
18580       $rm \$dlpath'
18581    shlibpath_overrides_runpath=yes
18582
18583    case $host_os in
18584    cygwin*)
18585      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18586      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18587      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18588      ;;
18589    mingw*)
18590      # MinGW DLLs use traditional 'lib' prefix
18591      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18592      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18593      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18594        # It is most probably a Windows format PATH printed by
18595        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18596        # path with ; separators, and with drive letters. We can handle the
18597        # drive letters (cygwin fileutils understands them), so leave them,
18598        # especially as we might pass files found there to a mingw objdump,
18599        # which wouldn't understand a cygwinified path. Ahh.
18600        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18601      else
18602        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18603      fi
18604      ;;
18605    pw32*)
18606      # pw32 DLLs use 'pw' prefix rather than 'lib'
18607      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18608      ;;
18609    esac
18610    ;;
18611
18612  *)
18613    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18614    ;;
18615  esac
18616  dynamic_linker='Win32 ld.exe'
18617  # FIXME: first we should search . and the directory the executable is in
18618  shlibpath_var=PATH
18619  ;;
18620
18621darwin* | rhapsody*)
18622  dynamic_linker="$host_os dyld"
18623  version_type=darwin
18624  need_lib_prefix=no
18625  need_version=no
18626  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18627  soname_spec='${libname}${release}${major}$shared_ext'
18628  shlibpath_overrides_runpath=yes
18629  shlibpath_var=DYLD_LIBRARY_PATH
18630  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18631
18632  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18633  ;;
18634
18635dgux*)
18636  version_type=linux
18637  need_lib_prefix=no
18638  need_version=no
18639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18640  soname_spec='${libname}${release}${shared_ext}$major'
18641  shlibpath_var=LD_LIBRARY_PATH
18642  ;;
18643
18644freebsd1*)
18645  dynamic_linker=no
18646  ;;
18647
18648freebsd* | dragonfly*)
18649  # DragonFly does not have aout.  When/if they implement a new
18650  # versioning mechanism, adjust this.
18651  if test -x /usr/bin/objformat; then
18652    objformat=`/usr/bin/objformat`
18653  else
18654    case $host_os in
18655    freebsd[123]*) objformat=aout ;;
18656    *) objformat=elf ;;
18657    esac
18658  fi
18659  version_type=freebsd-$objformat
18660  case $version_type in
18661    freebsd-elf*)
18662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18663      need_version=no
18664      need_lib_prefix=no
18665      ;;
18666    freebsd-*)
18667      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18668      need_version=yes
18669      ;;
18670  esac
18671  shlibpath_var=LD_LIBRARY_PATH
18672  case $host_os in
18673  freebsd2*)
18674    shlibpath_overrides_runpath=yes
18675    ;;
18676  freebsd3.[01]* | freebsdelf3.[01]*)
18677    shlibpath_overrides_runpath=yes
18678    hardcode_into_libs=yes
18679    ;;
18680  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18681  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18682    shlibpath_overrides_runpath=no
18683    hardcode_into_libs=yes
18684    ;;
18685  *) # from 4.6 on, and DragonFly
18686    shlibpath_overrides_runpath=yes
18687    hardcode_into_libs=yes
18688    ;;
18689  esac
18690  ;;
18691
18692gnu*)
18693  version_type=linux
18694  need_lib_prefix=no
18695  need_version=no
18696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18697  soname_spec='${libname}${release}${shared_ext}$major'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  hardcode_into_libs=yes
18700  ;;
18701
18702hpux9* | hpux10* | hpux11*)
18703  # Give a soname corresponding to the major version so that dld.sl refuses to
18704  # link against other versions.
18705  version_type=sunos
18706  need_lib_prefix=no
18707  need_version=no
18708  case $host_cpu in
18709  ia64*)
18710    shrext_cmds='.so'
18711    hardcode_into_libs=yes
18712    dynamic_linker="$host_os dld.so"
18713    shlibpath_var=LD_LIBRARY_PATH
18714    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716    soname_spec='${libname}${release}${shared_ext}$major'
18717    if test "X$HPUX_IA64_MODE" = X32; then
18718      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18719    else
18720      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18721    fi
18722    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18723    ;;
18724   hppa*64*)
18725     shrext_cmds='.sl'
18726     hardcode_into_libs=yes
18727     dynamic_linker="$host_os dld.sl"
18728     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731     soname_spec='${libname}${release}${shared_ext}$major'
18732     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18733     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18734     ;;
18735   *)
18736    shrext_cmds='.sl'
18737    dynamic_linker="$host_os dld.sl"
18738    shlibpath_var=SHLIB_PATH
18739    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18741    soname_spec='${libname}${release}${shared_ext}$major'
18742    ;;
18743  esac
18744  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18745  postinstall_cmds='chmod 555 $lib'
18746  ;;
18747
18748interix[3-9]*)
18749  version_type=linux
18750  need_lib_prefix=no
18751  need_version=no
18752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18753  soname_spec='${libname}${release}${shared_ext}$major'
18754  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18755  shlibpath_var=LD_LIBRARY_PATH
18756  shlibpath_overrides_runpath=no
18757  hardcode_into_libs=yes
18758  ;;
18759
18760irix5* | irix6* | nonstopux*)
18761  case $host_os in
18762    nonstopux*) version_type=nonstopux ;;
18763    *)
18764	if test "$lt_cv_prog_gnu_ld" = yes; then
18765		version_type=linux
18766	else
18767		version_type=irix
18768	fi ;;
18769  esac
18770  need_lib_prefix=no
18771  need_version=no
18772  soname_spec='${libname}${release}${shared_ext}$major'
18773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18774  case $host_os in
18775  irix5* | nonstopux*)
18776    libsuff= shlibsuff=
18777    ;;
18778  *)
18779    case $LD in # libtool.m4 will add one of these switches to LD
18780    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18781      libsuff= shlibsuff= libmagic=32-bit;;
18782    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18783      libsuff=32 shlibsuff=N32 libmagic=N32;;
18784    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18785      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18786    *) libsuff= shlibsuff= libmagic=never-match;;
18787    esac
18788    ;;
18789  esac
18790  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18791  shlibpath_overrides_runpath=no
18792  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18793  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18794  hardcode_into_libs=yes
18795  ;;
18796
18797# No shared lib support for Linux oldld, aout, or coff.
18798linux*oldld* | linux*aout* | linux*coff*)
18799  dynamic_linker=no
18800  ;;
18801
18802# This must be Linux ELF.
18803linux* | k*bsd*-gnu)
18804  version_type=linux
18805  need_lib_prefix=no
18806  need_version=no
18807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808  soname_spec='${libname}${release}${shared_ext}$major'
18809  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18810  shlibpath_var=LD_LIBRARY_PATH
18811  shlibpath_overrides_runpath=no
18812  # This implies no fast_install, which is unacceptable.
18813  # Some rework will be needed to allow for fast_install
18814  # before this can be enabled.
18815  hardcode_into_libs=yes
18816
18817  # Append ld.so.conf contents to the search path
18818  if test -f /etc/ld.so.conf; then
18819    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' ' '`
18820    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18821  fi
18822
18823  # We used to test for /lib/ld.so.1 and disable shared libraries on
18824  # powerpc, because MkLinux only supported shared libraries with the
18825  # GNU dynamic linker.  Since this was broken with cross compilers,
18826  # most powerpc-linux boxes support dynamic linking these days and
18827  # people can always --disable-shared, the test was removed, and we
18828  # assume the GNU/Linux dynamic linker is in use.
18829  dynamic_linker='GNU/Linux ld.so'
18830  ;;
18831
18832netbsd*)
18833  version_type=sunos
18834  need_lib_prefix=no
18835  need_version=no
18836  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18837    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18838    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18839    dynamic_linker='NetBSD (a.out) ld.so'
18840  else
18841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18842    soname_spec='${libname}${release}${shared_ext}$major'
18843    dynamic_linker='NetBSD ld.elf_so'
18844  fi
18845  shlibpath_var=LD_LIBRARY_PATH
18846  shlibpath_overrides_runpath=yes
18847  hardcode_into_libs=yes
18848  ;;
18849
18850newsos6)
18851  version_type=linux
18852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853  shlibpath_var=LD_LIBRARY_PATH
18854  shlibpath_overrides_runpath=yes
18855  ;;
18856
18857nto-qnx*)
18858  version_type=linux
18859  need_lib_prefix=no
18860  need_version=no
18861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862  soname_spec='${libname}${release}${shared_ext}$major'
18863  shlibpath_var=LD_LIBRARY_PATH
18864  shlibpath_overrides_runpath=yes
18865  ;;
18866
18867openbsd*)
18868  version_type=sunos
18869  sys_lib_dlsearch_path_spec="/usr/lib"
18870  need_lib_prefix=no
18871  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18872  case $host_os in
18873    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18874    *)                         need_version=no  ;;
18875  esac
18876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18878  shlibpath_var=LD_LIBRARY_PATH
18879  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18880    case $host_os in
18881      openbsd2.[89] | openbsd2.[89].*)
18882	shlibpath_overrides_runpath=no
18883	;;
18884      *)
18885	shlibpath_overrides_runpath=yes
18886	;;
18887      esac
18888  else
18889    shlibpath_overrides_runpath=yes
18890  fi
18891  ;;
18892
18893os2*)
18894  libname_spec='$name'
18895  shrext_cmds=".dll"
18896  need_lib_prefix=no
18897  library_names_spec='$libname${shared_ext} $libname.a'
18898  dynamic_linker='OS/2 ld.exe'
18899  shlibpath_var=LIBPATH
18900  ;;
18901
18902osf3* | osf4* | osf5*)
18903  version_type=osf
18904  need_lib_prefix=no
18905  need_version=no
18906  soname_spec='${libname}${release}${shared_ext}$major'
18907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908  shlibpath_var=LD_LIBRARY_PATH
18909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18910  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18911  ;;
18912
18913rdos*)
18914  dynamic_linker=no
18915  ;;
18916
18917solaris*)
18918  version_type=linux
18919  need_lib_prefix=no
18920  need_version=no
18921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922  soname_spec='${libname}${release}${shared_ext}$major'
18923  shlibpath_var=LD_LIBRARY_PATH
18924  shlibpath_overrides_runpath=yes
18925  hardcode_into_libs=yes
18926  # ldd complains unless libraries are executable
18927  postinstall_cmds='chmod +x $lib'
18928  ;;
18929
18930sunos4*)
18931  version_type=sunos
18932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18933  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18934  shlibpath_var=LD_LIBRARY_PATH
18935  shlibpath_overrides_runpath=yes
18936  if test "$with_gnu_ld" = yes; then
18937    need_lib_prefix=no
18938  fi
18939  need_version=yes
18940  ;;
18941
18942sysv4 | sysv4.3*)
18943  version_type=linux
18944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18945  soname_spec='${libname}${release}${shared_ext}$major'
18946  shlibpath_var=LD_LIBRARY_PATH
18947  case $host_vendor in
18948    sni)
18949      shlibpath_overrides_runpath=no
18950      need_lib_prefix=no
18951      export_dynamic_flag_spec='${wl}-Blargedynsym'
18952      runpath_var=LD_RUN_PATH
18953      ;;
18954    siemens)
18955      need_lib_prefix=no
18956      ;;
18957    motorola)
18958      need_lib_prefix=no
18959      need_version=no
18960      shlibpath_overrides_runpath=no
18961      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18962      ;;
18963  esac
18964  ;;
18965
18966sysv4*MP*)
18967  if test -d /usr/nec ;then
18968    version_type=linux
18969    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18970    soname_spec='$libname${shared_ext}.$major'
18971    shlibpath_var=LD_LIBRARY_PATH
18972  fi
18973  ;;
18974
18975sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18976  version_type=freebsd-elf
18977  need_lib_prefix=no
18978  need_version=no
18979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18980  soname_spec='${libname}${release}${shared_ext}$major'
18981  shlibpath_var=LD_LIBRARY_PATH
18982  hardcode_into_libs=yes
18983  if test "$with_gnu_ld" = yes; then
18984    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18985    shlibpath_overrides_runpath=no
18986  else
18987    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18988    shlibpath_overrides_runpath=yes
18989    case $host_os in
18990      sco3.2v5*)
18991        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18992	;;
18993    esac
18994  fi
18995  sys_lib_dlsearch_path_spec='/usr/lib'
18996  ;;
18997
18998uts4*)
18999  version_type=linux
19000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001  soname_spec='${libname}${release}${shared_ext}$major'
19002  shlibpath_var=LD_LIBRARY_PATH
19003  ;;
19004
19005*)
19006  dynamic_linker=no
19007  ;;
19008esac
19009{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19010$as_echo "$dynamic_linker" >&6; }
19011test "$dynamic_linker" = no && can_build_shared=no
19012
19013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19014  $as_echo_n "(cached) " >&6
19015else
19016  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19017fi
19018
19019sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19020if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19021  $as_echo_n "(cached) " >&6
19022else
19023  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19024fi
19025
19026sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19027
19028variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19029if test "$GCC" = yes; then
19030  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19031fi
19032
19033{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19034$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19035hardcode_action_GCJ=
19036if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19037   test -n "$runpath_var_GCJ" || \
19038   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19039
19040  # We can hardcode non-existant directories.
19041  if test "$hardcode_direct_GCJ" != no &&
19042     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19043     # have to relink, otherwise we might link with an installed library
19044     # when we should be linking with a yet-to-be-installed one
19045     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19046     test "$hardcode_minus_L_GCJ" != no; then
19047    # Linking always hardcodes the temporary library directory.
19048    hardcode_action_GCJ=relink
19049  else
19050    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19051    hardcode_action_GCJ=immediate
19052  fi
19053else
19054  # We cannot hardcode anything, or else we can only hardcode existing
19055  # directories.
19056  hardcode_action_GCJ=unsupported
19057fi
19058{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19059$as_echo "$hardcode_action_GCJ" >&6; }
19060
19061if test "$hardcode_action_GCJ" = relink; then
19062  # Fast installation is not supported
19063  enable_fast_install=no
19064elif test "$shlibpath_overrides_runpath" = yes ||
19065     test "$enable_shared" = no; then
19066  # Fast installation is not necessary
19067  enable_fast_install=needless
19068fi
19069
19070
19071# The else clause should only fire when bootstrapping the
19072# libtool distribution, otherwise you forgot to ship ltmain.sh
19073# with your package, and you will get complaints that there are
19074# no rules to generate ltmain.sh.
19075if test -f "$ltmain"; then
19076  # See if we are running on zsh, and set the options which allow our commands through
19077  # without removal of \ escapes.
19078  if test -n "${ZSH_VERSION+set}" ; then
19079    setopt NO_GLOB_SUBST
19080  fi
19081  # Now quote all the things that may contain metacharacters while being
19082  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19083  # variables and quote the copies for generation of the libtool script.
19084  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19085    SED SHELL STRIP \
19086    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19087    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19088    deplibs_check_method reload_flag reload_cmds need_locks \
19089    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19090    lt_cv_sys_global_symbol_to_c_name_address \
19091    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19092    old_postinstall_cmds old_postuninstall_cmds \
19093    compiler_GCJ \
19094    CC_GCJ \
19095    LD_GCJ \
19096    lt_prog_compiler_wl_GCJ \
19097    lt_prog_compiler_pic_GCJ \
19098    lt_prog_compiler_static_GCJ \
19099    lt_prog_compiler_no_builtin_flag_GCJ \
19100    export_dynamic_flag_spec_GCJ \
19101    thread_safe_flag_spec_GCJ \
19102    whole_archive_flag_spec_GCJ \
19103    enable_shared_with_static_runtimes_GCJ \
19104    old_archive_cmds_GCJ \
19105    old_archive_from_new_cmds_GCJ \
19106    predep_objects_GCJ \
19107    postdep_objects_GCJ \
19108    predeps_GCJ \
19109    postdeps_GCJ \
19110    compiler_lib_search_path_GCJ \
19111    compiler_lib_search_dirs_GCJ \
19112    archive_cmds_GCJ \
19113    archive_expsym_cmds_GCJ \
19114    postinstall_cmds_GCJ \
19115    postuninstall_cmds_GCJ \
19116    old_archive_from_expsyms_cmds_GCJ \
19117    allow_undefined_flag_GCJ \
19118    no_undefined_flag_GCJ \
19119    export_symbols_cmds_GCJ \
19120    hardcode_libdir_flag_spec_GCJ \
19121    hardcode_libdir_flag_spec_ld_GCJ \
19122    hardcode_libdir_separator_GCJ \
19123    hardcode_automatic_GCJ \
19124    module_cmds_GCJ \
19125    module_expsym_cmds_GCJ \
19126    lt_cv_prog_compiler_c_o_GCJ \
19127    fix_srcfile_path_GCJ \
19128    exclude_expsyms_GCJ \
19129    include_expsyms_GCJ; do
19130
19131    case $var in
19132    old_archive_cmds_GCJ | \
19133    old_archive_from_new_cmds_GCJ | \
19134    archive_cmds_GCJ | \
19135    archive_expsym_cmds_GCJ | \
19136    module_cmds_GCJ | \
19137    module_expsym_cmds_GCJ | \
19138    old_archive_from_expsyms_cmds_GCJ | \
19139    export_symbols_cmds_GCJ | \
19140    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19141    postinstall_cmds | postuninstall_cmds | \
19142    old_postinstall_cmds | old_postuninstall_cmds | \
19143    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19144      # Double-quote double-evaled strings.
19145      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19146      ;;
19147    *)
19148      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19149      ;;
19150    esac
19151  done
19152
19153  case $lt_echo in
19154  *'\$0 --fallback-echo"')
19155    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19156    ;;
19157  esac
19158
19159cfgfile="$ofile"
19160
19161  cat <<__EOF__ >> "$cfgfile"
19162# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19163
19164# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19165
19166# Shell to use when invoking shell scripts.
19167SHELL=$lt_SHELL
19168
19169# Whether or not to build shared libraries.
19170build_libtool_libs=$enable_shared
19171
19172# Whether or not to build static libraries.
19173build_old_libs=$enable_static
19174
19175# Whether or not to add -lc for building shared libraries.
19176build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19177
19178# Whether or not to disallow shared libs when runtime libs are static
19179allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19180
19181# Whether or not to optimize for fast installation.
19182fast_install=$enable_fast_install
19183
19184# The host system.
19185host_alias=$host_alias
19186host=$host
19187host_os=$host_os
19188
19189# The build system.
19190build_alias=$build_alias
19191build=$build
19192build_os=$build_os
19193
19194# An echo program that does not interpret backslashes.
19195echo=$lt_echo
19196
19197# The archiver.
19198AR=$lt_AR
19199AR_FLAGS=$lt_AR_FLAGS
19200
19201# A C compiler.
19202LTCC=$lt_LTCC
19203
19204# LTCC compiler flags.
19205LTCFLAGS=$lt_LTCFLAGS
19206
19207# A language-specific compiler.
19208CC=$lt_compiler_GCJ
19209
19210# Is the compiler the GNU C compiler?
19211with_gcc=$GCC_GCJ
19212
19213# An ERE matcher.
19214EGREP=$lt_EGREP
19215
19216# The linker used to build libraries.
19217LD=$lt_LD_GCJ
19218
19219# Whether we need hard or soft links.
19220LN_S=$lt_LN_S
19221
19222# A BSD-compatible nm program.
19223NM=$lt_NM
19224
19225# A symbol stripping program
19226STRIP=$lt_STRIP
19227
19228# Used to examine libraries when file_magic_cmd begins "file"
19229MAGIC_CMD=$MAGIC_CMD
19230
19231# Used on cygwin: DLL creation program.
19232DLLTOOL="$DLLTOOL"
19233
19234# Used on cygwin: object dumper.
19235OBJDUMP="$OBJDUMP"
19236
19237# Used on cygwin: assembler.
19238AS="$AS"
19239
19240# The name of the directory that contains temporary libtool files.
19241objdir=$objdir
19242
19243# How to create reloadable object files.
19244reload_flag=$lt_reload_flag
19245reload_cmds=$lt_reload_cmds
19246
19247# How to pass a linker flag through the compiler.
19248wl=$lt_lt_prog_compiler_wl_GCJ
19249
19250# Object file suffix (normally "o").
19251objext="$ac_objext"
19252
19253# Old archive suffix (normally "a").
19254libext="$libext"
19255
19256# Shared library suffix (normally ".so").
19257shrext_cmds='$shrext_cmds'
19258
19259# Executable file suffix (normally "").
19260exeext="$exeext"
19261
19262# Additional compiler flags for building library objects.
19263pic_flag=$lt_lt_prog_compiler_pic_GCJ
19264pic_mode=$pic_mode
19265
19266# What is the maximum length of a command?
19267max_cmd_len=$lt_cv_sys_max_cmd_len
19268
19269# Does compiler simultaneously support -c and -o options?
19270compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19271
19272# Must we lock files when doing compilation?
19273need_locks=$lt_need_locks
19274
19275# Do we need the lib prefix for modules?
19276need_lib_prefix=$need_lib_prefix
19277
19278# Do we need a version for libraries?
19279need_version=$need_version
19280
19281# Whether dlopen is supported.
19282dlopen_support=$enable_dlopen
19283
19284# Whether dlopen of programs is supported.
19285dlopen_self=$enable_dlopen_self
19286
19287# Whether dlopen of statically linked programs is supported.
19288dlopen_self_static=$enable_dlopen_self_static
19289
19290# Compiler flag to prevent dynamic linking.
19291link_static_flag=$lt_lt_prog_compiler_static_GCJ
19292
19293# Compiler flag to turn off builtin functions.
19294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19295
19296# Compiler flag to allow reflexive dlopens.
19297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19298
19299# Compiler flag to generate shared objects directly from archives.
19300whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19301
19302# Compiler flag to generate thread-safe objects.
19303thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19304
19305# Library versioning type.
19306version_type=$version_type
19307
19308# Format of library name prefix.
19309libname_spec=$lt_libname_spec
19310
19311# List of archive names.  First name is the real one, the rest are links.
19312# The last name is the one that the linker finds with -lNAME.
19313library_names_spec=$lt_library_names_spec
19314
19315# The coded name of the library, if different from the real name.
19316soname_spec=$lt_soname_spec
19317
19318# Commands used to build and install an old-style archive.
19319RANLIB=$lt_RANLIB
19320old_archive_cmds=$lt_old_archive_cmds_GCJ
19321old_postinstall_cmds=$lt_old_postinstall_cmds
19322old_postuninstall_cmds=$lt_old_postuninstall_cmds
19323
19324# Create an old-style archive from a shared archive.
19325old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19326
19327# Create a temporary old-style archive to link instead of a shared archive.
19328old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19329
19330# Commands used to build and install a shared archive.
19331archive_cmds=$lt_archive_cmds_GCJ
19332archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19333postinstall_cmds=$lt_postinstall_cmds
19334postuninstall_cmds=$lt_postuninstall_cmds
19335
19336# Commands used to build a loadable module (assumed same as above if empty)
19337module_cmds=$lt_module_cmds_GCJ
19338module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19339
19340# Commands to strip libraries.
19341old_striplib=$lt_old_striplib
19342striplib=$lt_striplib
19343
19344# Dependencies to place before the objects being linked to create a
19345# shared library.
19346predep_objects=$lt_predep_objects_GCJ
19347
19348# Dependencies to place after the objects being linked to create a
19349# shared library.
19350postdep_objects=$lt_postdep_objects_GCJ
19351
19352# Dependencies to place before the objects being linked to create a
19353# shared library.
19354predeps=$lt_predeps_GCJ
19355
19356# Dependencies to place after the objects being linked to create a
19357# shared library.
19358postdeps=$lt_postdeps_GCJ
19359
19360# The directories searched by this compiler when creating a shared
19361# library
19362compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19363
19364# The library search path used internally by the compiler when linking
19365# a shared library.
19366compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19367
19368# Method to check whether dependent libraries are shared objects.
19369deplibs_check_method=$lt_deplibs_check_method
19370
19371# Command to use when deplibs_check_method == file_magic.
19372file_magic_cmd=$lt_file_magic_cmd
19373
19374# Flag that allows shared libraries with undefined symbols to be built.
19375allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19376
19377# Flag that forces no undefined symbols.
19378no_undefined_flag=$lt_no_undefined_flag_GCJ
19379
19380# Commands used to finish a libtool library installation in a directory.
19381finish_cmds=$lt_finish_cmds
19382
19383# Same as above, but a single script fragment to be evaled but not shown.
19384finish_eval=$lt_finish_eval
19385
19386# Take the output of nm and produce a listing of raw symbols and C names.
19387global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19388
19389# Transform the output of nm in a proper C declaration
19390global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19391
19392# Transform the output of nm in a C name address pair
19393global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19394
19395# This is the shared library runtime path variable.
19396runpath_var=$runpath_var
19397
19398# This is the shared library path variable.
19399shlibpath_var=$shlibpath_var
19400
19401# Is shlibpath searched before the hard-coded library search path?
19402shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19403
19404# How to hardcode a shared library path into an executable.
19405hardcode_action=$hardcode_action_GCJ
19406
19407# Whether we should hardcode library paths into libraries.
19408hardcode_into_libs=$hardcode_into_libs
19409
19410# Flag to hardcode \$libdir into a binary during linking.
19411# This must work even if \$libdir does not exist.
19412hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19413
19414# If ld is used when linking, flag to hardcode \$libdir into
19415# a binary during linking. This must work even if \$libdir does
19416# not exist.
19417hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19418
19419# Whether we need a single -rpath flag with a separated argument.
19420hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19421
19422# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19423# resulting binary.
19424hardcode_direct=$hardcode_direct_GCJ
19425
19426# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19427# resulting binary.
19428hardcode_minus_L=$hardcode_minus_L_GCJ
19429
19430# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19431# the resulting binary.
19432hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19433
19434# Set to yes if building a shared library automatically hardcodes DIR into the library
19435# and all subsequent libraries and executables linked against it.
19436hardcode_automatic=$hardcode_automatic_GCJ
19437
19438# Variables whose values should be saved in libtool wrapper scripts and
19439# restored at relink time.
19440variables_saved_for_relink="$variables_saved_for_relink"
19441
19442# Whether libtool must link a program against all its dependency libraries.
19443link_all_deplibs=$link_all_deplibs_GCJ
19444
19445# Compile-time system search path for libraries
19446sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19447
19448# Run-time system search path for libraries
19449sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19450
19451# Fix the shell variable \$srcfile for the compiler.
19452fix_srcfile_path=$lt_fix_srcfile_path
19453
19454# Set to yes if exported symbols are required.
19455always_export_symbols=$always_export_symbols_GCJ
19456
19457# The commands to list exported symbols.
19458export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19459
19460# The commands to extract the exported symbol list from a shared archive.
19461extract_expsyms_cmds=$lt_extract_expsyms_cmds
19462
19463# Symbols that should not be listed in the preloaded symbols.
19464exclude_expsyms=$lt_exclude_expsyms_GCJ
19465
19466# Symbols that must always be exported.
19467include_expsyms=$lt_include_expsyms_GCJ
19468
19469# ### END LIBTOOL TAG CONFIG: $tagname
19470
19471__EOF__
19472
19473
19474else
19475  # If there is no Makefile yet, we rely on a make rule to execute
19476  # `config.status --recheck' to rerun these tests and create the
19477  # libtool script then.
19478  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19479  if test -f "$ltmain_in"; then
19480    test -f Makefile && make "$ltmain"
19481  fi
19482fi
19483
19484
19485ac_ext=c
19486ac_cpp='$CPP $CPPFLAGS'
19487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489ac_compiler_gnu=$ac_cv_c_compiler_gnu
19490
19491CC="$lt_save_CC"
19492
19493	else
19494	  tagname=""
19495	fi
19496	;;
19497
19498      RC)
19499
19500
19501# Source file extension for RC test sources.
19502ac_ext=rc
19503
19504# Object file extension for compiled RC test sources.
19505objext=o
19506objext_RC=$objext
19507
19508# Code to be used in simple compile tests
19509lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19510
19511# Code to be used in simple link tests
19512lt_simple_link_test_code="$lt_simple_compile_test_code"
19513
19514# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19515
19516# If no C compiler was specified, use CC.
19517LTCC=${LTCC-"$CC"}
19518
19519# If no C compiler flags were specified, use CFLAGS.
19520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19521
19522# Allow CC to be a program name with arguments.
19523compiler=$CC
19524
19525
19526# save warnings/boilerplate of simple test code
19527ac_outfile=conftest.$ac_objext
19528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19530_lt_compiler_boilerplate=`cat conftest.err`
19531$rm conftest*
19532
19533ac_outfile=conftest.$ac_objext
19534echo "$lt_simple_link_test_code" >conftest.$ac_ext
19535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19536_lt_linker_boilerplate=`cat conftest.err`
19537$rm -r conftest*
19538
19539
19540# Allow CC to be a program name with arguments.
19541lt_save_CC="$CC"
19542CC=${RC-"windres"}
19543compiler=$CC
19544compiler_RC=$CC
19545for cc_temp in $compiler""; do
19546  case $cc_temp in
19547    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19548    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19549    \-*) ;;
19550    *) break;;
19551  esac
19552done
19553cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19554
19555lt_cv_prog_compiler_c_o_RC=yes
19556
19557# The else clause should only fire when bootstrapping the
19558# libtool distribution, otherwise you forgot to ship ltmain.sh
19559# with your package, and you will get complaints that there are
19560# no rules to generate ltmain.sh.
19561if test -f "$ltmain"; then
19562  # See if we are running on zsh, and set the options which allow our commands through
19563  # without removal of \ escapes.
19564  if test -n "${ZSH_VERSION+set}" ; then
19565    setopt NO_GLOB_SUBST
19566  fi
19567  # Now quote all the things that may contain metacharacters while being
19568  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19569  # variables and quote the copies for generation of the libtool script.
19570  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19571    SED SHELL STRIP \
19572    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19573    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19574    deplibs_check_method reload_flag reload_cmds need_locks \
19575    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19576    lt_cv_sys_global_symbol_to_c_name_address \
19577    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19578    old_postinstall_cmds old_postuninstall_cmds \
19579    compiler_RC \
19580    CC_RC \
19581    LD_RC \
19582    lt_prog_compiler_wl_RC \
19583    lt_prog_compiler_pic_RC \
19584    lt_prog_compiler_static_RC \
19585    lt_prog_compiler_no_builtin_flag_RC \
19586    export_dynamic_flag_spec_RC \
19587    thread_safe_flag_spec_RC \
19588    whole_archive_flag_spec_RC \
19589    enable_shared_with_static_runtimes_RC \
19590    old_archive_cmds_RC \
19591    old_archive_from_new_cmds_RC \
19592    predep_objects_RC \
19593    postdep_objects_RC \
19594    predeps_RC \
19595    postdeps_RC \
19596    compiler_lib_search_path_RC \
19597    compiler_lib_search_dirs_RC \
19598    archive_cmds_RC \
19599    archive_expsym_cmds_RC \
19600    postinstall_cmds_RC \
19601    postuninstall_cmds_RC \
19602    old_archive_from_expsyms_cmds_RC \
19603    allow_undefined_flag_RC \
19604    no_undefined_flag_RC \
19605    export_symbols_cmds_RC \
19606    hardcode_libdir_flag_spec_RC \
19607    hardcode_libdir_flag_spec_ld_RC \
19608    hardcode_libdir_separator_RC \
19609    hardcode_automatic_RC \
19610    module_cmds_RC \
19611    module_expsym_cmds_RC \
19612    lt_cv_prog_compiler_c_o_RC \
19613    fix_srcfile_path_RC \
19614    exclude_expsyms_RC \
19615    include_expsyms_RC; do
19616
19617    case $var in
19618    old_archive_cmds_RC | \
19619    old_archive_from_new_cmds_RC | \
19620    archive_cmds_RC | \
19621    archive_expsym_cmds_RC | \
19622    module_cmds_RC | \
19623    module_expsym_cmds_RC | \
19624    old_archive_from_expsyms_cmds_RC | \
19625    export_symbols_cmds_RC | \
19626    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19627    postinstall_cmds | postuninstall_cmds | \
19628    old_postinstall_cmds | old_postuninstall_cmds | \
19629    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19630      # Double-quote double-evaled strings.
19631      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19632      ;;
19633    *)
19634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19635      ;;
19636    esac
19637  done
19638
19639  case $lt_echo in
19640  *'\$0 --fallback-echo"')
19641    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19642    ;;
19643  esac
19644
19645cfgfile="$ofile"
19646
19647  cat <<__EOF__ >> "$cfgfile"
19648# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19649
19650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19651
19652# Shell to use when invoking shell scripts.
19653SHELL=$lt_SHELL
19654
19655# Whether or not to build shared libraries.
19656build_libtool_libs=$enable_shared
19657
19658# Whether or not to build static libraries.
19659build_old_libs=$enable_static
19660
19661# Whether or not to add -lc for building shared libraries.
19662build_libtool_need_lc=$archive_cmds_need_lc_RC
19663
19664# Whether or not to disallow shared libs when runtime libs are static
19665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19666
19667# Whether or not to optimize for fast installation.
19668fast_install=$enable_fast_install
19669
19670# The host system.
19671host_alias=$host_alias
19672host=$host
19673host_os=$host_os
19674
19675# The build system.
19676build_alias=$build_alias
19677build=$build
19678build_os=$build_os
19679
19680# An echo program that does not interpret backslashes.
19681echo=$lt_echo
19682
19683# The archiver.
19684AR=$lt_AR
19685AR_FLAGS=$lt_AR_FLAGS
19686
19687# A C compiler.
19688LTCC=$lt_LTCC
19689
19690# LTCC compiler flags.
19691LTCFLAGS=$lt_LTCFLAGS
19692
19693# A language-specific compiler.
19694CC=$lt_compiler_RC
19695
19696# Is the compiler the GNU C compiler?
19697with_gcc=$GCC_RC
19698
19699# An ERE matcher.
19700EGREP=$lt_EGREP
19701
19702# The linker used to build libraries.
19703LD=$lt_LD_RC
19704
19705# Whether we need hard or soft links.
19706LN_S=$lt_LN_S
19707
19708# A BSD-compatible nm program.
19709NM=$lt_NM
19710
19711# A symbol stripping program
19712STRIP=$lt_STRIP
19713
19714# Used to examine libraries when file_magic_cmd begins "file"
19715MAGIC_CMD=$MAGIC_CMD
19716
19717# Used on cygwin: DLL creation program.
19718DLLTOOL="$DLLTOOL"
19719
19720# Used on cygwin: object dumper.
19721OBJDUMP="$OBJDUMP"
19722
19723# Used on cygwin: assembler.
19724AS="$AS"
19725
19726# The name of the directory that contains temporary libtool files.
19727objdir=$objdir
19728
19729# How to create reloadable object files.
19730reload_flag=$lt_reload_flag
19731reload_cmds=$lt_reload_cmds
19732
19733# How to pass a linker flag through the compiler.
19734wl=$lt_lt_prog_compiler_wl_RC
19735
19736# Object file suffix (normally "o").
19737objext="$ac_objext"
19738
19739# Old archive suffix (normally "a").
19740libext="$libext"
19741
19742# Shared library suffix (normally ".so").
19743shrext_cmds='$shrext_cmds'
19744
19745# Executable file suffix (normally "").
19746exeext="$exeext"
19747
19748# Additional compiler flags for building library objects.
19749pic_flag=$lt_lt_prog_compiler_pic_RC
19750pic_mode=$pic_mode
19751
19752# What is the maximum length of a command?
19753max_cmd_len=$lt_cv_sys_max_cmd_len
19754
19755# Does compiler simultaneously support -c and -o options?
19756compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19757
19758# Must we lock files when doing compilation?
19759need_locks=$lt_need_locks
19760
19761# Do we need the lib prefix for modules?
19762need_lib_prefix=$need_lib_prefix
19763
19764# Do we need a version for libraries?
19765need_version=$need_version
19766
19767# Whether dlopen is supported.
19768dlopen_support=$enable_dlopen
19769
19770# Whether dlopen of programs is supported.
19771dlopen_self=$enable_dlopen_self
19772
19773# Whether dlopen of statically linked programs is supported.
19774dlopen_self_static=$enable_dlopen_self_static
19775
19776# Compiler flag to prevent dynamic linking.
19777link_static_flag=$lt_lt_prog_compiler_static_RC
19778
19779# Compiler flag to turn off builtin functions.
19780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19781
19782# Compiler flag to allow reflexive dlopens.
19783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19784
19785# Compiler flag to generate shared objects directly from archives.
19786whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19787
19788# Compiler flag to generate thread-safe objects.
19789thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19790
19791# Library versioning type.
19792version_type=$version_type
19793
19794# Format of library name prefix.
19795libname_spec=$lt_libname_spec
19796
19797# List of archive names.  First name is the real one, the rest are links.
19798# The last name is the one that the linker finds with -lNAME.
19799library_names_spec=$lt_library_names_spec
19800
19801# The coded name of the library, if different from the real name.
19802soname_spec=$lt_soname_spec
19803
19804# Commands used to build and install an old-style archive.
19805RANLIB=$lt_RANLIB
19806old_archive_cmds=$lt_old_archive_cmds_RC
19807old_postinstall_cmds=$lt_old_postinstall_cmds
19808old_postuninstall_cmds=$lt_old_postuninstall_cmds
19809
19810# Create an old-style archive from a shared archive.
19811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19812
19813# Create a temporary old-style archive to link instead of a shared archive.
19814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19815
19816# Commands used to build and install a shared archive.
19817archive_cmds=$lt_archive_cmds_RC
19818archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19819postinstall_cmds=$lt_postinstall_cmds
19820postuninstall_cmds=$lt_postuninstall_cmds
19821
19822# Commands used to build a loadable module (assumed same as above if empty)
19823module_cmds=$lt_module_cmds_RC
19824module_expsym_cmds=$lt_module_expsym_cmds_RC
19825
19826# Commands to strip libraries.
19827old_striplib=$lt_old_striplib
19828striplib=$lt_striplib
19829
19830# Dependencies to place before the objects being linked to create a
19831# shared library.
19832predep_objects=$lt_predep_objects_RC
19833
19834# Dependencies to place after the objects being linked to create a
19835# shared library.
19836postdep_objects=$lt_postdep_objects_RC
19837
19838# Dependencies to place before the objects being linked to create a
19839# shared library.
19840predeps=$lt_predeps_RC
19841
19842# Dependencies to place after the objects being linked to create a
19843# shared library.
19844postdeps=$lt_postdeps_RC
19845
19846# The directories searched by this compiler when creating a shared
19847# library
19848compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19849
19850# The library search path used internally by the compiler when linking
19851# a shared library.
19852compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19853
19854# Method to check whether dependent libraries are shared objects.
19855deplibs_check_method=$lt_deplibs_check_method
19856
19857# Command to use when deplibs_check_method == file_magic.
19858file_magic_cmd=$lt_file_magic_cmd
19859
19860# Flag that allows shared libraries with undefined symbols to be built.
19861allow_undefined_flag=$lt_allow_undefined_flag_RC
19862
19863# Flag that forces no undefined symbols.
19864no_undefined_flag=$lt_no_undefined_flag_RC
19865
19866# Commands used to finish a libtool library installation in a directory.
19867finish_cmds=$lt_finish_cmds
19868
19869# Same as above, but a single script fragment to be evaled but not shown.
19870finish_eval=$lt_finish_eval
19871
19872# Take the output of nm and produce a listing of raw symbols and C names.
19873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19874
19875# Transform the output of nm in a proper C declaration
19876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19877
19878# Transform the output of nm in a C name address pair
19879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19880
19881# This is the shared library runtime path variable.
19882runpath_var=$runpath_var
19883
19884# This is the shared library path variable.
19885shlibpath_var=$shlibpath_var
19886
19887# Is shlibpath searched before the hard-coded library search path?
19888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19889
19890# How to hardcode a shared library path into an executable.
19891hardcode_action=$hardcode_action_RC
19892
19893# Whether we should hardcode library paths into libraries.
19894hardcode_into_libs=$hardcode_into_libs
19895
19896# Flag to hardcode \$libdir into a binary during linking.
19897# This must work even if \$libdir does not exist.
19898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19899
19900# If ld is used when linking, flag to hardcode \$libdir into
19901# a binary during linking. This must work even if \$libdir does
19902# not exist.
19903hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19904
19905# Whether we need a single -rpath flag with a separated argument.
19906hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19907
19908# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19909# resulting binary.
19910hardcode_direct=$hardcode_direct_RC
19911
19912# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19913# resulting binary.
19914hardcode_minus_L=$hardcode_minus_L_RC
19915
19916# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19917# the resulting binary.
19918hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19919
19920# Set to yes if building a shared library automatically hardcodes DIR into the library
19921# and all subsequent libraries and executables linked against it.
19922hardcode_automatic=$hardcode_automatic_RC
19923
19924# Variables whose values should be saved in libtool wrapper scripts and
19925# restored at relink time.
19926variables_saved_for_relink="$variables_saved_for_relink"
19927
19928# Whether libtool must link a program against all its dependency libraries.
19929link_all_deplibs=$link_all_deplibs_RC
19930
19931# Compile-time system search path for libraries
19932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19933
19934# Run-time system search path for libraries
19935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19936
19937# Fix the shell variable \$srcfile for the compiler.
19938fix_srcfile_path=$lt_fix_srcfile_path
19939
19940# Set to yes if exported symbols are required.
19941always_export_symbols=$always_export_symbols_RC
19942
19943# The commands to list exported symbols.
19944export_symbols_cmds=$lt_export_symbols_cmds_RC
19945
19946# The commands to extract the exported symbol list from a shared archive.
19947extract_expsyms_cmds=$lt_extract_expsyms_cmds
19948
19949# Symbols that should not be listed in the preloaded symbols.
19950exclude_expsyms=$lt_exclude_expsyms_RC
19951
19952# Symbols that must always be exported.
19953include_expsyms=$lt_include_expsyms_RC
19954
19955# ### END LIBTOOL TAG CONFIG: $tagname
19956
19957__EOF__
19958
19959
19960else
19961  # If there is no Makefile yet, we rely on a make rule to execute
19962  # `config.status --recheck' to rerun these tests and create the
19963  # libtool script then.
19964  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19965  if test -f "$ltmain_in"; then
19966    test -f Makefile && make "$ltmain"
19967  fi
19968fi
19969
19970
19971ac_ext=c
19972ac_cpp='$CPP $CPPFLAGS'
19973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19975ac_compiler_gnu=$ac_cv_c_compiler_gnu
19976
19977CC="$lt_save_CC"
19978
19979	;;
19980
19981      *)
19982	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19983$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19984   { (exit 1); exit 1; }; }
19985	;;
19986      esac
19987
19988      # Append the new tag name to the list of available tags.
19989      if test -n "$tagname" ; then
19990      available_tags="$available_tags $tagname"
19991    fi
19992    fi
19993  done
19994  IFS="$lt_save_ifs"
19995
19996  # Now substitute the updated list of available tags.
19997  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19998    mv "${ofile}T" "$ofile"
19999    chmod +x "$ofile"
20000  else
20001    rm -f "${ofile}T"
20002    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20003$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20004   { (exit 1); exit 1; }; }
20005  fi
20006fi
20007
20008
20009
20010# This can be used to rebuild libtool when needed
20011LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20012
20013# Always use our own libtool.
20014LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20015
20016# Prevent multiple expansion
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20039$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20040if test "${ac_cv_prog_cc_c99+set}" = set; then
20041  $as_echo_n "(cached) " >&6
20042else
20043  ac_cv_prog_cc_c99=no
20044ac_save_CC=$CC
20045cat >conftest.$ac_ext <<_ACEOF
20046/* confdefs.h.  */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h.  */
20051#include <stdarg.h>
20052#include <stdbool.h>
20053#include <stdlib.h>
20054#include <wchar.h>
20055#include <stdio.h>
20056
20057// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20058#define debug(...) fprintf (stderr, __VA_ARGS__)
20059#define showlist(...) puts (#__VA_ARGS__)
20060#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20061static void
20062test_varargs_macros (void)
20063{
20064  int x = 1234;
20065  int y = 5678;
20066  debug ("Flag");
20067  debug ("X = %d\n", x);
20068  showlist (The first, second, and third items.);
20069  report (x>y, "x is %d but y is %d", x, y);
20070}
20071
20072// Check long long types.
20073#define BIG64 18446744073709551615ull
20074#define BIG32 4294967295ul
20075#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20076#if !BIG_OK
20077  your preprocessor is broken;
20078#endif
20079#if BIG_OK
20080#else
20081  your preprocessor is broken;
20082#endif
20083static long long int bignum = -9223372036854775807LL;
20084static unsigned long long int ubignum = BIG64;
20085
20086struct incomplete_array
20087{
20088  int datasize;
20089  double data[];
20090};
20091
20092struct named_init {
20093  int number;
20094  const wchar_t *name;
20095  double average;
20096};
20097
20098typedef const char *ccp;
20099
20100static inline int
20101test_restrict (ccp restrict text)
20102{
20103  // See if C++-style comments work.
20104  // Iterate through items via the restricted pointer.
20105  // Also check for declarations in for loops.
20106  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20107    continue;
20108  return 0;
20109}
20110
20111// Check varargs and va_copy.
20112static void
20113test_varargs (const char *format, ...)
20114{
20115  va_list args;
20116  va_start (args, format);
20117  va_list args_copy;
20118  va_copy (args_copy, args);
20119
20120  const char *str;
20121  int number;
20122  float fnumber;
20123
20124  while (*format)
20125    {
20126      switch (*format++)
20127	{
20128	case 's': // string
20129	  str = va_arg (args_copy, const char *);
20130	  break;
20131	case 'd': // int
20132	  number = va_arg (args_copy, int);
20133	  break;
20134	case 'f': // float
20135	  fnumber = va_arg (args_copy, double);
20136	  break;
20137	default:
20138	  break;
20139	}
20140    }
20141  va_end (args_copy);
20142  va_end (args);
20143}
20144
20145int
20146main ()
20147{
20148
20149  // Check bool.
20150  _Bool success = false;
20151
20152  // Check restrict.
20153  if (test_restrict ("String literal") == 0)
20154    success = true;
20155  char *restrict newvar = "Another string";
20156
20157  // Check varargs.
20158  test_varargs ("s, d' f .", "string", 65, 34.234);
20159  test_varargs_macros ();
20160
20161  // Check flexible array members.
20162  struct incomplete_array *ia =
20163    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20164  ia->datasize = 10;
20165  for (int i = 0; i < ia->datasize; ++i)
20166    ia->data[i] = i * 1.234;
20167
20168  // Check named initializers.
20169  struct named_init ni = {
20170    .number = 34,
20171    .name = L"Test wide string",
20172    .average = 543.34343,
20173  };
20174
20175  ni.number = 58;
20176
20177  int dynamic_array[ni.number];
20178  dynamic_array[ni.number - 1] = 543;
20179
20180  // work around unused variable warnings
20181  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20182	  || dynamic_array[ni.number - 1] != 543);
20183
20184  ;
20185  return 0;
20186}
20187_ACEOF
20188for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
20189do
20190  CC="$ac_save_CC $ac_arg"
20191  rm -f conftest.$ac_objext
20192if { (ac_try="$ac_compile"
20193case "(($ac_try" in
20194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195  *) ac_try_echo=$ac_try;;
20196esac
20197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20198$as_echo "$ac_try_echo") >&5
20199  (eval "$ac_compile") 2>conftest.er1
20200  ac_status=$?
20201  grep -v '^ *+' conftest.er1 >conftest.err
20202  rm -f conftest.er1
20203  cat conftest.err >&5
20204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205  (exit $ac_status); } && {
20206	 test -z "$ac_c_werror_flag" ||
20207	 test ! -s conftest.err
20208       } && test -s conftest.$ac_objext; then
20209  ac_cv_prog_cc_c99=$ac_arg
20210else
20211  $as_echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214
20215fi
20216
20217rm -f core conftest.err conftest.$ac_objext
20218  test "x$ac_cv_prog_cc_c99" != "xno" && break
20219done
20220rm -f conftest.$ac_ext
20221CC=$ac_save_CC
20222
20223fi
20224# AC_CACHE_VAL
20225case "x$ac_cv_prog_cc_c99" in
20226  x)
20227    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20228$as_echo "none needed" >&6; } ;;
20229  xno)
20230    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20231$as_echo "unsupported" >&6; } ;;
20232  *)
20233    CC="$CC $ac_cv_prog_cc_c99"
20234    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20235$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20236esac
20237
20238
20239
20240
20241
20242
20243if  test "x$GCC" = xyes ; then
20244    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20245-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20246-Wbad-function-cast"
20247    case `$CC -dumpversion` in
20248    3.4.* | 4.*)
20249	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20250	;;
20251    esac
20252else
20253    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20254$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20255if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20256  $as_echo_n "(cached) " >&6
20257else
20258  cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h.  */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h.  */
20264$ac_includes_default
20265int
20266main ()
20267{
20268#ifndef __SUNPRO_C
20269  (void) __SUNPRO_C;
20270#endif
20271
20272  ;
20273  return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (ac_try="$ac_compile"
20278case "(($ac_try" in
20279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280  *) ac_try_echo=$ac_try;;
20281esac
20282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20283$as_echo "$ac_try_echo") >&5
20284  (eval "$ac_compile") 2>conftest.er1
20285  ac_status=$?
20286  grep -v '^ *+' conftest.er1 >conftest.err
20287  rm -f conftest.er1
20288  cat conftest.err >&5
20289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290  (exit $ac_status); } && {
20291	 test -z "$ac_c_werror_flag" ||
20292	 test ! -s conftest.err
20293       } && test -s conftest.$ac_objext; then
20294  ac_cv_have_decl___SUNPRO_C=yes
20295else
20296  $as_echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299	ac_cv_have_decl___SUNPRO_C=no
20300fi
20301
20302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303fi
20304{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20305$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20306if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20307  SUNCC="yes"
20308else
20309  SUNCC="no"
20310fi
20311
20312    if test "x$SUNCC" = "xyes"; then
20313	CWARNFLAGS="-v"
20314    fi
20315fi
20316
20317# Check whether --enable-silent-rules was given.
20318if test "${enable_silent_rules+set}" = set; then
20319  enableval=$enable_silent_rules;
20320fi
20321
20322case $enable_silent_rules in
20323yes) AM_DEFAULT_VERBOSITY=0;;
20324no)  AM_DEFAULT_VERBOSITY=1;;
20325*)   AM_DEFAULT_VERBOSITY=0;;
20326esac
20327AM_BACKSLASH='\'
20328
20329
20330
20331
20332
20333
20334
20335# Check whether --enable-strict-compilation was given.
20336if test "${enable_strict_compilation+set}" = set; then
20337  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20338else
20339  STRICT_COMPILE=no
20340fi
20341
20342if test "x$STRICT_COMPILE" = "xyes"; then
20343	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20344$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20345if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20346  $as_echo_n "(cached) " >&6
20347else
20348  cat >conftest.$ac_ext <<_ACEOF
20349/* confdefs.h.  */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h.  */
20354$ac_includes_default
20355int
20356main ()
20357{
20358#ifndef __SUNPRO_C
20359  (void) __SUNPRO_C;
20360#endif
20361
20362  ;
20363  return 0;
20364}
20365_ACEOF
20366rm -f conftest.$ac_objext
20367if { (ac_try="$ac_compile"
20368case "(($ac_try" in
20369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370  *) ac_try_echo=$ac_try;;
20371esac
20372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20373$as_echo "$ac_try_echo") >&5
20374  (eval "$ac_compile") 2>conftest.er1
20375  ac_status=$?
20376  grep -v '^ *+' conftest.er1 >conftest.err
20377  rm -f conftest.er1
20378  cat conftest.err >&5
20379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380  (exit $ac_status); } && {
20381	 test -z "$ac_c_werror_flag" ||
20382	 test ! -s conftest.err
20383       } && test -s conftest.$ac_objext; then
20384  ac_cv_have_decl___SUNPRO_C=yes
20385else
20386  $as_echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389	ac_cv_have_decl___SUNPRO_C=no
20390fi
20391
20392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393fi
20394{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20395$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20396if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20397  SUNCC="yes"
20398else
20399  SUNCC="no"
20400fi
20401
20402	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
20403$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
20404if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
20405  $as_echo_n "(cached) " >&6
20406else
20407  cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h.  */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h.  */
20413$ac_includes_default
20414int
20415main ()
20416{
20417#ifndef __INTEL_COMPILER
20418  (void) __INTEL_COMPILER;
20419#endif
20420
20421  ;
20422  return 0;
20423}
20424_ACEOF
20425rm -f conftest.$ac_objext
20426if { (ac_try="$ac_compile"
20427case "(($ac_try" in
20428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429  *) ac_try_echo=$ac_try;;
20430esac
20431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432$as_echo "$ac_try_echo") >&5
20433  (eval "$ac_compile") 2>conftest.er1
20434  ac_status=$?
20435  grep -v '^ *+' conftest.er1 >conftest.err
20436  rm -f conftest.er1
20437  cat conftest.err >&5
20438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439  (exit $ac_status); } && {
20440	 test -z "$ac_c_werror_flag" ||
20441	 test ! -s conftest.err
20442       } && test -s conftest.$ac_objext; then
20443  ac_cv_have_decl___INTEL_COMPILER=yes
20444else
20445  $as_echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448	ac_cv_have_decl___INTEL_COMPILER=no
20449fi
20450
20451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452fi
20453{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
20454$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
20455if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
20456  INTELCC="yes"
20457else
20458  INTELCC="no"
20459fi
20460
20461	if test "x$GCC" = xyes ; then
20462		STRICT_CFLAGS="-pedantic -Werror"
20463	elif test "x$SUNCC" = "xyes"; then
20464		STRICT_CFLAGS="-errwarn"
20465    elif test "x$INTELCC" = "xyes"; then
20466		STRICT_CFLAGS="-Werror"
20467	fi
20468fi
20469CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20470
20471
20472
20473
20474# Check whether --with-release-version was given.
20475if test "${with_release_version+set}" = set; then
20476  withval=$with_release_version; RELEASE_VERSION="$withval"
20477else
20478  RELEASE_VERSION=""
20479fi
20480
20481	if test "x$RELEASE_VERSION" != "x"; then
20482		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20483		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20484		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20485$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20486	fi
20487
20488cat >>confdefs.h <<_ACEOF
20489#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20490_ACEOF
20491
20492	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20493	if test "x$PVM" = "x"; then
20494		PVM="0"
20495	fi
20496
20497cat >>confdefs.h <<_ACEOF
20498#define PACKAGE_VERSION_MINOR $PVM
20499_ACEOF
20500
20501	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20502	if test "x$PVP" = "x"; then
20503		PVP="0"
20504	fi
20505
20506cat >>confdefs.h <<_ACEOF
20507#define PACKAGE_VERSION_PATCHLEVEL $PVP
20508_ACEOF
20509
20510
20511
20512CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20513mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20514echo 'git directory not found: installing possibly empty changelog.' >&2)"
20515
20516distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20517
20518
20519
20520
20521
20522if test x$APP_MAN_SUFFIX = x    ; then
20523    APP_MAN_SUFFIX=1
20524fi
20525if test x$APP_MAN_DIR = x    ; then
20526    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20527fi
20528
20529if test x$LIB_MAN_SUFFIX = x    ; then
20530    LIB_MAN_SUFFIX=3
20531fi
20532if test x$LIB_MAN_DIR = x    ; then
20533    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20534fi
20535
20536if test x$FILE_MAN_SUFFIX = x    ; then
20537    case $host_os in
20538	solaris*)	FILE_MAN_SUFFIX=4  ;;
20539	*)		FILE_MAN_SUFFIX=5  ;;
20540    esac
20541fi
20542if test x$FILE_MAN_DIR = x    ; then
20543    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20544fi
20545
20546if test x$MISC_MAN_SUFFIX = x    ; then
20547    case $host_os in
20548	solaris*)	MISC_MAN_SUFFIX=5  ;;
20549	*)		MISC_MAN_SUFFIX=7  ;;
20550    esac
20551fi
20552if test x$MISC_MAN_DIR = x    ; then
20553    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20554fi
20555
20556if test x$DRIVER_MAN_SUFFIX = x    ; then
20557    case $host_os in
20558	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20559	*)		DRIVER_MAN_SUFFIX=4  ;;
20560    esac
20561fi
20562if test x$DRIVER_MAN_DIR = x    ; then
20563    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20564fi
20565
20566if test x$ADMIN_MAN_SUFFIX = x    ; then
20567    case $host_os in
20568	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20569	*)		ADMIN_MAN_SUFFIX=8  ;;
20570    esac
20571fi
20572if test x$ADMIN_MAN_DIR = x    ; then
20573    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20574fi
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
20593$as_echo_n "checking for strcasecmp... " >&6; }
20594if test "${ac_cv_func_strcasecmp+set}" = set; then
20595  $as_echo_n "(cached) " >&6
20596else
20597  cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h.  */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h.  */
20603/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
20604   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20605#define strcasecmp innocuous_strcasecmp
20606
20607/* System header to define __stub macros and hopefully few prototypes,
20608    which can conflict with char strcasecmp (); below.
20609    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20610    <limits.h> exists even on freestanding compilers.  */
20611
20612#ifdef __STDC__
20613# include <limits.h>
20614#else
20615# include <assert.h>
20616#endif
20617
20618#undef strcasecmp
20619
20620/* Override any GCC internal prototype to avoid an error.
20621   Use char because int might match the return type of a GCC
20622   builtin and then its argument prototype would still apply.  */
20623#ifdef __cplusplus
20624extern "C"
20625#endif
20626char strcasecmp ();
20627/* The GNU C library defines this for functions which it implements
20628    to always fail with ENOSYS.  Some functions are actually named
20629    something starting with __ and the normal name is an alias.  */
20630#if defined __stub_strcasecmp || defined __stub___strcasecmp
20631choke me
20632#endif
20633
20634int
20635main ()
20636{
20637return strcasecmp ();
20638  ;
20639  return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext conftest$ac_exeext
20643if { (ac_try="$ac_link"
20644case "(($ac_try" in
20645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646  *) ac_try_echo=$ac_try;;
20647esac
20648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20649$as_echo "$ac_try_echo") >&5
20650  (eval "$ac_link") 2>conftest.er1
20651  ac_status=$?
20652  grep -v '^ *+' conftest.er1 >conftest.err
20653  rm -f conftest.er1
20654  cat conftest.err >&5
20655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656  (exit $ac_status); } && {
20657	 test -z "$ac_c_werror_flag" ||
20658	 test ! -s conftest.err
20659       } && test -s conftest$ac_exeext && {
20660	 test "$cross_compiling" = yes ||
20661	 $as_test_x conftest$ac_exeext
20662       }; then
20663  ac_cv_func_strcasecmp=yes
20664else
20665  $as_echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668	ac_cv_func_strcasecmp=no
20669fi
20670
20671rm -rf conftest.dSYM
20672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20673      conftest$ac_exeext conftest.$ac_ext
20674fi
20675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
20676$as_echo "$ac_cv_func_strcasecmp" >&6; }
20677if test "x$ac_cv_func_strcasecmp" = x""yes; then
20678  :
20679else
20680
20681cat >>confdefs.h <<\_ACEOF
20682#define NEED_STRCASECMP 1
20683_ACEOF
20684
20685fi
20686
20687{ $as_echo "$as_me:$LINENO: checking for getc_unlocked" >&5
20688$as_echo_n "checking for getc_unlocked... " >&6; }
20689if test "${ac_cv_func_getc_unlocked+set}" = set; then
20690  $as_echo_n "(cached) " >&6
20691else
20692  cat >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/* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
20699   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20700#define getc_unlocked innocuous_getc_unlocked
20701
20702/* System header to define __stub macros and hopefully few prototypes,
20703    which can conflict with char getc_unlocked (); below.
20704    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20705    <limits.h> exists even on freestanding compilers.  */
20706
20707#ifdef __STDC__
20708# include <limits.h>
20709#else
20710# include <assert.h>
20711#endif
20712
20713#undef getc_unlocked
20714
20715/* Override any GCC internal prototype to avoid an error.
20716   Use char because int might match the return type of a GCC
20717   builtin and then its argument prototype would still apply.  */
20718#ifdef __cplusplus
20719extern "C"
20720#endif
20721char getc_unlocked ();
20722/* The GNU C library defines this for functions which it implements
20723    to always fail with ENOSYS.  Some functions are actually named
20724    something starting with __ and the normal name is an alias.  */
20725#if defined __stub_getc_unlocked || defined __stub___getc_unlocked
20726choke me
20727#endif
20728
20729int
20730main ()
20731{
20732return getc_unlocked ();
20733  ;
20734  return 0;
20735}
20736_ACEOF
20737rm -f conftest.$ac_objext conftest$ac_exeext
20738if { (ac_try="$ac_link"
20739case "(($ac_try" in
20740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741  *) ac_try_echo=$ac_try;;
20742esac
20743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20744$as_echo "$ac_try_echo") >&5
20745  (eval "$ac_link") 2>conftest.er1
20746  ac_status=$?
20747  grep -v '^ *+' conftest.er1 >conftest.err
20748  rm -f conftest.er1
20749  cat conftest.err >&5
20750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751  (exit $ac_status); } && {
20752	 test -z "$ac_c_werror_flag" ||
20753	 test ! -s conftest.err
20754       } && test -s conftest$ac_exeext && {
20755	 test "$cross_compiling" = yes ||
20756	 $as_test_x conftest$ac_exeext
20757       }; then
20758  ac_cv_func_getc_unlocked=yes
20759else
20760  $as_echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763	ac_cv_func_getc_unlocked=no
20764fi
20765
20766rm -rf conftest.dSYM
20767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20768      conftest$ac_exeext conftest.$ac_ext
20769fi
20770{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
20771$as_echo "$ac_cv_func_getc_unlocked" >&6; }
20772if test "x$ac_cv_func_getc_unlocked" = x""yes; then
20773
20774cat >>confdefs.h <<\_ACEOF
20775#define HAVE_UNLOCKED_STDIO 1
20776_ACEOF
20777
20778fi
20779
20780
20781# Check for dependencies
20782
20783
20784if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20785	if test -n "$ac_tool_prefix"; then
20786  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20789$as_echo_n "checking for $ac_word... " >&6; }
20790if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20791  $as_echo_n "(cached) " >&6
20792else
20793  case $PKG_CONFIG in
20794  [\\/]* | ?:[\\/]*)
20795  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20796  ;;
20797  *)
20798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799for as_dir in $PATH
20800do
20801  IFS=$as_save_IFS
20802  test -z "$as_dir" && as_dir=.
20803  for ac_exec_ext in '' $ac_executable_extensions; do
20804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20805    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20806    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20807    break 2
20808  fi
20809done
20810done
20811IFS=$as_save_IFS
20812
20813  ;;
20814esac
20815fi
20816PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20817if test -n "$PKG_CONFIG"; then
20818  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20819$as_echo "$PKG_CONFIG" >&6; }
20820else
20821  { $as_echo "$as_me:$LINENO: result: no" >&5
20822$as_echo "no" >&6; }
20823fi
20824
20825
20826fi
20827if test -z "$ac_cv_path_PKG_CONFIG"; then
20828  ac_pt_PKG_CONFIG=$PKG_CONFIG
20829  # Extract the first word of "pkg-config", so it can be a program name with args.
20830set dummy pkg-config; ac_word=$2
20831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20832$as_echo_n "checking for $ac_word... " >&6; }
20833if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20834  $as_echo_n "(cached) " >&6
20835else
20836  case $ac_pt_PKG_CONFIG in
20837  [\\/]* | ?:[\\/]*)
20838  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20839  ;;
20840  *)
20841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20842for as_dir in $PATH
20843do
20844  IFS=$as_save_IFS
20845  test -z "$as_dir" && as_dir=.
20846  for ac_exec_ext in '' $ac_executable_extensions; do
20847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20848    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20849    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20850    break 2
20851  fi
20852done
20853done
20854IFS=$as_save_IFS
20855
20856  ;;
20857esac
20858fi
20859ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20860if test -n "$ac_pt_PKG_CONFIG"; then
20861  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20862$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20863else
20864  { $as_echo "$as_me:$LINENO: result: no" >&5
20865$as_echo "no" >&6; }
20866fi
20867
20868  if test "x$ac_pt_PKG_CONFIG" = x; then
20869    PKG_CONFIG=""
20870  else
20871    case $cross_compiling:$ac_tool_warned in
20872yes:)
20873{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20875ac_tool_warned=yes ;;
20876esac
20877    PKG_CONFIG=$ac_pt_PKG_CONFIG
20878  fi
20879else
20880  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20881fi
20882
20883fi
20884if test -n "$PKG_CONFIG"; then
20885	_pkg_min_version=0.9.0
20886	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20887$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20888	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20889		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20890$as_echo "yes" >&6; }
20891	else
20892		{ $as_echo "$as_me:$LINENO: result: no" >&5
20893$as_echo "no" >&6; }
20894		PKG_CONFIG=""
20895	fi
20896
20897fi
20898
20899pkg_failed=no
20900{ $as_echo "$as_me:$LINENO: checking for XKBFILE" >&5
20901$as_echo_n "checking for XKBFILE... " >&6; }
20902
20903if test -n "$XKBFILE_CFLAGS"; then
20904    pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
20905 elif test -n "$PKG_CONFIG"; then
20906    if test -n "$PKG_CONFIG" && \
20907    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\"") >&5
20908  ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
20909  ac_status=$?
20910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911  (exit $ac_status); }; then
20912  pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
20913else
20914  pkg_failed=yes
20915fi
20916 else
20917    pkg_failed=untried
20918fi
20919if test -n "$XKBFILE_LIBS"; then
20920    pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
20921 elif test -n "$PKG_CONFIG"; then
20922    if test -n "$PKG_CONFIG" && \
20923    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\"") >&5
20924  ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
20925  ac_status=$?
20926  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927  (exit $ac_status); }; then
20928  pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
20929else
20930  pkg_failed=yes
20931fi
20932 else
20933    pkg_failed=untried
20934fi
20935
20936
20937
20938if test $pkg_failed = yes; then
20939
20940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20941        _pkg_short_errors_supported=yes
20942else
20943        _pkg_short_errors_supported=no
20944fi
20945        if test $_pkg_short_errors_supported = yes; then
20946	        XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 kbproto" 2>&1`
20947        else
20948	        XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 kbproto" 2>&1`
20949        fi
20950	# Put the nasty error message in config.log where it belongs
20951	echo "$XKBFILE_PKG_ERRORS" >&5
20952
20953	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 kbproto) were not met:
20954
20955$XKBFILE_PKG_ERRORS
20956
20957Consider adjusting the PKG_CONFIG_PATH environment variable if you
20958installed software in a non-standard prefix.
20959
20960Alternatively, you may set the environment variables XKBFILE_CFLAGS
20961and XKBFILE_LIBS to avoid the need to call pkg-config.
20962See the pkg-config man page for more details.
20963" >&5
20964$as_echo "$as_me: error: Package requirements (x11 kbproto) were not met:
20965
20966$XKBFILE_PKG_ERRORS
20967
20968Consider adjusting the PKG_CONFIG_PATH environment variable if you
20969installed software in a non-standard prefix.
20970
20971Alternatively, you may set the environment variables XKBFILE_CFLAGS
20972and XKBFILE_LIBS to avoid the need to call pkg-config.
20973See the pkg-config man page for more details.
20974" >&2;}
20975   { (exit 1); exit 1; }; }
20976elif test $pkg_failed = untried; then
20977	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20979{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20980is in your PATH or set the PKG_CONFIG environment variable to the full
20981path to pkg-config.
20982
20983Alternatively, you may set the environment variables XKBFILE_CFLAGS
20984and XKBFILE_LIBS to avoid the need to call pkg-config.
20985See the pkg-config man page for more details.
20986
20987To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20988See \`config.log' for more details." >&5
20989$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20990is in your PATH or set the PKG_CONFIG environment variable to the full
20991path to pkg-config.
20992
20993Alternatively, you may set the environment variables XKBFILE_CFLAGS
20994and XKBFILE_LIBS to avoid the need to call pkg-config.
20995See the pkg-config man page for more details.
20996
20997To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20998See \`config.log' for more details." >&2;}
20999   { (exit 1); exit 1; }; }; }
21000else
21001	XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
21002	XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
21003        { $as_echo "$as_me:$LINENO: result: yes" >&5
21004$as_echo "yes" >&6; }
21005	:
21006fi
21007
21008
21009
21010ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
21011
21012cat >confcache <<\_ACEOF
21013# This file is a shell script that caches the results of configure
21014# tests run on this system so they can be shared between configure
21015# scripts and configure runs, see configure's option --config-cache.
21016# It is not useful on other systems.  If it contains results you don't
21017# want to keep, you may remove or edit it.
21018#
21019# config.status only pays attention to the cache file if you give it
21020# the --recheck option to rerun configure.
21021#
21022# `ac_cv_env_foo' variables (set or unset) will be overridden when
21023# loading this file, other *unset* `ac_cv_foo' will be assigned the
21024# following values.
21025
21026_ACEOF
21027
21028# The following way of writing the cache mishandles newlines in values,
21029# but we know of no workaround that is simple, portable, and efficient.
21030# So, we kill variables containing newlines.
21031# Ultrix sh set writes to stderr and can't be redirected directly,
21032# and sets the high bit in the cache file unless we assign to the vars.
21033(
21034  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21035    eval ac_val=\$$ac_var
21036    case $ac_val in #(
21037    *${as_nl}*)
21038      case $ac_var in #(
21039      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21040$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21041      esac
21042      case $ac_var in #(
21043      _ | IFS | as_nl) ;; #(
21044      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21045      *) $as_unset $ac_var ;;
21046      esac ;;
21047    esac
21048  done
21049
21050  (set) 2>&1 |
21051    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21052    *${as_nl}ac_space=\ *)
21053      # `set' does not quote correctly, so add quotes (double-quote
21054      # substitution turns \\\\ into \\, and sed turns \\ into \).
21055      sed -n \
21056	"s/'/'\\\\''/g;
21057	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21058      ;; #(
21059    *)
21060      # `set' quotes correctly as required by POSIX, so do not add quotes.
21061      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21062      ;;
21063    esac |
21064    sort
21065) |
21066  sed '
21067     /^ac_cv_env_/b end
21068     t clear
21069     :clear
21070     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21071     t end
21072     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21073     :end' >>confcache
21074if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21075  if test -w "$cache_file"; then
21076    test "x$cache_file" != "x/dev/null" &&
21077      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21078$as_echo "$as_me: updating cache $cache_file" >&6;}
21079    cat confcache >$cache_file
21080  else
21081    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21082$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21083  fi
21084fi
21085rm -f confcache
21086
21087test "x$prefix" = xNONE && prefix=$ac_default_prefix
21088# Let make expand exec_prefix.
21089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21090
21091DEFS=-DHAVE_CONFIG_H
21092
21093ac_libobjs=
21094ac_ltlibobjs=
21095for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21096  # 1. Remove the extension, and $U if already installed.
21097  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21098  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21099  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21100  #    will be set to the directory where LIBOBJS objects are built.
21101  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21102  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21103done
21104LIBOBJS=$ac_libobjs
21105
21106LTLIBOBJS=$ac_ltlibobjs
21107
21108
21109 if test -n "$EXEEXT"; then
21110  am__EXEEXT_TRUE=
21111  am__EXEEXT_FALSE='#'
21112else
21113  am__EXEEXT_TRUE='#'
21114  am__EXEEXT_FALSE=
21115fi
21116
21117if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21118  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21119Usually this means the macro was only invoked conditionally." >&5
21120$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21121Usually this means the macro was only invoked conditionally." >&2;}
21122   { (exit 1); exit 1; }; }
21123fi
21124if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21125  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21126Usually this means the macro was only invoked conditionally." >&5
21127$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21128Usually this means the macro was only invoked conditionally." >&2;}
21129   { (exit 1); exit 1; }; }
21130fi
21131if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21132  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21133Usually this means the macro was only invoked conditionally." >&5
21134$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21135Usually this means the macro was only invoked conditionally." >&2;}
21136   { (exit 1); exit 1; }; }
21137fi
21138if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21139  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21140Usually this means the macro was only invoked conditionally." >&5
21141$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21142Usually this means the macro was only invoked conditionally." >&2;}
21143   { (exit 1); exit 1; }; }
21144fi
21145
21146: ${CONFIG_STATUS=./config.status}
21147ac_write_fail=0
21148ac_clean_files_save=$ac_clean_files
21149ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21150{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21151$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21152cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21153#! $SHELL
21154# Generated by $as_me.
21155# Run this file to recreate the current configuration.
21156# Compiler output produced by configure, useful for debugging
21157# configure, is in config.log if it exists.
21158
21159debug=false
21160ac_cs_recheck=false
21161ac_cs_silent=false
21162SHELL=\${CONFIG_SHELL-$SHELL}
21163_ACEOF
21164
21165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21166## --------------------- ##
21167## M4sh Initialization.  ##
21168## --------------------- ##
21169
21170# Be more Bourne compatible
21171DUALCASE=1; export DUALCASE # for MKS sh
21172if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21173  emulate sh
21174  NULLCMD=:
21175  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21176  # is contrary to our usage.  Disable this feature.
21177  alias -g '${1+"$@"}'='"$@"'
21178  setopt NO_GLOB_SUBST
21179else
21180  case `(set -o) 2>/dev/null` in
21181  *posix*) set -o posix ;;
21182esac
21183
21184fi
21185
21186
21187
21188
21189# PATH needs CR
21190# Avoid depending upon Character Ranges.
21191as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21192as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21193as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21194as_cr_digits='0123456789'
21195as_cr_alnum=$as_cr_Letters$as_cr_digits
21196
21197as_nl='
21198'
21199export as_nl
21200# Printing a long string crashes Solaris 7 /usr/bin/printf.
21201as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21202as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21204if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21205  as_echo='printf %s\n'
21206  as_echo_n='printf %s'
21207else
21208  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21209    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21210    as_echo_n='/usr/ucb/echo -n'
21211  else
21212    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21213    as_echo_n_body='eval
21214      arg=$1;
21215      case $arg in
21216      *"$as_nl"*)
21217	expr "X$arg" : "X\\(.*\\)$as_nl";
21218	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21219      esac;
21220      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21221    '
21222    export as_echo_n_body
21223    as_echo_n='sh -c $as_echo_n_body as_echo'
21224  fi
21225  export as_echo_body
21226  as_echo='sh -c $as_echo_body as_echo'
21227fi
21228
21229# The user is always right.
21230if test "${PATH_SEPARATOR+set}" != set; then
21231  PATH_SEPARATOR=:
21232  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21233    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21234      PATH_SEPARATOR=';'
21235  }
21236fi
21237
21238# Support unset when possible.
21239if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21240  as_unset=unset
21241else
21242  as_unset=false
21243fi
21244
21245
21246# IFS
21247# We need space, tab and new line, in precisely that order.  Quoting is
21248# there to prevent editors from complaining about space-tab.
21249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21250# splitting by setting IFS to empty value.)
21251IFS=" ""	$as_nl"
21252
21253# Find who we are.  Look in the path if we contain no directory separator.
21254case $0 in
21255  *[\\/]* ) as_myself=$0 ;;
21256  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21257for as_dir in $PATH
21258do
21259  IFS=$as_save_IFS
21260  test -z "$as_dir" && as_dir=.
21261  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21262done
21263IFS=$as_save_IFS
21264
21265     ;;
21266esac
21267# We did not find ourselves, most probably we were run as `sh COMMAND'
21268# in which case we are not to be found in the path.
21269if test "x$as_myself" = x; then
21270  as_myself=$0
21271fi
21272if test ! -f "$as_myself"; then
21273  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21274  { (exit 1); exit 1; }
21275fi
21276
21277# Work around bugs in pre-3.0 UWIN ksh.
21278for as_var in ENV MAIL MAILPATH
21279do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21280done
21281PS1='$ '
21282PS2='> '
21283PS4='+ '
21284
21285# NLS nuisances.
21286LC_ALL=C
21287export LC_ALL
21288LANGUAGE=C
21289export LANGUAGE
21290
21291# Required to use basename.
21292if expr a : '\(a\)' >/dev/null 2>&1 &&
21293   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21294  as_expr=expr
21295else
21296  as_expr=false
21297fi
21298
21299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21300  as_basename=basename
21301else
21302  as_basename=false
21303fi
21304
21305
21306# Name of the executable.
21307as_me=`$as_basename -- "$0" ||
21308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21309	 X"$0" : 'X\(//\)$' \| \
21310	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21311$as_echo X/"$0" |
21312    sed '/^.*\/\([^/][^/]*\)\/*$/{
21313	    s//\1/
21314	    q
21315	  }
21316	  /^X\/\(\/\/\)$/{
21317	    s//\1/
21318	    q
21319	  }
21320	  /^X\/\(\/\).*/{
21321	    s//\1/
21322	    q
21323	  }
21324	  s/.*/./; q'`
21325
21326# CDPATH.
21327$as_unset CDPATH
21328
21329
21330
21331  as_lineno_1=$LINENO
21332  as_lineno_2=$LINENO
21333  test "x$as_lineno_1" != "x$as_lineno_2" &&
21334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21335
21336  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21337  # uniformly replaced by the line number.  The first 'sed' inserts a
21338  # line-number line after each line using $LINENO; the second 'sed'
21339  # does the real work.  The second script uses 'N' to pair each
21340  # line-number line with the line containing $LINENO, and appends
21341  # trailing '-' during substitution so that $LINENO is not a special
21342  # case at line end.
21343  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21344  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21345  # E. McMahon (1931-1989) for sed's syntax.  :-)
21346  sed -n '
21347    p
21348    /[$]LINENO/=
21349  ' <$as_myself |
21350    sed '
21351      s/[$]LINENO.*/&-/
21352      t lineno
21353      b
21354      :lineno
21355      N
21356      :loop
21357      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21358      t loop
21359      s/-\n.*//
21360    ' >$as_me.lineno &&
21361  chmod +x "$as_me.lineno" ||
21362    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21363   { (exit 1); exit 1; }; }
21364
21365  # Don't try to exec as it changes $[0], causing all sort of problems
21366  # (the dirname of $[0] is not the place where we might find the
21367  # original and so on.  Autoconf is especially sensitive to this).
21368  . "./$as_me.lineno"
21369  # Exit status is that of the last command.
21370  exit
21371}
21372
21373
21374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21375  as_dirname=dirname
21376else
21377  as_dirname=false
21378fi
21379
21380ECHO_C= ECHO_N= ECHO_T=
21381case `echo -n x` in
21382-n*)
21383  case `echo 'x\c'` in
21384  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21385  *)   ECHO_C='\c';;
21386  esac;;
21387*)
21388  ECHO_N='-n';;
21389esac
21390if expr a : '\(a\)' >/dev/null 2>&1 &&
21391   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21392  as_expr=expr
21393else
21394  as_expr=false
21395fi
21396
21397rm -f conf$$ conf$$.exe conf$$.file
21398if test -d conf$$.dir; then
21399  rm -f conf$$.dir/conf$$.file
21400else
21401  rm -f conf$$.dir
21402  mkdir conf$$.dir 2>/dev/null
21403fi
21404if (echo >conf$$.file) 2>/dev/null; then
21405  if ln -s conf$$.file conf$$ 2>/dev/null; then
21406    as_ln_s='ln -s'
21407    # ... but there are two gotchas:
21408    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21409    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21410    # In both cases, we have to default to `cp -p'.
21411    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21412      as_ln_s='cp -p'
21413  elif ln conf$$.file conf$$ 2>/dev/null; then
21414    as_ln_s=ln
21415  else
21416    as_ln_s='cp -p'
21417  fi
21418else
21419  as_ln_s='cp -p'
21420fi
21421rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21422rmdir conf$$.dir 2>/dev/null
21423
21424if mkdir -p . 2>/dev/null; then
21425  as_mkdir_p=:
21426else
21427  test -d ./-p && rmdir ./-p
21428  as_mkdir_p=false
21429fi
21430
21431if test -x / >/dev/null 2>&1; then
21432  as_test_x='test -x'
21433else
21434  if ls -dL / >/dev/null 2>&1; then
21435    as_ls_L_option=L
21436  else
21437    as_ls_L_option=
21438  fi
21439  as_test_x='
21440    eval sh -c '\''
21441      if test -d "$1"; then
21442	test -d "$1/.";
21443      else
21444	case $1 in
21445	-*)set "./$1";;
21446	esac;
21447	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21448	???[sx]*):;;*)false;;esac;fi
21449    '\'' sh
21450  '
21451fi
21452as_executable_p=$as_test_x
21453
21454# Sed expression to map a string onto a valid CPP name.
21455as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21456
21457# Sed expression to map a string onto a valid variable name.
21458as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21459
21460
21461exec 6>&1
21462
21463# Save the log message, to keep $[0] and so on meaningful, and to
21464# report actual input values of CONFIG_FILES etc. instead of their
21465# values after options handling.
21466ac_log="
21467This file was extended by libxkbfile $as_me 1.0.6, which was
21468generated by GNU Autoconf 2.63.  Invocation command line was
21469
21470  CONFIG_FILES    = $CONFIG_FILES
21471  CONFIG_HEADERS  = $CONFIG_HEADERS
21472  CONFIG_LINKS    = $CONFIG_LINKS
21473  CONFIG_COMMANDS = $CONFIG_COMMANDS
21474  $ $0 $@
21475
21476on `(hostname || uname -n) 2>/dev/null | sed 1q`
21477"
21478
21479_ACEOF
21480
21481case $ac_config_files in *"
21482"*) set x $ac_config_files; shift; ac_config_files=$*;;
21483esac
21484
21485case $ac_config_headers in *"
21486"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21487esac
21488
21489
21490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21491# Files that config.status was made for.
21492config_files="$ac_config_files"
21493config_headers="$ac_config_headers"
21494config_commands="$ac_config_commands"
21495
21496_ACEOF
21497
21498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21499ac_cs_usage="\
21500\`$as_me' instantiates files from templates according to the
21501current configuration.
21502
21503Usage: $0 [OPTION]... [FILE]...
21504
21505  -h, --help       print this help, then exit
21506  -V, --version    print version number and configuration settings, then exit
21507  -q, --quiet, --silent
21508                   do not print progress messages
21509  -d, --debug      don't remove temporary files
21510      --recheck    update $as_me by reconfiguring in the same conditions
21511      --file=FILE[:TEMPLATE]
21512                   instantiate the configuration file FILE
21513      --header=FILE[:TEMPLATE]
21514                   instantiate the configuration header FILE
21515
21516Configuration files:
21517$config_files
21518
21519Configuration headers:
21520$config_headers
21521
21522Configuration commands:
21523$config_commands
21524
21525Report bugs to <bug-autoconf@gnu.org>."
21526
21527_ACEOF
21528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21529ac_cs_version="\\
21530libxkbfile config.status 1.0.6
21531configured by $0, generated by GNU Autoconf 2.63,
21532  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21533
21534Copyright (C) 2008 Free Software Foundation, Inc.
21535This config.status script is free software; the Free Software Foundation
21536gives unlimited permission to copy, distribute and modify it."
21537
21538ac_pwd='$ac_pwd'
21539srcdir='$srcdir'
21540INSTALL='$INSTALL'
21541MKDIR_P='$MKDIR_P'
21542AWK='$AWK'
21543test -n "\$AWK" || AWK=awk
21544_ACEOF
21545
21546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21547# The default lists apply if the user does not specify any file.
21548ac_need_defaults=:
21549while test $# != 0
21550do
21551  case $1 in
21552  --*=*)
21553    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21554    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21555    ac_shift=:
21556    ;;
21557  *)
21558    ac_option=$1
21559    ac_optarg=$2
21560    ac_shift=shift
21561    ;;
21562  esac
21563
21564  case $ac_option in
21565  # Handling of the options.
21566  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21567    ac_cs_recheck=: ;;
21568  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21569    $as_echo "$ac_cs_version"; exit ;;
21570  --debug | --debu | --deb | --de | --d | -d )
21571    debug=: ;;
21572  --file | --fil | --fi | --f )
21573    $ac_shift
21574    case $ac_optarg in
21575    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21576    esac
21577    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21578    ac_need_defaults=false;;
21579  --header | --heade | --head | --hea )
21580    $ac_shift
21581    case $ac_optarg in
21582    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21583    esac
21584    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21585    ac_need_defaults=false;;
21586  --he | --h)
21587    # Conflict between --help and --header
21588    { $as_echo "$as_me: error: ambiguous option: $1
21589Try \`$0 --help' for more information." >&2
21590   { (exit 1); exit 1; }; };;
21591  --help | --hel | -h )
21592    $as_echo "$ac_cs_usage"; exit ;;
21593  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21594  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21595    ac_cs_silent=: ;;
21596
21597  # This is an error.
21598  -*) { $as_echo "$as_me: error: unrecognized option: $1
21599Try \`$0 --help' for more information." >&2
21600   { (exit 1); exit 1; }; } ;;
21601
21602  *) ac_config_targets="$ac_config_targets $1"
21603     ac_need_defaults=false ;;
21604
21605  esac
21606  shift
21607done
21608
21609ac_configure_extra_args=
21610
21611if $ac_cs_silent; then
21612  exec 6>/dev/null
21613  ac_configure_extra_args="$ac_configure_extra_args --silent"
21614fi
21615
21616_ACEOF
21617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21618if \$ac_cs_recheck; then
21619  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21620  shift
21621  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21622  CONFIG_SHELL='$SHELL'
21623  export CONFIG_SHELL
21624  exec "\$@"
21625fi
21626
21627_ACEOF
21628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21629exec 5>>config.log
21630{
21631  echo
21632  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21633## Running $as_me. ##
21634_ASBOX
21635  $as_echo "$ac_log"
21636} >&5
21637
21638_ACEOF
21639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21640#
21641# INIT-COMMANDS
21642#
21643AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21644
21645_ACEOF
21646
21647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21648
21649# Handling of arguments.
21650for ac_config_target in $ac_config_targets
21651do
21652  case $ac_config_target in
21653    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21654    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21655    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21656    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21657    "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
21658
21659  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21660$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21661   { (exit 1); exit 1; }; };;
21662  esac
21663done
21664
21665
21666# If the user did not use the arguments to specify the items to instantiate,
21667# then the envvar interface is used.  Set only those that are not.
21668# We use the long form for the default assignment because of an extremely
21669# bizarre bug on SunOS 4.1.3.
21670if $ac_need_defaults; then
21671  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21672  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21673  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21674fi
21675
21676# Have a temporary directory for convenience.  Make it in the build tree
21677# simply because there is no reason against having it here, and in addition,
21678# creating and moving files from /tmp can sometimes cause problems.
21679# Hook for its removal unless debugging.
21680# Note that there is a small window in which the directory will not be cleaned:
21681# after its creation but before its name has been assigned to `$tmp'.
21682$debug ||
21683{
21684  tmp=
21685  trap 'exit_status=$?
21686  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21687' 0
21688  trap '{ (exit 1); exit 1; }' 1 2 13 15
21689}
21690# Create a (secure) tmp directory for tmp files.
21691
21692{
21693  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21694  test -n "$tmp" && test -d "$tmp"
21695}  ||
21696{
21697  tmp=./conf$$-$RANDOM
21698  (umask 077 && mkdir "$tmp")
21699} ||
21700{
21701   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21702   { (exit 1); exit 1; }
21703}
21704
21705# Set up the scripts for CONFIG_FILES section.
21706# No need to generate them if there are no CONFIG_FILES.
21707# This happens for instance with `./config.status config.h'.
21708if test -n "$CONFIG_FILES"; then
21709
21710
21711ac_cr='
21712'
21713ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21714if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21715  ac_cs_awk_cr='\\r'
21716else
21717  ac_cs_awk_cr=$ac_cr
21718fi
21719
21720echo 'BEGIN {' >"$tmp/subs1.awk" &&
21721_ACEOF
21722
21723
21724{
21725  echo "cat >conf$$subs.awk <<_ACEOF" &&
21726  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21727  echo "_ACEOF"
21728} >conf$$subs.sh ||
21729  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21730$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21731   { (exit 1); exit 1; }; }
21732ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21733ac_delim='%!_!# '
21734for ac_last_try in false false false false false :; do
21735  . ./conf$$subs.sh ||
21736    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21737$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21738   { (exit 1); exit 1; }; }
21739
21740  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21741  if test $ac_delim_n = $ac_delim_num; then
21742    break
21743  elif $ac_last_try; then
21744    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21745$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21746   { (exit 1); exit 1; }; }
21747  else
21748    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21749  fi
21750done
21751rm -f conf$$subs.sh
21752
21753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21754cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21755_ACEOF
21756sed -n '
21757h
21758s/^/S["/; s/!.*/"]=/
21759p
21760g
21761s/^[^!]*!//
21762:repl
21763t repl
21764s/'"$ac_delim"'$//
21765t delim
21766:nl
21767h
21768s/\(.\{148\}\).*/\1/
21769t more1
21770s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21771p
21772n
21773b repl
21774:more1
21775s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21776p
21777g
21778s/.\{148\}//
21779t nl
21780:delim
21781h
21782s/\(.\{148\}\).*/\1/
21783t more2
21784s/["\\]/\\&/g; s/^/"/; s/$/"/
21785p
21786b
21787:more2
21788s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21789p
21790g
21791s/.\{148\}//
21792t delim
21793' <conf$$subs.awk | sed '
21794/^[^""]/{
21795  N
21796  s/\n//
21797}
21798' >>$CONFIG_STATUS || ac_write_fail=1
21799rm -f conf$$subs.awk
21800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21801_ACAWK
21802cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21803  for (key in S) S_is_set[key] = 1
21804  FS = ""
21805
21806}
21807{
21808  line = $ 0
21809  nfields = split(line, field, "@")
21810  substed = 0
21811  len = length(field[1])
21812  for (i = 2; i < nfields; i++) {
21813    key = field[i]
21814    keylen = length(key)
21815    if (S_is_set[key]) {
21816      value = S[key]
21817      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21818      len += length(value) + length(field[++i])
21819      substed = 1
21820    } else
21821      len += 1 + keylen
21822  }
21823
21824  print line
21825}
21826
21827_ACAWK
21828_ACEOF
21829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21830if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21831  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21832else
21833  cat
21834fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21835  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21836$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21837   { (exit 1); exit 1; }; }
21838_ACEOF
21839
21840# VPATH may cause trouble with some makes, so we remove $(srcdir),
21841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21842# trailing colons and then remove the whole line if VPATH becomes empty
21843# (actually we leave an empty line to preserve line numbers).
21844if test "x$srcdir" = x.; then
21845  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21846s/:*\$(srcdir):*/:/
21847s/:*\${srcdir}:*/:/
21848s/:*@srcdir@:*/:/
21849s/^\([^=]*=[	 ]*\):*/\1/
21850s/:*$//
21851s/^[^=]*=[	 ]*$//
21852}'
21853fi
21854
21855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21856fi # test -n "$CONFIG_FILES"
21857
21858# Set up the scripts for CONFIG_HEADERS section.
21859# No need to generate them if there are no CONFIG_HEADERS.
21860# This happens for instance with `./config.status Makefile'.
21861if test -n "$CONFIG_HEADERS"; then
21862cat >"$tmp/defines.awk" <<\_ACAWK ||
21863BEGIN {
21864_ACEOF
21865
21866# Transform confdefs.h into an awk script `defines.awk', embedded as
21867# here-document in config.status, that substitutes the proper values into
21868# config.h.in to produce config.h.
21869
21870# Create a delimiter string that does not exist in confdefs.h, to ease
21871# handling of long lines.
21872ac_delim='%!_!# '
21873for ac_last_try in false false :; do
21874  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21875  if test -z "$ac_t"; then
21876    break
21877  elif $ac_last_try; then
21878    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21879$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21880   { (exit 1); exit 1; }; }
21881  else
21882    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883  fi
21884done
21885
21886# For the awk script, D is an array of macro values keyed by name,
21887# likewise P contains macro parameters if any.  Preserve backslash
21888# newline sequences.
21889
21890ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21891sed -n '
21892s/.\{148\}/&'"$ac_delim"'/g
21893t rset
21894:rset
21895s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21896t def
21897d
21898:def
21899s/\\$//
21900t bsnl
21901s/["\\]/\\&/g
21902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21903D["\1"]=" \3"/p
21904s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21905d
21906:bsnl
21907s/["\\]/\\&/g
21908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21909D["\1"]=" \3\\\\\\n"\\/p
21910t cont
21911s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21912t cont
21913d
21914:cont
21915n
21916s/.\{148\}/&'"$ac_delim"'/g
21917t clear
21918:clear
21919s/\\$//
21920t bsnlc
21921s/["\\]/\\&/g; s/^/"/; s/$/"/p
21922d
21923:bsnlc
21924s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21925b cont
21926' <confdefs.h | sed '
21927s/'"$ac_delim"'/"\\\
21928"/g' >>$CONFIG_STATUS || ac_write_fail=1
21929
21930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21931  for (key in D) D_is_set[key] = 1
21932  FS = ""
21933}
21934/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21935  line = \$ 0
21936  split(line, arg, " ")
21937  if (arg[1] == "#") {
21938    defundef = arg[2]
21939    mac1 = arg[3]
21940  } else {
21941    defundef = substr(arg[1], 2)
21942    mac1 = arg[2]
21943  }
21944  split(mac1, mac2, "(") #)
21945  macro = mac2[1]
21946  prefix = substr(line, 1, index(line, defundef) - 1)
21947  if (D_is_set[macro]) {
21948    # Preserve the white space surrounding the "#".
21949    print prefix "define", macro P[macro] D[macro]
21950    next
21951  } else {
21952    # Replace #undef with comments.  This is necessary, for example,
21953    # in the case of _POSIX_SOURCE, which is predefined and required
21954    # on some systems where configure will not decide to define it.
21955    if (defundef == "undef") {
21956      print "/*", prefix defundef, macro, "*/"
21957      next
21958    }
21959  }
21960}
21961{ print }
21962_ACAWK
21963_ACEOF
21964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21965  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21966$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21967   { (exit 1); exit 1; }; }
21968fi # test -n "$CONFIG_HEADERS"
21969
21970
21971eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21972shift
21973for ac_tag
21974do
21975  case $ac_tag in
21976  :[FHLC]) ac_mode=$ac_tag; continue;;
21977  esac
21978  case $ac_mode$ac_tag in
21979  :[FHL]*:*);;
21980  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21981$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21982   { (exit 1); exit 1; }; };;
21983  :[FH]-) ac_tag=-:-;;
21984  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21985  esac
21986  ac_save_IFS=$IFS
21987  IFS=:
21988  set x $ac_tag
21989  IFS=$ac_save_IFS
21990  shift
21991  ac_file=$1
21992  shift
21993
21994  case $ac_mode in
21995  :L) ac_source=$1;;
21996  :[FH])
21997    ac_file_inputs=
21998    for ac_f
21999    do
22000      case $ac_f in
22001      -) ac_f="$tmp/stdin";;
22002      *) # Look for the file first in the build tree, then in the source tree
22003	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22004	 # because $ac_f cannot contain `:'.
22005	 test -f "$ac_f" ||
22006	   case $ac_f in
22007	   [\\/$]*) false;;
22008	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22009	   esac ||
22010	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22011$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22012   { (exit 1); exit 1; }; };;
22013      esac
22014      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22015      ac_file_inputs="$ac_file_inputs '$ac_f'"
22016    done
22017
22018    # Let's still pretend it is `configure' which instantiates (i.e., don't
22019    # use $as_me), people would be surprised to read:
22020    #    /* config.h.  Generated by config.status.  */
22021    configure_input='Generated from '`
22022	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22023	`' by configure.'
22024    if test x"$ac_file" != x-; then
22025      configure_input="$ac_file.  $configure_input"
22026      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22027$as_echo "$as_me: creating $ac_file" >&6;}
22028    fi
22029    # Neutralize special characters interpreted by sed in replacement strings.
22030    case $configure_input in #(
22031    *\&* | *\|* | *\\* )
22032       ac_sed_conf_input=`$as_echo "$configure_input" |
22033       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22034    *) ac_sed_conf_input=$configure_input;;
22035    esac
22036
22037    case $ac_tag in
22038    *:-:* | *:-) cat >"$tmp/stdin" \
22039      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22040$as_echo "$as_me: error: could not create $ac_file" >&2;}
22041   { (exit 1); exit 1; }; } ;;
22042    esac
22043    ;;
22044  esac
22045
22046  ac_dir=`$as_dirname -- "$ac_file" ||
22047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22048	 X"$ac_file" : 'X\(//\)[^/]' \| \
22049	 X"$ac_file" : 'X\(//\)$' \| \
22050	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22051$as_echo X"$ac_file" |
22052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22053	    s//\1/
22054	    q
22055	  }
22056	  /^X\(\/\/\)[^/].*/{
22057	    s//\1/
22058	    q
22059	  }
22060	  /^X\(\/\/\)$/{
22061	    s//\1/
22062	    q
22063	  }
22064	  /^X\(\/\).*/{
22065	    s//\1/
22066	    q
22067	  }
22068	  s/.*/./; q'`
22069  { as_dir="$ac_dir"
22070  case $as_dir in #(
22071  -*) as_dir=./$as_dir;;
22072  esac
22073  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22074    as_dirs=
22075    while :; do
22076      case $as_dir in #(
22077      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22078      *) as_qdir=$as_dir;;
22079      esac
22080      as_dirs="'$as_qdir' $as_dirs"
22081      as_dir=`$as_dirname -- "$as_dir" ||
22082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22083	 X"$as_dir" : 'X\(//\)[^/]' \| \
22084	 X"$as_dir" : 'X\(//\)$' \| \
22085	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22086$as_echo X"$as_dir" |
22087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22088	    s//\1/
22089	    q
22090	  }
22091	  /^X\(\/\/\)[^/].*/{
22092	    s//\1/
22093	    q
22094	  }
22095	  /^X\(\/\/\)$/{
22096	    s//\1/
22097	    q
22098	  }
22099	  /^X\(\/\).*/{
22100	    s//\1/
22101	    q
22102	  }
22103	  s/.*/./; q'`
22104      test -d "$as_dir" && break
22105    done
22106    test -z "$as_dirs" || eval "mkdir $as_dirs"
22107  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22108$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22109   { (exit 1); exit 1; }; }; }
22110  ac_builddir=.
22111
22112case "$ac_dir" in
22113.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22114*)
22115  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22116  # A ".." for each directory in $ac_dir_suffix.
22117  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22118  case $ac_top_builddir_sub in
22119  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22120  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22121  esac ;;
22122esac
22123ac_abs_top_builddir=$ac_pwd
22124ac_abs_builddir=$ac_pwd$ac_dir_suffix
22125# for backward compatibility:
22126ac_top_builddir=$ac_top_build_prefix
22127
22128case $srcdir in
22129  .)  # We are building in place.
22130    ac_srcdir=.
22131    ac_top_srcdir=$ac_top_builddir_sub
22132    ac_abs_top_srcdir=$ac_pwd ;;
22133  [\\/]* | ?:[\\/]* )  # Absolute name.
22134    ac_srcdir=$srcdir$ac_dir_suffix;
22135    ac_top_srcdir=$srcdir
22136    ac_abs_top_srcdir=$srcdir ;;
22137  *) # Relative name.
22138    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22139    ac_top_srcdir=$ac_top_build_prefix$srcdir
22140    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22141esac
22142ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22143
22144
22145  case $ac_mode in
22146  :F)
22147  #
22148  # CONFIG_FILE
22149  #
22150
22151  case $INSTALL in
22152  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22153  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22154  esac
22155  ac_MKDIR_P=$MKDIR_P
22156  case $MKDIR_P in
22157  [\\/$]* | ?:[\\/]* ) ;;
22158  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22159  esac
22160_ACEOF
22161
22162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22163# If the template does not know about datarootdir, expand it.
22164# FIXME: This hack should be removed a few years after 2.60.
22165ac_datarootdir_hack=; ac_datarootdir_seen=
22166
22167ac_sed_dataroot='
22168/datarootdir/ {
22169  p
22170  q
22171}
22172/@datadir@/p
22173/@docdir@/p
22174/@infodir@/p
22175/@localedir@/p
22176/@mandir@/p
22177'
22178case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22179*datarootdir*) ac_datarootdir_seen=yes;;
22180*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22181  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22182$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22183_ACEOF
22184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185  ac_datarootdir_hack='
22186  s&@datadir@&$datadir&g
22187  s&@docdir@&$docdir&g
22188  s&@infodir@&$infodir&g
22189  s&@localedir@&$localedir&g
22190  s&@mandir@&$mandir&g
22191    s&\\\${datarootdir}&$datarootdir&g' ;;
22192esac
22193_ACEOF
22194
22195# Neutralize VPATH when `$srcdir' = `.'.
22196# Shell code in configure.ac might set extrasub.
22197# FIXME: do we really want to maintain this feature?
22198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22199ac_sed_extra="$ac_vpsub
22200$extrasub
22201_ACEOF
22202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22203:t
22204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22205s|@configure_input@|$ac_sed_conf_input|;t t
22206s&@top_builddir@&$ac_top_builddir_sub&;t t
22207s&@top_build_prefix@&$ac_top_build_prefix&;t t
22208s&@srcdir@&$ac_srcdir&;t t
22209s&@abs_srcdir@&$ac_abs_srcdir&;t t
22210s&@top_srcdir@&$ac_top_srcdir&;t t
22211s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22212s&@builddir@&$ac_builddir&;t t
22213s&@abs_builddir@&$ac_abs_builddir&;t t
22214s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22215s&@INSTALL@&$ac_INSTALL&;t t
22216s&@MKDIR_P@&$ac_MKDIR_P&;t t
22217$ac_datarootdir_hack
22218"
22219eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22220  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22221$as_echo "$as_me: error: could not create $ac_file" >&2;}
22222   { (exit 1); exit 1; }; }
22223
22224test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22225  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22226  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22227  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22228which seems to be undefined.  Please make sure it is defined." >&5
22229$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22230which seems to be undefined.  Please make sure it is defined." >&2;}
22231
22232  rm -f "$tmp/stdin"
22233  case $ac_file in
22234  -) cat "$tmp/out" && rm -f "$tmp/out";;
22235  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22236  esac \
22237  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22238$as_echo "$as_me: error: could not create $ac_file" >&2;}
22239   { (exit 1); exit 1; }; }
22240 ;;
22241  :H)
22242  #
22243  # CONFIG_HEADER
22244  #
22245  if test x"$ac_file" != x-; then
22246    {
22247      $as_echo "/* $configure_input  */" \
22248      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22249    } >"$tmp/config.h" \
22250      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22251$as_echo "$as_me: error: could not create $ac_file" >&2;}
22252   { (exit 1); exit 1; }; }
22253    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22254      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22255$as_echo "$as_me: $ac_file is unchanged" >&6;}
22256    else
22257      rm -f "$ac_file"
22258      mv "$tmp/config.h" "$ac_file" \
22259	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22260$as_echo "$as_me: error: could not create $ac_file" >&2;}
22261   { (exit 1); exit 1; }; }
22262    fi
22263  else
22264    $as_echo "/* $configure_input  */" \
22265      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22266      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22267$as_echo "$as_me: error: could not create -" >&2;}
22268   { (exit 1); exit 1; }; }
22269  fi
22270# Compute "$ac_file"'s index in $config_headers.
22271_am_arg="$ac_file"
22272_am_stamp_count=1
22273for _am_header in $config_headers :; do
22274  case $_am_header in
22275    $_am_arg | $_am_arg:* )
22276      break ;;
22277    * )
22278      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22279  esac
22280done
22281echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22282$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22284	 X"$_am_arg" : 'X\(//\)$' \| \
22285	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22286$as_echo X"$_am_arg" |
22287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288	    s//\1/
22289	    q
22290	  }
22291	  /^X\(\/\/\)[^/].*/{
22292	    s//\1/
22293	    q
22294	  }
22295	  /^X\(\/\/\)$/{
22296	    s//\1/
22297	    q
22298	  }
22299	  /^X\(\/\).*/{
22300	    s//\1/
22301	    q
22302	  }
22303	  s/.*/./; q'`/stamp-h$_am_stamp_count
22304 ;;
22305
22306  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22307$as_echo "$as_me: executing $ac_file commands" >&6;}
22308 ;;
22309  esac
22310
22311
22312  case $ac_file$ac_mode in
22313    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22314  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22315  # are listed without --file.  Let's play safe and only enable the eval
22316  # if we detect the quoting.
22317  case $CONFIG_FILES in
22318  *\'*) eval set x "$CONFIG_FILES" ;;
22319  *)   set x $CONFIG_FILES ;;
22320  esac
22321  shift
22322  for mf
22323  do
22324    # Strip MF so we end up with the name of the file.
22325    mf=`echo "$mf" | sed -e 's/:.*$//'`
22326    # Check whether this is an Automake generated Makefile or not.
22327    # We used to match only the files named `Makefile.in', but
22328    # some people rename them; so instead we look at the file content.
22329    # Grep'ing the first line is not enough: some people post-process
22330    # each Makefile.in and add a new line on top of each file to say so.
22331    # Grep'ing the whole file is not good either: AIX grep has a line
22332    # limit of 2048, but all sed's we know have understand at least 4000.
22333    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22334      dirpart=`$as_dirname -- "$mf" ||
22335$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336	 X"$mf" : 'X\(//\)[^/]' \| \
22337	 X"$mf" : 'X\(//\)$' \| \
22338	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22339$as_echo X"$mf" |
22340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22341	    s//\1/
22342	    q
22343	  }
22344	  /^X\(\/\/\)[^/].*/{
22345	    s//\1/
22346	    q
22347	  }
22348	  /^X\(\/\/\)$/{
22349	    s//\1/
22350	    q
22351	  }
22352	  /^X\(\/\).*/{
22353	    s//\1/
22354	    q
22355	  }
22356	  s/.*/./; q'`
22357    else
22358      continue
22359    fi
22360    # Extract the definition of DEPDIR, am__include, and am__quote
22361    # from the Makefile without running `make'.
22362    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22363    test -z "$DEPDIR" && continue
22364    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22365    test -z "am__include" && continue
22366    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22367    # When using ansi2knr, U may be empty or an underscore; expand it
22368    U=`sed -n 's/^U = //p' < "$mf"`
22369    # Find all dependency output files, they are included files with
22370    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22371    # simplest approach to changing $(DEPDIR) to its actual value in the
22372    # expansion.
22373    for file in `sed -n "
22374      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22375	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22376      # Make sure the directory exists.
22377      test -f "$dirpart/$file" && continue
22378      fdir=`$as_dirname -- "$file" ||
22379$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22380	 X"$file" : 'X\(//\)[^/]' \| \
22381	 X"$file" : 'X\(//\)$' \| \
22382	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22383$as_echo X"$file" |
22384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22385	    s//\1/
22386	    q
22387	  }
22388	  /^X\(\/\/\)[^/].*/{
22389	    s//\1/
22390	    q
22391	  }
22392	  /^X\(\/\/\)$/{
22393	    s//\1/
22394	    q
22395	  }
22396	  /^X\(\/\).*/{
22397	    s//\1/
22398	    q
22399	  }
22400	  s/.*/./; q'`
22401      { as_dir=$dirpart/$fdir
22402  case $as_dir in #(
22403  -*) as_dir=./$as_dir;;
22404  esac
22405  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22406    as_dirs=
22407    while :; do
22408      case $as_dir in #(
22409      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22410      *) as_qdir=$as_dir;;
22411      esac
22412      as_dirs="'$as_qdir' $as_dirs"
22413      as_dir=`$as_dirname -- "$as_dir" ||
22414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415	 X"$as_dir" : 'X\(//\)[^/]' \| \
22416	 X"$as_dir" : 'X\(//\)$' \| \
22417	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22418$as_echo X"$as_dir" |
22419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420	    s//\1/
22421	    q
22422	  }
22423	  /^X\(\/\/\)[^/].*/{
22424	    s//\1/
22425	    q
22426	  }
22427	  /^X\(\/\/\)$/{
22428	    s//\1/
22429	    q
22430	  }
22431	  /^X\(\/\).*/{
22432	    s//\1/
22433	    q
22434	  }
22435	  s/.*/./; q'`
22436      test -d "$as_dir" && break
22437    done
22438    test -z "$as_dirs" || eval "mkdir $as_dirs"
22439  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22440$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22441   { (exit 1); exit 1; }; }; }
22442      # echo "creating $dirpart/$file"
22443      echo '# dummy' > "$dirpart/$file"
22444    done
22445  done
22446}
22447 ;;
22448
22449  esac
22450done # for ac_tag
22451
22452
22453{ (exit 0); exit 0; }
22454_ACEOF
22455chmod +x $CONFIG_STATUS
22456ac_clean_files=$ac_clean_files_save
22457
22458test $ac_write_fail = 0 ||
22459  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22460$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22461   { (exit 1); exit 1; }; }
22462
22463
22464# configure is writing to config.log, and then calls config.status.
22465# config.status does its own redirection, appending to config.log.
22466# Unfortunately, on DOS this fails, as config.log is still kept open
22467# by configure, so config.status won't be able to write to it; its
22468# output is simply discarded.  So we exec the FD to /dev/null,
22469# effectively closing config.log, so it can be properly (re)opened and
22470# appended to by config.status.  When coming back to configure, we
22471# need to make the FD available again.
22472if test "$no_create" != yes; then
22473  ac_cs_success=:
22474  ac_config_status_args=
22475  test "$silent" = yes &&
22476    ac_config_status_args="$ac_config_status_args --quiet"
22477  exec 5>/dev/null
22478  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22479  exec 5>>config.log
22480  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22481  # would make configure fail if this is the last instruction.
22482  $ac_cs_success || { (exit 1); exit 1; }
22483fi
22484if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22485  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22486$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22487fi
22488
22489