configure revision 7e6fb56f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-openchrome 0.2.904.
4#
5# Report bugs to <http://www.openchrome.org/trac/report/1>.
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='xf86-video-openchrome'
752PACKAGE_TARNAME='xf86-video-openchrome'
753PACKAGE_VERSION='0.2.904'
754PACKAGE_STRING='xf86-video-openchrome 0.2.904'
755PACKAGE_BUGREPORT='http://www.openchrome.org/trac/report/1'
756
757ac_unique_file="Makefile.am"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='am__EXEEXT_FALSE
795am__EXEEXT_TRUE
796LTLIBOBJS
797LIBOBJS
798DRIVER_MAN_SUFFIX
799DRIVER_NAME
800moduledir
801XV_DEBUG_FALSE
802XV_DEBUG_TRUE
803DEBUG_FALSE
804DEBUG_TRUE
805XSERVER_LIBPCIACCESS_FALSE
806XSERVER_LIBPCIACCESS_TRUE
807XVMC_FALSE
808XVMC_TRUE
809XVMC_LIBS
810XVMC_CFLAGS
811DRI_LIBS
812DRI_CFLAGS
813DRI_FALSE
814DRI_TRUE
815PCIACCESS_LIBS
816PCIACCESS_CFLAGS
817HAVE_XEXTPROTO_71_FALSE
818HAVE_XEXTPROTO_71_TRUE
819XEXT_LIBS
820XEXT_CFLAGS
821XORG_LIBS
822XORG_CFLAGS
823PKG_CONFIG
824LIBTOOL
825ac_ct_F77
826FFLAGS
827F77
828CXXCPP
829am__fastdepCXX_FALSE
830am__fastdepCXX_TRUE
831CXXDEPMODE
832ac_ct_CXX
833CXXFLAGS
834CXX
835CPP
836NMEDIT
837DSYMUTIL
838RANLIB
839AR
840ECHO
841LN_S
842EGREP
843GREP
844SED
845am__fastdepCC_FALSE
846am__fastdepCC_TRUE
847CCDEPMODE
848AMDEPBACKSLASH
849AMDEP_FALSE
850AMDEP_TRUE
851am__quote
852am__include
853DEPDIR
854OBJEXT
855EXEEXT
856ac_ct_CC
857CPPFLAGS
858LDFLAGS
859CFLAGS
860CC
861host_os
862host_vendor
863host_cpu
864host
865build_os
866build_vendor
867build_cpu
868build
869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
872am__untar
873am__tar
874AMTAR
875am__leading_dot
876SET_MAKE
877AWK
878mkdir_p
879MKDIR_P
880INSTALL_STRIP_PROGRAM
881STRIP
882install_sh
883MAKEINFO
884AUTOHEADER
885AUTOMAKE
886AUTOCONF
887ACLOCAL
888VERSION
889PACKAGE
890CYGPATH_W
891am__isrc
892INSTALL_DATA
893INSTALL_SCRIPT
894INSTALL_PROGRAM
895target_alias
896host_alias
897build_alias
898LIBS
899ECHO_T
900ECHO_N
901ECHO_C
902DEFS
903mandir
904localedir
905libdir
906psdir
907pdfdir
908dvidir
909htmldir
910infodir
911docdir
912oldincludedir
913includedir
914localstatedir
915sharedstatedir
916sysconfdir
917datadir
918datarootdir
919libexecdir
920sbindir
921bindir
922program_transform_name
923prefix
924exec_prefix
925PACKAGE_BUGREPORT
926PACKAGE_STRING
927PACKAGE_VERSION
928PACKAGE_TARNAME
929PACKAGE_NAME
930PATH_SEPARATOR
931SHELL'
932ac_subst_files=''
933ac_user_opts='
934enable_option_checking
935enable_maintainer_mode
936enable_static
937enable_shared
938enable_fast_install
939enable_dependency_tracking
940with_gnu_ld
941enable_libtool_lock
942with_pic
943with_tags
944with_xorg_module_dir
945enable_dri
946enable_debug
947enable_xv_debug
948with_release_version
949'
950      ac_precious_vars='build_alias
951host_alias
952target_alias
953CC
954CFLAGS
955LDFLAGS
956LIBS
957CPPFLAGS
958CPP
959CXX
960CXXFLAGS
961CCC
962CXXCPP
963F77
964FFLAGS
965PKG_CONFIG
966XORG_CFLAGS
967XORG_LIBS
968XEXT_CFLAGS
969XEXT_LIBS
970PCIACCESS_CFLAGS
971PCIACCESS_LIBS
972DRI_CFLAGS
973DRI_LIBS
974XVMC_CFLAGS
975XVMC_LIBS'
976
977
978# Initialize some variables set by options.
979ac_init_help=
980ac_init_version=false
981ac_unrecognized_opts=
982ac_unrecognized_sep=
983# The variables have the same names as the options, with
984# dashes changed to underlines.
985cache_file=/dev/null
986exec_prefix=NONE
987no_create=
988no_recursion=
989prefix=NONE
990program_prefix=NONE
991program_suffix=NONE
992program_transform_name=s,x,x,
993silent=
994site=
995srcdir=
996verbose=
997x_includes=NONE
998x_libraries=NONE
999
1000# Installation directory options.
1001# These are left unexpanded so users can "make install exec_prefix=/foo"
1002# and all the variables that are supposed to be based on exec_prefix
1003# by default will actually change.
1004# Use braces instead of parens because sh, perl, etc. also accept them.
1005# (The list follows the same order as the GNU Coding Standards.)
1006bindir='${exec_prefix}/bin'
1007sbindir='${exec_prefix}/sbin'
1008libexecdir='${exec_prefix}/libexec'
1009datarootdir='${prefix}/share'
1010datadir='${datarootdir}'
1011sysconfdir='${prefix}/etc'
1012sharedstatedir='${prefix}/com'
1013localstatedir='${prefix}/var'
1014includedir='${prefix}/include'
1015oldincludedir='/usr/include'
1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017infodir='${datarootdir}/info'
1018htmldir='${docdir}'
1019dvidir='${docdir}'
1020pdfdir='${docdir}'
1021psdir='${docdir}'
1022libdir='${exec_prefix}/lib'
1023localedir='${datarootdir}/locale'
1024mandir='${datarootdir}/man'
1025
1026ac_prev=
1027ac_dashdash=
1028for ac_option
1029do
1030  # If the previous option needs an argument, assign it.
1031  if test -n "$ac_prev"; then
1032    eval $ac_prev=\$ac_option
1033    ac_prev=
1034    continue
1035  fi
1036
1037  case $ac_option in
1038  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039  *)	ac_optarg=yes ;;
1040  esac
1041
1042  # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044  case $ac_dashdash$ac_option in
1045  --)
1046    ac_dashdash=yes ;;
1047
1048  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049    ac_prev=bindir ;;
1050  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051    bindir=$ac_optarg ;;
1052
1053  -build | --build | --buil | --bui | --bu)
1054    ac_prev=build_alias ;;
1055  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056    build_alias=$ac_optarg ;;
1057
1058  -cache-file | --cache-file | --cache-fil | --cache-fi \
1059  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060    ac_prev=cache_file ;;
1061  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063    cache_file=$ac_optarg ;;
1064
1065  --config-cache | -C)
1066    cache_file=config.cache ;;
1067
1068  -datadir | --datadir | --datadi | --datad)
1069    ac_prev=datadir ;;
1070  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071    datadir=$ac_optarg ;;
1072
1073  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074  | --dataroo | --dataro | --datar)
1075    ac_prev=datarootdir ;;
1076  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078    datarootdir=$ac_optarg ;;
1079
1080  -disable-* | --disable-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1085   { (exit 1); exit 1; }; }
1086    ac_useropt_orig=$ac_useropt
1087    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088    case $ac_user_opts in
1089      *"
1090"enable_$ac_useropt"
1091"*) ;;
1092      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093	 ac_unrecognized_sep=', ';;
1094    esac
1095    eval enable_$ac_useropt=no ;;
1096
1097  -docdir | --docdir | --docdi | --doc | --do)
1098    ac_prev=docdir ;;
1099  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100    docdir=$ac_optarg ;;
1101
1102  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103    ac_prev=dvidir ;;
1104  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105    dvidir=$ac_optarg ;;
1106
1107  -enable-* | --enable-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112   { (exit 1); exit 1; }; }
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"enable_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval enable_$ac_useropt=\$ac_optarg ;;
1123
1124  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126  | --exec | --exe | --ex)
1127    ac_prev=exec_prefix ;;
1128  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130  | --exec=* | --exe=* | --ex=*)
1131    exec_prefix=$ac_optarg ;;
1132
1133  -gas | --gas | --ga | --g)
1134    # Obsolete; use --with-gas.
1135    with_gas=yes ;;
1136
1137  -help | --help | --hel | --he | -h)
1138    ac_init_help=long ;;
1139  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140    ac_init_help=recursive ;;
1141  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142    ac_init_help=short ;;
1143
1144  -host | --host | --hos | --ho)
1145    ac_prev=host_alias ;;
1146  -host=* | --host=* | --hos=* | --ho=*)
1147    host_alias=$ac_optarg ;;
1148
1149  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150    ac_prev=htmldir ;;
1151  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152  | --ht=*)
1153    htmldir=$ac_optarg ;;
1154
1155  -includedir | --includedir | --includedi | --included | --include \
1156  | --includ | --inclu | --incl | --inc)
1157    ac_prev=includedir ;;
1158  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159  | --includ=* | --inclu=* | --incl=* | --inc=*)
1160    includedir=$ac_optarg ;;
1161
1162  -infodir | --infodir | --infodi | --infod | --info | --inf)
1163    ac_prev=infodir ;;
1164  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165    infodir=$ac_optarg ;;
1166
1167  -libdir | --libdir | --libdi | --libd)
1168    ac_prev=libdir ;;
1169  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170    libdir=$ac_optarg ;;
1171
1172  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173  | --libexe | --libex | --libe)
1174    ac_prev=libexecdir ;;
1175  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176  | --libexe=* | --libex=* | --libe=*)
1177    libexecdir=$ac_optarg ;;
1178
1179  -localedir | --localedir | --localedi | --localed | --locale)
1180    ac_prev=localedir ;;
1181  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182    localedir=$ac_optarg ;;
1183
1184  -localstatedir | --localstatedir | --localstatedi | --localstated \
1185  | --localstate | --localstat | --localsta | --localst | --locals)
1186    ac_prev=localstatedir ;;
1187  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189    localstatedir=$ac_optarg ;;
1190
1191  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192    ac_prev=mandir ;;
1193  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194    mandir=$ac_optarg ;;
1195
1196  -nfp | --nfp | --nf)
1197    # Obsolete; use --without-fp.
1198    with_fp=no ;;
1199
1200  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201  | --no-cr | --no-c | -n)
1202    no_create=yes ;;
1203
1204  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206    no_recursion=yes ;;
1207
1208  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210  | --oldin | --oldi | --old | --ol | --o)
1211    ac_prev=oldincludedir ;;
1212  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215    oldincludedir=$ac_optarg ;;
1216
1217  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218    ac_prev=prefix ;;
1219  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220    prefix=$ac_optarg ;;
1221
1222  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223  | --program-pre | --program-pr | --program-p)
1224    ac_prev=program_prefix ;;
1225  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227    program_prefix=$ac_optarg ;;
1228
1229  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230  | --program-suf | --program-su | --program-s)
1231    ac_prev=program_suffix ;;
1232  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234    program_suffix=$ac_optarg ;;
1235
1236  -program-transform-name | --program-transform-name \
1237  | --program-transform-nam | --program-transform-na \
1238  | --program-transform-n | --program-transform- \
1239  | --program-transform | --program-transfor \
1240  | --program-transfo | --program-transf \
1241  | --program-trans | --program-tran \
1242  | --progr-tra | --program-tr | --program-t)
1243    ac_prev=program_transform_name ;;
1244  -program-transform-name=* | --program-transform-name=* \
1245  | --program-transform-nam=* | --program-transform-na=* \
1246  | --program-transform-n=* | --program-transform-=* \
1247  | --program-transform=* | --program-transfor=* \
1248  | --program-transfo=* | --program-transf=* \
1249  | --program-trans=* | --program-tran=* \
1250  | --progr-tra=* | --program-tr=* | --program-t=*)
1251    program_transform_name=$ac_optarg ;;
1252
1253  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254    ac_prev=pdfdir ;;
1255  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256    pdfdir=$ac_optarg ;;
1257
1258  -psdir | --psdir | --psdi | --psd | --ps)
1259    ac_prev=psdir ;;
1260  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261    psdir=$ac_optarg ;;
1262
1263  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264  | -silent | --silent | --silen | --sile | --sil)
1265    silent=yes ;;
1266
1267  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268    ac_prev=sbindir ;;
1269  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270  | --sbi=* | --sb=*)
1271    sbindir=$ac_optarg ;;
1272
1273  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275  | --sharedst | --shareds | --shared | --share | --shar \
1276  | --sha | --sh)
1277    ac_prev=sharedstatedir ;;
1278  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281  | --sha=* | --sh=*)
1282    sharedstatedir=$ac_optarg ;;
1283
1284  -site | --site | --sit)
1285    ac_prev=site ;;
1286  -site=* | --site=* | --sit=*)
1287    site=$ac_optarg ;;
1288
1289  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290    ac_prev=srcdir ;;
1291  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292    srcdir=$ac_optarg ;;
1293
1294  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295  | --syscon | --sysco | --sysc | --sys | --sy)
1296    ac_prev=sysconfdir ;;
1297  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299    sysconfdir=$ac_optarg ;;
1300
1301  -target | --target | --targe | --targ | --tar | --ta | --t)
1302    ac_prev=target_alias ;;
1303  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304    target_alias=$ac_optarg ;;
1305
1306  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307    verbose=yes ;;
1308
1309  -version | --version | --versio | --versi | --vers | -V)
1310    ac_init_version=: ;;
1311
1312  -with-* | --with-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=\$ac_optarg ;;
1328
1329  -without-* | --without-*)
1330    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331    # Reject names that are not valid shell variable names.
1332    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1334   { (exit 1); exit 1; }; }
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=no ;;
1345
1346  --x)
1347    # Obsolete; use --with-x.
1348    with_x=yes ;;
1349
1350  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351  | --x-incl | --x-inc | --x-in | --x-i)
1352    ac_prev=x_includes ;;
1353  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355    x_includes=$ac_optarg ;;
1356
1357  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359    ac_prev=x_libraries ;;
1360  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362    x_libraries=$ac_optarg ;;
1363
1364  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1365Try \`$0 --help' for more information." >&2
1366   { (exit 1); exit 1; }; }
1367    ;;
1368
1369  *=*)
1370    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371    # Reject names that are not valid shell variable names.
1372    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1373      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1374   { (exit 1); exit 1; }; }
1375    eval $ac_envvar=\$ac_optarg
1376    export $ac_envvar ;;
1377
1378  *)
1379    # FIXME: should be removed in autoconf 3.0.
1380    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384    ;;
1385
1386  esac
1387done
1388
1389if test -n "$ac_prev"; then
1390  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1392   { (exit 1); exit 1; }; }
1393fi
1394
1395if test -n "$ac_unrecognized_opts"; then
1396  case $enable_option_checking in
1397    no) ;;
1398    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1399   { (exit 1); exit 1; }; } ;;
1400    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401  esac
1402fi
1403
1404# Check all directory arguments for consistency.
1405for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406		datadir sysconfdir sharedstatedir localstatedir includedir \
1407		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408		libdir localedir mandir
1409do
1410  eval ac_val=\$$ac_var
1411  # Remove trailing slashes.
1412  case $ac_val in
1413    */ )
1414      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415      eval $ac_var=\$ac_val;;
1416  esac
1417  # Be sure to have absolute directory names.
1418  case $ac_val in
1419    [\\/$]* | ?:[\\/]* )  continue;;
1420    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421  esac
1422  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1423   { (exit 1); exit 1; }; }
1424done
1425
1426# There might be people who depend on the old broken behavior: `$host'
1427# used to hold the argument of --host etc.
1428# FIXME: To remove some day.
1429build=$build_alias
1430host=$host_alias
1431target=$target_alias
1432
1433# FIXME: To remove some day.
1434if test "x$host_alias" != x; then
1435  if test "x$build_alias" = x; then
1436    cross_compiling=maybe
1437    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438    If a cross compiler is detected then cross compile mode will be used." >&2
1439  elif test "x$build_alias" != "x$host_alias"; then
1440    cross_compiling=yes
1441  fi
1442fi
1443
1444ac_tool_prefix=
1445test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446
1447test "$silent" = yes && exec 6>/dev/null
1448
1449
1450ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451ac_ls_di=`ls -di .` &&
1452ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1454   { (exit 1); exit 1; }; }
1455test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1457   { (exit 1); exit 1; }; }
1458
1459
1460# Find the source files, if location was not specified.
1461if test -z "$srcdir"; then
1462  ac_srcdir_defaulted=yes
1463  # Try the directory containing this script, then the parent directory.
1464  ac_confdir=`$as_dirname -- "$as_myself" ||
1465$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466	 X"$as_myself" : 'X\(//\)[^/]' \| \
1467	 X"$as_myself" : 'X\(//\)$' \| \
1468	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469$as_echo X"$as_myself" |
1470    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)[^/].*/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\/\)$/{
1479	    s//\1/
1480	    q
1481	  }
1482	  /^X\(\/\).*/{
1483	    s//\1/
1484	    q
1485	  }
1486	  s/.*/./; q'`
1487  srcdir=$ac_confdir
1488  if test ! -r "$srcdir/$ac_unique_file"; then
1489    srcdir=..
1490  fi
1491else
1492  ac_srcdir_defaulted=no
1493fi
1494if test ! -r "$srcdir/$ac_unique_file"; then
1495  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1497   { (exit 1); exit 1; }; }
1498fi
1499ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1500ac_abs_confdir=`(
1501	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1502   { (exit 1); exit 1; }; }
1503	pwd)`
1504# When building in place, set srcdir=.
1505if test "$ac_abs_confdir" = "$ac_pwd"; then
1506  srcdir=.
1507fi
1508# Remove unnecessary trailing slashes from srcdir.
1509# Double slashes in file names in object file debugging info
1510# mess up M-x gdb in Emacs.
1511case $srcdir in
1512*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1513esac
1514for ac_var in $ac_precious_vars; do
1515  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1516  eval ac_env_${ac_var}_value=\$${ac_var}
1517  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1518  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1519done
1520
1521#
1522# Report the --help message.
1523#
1524if test "$ac_init_help" = "long"; then
1525  # Omit some internal or obsolete options to make the list less imposing.
1526  # This message is too long to be a string in the A/UX 3.1 sh.
1527  cat <<_ACEOF
1528\`configure' configures xf86-video-openchrome 0.2.904 to adapt to many kinds of systems.
1529
1530Usage: $0 [OPTION]... [VAR=VALUE]...
1531
1532To assign environment variables (e.g., CC, CFLAGS...), specify them as
1533VAR=VALUE.  See below for descriptions of some of the useful variables.
1534
1535Defaults for the options are specified in brackets.
1536
1537Configuration:
1538  -h, --help              display this help and exit
1539      --help=short        display options specific to this package
1540      --help=recursive    display the short help of all the included packages
1541  -V, --version           display version information and exit
1542  -q, --quiet, --silent   do not print \`checking...' messages
1543      --cache-file=FILE   cache test results in FILE [disabled]
1544  -C, --config-cache      alias for \`--cache-file=config.cache'
1545  -n, --no-create         do not create output files
1546      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1547
1548Installation directories:
1549  --prefix=PREFIX         install architecture-independent files in PREFIX
1550                          [$ac_default_prefix]
1551  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1552                          [PREFIX]
1553
1554By default, \`make install' will install all the files in
1555\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1556an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1557for instance \`--prefix=\$HOME'.
1558
1559For better control, use the options below.
1560
1561Fine tuning of the installation directories:
1562  --bindir=DIR            user executables [EPREFIX/bin]
1563  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1564  --libexecdir=DIR        program executables [EPREFIX/libexec]
1565  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1566  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1567  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1568  --libdir=DIR            object code libraries [EPREFIX/lib]
1569  --includedir=DIR        C header files [PREFIX/include]
1570  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1571  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1572  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1573  --infodir=DIR           info documentation [DATAROOTDIR/info]
1574  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1575  --mandir=DIR            man documentation [DATAROOTDIR/man]
1576  --docdir=DIR            documentation root
1577                          [DATAROOTDIR/doc/xf86-video-openchrome]
1578  --htmldir=DIR           html documentation [DOCDIR]
1579  --dvidir=DIR            dvi documentation [DOCDIR]
1580  --pdfdir=DIR            pdf documentation [DOCDIR]
1581  --psdir=DIR             ps documentation [DOCDIR]
1582_ACEOF
1583
1584  cat <<\_ACEOF
1585
1586Program names:
1587  --program-prefix=PREFIX            prepend PREFIX to installed program names
1588  --program-suffix=SUFFIX            append SUFFIX to installed program names
1589  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1590
1591System types:
1592  --build=BUILD     configure for building on BUILD [guessed]
1593  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1594_ACEOF
1595fi
1596
1597if test -n "$ac_init_help"; then
1598  case $ac_init_help in
1599     short | recursive ) echo "Configuration of xf86-video-openchrome 0.2.904:";;
1600   esac
1601  cat <<\_ACEOF
1602
1603Optional Features:
1604  --disable-option-checking  ignore unrecognized --enable/--with options
1605  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1606  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1607  --enable-maintainer-mode  enable make rules and dependencies not useful
1608			  (and sometimes confusing) to the casual installer
1609  --enable-static[=PKGS]  build static libraries [default=no]
1610  --enable-shared[=PKGS]  build shared libraries [default=yes]
1611  --enable-fast-install[=PKGS]
1612                          optimize for fast installation [default=yes]
1613  --disable-dependency-tracking  speeds up one-time build
1614  --enable-dependency-tracking   do not reject slow dependency extractors
1615  --disable-libtool-lock  avoid locking (might break parallel builds)
1616  --disable-dri           Disable DRI support [default=auto]
1617  --enable-debug          Enable debugging support [default=no]
1618  --enable-xv-debug       Enable XVideo debugging support [default=no]
1619
1620Optional Packages:
1621  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1624  --with-pic              try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-tags[=TAGS]      include additional configurations [automatic]
1627  --with-xorg-module-dir=DIR
1628                          Default xorg module directory
1629                          [default=$libdir/xorg/modules]
1630  --with-release-version=STRING
1631                          Use release version string in package name
1632
1633Some influential environment variables:
1634  CC          C compiler command
1635  CFLAGS      C compiler flags
1636  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637              nonstandard directory <lib dir>
1638  LIBS        libraries to pass to the linker, e.g. -l<library>
1639  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1640              you have headers in a nonstandard directory <include dir>
1641  CPP         C preprocessor
1642  CXX         C++ compiler command
1643  CXXFLAGS    C++ compiler flags
1644  CXXCPP      C++ preprocessor
1645  F77         Fortran 77 compiler command
1646  FFLAGS      Fortran 77 compiler flags
1647  PKG_CONFIG  path to pkg-config utility
1648  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1649  XORG_LIBS   linker flags for XORG, overriding pkg-config
1650  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1651  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1652  PCIACCESS_CFLAGS
1653              C compiler flags for PCIACCESS, overriding pkg-config
1654  PCIACCESS_LIBS
1655              linker flags for PCIACCESS, overriding pkg-config
1656  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1657  DRI_LIBS    linker flags for DRI, overriding pkg-config
1658  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1659  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
1660
1661Use these variables to override the choices made by `configure' or to help
1662it to find libraries and programs with nonstandard names/locations.
1663
1664Report bugs to <http://www.openchrome.org/trac/report/1>.
1665_ACEOF
1666ac_status=$?
1667fi
1668
1669if test "$ac_init_help" = "recursive"; then
1670  # If there are subdirs, report their specific --help.
1671  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672    test -d "$ac_dir" ||
1673      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674      continue
1675    ac_builddir=.
1676
1677case "$ac_dir" in
1678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679*)
1680  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681  # A ".." for each directory in $ac_dir_suffix.
1682  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683  case $ac_top_builddir_sub in
1684  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686  esac ;;
1687esac
1688ac_abs_top_builddir=$ac_pwd
1689ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690# for backward compatibility:
1691ac_top_builddir=$ac_top_build_prefix
1692
1693case $srcdir in
1694  .)  # We are building in place.
1695    ac_srcdir=.
1696    ac_top_srcdir=$ac_top_builddir_sub
1697    ac_abs_top_srcdir=$ac_pwd ;;
1698  [\\/]* | ?:[\\/]* )  # Absolute name.
1699    ac_srcdir=$srcdir$ac_dir_suffix;
1700    ac_top_srcdir=$srcdir
1701    ac_abs_top_srcdir=$srcdir ;;
1702  *) # Relative name.
1703    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704    ac_top_srcdir=$ac_top_build_prefix$srcdir
1705    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706esac
1707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1708
1709    cd "$ac_dir" || { ac_status=$?; continue; }
1710    # Check for guested configure.
1711    if test -f "$ac_srcdir/configure.gnu"; then
1712      echo &&
1713      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714    elif test -f "$ac_srcdir/configure"; then
1715      echo &&
1716      $SHELL "$ac_srcdir/configure" --help=recursive
1717    else
1718      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719    fi || ac_status=$?
1720    cd "$ac_pwd" || { ac_status=$?; break; }
1721  done
1722fi
1723
1724test -n "$ac_init_help" && exit $ac_status
1725if $ac_init_version; then
1726  cat <<\_ACEOF
1727xf86-video-openchrome configure 0.2.904
1728generated by GNU Autoconf 2.63
1729
1730Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17312002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1732This configure script is free software; the Free Software Foundation
1733gives unlimited permission to copy, distribute and modify it.
1734_ACEOF
1735  exit
1736fi
1737cat >config.log <<_ACEOF
1738This file contains any messages produced by compilers while
1739running configure, to aid debugging if configure makes a mistake.
1740
1741It was created by xf86-video-openchrome $as_me 0.2.904, which was
1742generated by GNU Autoconf 2.63.  Invocation command line was
1743
1744  $ $0 $@
1745
1746_ACEOF
1747exec 5>>config.log
1748{
1749cat <<_ASUNAME
1750## --------- ##
1751## Platform. ##
1752## --------- ##
1753
1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1762
1763/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1770
1771_ASUNAME
1772
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778  $as_echo "PATH: $as_dir"
1779done
1780IFS=$as_save_IFS
1781
1782} >&5
1783
1784cat >&5 <<_ACEOF
1785
1786
1787## ----------- ##
1788## Core tests. ##
1789## ----------- ##
1790
1791_ACEOF
1792
1793
1794# Keep a trace of the command line.
1795# Strip out --no-create and --no-recursion so they do not pile up.
1796# Strip out --silent because we don't want to record it for future runs.
1797# Also quote any args containing shell meta-characters.
1798# Make two passes to allow for proper duplicate-argument suppression.
1799ac_configure_args=
1800ac_configure_args0=
1801ac_configure_args1=
1802ac_must_keep_next=false
1803for ac_pass in 1 2
1804do
1805  for ac_arg
1806  do
1807    case $ac_arg in
1808    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810    | -silent | --silent | --silen | --sile | --sil)
1811      continue ;;
1812    *\'*)
1813      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814    esac
1815    case $ac_pass in
1816    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817    2)
1818      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1819      if test $ac_must_keep_next = true; then
1820	ac_must_keep_next=false # Got value, back to normal.
1821      else
1822	case $ac_arg in
1823	  *=* | --config-cache | -C | -disable-* | --disable-* \
1824	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826	  | -with-* | --with-* | -without-* | --without-* | --x)
1827	    case "$ac_configure_args0 " in
1828	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829	    esac
1830	    ;;
1831	  -* ) ac_must_keep_next=true ;;
1832	esac
1833      fi
1834      ac_configure_args="$ac_configure_args '$ac_arg'"
1835      ;;
1836    esac
1837  done
1838done
1839$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1840$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1841
1842# When interrupted or exit'd, cleanup temporary files, and complete
1843# config.log.  We remove comments because anyway the quotes in there
1844# would cause problems or look ugly.
1845# WARNING: Use '\'' to represent an apostrophe within the trap.
1846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847trap 'exit_status=$?
1848  # Save into config.log some information that might help in debugging.
1849  {
1850    echo
1851
1852    cat <<\_ASBOX
1853## ---------------- ##
1854## Cache variables. ##
1855## ---------------- ##
1856_ASBOX
1857    echo
1858    # The following way of writing the cache mishandles newlines in values,
1859(
1860  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861    eval ac_val=\$$ac_var
1862    case $ac_val in #(
1863    *${as_nl}*)
1864      case $ac_var in #(
1865      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867      esac
1868      case $ac_var in #(
1869      _ | IFS | as_nl) ;; #(
1870      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871      *) $as_unset $ac_var ;;
1872      esac ;;
1873    esac
1874  done
1875  (set) 2>&1 |
1876    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877    *${as_nl}ac_space=\ *)
1878      sed -n \
1879	"s/'\''/'\''\\\\'\'''\''/g;
1880	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881      ;; #(
1882    *)
1883      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884      ;;
1885    esac |
1886    sort
1887)
1888    echo
1889
1890    cat <<\_ASBOX
1891## ----------------- ##
1892## Output variables. ##
1893## ----------------- ##
1894_ASBOX
1895    echo
1896    for ac_var in $ac_subst_vars
1897    do
1898      eval ac_val=\$$ac_var
1899      case $ac_val in
1900      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901      esac
1902      $as_echo "$ac_var='\''$ac_val'\''"
1903    done | sort
1904    echo
1905
1906    if test -n "$ac_subst_files"; then
1907      cat <<\_ASBOX
1908## ------------------- ##
1909## File substitutions. ##
1910## ------------------- ##
1911_ASBOX
1912      echo
1913      for ac_var in $ac_subst_files
1914      do
1915	eval ac_val=\$$ac_var
1916	case $ac_val in
1917	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918	esac
1919	$as_echo "$ac_var='\''$ac_val'\''"
1920      done | sort
1921      echo
1922    fi
1923
1924    if test -s confdefs.h; then
1925      cat <<\_ASBOX
1926## ----------- ##
1927## confdefs.h. ##
1928## ----------- ##
1929_ASBOX
1930      echo
1931      cat confdefs.h
1932      echo
1933    fi
1934    test "$ac_signal" != 0 &&
1935      $as_echo "$as_me: caught signal $ac_signal"
1936    $as_echo "$as_me: exit $exit_status"
1937  } >&5
1938  rm -f core *.core core.conftest.* &&
1939    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940    exit $exit_status
1941' 0
1942for ac_signal in 1 2 13 15; do
1943  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1944done
1945ac_signal=0
1946
1947# confdefs.h avoids OS command line length limits that DEFS can exceed.
1948rm -f -r conftest* confdefs.h
1949
1950# Predefined preprocessor variables.
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_NAME "$PACKAGE_NAME"
1954_ACEOF
1955
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959_ACEOF
1960
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_VERSION "$PACKAGE_VERSION"
1964_ACEOF
1965
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_STRING "$PACKAGE_STRING"
1969_ACEOF
1970
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974_ACEOF
1975
1976
1977# Let the site file select an alternate cache file if it wants to.
1978# Prefer an explicitly selected file to automatically selected ones.
1979ac_site_file1=NONE
1980ac_site_file2=NONE
1981if test -n "$CONFIG_SITE"; then
1982  ac_site_file1=$CONFIG_SITE
1983elif test "x$prefix" != xNONE; then
1984  ac_site_file1=$prefix/share/config.site
1985  ac_site_file2=$prefix/etc/config.site
1986else
1987  ac_site_file1=$ac_default_prefix/share/config.site
1988  ac_site_file2=$ac_default_prefix/etc/config.site
1989fi
1990for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991do
1992  test "x$ac_site_file" = xNONE && continue
1993  if test -r "$ac_site_file"; then
1994    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1995$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1996    sed 's/^/| /' "$ac_site_file" >&5
1997    . "$ac_site_file"
1998  fi
1999done
2000
2001if test -r "$cache_file"; then
2002  # Some versions of bash will fail to source /dev/null (special
2003  # files actually), so we avoid doing that.
2004  if test -f "$cache_file"; then
2005    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2006$as_echo "$as_me: loading cache $cache_file" >&6;}
2007    case $cache_file in
2008      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009      *)                      . "./$cache_file";;
2010    esac
2011  fi
2012else
2013  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2014$as_echo "$as_me: creating cache $cache_file" >&6;}
2015  >$cache_file
2016fi
2017
2018# Check that the precious variables saved in the cache have kept the same
2019# value.
2020ac_cache_corrupted=false
2021for ac_var in $ac_precious_vars; do
2022  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023  eval ac_new_set=\$ac_env_${ac_var}_set
2024  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025  eval ac_new_val=\$ac_env_${ac_var}_value
2026  case $ac_old_set,$ac_new_set in
2027    set,)
2028      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,set)
2032      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2033$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034      ac_cache_corrupted=: ;;
2035    ,);;
2036    *)
2037      if test "x$ac_old_val" != "x$ac_new_val"; then
2038	# differences in whitespace do not lead to failure.
2039	ac_old_val_w=`echo x $ac_old_val`
2040	ac_new_val_w=`echo x $ac_new_val`
2041	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2043$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044	  ac_cache_corrupted=:
2045	else
2046	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048	  eval $ac_var=\$ac_old_val
2049	fi
2050	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2051$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2052	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2053$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2054      fi;;
2055  esac
2056  # Pass precious variables to config.status.
2057  if test "$ac_new_set" = set; then
2058    case $ac_new_val in
2059    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060    *) ac_arg=$ac_var=$ac_new_val ;;
2061    esac
2062    case " $ac_configure_args " in
2063      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2064      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2065    esac
2066  fi
2067done
2068if $ac_cache_corrupted; then
2069  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2072$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2074$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2075   { (exit 1); exit 1; }; }
2076fi
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102ac_ext=c
2103ac_cpp='$CPP $CPPFLAGS'
2104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107
2108
2109
2110
2111ac_config_headers="$ac_config_headers config.h"
2112
2113ac_aux_dir=
2114for ac_dir in . "$srcdir"/.; do
2115  if test -f "$ac_dir/install-sh"; then
2116    ac_aux_dir=$ac_dir
2117    ac_install_sh="$ac_aux_dir/install-sh -c"
2118    break
2119  elif test -f "$ac_dir/install.sh"; then
2120    ac_aux_dir=$ac_dir
2121    ac_install_sh="$ac_aux_dir/install.sh -c"
2122    break
2123  elif test -f "$ac_dir/shtool"; then
2124    ac_aux_dir=$ac_dir
2125    ac_install_sh="$ac_aux_dir/shtool install -c"
2126    break
2127  fi
2128done
2129if test -z "$ac_aux_dir"; then
2130  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2131$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2132   { (exit 1); exit 1; }; }
2133fi
2134
2135# These three variables are undocumented and unsupported,
2136# and are intended to be withdrawn in a future Autoconf release.
2137# They can cause serious problems if a builder's source tree is in a directory
2138# whose full name contains unusual characters.
2139ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2140ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2141ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2142
2143
2144
2145am__api_version='1.11'
2146
2147# Find a good install program.  We prefer a C program (faster),
2148# so one script is as good as another.  But avoid the broken or
2149# incompatible versions:
2150# SysV /etc/install, /usr/sbin/install
2151# SunOS /usr/etc/install
2152# IRIX /sbin/install
2153# AIX /bin/install
2154# AmigaOS /C/install, which installs bootblocks on floppy discs
2155# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2156# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2157# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2158# OS/2's system install, which has a completely different semantic
2159# ./install, which can be erroneously created by make from ./install.sh.
2160# Reject install programs that cannot install multiple files.
2161{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2162$as_echo_n "checking for a BSD-compatible install... " >&6; }
2163if test -z "$INSTALL"; then
2164if test "${ac_cv_path_install+set}" = set; then
2165  $as_echo_n "(cached) " >&6
2166else
2167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170  IFS=$as_save_IFS
2171  test -z "$as_dir" && as_dir=.
2172  # Account for people who put trailing slashes in PATH elements.
2173case $as_dir/ in
2174  ./ | .// | /cC/* | \
2175  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2176  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2177  /usr/ucb/* ) ;;
2178  *)
2179    # OSF1 and SCO ODT 3.0 have their own names for install.
2180    # Don't use installbsd from OSF since it installs stuff as root
2181    # by default.
2182    for ac_prog in ginstall scoinst install; do
2183      for ac_exec_ext in '' $ac_executable_extensions; do
2184	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2185	  if test $ac_prog = install &&
2186	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2187	    # AIX install.  It has an incompatible calling convention.
2188	    :
2189	  elif test $ac_prog = install &&
2190	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2191	    # program-specific install script used by HP pwplus--don't use.
2192	    :
2193	  else
2194	    rm -rf conftest.one conftest.two conftest.dir
2195	    echo one > conftest.one
2196	    echo two > conftest.two
2197	    mkdir conftest.dir
2198	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2199	      test -s conftest.one && test -s conftest.two &&
2200	      test -s conftest.dir/conftest.one &&
2201	      test -s conftest.dir/conftest.two
2202	    then
2203	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2204	      break 3
2205	    fi
2206	  fi
2207	fi
2208      done
2209    done
2210    ;;
2211esac
2212
2213done
2214IFS=$as_save_IFS
2215
2216rm -rf conftest.one conftest.two conftest.dir
2217
2218fi
2219  if test "${ac_cv_path_install+set}" = set; then
2220    INSTALL=$ac_cv_path_install
2221  else
2222    # As a last resort, use the slow shell script.  Don't cache a
2223    # value for INSTALL within a source directory, because that will
2224    # break other packages using the cache if that directory is
2225    # removed, or if the value is a relative name.
2226    INSTALL=$ac_install_sh
2227  fi
2228fi
2229{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2230$as_echo "$INSTALL" >&6; }
2231
2232# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2233# It thinks the first close brace ends the variable substitution.
2234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2235
2236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2237
2238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2239
2240{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2241$as_echo_n "checking whether build environment is sane... " >&6; }
2242# Just in case
2243sleep 1
2244echo timestamp > conftest.file
2245# Reject unsafe characters in $srcdir or the absolute working directory
2246# name.  Accept space and tab only in the latter.
2247am_lf='
2248'
2249case `pwd` in
2250  *[\\\"\#\$\&\'\`$am_lf]*)
2251    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2252$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2253   { (exit 1); exit 1; }; };;
2254esac
2255case $srcdir in
2256  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2257    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2258$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2259   { (exit 1); exit 1; }; };;
2260esac
2261
2262# Do `set' in a subshell so we don't clobber the current shell's
2263# arguments.  Must try -L first in case configure is actually a
2264# symlink; some systems play weird games with the mod time of symlinks
2265# (eg FreeBSD returns the mod time of the symlink's containing
2266# directory).
2267if (
2268   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2269   if test "$*" = "X"; then
2270      # -L didn't work.
2271      set X `ls -t "$srcdir/configure" conftest.file`
2272   fi
2273   rm -f conftest.file
2274   if test "$*" != "X $srcdir/configure conftest.file" \
2275      && test "$*" != "X conftest.file $srcdir/configure"; then
2276
2277      # If neither matched, then we have a broken ls.  This can happen
2278      # if, for instance, CONFIG_SHELL is bash and it inherits a
2279      # broken ls alias from the environment.  This has actually
2280      # happened.  Such a system could not be considered "sane".
2281      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2282alias in your environment" >&5
2283$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2284alias in your environment" >&2;}
2285   { (exit 1); exit 1; }; }
2286   fi
2287
2288   test "$2" = conftest.file
2289   )
2290then
2291   # Ok.
2292   :
2293else
2294   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2295Check your system clock" >&5
2296$as_echo "$as_me: error: newly created file is older than distributed files!
2297Check your system clock" >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300{ $as_echo "$as_me:$LINENO: result: yes" >&5
2301$as_echo "yes" >&6; }
2302test "$program_prefix" != NONE &&
2303  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2304# Use a double $ so make ignores it.
2305test "$program_suffix" != NONE &&
2306  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307# Double any \ or $.
2308# By default was `s,x,x', remove it if useless.
2309ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2310program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2311
2312# expand $ac_aux_dir to an absolute path
2313am_aux_dir=`cd $ac_aux_dir && pwd`
2314
2315if test x"${MISSING+set}" != xset; then
2316  case $am_aux_dir in
2317  *\ * | *\	*)
2318    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2319  *)
2320    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2321  esac
2322fi
2323# Use eval to expand $SHELL
2324if eval "$MISSING --run true"; then
2325  am_missing_run="$MISSING --run "
2326else
2327  am_missing_run=
2328  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2329$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2330fi
2331
2332if test x"${install_sh}" != xset; then
2333  case $am_aux_dir in
2334  *\ * | *\	*)
2335    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2336  *)
2337    install_sh="\${SHELL} $am_aux_dir/install-sh"
2338  esac
2339fi
2340
2341# Installed binaries are usually stripped using `strip' when the user
2342# run `make install-strip'.  However `strip' might not be the right
2343# tool to use in cross-compilation environments, therefore Automake
2344# will honor the `STRIP' environment variable to overrule this program.
2345if test "$cross_compiling" != no; then
2346  if test -n "$ac_tool_prefix"; then
2347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348set dummy ${ac_tool_prefix}strip; ac_word=$2
2349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if test "${ac_cv_prog_STRIP+set}" = set; then
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$STRIP"; then
2355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362  for ac_exec_ext in '' $ac_executable_extensions; do
2363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374STRIP=$ac_cv_prog_STRIP
2375if test -n "$STRIP"; then
2376  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2377$as_echo "$STRIP" >&6; }
2378else
2379  { $as_echo "$as_me:$LINENO: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$ac_cv_prog_STRIP"; then
2386  ac_ct_STRIP=$STRIP
2387  # Extract the first word of "strip", so it can be a program name with args.
2388set dummy strip; ac_word=$2
2389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2390$as_echo_n "checking for $ac_word... " >&6; }
2391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392  $as_echo_n "(cached) " >&6
2393else
2394  if test -n "$ac_ct_STRIP"; then
2395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402  for ac_exec_ext in '' $ac_executable_extensions; do
2403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404    ac_cv_prog_ac_ct_STRIP="strip"
2405    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415if test -n "$ac_ct_STRIP"; then
2416  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417$as_echo "$ac_ct_STRIP" >&6; }
2418else
2419  { $as_echo "$as_me:$LINENO: result: no" >&5
2420$as_echo "no" >&6; }
2421fi
2422
2423  if test "x$ac_ct_STRIP" = x; then
2424    STRIP=":"
2425  else
2426    case $cross_compiling:$ac_tool_warned in
2427yes:)
2428{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2430ac_tool_warned=yes ;;
2431esac
2432    STRIP=$ac_ct_STRIP
2433  fi
2434else
2435  STRIP="$ac_cv_prog_STRIP"
2436fi
2437
2438fi
2439INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440
2441{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2442$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2443if test -z "$MKDIR_P"; then
2444  if test "${ac_cv_path_mkdir+set}" = set; then
2445  $as_echo_n "(cached) " >&6
2446else
2447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2449do
2450  IFS=$as_save_IFS
2451  test -z "$as_dir" && as_dir=.
2452  for ac_prog in mkdir gmkdir; do
2453	 for ac_exec_ext in '' $ac_executable_extensions; do
2454	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2455	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2456	     'mkdir (GNU coreutils) '* | \
2457	     'mkdir (coreutils) '* | \
2458	     'mkdir (fileutils) '4.1*)
2459	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2460	       break 3;;
2461	   esac
2462	 done
2463       done
2464done
2465IFS=$as_save_IFS
2466
2467fi
2468
2469  if test "${ac_cv_path_mkdir+set}" = set; then
2470    MKDIR_P="$ac_cv_path_mkdir -p"
2471  else
2472    # As a last resort, use the slow shell script.  Don't cache a
2473    # value for MKDIR_P within a source directory, because that will
2474    # break other packages using the cache if that directory is
2475    # removed, or if the value is a relative name.
2476    test -d ./--version && rmdir ./--version
2477    MKDIR_P="$ac_install_sh -d"
2478  fi
2479fi
2480{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2481$as_echo "$MKDIR_P" >&6; }
2482
2483mkdir_p="$MKDIR_P"
2484case $mkdir_p in
2485  [\\/$]* | ?:[\\/]*) ;;
2486  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2487esac
2488
2489for ac_prog in gawk mawk nawk awk
2490do
2491  # Extract the first word of "$ac_prog", so it can be a program name with args.
2492set dummy $ac_prog; ac_word=$2
2493{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2494$as_echo_n "checking for $ac_word... " >&6; }
2495if test "${ac_cv_prog_AWK+set}" = set; then
2496  $as_echo_n "(cached) " >&6
2497else
2498  if test -n "$AWK"; then
2499  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504  IFS=$as_save_IFS
2505  test -z "$as_dir" && as_dir=.
2506  for ac_exec_ext in '' $ac_executable_extensions; do
2507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508    ac_cv_prog_AWK="$ac_prog"
2509    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510    break 2
2511  fi
2512done
2513done
2514IFS=$as_save_IFS
2515
2516fi
2517fi
2518AWK=$ac_cv_prog_AWK
2519if test -n "$AWK"; then
2520  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2521$as_echo "$AWK" >&6; }
2522else
2523  { $as_echo "$as_me:$LINENO: result: no" >&5
2524$as_echo "no" >&6; }
2525fi
2526
2527
2528  test -n "$AWK" && break
2529done
2530
2531{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2532$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2533set x ${MAKE-make}
2534ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2535if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2536  $as_echo_n "(cached) " >&6
2537else
2538  cat >conftest.make <<\_ACEOF
2539SHELL = /bin/sh
2540all:
2541	@echo '@@@%%%=$(MAKE)=@@@%%%'
2542_ACEOF
2543# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2544case `${MAKE-make} -f conftest.make 2>/dev/null` in
2545  *@@@%%%=?*=@@@%%%*)
2546    eval ac_cv_prog_make_${ac_make}_set=yes;;
2547  *)
2548    eval ac_cv_prog_make_${ac_make}_set=no;;
2549esac
2550rm -f conftest.make
2551fi
2552if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2553  { $as_echo "$as_me:$LINENO: result: yes" >&5
2554$as_echo "yes" >&6; }
2555  SET_MAKE=
2556else
2557  { $as_echo "$as_me:$LINENO: result: no" >&5
2558$as_echo "no" >&6; }
2559  SET_MAKE="MAKE=${MAKE-make}"
2560fi
2561
2562rm -rf .tst 2>/dev/null
2563mkdir .tst 2>/dev/null
2564if test -d .tst; then
2565  am__leading_dot=.
2566else
2567  am__leading_dot=_
2568fi
2569rmdir .tst 2>/dev/null
2570
2571if test "`cd $srcdir && pwd`" != "`pwd`"; then
2572  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2573  # is not polluted with repeated "-I."
2574  am__isrc=' -I$(srcdir)'
2575  # test to see if srcdir already configured
2576  if test -f $srcdir/config.status; then
2577    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2578$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2579   { (exit 1); exit 1; }; }
2580  fi
2581fi
2582
2583# test whether we have cygpath
2584if test -z "$CYGPATH_W"; then
2585  if (cygpath --version) >/dev/null 2>/dev/null; then
2586    CYGPATH_W='cygpath -w'
2587  else
2588    CYGPATH_W=echo
2589  fi
2590fi
2591
2592
2593# Define the identity of the package.
2594 PACKAGE='xf86-video-openchrome'
2595 VERSION='0.2.904'
2596
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE "$PACKAGE"
2600_ACEOF
2601
2602
2603cat >>confdefs.h <<_ACEOF
2604#define VERSION "$VERSION"
2605_ACEOF
2606
2607# Some tools Automake needs.
2608
2609ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2610
2611
2612AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2613
2614
2615AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2616
2617
2618AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2619
2620
2621MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2622
2623# We need awk for the "check" target.  The system "awk" is bad on
2624# some platforms.
2625# Always define AMTAR for backward compatibility.
2626
2627AMTAR=${AMTAR-"${am_missing_run}tar"}
2628
2629am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2630
2631
2632
2633
2634
2635
2636
2637{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2638$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2639    # Check whether --enable-maintainer-mode was given.
2640if test "${enable_maintainer_mode+set}" = set; then
2641  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2642else
2643  USE_MAINTAINER_MODE=no
2644fi
2645
2646  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2647$as_echo "$USE_MAINTAINER_MODE" >&6; }
2648   if test $USE_MAINTAINER_MODE = yes; then
2649  MAINTAINER_MODE_TRUE=
2650  MAINTAINER_MODE_FALSE='#'
2651else
2652  MAINTAINER_MODE_TRUE='#'
2653  MAINTAINER_MODE_FALSE=
2654fi
2655
2656  MAINT=$MAINTAINER_MODE_TRUE
2657
2658
2659
2660# Checks for programs.
2661# Check whether --enable-static was given.
2662if test "${enable_static+set}" = set; then
2663  enableval=$enable_static; p=${PACKAGE-default}
2664    case $enableval in
2665    yes) enable_static=yes ;;
2666    no) enable_static=no ;;
2667    *)
2668     enable_static=no
2669      # Look at the argument we got.  We use all the common list separators.
2670      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2671      for pkg in $enableval; do
2672	IFS="$lt_save_ifs"
2673	if test "X$pkg" = "X$p"; then
2674	  enable_static=yes
2675	fi
2676      done
2677      IFS="$lt_save_ifs"
2678      ;;
2679    esac
2680else
2681  enable_static=no
2682fi
2683
2684
2685
2686# Check whether --enable-shared was given.
2687if test "${enable_shared+set}" = set; then
2688  enableval=$enable_shared; p=${PACKAGE-default}
2689    case $enableval in
2690    yes) enable_shared=yes ;;
2691    no) enable_shared=no ;;
2692    *)
2693      enable_shared=no
2694      # Look at the argument we got.  We use all the common list separators.
2695      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2696      for pkg in $enableval; do
2697	IFS="$lt_save_ifs"
2698	if test "X$pkg" = "X$p"; then
2699	  enable_shared=yes
2700	fi
2701      done
2702      IFS="$lt_save_ifs"
2703      ;;
2704    esac
2705else
2706  enable_shared=yes
2707fi
2708
2709
2710# Check whether --enable-fast-install was given.
2711if test "${enable_fast_install+set}" = set; then
2712  enableval=$enable_fast_install; p=${PACKAGE-default}
2713    case $enableval in
2714    yes) enable_fast_install=yes ;;
2715    no) enable_fast_install=no ;;
2716    *)
2717      enable_fast_install=no
2718      # Look at the argument we got.  We use all the common list separators.
2719      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2720      for pkg in $enableval; do
2721	IFS="$lt_save_ifs"
2722	if test "X$pkg" = "X$p"; then
2723	  enable_fast_install=yes
2724	fi
2725      done
2726      IFS="$lt_save_ifs"
2727      ;;
2728    esac
2729else
2730  enable_fast_install=yes
2731fi
2732
2733
2734# Make sure we can run config.sub.
2735$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2737$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2738   { (exit 1); exit 1; }; }
2739
2740{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2741$as_echo_n "checking build system type... " >&6; }
2742if test "${ac_cv_build+set}" = set; then
2743  $as_echo_n "(cached) " >&6
2744else
2745  ac_build_alias=$build_alias
2746test "x$ac_build_alias" = x &&
2747  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748test "x$ac_build_alias" = x &&
2749  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2750$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2751   { (exit 1); exit 1; }; }
2752ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2753  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2754$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2755   { (exit 1); exit 1; }; }
2756
2757fi
2758{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2759$as_echo "$ac_cv_build" >&6; }
2760case $ac_cv_build in
2761*-*-*) ;;
2762*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2763$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2764   { (exit 1); exit 1; }; };;
2765esac
2766build=$ac_cv_build
2767ac_save_IFS=$IFS; IFS='-'
2768set x $ac_cv_build
2769shift
2770build_cpu=$1
2771build_vendor=$2
2772shift; shift
2773# Remember, the first character of IFS is used to create $*,
2774# except with old shells:
2775build_os=$*
2776IFS=$ac_save_IFS
2777case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2778
2779
2780{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2781$as_echo_n "checking host system type... " >&6; }
2782if test "${ac_cv_host+set}" = set; then
2783  $as_echo_n "(cached) " >&6
2784else
2785  if test "x$host_alias" = x; then
2786  ac_cv_host=$ac_cv_build
2787else
2788  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2790$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2791   { (exit 1); exit 1; }; }
2792fi
2793
2794fi
2795{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2796$as_echo "$ac_cv_host" >&6; }
2797case $ac_cv_host in
2798*-*-*) ;;
2799*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2800$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2801   { (exit 1); exit 1; }; };;
2802esac
2803host=$ac_cv_host
2804ac_save_IFS=$IFS; IFS='-'
2805set x $ac_cv_host
2806shift
2807host_cpu=$1
2808host_vendor=$2
2809shift; shift
2810# Remember, the first character of IFS is used to create $*,
2811# except with old shells:
2812host_os=$*
2813IFS=$ac_save_IFS
2814case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815
2816
2817DEPDIR="${am__leading_dot}deps"
2818
2819ac_config_commands="$ac_config_commands depfiles"
2820
2821
2822am_make=${MAKE-make}
2823cat > confinc << 'END'
2824am__doit:
2825	@echo this is the am__doit target
2826.PHONY: am__doit
2827END
2828# If we don't find an include directive, just comment out the code.
2829{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2830$as_echo_n "checking for style of include used by $am_make... " >&6; }
2831am__include="#"
2832am__quote=
2833_am_result=none
2834# First try GNU make style include.
2835echo "include confinc" > confmf
2836# Ignore all kinds of additional output from `make'.
2837case `$am_make -s -f confmf 2> /dev/null` in #(
2838*the\ am__doit\ target*)
2839  am__include=include
2840  am__quote=
2841  _am_result=GNU
2842  ;;
2843esac
2844# Now try BSD make style include.
2845if test "$am__include" = "#"; then
2846   echo '.include "confinc"' > confmf
2847   case `$am_make -s -f confmf 2> /dev/null` in #(
2848   *the\ am__doit\ target*)
2849     am__include=.include
2850     am__quote="\""
2851     _am_result=BSD
2852     ;;
2853   esac
2854fi
2855
2856
2857{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2858$as_echo "$_am_result" >&6; }
2859rm -f confinc confmf
2860
2861# Check whether --enable-dependency-tracking was given.
2862if test "${enable_dependency_tracking+set}" = set; then
2863  enableval=$enable_dependency_tracking;
2864fi
2865
2866if test "x$enable_dependency_tracking" != xno; then
2867  am_depcomp="$ac_aux_dir/depcomp"
2868  AMDEPBACKSLASH='\'
2869fi
2870 if test "x$enable_dependency_tracking" != xno; then
2871  AMDEP_TRUE=
2872  AMDEP_FALSE='#'
2873else
2874  AMDEP_TRUE='#'
2875  AMDEP_FALSE=
2876fi
2877
2878
2879ac_ext=c
2880ac_cpp='$CPP $CPPFLAGS'
2881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884if test -n "$ac_tool_prefix"; then
2885  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$CC"; then
2893  ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
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
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
2914  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2915$as_echo "$CC" >&6; }
2916else
2917  { $as_echo "$as_me:$LINENO: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922fi
2923if test -z "$ac_cv_prog_CC"; then
2924  ac_ct_CC=$CC
2925  # Extract the first word of "gcc", so it can be a program name with args.
2926set dummy gcc; ac_word=$2
2927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2930  $as_echo_n "(cached) " >&6
2931else
2932  if test -n "$ac_ct_CC"; then
2933  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940  for ac_exec_ext in '' $ac_executable_extensions; do
2941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942    ac_cv_prog_ac_ct_CC="gcc"
2943    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944    break 2
2945  fi
2946done
2947done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953if test -n "$ac_ct_CC"; then
2954  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2955$as_echo "$ac_ct_CC" >&6; }
2956else
2957  { $as_echo "$as_me:$LINENO: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961  if test "x$ac_ct_CC" = x; then
2962    CC=""
2963  else
2964    case $cross_compiling:$ac_tool_warned in
2965yes:)
2966{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968ac_tool_warned=yes ;;
2969esac
2970    CC=$ac_ct_CC
2971  fi
2972else
2973  CC="$ac_cv_prog_CC"
2974fi
2975
2976if test -z "$CC"; then
2977          if test -n "$ac_tool_prefix"; then
2978    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979set dummy ${ac_tool_prefix}cc; ac_word=$2
2980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_CC+set}" = set; then
2983  $as_echo_n "(cached) " >&6
2984else
2985  if test -n "$CC"; then
2986  ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993  for ac_exec_ext in '' $ac_executable_extensions; do
2994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995    ac_cv_prog_CC="${ac_tool_prefix}cc"
2996    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997    break 2
2998  fi
2999done
3000done
3001IFS=$as_save_IFS
3002
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
3007  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3008$as_echo "$CC" >&6; }
3009else
3010  { $as_echo "$as_me:$LINENO: result: no" >&5
3011$as_echo "no" >&6; }
3012fi
3013
3014
3015  fi
3016fi
3017if test -z "$CC"; then
3018  # Extract the first word of "cc", so it can be a program name with args.
3019set dummy cc; ac_word=$2
3020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if test "${ac_cv_prog_CC+set}" = set; then
3023  $as_echo_n "(cached) " >&6
3024else
3025  if test -n "$CC"; then
3026  ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028  ac_prog_rejected=no
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034  for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037       ac_prog_rejected=yes
3038       continue
3039     fi
3040    ac_cv_prog_CC="cc"
3041    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045done
3046IFS=$as_save_IFS
3047
3048if test $ac_prog_rejected = yes; then
3049  # We found a bogon in the path, so make sure we never use it.
3050  set dummy $ac_cv_prog_CC
3051  shift
3052  if test $# != 0; then
3053    # We chose a different compiler from the bogus one.
3054    # However, it has the same basename, so the bogon will be chosen
3055    # first if we set CC to just the basename; use the full file name.
3056    shift
3057    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058  fi
3059fi
3060fi
3061fi
3062CC=$ac_cv_prog_CC
3063if test -n "$CC"; then
3064  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3065$as_echo "$CC" >&6; }
3066else
3067  { $as_echo "$as_me:$LINENO: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072fi
3073if test -z "$CC"; then
3074  if test -n "$ac_tool_prefix"; then
3075  for ac_prog in cl.exe
3076  do
3077    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CC+set}" = set; then
3082  $as_echo_n "(cached) " >&6
3083else
3084  if test -n "$CC"; then
3085  ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092  for ac_exec_ext in '' $ac_executable_extensions; do
3093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099done
3100IFS=$as_save_IFS
3101
3102fi
3103fi
3104CC=$ac_cv_prog_CC
3105if test -n "$CC"; then
3106  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3107$as_echo "$CC" >&6; }
3108else
3109  { $as_echo "$as_me:$LINENO: result: no" >&5
3110$as_echo "no" >&6; }
3111fi
3112
3113
3114    test -n "$CC" && break
3115  done
3116fi
3117if test -z "$CC"; then
3118  ac_ct_CC=$CC
3119  for ac_prog in cl.exe
3120do
3121  # Extract the first word of "$ac_prog", so it can be a program name with args.
3122set dummy $ac_prog; ac_word=$2
3123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$ac_ct_CC"; then
3129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136  for ac_exec_ext in '' $ac_executable_extensions; do
3137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138    ac_cv_prog_ac_ct_CC="$ac_prog"
3139    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
3150  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
3152else
3153  { $as_echo "$as_me:$LINENO: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158  test -n "$ac_ct_CC" && break
3159done
3160
3161  if test "x$ac_ct_CC" = x; then
3162    CC=""
3163  else
3164    case $cross_compiling:$ac_tool_warned in
3165yes:)
3166{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168ac_tool_warned=yes ;;
3169esac
3170    CC=$ac_ct_CC
3171  fi
3172fi
3173
3174fi
3175
3176
3177test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3180See \`config.log' for more details." >&5
3181$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3182See \`config.log' for more details." >&2;}
3183   { (exit 1); exit 1; }; }; }
3184
3185# Provide some information about the compiler.
3186$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3187set X $ac_compile
3188ac_compiler=$2
3189{ (ac_try="$ac_compiler --version >&5"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195$as_echo "$ac_try_echo") >&5
3196  (eval "$ac_compiler --version >&5") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200{ (ac_try="$ac_compiler -v >&5"
3201case "(($ac_try" in
3202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203  *) ac_try_echo=$ac_try;;
3204esac
3205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206$as_echo "$ac_try_echo") >&5
3207  (eval "$ac_compiler -v >&5") 2>&5
3208  ac_status=$?
3209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }
3211{ (ac_try="$ac_compiler -V >&5"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217$as_echo "$ac_try_echo") >&5
3218  (eval "$ac_compiler -V >&5") 2>&5
3219  ac_status=$?
3220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }
3222
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238ac_clean_files_save=$ac_clean_files
3239ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3240# Try to create an executable without -o first, disregard a.out.
3241# It will help us diagnose broken compilers, and finding out an intuition
3242# of exeext.
3243{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244$as_echo_n "checking for C compiler default output file name... " >&6; }
3245ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246
3247# The possible output files:
3248ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3249
3250ac_rmfiles=
3251for ac_file in $ac_files
3252do
3253  case $ac_file in
3254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3256  esac
3257done
3258rm -f $ac_rmfiles
3259
3260if { (ac_try="$ac_link_default"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266$as_echo "$ac_try_echo") >&5
3267  (eval "$ac_link_default") 2>&5
3268  ac_status=$?
3269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; then
3271  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3272# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3273# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3274# so that the user can short-circuit this test for compilers unknown to
3275# Autoconf.
3276for ac_file in $ac_files ''
3277do
3278  test -f "$ac_file" || continue
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3281	;;
3282    [ab].out )
3283	# We found the default executable, but exeext='' is most
3284	# certainly right.
3285	break;;
3286    *.* )
3287        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3288	then :; else
3289	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290	fi
3291	# We set ac_cv_exeext here because the later test for it is not
3292	# safe: cross compilers may not add the suffix if given an `-o'
3293	# argument, so we may need to know it at that point already.
3294	# Even if this section looks crufty: it has the advantage of
3295	# actually working.
3296	break;;
3297    * )
3298	break;;
3299  esac
3300done
3301test "$ac_cv_exeext" = no && ac_cv_exeext=
3302
3303else
3304  ac_file=''
3305fi
3306
3307{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3308$as_echo "$ac_file" >&6; }
3309if test -z "$ac_file"; then
3310  $as_echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3316See \`config.log' for more details." >&5
3317$as_echo "$as_me: error: C compiler cannot create executables
3318See \`config.log' for more details." >&2;}
3319   { (exit 77); exit 77; }; }; }
3320fi
3321
3322ac_exeext=$ac_cv_exeext
3323
3324# Check that the compiler produces executables we can run.  If not, either
3325# the compiler is broken, or we cross compile.
3326{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3327$as_echo_n "checking whether the C compiler works... " >&6; }
3328# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3329# If not cross compiling, check that we can run a simple program.
3330if test "$cross_compiling" != yes; then
3331  if { ac_try='./$ac_file'
3332  { (case "(($ac_try" in
3333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334  *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337$as_echo "$ac_try_echo") >&5
3338  (eval "$ac_try") 2>&5
3339  ac_status=$?
3340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; }; then
3342    cross_compiling=no
3343  else
3344    if test "$cross_compiling" = maybe; then
3345	cross_compiling=yes
3346    else
3347	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3350If you meant to cross compile, use \`--host'.
3351See \`config.log' for more details." >&5
3352$as_echo "$as_me: error: cannot run C compiled programs.
3353If you meant to cross compile, use \`--host'.
3354See \`config.log' for more details." >&2;}
3355   { (exit 1); exit 1; }; }; }
3356    fi
3357  fi
3358fi
3359{ $as_echo "$as_me:$LINENO: result: yes" >&5
3360$as_echo "yes" >&6; }
3361
3362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363ac_clean_files=$ac_clean_files_save
3364# Check that the compiler produces executables we can run.  If not, either
3365# the compiler is broken, or we cross compile.
3366{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3367$as_echo_n "checking whether we are cross compiling... " >&6; }
3368{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3369$as_echo "$cross_compiling" >&6; }
3370
3371{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3372$as_echo_n "checking for suffix of executables... " >&6; }
3373if { (ac_try="$ac_link"
3374case "(($ac_try" in
3375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376  *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379$as_echo "$ac_try_echo") >&5
3380  (eval "$ac_link") 2>&5
3381  ac_status=$?
3382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); }; then
3384  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3386# work properly (i.e., refer to `conftest.exe'), while it won't with
3387# `rm'.
3388for ac_file in conftest.exe conftest conftest.*; do
3389  test -f "$ac_file" || continue
3390  case $ac_file in
3391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393	  break;;
3394    * ) break;;
3395  esac
3396done
3397else
3398  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3401See \`config.log' for more details." >&5
3402$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3403See \`config.log' for more details." >&2;}
3404   { (exit 1); exit 1; }; }; }
3405fi
3406
3407rm -f conftest$ac_cv_exeext
3408{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3409$as_echo "$ac_cv_exeext" >&6; }
3410
3411rm -f conftest.$ac_ext
3412EXEEXT=$ac_cv_exeext
3413ac_exeext=$EXEEXT
3414{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3415$as_echo_n "checking for suffix of object files... " >&6; }
3416if test "${ac_cv_objext+set}" = set; then
3417  $as_echo_n "(cached) " >&6
3418else
3419  cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h.  */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h.  */
3425
3426int
3427main ()
3428{
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434rm -f conftest.o conftest.obj
3435if { (ac_try="$ac_compile"
3436case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441$as_echo "$ac_try_echo") >&5
3442  (eval "$ac_compile") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; then
3446  for ac_file in conftest.o conftest.obj conftest.*; do
3447  test -f "$ac_file" || continue;
3448  case $ac_file in
3449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451       break;;
3452  esac
3453done
3454else
3455  $as_echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3461See \`config.log' for more details." >&5
3462$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3463See \`config.log' for more details." >&2;}
3464   { (exit 1); exit 1; }; }; }
3465fi
3466
3467rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468fi
3469{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3470$as_echo "$ac_cv_objext" >&6; }
3471OBJEXT=$ac_cv_objext
3472ac_objext=$OBJEXT
3473{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475if test "${ac_cv_c_compiler_gnu+set}" = set; then
3476  $as_echo_n "(cached) " >&6
3477else
3478  cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488#ifndef __GNUC__
3489       choke me
3490#endif
3491
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (ac_try="$ac_compile"
3498case "(($ac_try" in
3499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500  *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503$as_echo "$ac_try_echo") >&5
3504  (eval "$ac_compile") 2>conftest.er1
3505  ac_status=$?
3506  grep -v '^ *+' conftest.er1 >conftest.err
3507  rm -f conftest.er1
3508  cat conftest.err >&5
3509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); } && {
3511	 test -z "$ac_c_werror_flag" ||
3512	 test ! -s conftest.err
3513       } && test -s conftest.$ac_objext; then
3514  ac_compiler_gnu=yes
3515else
3516  $as_echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519	ac_compiler_gnu=no
3520fi
3521
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525fi
3526{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3527$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528if test $ac_compiler_gnu = yes; then
3529  GCC=yes
3530else
3531  GCC=
3532fi
3533ac_test_CFLAGS=${CFLAGS+set}
3534ac_save_CFLAGS=$CFLAGS
3535{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3536$as_echo_n "checking whether $CC accepts -g... " >&6; }
3537if test "${ac_cv_prog_cc_g+set}" = set; then
3538  $as_echo_n "(cached) " >&6
3539else
3540  ac_save_c_werror_flag=$ac_c_werror_flag
3541   ac_c_werror_flag=yes
3542   ac_cv_prog_cc_g=no
3543   CFLAGS="-g"
3544   cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h.  */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559rm -f conftest.$ac_objext
3560if { (ac_try="$ac_compile"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3566$as_echo "$ac_try_echo") >&5
3567  (eval "$ac_compile") 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } && {
3574	 test -z "$ac_c_werror_flag" ||
3575	 test ! -s conftest.err
3576       } && test -s conftest.$ac_objext; then
3577  ac_cv_prog_cc_g=yes
3578else
3579  $as_echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582	CFLAGS=""
3583      cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (ac_try="$ac_compile"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605$as_echo "$ac_try_echo") >&5
3606  (eval "$ac_compile") 2>conftest.er1
3607  ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); } && {
3613	 test -z "$ac_c_werror_flag" ||
3614	 test ! -s conftest.err
3615       } && test -s conftest.$ac_objext; then
3616  :
3617else
3618  $as_echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621	ac_c_werror_flag=$ac_save_c_werror_flag
3622	 CFLAGS="-g"
3623	 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h.  */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h.  */
3629
3630int
3631main ()
3632{
3633
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638rm -f conftest.$ac_objext
3639if { (ac_try="$ac_compile"
3640case "(($ac_try" in
3641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642  *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645$as_echo "$ac_try_echo") >&5
3646  (eval "$ac_compile") 2>conftest.er1
3647  ac_status=$?
3648  grep -v '^ *+' conftest.er1 >conftest.err
3649  rm -f conftest.er1
3650  cat conftest.err >&5
3651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); } && {
3653	 test -z "$ac_c_werror_flag" ||
3654	 test ! -s conftest.err
3655       } && test -s conftest.$ac_objext; then
3656  ac_cv_prog_cc_g=yes
3657else
3658  $as_echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661
3662fi
3663
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665fi
3666
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668fi
3669
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671   ac_c_werror_flag=$ac_save_c_werror_flag
3672fi
3673{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3674$as_echo "$ac_cv_prog_cc_g" >&6; }
3675if test "$ac_test_CFLAGS" = set; then
3676  CFLAGS=$ac_save_CFLAGS
3677elif test $ac_cv_prog_cc_g = yes; then
3678  if test "$GCC" = yes; then
3679    CFLAGS="-g -O2"
3680  else
3681    CFLAGS="-g"
3682  fi
3683else
3684  if test "$GCC" = yes; then
3685    CFLAGS="-O2"
3686  else
3687    CFLAGS=
3688  fi
3689fi
3690{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3691$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692if test "${ac_cv_prog_cc_c89+set}" = set; then
3693  $as_echo_n "(cached) " >&6
3694else
3695  ac_cv_prog_cc_c89=no
3696ac_save_CC=$CC
3697cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h.  */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h.  */
3703#include <stdarg.h>
3704#include <stdio.h>
3705#include <sys/types.h>
3706#include <sys/stat.h>
3707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3708struct buf { int x; };
3709FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710static char *e (p, i)
3711     char **p;
3712     int i;
3713{
3714  return p[i];
3715}
3716static char *f (char * (*g) (char **, int), char **p, ...)
3717{
3718  char *s;
3719  va_list v;
3720  va_start (v,p);
3721  s = g (p, va_arg (v,int));
3722  va_end (v);
3723  return s;
3724}
3725
3726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3727   function prototypes and stuff, but not '\xHH' hex character constants.
3728   These don't provoke an error unfortunately, instead are silently treated
3729   as 'x'.  The following induces an error, until -std is added to get
3730   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3731   array size at least.  It's necessary to write '\x00'==0 to get something
3732   that's true only with -std.  */
3733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734
3735/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736   inside strings and character constants.  */
3737#define FOO(x) 'x'
3738int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739
3740int test (int i, double x);
3741struct s1 {int (*f) (int a);};
3742struct s2 {int (*f) (double a);};
3743int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744int argc;
3745char **argv;
3746int
3747main ()
3748{
3749return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3756do
3757  CC="$ac_save_CC $ac_arg"
3758  rm -f conftest.$ac_objext
3759if { (ac_try="$ac_compile"
3760case "(($ac_try" in
3761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762  *) ac_try_echo=$ac_try;;
3763esac
3764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765$as_echo "$ac_try_echo") >&5
3766  (eval "$ac_compile") 2>conftest.er1
3767  ac_status=$?
3768  grep -v '^ *+' conftest.er1 >conftest.err
3769  rm -f conftest.er1
3770  cat conftest.err >&5
3771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); } && {
3773	 test -z "$ac_c_werror_flag" ||
3774	 test ! -s conftest.err
3775       } && test -s conftest.$ac_objext; then
3776  ac_cv_prog_cc_c89=$ac_arg
3777else
3778  $as_echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781
3782fi
3783
3784rm -f core conftest.err conftest.$ac_objext
3785  test "x$ac_cv_prog_cc_c89" != "xno" && break
3786done
3787rm -f conftest.$ac_ext
3788CC=$ac_save_CC
3789
3790fi
3791# AC_CACHE_VAL
3792case "x$ac_cv_prog_cc_c89" in
3793  x)
3794    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3795$as_echo "none needed" >&6; } ;;
3796  xno)
3797    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3798$as_echo "unsupported" >&6; } ;;
3799  *)
3800    CC="$CC $ac_cv_prog_cc_c89"
3801    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3802$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803esac
3804
3805
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812depcc="$CC"   am_compiler_list=
3813
3814{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3815$as_echo_n "checking dependency style of $depcc... " >&6; }
3816if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3817  $as_echo_n "(cached) " >&6
3818else
3819  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820  # We make a subdir and do the tests there.  Otherwise we can end up
3821  # making bogus files that we don't know about and never remove.  For
3822  # instance it was reported that on HP-UX the gcc test will end up
3823  # making a dummy file named `D' -- because `-MD' means `put the output
3824  # in D'.
3825  mkdir conftest.dir
3826  # Copy depcomp to subdir because otherwise we won't find it if we're
3827  # using a relative directory.
3828  cp "$am_depcomp" conftest.dir
3829  cd conftest.dir
3830  # We will build objects and dependencies in a subdirectory because
3831  # it helps to detect inapplicable dependency modes.  For instance
3832  # both Tru64's cc and ICC support -MD to output dependencies as a
3833  # side effect of compilation, but ICC will put the dependencies in
3834  # the current directory while Tru64 will put them in the object
3835  # directory.
3836  mkdir sub
3837
3838  am_cv_CC_dependencies_compiler_type=none
3839  if test "$am_compiler_list" = ""; then
3840     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841  fi
3842  am__universal=false
3843  case " $depcc " in #(
3844     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845     esac
3846
3847  for depmode in $am_compiler_list; do
3848    # Setup a source with many dependencies, because some compilers
3849    # like to wrap large dependency lists on column 80 (with \), and
3850    # we should not choose a depcomp mode which is confused by this.
3851    #
3852    # We need to recreate these files for each test, as the compiler may
3853    # overwrite some of them when testing with obscure command lines.
3854    # This happens at least with the AIX C compiler.
3855    : > sub/conftest.c
3856    for i in 1 2 3 4 5 6; do
3857      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859      # Solaris 8's {/usr,}/bin/sh.
3860      touch sub/conftst$i.h
3861    done
3862    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3863
3864    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865    # mode.  It turns out that the SunPro C++ compiler does not properly
3866    # handle `-M -o', and we need to detect this.  Also, some Intel
3867    # versions had trouble with output in subdirs
3868    am__obj=sub/conftest.${OBJEXT-o}
3869    am__minus_obj="-o $am__obj"
3870    case $depmode in
3871    gcc)
3872      # This depmode causes a compiler race in universal mode.
3873      test "$am__universal" = false || continue
3874      ;;
3875    nosideeffect)
3876      # after this tag, mechanisms are not by side-effect, so they'll
3877      # only be used when explicitly requested
3878      if test "x$enable_dependency_tracking" = xyes; then
3879	continue
3880      else
3881	break
3882      fi
3883      ;;
3884    msvisualcpp | msvcmsys)
3885      # This compiler won't grok `-c -o', but also, the minuso test has
3886      # not run yet.  These depmodes are late enough in the game, and
3887      # so weak that their functioning should not be impacted.
3888      am__obj=conftest.${OBJEXT-o}
3889      am__minus_obj=
3890      ;;
3891    none) break ;;
3892    esac
3893    if depmode=$depmode \
3894       source=sub/conftest.c object=$am__obj \
3895       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3897         >/dev/null 2>conftest.err &&
3898       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3899       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3900       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3901       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3902      # icc doesn't choke on unknown options, it will just issue warnings
3903      # or remarks (even with -Werror).  So we grep stderr for any message
3904      # that says an option was ignored or not supported.
3905      # When given -MP, icc 7.0 and 7.1 complain thusly:
3906      #   icc: Command line warning: ignoring option '-M'; no argument required
3907      # The diagnosis changed in icc 8.0:
3908      #   icc: Command line remark: option '-MP' not supported
3909      if (grep 'ignoring option' conftest.err ||
3910          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3911        am_cv_CC_dependencies_compiler_type=$depmode
3912        break
3913      fi
3914    fi
3915  done
3916
3917  cd ..
3918  rm -rf conftest.dir
3919else
3920  am_cv_CC_dependencies_compiler_type=none
3921fi
3922
3923fi
3924{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3925$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3926CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927
3928 if
3929  test "x$enable_dependency_tracking" != xno \
3930  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3931  am__fastdepCC_TRUE=
3932  am__fastdepCC_FALSE='#'
3933else
3934  am__fastdepCC_TRUE='#'
3935  am__fastdepCC_FALSE=
3936fi
3937
3938
3939{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3940$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3941if test "${lt_cv_path_SED+set}" = set; then
3942  $as_echo_n "(cached) " >&6
3943else
3944  # Loop through the user's path and test for sed and gsed.
3945# Then use that list of sed's as ones to test for truncation.
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951  for lt_ac_prog in sed gsed; do
3952    for ac_exec_ext in '' $ac_executable_extensions; do
3953      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3954        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3955      fi
3956    done
3957  done
3958done
3959IFS=$as_save_IFS
3960lt_ac_max=0
3961lt_ac_count=0
3962# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3963# along with /bin/sed that truncates output.
3964for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3965  test ! -f $lt_ac_sed && continue
3966  cat /dev/null > conftest.in
3967  lt_ac_count=0
3968  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3969  # Check for GNU sed and select it if it is found.
3970  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3971    lt_cv_path_SED=$lt_ac_sed
3972    break
3973  fi
3974  while true; do
3975    cat conftest.in conftest.in >conftest.tmp
3976    mv conftest.tmp conftest.in
3977    cp conftest.in conftest.nl
3978    echo >>conftest.nl
3979    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3980    cmp -s conftest.out conftest.nl || break
3981    # 10000 chars as input seems more than enough
3982    test $lt_ac_count -gt 10 && break
3983    lt_ac_count=`expr $lt_ac_count + 1`
3984    if test $lt_ac_count -gt $lt_ac_max; then
3985      lt_ac_max=$lt_ac_count
3986      lt_cv_path_SED=$lt_ac_sed
3987    fi
3988  done
3989done
3990
3991fi
3992
3993SED=$lt_cv_path_SED
3994
3995{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3996$as_echo "$SED" >&6; }
3997
3998{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3999$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4000if test "${ac_cv_path_GREP+set}" = set; then
4001  $as_echo_n "(cached) " >&6
4002else
4003  if test -z "$GREP"; then
4004  ac_path_GREP_found=false
4005  # Loop through the user's path and test for each of PROGNAME-LIST
4006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011  for ac_prog in grep ggrep; do
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4015# Check for GNU ac_path_GREP and select it if it is found.
4016  # Check for GNU $ac_path_GREP
4017case `"$ac_path_GREP" --version 2>&1` in
4018*GNU*)
4019  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020*)
4021  ac_count=0
4022  $as_echo_n 0123456789 >"conftest.in"
4023  while :
4024  do
4025    cat "conftest.in" "conftest.in" >"conftest.tmp"
4026    mv "conftest.tmp" "conftest.in"
4027    cp "conftest.in" "conftest.nl"
4028    $as_echo 'GREP' >> "conftest.nl"
4029    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031    ac_count=`expr $ac_count + 1`
4032    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033      # Best one so far, save it but keep looking for a better one
4034      ac_cv_path_GREP="$ac_path_GREP"
4035      ac_path_GREP_max=$ac_count
4036    fi
4037    # 10*(2^10) chars as input seems more than enough
4038    test $ac_count -gt 10 && break
4039  done
4040  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041esac
4042
4043      $ac_path_GREP_found && break 3
4044    done
4045  done
4046done
4047IFS=$as_save_IFS
4048  if test -z "$ac_cv_path_GREP"; then
4049    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4050$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4051   { (exit 1); exit 1; }; }
4052  fi
4053else
4054  ac_cv_path_GREP=$GREP
4055fi
4056
4057fi
4058{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4059$as_echo "$ac_cv_path_GREP" >&6; }
4060 GREP="$ac_cv_path_GREP"
4061
4062
4063{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4064$as_echo_n "checking for egrep... " >&6; }
4065if test "${ac_cv_path_EGREP+set}" = set; then
4066  $as_echo_n "(cached) " >&6
4067else
4068  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4069   then ac_cv_path_EGREP="$GREP -E"
4070   else
4071     if test -z "$EGREP"; then
4072  ac_path_EGREP_found=false
4073  # Loop through the user's path and test for each of PROGNAME-LIST
4074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079  for ac_prog in egrep; do
4080    for ac_exec_ext in '' $ac_executable_extensions; do
4081      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083# Check for GNU ac_path_EGREP and select it if it is found.
4084  # Check for GNU $ac_path_EGREP
4085case `"$ac_path_EGREP" --version 2>&1` in
4086*GNU*)
4087  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088*)
4089  ac_count=0
4090  $as_echo_n 0123456789 >"conftest.in"
4091  while :
4092  do
4093    cat "conftest.in" "conftest.in" >"conftest.tmp"
4094    mv "conftest.tmp" "conftest.in"
4095    cp "conftest.in" "conftest.nl"
4096    $as_echo 'EGREP' >> "conftest.nl"
4097    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099    ac_count=`expr $ac_count + 1`
4100    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101      # Best one so far, save it but keep looking for a better one
4102      ac_cv_path_EGREP="$ac_path_EGREP"
4103      ac_path_EGREP_max=$ac_count
4104    fi
4105    # 10*(2^10) chars as input seems more than enough
4106    test $ac_count -gt 10 && break
4107  done
4108  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109esac
4110
4111      $ac_path_EGREP_found && break 3
4112    done
4113  done
4114done
4115IFS=$as_save_IFS
4116  if test -z "$ac_cv_path_EGREP"; then
4117    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119   { (exit 1); exit 1; }; }
4120  fi
4121else
4122  ac_cv_path_EGREP=$EGREP
4123fi
4124
4125   fi
4126fi
4127{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4128$as_echo "$ac_cv_path_EGREP" >&6; }
4129 EGREP="$ac_cv_path_EGREP"
4130
4131
4132
4133# Check whether --with-gnu-ld was given.
4134if test "${with_gnu_ld+set}" = set; then
4135  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4136else
4137  with_gnu_ld=no
4138fi
4139
4140ac_prog=ld
4141if test "$GCC" = yes; then
4142  # Check if gcc -print-prog-name=ld gives a path.
4143  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4144$as_echo_n "checking for ld used by $CC... " >&6; }
4145  case $host in
4146  *-*-mingw*)
4147    # gcc leaves a trailing carriage return which upsets mingw
4148    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4149  *)
4150    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4151  esac
4152  case $ac_prog in
4153    # Accept absolute paths.
4154    [\\/]* | ?:[\\/]*)
4155      re_direlt='/[^/][^/]*/\.\./'
4156      # Canonicalize the pathname of ld
4157      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4158      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4159	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4160      done
4161      test -z "$LD" && LD="$ac_prog"
4162      ;;
4163  "")
4164    # If it fails, then pretend we aren't using GCC.
4165    ac_prog=ld
4166    ;;
4167  *)
4168    # If it is relative, then search for the first ld in PATH.
4169    with_gnu_ld=unknown
4170    ;;
4171  esac
4172elif test "$with_gnu_ld" = yes; then
4173  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4174$as_echo_n "checking for GNU ld... " >&6; }
4175else
4176  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4177$as_echo_n "checking for non-GNU ld... " >&6; }
4178fi
4179if test "${lt_cv_path_LD+set}" = set; then
4180  $as_echo_n "(cached) " >&6
4181else
4182  if test -z "$LD"; then
4183  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4184  for ac_dir in $PATH; do
4185    IFS="$lt_save_ifs"
4186    test -z "$ac_dir" && ac_dir=.
4187    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4188      lt_cv_path_LD="$ac_dir/$ac_prog"
4189      # Check to see if the program is GNU ld.  I'd rather use --version,
4190      # but apparently some variants of GNU ld only accept -v.
4191      # Break only if it was the GNU/non-GNU ld that we prefer.
4192      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4193      *GNU* | *'with BFD'*)
4194	test "$with_gnu_ld" != no && break
4195	;;
4196      *)
4197	test "$with_gnu_ld" != yes && break
4198	;;
4199      esac
4200    fi
4201  done
4202  IFS="$lt_save_ifs"
4203else
4204  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4205fi
4206fi
4207
4208LD="$lt_cv_path_LD"
4209if test -n "$LD"; then
4210  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4211$as_echo "$LD" >&6; }
4212else
4213  { $as_echo "$as_me:$LINENO: result: no" >&5
4214$as_echo "no" >&6; }
4215fi
4216test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4217$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4218   { (exit 1); exit 1; }; }
4219{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4220$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4221if test "${lt_cv_prog_gnu_ld+set}" = set; then
4222  $as_echo_n "(cached) " >&6
4223else
4224  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4225case `$LD -v 2>&1 </dev/null` in
4226*GNU* | *'with BFD'*)
4227  lt_cv_prog_gnu_ld=yes
4228  ;;
4229*)
4230  lt_cv_prog_gnu_ld=no
4231  ;;
4232esac
4233fi
4234{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4235$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4236with_gnu_ld=$lt_cv_prog_gnu_ld
4237
4238
4239{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4240$as_echo_n "checking for $LD option to reload object files... " >&6; }
4241if test "${lt_cv_ld_reload_flag+set}" = set; then
4242  $as_echo_n "(cached) " >&6
4243else
4244  lt_cv_ld_reload_flag='-r'
4245fi
4246{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4247$as_echo "$lt_cv_ld_reload_flag" >&6; }
4248reload_flag=$lt_cv_ld_reload_flag
4249case $reload_flag in
4250"" | " "*) ;;
4251*) reload_flag=" $reload_flag" ;;
4252esac
4253reload_cmds='$LD$reload_flag -o $output$reload_objs'
4254case $host_os in
4255  darwin*)
4256    if test "$GCC" = yes; then
4257      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4258    else
4259      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4260    fi
4261    ;;
4262esac
4263
4264{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4265$as_echo_n "checking for BSD-compatible nm... " >&6; }
4266if test "${lt_cv_path_NM+set}" = set; then
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$NM"; then
4270  # Let the user override the test.
4271  lt_cv_path_NM="$NM"
4272else
4273  lt_nm_to_check="${ac_tool_prefix}nm"
4274  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4275    lt_nm_to_check="$lt_nm_to_check nm"
4276  fi
4277  for lt_tmp_nm in $lt_nm_to_check; do
4278    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4280      IFS="$lt_save_ifs"
4281      test -z "$ac_dir" && ac_dir=.
4282      tmp_nm="$ac_dir/$lt_tmp_nm"
4283      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4284	# Check to see if the nm accepts a BSD-compat flag.
4285	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4286	#   nm: unknown option "B" ignored
4287	# Tru64's nm complains that /dev/null is an invalid object file
4288	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4289	*/dev/null* | *'Invalid file or object type'*)
4290	  lt_cv_path_NM="$tmp_nm -B"
4291	  break
4292	  ;;
4293	*)
4294	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4295	  */dev/null*)
4296	    lt_cv_path_NM="$tmp_nm -p"
4297	    break
4298	    ;;
4299	  *)
4300	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4301	    continue # so that we can try to find one that supports BSD flags
4302	    ;;
4303	  esac
4304	  ;;
4305	esac
4306      fi
4307    done
4308    IFS="$lt_save_ifs"
4309  done
4310  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4311fi
4312fi
4313{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4314$as_echo "$lt_cv_path_NM" >&6; }
4315NM="$lt_cv_path_NM"
4316
4317{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4318$as_echo_n "checking whether ln -s works... " >&6; }
4319LN_S=$as_ln_s
4320if test "$LN_S" = "ln -s"; then
4321  { $as_echo "$as_me:$LINENO: result: yes" >&5
4322$as_echo "yes" >&6; }
4323else
4324  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4325$as_echo "no, using $LN_S" >&6; }
4326fi
4327
4328{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4329$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4330if test "${lt_cv_deplibs_check_method+set}" = set; then
4331  $as_echo_n "(cached) " >&6
4332else
4333  lt_cv_file_magic_cmd='$MAGIC_CMD'
4334lt_cv_file_magic_test_file=
4335lt_cv_deplibs_check_method='unknown'
4336# Need to set the preceding variable on all platforms that support
4337# interlibrary dependencies.
4338# 'none' -- dependencies not supported.
4339# `unknown' -- same as none, but documents that we really don't know.
4340# 'pass_all' -- all dependencies passed with no checks.
4341# 'test_compile' -- check by making test program.
4342# 'file_magic [[regex]]' -- check by looking for files in library path
4343# which responds to the $file_magic_cmd with a given extended regex.
4344# If you have `file' or equivalent on your system and you're not sure
4345# whether `pass_all' will *always* work, you probably want this one.
4346
4347case $host_os in
4348aix[4-9]*)
4349  lt_cv_deplibs_check_method=pass_all
4350  ;;
4351
4352beos*)
4353  lt_cv_deplibs_check_method=pass_all
4354  ;;
4355
4356bsdi[45]*)
4357  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4358  lt_cv_file_magic_cmd='/usr/bin/file -L'
4359  lt_cv_file_magic_test_file=/shlib/libc.so
4360  ;;
4361
4362cygwin*)
4363  # func_win32_libid is a shell function defined in ltmain.sh
4364  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4365  lt_cv_file_magic_cmd='func_win32_libid'
4366  ;;
4367
4368mingw* | pw32*)
4369  # Base MSYS/MinGW do not provide the 'file' command needed by
4370  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4371  # unless we find 'file', for example because we are cross-compiling.
4372  if ( file / ) >/dev/null 2>&1; then
4373    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4374    lt_cv_file_magic_cmd='func_win32_libid'
4375  else
4376    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4377    lt_cv_file_magic_cmd='$OBJDUMP -f'
4378  fi
4379  ;;
4380
4381darwin* | rhapsody*)
4382  lt_cv_deplibs_check_method=pass_all
4383  ;;
4384
4385freebsd* | dragonfly*)
4386  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4387    case $host_cpu in
4388    i*86 )
4389      # Not sure whether the presence of OpenBSD here was a mistake.
4390      # Let's accept both of them until this is cleared up.
4391      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4392      lt_cv_file_magic_cmd=/usr/bin/file
4393      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4394      ;;
4395    esac
4396  else
4397    lt_cv_deplibs_check_method=pass_all
4398  fi
4399  ;;
4400
4401gnu*)
4402  lt_cv_deplibs_check_method=pass_all
4403  ;;
4404
4405hpux10.20* | hpux11*)
4406  lt_cv_file_magic_cmd=/usr/bin/file
4407  case $host_cpu in
4408  ia64*)
4409    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4410    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4411    ;;
4412  hppa*64*)
4413    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]'
4414    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4415    ;;
4416  *)
4417    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4418    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4419    ;;
4420  esac
4421  ;;
4422
4423interix[3-9]*)
4424  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4425  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4426  ;;
4427
4428irix5* | irix6* | nonstopux*)
4429  case $LD in
4430  *-32|*"-32 ") libmagic=32-bit;;
4431  *-n32|*"-n32 ") libmagic=N32;;
4432  *-64|*"-64 ") libmagic=64-bit;;
4433  *) libmagic=never-match;;
4434  esac
4435  lt_cv_deplibs_check_method=pass_all
4436  ;;
4437
4438# This must be Linux ELF.
4439linux* | k*bsd*-gnu)
4440  lt_cv_deplibs_check_method=pass_all
4441  ;;
4442
4443netbsd*)
4444  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4445    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4446  else
4447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4448  fi
4449  ;;
4450
4451newos6*)
4452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4453  lt_cv_file_magic_cmd=/usr/bin/file
4454  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4455  ;;
4456
4457nto-qnx*)
4458  lt_cv_deplibs_check_method=unknown
4459  ;;
4460
4461openbsd*)
4462  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4463    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4464  else
4465    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4466  fi
4467  ;;
4468
4469osf3* | osf4* | osf5*)
4470  lt_cv_deplibs_check_method=pass_all
4471  ;;
4472
4473rdos*)
4474  lt_cv_deplibs_check_method=pass_all
4475  ;;
4476
4477solaris*)
4478  lt_cv_deplibs_check_method=pass_all
4479  ;;
4480
4481sysv4 | sysv4.3*)
4482  case $host_vendor in
4483  motorola)
4484    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]'
4485    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4486    ;;
4487  ncr)
4488    lt_cv_deplibs_check_method=pass_all
4489    ;;
4490  sequent)
4491    lt_cv_file_magic_cmd='/bin/file'
4492    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4493    ;;
4494  sni)
4495    lt_cv_file_magic_cmd='/bin/file'
4496    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4497    lt_cv_file_magic_test_file=/lib/libc.so
4498    ;;
4499  siemens)
4500    lt_cv_deplibs_check_method=pass_all
4501    ;;
4502  pc)
4503    lt_cv_deplibs_check_method=pass_all
4504    ;;
4505  esac
4506  ;;
4507
4508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4509  lt_cv_deplibs_check_method=pass_all
4510  ;;
4511esac
4512
4513fi
4514{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4515$as_echo "$lt_cv_deplibs_check_method" >&6; }
4516file_magic_cmd=$lt_cv_file_magic_cmd
4517deplibs_check_method=$lt_cv_deplibs_check_method
4518test -z "$deplibs_check_method" && deplibs_check_method=unknown
4519
4520
4521
4522
4523# If no C compiler was specified, use CC.
4524LTCC=${LTCC-"$CC"}
4525
4526# If no C compiler flags were specified, use CFLAGS.
4527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4528
4529# Allow CC to be a program name with arguments.
4530compiler=$CC
4531
4532
4533# Check whether --enable-libtool-lock was given.
4534if test "${enable_libtool_lock+set}" = set; then
4535  enableval=$enable_libtool_lock;
4536fi
4537
4538test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4539
4540# Some flags need to be propagated to the compiler or linker for good
4541# libtool support.
4542case $host in
4543ia64-*-hpux*)
4544  # Find out which ABI we are using.
4545  echo 'int i;' > 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    case `/usr/bin/file conftest.$ac_objext` in
4552    *ELF-32*)
4553      HPUX_IA64_MODE="32"
4554      ;;
4555    *ELF-64*)
4556      HPUX_IA64_MODE="64"
4557      ;;
4558    esac
4559  fi
4560  rm -rf conftest*
4561  ;;
4562*-*-irix6*)
4563  # Find out which ABI we are using.
4564  echo '#line 4564 "configure"' > conftest.$ac_ext
4565  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566  (eval $ac_compile) 2>&5
4567  ac_status=$?
4568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; then
4570   if test "$lt_cv_prog_gnu_ld" = yes; then
4571    case `/usr/bin/file conftest.$ac_objext` in
4572    *32-bit*)
4573      LD="${LD-ld} -melf32bsmip"
4574      ;;
4575    *N32*)
4576      LD="${LD-ld} -melf32bmipn32"
4577      ;;
4578    *64-bit*)
4579      LD="${LD-ld} -melf64bmip"
4580      ;;
4581    esac
4582   else
4583    case `/usr/bin/file conftest.$ac_objext` in
4584    *32-bit*)
4585      LD="${LD-ld} -32"
4586      ;;
4587    *N32*)
4588      LD="${LD-ld} -n32"
4589      ;;
4590    *64-bit*)
4591      LD="${LD-ld} -64"
4592      ;;
4593    esac
4594   fi
4595  fi
4596  rm -rf conftest*
4597  ;;
4598
4599x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4600s390*-*linux*|sparc*-*linux*)
4601  # Find out which ABI we are using.
4602  echo 'int i;' > conftest.$ac_ext
4603  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604  (eval $ac_compile) 2>&5
4605  ac_status=$?
4606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); }; then
4608    case `/usr/bin/file conftest.o` in
4609    *32-bit*)
4610      case $host in
4611        x86_64-*kfreebsd*-gnu)
4612          LD="${LD-ld} -m elf_i386_fbsd"
4613          ;;
4614        x86_64-*linux*)
4615          LD="${LD-ld} -m elf_i386"
4616          ;;
4617        ppc64-*linux*|powerpc64-*linux*)
4618          LD="${LD-ld} -m elf32ppclinux"
4619          ;;
4620        s390x-*linux*)
4621          LD="${LD-ld} -m elf_s390"
4622          ;;
4623        sparc64-*linux*)
4624          LD="${LD-ld} -m elf32_sparc"
4625          ;;
4626      esac
4627      ;;
4628    *64-bit*)
4629      libsuff=64
4630      case $host in
4631        x86_64-*kfreebsd*-gnu)
4632          LD="${LD-ld} -m elf_x86_64_fbsd"
4633          ;;
4634        x86_64-*linux*)
4635          LD="${LD-ld} -m elf_x86_64"
4636          ;;
4637        ppc*-*linux*|powerpc*-*linux*)
4638          LD="${LD-ld} -m elf64ppc"
4639          ;;
4640        s390*-*linux*)
4641          LD="${LD-ld} -m elf64_s390"
4642          ;;
4643        sparc*-*linux*)
4644          LD="${LD-ld} -m elf64_sparc"
4645          ;;
4646      esac
4647      ;;
4648    esac
4649  fi
4650  rm -rf conftest*
4651  ;;
4652
4653*-*-sco3.2v5*)
4654  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4655  SAVE_CFLAGS="$CFLAGS"
4656  CFLAGS="$CFLAGS -belf"
4657  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4658$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4659if test "${lt_cv_cc_needs_belf+set}" = set; then
4660  $as_echo_n "(cached) " >&6
4661else
4662  ac_ext=c
4663ac_cpp='$CPP $CPPFLAGS'
4664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667
4668     cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h.  */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h.  */
4674
4675int
4676main ()
4677{
4678
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (ac_try="$ac_link"
4685case "(($ac_try" in
4686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687  *) ac_try_echo=$ac_try;;
4688esac
4689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690$as_echo "$ac_try_echo") >&5
4691  (eval "$ac_link") 2>conftest.er1
4692  ac_status=$?
4693  grep -v '^ *+' conftest.er1 >conftest.err
4694  rm -f conftest.er1
4695  cat conftest.err >&5
4696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); } && {
4698	 test -z "$ac_c_werror_flag" ||
4699	 test ! -s conftest.err
4700       } && test -s conftest$ac_exeext && {
4701	 test "$cross_compiling" = yes ||
4702	 $as_test_x conftest$ac_exeext
4703       }; then
4704  lt_cv_cc_needs_belf=yes
4705else
4706  $as_echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709	lt_cv_cc_needs_belf=no
4710fi
4711
4712rm -rf conftest.dSYM
4713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4714      conftest$ac_exeext conftest.$ac_ext
4715     ac_ext=c
4716ac_cpp='$CPP $CPPFLAGS'
4717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721fi
4722{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4723$as_echo "$lt_cv_cc_needs_belf" >&6; }
4724  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4725    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4726    CFLAGS="$SAVE_CFLAGS"
4727  fi
4728  ;;
4729sparc*-*solaris*)
4730  # Find out which ABI we are using.
4731  echo 'int i;' > conftest.$ac_ext
4732  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733  (eval $ac_compile) 2>&5
4734  ac_status=$?
4735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); }; then
4737    case `/usr/bin/file conftest.o` in
4738    *64-bit*)
4739      case $lt_cv_prog_gnu_ld in
4740      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4741      *)
4742        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4743	  LD="${LD-ld} -64"
4744	fi
4745	;;
4746      esac
4747      ;;
4748    esac
4749  fi
4750  rm -rf conftest*
4751  ;;
4752
4753
4754esac
4755
4756need_locks="$enable_libtool_lock"
4757
4758
4759ac_ext=c
4760ac_cpp='$CPP $CPPFLAGS'
4761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4765$as_echo_n "checking how to run the C preprocessor... " >&6; }
4766# On Suns, sometimes $CPP names a directory.
4767if test -n "$CPP" && test -d "$CPP"; then
4768  CPP=
4769fi
4770if test -z "$CPP"; then
4771  if test "${ac_cv_prog_CPP+set}" = set; then
4772  $as_echo_n "(cached) " >&6
4773else
4774      # Double quotes because CPP needs to be expanded
4775    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4776    do
4777      ac_preproc_ok=false
4778for ac_c_preproc_warn_flag in '' yes
4779do
4780  # Use a header file that comes with gcc, so configuring glibc
4781  # with a fresh cross-compiler works.
4782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783  # <limits.h> exists even on freestanding compilers.
4784  # On the NeXT, cc -E runs the code through the compiler's parser,
4785  # not just through cpp. "Syntax error" is here to catch this case.
4786  cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792#ifdef __STDC__
4793# include <limits.h>
4794#else
4795# include <assert.h>
4796#endif
4797		     Syntax error
4798_ACEOF
4799if { (ac_try="$ac_cpp conftest.$ac_ext"
4800case "(($ac_try" in
4801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802  *) ac_try_echo=$ac_try;;
4803esac
4804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4805$as_echo "$ac_try_echo") >&5
4806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4807  ac_status=$?
4808  grep -v '^ *+' conftest.er1 >conftest.err
4809  rm -f conftest.er1
4810  cat conftest.err >&5
4811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); } >/dev/null && {
4813	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4814	 test ! -s conftest.err
4815       }; then
4816  :
4817else
4818  $as_echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821  # Broken: fails on valid input.
4822continue
4823fi
4824
4825rm -f conftest.err conftest.$ac_ext
4826
4827  # OK, works on sane cases.  Now check whether nonexistent headers
4828  # can be detected and how.
4829  cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835#include <ac_nonexistent.h>
4836_ACEOF
4837if { (ac_try="$ac_cpp conftest.$ac_ext"
4838case "(($ac_try" in
4839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840  *) ac_try_echo=$ac_try;;
4841esac
4842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843$as_echo "$ac_try_echo") >&5
4844  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845  ac_status=$?
4846  grep -v '^ *+' conftest.er1 >conftest.err
4847  rm -f conftest.er1
4848  cat conftest.err >&5
4849  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); } >/dev/null && {
4851	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4852	 test ! -s conftest.err
4853       }; then
4854  # Broken: success on invalid input.
4855continue
4856else
4857  $as_echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860  # Passes both tests.
4861ac_preproc_ok=:
4862break
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867done
4868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4869rm -f conftest.err conftest.$ac_ext
4870if $ac_preproc_ok; then
4871  break
4872fi
4873
4874    done
4875    ac_cv_prog_CPP=$CPP
4876
4877fi
4878  CPP=$ac_cv_prog_CPP
4879else
4880  ac_cv_prog_CPP=$CPP
4881fi
4882{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4883$as_echo "$CPP" >&6; }
4884ac_preproc_ok=false
4885for ac_c_preproc_warn_flag in '' yes
4886do
4887  # Use a header file that comes with gcc, so configuring glibc
4888  # with a fresh cross-compiler works.
4889  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4890  # <limits.h> exists even on freestanding compilers.
4891  # On the NeXT, cc -E runs the code through the compiler's parser,
4892  # not just through cpp. "Syntax error" is here to catch this case.
4893  cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h.  */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h.  */
4899#ifdef __STDC__
4900# include <limits.h>
4901#else
4902# include <assert.h>
4903#endif
4904		     Syntax error
4905_ACEOF
4906if { (ac_try="$ac_cpp conftest.$ac_ext"
4907case "(($ac_try" in
4908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909  *) ac_try_echo=$ac_try;;
4910esac
4911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912$as_echo "$ac_try_echo") >&5
4913  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4914  ac_status=$?
4915  grep -v '^ *+' conftest.er1 >conftest.err
4916  rm -f conftest.er1
4917  cat conftest.err >&5
4918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); } >/dev/null && {
4920	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921	 test ! -s conftest.err
4922       }; then
4923  :
4924else
4925  $as_echo "$as_me: failed program was:" >&5
4926sed 's/^/| /' conftest.$ac_ext >&5
4927
4928  # Broken: fails on valid input.
4929continue
4930fi
4931
4932rm -f conftest.err conftest.$ac_ext
4933
4934  # OK, works on sane cases.  Now check whether nonexistent headers
4935  # can be detected and how.
4936  cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h.  */
4942#include <ac_nonexistent.h>
4943_ACEOF
4944if { (ac_try="$ac_cpp conftest.$ac_ext"
4945case "(($ac_try" in
4946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947  *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950$as_echo "$ac_try_echo") >&5
4951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } >/dev/null && {
4958	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959	 test ! -s conftest.err
4960       }; then
4961  # Broken: success on invalid input.
4962continue
4963else
4964  $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967  # Passes both tests.
4968ac_preproc_ok=:
4969break
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974done
4975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976rm -f conftest.err conftest.$ac_ext
4977if $ac_preproc_ok; then
4978  :
4979else
4980  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4982{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983See \`config.log' for more details." >&5
4984$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details." >&2;}
4986   { (exit 1); exit 1; }; }; }
4987fi
4988
4989ac_ext=c
4990ac_cpp='$CPP $CPPFLAGS'
4991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994
4995
4996{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997$as_echo_n "checking for ANSI C header files... " >&6; }
4998if test "${ac_cv_header_stdc+set}" = set; then
4999  $as_echo_n "(cached) " >&6
5000else
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#include <stdlib.h>
5008#include <stdarg.h>
5009#include <string.h>
5010#include <float.h>
5011
5012int
5013main ()
5014{
5015
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext
5021if { (ac_try="$ac_compile"
5022case "(($ac_try" in
5023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024  *) ac_try_echo=$ac_try;;
5025esac
5026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027$as_echo "$ac_try_echo") >&5
5028  (eval "$ac_compile") 2>conftest.er1
5029  ac_status=$?
5030  grep -v '^ *+' conftest.er1 >conftest.err
5031  rm -f conftest.er1
5032  cat conftest.err >&5
5033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); } && {
5035	 test -z "$ac_c_werror_flag" ||
5036	 test ! -s conftest.err
5037       } && test -s conftest.$ac_objext; then
5038  ac_cv_header_stdc=yes
5039else
5040  $as_echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043	ac_cv_header_stdc=no
5044fi
5045
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047
5048if test $ac_cv_header_stdc = yes; then
5049  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5050  cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h.  */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h.  */
5056#include <string.h>
5057
5058_ACEOF
5059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060  $EGREP "memchr" >/dev/null 2>&1; then
5061  :
5062else
5063  ac_cv_header_stdc=no
5064fi
5065rm -f conftest*
5066
5067fi
5068
5069if test $ac_cv_header_stdc = yes; then
5070  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5071  cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h.  */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h.  */
5077#include <stdlib.h>
5078
5079_ACEOF
5080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081  $EGREP "free" >/dev/null 2>&1; then
5082  :
5083else
5084  ac_cv_header_stdc=no
5085fi
5086rm -f conftest*
5087
5088fi
5089
5090if test $ac_cv_header_stdc = yes; then
5091  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5092  if test "$cross_compiling" = yes; then
5093  :
5094else
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101#include <ctype.h>
5102#include <stdlib.h>
5103#if ((' ' & 0x0FF) == 0x020)
5104# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106#else
5107# define ISLOWER(c) \
5108		   (('a' <= (c) && (c) <= 'i') \
5109		     || ('j' <= (c) && (c) <= 'r') \
5110		     || ('s' <= (c) && (c) <= 'z'))
5111# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112#endif
5113
5114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5115int
5116main ()
5117{
5118  int i;
5119  for (i = 0; i < 256; i++)
5120    if (XOR (islower (i), ISLOWER (i))
5121	|| toupper (i) != TOUPPER (i))
5122      return 2;
5123  return 0;
5124}
5125_ACEOF
5126rm -f conftest$ac_exeext
5127if { (ac_try="$ac_link"
5128case "(($ac_try" in
5129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130  *) ac_try_echo=$ac_try;;
5131esac
5132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133$as_echo "$ac_try_echo") >&5
5134  (eval "$ac_link") 2>&5
5135  ac_status=$?
5136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5138  { (case "(($ac_try" in
5139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140  *) ac_try_echo=$ac_try;;
5141esac
5142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143$as_echo "$ac_try_echo") >&5
5144  (eval "$ac_try") 2>&5
5145  ac_status=$?
5146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147  (exit $ac_status); }; }; then
5148  :
5149else
5150  $as_echo "$as_me: program exited with status $ac_status" >&5
5151$as_echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154( exit $ac_status )
5155ac_cv_header_stdc=no
5156fi
5157rm -rf conftest.dSYM
5158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5159fi
5160
5161
5162fi
5163fi
5164{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5165$as_echo "$ac_cv_header_stdc" >&6; }
5166if test $ac_cv_header_stdc = yes; then
5167
5168cat >>confdefs.h <<\_ACEOF
5169#define STDC_HEADERS 1
5170_ACEOF
5171
5172fi
5173
5174# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5185		  inttypes.h stdint.h unistd.h
5186do
5187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5189$as_echo_n "checking for $ac_header... " >&6; }
5190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5191  $as_echo_n "(cached) " >&6
5192else
5193  cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h.  */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h.  */
5199$ac_includes_default
5200
5201#include <$ac_header>
5202_ACEOF
5203rm -f conftest.$ac_objext
5204if { (ac_try="$ac_compile"
5205case "(($ac_try" in
5206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207  *) ac_try_echo=$ac_try;;
5208esac
5209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5210$as_echo "$ac_try_echo") >&5
5211  (eval "$ac_compile") 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } && {
5218	 test -z "$ac_c_werror_flag" ||
5219	 test ! -s conftest.err
5220       } && test -s conftest.$ac_objext; then
5221  eval "$as_ac_Header=yes"
5222else
5223  $as_echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226	eval "$as_ac_Header=no"
5227fi
5228
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230fi
5231ac_res=`eval 'as_val=${'$as_ac_Header'}
5232		 $as_echo "$as_val"'`
5233	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5234$as_echo "$ac_res" >&6; }
5235as_val=`eval 'as_val=${'$as_ac_Header'}
5236		 $as_echo "$as_val"'`
5237   if test "x$as_val" = x""yes; then
5238  cat >>confdefs.h <<_ACEOF
5239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240_ACEOF
5241
5242fi
5243
5244done
5245
5246
5247
5248for ac_header in dlfcn.h
5249do
5250as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5252  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5253$as_echo_n "checking for $ac_header... " >&6; }
5254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5255  $as_echo_n "(cached) " >&6
5256fi
5257ac_res=`eval 'as_val=${'$as_ac_Header'}
5258		 $as_echo "$as_val"'`
5259	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5260$as_echo "$ac_res" >&6; }
5261else
5262  # Is the header compilable?
5263{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5264$as_echo_n "checking $ac_header usability... " >&6; }
5265cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h.  */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h.  */
5271$ac_includes_default
5272#include <$ac_header>
5273_ACEOF
5274rm -f conftest.$ac_objext
5275if { (ac_try="$ac_compile"
5276case "(($ac_try" in
5277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278  *) ac_try_echo=$ac_try;;
5279esac
5280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5281$as_echo "$ac_try_echo") >&5
5282  (eval "$ac_compile") 2>conftest.er1
5283  ac_status=$?
5284  grep -v '^ *+' conftest.er1 >conftest.err
5285  rm -f conftest.er1
5286  cat conftest.err >&5
5287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } && {
5289	 test -z "$ac_c_werror_flag" ||
5290	 test ! -s conftest.err
5291       } && test -s conftest.$ac_objext; then
5292  ac_header_compiler=yes
5293else
5294  $as_echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297	ac_header_compiler=no
5298fi
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5302$as_echo "$ac_header_compiler" >&6; }
5303
5304# Is the header present?
5305{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5306$as_echo_n "checking $ac_header presence... " >&6; }
5307cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h.  */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h.  */
5313#include <$ac_header>
5314_ACEOF
5315if { (ac_try="$ac_cpp conftest.$ac_ext"
5316case "(($ac_try" in
5317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318  *) ac_try_echo=$ac_try;;
5319esac
5320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5321$as_echo "$ac_try_echo") >&5
5322  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5323  ac_status=$?
5324  grep -v '^ *+' conftest.er1 >conftest.err
5325  rm -f conftest.er1
5326  cat conftest.err >&5
5327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); } >/dev/null && {
5329	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5330	 test ! -s conftest.err
5331       }; then
5332  ac_header_preproc=yes
5333else
5334  $as_echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337  ac_header_preproc=no
5338fi
5339
5340rm -f conftest.err conftest.$ac_ext
5341{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342$as_echo "$ac_header_preproc" >&6; }
5343
5344# So?  What about this header?
5345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5346  yes:no: )
5347    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351    ac_header_preproc=yes
5352    ;;
5353  no:yes:* )
5354    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5357$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5358    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5361$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5362    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5366    ( cat <<\_ASBOX
5367## ------------------------------------------------------ ##
5368## Report this to http://www.openchrome.org/trac/report/1 ##
5369## ------------------------------------------------------ ##
5370_ASBOX
5371     ) | sed "s/^/$as_me: WARNING:     /" >&2
5372    ;;
5373esac
5374{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5375$as_echo_n "checking for $ac_header... " >&6; }
5376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377  $as_echo_n "(cached) " >&6
5378else
5379  eval "$as_ac_Header=\$ac_header_preproc"
5380fi
5381ac_res=`eval 'as_val=${'$as_ac_Header'}
5382		 $as_echo "$as_val"'`
5383	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5384$as_echo "$ac_res" >&6; }
5385
5386fi
5387as_val=`eval 'as_val=${'$as_ac_Header'}
5388		 $as_echo "$as_val"'`
5389   if test "x$as_val" = x""yes; then
5390  cat >>confdefs.h <<_ACEOF
5391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5392_ACEOF
5393
5394fi
5395
5396done
5397
5398ac_ext=cpp
5399ac_cpp='$CXXCPP $CPPFLAGS'
5400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5403if test -z "$CXX"; then
5404  if test -n "$CCC"; then
5405    CXX=$CCC
5406  else
5407    if test -n "$ac_tool_prefix"; then
5408  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5409  do
5410    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5411set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if test "${ac_cv_prog_CXX+set}" = set; then
5415  $as_echo_n "(cached) " >&6
5416else
5417  if test -n "$CXX"; then
5418  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423  IFS=$as_save_IFS
5424  test -z "$as_dir" && as_dir=.
5425  for ac_exec_ext in '' $ac_executable_extensions; do
5426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5428    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429    break 2
5430  fi
5431done
5432done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437CXX=$ac_cv_prog_CXX
5438if test -n "$CXX"; then
5439  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5440$as_echo "$CXX" >&6; }
5441else
5442  { $as_echo "$as_me:$LINENO: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446
5447    test -n "$CXX" && break
5448  done
5449fi
5450if test -z "$CXX"; then
5451  ac_ct_CXX=$CXX
5452  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5453do
5454  # Extract the first word of "$ac_prog", so it can be a program name with args.
5455set dummy $ac_prog; ac_word=$2
5456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
5458if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5459  $as_echo_n "(cached) " >&6
5460else
5461  if test -n "$ac_ct_CXX"; then
5462  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467  IFS=$as_save_IFS
5468  test -z "$as_dir" && as_dir=.
5469  for ac_exec_ext in '' $ac_executable_extensions; do
5470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471    ac_cv_prog_ac_ct_CXX="$ac_prog"
5472    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473    break 2
5474  fi
5475done
5476done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5482if test -n "$ac_ct_CXX"; then
5483  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5484$as_echo "$ac_ct_CXX" >&6; }
5485else
5486  { $as_echo "$as_me:$LINENO: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490
5491  test -n "$ac_ct_CXX" && break
5492done
5493
5494  if test "x$ac_ct_CXX" = x; then
5495    CXX="g++"
5496  else
5497    case $cross_compiling:$ac_tool_warned in
5498yes:)
5499{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5501ac_tool_warned=yes ;;
5502esac
5503    CXX=$ac_ct_CXX
5504  fi
5505fi
5506
5507  fi
5508fi
5509# Provide some information about the compiler.
5510$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5511set X $ac_compile
5512ac_compiler=$2
5513{ (ac_try="$ac_compiler --version >&5"
5514case "(($ac_try" in
5515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516  *) ac_try_echo=$ac_try;;
5517esac
5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519$as_echo "$ac_try_echo") >&5
5520  (eval "$ac_compiler --version >&5") 2>&5
5521  ac_status=$?
5522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }
5524{ (ac_try="$ac_compiler -v >&5"
5525case "(($ac_try" in
5526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527  *) ac_try_echo=$ac_try;;
5528esac
5529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5530$as_echo "$ac_try_echo") >&5
5531  (eval "$ac_compiler -v >&5") 2>&5
5532  ac_status=$?
5533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); }
5535{ (ac_try="$ac_compiler -V >&5"
5536case "(($ac_try" in
5537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538  *) ac_try_echo=$ac_try;;
5539esac
5540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5541$as_echo "$ac_try_echo") >&5
5542  (eval "$ac_compiler -V >&5") 2>&5
5543  ac_status=$?
5544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); }
5546
5547{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5548$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5549if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558
5559int
5560main ()
5561{
5562#ifndef __GNUC__
5563       choke me
5564#endif
5565
5566  ;
5567  return 0;
5568}
5569_ACEOF
5570rm -f conftest.$ac_objext
5571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574  *) ac_try_echo=$ac_try;;
5575esac
5576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5577$as_echo "$ac_try_echo") >&5
5578  (eval "$ac_compile") 2>conftest.er1
5579  ac_status=$?
5580  grep -v '^ *+' conftest.er1 >conftest.err
5581  rm -f conftest.er1
5582  cat conftest.err >&5
5583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); } && {
5585	 test -z "$ac_cxx_werror_flag" ||
5586	 test ! -s conftest.err
5587       } && test -s conftest.$ac_objext; then
5588  ac_compiler_gnu=yes
5589else
5590  $as_echo "$as_me: failed program was:" >&5
5591sed 's/^/| /' conftest.$ac_ext >&5
5592
5593	ac_compiler_gnu=no
5594fi
5595
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5598
5599fi
5600{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5601$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5602if test $ac_compiler_gnu = yes; then
5603  GXX=yes
5604else
5605  GXX=
5606fi
5607ac_test_CXXFLAGS=${CXXFLAGS+set}
5608ac_save_CXXFLAGS=$CXXFLAGS
5609{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5610$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5611if test "${ac_cv_prog_cxx_g+set}" = set; then
5612  $as_echo_n "(cached) " >&6
5613else
5614  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5615   ac_cxx_werror_flag=yes
5616   ac_cv_prog_cxx_g=no
5617   CXXFLAGS="-g"
5618   cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h.  */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h.  */
5624
5625int
5626main ()
5627{
5628
5629  ;
5630  return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (ac_try="$ac_compile"
5635case "(($ac_try" in
5636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637  *) ac_try_echo=$ac_try;;
5638esac
5639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5640$as_echo "$ac_try_echo") >&5
5641  (eval "$ac_compile") 2>conftest.er1
5642  ac_status=$?
5643  grep -v '^ *+' conftest.er1 >conftest.err
5644  rm -f conftest.er1
5645  cat conftest.err >&5
5646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } && {
5648	 test -z "$ac_cxx_werror_flag" ||
5649	 test ! -s conftest.err
5650       } && test -s conftest.$ac_objext; then
5651  ac_cv_prog_cxx_g=yes
5652else
5653  $as_echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656	CXXFLAGS=""
5657      cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663
5664int
5665main ()
5666{
5667
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext
5673if { (ac_try="$ac_compile"
5674case "(($ac_try" in
5675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676  *) ac_try_echo=$ac_try;;
5677esac
5678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5679$as_echo "$ac_try_echo") >&5
5680  (eval "$ac_compile") 2>conftest.er1
5681  ac_status=$?
5682  grep -v '^ *+' conftest.er1 >conftest.err
5683  rm -f conftest.er1
5684  cat conftest.err >&5
5685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); } && {
5687	 test -z "$ac_cxx_werror_flag" ||
5688	 test ! -s conftest.err
5689       } && test -s conftest.$ac_objext; then
5690  :
5691else
5692  $as_echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5696	 CXXFLAGS="-g"
5697	 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h.  */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h.  */
5703
5704int
5705main ()
5706{
5707
5708  ;
5709  return 0;
5710}
5711_ACEOF
5712rm -f conftest.$ac_objext
5713if { (ac_try="$ac_compile"
5714case "(($ac_try" in
5715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716  *) ac_try_echo=$ac_try;;
5717esac
5718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5719$as_echo "$ac_try_echo") >&5
5720  (eval "$ac_compile") 2>conftest.er1
5721  ac_status=$?
5722  grep -v '^ *+' conftest.er1 >conftest.err
5723  rm -f conftest.er1
5724  cat conftest.err >&5
5725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); } && {
5727	 test -z "$ac_cxx_werror_flag" ||
5728	 test ! -s conftest.err
5729       } && test -s conftest.$ac_objext; then
5730  ac_cv_prog_cxx_g=yes
5731else
5732  $as_echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735
5736fi
5737
5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739fi
5740
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742fi
5743
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5746fi
5747{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5748$as_echo "$ac_cv_prog_cxx_g" >&6; }
5749if test "$ac_test_CXXFLAGS" = set; then
5750  CXXFLAGS=$ac_save_CXXFLAGS
5751elif test $ac_cv_prog_cxx_g = yes; then
5752  if test "$GXX" = yes; then
5753    CXXFLAGS="-g -O2"
5754  else
5755    CXXFLAGS="-g"
5756  fi
5757else
5758  if test "$GXX" = yes; then
5759    CXXFLAGS="-O2"
5760  else
5761    CXXFLAGS=
5762  fi
5763fi
5764ac_ext=cpp
5765ac_cpp='$CXXCPP $CPPFLAGS'
5766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5769
5770depcc="$CXX"  am_compiler_list=
5771
5772{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5773$as_echo_n "checking dependency style of $depcc... " >&6; }
5774if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5775  $as_echo_n "(cached) " >&6
5776else
5777  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5778  # We make a subdir and do the tests there.  Otherwise we can end up
5779  # making bogus files that we don't know about and never remove.  For
5780  # instance it was reported that on HP-UX the gcc test will end up
5781  # making a dummy file named `D' -- because `-MD' means `put the output
5782  # in D'.
5783  mkdir conftest.dir
5784  # Copy depcomp to subdir because otherwise we won't find it if we're
5785  # using a relative directory.
5786  cp "$am_depcomp" conftest.dir
5787  cd conftest.dir
5788  # We will build objects and dependencies in a subdirectory because
5789  # it helps to detect inapplicable dependency modes.  For instance
5790  # both Tru64's cc and ICC support -MD to output dependencies as a
5791  # side effect of compilation, but ICC will put the dependencies in
5792  # the current directory while Tru64 will put them in the object
5793  # directory.
5794  mkdir sub
5795
5796  am_cv_CXX_dependencies_compiler_type=none
5797  if test "$am_compiler_list" = ""; then
5798     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5799  fi
5800  am__universal=false
5801  case " $depcc " in #(
5802     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5803     esac
5804
5805  for depmode in $am_compiler_list; do
5806    # Setup a source with many dependencies, because some compilers
5807    # like to wrap large dependency lists on column 80 (with \), and
5808    # we should not choose a depcomp mode which is confused by this.
5809    #
5810    # We need to recreate these files for each test, as the compiler may
5811    # overwrite some of them when testing with obscure command lines.
5812    # This happens at least with the AIX C compiler.
5813    : > sub/conftest.c
5814    for i in 1 2 3 4 5 6; do
5815      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5816      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5817      # Solaris 8's {/usr,}/bin/sh.
5818      touch sub/conftst$i.h
5819    done
5820    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5821
5822    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5823    # mode.  It turns out that the SunPro C++ compiler does not properly
5824    # handle `-M -o', and we need to detect this.  Also, some Intel
5825    # versions had trouble with output in subdirs
5826    am__obj=sub/conftest.${OBJEXT-o}
5827    am__minus_obj="-o $am__obj"
5828    case $depmode in
5829    gcc)
5830      # This depmode causes a compiler race in universal mode.
5831      test "$am__universal" = false || continue
5832      ;;
5833    nosideeffect)
5834      # after this tag, mechanisms are not by side-effect, so they'll
5835      # only be used when explicitly requested
5836      if test "x$enable_dependency_tracking" = xyes; then
5837	continue
5838      else
5839	break
5840      fi
5841      ;;
5842    msvisualcpp | msvcmsys)
5843      # This compiler won't grok `-c -o', but also, the minuso test has
5844      # not run yet.  These depmodes are late enough in the game, and
5845      # so weak that their functioning should not be impacted.
5846      am__obj=conftest.${OBJEXT-o}
5847      am__minus_obj=
5848      ;;
5849    none) break ;;
5850    esac
5851    if depmode=$depmode \
5852       source=sub/conftest.c object=$am__obj \
5853       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5854       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5855         >/dev/null 2>conftest.err &&
5856       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5857       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5858       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5859       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5860      # icc doesn't choke on unknown options, it will just issue warnings
5861      # or remarks (even with -Werror).  So we grep stderr for any message
5862      # that says an option was ignored or not supported.
5863      # When given -MP, icc 7.0 and 7.1 complain thusly:
5864      #   icc: Command line warning: ignoring option '-M'; no argument required
5865      # The diagnosis changed in icc 8.0:
5866      #   icc: Command line remark: option '-MP' not supported
5867      if (grep 'ignoring option' conftest.err ||
5868          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5869        am_cv_CXX_dependencies_compiler_type=$depmode
5870        break
5871      fi
5872    fi
5873  done
5874
5875  cd ..
5876  rm -rf conftest.dir
5877else
5878  am_cv_CXX_dependencies_compiler_type=none
5879fi
5880
5881fi
5882{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5883$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5884CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5885
5886 if
5887  test "x$enable_dependency_tracking" != xno \
5888  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5889  am__fastdepCXX_TRUE=
5890  am__fastdepCXX_FALSE='#'
5891else
5892  am__fastdepCXX_TRUE='#'
5893  am__fastdepCXX_FALSE=
5894fi
5895
5896
5897
5898
5899if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5900    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5901    (test "X$CXX" != "Xg++"))) ; then
5902  ac_ext=cpp
5903ac_cpp='$CXXCPP $CPPFLAGS'
5904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5907{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5908$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5909if test -z "$CXXCPP"; then
5910  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5911  $as_echo_n "(cached) " >&6
5912else
5913      # Double quotes because CXXCPP needs to be expanded
5914    for CXXCPP in "$CXX -E" "/lib/cpp"
5915    do
5916      ac_preproc_ok=false
5917for ac_cxx_preproc_warn_flag in '' yes
5918do
5919  # Use a header file that comes with gcc, so configuring glibc
5920  # with a fresh cross-compiler works.
5921  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922  # <limits.h> exists even on freestanding compilers.
5923  # On the NeXT, cc -E runs the code through the compiler's parser,
5924  # not just through cpp. "Syntax error" is here to catch this case.
5925  cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h.  */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h.  */
5931#ifdef __STDC__
5932# include <limits.h>
5933#else
5934# include <assert.h>
5935#endif
5936		     Syntax error
5937_ACEOF
5938if { (ac_try="$ac_cpp conftest.$ac_ext"
5939case "(($ac_try" in
5940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941  *) ac_try_echo=$ac_try;;
5942esac
5943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944$as_echo "$ac_try_echo") >&5
5945  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5946  ac_status=$?
5947  grep -v '^ *+' conftest.er1 >conftest.err
5948  rm -f conftest.er1
5949  cat conftest.err >&5
5950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); } >/dev/null && {
5952	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5953	 test ! -s conftest.err
5954       }; then
5955  :
5956else
5957  $as_echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
5960  # Broken: fails on valid input.
5961continue
5962fi
5963
5964rm -f conftest.err conftest.$ac_ext
5965
5966  # OK, works on sane cases.  Now check whether nonexistent headers
5967  # can be detected and how.
5968  cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974#include <ac_nonexistent.h>
5975_ACEOF
5976if { (ac_try="$ac_cpp conftest.$ac_ext"
5977case "(($ac_try" in
5978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979  *) ac_try_echo=$ac_try;;
5980esac
5981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982$as_echo "$ac_try_echo") >&5
5983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5984  ac_status=$?
5985  grep -v '^ *+' conftest.er1 >conftest.err
5986  rm -f conftest.er1
5987  cat conftest.err >&5
5988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); } >/dev/null && {
5990	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5991	 test ! -s conftest.err
5992       }; then
5993  # Broken: success on invalid input.
5994continue
5995else
5996  $as_echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999  # Passes both tests.
6000ac_preproc_ok=:
6001break
6002fi
6003
6004rm -f conftest.err conftest.$ac_ext
6005
6006done
6007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6008rm -f conftest.err conftest.$ac_ext
6009if $ac_preproc_ok; then
6010  break
6011fi
6012
6013    done
6014    ac_cv_prog_CXXCPP=$CXXCPP
6015
6016fi
6017  CXXCPP=$ac_cv_prog_CXXCPP
6018else
6019  ac_cv_prog_CXXCPP=$CXXCPP
6020fi
6021{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6022$as_echo "$CXXCPP" >&6; }
6023ac_preproc_ok=false
6024for ac_cxx_preproc_warn_flag in '' yes
6025do
6026  # Use a header file that comes with gcc, so configuring glibc
6027  # with a fresh cross-compiler works.
6028  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6029  # <limits.h> exists even on freestanding compilers.
6030  # On the NeXT, cc -E runs the code through the compiler's parser,
6031  # not just through cpp. "Syntax error" is here to catch this case.
6032  cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h.  */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h.  */
6038#ifdef __STDC__
6039# include <limits.h>
6040#else
6041# include <assert.h>
6042#endif
6043		     Syntax error
6044_ACEOF
6045if { (ac_try="$ac_cpp conftest.$ac_ext"
6046case "(($ac_try" in
6047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048  *) ac_try_echo=$ac_try;;
6049esac
6050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6051$as_echo "$ac_try_echo") >&5
6052  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053  ac_status=$?
6054  grep -v '^ *+' conftest.er1 >conftest.err
6055  rm -f conftest.er1
6056  cat conftest.err >&5
6057  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058  (exit $ac_status); } >/dev/null && {
6059	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060	 test ! -s conftest.err
6061       }; then
6062  :
6063else
6064  $as_echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067  # Broken: fails on valid input.
6068continue
6069fi
6070
6071rm -f conftest.err conftest.$ac_ext
6072
6073  # OK, works on sane cases.  Now check whether nonexistent headers
6074  # can be detected and how.
6075  cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h.  */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h.  */
6081#include <ac_nonexistent.h>
6082_ACEOF
6083if { (ac_try="$ac_cpp conftest.$ac_ext"
6084case "(($ac_try" in
6085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086  *) ac_try_echo=$ac_try;;
6087esac
6088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6089$as_echo "$ac_try_echo") >&5
6090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091  ac_status=$?
6092  grep -v '^ *+' conftest.er1 >conftest.err
6093  rm -f conftest.er1
6094  cat conftest.err >&5
6095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); } >/dev/null && {
6097	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098	 test ! -s conftest.err
6099       }; then
6100  # Broken: success on invalid input.
6101continue
6102else
6103  $as_echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106  # Passes both tests.
6107ac_preproc_ok=:
6108break
6109fi
6110
6111rm -f conftest.err conftest.$ac_ext
6112
6113done
6114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115rm -f conftest.err conftest.$ac_ext
6116if $ac_preproc_ok; then
6117  :
6118else
6119  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6121{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122See \`config.log' for more details." >&5
6123$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6124See \`config.log' for more details." >&2;}
6125   { (exit 1); exit 1; }; }; }
6126fi
6127
6128ac_ext=cpp
6129ac_cpp='$CXXCPP $CPPFLAGS'
6130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6133
6134fi
6135
6136
6137ac_ext=f
6138ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6139ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6141if test -n "$ac_tool_prefix"; then
6142  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
6143  do
6144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6147$as_echo_n "checking for $ac_word... " >&6; }
6148if test "${ac_cv_prog_F77+set}" = set; then
6149  $as_echo_n "(cached) " >&6
6150else
6151  if test -n "$F77"; then
6152  ac_cv_prog_F77="$F77" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157  IFS=$as_save_IFS
6158  test -z "$as_dir" && as_dir=.
6159  for ac_exec_ext in '' $ac_executable_extensions; do
6160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6162    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163    break 2
6164  fi
6165done
6166done
6167IFS=$as_save_IFS
6168
6169fi
6170fi
6171F77=$ac_cv_prog_F77
6172if test -n "$F77"; then
6173  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6174$as_echo "$F77" >&6; }
6175else
6176  { $as_echo "$as_me:$LINENO: result: no" >&5
6177$as_echo "no" >&6; }
6178fi
6179
6180
6181    test -n "$F77" && break
6182  done
6183fi
6184if test -z "$F77"; then
6185  ac_ct_F77=$F77
6186  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
6187do
6188  # Extract the first word of "$ac_prog", so it can be a program name with args.
6189set dummy $ac_prog; ac_word=$2
6190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$ac_ct_F77"; then
6196  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203  for ac_exec_ext in '' $ac_executable_extensions; do
6204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205    ac_cv_prog_ac_ct_F77="$ac_prog"
6206    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215ac_ct_F77=$ac_cv_prog_ac_ct_F77
6216if test -n "$ac_ct_F77"; then
6217  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6218$as_echo "$ac_ct_F77" >&6; }
6219else
6220  { $as_echo "$as_me:$LINENO: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225  test -n "$ac_ct_F77" && break
6226done
6227
6228  if test "x$ac_ct_F77" = x; then
6229    F77=""
6230  else
6231    case $cross_compiling:$ac_tool_warned in
6232yes:)
6233{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235ac_tool_warned=yes ;;
6236esac
6237    F77=$ac_ct_F77
6238  fi
6239fi
6240
6241
6242# Provide some information about the compiler.
6243$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6244set X $ac_compile
6245ac_compiler=$2
6246{ (ac_try="$ac_compiler --version >&5"
6247case "(($ac_try" in
6248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249  *) ac_try_echo=$ac_try;;
6250esac
6251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252$as_echo "$ac_try_echo") >&5
6253  (eval "$ac_compiler --version >&5") 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }
6257{ (ac_try="$ac_compiler -v >&5"
6258case "(($ac_try" in
6259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260  *) ac_try_echo=$ac_try;;
6261esac
6262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263$as_echo "$ac_try_echo") >&5
6264  (eval "$ac_compiler -v >&5") 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); }
6268{ (ac_try="$ac_compiler -V >&5"
6269case "(($ac_try" in
6270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271  *) ac_try_echo=$ac_try;;
6272esac
6273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274$as_echo "$ac_try_echo") >&5
6275  (eval "$ac_compiler -V >&5") 2>&5
6276  ac_status=$?
6277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); }
6279rm -f a.out
6280
6281# If we don't use `.F' as extension, the preprocessor is not run on the
6282# input file.  (Note that this only needs to work for GNU compilers.)
6283ac_save_ext=$ac_ext
6284ac_ext=F
6285{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6286$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6287if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6288  $as_echo_n "(cached) " >&6
6289else
6290  cat >conftest.$ac_ext <<_ACEOF
6291      program main
6292#ifndef __GNUC__
6293       choke me
6294#endif
6295
6296      end
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302  *) ac_try_echo=$ac_try;;
6303esac
6304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305$as_echo "$ac_try_echo") >&5
6306  (eval "$ac_compile") 2>conftest.er1
6307  ac_status=$?
6308  grep -v '^ *+' conftest.er1 >conftest.err
6309  rm -f conftest.er1
6310  cat conftest.err >&5
6311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } && {
6313	 test -z "$ac_f77_werror_flag" ||
6314	 test ! -s conftest.err
6315       } && test -s conftest.$ac_objext; then
6316  ac_compiler_gnu=yes
6317else
6318  $as_echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321	ac_compiler_gnu=no
6322fi
6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6326
6327fi
6328{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6329$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6330ac_ext=$ac_save_ext
6331ac_test_FFLAGS=${FFLAGS+set}
6332ac_save_FFLAGS=$FFLAGS
6333FFLAGS=
6334{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6335$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6336if test "${ac_cv_prog_f77_g+set}" = set; then
6337  $as_echo_n "(cached) " >&6
6338else
6339  FFLAGS=-g
6340cat >conftest.$ac_ext <<_ACEOF
6341      program main
6342
6343      end
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (ac_try="$ac_compile"
6347case "(($ac_try" in
6348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349  *) ac_try_echo=$ac_try;;
6350esac
6351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352$as_echo "$ac_try_echo") >&5
6353  (eval "$ac_compile") 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } && {
6360	 test -z "$ac_f77_werror_flag" ||
6361	 test ! -s conftest.err
6362       } && test -s conftest.$ac_objext; then
6363  ac_cv_prog_f77_g=yes
6364else
6365  $as_echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368	ac_cv_prog_f77_g=no
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372
6373fi
6374{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6375$as_echo "$ac_cv_prog_f77_g" >&6; }
6376if test "$ac_test_FFLAGS" = set; then
6377  FFLAGS=$ac_save_FFLAGS
6378elif test $ac_cv_prog_f77_g = yes; then
6379  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6380    FFLAGS="-g -O2"
6381  else
6382    FFLAGS="-g"
6383  fi
6384else
6385  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6386    FFLAGS="-O2"
6387  else
6388    FFLAGS=
6389  fi
6390fi
6391
6392if test $ac_compiler_gnu = yes; then
6393  G77=yes
6394else
6395  G77=
6396fi
6397ac_ext=c
6398ac_cpp='$CPP $CPPFLAGS'
6399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402
6403
6404
6405# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6406# find the maximum length of command line arguments
6407{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6408$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6409if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6410  $as_echo_n "(cached) " >&6
6411else
6412    i=0
6413  teststring="ABCD"
6414
6415  case $build_os in
6416  msdosdjgpp*)
6417    # On DJGPP, this test can blow up pretty badly due to problems in libc
6418    # (any single argument exceeding 2000 bytes causes a buffer overrun
6419    # during glob expansion).  Even if it were fixed, the result of this
6420    # check would be larger than it should be.
6421    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6422    ;;
6423
6424  gnu*)
6425    # Under GNU Hurd, this test is not required because there is
6426    # no limit to the length of command line arguments.
6427    # Libtool will interpret -1 as no limit whatsoever
6428    lt_cv_sys_max_cmd_len=-1;
6429    ;;
6430
6431  cygwin* | mingw*)
6432    # On Win9x/ME, this test blows up -- it succeeds, but takes
6433    # about 5 minutes as the teststring grows exponentially.
6434    # Worse, since 9x/ME are not pre-emptively multitasking,
6435    # you end up with a "frozen" computer, even though with patience
6436    # the test eventually succeeds (with a max line length of 256k).
6437    # Instead, let's just punt: use the minimum linelength reported by
6438    # all of the supported platforms: 8192 (on NT/2K/XP).
6439    lt_cv_sys_max_cmd_len=8192;
6440    ;;
6441
6442  amigaos*)
6443    # On AmigaOS with pdksh, this test takes hours, literally.
6444    # So we just punt and use a minimum line length of 8192.
6445    lt_cv_sys_max_cmd_len=8192;
6446    ;;
6447
6448  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6449    # This has been around since 386BSD, at least.  Likely further.
6450    if test -x /sbin/sysctl; then
6451      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6452    elif test -x /usr/sbin/sysctl; then
6453      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6454    else
6455      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6456    fi
6457    # And add a safety zone
6458    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6459    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6460    ;;
6461
6462  interix*)
6463    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6464    lt_cv_sys_max_cmd_len=196608
6465    ;;
6466
6467  osf*)
6468    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6469    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6470    # nice to cause kernel panics so lets avoid the loop below.
6471    # First set a reasonable default.
6472    lt_cv_sys_max_cmd_len=16384
6473    #
6474    if test -x /sbin/sysconfig; then
6475      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6476        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6477      esac
6478    fi
6479    ;;
6480  sco3.2v5*)
6481    lt_cv_sys_max_cmd_len=102400
6482    ;;
6483  sysv5* | sco5v6* | sysv4.2uw2*)
6484    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6485    if test -n "$kargmax"; then
6486      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6487    else
6488      lt_cv_sys_max_cmd_len=32768
6489    fi
6490    ;;
6491  *)
6492    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6493    if test -n "$lt_cv_sys_max_cmd_len"; then
6494      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6495      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6496    else
6497      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6498      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6499	       = "XX$teststring") >/dev/null 2>&1 &&
6500	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6501	      lt_cv_sys_max_cmd_len=$new_result &&
6502	      test $i != 17 # 1/2 MB should be enough
6503      do
6504        i=`expr $i + 1`
6505        teststring=$teststring$teststring
6506      done
6507      teststring=
6508      # Add a significant safety factor because C++ compilers can tack on massive
6509      # amounts of additional arguments before passing them to the linker.
6510      # It appears as though 1/2 is a usable value.
6511      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6512    fi
6513    ;;
6514  esac
6515
6516fi
6517
6518if test -n $lt_cv_sys_max_cmd_len ; then
6519  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6520$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6521else
6522  { $as_echo "$as_me:$LINENO: result: none" >&5
6523$as_echo "none" >&6; }
6524fi
6525
6526
6527
6528
6529
6530# Check for command to grab the raw symbol name followed by C symbol from nm.
6531{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6534  $as_echo_n "(cached) " >&6
6535else
6536
6537# These are sane defaults that work on at least a few old systems.
6538# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6539
6540# Character class describing NM global symbol codes.
6541symcode='[BCDEGRST]'
6542
6543# Regexp to match symbols that can be accessed directly from C.
6544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6545
6546# Transform an extracted symbol line into a proper C declaration
6547lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6548
6549# Transform an extracted symbol line into symbol name and symbol address
6550lt_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'"
6551
6552# Define system-specific variables.
6553case $host_os in
6554aix*)
6555  symcode='[BCDT]'
6556  ;;
6557cygwin* | mingw* | pw32*)
6558  symcode='[ABCDGISTW]'
6559  ;;
6560hpux*) # Its linker distinguishes data from code symbols
6561  if test "$host_cpu" = ia64; then
6562    symcode='[ABCDEGRST]'
6563  fi
6564  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6565  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'"
6566  ;;
6567linux* | k*bsd*-gnu)
6568  if test "$host_cpu" = ia64; then
6569    symcode='[ABCDGIRSTW]'
6570    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6571    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'"
6572  fi
6573  ;;
6574irix* | nonstopux*)
6575  symcode='[BCDEGRST]'
6576  ;;
6577osf*)
6578  symcode='[BCDEGQRST]'
6579  ;;
6580solaris*)
6581  symcode='[BDRT]'
6582  ;;
6583sco3.2v5*)
6584  symcode='[DT]'
6585  ;;
6586sysv4.2uw2*)
6587  symcode='[DT]'
6588  ;;
6589sysv5* | sco5v6* | unixware* | OpenUNIX*)
6590  symcode='[ABDT]'
6591  ;;
6592sysv4)
6593  symcode='[DFNSTU]'
6594  ;;
6595esac
6596
6597# Handle CRLF in mingw tool chain
6598opt_cr=
6599case $build_os in
6600mingw*)
6601  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6602  ;;
6603esac
6604
6605# If we're using GNU nm, then use its standard symbol codes.
6606case `$NM -V 2>&1` in
6607*GNU* | *'with BFD'*)
6608  symcode='[ABCDGIRSTW]' ;;
6609esac
6610
6611# Try without a prefix undercore, then with it.
6612for ac_symprfx in "" "_"; do
6613
6614  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6615  symxfrm="\\1 $ac_symprfx\\2 \\2"
6616
6617  # Write the raw and C identifiers.
6618  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6619
6620  # Check to see that the pipe works correctly.
6621  pipe_works=no
6622
6623  rm -f conftest*
6624  cat > conftest.$ac_ext <<EOF
6625#ifdef __cplusplus
6626extern "C" {
6627#endif
6628char nm_test_var;
6629void nm_test_func(){}
6630#ifdef __cplusplus
6631}
6632#endif
6633int main(){nm_test_var='a';nm_test_func();return(0);}
6634EOF
6635
6636  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637  (eval $ac_compile) 2>&5
6638  ac_status=$?
6639  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; then
6641    # Now try to grab the symbols.
6642    nlist=conftest.nm
6643    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6644  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6645  ac_status=$?
6646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); } && test -s "$nlist"; then
6648      # Try sorting and uniquifying the output.
6649      if sort "$nlist" | uniq > "$nlist"T; then
6650	mv -f "$nlist"T "$nlist"
6651      else
6652	rm -f "$nlist"T
6653      fi
6654
6655      # Make sure that we snagged all the symbols we need.
6656      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6657	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6658	  cat <<EOF > conftest.$ac_ext
6659#ifdef __cplusplus
6660extern "C" {
6661#endif
6662
6663EOF
6664	  # Now generate the symbol file.
6665	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6666
6667	  cat <<EOF >> conftest.$ac_ext
6668#if defined (__STDC__) && __STDC__
6669# define lt_ptr_t void *
6670#else
6671# define lt_ptr_t char *
6672# define const
6673#endif
6674
6675/* The mapping between symbol names and symbols. */
6676const struct {
6677  const char *name;
6678  lt_ptr_t address;
6679}
6680lt_preloaded_symbols[] =
6681{
6682EOF
6683	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6684	  cat <<\EOF >> conftest.$ac_ext
6685  {0, (lt_ptr_t) 0}
6686};
6687
6688#ifdef __cplusplus
6689}
6690#endif
6691EOF
6692	  # Now try linking the two files.
6693	  mv conftest.$ac_objext conftstm.$ac_objext
6694	  lt_save_LIBS="$LIBS"
6695	  lt_save_CFLAGS="$CFLAGS"
6696	  LIBS="conftstm.$ac_objext"
6697	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6698	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699  (eval $ac_link) 2>&5
6700  ac_status=$?
6701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6703	    pipe_works=yes
6704	  fi
6705	  LIBS="$lt_save_LIBS"
6706	  CFLAGS="$lt_save_CFLAGS"
6707	else
6708	  echo "cannot find nm_test_func in $nlist" >&5
6709	fi
6710      else
6711	echo "cannot find nm_test_var in $nlist" >&5
6712      fi
6713    else
6714      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6715    fi
6716  else
6717    echo "$progname: failed program was:" >&5
6718    cat conftest.$ac_ext >&5
6719  fi
6720  rm -rf conftest* conftst*
6721
6722  # Do not use the global_symbol_pipe unless it works.
6723  if test "$pipe_works" = yes; then
6724    break
6725  else
6726    lt_cv_sys_global_symbol_pipe=
6727  fi
6728done
6729
6730fi
6731
6732if test -z "$lt_cv_sys_global_symbol_pipe"; then
6733  lt_cv_sys_global_symbol_to_cdecl=
6734fi
6735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6736  { $as_echo "$as_me:$LINENO: result: failed" >&5
6737$as_echo "failed" >&6; }
6738else
6739  { $as_echo "$as_me:$LINENO: result: ok" >&5
6740$as_echo "ok" >&6; }
6741fi
6742
6743{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6744$as_echo_n "checking for objdir... " >&6; }
6745if test "${lt_cv_objdir+set}" = set; then
6746  $as_echo_n "(cached) " >&6
6747else
6748  rm -f .libs 2>/dev/null
6749mkdir .libs 2>/dev/null
6750if test -d .libs; then
6751  lt_cv_objdir=.libs
6752else
6753  # MS-DOS does not allow filenames that begin with a dot.
6754  lt_cv_objdir=_libs
6755fi
6756rmdir .libs 2>/dev/null
6757fi
6758{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6759$as_echo "$lt_cv_objdir" >&6; }
6760objdir=$lt_cv_objdir
6761
6762
6763
6764
6765
6766case $host_os in
6767aix3*)
6768  # AIX sometimes has problems with the GCC collect2 program.  For some
6769  # reason, if we set the COLLECT_NAMES environment variable, the problems
6770  # vanish in a puff of smoke.
6771  if test "X${COLLECT_NAMES+set}" != Xset; then
6772    COLLECT_NAMES=
6773    export COLLECT_NAMES
6774  fi
6775  ;;
6776esac
6777
6778# Sed substitution that helps us do robust quoting.  It backslashifies
6779# metacharacters that are still active within double-quoted strings.
6780Xsed='sed -e 1s/^X//'
6781sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6782
6783# Same as above, but do not quote variable references.
6784double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6785
6786# Sed substitution to delay expansion of an escaped shell variable in a
6787# double_quote_subst'ed string.
6788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6789
6790# Sed substitution to avoid accidental globbing in evaled expressions
6791no_glob_subst='s/\*/\\\*/g'
6792
6793# Constants:
6794rm="rm -f"
6795
6796# Global variables:
6797default_ofile=libtool
6798can_build_shared=yes
6799
6800# All known linkers require a `.a' archive for static linking (except MSVC,
6801# which needs '.lib').
6802libext=a
6803ltmain="$ac_aux_dir/ltmain.sh"
6804ofile="$default_ofile"
6805with_gnu_ld="$lt_cv_prog_gnu_ld"
6806
6807if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}ar; ac_word=$2
6810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_AR+set}" = set; then
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$AR"; then
6816  ac_cv_prog_AR="$AR" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823  for ac_exec_ext in '' $ac_executable_extensions; do
6824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825    ac_cv_prog_AR="${ac_tool_prefix}ar"
6826    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835AR=$ac_cv_prog_AR
6836if test -n "$AR"; then
6837  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6838$as_echo "$AR" >&6; }
6839else
6840  { $as_echo "$as_me:$LINENO: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_AR"; then
6847  ac_ct_AR=$AR
6848  # Extract the first word of "ar", so it can be a program name with args.
6849set dummy ar; ac_word=$2
6850{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_AR"; then
6856  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863  for ac_exec_ext in '' $ac_executable_extensions; do
6864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865    ac_cv_prog_ac_ct_AR="ar"
6866    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_AR=$ac_cv_prog_ac_ct_AR
6876if test -n "$ac_ct_AR"; then
6877  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6878$as_echo "$ac_ct_AR" >&6; }
6879else
6880  { $as_echo "$as_me:$LINENO: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_AR" = x; then
6885    AR="false"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    AR=$ac_ct_AR
6894  fi
6895else
6896  AR="$ac_cv_prog_AR"
6897fi
6898
6899if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if test "${ac_cv_prog_RANLIB+set}" = set; then
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$RANLIB"; then
6908  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915  for ac_exec_ext in '' $ac_executable_extensions; do
6916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927RANLIB=$ac_cv_prog_RANLIB
6928if test -n "$RANLIB"; then
6929  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6930$as_echo "$RANLIB" >&6; }
6931else
6932  { $as_echo "$as_me:$LINENO: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_RANLIB"; then
6939  ac_ct_RANLIB=$RANLIB
6940  # Extract the first word of "ranlib", so it can be a program name with args.
6941set dummy ranlib; ac_word=$2
6942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_RANLIB"; then
6948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955  for ac_exec_ext in '' $ac_executable_extensions; do
6956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957    ac_cv_prog_ac_ct_RANLIB="ranlib"
6958    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968if test -n "$ac_ct_RANLIB"; then
6969  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6970$as_echo "$ac_ct_RANLIB" >&6; }
6971else
6972  { $as_echo "$as_me:$LINENO: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_RANLIB" = x; then
6977    RANLIB=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    RANLIB=$ac_ct_RANLIB
6986  fi
6987else
6988  RANLIB="$ac_cv_prog_RANLIB"
6989fi
6990
6991if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}strip; ac_word=$2
6994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if test "${ac_cv_prog_STRIP+set}" = set; then
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$STRIP"; then
7000  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007  for ac_exec_ext in '' $ac_executable_extensions; do
7008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7010    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019STRIP=$ac_cv_prog_STRIP
7020if test -n "$STRIP"; then
7021  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7022$as_echo "$STRIP" >&6; }
7023else
7024  { $as_echo "$as_me:$LINENO: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_STRIP"; then
7031  ac_ct_STRIP=$STRIP
7032  # Extract the first word of "strip", so it can be a program name with args.
7033set dummy strip; ac_word=$2
7034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_STRIP"; then
7040  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047  for ac_exec_ext in '' $ac_executable_extensions; do
7048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049    ac_cv_prog_ac_ct_STRIP="strip"
7050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7060if test -n "$ac_ct_STRIP"; then
7061  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7062$as_echo "$ac_ct_STRIP" >&6; }
7063else
7064  { $as_echo "$as_me:$LINENO: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_STRIP" = x; then
7069    STRIP=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    STRIP=$ac_ct_STRIP
7078  fi
7079else
7080  STRIP="$ac_cv_prog_STRIP"
7081fi
7082
7083
7084old_CC="$CC"
7085old_CFLAGS="$CFLAGS"
7086
7087# Set sane defaults for various variables
7088test -z "$AR" && AR=ar
7089test -z "$AR_FLAGS" && AR_FLAGS=cru
7090test -z "$AS" && AS=as
7091test -z "$CC" && CC=cc
7092test -z "$LTCC" && LTCC=$CC
7093test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7094test -z "$DLLTOOL" && DLLTOOL=dlltool
7095test -z "$LD" && LD=ld
7096test -z "$LN_S" && LN_S="ln -s"
7097test -z "$MAGIC_CMD" && MAGIC_CMD=file
7098test -z "$NM" && NM=nm
7099test -z "$SED" && SED=sed
7100test -z "$OBJDUMP" && OBJDUMP=objdump
7101test -z "$RANLIB" && RANLIB=:
7102test -z "$STRIP" && STRIP=:
7103test -z "$ac_objext" && ac_objext=o
7104
7105# Determine commands to create old-style static archives.
7106old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7107old_postinstall_cmds='chmod 644 $oldlib'
7108old_postuninstall_cmds=
7109
7110if test -n "$RANLIB"; then
7111  case $host_os in
7112  openbsd*)
7113    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7114    ;;
7115  *)
7116    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7117    ;;
7118  esac
7119  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7120fi
7121
7122for cc_temp in $compiler""; do
7123  case $cc_temp in
7124    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7125    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7126    \-*) ;;
7127    *) break;;
7128  esac
7129done
7130cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7131
7132
7133# Only perform the check for file, if the check method requires it
7134case $deplibs_check_method in
7135file_magic*)
7136  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7137    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7138$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7139if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7140  $as_echo_n "(cached) " >&6
7141else
7142  case $MAGIC_CMD in
7143[\\/*] |  ?:[\\/]*)
7144  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145  ;;
7146*)
7147  lt_save_MAGIC_CMD="$MAGIC_CMD"
7148  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150  for ac_dir in $ac_dummy; do
7151    IFS="$lt_save_ifs"
7152    test -z "$ac_dir" && ac_dir=.
7153    if test -f $ac_dir/${ac_tool_prefix}file; then
7154      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7155      if test -n "$file_magic_test_file"; then
7156	case $deplibs_check_method in
7157	"file_magic "*)
7158	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161	    $EGREP "$file_magic_regex" > /dev/null; then
7162	    :
7163	  else
7164	    cat <<EOF 1>&2
7165
7166*** Warning: the command libtool uses to detect shared libraries,
7167*** $file_magic_cmd, produces output that libtool cannot recognize.
7168*** The result is that libtool may fail to recognize shared libraries
7169*** as such.  This will affect the creation of libtool libraries that
7170*** depend on shared libraries, but programs linked with such libtool
7171*** libraries will work regardless of this problem.  Nevertheless, you
7172*** may want to report the problem to your system manager and/or to
7173*** bug-libtool@gnu.org
7174
7175EOF
7176	  fi ;;
7177	esac
7178      fi
7179      break
7180    fi
7181  done
7182  IFS="$lt_save_ifs"
7183  MAGIC_CMD="$lt_save_MAGIC_CMD"
7184  ;;
7185esac
7186fi
7187
7188MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189if test -n "$MAGIC_CMD"; then
7190  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7191$as_echo "$MAGIC_CMD" >&6; }
7192else
7193  { $as_echo "$as_me:$LINENO: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197if test -z "$lt_cv_path_MAGIC_CMD"; then
7198  if test -n "$ac_tool_prefix"; then
7199    { $as_echo "$as_me:$LINENO: checking for file" >&5
7200$as_echo_n "checking for file... " >&6; }
7201if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7202  $as_echo_n "(cached) " >&6
7203else
7204  case $MAGIC_CMD in
7205[\\/*] |  ?:[\\/]*)
7206  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7207  ;;
7208*)
7209  lt_save_MAGIC_CMD="$MAGIC_CMD"
7210  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212  for ac_dir in $ac_dummy; do
7213    IFS="$lt_save_ifs"
7214    test -z "$ac_dir" && ac_dir=.
7215    if test -f $ac_dir/file; then
7216      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7217      if test -n "$file_magic_test_file"; then
7218	case $deplibs_check_method in
7219	"file_magic "*)
7220	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7221	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223	    $EGREP "$file_magic_regex" > /dev/null; then
7224	    :
7225	  else
7226	    cat <<EOF 1>&2
7227
7228*** Warning: the command libtool uses to detect shared libraries,
7229*** $file_magic_cmd, produces output that libtool cannot recognize.
7230*** The result is that libtool may fail to recognize shared libraries
7231*** as such.  This will affect the creation of libtool libraries that
7232*** depend on shared libraries, but programs linked with such libtool
7233*** libraries will work regardless of this problem.  Nevertheless, you
7234*** may want to report the problem to your system manager and/or to
7235*** bug-libtool@gnu.org
7236
7237EOF
7238	  fi ;;
7239	esac
7240      fi
7241      break
7242    fi
7243  done
7244  IFS="$lt_save_ifs"
7245  MAGIC_CMD="$lt_save_MAGIC_CMD"
7246  ;;
7247esac
7248fi
7249
7250MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251if test -n "$MAGIC_CMD"; then
7252  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7253$as_echo "$MAGIC_CMD" >&6; }
7254else
7255  { $as_echo "$as_me:$LINENO: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259  else
7260    MAGIC_CMD=:
7261  fi
7262fi
7263
7264  fi
7265  ;;
7266esac
7267
7268
7269  case $host_os in
7270    rhapsody* | darwin*)
7271    if test -n "$ac_tool_prefix"; then
7272  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7273set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7274{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7275$as_echo_n "checking for $ac_word... " >&6; }
7276if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7277  $as_echo_n "(cached) " >&6
7278else
7279  if test -n "$DSYMUTIL"; then
7280  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285  IFS=$as_save_IFS
7286  test -z "$as_dir" && as_dir=.
7287  for ac_exec_ext in '' $ac_executable_extensions; do
7288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7290    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291    break 2
7292  fi
7293done
7294done
7295IFS=$as_save_IFS
7296
7297fi
7298fi
7299DSYMUTIL=$ac_cv_prog_DSYMUTIL
7300if test -n "$DSYMUTIL"; then
7301  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7302$as_echo "$DSYMUTIL" >&6; }
7303else
7304  { $as_echo "$as_me:$LINENO: result: no" >&5
7305$as_echo "no" >&6; }
7306fi
7307
7308
7309fi
7310if test -z "$ac_cv_prog_DSYMUTIL"; then
7311  ac_ct_DSYMUTIL=$DSYMUTIL
7312  # Extract the first word of "dsymutil", so it can be a program name with args.
7313set dummy dsymutil; ac_word=$2
7314{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$ac_ct_DSYMUTIL"; then
7320  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327  for ac_exec_ext in '' $ac_executable_extensions; do
7328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7330    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7340if test -n "$ac_ct_DSYMUTIL"; then
7341  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7342$as_echo "$ac_ct_DSYMUTIL" >&6; }
7343else
7344  { $as_echo "$as_me:$LINENO: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348  if test "x$ac_ct_DSYMUTIL" = x; then
7349    DSYMUTIL=":"
7350  else
7351    case $cross_compiling:$ac_tool_warned in
7352yes:)
7353{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355ac_tool_warned=yes ;;
7356esac
7357    DSYMUTIL=$ac_ct_DSYMUTIL
7358  fi
7359else
7360  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7361fi
7362
7363    if test -n "$ac_tool_prefix"; then
7364  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7365set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if test "${ac_cv_prog_NMEDIT+set}" = set; then
7369  $as_echo_n "(cached) " >&6
7370else
7371  if test -n "$NMEDIT"; then
7372  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  test -z "$as_dir" && as_dir=.
7379  for ac_exec_ext in '' $ac_executable_extensions; do
7380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7382    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383    break 2
7384  fi
7385done
7386done
7387IFS=$as_save_IFS
7388
7389fi
7390fi
7391NMEDIT=$ac_cv_prog_NMEDIT
7392if test -n "$NMEDIT"; then
7393  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7394$as_echo "$NMEDIT" >&6; }
7395else
7396  { $as_echo "$as_me:$LINENO: result: no" >&5
7397$as_echo "no" >&6; }
7398fi
7399
7400
7401fi
7402if test -z "$ac_cv_prog_NMEDIT"; then
7403  ac_ct_NMEDIT=$NMEDIT
7404  # Extract the first word of "nmedit", so it can be a program name with args.
7405set dummy nmedit; ac_word=$2
7406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$ac_ct_NMEDIT"; then
7412  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419  for ac_exec_ext in '' $ac_executable_extensions; do
7420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7422    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7432if test -n "$ac_ct_NMEDIT"; then
7433  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7434$as_echo "$ac_ct_NMEDIT" >&6; }
7435else
7436  { $as_echo "$as_me:$LINENO: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440  if test "x$ac_ct_NMEDIT" = x; then
7441    NMEDIT=":"
7442  else
7443    case $cross_compiling:$ac_tool_warned in
7444yes:)
7445{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447ac_tool_warned=yes ;;
7448esac
7449    NMEDIT=$ac_ct_NMEDIT
7450  fi
7451else
7452  NMEDIT="$ac_cv_prog_NMEDIT"
7453fi
7454
7455
7456    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7457$as_echo_n "checking for -single_module linker flag... " >&6; }
7458if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7459  $as_echo_n "(cached) " >&6
7460else
7461  lt_cv_apple_cc_single_mod=no
7462      if test -z "${LT_MULTI_MODULE}"; then
7463   # By default we will add the -single_module flag. You can override
7464   # by either setting the environment variable LT_MULTI_MODULE
7465   # non-empty at configure time, or by adding -multi_module to the
7466   # link flags.
7467   echo "int foo(void){return 1;}" > conftest.c
7468   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7469     -dynamiclib ${wl}-single_module conftest.c
7470   if test -f libconftest.dylib; then
7471     lt_cv_apple_cc_single_mod=yes
7472     rm -rf libconftest.dylib*
7473   fi
7474   rm conftest.c
7475      fi
7476fi
7477{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7478$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7479    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7480$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7481if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7482  $as_echo_n "(cached) " >&6
7483else
7484  lt_cv_ld_exported_symbols_list=no
7485      save_LDFLAGS=$LDFLAGS
7486      echo "_main" > conftest.sym
7487      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7488      cat >conftest.$ac_ext <<_ACEOF
7489/* confdefs.h.  */
7490_ACEOF
7491cat confdefs.h >>conftest.$ac_ext
7492cat >>conftest.$ac_ext <<_ACEOF
7493/* end confdefs.h.  */
7494
7495int
7496main ()
7497{
7498
7499  ;
7500  return 0;
7501}
7502_ACEOF
7503rm -f conftest.$ac_objext conftest$ac_exeext
7504if { (ac_try="$ac_link"
7505case "(($ac_try" in
7506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507  *) ac_try_echo=$ac_try;;
7508esac
7509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510$as_echo "$ac_try_echo") >&5
7511  (eval "$ac_link") 2>conftest.er1
7512  ac_status=$?
7513  grep -v '^ *+' conftest.er1 >conftest.err
7514  rm -f conftest.er1
7515  cat conftest.err >&5
7516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); } && {
7518	 test -z "$ac_c_werror_flag" ||
7519	 test ! -s conftest.err
7520       } && test -s conftest$ac_exeext && {
7521	 test "$cross_compiling" = yes ||
7522	 $as_test_x conftest$ac_exeext
7523       }; then
7524  lt_cv_ld_exported_symbols_list=yes
7525else
7526  $as_echo "$as_me: failed program was:" >&5
7527sed 's/^/| /' conftest.$ac_ext >&5
7528
7529	lt_cv_ld_exported_symbols_list=no
7530fi
7531
7532rm -rf conftest.dSYM
7533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7534      conftest$ac_exeext conftest.$ac_ext
7535   LDFLAGS="$save_LDFLAGS"
7536
7537fi
7538{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7539$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7540    case $host_os in
7541    rhapsody* | darwin1.[0123])
7542      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7543    darwin1.*)
7544     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7545    darwin*)
7546      # if running on 10.5 or later, the deployment target defaults
7547      # to the OS version, if on x86, and 10.4, the deployment
7548      # target defaults to 10.4. Don't you love it?
7549      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7550   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7551     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552   10.[012]*)
7553     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7554   10.*)
7555     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556      esac
7557    ;;
7558  esac
7559    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7560      _lt_dar_single_mod='$single_module'
7561    fi
7562    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7563      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7564    else
7565      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7566    fi
7567    if test "$DSYMUTIL" != ":"; then
7568      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7569    else
7570      _lt_dsymutil=
7571    fi
7572    ;;
7573  esac
7574
7575
7576enable_dlopen=no
7577enable_win32_dll=no
7578
7579# Check whether --enable-libtool-lock was given.
7580if test "${enable_libtool_lock+set}" = set; then
7581  enableval=$enable_libtool_lock;
7582fi
7583
7584test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7585
7586
7587# Check whether --with-pic was given.
7588if test "${with_pic+set}" = set; then
7589  withval=$with_pic; pic_mode="$withval"
7590else
7591  pic_mode=default
7592fi
7593
7594test -z "$pic_mode" && pic_mode=default
7595
7596# Use C for the default configuration in the libtool script
7597tagname=
7598lt_save_CC="$CC"
7599ac_ext=c
7600ac_cpp='$CPP $CPPFLAGS'
7601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7603ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604
7605
7606# Source file extension for C test sources.
7607ac_ext=c
7608
7609# Object file extension for compiled C test sources.
7610objext=o
7611objext=$objext
7612
7613# Code to be used in simple compile tests
7614lt_simple_compile_test_code="int some_variable = 0;"
7615
7616# Code to be used in simple link tests
7617lt_simple_link_test_code='int main(){return(0);}'
7618
7619
7620# If no C compiler was specified, use CC.
7621LTCC=${LTCC-"$CC"}
7622
7623# If no C compiler flags were specified, use CFLAGS.
7624LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7625
7626# Allow CC to be a program name with arguments.
7627compiler=$CC
7628
7629
7630# save warnings/boilerplate of simple test code
7631ac_outfile=conftest.$ac_objext
7632echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7634_lt_compiler_boilerplate=`cat conftest.err`
7635$rm conftest*
7636
7637ac_outfile=conftest.$ac_objext
7638echo "$lt_simple_link_test_code" >conftest.$ac_ext
7639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7640_lt_linker_boilerplate=`cat conftest.err`
7641$rm -r conftest*
7642
7643
7644
7645lt_prog_compiler_no_builtin_flag=
7646
7647if test "$GCC" = yes; then
7648  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7649
7650
7651{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7653if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654  $as_echo_n "(cached) " >&6
7655else
7656  lt_cv_prog_compiler_rtti_exceptions=no
7657  ac_outfile=conftest.$ac_objext
7658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7659   lt_compiler_flag="-fno-rtti -fno-exceptions"
7660   # Insert the option either (1) after the last *FLAGS variable, or
7661   # (2) before a word containing "conftest.", or (3) at the end.
7662   # Note that $ac_compile itself does not contain backslashes and begins
7663   # with a dollar sign (not a hyphen), so the echo should work correctly.
7664   # The option is referenced via a variable to avoid confusing sed.
7665   lt_compile=`echo "$ac_compile" | $SED \
7666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668   -e 's:$: $lt_compiler_flag:'`
7669   (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670   (eval "$lt_compile" 2>conftest.err)
7671   ac_status=$?
7672   cat conftest.err >&5
7673   echo "$as_me:7673: \$? = $ac_status" >&5
7674   if (exit $ac_status) && test -s "$ac_outfile"; then
7675     # The compiler can only warn and ignore the option if not recognized
7676     # So say no if there are warnings other than the usual output.
7677     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7678     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7679     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7680       lt_cv_prog_compiler_rtti_exceptions=yes
7681     fi
7682   fi
7683   $rm conftest*
7684
7685fi
7686{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7688
7689if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691else
7692    :
7693fi
7694
7695fi
7696
7697lt_prog_compiler_wl=
7698lt_prog_compiler_pic=
7699lt_prog_compiler_static=
7700
7701{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7703
7704  if test "$GCC" = yes; then
7705    lt_prog_compiler_wl='-Wl,'
7706    lt_prog_compiler_static='-static'
7707
7708    case $host_os in
7709      aix*)
7710      # All AIX code is PIC.
7711      if test "$host_cpu" = ia64; then
7712	# AIX 5 now supports IA64 processor
7713	lt_prog_compiler_static='-Bstatic'
7714      fi
7715      ;;
7716
7717    amigaos*)
7718      # FIXME: we need at least 68020 code to build shared libraries, but
7719      # adding the `-m68020' flag to GCC prevents building anything better,
7720      # like `-m68040'.
7721      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722      ;;
7723
7724    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725      # PIC is the default for these OSes.
7726      ;;
7727
7728    mingw* | cygwin* | pw32* | os2*)
7729      # This hack is so that the source file can tell whether it is being
7730      # built for inclusion in a dll (and should export symbols for example).
7731      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7732      # (--disable-auto-import) libraries
7733      lt_prog_compiler_pic='-DDLL_EXPORT'
7734      ;;
7735
7736    darwin* | rhapsody*)
7737      # PIC is the default on this platform
7738      # Common symbols not allowed in MH_DYLIB files
7739      lt_prog_compiler_pic='-fno-common'
7740      ;;
7741
7742    interix[3-9]*)
7743      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7744      # Instead, we relocate shared libraries at runtime.
7745      ;;
7746
7747    msdosdjgpp*)
7748      # Just because we use GCC doesn't mean we suddenly get shared libraries
7749      # on systems that don't support them.
7750      lt_prog_compiler_can_build_shared=no
7751      enable_shared=no
7752      ;;
7753
7754    sysv4*MP*)
7755      if test -d /usr/nec; then
7756	lt_prog_compiler_pic=-Kconform_pic
7757      fi
7758      ;;
7759
7760    hpux*)
7761      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7762      # not for PA HP-UX.
7763      case $host_cpu in
7764      hppa*64*|ia64*)
7765	# +Z the default
7766	;;
7767      *)
7768	lt_prog_compiler_pic='-fPIC'
7769	;;
7770      esac
7771      ;;
7772
7773    *)
7774      lt_prog_compiler_pic='-fPIC'
7775      ;;
7776    esac
7777  else
7778    # PORTME Check for flag to pass linker flags through the system compiler.
7779    case $host_os in
7780    aix*)
7781      lt_prog_compiler_wl='-Wl,'
7782      if test "$host_cpu" = ia64; then
7783	# AIX 5 now supports IA64 processor
7784	lt_prog_compiler_static='-Bstatic'
7785      else
7786	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7787      fi
7788      ;;
7789      darwin*)
7790        # PIC is the default on this platform
7791        # Common symbols not allowed in MH_DYLIB files
7792       case $cc_basename in
7793         xlc*)
7794         lt_prog_compiler_pic='-qnocommon'
7795         lt_prog_compiler_wl='-Wl,'
7796         ;;
7797       esac
7798       ;;
7799
7800    mingw* | cygwin* | pw32* | os2*)
7801      # This hack is so that the source file can tell whether it is being
7802      # built for inclusion in a dll (and should export symbols for example).
7803      lt_prog_compiler_pic='-DDLL_EXPORT'
7804      ;;
7805
7806    hpux9* | hpux10* | hpux11*)
7807      lt_prog_compiler_wl='-Wl,'
7808      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7809      # not for PA HP-UX.
7810      case $host_cpu in
7811      hppa*64*|ia64*)
7812	# +Z the default
7813	;;
7814      *)
7815	lt_prog_compiler_pic='+Z'
7816	;;
7817      esac
7818      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7819      lt_prog_compiler_static='${wl}-a ${wl}archive'
7820      ;;
7821
7822    irix5* | irix6* | nonstopux*)
7823      lt_prog_compiler_wl='-Wl,'
7824      # PIC (with -KPIC) is the default.
7825      lt_prog_compiler_static='-non_shared'
7826      ;;
7827
7828    newsos6)
7829      lt_prog_compiler_pic='-KPIC'
7830      lt_prog_compiler_static='-Bstatic'
7831      ;;
7832
7833    linux* | k*bsd*-gnu)
7834      case $cc_basename in
7835      icc* | ecc*)
7836	lt_prog_compiler_wl='-Wl,'
7837	lt_prog_compiler_pic='-KPIC'
7838	lt_prog_compiler_static='-static'
7839        ;;
7840      pgcc* | pgf77* | pgf90* | pgf95*)
7841        # Portland Group compilers (*not* the Pentium gcc compiler,
7842	# which looks to be a dead project)
7843	lt_prog_compiler_wl='-Wl,'
7844	lt_prog_compiler_pic='-fpic'
7845	lt_prog_compiler_static='-Bstatic'
7846        ;;
7847      ccc*)
7848        lt_prog_compiler_wl='-Wl,'
7849        # All Alpha code is PIC.
7850        lt_prog_compiler_static='-non_shared'
7851        ;;
7852      *)
7853        case `$CC -V 2>&1 | sed 5q` in
7854	*Sun\ C*)
7855	  # Sun C 5.9
7856	  lt_prog_compiler_pic='-KPIC'
7857	  lt_prog_compiler_static='-Bstatic'
7858	  lt_prog_compiler_wl='-Wl,'
7859	  ;;
7860	*Sun\ F*)
7861	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7862	  lt_prog_compiler_pic='-KPIC'
7863	  lt_prog_compiler_static='-Bstatic'
7864	  lt_prog_compiler_wl=''
7865	  ;;
7866	esac
7867	;;
7868      esac
7869      ;;
7870
7871    osf3* | osf4* | osf5*)
7872      lt_prog_compiler_wl='-Wl,'
7873      # All OSF/1 code is PIC.
7874      lt_prog_compiler_static='-non_shared'
7875      ;;
7876
7877    rdos*)
7878      lt_prog_compiler_static='-non_shared'
7879      ;;
7880
7881    solaris*)
7882      lt_prog_compiler_pic='-KPIC'
7883      lt_prog_compiler_static='-Bstatic'
7884      case $cc_basename in
7885      f77* | f90* | f95*)
7886	lt_prog_compiler_wl='-Qoption ld ';;
7887      *)
7888	lt_prog_compiler_wl='-Wl,';;
7889      esac
7890      ;;
7891
7892    sunos4*)
7893      lt_prog_compiler_wl='-Qoption ld '
7894      lt_prog_compiler_pic='-PIC'
7895      lt_prog_compiler_static='-Bstatic'
7896      ;;
7897
7898    sysv4 | sysv4.2uw2* | sysv4.3*)
7899      lt_prog_compiler_wl='-Wl,'
7900      lt_prog_compiler_pic='-KPIC'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    sysv4*MP*)
7905      if test -d /usr/nec ;then
7906	lt_prog_compiler_pic='-Kconform_pic'
7907	lt_prog_compiler_static='-Bstatic'
7908      fi
7909      ;;
7910
7911    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7912      lt_prog_compiler_wl='-Wl,'
7913      lt_prog_compiler_pic='-KPIC'
7914      lt_prog_compiler_static='-Bstatic'
7915      ;;
7916
7917    unicos*)
7918      lt_prog_compiler_wl='-Wl,'
7919      lt_prog_compiler_can_build_shared=no
7920      ;;
7921
7922    uts4*)
7923      lt_prog_compiler_pic='-pic'
7924      lt_prog_compiler_static='-Bstatic'
7925      ;;
7926
7927    *)
7928      lt_prog_compiler_can_build_shared=no
7929      ;;
7930    esac
7931  fi
7932
7933{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7934$as_echo "$lt_prog_compiler_pic" >&6; }
7935
7936#
7937# Check to make sure the PIC flag actually works.
7938#
7939if test -n "$lt_prog_compiler_pic"; then
7940
7941{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7942$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7943if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7944  $as_echo_n "(cached) " >&6
7945else
7946  lt_cv_prog_compiler_pic_works=no
7947  ac_outfile=conftest.$ac_objext
7948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7949   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7950   # Insert the option either (1) after the last *FLAGS variable, or
7951   # (2) before a word containing "conftest.", or (3) at the end.
7952   # Note that $ac_compile itself does not contain backslashes and begins
7953   # with a dollar sign (not a hyphen), so the echo should work correctly.
7954   # The option is referenced via a variable to avoid confusing sed.
7955   lt_compile=`echo "$ac_compile" | $SED \
7956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958   -e 's:$: $lt_compiler_flag:'`
7959   (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960   (eval "$lt_compile" 2>conftest.err)
7961   ac_status=$?
7962   cat conftest.err >&5
7963   echo "$as_me:7963: \$? = $ac_status" >&5
7964   if (exit $ac_status) && test -s "$ac_outfile"; then
7965     # The compiler can only warn and ignore the option if not recognized
7966     # So say no if there are warnings other than the usual output.
7967     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7968     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7969     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7970       lt_cv_prog_compiler_pic_works=yes
7971     fi
7972   fi
7973   $rm conftest*
7974
7975fi
7976{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7977$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7978
7979if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7980    case $lt_prog_compiler_pic in
7981     "" | " "*) ;;
7982     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7983     esac
7984else
7985    lt_prog_compiler_pic=
7986     lt_prog_compiler_can_build_shared=no
7987fi
7988
7989fi
7990case $host_os in
7991  # For platforms which do not support PIC, -DPIC is meaningless:
7992  *djgpp*)
7993    lt_prog_compiler_pic=
7994    ;;
7995  *)
7996    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7997    ;;
7998esac
7999
8000#
8001# Check to make sure the static flag actually works.
8002#
8003wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8004{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8005$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8006if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8007  $as_echo_n "(cached) " >&6
8008else
8009  lt_cv_prog_compiler_static_works=no
8010   save_LDFLAGS="$LDFLAGS"
8011   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8012   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8013   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8014     # The linker can only warn and ignore the option if not recognized
8015     # So say no if there are warnings
8016     if test -s conftest.err; then
8017       # Append any errors to the config.log.
8018       cat conftest.err 1>&5
8019       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8020       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8021       if diff conftest.exp conftest.er2 >/dev/null; then
8022         lt_cv_prog_compiler_static_works=yes
8023       fi
8024     else
8025       lt_cv_prog_compiler_static_works=yes
8026     fi
8027   fi
8028   $rm -r conftest*
8029   LDFLAGS="$save_LDFLAGS"
8030
8031fi
8032{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8033$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8034
8035if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8036    :
8037else
8038    lt_prog_compiler_static=
8039fi
8040
8041
8042{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8044if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8045  $as_echo_n "(cached) " >&6
8046else
8047  lt_cv_prog_compiler_c_o=no
8048   $rm -r conftest 2>/dev/null
8049   mkdir conftest
8050   cd conftest
8051   mkdir out
8052   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053
8054   lt_compiler_flag="-o out/conftest2.$ac_objext"
8055   # Insert the option either (1) after the last *FLAGS variable, or
8056   # (2) before a word containing "conftest.", or (3) at the end.
8057   # Note that $ac_compile itself does not contain backslashes and begins
8058   # with a dollar sign (not a hyphen), so the echo should work correctly.
8059   lt_compile=`echo "$ac_compile" | $SED \
8060   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8062   -e 's:$: $lt_compiler_flag:'`
8063   (eval echo "\"\$as_me:8063: $lt_compile\"" >&5)
8064   (eval "$lt_compile" 2>out/conftest.err)
8065   ac_status=$?
8066   cat out/conftest.err >&5
8067   echo "$as_me:8067: \$? = $ac_status" >&5
8068   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8069   then
8070     # The compiler can only warn and ignore the option if not recognized
8071     # So say no if there are warnings
8072     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8073     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8074     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8075       lt_cv_prog_compiler_c_o=yes
8076     fi
8077   fi
8078   chmod u+w . 2>&5
8079   $rm conftest*
8080   # SGI C++ compiler will create directory out/ii_files/ for
8081   # template instantiation
8082   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8083   $rm out/* && rmdir out
8084   cd ..
8085   rmdir conftest
8086   $rm conftest*
8087
8088fi
8089{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8090$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8091
8092
8093hard_links="nottested"
8094if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8095  # do not overwrite the value of need_locks provided by the user
8096  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8097$as_echo_n "checking if we can lock with hard links... " >&6; }
8098  hard_links=yes
8099  $rm conftest*
8100  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8101  touch conftest.a
8102  ln conftest.a conftest.b 2>&5 || hard_links=no
8103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8104  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8105$as_echo "$hard_links" >&6; }
8106  if test "$hard_links" = no; then
8107    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8108$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8109    need_locks=warn
8110  fi
8111else
8112  need_locks=no
8113fi
8114
8115{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8116$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8117
8118  runpath_var=
8119  allow_undefined_flag=
8120  enable_shared_with_static_runtimes=no
8121  archive_cmds=
8122  archive_expsym_cmds=
8123  old_archive_From_new_cmds=
8124  old_archive_from_expsyms_cmds=
8125  export_dynamic_flag_spec=
8126  whole_archive_flag_spec=
8127  thread_safe_flag_spec=
8128  hardcode_libdir_flag_spec=
8129  hardcode_libdir_flag_spec_ld=
8130  hardcode_libdir_separator=
8131  hardcode_direct=no
8132  hardcode_minus_L=no
8133  hardcode_shlibpath_var=unsupported
8134  link_all_deplibs=unknown
8135  hardcode_automatic=no
8136  module_cmds=
8137  module_expsym_cmds=
8138  always_export_symbols=no
8139  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8140  # include_expsyms should be a list of space-separated symbols to be *always*
8141  # included in the symbol list
8142  include_expsyms=
8143  # exclude_expsyms can be an extended regexp of symbols to exclude
8144  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8145  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8146  # as well as any symbol that contains `d'.
8147  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8148  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8149  # platforms (ab)use it in PIC code, but their linkers get confused if
8150  # the symbol is explicitly referenced.  Since portable code cannot
8151  # rely on this symbol name, it's probably fine to never include it in
8152  # preloaded symbol tables.
8153  # Exclude shared library initialization/finalization symbols.
8154  extract_expsyms_cmds=
8155  # Just being paranoid about ensuring that cc_basename is set.
8156  for cc_temp in $compiler""; do
8157  case $cc_temp in
8158    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8159    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8160    \-*) ;;
8161    *) break;;
8162  esac
8163done
8164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8165
8166  case $host_os in
8167  cygwin* | mingw* | pw32*)
8168    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8169    # When not using gcc, we currently assume that we are using
8170    # Microsoft Visual C++.
8171    if test "$GCC" != yes; then
8172      with_gnu_ld=no
8173    fi
8174    ;;
8175  interix*)
8176    # we just hope/assume this is gcc and not c89 (= MSVC++)
8177    with_gnu_ld=yes
8178    ;;
8179  openbsd*)
8180    with_gnu_ld=no
8181    ;;
8182  esac
8183
8184  ld_shlibs=yes
8185  if test "$with_gnu_ld" = yes; then
8186    # If archive_cmds runs LD, not CC, wlarc should be empty
8187    wlarc='${wl}'
8188
8189    # Set some defaults for GNU ld with shared library support. These
8190    # are reset later if shared libraries are not supported. Putting them
8191    # here allows them to be overridden if necessary.
8192    runpath_var=LD_RUN_PATH
8193    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8194    export_dynamic_flag_spec='${wl}--export-dynamic'
8195    # ancient GNU ld didn't support --whole-archive et. al.
8196    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8197	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8198      else
8199  	whole_archive_flag_spec=
8200    fi
8201    supports_anon_versioning=no
8202    case `$LD -v 2>/dev/null` in
8203      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8204      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8205      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8206      *\ 2.11.*) ;; # other 2.11 versions
8207      *) supports_anon_versioning=yes ;;
8208    esac
8209
8210    # See if GNU ld supports shared libraries.
8211    case $host_os in
8212    aix[3-9]*)
8213      # On AIX/PPC, the GNU linker is very broken
8214      if test "$host_cpu" != ia64; then
8215	ld_shlibs=no
8216	cat <<EOF 1>&2
8217
8218*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8219*** to be unable to reliably create shared libraries on AIX.
8220*** Therefore, libtool is disabling shared libraries support.  If you
8221*** really care for shared libraries, you may want to modify your PATH
8222*** so that a non-GNU linker is found, and then restart.
8223
8224EOF
8225      fi
8226      ;;
8227
8228    amigaos*)
8229      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)'
8230      hardcode_libdir_flag_spec='-L$libdir'
8231      hardcode_minus_L=yes
8232
8233      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8234      # that the semantics of dynamic libraries on AmigaOS, at least up
8235      # to version 4, is to share data among multiple programs linked
8236      # with the same dynamic library.  Since this doesn't match the
8237      # behavior of shared libraries on other platforms, we can't use
8238      # them.
8239      ld_shlibs=no
8240      ;;
8241
8242    beos*)
8243      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8244	allow_undefined_flag=unsupported
8245	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8246	# support --undefined.  This deserves some investigation.  FIXME
8247	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248      else
8249	ld_shlibs=no
8250      fi
8251      ;;
8252
8253    cygwin* | mingw* | pw32*)
8254      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8255      # as there is no search path for DLLs.
8256      hardcode_libdir_flag_spec='-L$libdir'
8257      allow_undefined_flag=unsupported
8258      always_export_symbols=no
8259      enable_shared_with_static_runtimes=yes
8260      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8261
8262      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8263        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264	# If the export-symbols file already is a .def file (1st line
8265	# is EXPORTS), use it as is; otherwise, prepend...
8266	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8267	  cp $export_symbols $output_objdir/$soname.def;
8268	else
8269	  echo EXPORTS > $output_objdir/$soname.def;
8270	  cat $export_symbols >> $output_objdir/$soname.def;
8271	fi~
8272	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8273      else
8274	ld_shlibs=no
8275      fi
8276      ;;
8277
8278    interix[3-9]*)
8279      hardcode_direct=no
8280      hardcode_shlibpath_var=no
8281      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8282      export_dynamic_flag_spec='${wl}-E'
8283      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8284      # Instead, shared libraries are loaded at an image base (0x10000000 by
8285      # default) and relocated if they conflict, which is a slow very memory
8286      # consuming and fragmenting process.  To avoid this, we pick a random,
8287      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8288      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8289      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8290      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'
8291      ;;
8292
8293    gnu* | linux* | k*bsd*-gnu)
8294      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8295	tmp_addflag=
8296	case $cc_basename,$host_cpu in
8297	pgcc*)				# Portland Group C compiler
8298	  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'
8299	  tmp_addflag=' $pic_flag'
8300	  ;;
8301	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8302	  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'
8303	  tmp_addflag=' $pic_flag -Mnomain' ;;
8304	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8305	  tmp_addflag=' -i_dynamic' ;;
8306	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8307	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8308	ifc* | ifort*)			# Intel Fortran compiler
8309	  tmp_addflag=' -nofor_main' ;;
8310	esac
8311	case `$CC -V 2>&1 | sed 5q` in
8312	*Sun\ C*)			# Sun C 5.9
8313	  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'
8314	  tmp_sharedflag='-G' ;;
8315	*Sun\ F*)			# Sun Fortran 8.3
8316	  tmp_sharedflag='-G' ;;
8317	*)
8318	  tmp_sharedflag='-shared' ;;
8319	esac
8320	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321
8322	if test $supports_anon_versioning = yes; then
8323	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8324  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8325  $echo "local: *; };" >> $output_objdir/$libname.ver~
8326	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8327	fi
8328      else
8329	ld_shlibs=no
8330      fi
8331      ;;
8332
8333    netbsd*)
8334      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8335	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8336	wlarc=
8337      else
8338	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340      fi
8341      ;;
8342
8343    solaris*)
8344      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8345	ld_shlibs=no
8346	cat <<EOF 1>&2
8347
8348*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8349*** create shared libraries on Solaris systems.  Therefore, libtool
8350*** is disabling shared libraries support.  We urge you to upgrade GNU
8351*** binutils to release 2.9.1 or newer.  Another option is to modify
8352*** your PATH or compiler configuration so that the native linker is
8353*** used, and then restart.
8354
8355EOF
8356      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8357	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8359      else
8360	ld_shlibs=no
8361      fi
8362      ;;
8363
8364    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8365      case `$LD -v 2>&1` in
8366        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8367	ld_shlibs=no
8368	cat <<_LT_EOF 1>&2
8369
8370*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8371*** reliably create shared libraries on SCO systems.  Therefore, libtool
8372*** is disabling shared libraries support.  We urge you to upgrade GNU
8373*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8374*** your PATH or compiler configuration so that the native linker is
8375*** used, and then restart.
8376
8377_LT_EOF
8378	;;
8379	*)
8380	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8381	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8382	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8383	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8384	  else
8385	    ld_shlibs=no
8386	  fi
8387	;;
8388      esac
8389      ;;
8390
8391    sunos4*)
8392      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8393      wlarc=
8394      hardcode_direct=yes
8395      hardcode_shlibpath_var=no
8396      ;;
8397
8398    *)
8399      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8400	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8402      else
8403	ld_shlibs=no
8404      fi
8405      ;;
8406    esac
8407
8408    if test "$ld_shlibs" = no; then
8409      runpath_var=
8410      hardcode_libdir_flag_spec=
8411      export_dynamic_flag_spec=
8412      whole_archive_flag_spec=
8413    fi
8414  else
8415    # PORTME fill in a description of your system's linker (not GNU ld)
8416    case $host_os in
8417    aix3*)
8418      allow_undefined_flag=unsupported
8419      always_export_symbols=yes
8420      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'
8421      # Note: this linker hardcodes the directories in LIBPATH if there
8422      # are no directories specified by -L.
8423      hardcode_minus_L=yes
8424      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8425	# Neither direct hardcoding nor static linking is supported with a
8426	# broken collect2.
8427	hardcode_direct=unsupported
8428      fi
8429      ;;
8430
8431    aix[4-9]*)
8432      if test "$host_cpu" = ia64; then
8433	# On IA64, the linker does run time linking by default, so we don't
8434	# have to do anything special.
8435	aix_use_runtimelinking=no
8436	exp_sym_flag='-Bexport'
8437	no_entry_flag=""
8438      else
8439	# If we're using GNU nm, then we don't want the "-C" option.
8440	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8441	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8442	  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'
8443	else
8444	  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'
8445	fi
8446	aix_use_runtimelinking=no
8447
8448	# Test if we are trying to use run time linking or normal
8449	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8450	# need to do runtime linking.
8451	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8452	  for ld_flag in $LDFLAGS; do
8453  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8454  	    aix_use_runtimelinking=yes
8455  	    break
8456  	  fi
8457	  done
8458	  ;;
8459	esac
8460
8461	exp_sym_flag='-bexport'
8462	no_entry_flag='-bnoentry'
8463      fi
8464
8465      # When large executables or shared objects are built, AIX ld can
8466      # have problems creating the table of contents.  If linking a library
8467      # or program results in "error TOC overflow" add -mminimal-toc to
8468      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8469      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8470
8471      archive_cmds=''
8472      hardcode_direct=yes
8473      hardcode_libdir_separator=':'
8474      link_all_deplibs=yes
8475
8476      if test "$GCC" = yes; then
8477	case $host_os in aix4.[012]|aix4.[012].*)
8478	# We only want to do this on AIX 4.2 and lower, the check
8479	# below for broken collect2 doesn't work under 4.3+
8480	  collect2name=`${CC} -print-prog-name=collect2`
8481	  if test -f "$collect2name" && \
8482  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8483	  then
8484  	  # We have reworked collect2
8485  	  :
8486	  else
8487  	  # We have old collect2
8488  	  hardcode_direct=unsupported
8489  	  # It fails to find uninstalled libraries when the uninstalled
8490  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8491  	  # to unsupported forces relinking
8492  	  hardcode_minus_L=yes
8493  	  hardcode_libdir_flag_spec='-L$libdir'
8494  	  hardcode_libdir_separator=
8495	  fi
8496	  ;;
8497	esac
8498	shared_flag='-shared'
8499	if test "$aix_use_runtimelinking" = yes; then
8500	  shared_flag="$shared_flag "'${wl}-G'
8501	fi
8502      else
8503	# not using gcc
8504	if test "$host_cpu" = ia64; then
8505  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8506  	# chokes on -Wl,-G. The following line is correct:
8507	  shared_flag='-G'
8508	else
8509	  if test "$aix_use_runtimelinking" = yes; then
8510	    shared_flag='${wl}-G'
8511	  else
8512	    shared_flag='${wl}-bM:SRE'
8513	  fi
8514	fi
8515      fi
8516
8517      # It seems that -bexpall does not export symbols beginning with
8518      # underscore (_), so it is better to generate a list of symbols to export.
8519      always_export_symbols=yes
8520      if test "$aix_use_runtimelinking" = yes; then
8521	# Warning - without using the other runtime loading flags (-brtl),
8522	# -berok will link without error, but may produce a broken library.
8523	allow_undefined_flag='-berok'
8524       # Determine the default libpath from the value encoded in an empty executable.
8525       cat >conftest.$ac_ext <<_ACEOF
8526/* confdefs.h.  */
8527_ACEOF
8528cat confdefs.h >>conftest.$ac_ext
8529cat >>conftest.$ac_ext <<_ACEOF
8530/* end confdefs.h.  */
8531
8532int
8533main ()
8534{
8535
8536  ;
8537  return 0;
8538}
8539_ACEOF
8540rm -f conftest.$ac_objext conftest$ac_exeext
8541if { (ac_try="$ac_link"
8542case "(($ac_try" in
8543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544  *) ac_try_echo=$ac_try;;
8545esac
8546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547$as_echo "$ac_try_echo") >&5
8548  (eval "$ac_link") 2>conftest.er1
8549  ac_status=$?
8550  grep -v '^ *+' conftest.er1 >conftest.err
8551  rm -f conftest.er1
8552  cat conftest.err >&5
8553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); } && {
8555	 test -z "$ac_c_werror_flag" ||
8556	 test ! -s conftest.err
8557       } && test -s conftest$ac_exeext && {
8558	 test "$cross_compiling" = yes ||
8559	 $as_test_x conftest$ac_exeext
8560       }; then
8561
8562lt_aix_libpath_sed='
8563    /Import File Strings/,/^$/ {
8564	/^0/ {
8565	    s/^0  *\(.*\)$/\1/
8566	    p
8567	}
8568    }'
8569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8570# Check for a 64-bit object if we didn't find anything.
8571if test -z "$aix_libpath"; then
8572  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573fi
8574else
8575  $as_echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578
8579fi
8580
8581rm -rf conftest.dSYM
8582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583      conftest$ac_exeext conftest.$ac_ext
8584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8585
8586       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8587	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"
8588       else
8589	if test "$host_cpu" = ia64; then
8590	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8591	  allow_undefined_flag="-z nodefs"
8592	  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"
8593	else
8594	 # Determine the default libpath from the value encoded in an empty executable.
8595	 cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h.  */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h.  */
8601
8602int
8603main ()
8604{
8605
8606  ;
8607  return 0;
8608}
8609_ACEOF
8610rm -f conftest.$ac_objext conftest$ac_exeext
8611if { (ac_try="$ac_link"
8612case "(($ac_try" in
8613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614  *) ac_try_echo=$ac_try;;
8615esac
8616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617$as_echo "$ac_try_echo") >&5
8618  (eval "$ac_link") 2>conftest.er1
8619  ac_status=$?
8620  grep -v '^ *+' conftest.er1 >conftest.err
8621  rm -f conftest.er1
8622  cat conftest.err >&5
8623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624  (exit $ac_status); } && {
8625	 test -z "$ac_c_werror_flag" ||
8626	 test ! -s conftest.err
8627       } && test -s conftest$ac_exeext && {
8628	 test "$cross_compiling" = yes ||
8629	 $as_test_x conftest$ac_exeext
8630       }; then
8631
8632lt_aix_libpath_sed='
8633    /Import File Strings/,/^$/ {
8634	/^0/ {
8635	    s/^0  *\(.*\)$/\1/
8636	    p
8637	}
8638    }'
8639aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8640# Check for a 64-bit object if we didn't find anything.
8641if test -z "$aix_libpath"; then
8642  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8643fi
8644else
8645  $as_echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
8648
8649fi
8650
8651rm -rf conftest.dSYM
8652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653      conftest$ac_exeext conftest.$ac_ext
8654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8655
8656	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8657	  # Warning - without using the other run time loading flags,
8658	  # -berok will link without error, but may produce a broken library.
8659	  no_undefined_flag=' ${wl}-bernotok'
8660	  allow_undefined_flag=' ${wl}-berok'
8661	  # Exported symbols can be pulled into shared objects from archives
8662	  whole_archive_flag_spec='$convenience'
8663	  archive_cmds_need_lc=yes
8664	  # This is similar to how AIX traditionally builds its shared libraries.
8665	  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'
8666	fi
8667      fi
8668      ;;
8669
8670    amigaos*)
8671      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)'
8672      hardcode_libdir_flag_spec='-L$libdir'
8673      hardcode_minus_L=yes
8674      # see comment about different semantics on the GNU ld section
8675      ld_shlibs=no
8676      ;;
8677
8678    bsdi[45]*)
8679      export_dynamic_flag_spec=-rdynamic
8680      ;;
8681
8682    cygwin* | mingw* | pw32*)
8683      # When not using gcc, we currently assume that we are using
8684      # Microsoft Visual C++.
8685      # hardcode_libdir_flag_spec is actually meaningless, as there is
8686      # no search path for DLLs.
8687      hardcode_libdir_flag_spec=' '
8688      allow_undefined_flag=unsupported
8689      # Tell ltmain to make .lib files, not .a files.
8690      libext=lib
8691      # Tell ltmain to make .dll files, not .so files.
8692      shrext_cmds=".dll"
8693      # FIXME: Setting linknames here is a bad hack.
8694      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8695      # The linker will automatically build a .lib file if we build a DLL.
8696      old_archive_From_new_cmds='true'
8697      # FIXME: Should let the user specify the lib program.
8698      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8699      fix_srcfile_path='`cygpath -w "$srcfile"`'
8700      enable_shared_with_static_runtimes=yes
8701      ;;
8702
8703    darwin* | rhapsody*)
8704      case $host_os in
8705        rhapsody* | darwin1.[012])
8706         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8707         ;;
8708       *) # Darwin 1.3 on
8709         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8710           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8711         else
8712           case ${MACOSX_DEPLOYMENT_TARGET} in
8713             10.[012])
8714               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8715               ;;
8716             10.*)
8717               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8718               ;;
8719           esac
8720         fi
8721         ;;
8722      esac
8723      archive_cmds_need_lc=no
8724      hardcode_direct=no
8725      hardcode_automatic=yes
8726      hardcode_shlibpath_var=unsupported
8727      whole_archive_flag_spec=''
8728      link_all_deplibs=yes
8729    if test "$GCC" = yes ; then
8730    	output_verbose_link_cmd='echo'
8731        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8732        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8733        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}"
8734        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}"
8735    else
8736      case $cc_basename in
8737        xlc*)
8738         output_verbose_link_cmd='echo'
8739         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8740         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8741          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8742         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}'
8743          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}'
8744          ;;
8745       *)
8746         ld_shlibs=no
8747          ;;
8748      esac
8749    fi
8750      ;;
8751
8752    dgux*)
8753      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754      hardcode_libdir_flag_spec='-L$libdir'
8755      hardcode_shlibpath_var=no
8756      ;;
8757
8758    freebsd1*)
8759      ld_shlibs=no
8760      ;;
8761
8762    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763    # support.  Future versions do this automatically, but an explicit c++rt0.o
8764    # does not break anything, and helps significantly (at the cost of a little
8765    # extra space).
8766    freebsd2.2*)
8767      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768      hardcode_libdir_flag_spec='-R$libdir'
8769      hardcode_direct=yes
8770      hardcode_shlibpath_var=no
8771      ;;
8772
8773    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8774    freebsd2*)
8775      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776      hardcode_direct=yes
8777      hardcode_minus_L=yes
8778      hardcode_shlibpath_var=no
8779      ;;
8780
8781    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782    freebsd* | dragonfly*)
8783      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784      hardcode_libdir_flag_spec='-R$libdir'
8785      hardcode_direct=yes
8786      hardcode_shlibpath_var=no
8787      ;;
8788
8789    hpux9*)
8790      if test "$GCC" = yes; then
8791	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'
8792      else
8793	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'
8794      fi
8795      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796      hardcode_libdir_separator=:
8797      hardcode_direct=yes
8798
8799      # hardcode_minus_L: Not really in the search PATH,
8800      # but as the default location of the library.
8801      hardcode_minus_L=yes
8802      export_dynamic_flag_spec='${wl}-E'
8803      ;;
8804
8805    hpux10*)
8806      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8807	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808      else
8809	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8810      fi
8811      if test "$with_gnu_ld" = no; then
8812	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813	hardcode_libdir_separator=:
8814
8815	hardcode_direct=yes
8816	export_dynamic_flag_spec='${wl}-E'
8817
8818	# hardcode_minus_L: Not really in the search PATH,
8819	# but as the default location of the library.
8820	hardcode_minus_L=yes
8821      fi
8822      ;;
8823
8824    hpux11*)
8825      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8826	case $host_cpu in
8827	hppa*64*)
8828	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829	  ;;
8830	ia64*)
8831	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832	  ;;
8833	*)
8834	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835	  ;;
8836	esac
8837      else
8838	case $host_cpu in
8839	hppa*64*)
8840	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	ia64*)
8843	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8844	  ;;
8845	*)
8846	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847	  ;;
8848	esac
8849      fi
8850      if test "$with_gnu_ld" = no; then
8851	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852	hardcode_libdir_separator=:
8853
8854	case $host_cpu in
8855	hppa*64*|ia64*)
8856	  hardcode_libdir_flag_spec_ld='+b $libdir'
8857	  hardcode_direct=no
8858	  hardcode_shlibpath_var=no
8859	  ;;
8860	*)
8861	  hardcode_direct=yes
8862	  export_dynamic_flag_spec='${wl}-E'
8863
8864	  # hardcode_minus_L: Not really in the search PATH,
8865	  # but as the default location of the library.
8866	  hardcode_minus_L=yes
8867	  ;;
8868	esac
8869      fi
8870      ;;
8871
8872    irix5* | irix6* | nonstopux*)
8873      if test "$GCC" = yes; then
8874	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'
8875      else
8876	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'
8877	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8878      fi
8879      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880      hardcode_libdir_separator=:
8881      link_all_deplibs=yes
8882      ;;
8883
8884    netbsd*)
8885      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8886	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8887      else
8888	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8889      fi
8890      hardcode_libdir_flag_spec='-R$libdir'
8891      hardcode_direct=yes
8892      hardcode_shlibpath_var=no
8893      ;;
8894
8895    newsos6)
8896      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897      hardcode_direct=yes
8898      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899      hardcode_libdir_separator=:
8900      hardcode_shlibpath_var=no
8901      ;;
8902
8903    openbsd*)
8904      if test -f /usr/libexec/ld.so; then
8905	hardcode_direct=yes
8906	hardcode_shlibpath_var=no
8907	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8908	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8910	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8911	  export_dynamic_flag_spec='${wl}-E'
8912	else
8913	  case $host_os in
8914	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8915	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8916	     hardcode_libdir_flag_spec='-R$libdir'
8917	     ;;
8918	   *)
8919	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8920	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8921	     ;;
8922	  esac
8923        fi
8924      else
8925	ld_shlibs=no
8926      fi
8927      ;;
8928
8929    os2*)
8930      hardcode_libdir_flag_spec='-L$libdir'
8931      hardcode_minus_L=yes
8932      allow_undefined_flag=unsupported
8933      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'
8934      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8935      ;;
8936
8937    osf3*)
8938      if test "$GCC" = yes; then
8939	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8940	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'
8941      else
8942	allow_undefined_flag=' -expect_unresolved \*'
8943	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'
8944      fi
8945      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946      hardcode_libdir_separator=:
8947      ;;
8948
8949    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8950      if test "$GCC" = yes; then
8951	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8952	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'
8953	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954      else
8955	allow_undefined_flag=' -expect_unresolved \*'
8956	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'
8957	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8958	$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'
8959
8960	# Both c and cxx compiler support -rpath directly
8961	hardcode_libdir_flag_spec='-rpath $libdir'
8962      fi
8963      hardcode_libdir_separator=:
8964      ;;
8965
8966    solaris*)
8967      no_undefined_flag=' -z text'
8968      if test "$GCC" = yes; then
8969	wlarc='${wl}'
8970	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8972	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8973      else
8974	wlarc=''
8975	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8978      fi
8979      hardcode_libdir_flag_spec='-R$libdir'
8980      hardcode_shlibpath_var=no
8981      case $host_os in
8982      solaris2.[0-5] | solaris2.[0-5].*) ;;
8983      *)
8984	# The compiler driver will combine and reorder linker options,
8985	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8986	# but is careful enough not to reorder.
8987 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8988	if test "$GCC" = yes; then
8989	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8990	else
8991	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8992	fi
8993	;;
8994      esac
8995      link_all_deplibs=yes
8996      ;;
8997
8998    sunos4*)
8999      if test "x$host_vendor" = xsequent; then
9000	# Use $CC to link under sequent, because it throws in some extra .o
9001	# files that make .init and .fini sections work.
9002	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9003      else
9004	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9005      fi
9006      hardcode_libdir_flag_spec='-L$libdir'
9007      hardcode_direct=yes
9008      hardcode_minus_L=yes
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    sysv4)
9013      case $host_vendor in
9014	sni)
9015	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016	  hardcode_direct=yes # is this really true???
9017	;;
9018	siemens)
9019	  ## LD is ld it makes a PLAMLIB
9020	  ## CC just makes a GrossModule.
9021	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9022	  reload_cmds='$CC -r -o $output$reload_objs'
9023	  hardcode_direct=no
9024        ;;
9025	motorola)
9026	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9028	;;
9029      esac
9030      runpath_var='LD_RUN_PATH'
9031      hardcode_shlibpath_var=no
9032      ;;
9033
9034    sysv4.3*)
9035      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036      hardcode_shlibpath_var=no
9037      export_dynamic_flag_spec='-Bexport'
9038      ;;
9039
9040    sysv4*MP*)
9041      if test -d /usr/nec; then
9042	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043	hardcode_shlibpath_var=no
9044	runpath_var=LD_RUN_PATH
9045	hardcode_runpath_var=yes
9046	ld_shlibs=yes
9047      fi
9048      ;;
9049
9050    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9051      no_undefined_flag='${wl}-z,text'
9052      archive_cmds_need_lc=no
9053      hardcode_shlibpath_var=no
9054      runpath_var='LD_RUN_PATH'
9055
9056      if test "$GCC" = yes; then
9057	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059      else
9060	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062      fi
9063      ;;
9064
9065    sysv5* | sco3.2v5* | sco5v6*)
9066      # Note: We can NOT use -z defs as we might desire, because we do not
9067      # link with -lc, and that would cause any symbols used from libc to
9068      # always be unresolved, which means just about no library would
9069      # ever link correctly.  If we're not using GNU ld we use -z text
9070      # though, which does catch some bad symbols but isn't as heavy-handed
9071      # as -z defs.
9072      no_undefined_flag='${wl}-z,text'
9073      allow_undefined_flag='${wl}-z,nodefs'
9074      archive_cmds_need_lc=no
9075      hardcode_shlibpath_var=no
9076      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9077      hardcode_libdir_separator=':'
9078      link_all_deplibs=yes
9079      export_dynamic_flag_spec='${wl}-Bexport'
9080      runpath_var='LD_RUN_PATH'
9081
9082      if test "$GCC" = yes; then
9083	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085      else
9086	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088      fi
9089      ;;
9090
9091    uts4*)
9092      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093      hardcode_libdir_flag_spec='-L$libdir'
9094      hardcode_shlibpath_var=no
9095      ;;
9096
9097    *)
9098      ld_shlibs=no
9099      ;;
9100    esac
9101  fi
9102
9103{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9104$as_echo "$ld_shlibs" >&6; }
9105test "$ld_shlibs" = no && can_build_shared=no
9106
9107#
9108# Do we need to explicitly link libc?
9109#
9110case "x$archive_cmds_need_lc" in
9111x|xyes)
9112  # Assume -lc should be added
9113  archive_cmds_need_lc=yes
9114
9115  if test "$enable_shared" = yes && test "$GCC" = yes; then
9116    case $archive_cmds in
9117    *'~'*)
9118      # FIXME: we may have to deal with multi-command sequences.
9119      ;;
9120    '$CC '*)
9121      # Test whether the compiler implicitly links with -lc since on some
9122      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9123      # to ld, don't add -lc before -lgcc.
9124      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9126      $rm conftest*
9127      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128
9129      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130  (eval $ac_compile) 2>&5
9131  ac_status=$?
9132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); } 2>conftest.err; then
9134        soname=conftest
9135        lib=conftest
9136        libobjs=conftest.$ac_objext
9137        deplibs=
9138        wl=$lt_prog_compiler_wl
9139	pic_flag=$lt_prog_compiler_pic
9140        compiler_flags=-v
9141        linker_flags=-v
9142        verstring=
9143        output_objdir=.
9144        libname=conftest
9145        lt_save_allow_undefined_flag=$allow_undefined_flag
9146        allow_undefined_flag=
9147        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9148  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9149  ac_status=$?
9150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); }
9152        then
9153	  archive_cmds_need_lc=no
9154        else
9155	  archive_cmds_need_lc=yes
9156        fi
9157        allow_undefined_flag=$lt_save_allow_undefined_flag
9158      else
9159        cat conftest.err 1>&5
9160      fi
9161      $rm conftest*
9162      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9163$as_echo "$archive_cmds_need_lc" >&6; }
9164      ;;
9165    esac
9166  fi
9167  ;;
9168esac
9169
9170{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9171$as_echo_n "checking dynamic linker characteristics... " >&6; }
9172library_names_spec=
9173libname_spec='lib$name'
9174soname_spec=
9175shrext_cmds=".so"
9176postinstall_cmds=
9177postuninstall_cmds=
9178finish_cmds=
9179finish_eval=
9180shlibpath_var=
9181shlibpath_overrides_runpath=unknown
9182version_type=none
9183dynamic_linker="$host_os ld.so"
9184sys_lib_dlsearch_path_spec="/lib /usr/lib"
9185
9186if test "$GCC" = yes; then
9187  case $host_os in
9188    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9189    *) lt_awk_arg="/^libraries:/" ;;
9190  esac
9191  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9192  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9193    # if the path contains ";" then we assume it to be the separator
9194    # otherwise default to the standard path separator (i.e. ":") - it is
9195    # assumed that no part of a normal pathname contains ";" but that should
9196    # okay in the real world where ";" in dirpaths is itself problematic.
9197    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9198  else
9199    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9200  fi
9201  # Ok, now we have the path, separated by spaces, we can step through it
9202  # and add multilib dir if necessary.
9203  lt_tmp_lt_search_path_spec=
9204  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9205  for lt_sys_path in $lt_search_path_spec; do
9206    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9207      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9208    else
9209      test -d "$lt_sys_path" && \
9210	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9211    fi
9212  done
9213  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9214BEGIN {RS=" "; FS="/|\n";} {
9215  lt_foo="";
9216  lt_count=0;
9217  for (lt_i = NF; lt_i > 0; lt_i--) {
9218    if ($lt_i != "" && $lt_i != ".") {
9219      if ($lt_i == "..") {
9220        lt_count++;
9221      } else {
9222        if (lt_count == 0) {
9223          lt_foo="/" $lt_i lt_foo;
9224        } else {
9225          lt_count--;
9226        }
9227      }
9228    }
9229  }
9230  if (lt_foo != "") { lt_freq[lt_foo]++; }
9231  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9232}'`
9233  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9234else
9235  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9236fi
9237need_lib_prefix=unknown
9238hardcode_into_libs=no
9239
9240# when you set need_version to no, make sure it does not cause -set_version
9241# flags to be left without arguments
9242need_version=unknown
9243
9244case $host_os in
9245aix3*)
9246  version_type=linux
9247  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9248  shlibpath_var=LIBPATH
9249
9250  # AIX 3 has no versioning support, so we append a major version to the name.
9251  soname_spec='${libname}${release}${shared_ext}$major'
9252  ;;
9253
9254aix[4-9]*)
9255  version_type=linux
9256  need_lib_prefix=no
9257  need_version=no
9258  hardcode_into_libs=yes
9259  if test "$host_cpu" = ia64; then
9260    # AIX 5 supports IA64
9261    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9262    shlibpath_var=LD_LIBRARY_PATH
9263  else
9264    # With GCC up to 2.95.x, collect2 would create an import file
9265    # for dependence libraries.  The import file would start with
9266    # the line `#! .'.  This would cause the generated library to
9267    # depend on `.', always an invalid library.  This was fixed in
9268    # development snapshots of GCC prior to 3.0.
9269    case $host_os in
9270      aix4 | aix4.[01] | aix4.[01].*)
9271      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9272	   echo ' yes '
9273	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9274	:
9275      else
9276	can_build_shared=no
9277      fi
9278      ;;
9279    esac
9280    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9281    # soname into executable. Probably we can add versioning support to
9282    # collect2, so additional links can be useful in future.
9283    if test "$aix_use_runtimelinking" = yes; then
9284      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9285      # instead of lib<name>.a to let people know that these are not
9286      # typical AIX shared libraries.
9287      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288    else
9289      # We preserve .a as extension for shared libraries through AIX4.2
9290      # and later when we are not doing run time linking.
9291      library_names_spec='${libname}${release}.a $libname.a'
9292      soname_spec='${libname}${release}${shared_ext}$major'
9293    fi
9294    shlibpath_var=LIBPATH
9295  fi
9296  ;;
9297
9298amigaos*)
9299  library_names_spec='$libname.ixlibrary $libname.a'
9300  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9301  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'
9302  ;;
9303
9304beos*)
9305  library_names_spec='${libname}${shared_ext}'
9306  dynamic_linker="$host_os ld.so"
9307  shlibpath_var=LIBRARY_PATH
9308  ;;
9309
9310bsdi[45]*)
9311  version_type=linux
9312  need_version=no
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314  soname_spec='${libname}${release}${shared_ext}$major'
9315  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9316  shlibpath_var=LD_LIBRARY_PATH
9317  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9318  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9319  # the default ld.so.conf also contains /usr/contrib/lib and
9320  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9321  # libtool to hard-code these into programs
9322  ;;
9323
9324cygwin* | mingw* | pw32*)
9325  version_type=windows
9326  shrext_cmds=".dll"
9327  need_version=no
9328  need_lib_prefix=no
9329
9330  case $GCC,$host_os in
9331  yes,cygwin* | yes,mingw* | yes,pw32*)
9332    library_names_spec='$libname.dll.a'
9333    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9334    postinstall_cmds='base_file=`basename \${file}`~
9335      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9336      dldir=$destdir/`dirname \$dlpath`~
9337      test -d \$dldir || mkdir -p \$dldir~
9338      $install_prog $dir/$dlname \$dldir/$dlname~
9339      chmod a+x \$dldir/$dlname'
9340    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9341      dlpath=$dir/\$dldll~
9342       $rm \$dlpath'
9343    shlibpath_overrides_runpath=yes
9344
9345    case $host_os in
9346    cygwin*)
9347      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9348      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9350      ;;
9351    mingw*)
9352      # MinGW DLLs use traditional 'lib' prefix
9353      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9355      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9356        # It is most probably a Windows format PATH printed by
9357        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9358        # path with ; separators, and with drive letters. We can handle the
9359        # drive letters (cygwin fileutils understands them), so leave them,
9360        # especially as we might pass files found there to a mingw objdump,
9361        # which wouldn't understand a cygwinified path. Ahh.
9362        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9363      else
9364        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9365      fi
9366      ;;
9367    pw32*)
9368      # pw32 DLLs use 'pw' prefix rather than 'lib'
9369      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370      ;;
9371    esac
9372    ;;
9373
9374  *)
9375    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9376    ;;
9377  esac
9378  dynamic_linker='Win32 ld.exe'
9379  # FIXME: first we should search . and the directory the executable is in
9380  shlibpath_var=PATH
9381  ;;
9382
9383darwin* | rhapsody*)
9384  dynamic_linker="$host_os dyld"
9385  version_type=darwin
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9389  soname_spec='${libname}${release}${major}$shared_ext'
9390  shlibpath_overrides_runpath=yes
9391  shlibpath_var=DYLD_LIBRARY_PATH
9392  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9393
9394  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9395  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9396  ;;
9397
9398dgux*)
9399  version_type=linux
9400  need_lib_prefix=no
9401  need_version=no
9402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9403  soname_spec='${libname}${release}${shared_ext}$major'
9404  shlibpath_var=LD_LIBRARY_PATH
9405  ;;
9406
9407freebsd1*)
9408  dynamic_linker=no
9409  ;;
9410
9411freebsd* | dragonfly*)
9412  # DragonFly does not have aout.  When/if they implement a new
9413  # versioning mechanism, adjust this.
9414  if test -x /usr/bin/objformat; then
9415    objformat=`/usr/bin/objformat`
9416  else
9417    case $host_os in
9418    freebsd[123]*) objformat=aout ;;
9419    *) objformat=elf ;;
9420    esac
9421  fi
9422  version_type=freebsd-$objformat
9423  case $version_type in
9424    freebsd-elf*)
9425      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9426      need_version=no
9427      need_lib_prefix=no
9428      ;;
9429    freebsd-*)
9430      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9431      need_version=yes
9432      ;;
9433  esac
9434  shlibpath_var=LD_LIBRARY_PATH
9435  case $host_os in
9436  freebsd2*)
9437    shlibpath_overrides_runpath=yes
9438    ;;
9439  freebsd3.[01]* | freebsdelf3.[01]*)
9440    shlibpath_overrides_runpath=yes
9441    hardcode_into_libs=yes
9442    ;;
9443  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9444  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9445    shlibpath_overrides_runpath=no
9446    hardcode_into_libs=yes
9447    ;;
9448  *) # from 4.6 on, and DragonFly
9449    shlibpath_overrides_runpath=yes
9450    hardcode_into_libs=yes
9451    ;;
9452  esac
9453  ;;
9454
9455gnu*)
9456  version_type=linux
9457  need_lib_prefix=no
9458  need_version=no
9459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9460  soname_spec='${libname}${release}${shared_ext}$major'
9461  shlibpath_var=LD_LIBRARY_PATH
9462  hardcode_into_libs=yes
9463  ;;
9464
9465hpux9* | hpux10* | hpux11*)
9466  # Give a soname corresponding to the major version so that dld.sl refuses to
9467  # link against other versions.
9468  version_type=sunos
9469  need_lib_prefix=no
9470  need_version=no
9471  case $host_cpu in
9472  ia64*)
9473    shrext_cmds='.so'
9474    hardcode_into_libs=yes
9475    dynamic_linker="$host_os dld.so"
9476    shlibpath_var=LD_LIBRARY_PATH
9477    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9478    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479    soname_spec='${libname}${release}${shared_ext}$major'
9480    if test "X$HPUX_IA64_MODE" = X32; then
9481      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9482    else
9483      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9484    fi
9485    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486    ;;
9487   hppa*64*)
9488     shrext_cmds='.sl'
9489     hardcode_into_libs=yes
9490     dynamic_linker="$host_os dld.sl"
9491     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494     soname_spec='${libname}${release}${shared_ext}$major'
9495     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9496     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9497     ;;
9498   *)
9499    shrext_cmds='.sl'
9500    dynamic_linker="$host_os dld.sl"
9501    shlibpath_var=SHLIB_PATH
9502    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504    soname_spec='${libname}${release}${shared_ext}$major'
9505    ;;
9506  esac
9507  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9508  postinstall_cmds='chmod 555 $lib'
9509  ;;
9510
9511interix[3-9]*)
9512  version_type=linux
9513  need_lib_prefix=no
9514  need_version=no
9515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516  soname_spec='${libname}${release}${shared_ext}$major'
9517  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  shlibpath_overrides_runpath=no
9520  hardcode_into_libs=yes
9521  ;;
9522
9523irix5* | irix6* | nonstopux*)
9524  case $host_os in
9525    nonstopux*) version_type=nonstopux ;;
9526    *)
9527	if test "$lt_cv_prog_gnu_ld" = yes; then
9528		version_type=linux
9529	else
9530		version_type=irix
9531	fi ;;
9532  esac
9533  need_lib_prefix=no
9534  need_version=no
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9537  case $host_os in
9538  irix5* | nonstopux*)
9539    libsuff= shlibsuff=
9540    ;;
9541  *)
9542    case $LD in # libtool.m4 will add one of these switches to LD
9543    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544      libsuff= shlibsuff= libmagic=32-bit;;
9545    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546      libsuff=32 shlibsuff=N32 libmagic=N32;;
9547    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549    *) libsuff= shlibsuff= libmagic=never-match;;
9550    esac
9551    ;;
9552  esac
9553  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554  shlibpath_overrides_runpath=no
9555  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557  hardcode_into_libs=yes
9558  ;;
9559
9560# No shared lib support for Linux oldld, aout, or coff.
9561linux*oldld* | linux*aout* | linux*coff*)
9562  dynamic_linker=no
9563  ;;
9564
9565# This must be Linux ELF.
9566linux* | k*bsd*-gnu)
9567  version_type=linux
9568  need_lib_prefix=no
9569  need_version=no
9570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571  soname_spec='${libname}${release}${shared_ext}$major'
9572  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573  shlibpath_var=LD_LIBRARY_PATH
9574  shlibpath_overrides_runpath=no
9575  # This implies no fast_install, which is unacceptable.
9576  # Some rework will be needed to allow for fast_install
9577  # before this can be enabled.
9578  hardcode_into_libs=yes
9579  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9580  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9581
9582  # Append ld.so.conf contents to the search path
9583  if test -f /etc/ld.so.conf; then
9584    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' ' '`
9585    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9586  fi
9587
9588  # We used to test for /lib/ld.so.1 and disable shared libraries on
9589  # powerpc, because MkLinux only supported shared libraries with the
9590  # GNU dynamic linker.  Since this was broken with cross compilers,
9591  # most powerpc-linux boxes support dynamic linking these days and
9592  # people can always --disable-shared, the test was removed, and we
9593  # assume the GNU/Linux dynamic linker is in use.
9594  dynamic_linker='GNU/Linux ld.so'
9595  ;;
9596
9597netbsd*)
9598  version_type=sunos
9599  need_lib_prefix=no
9600  need_version=no
9601  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9604    dynamic_linker='NetBSD (a.out) ld.so'
9605  else
9606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9607    soname_spec='${libname}${release}${shared_ext}$major'
9608    dynamic_linker='NetBSD ld.elf_so'
9609  fi
9610  shlibpath_var=LD_LIBRARY_PATH
9611  shlibpath_overrides_runpath=yes
9612  hardcode_into_libs=yes
9613  ;;
9614
9615newsos6)
9616  version_type=linux
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  shlibpath_var=LD_LIBRARY_PATH
9619  shlibpath_overrides_runpath=yes
9620  ;;
9621
9622nto-qnx*)
9623  version_type=linux
9624  need_lib_prefix=no
9625  need_version=no
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  shlibpath_overrides_runpath=yes
9630  ;;
9631
9632openbsd*)
9633  version_type=sunos
9634  sys_lib_dlsearch_path_spec="/usr/lib"
9635  need_lib_prefix=no
9636  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9637  case $host_os in
9638    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9639    *)                         need_version=no  ;;
9640  esac
9641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9642  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9643  shlibpath_var=LD_LIBRARY_PATH
9644  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9645    case $host_os in
9646      openbsd2.[89] | openbsd2.[89].*)
9647	shlibpath_overrides_runpath=no
9648	;;
9649      *)
9650	shlibpath_overrides_runpath=yes
9651	;;
9652      esac
9653  else
9654    shlibpath_overrides_runpath=yes
9655  fi
9656  ;;
9657
9658os2*)
9659  libname_spec='$name'
9660  shrext_cmds=".dll"
9661  need_lib_prefix=no
9662  library_names_spec='$libname${shared_ext} $libname.a'
9663  dynamic_linker='OS/2 ld.exe'
9664  shlibpath_var=LIBPATH
9665  ;;
9666
9667osf3* | osf4* | osf5*)
9668  version_type=osf
9669  need_lib_prefix=no
9670  need_version=no
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673  shlibpath_var=LD_LIBRARY_PATH
9674  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9675  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9676  ;;
9677
9678rdos*)
9679  dynamic_linker=no
9680  ;;
9681
9682solaris*)
9683  version_type=linux
9684  need_lib_prefix=no
9685  need_version=no
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=yes
9690  hardcode_into_libs=yes
9691  # ldd complains unless libraries are executable
9692  postinstall_cmds='chmod +x $lib'
9693  ;;
9694
9695sunos4*)
9696  version_type=sunos
9697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9698  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9699  shlibpath_var=LD_LIBRARY_PATH
9700  shlibpath_overrides_runpath=yes
9701  if test "$with_gnu_ld" = yes; then
9702    need_lib_prefix=no
9703  fi
9704  need_version=yes
9705  ;;
9706
9707sysv4 | sysv4.3*)
9708  version_type=linux
9709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710  soname_spec='${libname}${release}${shared_ext}$major'
9711  shlibpath_var=LD_LIBRARY_PATH
9712  case $host_vendor in
9713    sni)
9714      shlibpath_overrides_runpath=no
9715      need_lib_prefix=no
9716      export_dynamic_flag_spec='${wl}-Blargedynsym'
9717      runpath_var=LD_RUN_PATH
9718      ;;
9719    siemens)
9720      need_lib_prefix=no
9721      ;;
9722    motorola)
9723      need_lib_prefix=no
9724      need_version=no
9725      shlibpath_overrides_runpath=no
9726      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9727      ;;
9728  esac
9729  ;;
9730
9731sysv4*MP*)
9732  if test -d /usr/nec ;then
9733    version_type=linux
9734    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9735    soname_spec='$libname${shared_ext}.$major'
9736    shlibpath_var=LD_LIBRARY_PATH
9737  fi
9738  ;;
9739
9740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9741  version_type=freebsd-elf
9742  need_lib_prefix=no
9743  need_version=no
9744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9745  soname_spec='${libname}${release}${shared_ext}$major'
9746  shlibpath_var=LD_LIBRARY_PATH
9747  hardcode_into_libs=yes
9748  if test "$with_gnu_ld" = yes; then
9749    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9750    shlibpath_overrides_runpath=no
9751  else
9752    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9753    shlibpath_overrides_runpath=yes
9754    case $host_os in
9755      sco3.2v5*)
9756        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9757	;;
9758    esac
9759  fi
9760  sys_lib_dlsearch_path_spec='/usr/lib'
9761  ;;
9762
9763uts4*)
9764  version_type=linux
9765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766  soname_spec='${libname}${release}${shared_ext}$major'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  ;;
9769
9770*)
9771  dynamic_linker=no
9772  ;;
9773esac
9774{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9775$as_echo "$dynamic_linker" >&6; }
9776test "$dynamic_linker" = no && can_build_shared=no
9777
9778if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9779  $as_echo_n "(cached) " >&6
9780else
9781  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9782fi
9783
9784sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9785if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9786  $as_echo_n "(cached) " >&6
9787else
9788  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9789fi
9790
9791sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9792
9793variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9794if test "$GCC" = yes; then
9795  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9796fi
9797
9798{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9799$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9800hardcode_action=
9801if test -n "$hardcode_libdir_flag_spec" || \
9802   test -n "$runpath_var" || \
9803   test "X$hardcode_automatic" = "Xyes" ; then
9804
9805  # We can hardcode non-existant directories.
9806  if test "$hardcode_direct" != no &&
9807     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9808     # have to relink, otherwise we might link with an installed library
9809     # when we should be linking with a yet-to-be-installed one
9810     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9811     test "$hardcode_minus_L" != no; then
9812    # Linking always hardcodes the temporary library directory.
9813    hardcode_action=relink
9814  else
9815    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9816    hardcode_action=immediate
9817  fi
9818else
9819  # We cannot hardcode anything, or else we can only hardcode existing
9820  # directories.
9821  hardcode_action=unsupported
9822fi
9823{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9824$as_echo "$hardcode_action" >&6; }
9825
9826if test "$hardcode_action" = relink; then
9827  # Fast installation is not supported
9828  enable_fast_install=no
9829elif test "$shlibpath_overrides_runpath" = yes ||
9830     test "$enable_shared" = no; then
9831  # Fast installation is not necessary
9832  enable_fast_install=needless
9833fi
9834
9835striplib=
9836old_striplib=
9837{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9838$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9839if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9840  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9841  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9842  { $as_echo "$as_me:$LINENO: result: yes" >&5
9843$as_echo "yes" >&6; }
9844else
9845# FIXME - insert some real tests, host_os isn't really good enough
9846  case $host_os in
9847   darwin*)
9848       if test -n "$STRIP" ; then
9849         striplib="$STRIP -x"
9850         old_striplib="$STRIP -S"
9851         { $as_echo "$as_me:$LINENO: result: yes" >&5
9852$as_echo "yes" >&6; }
9853       else
9854  { $as_echo "$as_me:$LINENO: result: no" >&5
9855$as_echo "no" >&6; }
9856fi
9857       ;;
9858   *)
9859  { $as_echo "$as_me:$LINENO: result: no" >&5
9860$as_echo "no" >&6; }
9861    ;;
9862  esac
9863fi
9864
9865if test "x$enable_dlopen" != xyes; then
9866  enable_dlopen=unknown
9867  enable_dlopen_self=unknown
9868  enable_dlopen_self_static=unknown
9869else
9870  lt_cv_dlopen=no
9871  lt_cv_dlopen_libs=
9872
9873  case $host_os in
9874  beos*)
9875    lt_cv_dlopen="load_add_on"
9876    lt_cv_dlopen_libs=
9877    lt_cv_dlopen_self=yes
9878    ;;
9879
9880  mingw* | pw32*)
9881    lt_cv_dlopen="LoadLibrary"
9882    lt_cv_dlopen_libs=
9883   ;;
9884
9885  cygwin*)
9886    lt_cv_dlopen="dlopen"
9887    lt_cv_dlopen_libs=
9888   ;;
9889
9890  darwin*)
9891  # if libdl is installed we need to link against it
9892    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9893$as_echo_n "checking for dlopen in -ldl... " >&6; }
9894if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9895  $as_echo_n "(cached) " >&6
9896else
9897  ac_check_lib_save_LIBS=$LIBS
9898LIBS="-ldl  $LIBS"
9899cat >conftest.$ac_ext <<_ACEOF
9900/* confdefs.h.  */
9901_ACEOF
9902cat confdefs.h >>conftest.$ac_ext
9903cat >>conftest.$ac_ext <<_ACEOF
9904/* end confdefs.h.  */
9905
9906/* Override any GCC internal prototype to avoid an error.
9907   Use char because int might match the return type of a GCC
9908   builtin and then its argument prototype would still apply.  */
9909#ifdef __cplusplus
9910extern "C"
9911#endif
9912char dlopen ();
9913int
9914main ()
9915{
9916return dlopen ();
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921rm -f conftest.$ac_objext conftest$ac_exeext
9922if { (ac_try="$ac_link"
9923case "(($ac_try" in
9924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925  *) ac_try_echo=$ac_try;;
9926esac
9927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9928$as_echo "$ac_try_echo") >&5
9929  (eval "$ac_link") 2>conftest.er1
9930  ac_status=$?
9931  grep -v '^ *+' conftest.er1 >conftest.err
9932  rm -f conftest.er1
9933  cat conftest.err >&5
9934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935  (exit $ac_status); } && {
9936	 test -z "$ac_c_werror_flag" ||
9937	 test ! -s conftest.err
9938       } && test -s conftest$ac_exeext && {
9939	 test "$cross_compiling" = yes ||
9940	 $as_test_x conftest$ac_exeext
9941       }; then
9942  ac_cv_lib_dl_dlopen=yes
9943else
9944  $as_echo "$as_me: failed program was:" >&5
9945sed 's/^/| /' conftest.$ac_ext >&5
9946
9947	ac_cv_lib_dl_dlopen=no
9948fi
9949
9950rm -rf conftest.dSYM
9951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952      conftest$ac_exeext conftest.$ac_ext
9953LIBS=$ac_check_lib_save_LIBS
9954fi
9955{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9956$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9957if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9958  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9959else
9960
9961    lt_cv_dlopen="dyld"
9962    lt_cv_dlopen_libs=
9963    lt_cv_dlopen_self=yes
9964
9965fi
9966
9967   ;;
9968
9969  *)
9970    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9971$as_echo_n "checking for shl_load... " >&6; }
9972if test "${ac_cv_func_shl_load+set}" = set; then
9973  $as_echo_n "(cached) " >&6
9974else
9975  cat >conftest.$ac_ext <<_ACEOF
9976/* confdefs.h.  */
9977_ACEOF
9978cat confdefs.h >>conftest.$ac_ext
9979cat >>conftest.$ac_ext <<_ACEOF
9980/* end confdefs.h.  */
9981/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9982   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9983#define shl_load innocuous_shl_load
9984
9985/* System header to define __stub macros and hopefully few prototypes,
9986    which can conflict with char shl_load (); below.
9987    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988    <limits.h> exists even on freestanding compilers.  */
9989
9990#ifdef __STDC__
9991# include <limits.h>
9992#else
9993# include <assert.h>
9994#endif
9995
9996#undef shl_load
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char shl_load ();
10005/* The GNU C library defines this for functions which it implements
10006    to always fail with ENOSYS.  Some functions are actually named
10007    something starting with __ and the normal name is an alias.  */
10008#if defined __stub_shl_load || defined __stub___shl_load
10009choke me
10010#endif
10011
10012int
10013main ()
10014{
10015return shl_load ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024  *) ac_try_echo=$ac_try;;
10025esac
10026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027$as_echo "$ac_try_echo") >&5
10028  (eval "$ac_link") 2>conftest.er1
10029  ac_status=$?
10030  grep -v '^ *+' conftest.er1 >conftest.err
10031  rm -f conftest.er1
10032  cat conftest.err >&5
10033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); } && {
10035	 test -z "$ac_c_werror_flag" ||
10036	 test ! -s conftest.err
10037       } && test -s conftest$ac_exeext && {
10038	 test "$cross_compiling" = yes ||
10039	 $as_test_x conftest$ac_exeext
10040       }; then
10041  ac_cv_func_shl_load=yes
10042else
10043  $as_echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046	ac_cv_func_shl_load=no
10047fi
10048
10049rm -rf conftest.dSYM
10050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10051      conftest$ac_exeext conftest.$ac_ext
10052fi
10053{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10054$as_echo "$ac_cv_func_shl_load" >&6; }
10055if test "x$ac_cv_func_shl_load" = x""yes; then
10056  lt_cv_dlopen="shl_load"
10057else
10058  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10059$as_echo_n "checking for shl_load in -ldld... " >&6; }
10060if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10061  $as_echo_n "(cached) " >&6
10062else
10063  ac_check_lib_save_LIBS=$LIBS
10064LIBS="-ldld  $LIBS"
10065cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h.  */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h.  */
10071
10072/* Override any GCC internal prototype to avoid an error.
10073   Use char because int might match the return type of a GCC
10074   builtin and then its argument prototype would still apply.  */
10075#ifdef __cplusplus
10076extern "C"
10077#endif
10078char shl_load ();
10079int
10080main ()
10081{
10082return shl_load ();
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091  *) ac_try_echo=$ac_try;;
10092esac
10093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10094$as_echo "$ac_try_echo") >&5
10095  (eval "$ac_link") 2>conftest.er1
10096  ac_status=$?
10097  grep -v '^ *+' conftest.er1 >conftest.err
10098  rm -f conftest.er1
10099  cat conftest.err >&5
10100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101  (exit $ac_status); } && {
10102	 test -z "$ac_c_werror_flag" ||
10103	 test ! -s conftest.err
10104       } && test -s conftest$ac_exeext && {
10105	 test "$cross_compiling" = yes ||
10106	 $as_test_x conftest$ac_exeext
10107       }; then
10108  ac_cv_lib_dld_shl_load=yes
10109else
10110  $as_echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
10113	ac_cv_lib_dld_shl_load=no
10114fi
10115
10116rm -rf conftest.dSYM
10117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118      conftest$ac_exeext conftest.$ac_ext
10119LIBS=$ac_check_lib_save_LIBS
10120fi
10121{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10122$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10123if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10124  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10125else
10126  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10127$as_echo_n "checking for dlopen... " >&6; }
10128if test "${ac_cv_func_dlopen+set}" = set; then
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h.  */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h.  */
10137/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10138   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10139#define dlopen innocuous_dlopen
10140
10141/* System header to define __stub macros and hopefully few prototypes,
10142    which can conflict with char dlopen (); below.
10143    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10144    <limits.h> exists even on freestanding compilers.  */
10145
10146#ifdef __STDC__
10147# include <limits.h>
10148#else
10149# include <assert.h>
10150#endif
10151
10152#undef dlopen
10153
10154/* Override any GCC internal prototype to avoid an error.
10155   Use char because int might match the return type of a GCC
10156   builtin and then its argument prototype would still apply.  */
10157#ifdef __cplusplus
10158extern "C"
10159#endif
10160char dlopen ();
10161/* The GNU C library defines this for functions which it implements
10162    to always fail with ENOSYS.  Some functions are actually named
10163    something starting with __ and the normal name is an alias.  */
10164#if defined __stub_dlopen || defined __stub___dlopen
10165choke me
10166#endif
10167
10168int
10169main ()
10170{
10171return dlopen ();
10172  ;
10173  return 0;
10174}
10175_ACEOF
10176rm -f conftest.$ac_objext conftest$ac_exeext
10177if { (ac_try="$ac_link"
10178case "(($ac_try" in
10179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180  *) ac_try_echo=$ac_try;;
10181esac
10182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10183$as_echo "$ac_try_echo") >&5
10184  (eval "$ac_link") 2>conftest.er1
10185  ac_status=$?
10186  grep -v '^ *+' conftest.er1 >conftest.err
10187  rm -f conftest.er1
10188  cat conftest.err >&5
10189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); } && {
10191	 test -z "$ac_c_werror_flag" ||
10192	 test ! -s conftest.err
10193       } && test -s conftest$ac_exeext && {
10194	 test "$cross_compiling" = yes ||
10195	 $as_test_x conftest$ac_exeext
10196       }; then
10197  ac_cv_func_dlopen=yes
10198else
10199  $as_echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202	ac_cv_func_dlopen=no
10203fi
10204
10205rm -rf conftest.dSYM
10206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207      conftest$ac_exeext conftest.$ac_ext
10208fi
10209{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10210$as_echo "$ac_cv_func_dlopen" >&6; }
10211if test "x$ac_cv_func_dlopen" = x""yes; then
10212  lt_cv_dlopen="dlopen"
10213else
10214  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10215$as_echo_n "checking for dlopen in -ldl... " >&6; }
10216if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10217  $as_echo_n "(cached) " >&6
10218else
10219  ac_check_lib_save_LIBS=$LIBS
10220LIBS="-ldl  $LIBS"
10221cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h.  */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h.  */
10227
10228/* Override any GCC internal prototype to avoid an error.
10229   Use char because int might match the return type of a GCC
10230   builtin and then its argument prototype would still apply.  */
10231#ifdef __cplusplus
10232extern "C"
10233#endif
10234char dlopen ();
10235int
10236main ()
10237{
10238return dlopen ();
10239  ;
10240  return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250$as_echo "$ac_try_echo") >&5
10251  (eval "$ac_link") 2>conftest.er1
10252  ac_status=$?
10253  grep -v '^ *+' conftest.er1 >conftest.err
10254  rm -f conftest.er1
10255  cat conftest.err >&5
10256  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); } && {
10258	 test -z "$ac_c_werror_flag" ||
10259	 test ! -s conftest.err
10260       } && test -s conftest$ac_exeext && {
10261	 test "$cross_compiling" = yes ||
10262	 $as_test_x conftest$ac_exeext
10263       }; then
10264  ac_cv_lib_dl_dlopen=yes
10265else
10266  $as_echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269	ac_cv_lib_dl_dlopen=no
10270fi
10271
10272rm -rf conftest.dSYM
10273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10274      conftest$ac_exeext conftest.$ac_ext
10275LIBS=$ac_check_lib_save_LIBS
10276fi
10277{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10278$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10279if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10280  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10281else
10282  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10283$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10284if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10285  $as_echo_n "(cached) " >&6
10286else
10287  ac_check_lib_save_LIBS=$LIBS
10288LIBS="-lsvld  $LIBS"
10289cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h.  */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h.  */
10295
10296/* Override any GCC internal prototype to avoid an error.
10297   Use char because int might match the return type of a GCC
10298   builtin and then its argument prototype would still apply.  */
10299#ifdef __cplusplus
10300extern "C"
10301#endif
10302char dlopen ();
10303int
10304main ()
10305{
10306return dlopen ();
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext conftest$ac_exeext
10312if { (ac_try="$ac_link"
10313case "(($ac_try" in
10314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315  *) ac_try_echo=$ac_try;;
10316esac
10317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10318$as_echo "$ac_try_echo") >&5
10319  (eval "$ac_link") 2>conftest.er1
10320  ac_status=$?
10321  grep -v '^ *+' conftest.er1 >conftest.err
10322  rm -f conftest.er1
10323  cat conftest.err >&5
10324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); } && {
10326	 test -z "$ac_c_werror_flag" ||
10327	 test ! -s conftest.err
10328       } && test -s conftest$ac_exeext && {
10329	 test "$cross_compiling" = yes ||
10330	 $as_test_x conftest$ac_exeext
10331       }; then
10332  ac_cv_lib_svld_dlopen=yes
10333else
10334  $as_echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337	ac_cv_lib_svld_dlopen=no
10338fi
10339
10340rm -rf conftest.dSYM
10341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10342      conftest$ac_exeext conftest.$ac_ext
10343LIBS=$ac_check_lib_save_LIBS
10344fi
10345{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10346$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10347if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10348  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10349else
10350  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10351$as_echo_n "checking for dld_link in -ldld... " >&6; }
10352if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10353  $as_echo_n "(cached) " >&6
10354else
10355  ac_check_lib_save_LIBS=$LIBS
10356LIBS="-ldld  $LIBS"
10357cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h.  */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h.  */
10363
10364/* Override any GCC internal prototype to avoid an error.
10365   Use char because int might match the return type of a GCC
10366   builtin and then its argument prototype would still apply.  */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370char dld_link ();
10371int
10372main ()
10373{
10374return dld_link ();
10375  ;
10376  return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
10380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383  *) ac_try_echo=$ac_try;;
10384esac
10385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10386$as_echo "$ac_try_echo") >&5
10387  (eval "$ac_link") 2>conftest.er1
10388  ac_status=$?
10389  grep -v '^ *+' conftest.er1 >conftest.err
10390  rm -f conftest.er1
10391  cat conftest.err >&5
10392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); } && {
10394	 test -z "$ac_c_werror_flag" ||
10395	 test ! -s conftest.err
10396       } && test -s conftest$ac_exeext && {
10397	 test "$cross_compiling" = yes ||
10398	 $as_test_x conftest$ac_exeext
10399       }; then
10400  ac_cv_lib_dld_dld_link=yes
10401else
10402  $as_echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405	ac_cv_lib_dld_dld_link=no
10406fi
10407
10408rm -rf conftest.dSYM
10409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10410      conftest$ac_exeext conftest.$ac_ext
10411LIBS=$ac_check_lib_save_LIBS
10412fi
10413{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10414$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10415if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10416  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10417fi
10418
10419
10420fi
10421
10422
10423fi
10424
10425
10426fi
10427
10428
10429fi
10430
10431
10432fi
10433
10434    ;;
10435  esac
10436
10437  if test "x$lt_cv_dlopen" != xno; then
10438    enable_dlopen=yes
10439  else
10440    enable_dlopen=no
10441  fi
10442
10443  case $lt_cv_dlopen in
10444  dlopen)
10445    save_CPPFLAGS="$CPPFLAGS"
10446    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10447
10448    save_LDFLAGS="$LDFLAGS"
10449    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10450
10451    save_LIBS="$LIBS"
10452    LIBS="$lt_cv_dlopen_libs $LIBS"
10453
10454    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10455$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10456if test "${lt_cv_dlopen_self+set}" = set; then
10457  $as_echo_n "(cached) " >&6
10458else
10459  	  if test "$cross_compiling" = yes; then :
10460  lt_cv_dlopen_self=cross
10461else
10462  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10463  lt_status=$lt_dlunknown
10464  cat > conftest.$ac_ext <<EOF
10465#line 10465 "configure"
10466#include "confdefs.h"
10467
10468#if HAVE_DLFCN_H
10469#include <dlfcn.h>
10470#endif
10471
10472#include <stdio.h>
10473
10474#ifdef RTLD_GLOBAL
10475#  define LT_DLGLOBAL		RTLD_GLOBAL
10476#else
10477#  ifdef DL_GLOBAL
10478#    define LT_DLGLOBAL		DL_GLOBAL
10479#  else
10480#    define LT_DLGLOBAL		0
10481#  endif
10482#endif
10483
10484/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10485   find out it does not work in some platform. */
10486#ifndef LT_DLLAZY_OR_NOW
10487#  ifdef RTLD_LAZY
10488#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10489#  else
10490#    ifdef DL_LAZY
10491#      define LT_DLLAZY_OR_NOW		DL_LAZY
10492#    else
10493#      ifdef RTLD_NOW
10494#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10495#      else
10496#        ifdef DL_NOW
10497#          define LT_DLLAZY_OR_NOW	DL_NOW
10498#        else
10499#          define LT_DLLAZY_OR_NOW	0
10500#        endif
10501#      endif
10502#    endif
10503#  endif
10504#endif
10505
10506#ifdef __cplusplus
10507extern "C" void exit (int);
10508#endif
10509
10510void fnord() { int i=42;}
10511int main ()
10512{
10513  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10514  int status = $lt_dlunknown;
10515
10516  if (self)
10517    {
10518      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10519      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10520      /* dlclose (self); */
10521    }
10522  else
10523    puts (dlerror ());
10524
10525    exit (status);
10526}
10527EOF
10528  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529  (eval $ac_link) 2>&5
10530  ac_status=$?
10531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10533    (./conftest; exit; ) >&5 2>/dev/null
10534    lt_status=$?
10535    case x$lt_status in
10536      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10537      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10538      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10539    esac
10540  else :
10541    # compilation failed
10542    lt_cv_dlopen_self=no
10543  fi
10544fi
10545rm -fr conftest*
10546
10547
10548fi
10549{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10550$as_echo "$lt_cv_dlopen_self" >&6; }
10551
10552    if test "x$lt_cv_dlopen_self" = xyes; then
10553      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10554      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10555$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10556if test "${lt_cv_dlopen_self_static+set}" = set; then
10557  $as_echo_n "(cached) " >&6
10558else
10559  	  if test "$cross_compiling" = yes; then :
10560  lt_cv_dlopen_self_static=cross
10561else
10562  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10563  lt_status=$lt_dlunknown
10564  cat > conftest.$ac_ext <<EOF
10565#line 10565 "configure"
10566#include "confdefs.h"
10567
10568#if HAVE_DLFCN_H
10569#include <dlfcn.h>
10570#endif
10571
10572#include <stdio.h>
10573
10574#ifdef RTLD_GLOBAL
10575#  define LT_DLGLOBAL		RTLD_GLOBAL
10576#else
10577#  ifdef DL_GLOBAL
10578#    define LT_DLGLOBAL		DL_GLOBAL
10579#  else
10580#    define LT_DLGLOBAL		0
10581#  endif
10582#endif
10583
10584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10585   find out it does not work in some platform. */
10586#ifndef LT_DLLAZY_OR_NOW
10587#  ifdef RTLD_LAZY
10588#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10589#  else
10590#    ifdef DL_LAZY
10591#      define LT_DLLAZY_OR_NOW		DL_LAZY
10592#    else
10593#      ifdef RTLD_NOW
10594#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10595#      else
10596#        ifdef DL_NOW
10597#          define LT_DLLAZY_OR_NOW	DL_NOW
10598#        else
10599#          define LT_DLLAZY_OR_NOW	0
10600#        endif
10601#      endif
10602#    endif
10603#  endif
10604#endif
10605
10606#ifdef __cplusplus
10607extern "C" void exit (int);
10608#endif
10609
10610void fnord() { int i=42;}
10611int main ()
10612{
10613  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10614  int status = $lt_dlunknown;
10615
10616  if (self)
10617    {
10618      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10619      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10620      /* dlclose (self); */
10621    }
10622  else
10623    puts (dlerror ());
10624
10625    exit (status);
10626}
10627EOF
10628  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629  (eval $ac_link) 2>&5
10630  ac_status=$?
10631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10633    (./conftest; exit; ) >&5 2>/dev/null
10634    lt_status=$?
10635    case x$lt_status in
10636      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10637      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10638      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10639    esac
10640  else :
10641    # compilation failed
10642    lt_cv_dlopen_self_static=no
10643  fi
10644fi
10645rm -fr conftest*
10646
10647
10648fi
10649{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10650$as_echo "$lt_cv_dlopen_self_static" >&6; }
10651    fi
10652
10653    CPPFLAGS="$save_CPPFLAGS"
10654    LDFLAGS="$save_LDFLAGS"
10655    LIBS="$save_LIBS"
10656    ;;
10657  esac
10658
10659  case $lt_cv_dlopen_self in
10660  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10661  *) enable_dlopen_self=unknown ;;
10662  esac
10663
10664  case $lt_cv_dlopen_self_static in
10665  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10666  *) enable_dlopen_self_static=unknown ;;
10667  esac
10668fi
10669
10670
10671# Report which library types will actually be built
10672{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10673$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10674{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10675$as_echo "$can_build_shared" >&6; }
10676
10677{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10678$as_echo_n "checking whether to build shared libraries... " >&6; }
10679test "$can_build_shared" = "no" && enable_shared=no
10680
10681# On AIX, shared libraries and static libraries use the same namespace, and
10682# are all built from PIC.
10683case $host_os in
10684aix3*)
10685  test "$enable_shared" = yes && enable_static=no
10686  if test -n "$RANLIB"; then
10687    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10688    postinstall_cmds='$RANLIB $lib'
10689  fi
10690  ;;
10691
10692aix[4-9]*)
10693  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10694    test "$enable_shared" = yes && enable_static=no
10695  fi
10696    ;;
10697esac
10698{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10699$as_echo "$enable_shared" >&6; }
10700
10701{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10702$as_echo_n "checking whether to build static libraries... " >&6; }
10703# Make sure either enable_shared or enable_static is yes.
10704test "$enable_shared" = yes || enable_static=yes
10705{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10706$as_echo "$enable_static" >&6; }
10707
10708# The else clause should only fire when bootstrapping the
10709# libtool distribution, otherwise you forgot to ship ltmain.sh
10710# with your package, and you will get complaints that there are
10711# no rules to generate ltmain.sh.
10712if test -f "$ltmain"; then
10713  # See if we are running on zsh, and set the options which allow our commands through
10714  # without removal of \ escapes.
10715  if test -n "${ZSH_VERSION+set}" ; then
10716    setopt NO_GLOB_SUBST
10717  fi
10718  # Now quote all the things that may contain metacharacters while being
10719  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10720  # variables and quote the copies for generation of the libtool script.
10721  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10722    SED SHELL STRIP \
10723    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10724    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10725    deplibs_check_method reload_flag reload_cmds need_locks \
10726    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10727    lt_cv_sys_global_symbol_to_c_name_address \
10728    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10729    old_postinstall_cmds old_postuninstall_cmds \
10730    compiler \
10731    CC \
10732    LD \
10733    lt_prog_compiler_wl \
10734    lt_prog_compiler_pic \
10735    lt_prog_compiler_static \
10736    lt_prog_compiler_no_builtin_flag \
10737    export_dynamic_flag_spec \
10738    thread_safe_flag_spec \
10739    whole_archive_flag_spec \
10740    enable_shared_with_static_runtimes \
10741    old_archive_cmds \
10742    old_archive_from_new_cmds \
10743    predep_objects \
10744    postdep_objects \
10745    predeps \
10746    postdeps \
10747    compiler_lib_search_path \
10748    compiler_lib_search_dirs \
10749    archive_cmds \
10750    archive_expsym_cmds \
10751    postinstall_cmds \
10752    postuninstall_cmds \
10753    old_archive_from_expsyms_cmds \
10754    allow_undefined_flag \
10755    no_undefined_flag \
10756    export_symbols_cmds \
10757    hardcode_libdir_flag_spec \
10758    hardcode_libdir_flag_spec_ld \
10759    hardcode_libdir_separator \
10760    hardcode_automatic \
10761    module_cmds \
10762    module_expsym_cmds \
10763    lt_cv_prog_compiler_c_o \
10764    fix_srcfile_path \
10765    exclude_expsyms \
10766    include_expsyms; do
10767
10768    case $var in
10769    old_archive_cmds | \
10770    old_archive_from_new_cmds | \
10771    archive_cmds | \
10772    archive_expsym_cmds | \
10773    module_cmds | \
10774    module_expsym_cmds | \
10775    old_archive_from_expsyms_cmds | \
10776    export_symbols_cmds | \
10777    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10778    postinstall_cmds | postuninstall_cmds | \
10779    old_postinstall_cmds | old_postuninstall_cmds | \
10780    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10781      # Double-quote double-evaled strings.
10782      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10783      ;;
10784    *)
10785      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10786      ;;
10787    esac
10788  done
10789
10790  case $lt_echo in
10791  *'\$0 --fallback-echo"')
10792    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10793    ;;
10794  esac
10795
10796cfgfile="${ofile}T"
10797  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10798  $rm -f "$cfgfile"
10799  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10800$as_echo "$as_me: creating $ofile" >&6;}
10801
10802  cat <<__EOF__ >> "$cfgfile"
10803#! $SHELL
10804
10805# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10806# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10807# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10808#
10809# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10810# Free Software Foundation, Inc.
10811#
10812# This file is part of GNU Libtool:
10813# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10814#
10815# This program is free software; you can redistribute it and/or modify
10816# it under the terms of the GNU General Public License as published by
10817# the Free Software Foundation; either version 2 of the License, or
10818# (at your option) any later version.
10819#
10820# This program is distributed in the hope that it will be useful, but
10821# WITHOUT ANY WARRANTY; without even the implied warranty of
10822# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10823# General Public License for more details.
10824#
10825# You should have received a copy of the GNU General Public License
10826# along with this program; if not, write to the Free Software
10827# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10828#
10829# As a special exception to the GNU General Public License, if you
10830# distribute this file as part of a program that contains a
10831# configuration script generated by Autoconf, you may include it under
10832# the same distribution terms that you use for the rest of that program.
10833
10834# A sed program that does not truncate output.
10835SED=$lt_SED
10836
10837# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10838Xsed="$SED -e 1s/^X//"
10839
10840# The HP-UX ksh and POSIX shell print the target directory to stdout
10841# if CDPATH is set.
10842(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10843
10844# The names of the tagged configurations supported by this script.
10845available_tags=
10846
10847# ### BEGIN LIBTOOL CONFIG
10848
10849# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10850
10851# Shell to use when invoking shell scripts.
10852SHELL=$lt_SHELL
10853
10854# Whether or not to build shared libraries.
10855build_libtool_libs=$enable_shared
10856
10857# Whether or not to build static libraries.
10858build_old_libs=$enable_static
10859
10860# Whether or not to add -lc for building shared libraries.
10861build_libtool_need_lc=$archive_cmds_need_lc
10862
10863# Whether or not to disallow shared libs when runtime libs are static
10864allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10865
10866# Whether or not to optimize for fast installation.
10867fast_install=$enable_fast_install
10868
10869# The host system.
10870host_alias=$host_alias
10871host=$host
10872host_os=$host_os
10873
10874# The build system.
10875build_alias=$build_alias
10876build=$build
10877build_os=$build_os
10878
10879# An echo program that does not interpret backslashes.
10880echo=$lt_echo
10881
10882# The archiver.
10883AR=$lt_AR
10884AR_FLAGS=$lt_AR_FLAGS
10885
10886# A C compiler.
10887LTCC=$lt_LTCC
10888
10889# LTCC compiler flags.
10890LTCFLAGS=$lt_LTCFLAGS
10891
10892# A language-specific compiler.
10893CC=$lt_compiler
10894
10895# Is the compiler the GNU C compiler?
10896with_gcc=$GCC
10897
10898# An ERE matcher.
10899EGREP=$lt_EGREP
10900
10901# The linker used to build libraries.
10902LD=$lt_LD
10903
10904# Whether we need hard or soft links.
10905LN_S=$lt_LN_S
10906
10907# A BSD-compatible nm program.
10908NM=$lt_NM
10909
10910# A symbol stripping program
10911STRIP=$lt_STRIP
10912
10913# Used to examine libraries when file_magic_cmd begins "file"
10914MAGIC_CMD=$MAGIC_CMD
10915
10916# Used on cygwin: DLL creation program.
10917DLLTOOL="$DLLTOOL"
10918
10919# Used on cygwin: object dumper.
10920OBJDUMP="$OBJDUMP"
10921
10922# Used on cygwin: assembler.
10923AS="$AS"
10924
10925# The name of the directory that contains temporary libtool files.
10926objdir=$objdir
10927
10928# How to create reloadable object files.
10929reload_flag=$lt_reload_flag
10930reload_cmds=$lt_reload_cmds
10931
10932# How to pass a linker flag through the compiler.
10933wl=$lt_lt_prog_compiler_wl
10934
10935# Object file suffix (normally "o").
10936objext="$ac_objext"
10937
10938# Old archive suffix (normally "a").
10939libext="$libext"
10940
10941# Shared library suffix (normally ".so").
10942shrext_cmds='$shrext_cmds'
10943
10944# Executable file suffix (normally "").
10945exeext="$exeext"
10946
10947# Additional compiler flags for building library objects.
10948pic_flag=$lt_lt_prog_compiler_pic
10949pic_mode=$pic_mode
10950
10951# What is the maximum length of a command?
10952max_cmd_len=$lt_cv_sys_max_cmd_len
10953
10954# Does compiler simultaneously support -c and -o options?
10955compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10956
10957# Must we lock files when doing compilation?
10958need_locks=$lt_need_locks
10959
10960# Do we need the lib prefix for modules?
10961need_lib_prefix=$need_lib_prefix
10962
10963# Do we need a version for libraries?
10964need_version=$need_version
10965
10966# Whether dlopen is supported.
10967dlopen_support=$enable_dlopen
10968
10969# Whether dlopen of programs is supported.
10970dlopen_self=$enable_dlopen_self
10971
10972# Whether dlopen of statically linked programs is supported.
10973dlopen_self_static=$enable_dlopen_self_static
10974
10975# Compiler flag to prevent dynamic linking.
10976link_static_flag=$lt_lt_prog_compiler_static
10977
10978# Compiler flag to turn off builtin functions.
10979no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10980
10981# Compiler flag to allow reflexive dlopens.
10982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10983
10984# Compiler flag to generate shared objects directly from archives.
10985whole_archive_flag_spec=$lt_whole_archive_flag_spec
10986
10987# Compiler flag to generate thread-safe objects.
10988thread_safe_flag_spec=$lt_thread_safe_flag_spec
10989
10990# Library versioning type.
10991version_type=$version_type
10992
10993# Format of library name prefix.
10994libname_spec=$lt_libname_spec
10995
10996# List of archive names.  First name is the real one, the rest are links.
10997# The last name is the one that the linker finds with -lNAME.
10998library_names_spec=$lt_library_names_spec
10999
11000# The coded name of the library, if different from the real name.
11001soname_spec=$lt_soname_spec
11002
11003# Commands used to build and install an old-style archive.
11004RANLIB=$lt_RANLIB
11005old_archive_cmds=$lt_old_archive_cmds
11006old_postinstall_cmds=$lt_old_postinstall_cmds
11007old_postuninstall_cmds=$lt_old_postuninstall_cmds
11008
11009# Create an old-style archive from a shared archive.
11010old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11011
11012# Create a temporary old-style archive to link instead of a shared archive.
11013old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11014
11015# Commands used to build and install a shared archive.
11016archive_cmds=$lt_archive_cmds
11017archive_expsym_cmds=$lt_archive_expsym_cmds
11018postinstall_cmds=$lt_postinstall_cmds
11019postuninstall_cmds=$lt_postuninstall_cmds
11020
11021# Commands used to build a loadable module (assumed same as above if empty)
11022module_cmds=$lt_module_cmds
11023module_expsym_cmds=$lt_module_expsym_cmds
11024
11025# Commands to strip libraries.
11026old_striplib=$lt_old_striplib
11027striplib=$lt_striplib
11028
11029# Dependencies to place before the objects being linked to create a
11030# shared library.
11031predep_objects=$lt_predep_objects
11032
11033# Dependencies to place after the objects being linked to create a
11034# shared library.
11035postdep_objects=$lt_postdep_objects
11036
11037# Dependencies to place before the objects being linked to create a
11038# shared library.
11039predeps=$lt_predeps
11040
11041# Dependencies to place after the objects being linked to create a
11042# shared library.
11043postdeps=$lt_postdeps
11044
11045# The directories searched by this compiler when creating a shared
11046# library
11047compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11048
11049# The library search path used internally by the compiler when linking
11050# a shared library.
11051compiler_lib_search_path=$lt_compiler_lib_search_path
11052
11053# Method to check whether dependent libraries are shared objects.
11054deplibs_check_method=$lt_deplibs_check_method
11055
11056# Command to use when deplibs_check_method == file_magic.
11057file_magic_cmd=$lt_file_magic_cmd
11058
11059# Flag that allows shared libraries with undefined symbols to be built.
11060allow_undefined_flag=$lt_allow_undefined_flag
11061
11062# Flag that forces no undefined symbols.
11063no_undefined_flag=$lt_no_undefined_flag
11064
11065# Commands used to finish a libtool library installation in a directory.
11066finish_cmds=$lt_finish_cmds
11067
11068# Same as above, but a single script fragment to be evaled but not shown.
11069finish_eval=$lt_finish_eval
11070
11071# Take the output of nm and produce a listing of raw symbols and C names.
11072global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11073
11074# Transform the output of nm in a proper C declaration
11075global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11076
11077# Transform the output of nm in a C name address pair
11078global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11079
11080# This is the shared library runtime path variable.
11081runpath_var=$runpath_var
11082
11083# This is the shared library path variable.
11084shlibpath_var=$shlibpath_var
11085
11086# Is shlibpath searched before the hard-coded library search path?
11087shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11088
11089# How to hardcode a shared library path into an executable.
11090hardcode_action=$hardcode_action
11091
11092# Whether we should hardcode library paths into libraries.
11093hardcode_into_libs=$hardcode_into_libs
11094
11095# Flag to hardcode \$libdir into a binary during linking.
11096# This must work even if \$libdir does not exist.
11097hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11098
11099# If ld is used when linking, flag to hardcode \$libdir into
11100# a binary during linking. This must work even if \$libdir does
11101# not exist.
11102hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11103
11104# Whether we need a single -rpath flag with a separated argument.
11105hardcode_libdir_separator=$lt_hardcode_libdir_separator
11106
11107# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11108# resulting binary.
11109hardcode_direct=$hardcode_direct
11110
11111# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11112# resulting binary.
11113hardcode_minus_L=$hardcode_minus_L
11114
11115# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11116# the resulting binary.
11117hardcode_shlibpath_var=$hardcode_shlibpath_var
11118
11119# Set to yes if building a shared library automatically hardcodes DIR into the library
11120# and all subsequent libraries and executables linked against it.
11121hardcode_automatic=$hardcode_automatic
11122
11123# Variables whose values should be saved in libtool wrapper scripts and
11124# restored at relink time.
11125variables_saved_for_relink="$variables_saved_for_relink"
11126
11127# Whether libtool must link a program against all its dependency libraries.
11128link_all_deplibs=$link_all_deplibs
11129
11130# Compile-time system search path for libraries
11131sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11132
11133# Run-time system search path for libraries
11134sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11135
11136# Fix the shell variable \$srcfile for the compiler.
11137fix_srcfile_path=$lt_fix_srcfile_path
11138
11139# Set to yes if exported symbols are required.
11140always_export_symbols=$always_export_symbols
11141
11142# The commands to list exported symbols.
11143export_symbols_cmds=$lt_export_symbols_cmds
11144
11145# The commands to extract the exported symbol list from a shared archive.
11146extract_expsyms_cmds=$lt_extract_expsyms_cmds
11147
11148# Symbols that should not be listed in the preloaded symbols.
11149exclude_expsyms=$lt_exclude_expsyms
11150
11151# Symbols that must always be exported.
11152include_expsyms=$lt_include_expsyms
11153
11154# ### END LIBTOOL CONFIG
11155
11156__EOF__
11157
11158
11159  case $host_os in
11160  aix3*)
11161    cat <<\EOF >> "$cfgfile"
11162
11163# AIX sometimes has problems with the GCC collect2 program.  For some
11164# reason, if we set the COLLECT_NAMES environment variable, the problems
11165# vanish in a puff of smoke.
11166if test "X${COLLECT_NAMES+set}" != Xset; then
11167  COLLECT_NAMES=
11168  export COLLECT_NAMES
11169fi
11170EOF
11171    ;;
11172  esac
11173
11174  # We use sed instead of cat because bash on DJGPP gets confused if
11175  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11176  # text mode, it properly converts lines to CR/LF.  This bash problem
11177  # is reportedly fixed, but why not run on old versions too?
11178  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11179
11180  mv -f "$cfgfile" "$ofile" || \
11181    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11182  chmod +x "$ofile"
11183
11184else
11185  # If there is no Makefile yet, we rely on a make rule to execute
11186  # `config.status --recheck' to rerun these tests and create the
11187  # libtool script then.
11188  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11189  if test -f "$ltmain_in"; then
11190    test -f Makefile && make "$ltmain"
11191  fi
11192fi
11193
11194
11195ac_ext=c
11196ac_cpp='$CPP $CPPFLAGS'
11197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200
11201CC="$lt_save_CC"
11202
11203
11204# Check whether --with-tags was given.
11205if test "${with_tags+set}" = set; then
11206  withval=$with_tags; tagnames="$withval"
11207fi
11208
11209
11210if test -f "$ltmain" && test -n "$tagnames"; then
11211  if test ! -f "${ofile}"; then
11212    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11213$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11214  fi
11215
11216  if test -z "$LTCC"; then
11217    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11218    if test -z "$LTCC"; then
11219      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11220$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11221    else
11222      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11223$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11224    fi
11225  fi
11226  if test -z "$LTCFLAGS"; then
11227    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11228  fi
11229
11230  # Extract list of available tagged configurations in $ofile.
11231  # Note that this assumes the entire list is on one line.
11232  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11233
11234  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11235  for tagname in $tagnames; do
11236    IFS="$lt_save_ifs"
11237    # Check whether tagname contains only valid characters
11238    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11239    "") ;;
11240    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11241$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11242   { (exit 1); exit 1; }; }
11243	;;
11244    esac
11245
11246    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11247    then
11248      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11249$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11250   { (exit 1); exit 1; }; }
11251    fi
11252
11253    # Update the list of available tags.
11254    if test -n "$tagname"; then
11255      echo appending configuration tag \"$tagname\" to $ofile
11256
11257      case $tagname in
11258      CXX)
11259	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11260	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11261	    (test "X$CXX" != "Xg++"))) ; then
11262	  ac_ext=cpp
11263ac_cpp='$CXXCPP $CPPFLAGS'
11264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11267
11268
11269
11270
11271archive_cmds_need_lc_CXX=no
11272allow_undefined_flag_CXX=
11273always_export_symbols_CXX=no
11274archive_expsym_cmds_CXX=
11275export_dynamic_flag_spec_CXX=
11276hardcode_direct_CXX=no
11277hardcode_libdir_flag_spec_CXX=
11278hardcode_libdir_flag_spec_ld_CXX=
11279hardcode_libdir_separator_CXX=
11280hardcode_minus_L_CXX=no
11281hardcode_shlibpath_var_CXX=unsupported
11282hardcode_automatic_CXX=no
11283module_cmds_CXX=
11284module_expsym_cmds_CXX=
11285link_all_deplibs_CXX=unknown
11286old_archive_cmds_CXX=$old_archive_cmds
11287no_undefined_flag_CXX=
11288whole_archive_flag_spec_CXX=
11289enable_shared_with_static_runtimes_CXX=no
11290
11291# Dependencies to place before and after the object being linked:
11292predep_objects_CXX=
11293postdep_objects_CXX=
11294predeps_CXX=
11295postdeps_CXX=
11296compiler_lib_search_path_CXX=
11297compiler_lib_search_dirs_CXX=
11298
11299# Source file extension for C++ test sources.
11300ac_ext=cpp
11301
11302# Object file extension for compiled C++ test sources.
11303objext=o
11304objext_CXX=$objext
11305
11306# Code to be used in simple compile tests
11307lt_simple_compile_test_code="int some_variable = 0;"
11308
11309# Code to be used in simple link tests
11310lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11311
11312# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11313
11314# If no C compiler was specified, use CC.
11315LTCC=${LTCC-"$CC"}
11316
11317# If no C compiler flags were specified, use CFLAGS.
11318LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11319
11320# Allow CC to be a program name with arguments.
11321compiler=$CC
11322
11323
11324# save warnings/boilerplate of simple test code
11325ac_outfile=conftest.$ac_objext
11326echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11327eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11328_lt_compiler_boilerplate=`cat conftest.err`
11329$rm conftest*
11330
11331ac_outfile=conftest.$ac_objext
11332echo "$lt_simple_link_test_code" >conftest.$ac_ext
11333eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11334_lt_linker_boilerplate=`cat conftest.err`
11335$rm -r conftest*
11336
11337
11338# Allow CC to be a program name with arguments.
11339lt_save_CC=$CC
11340lt_save_LD=$LD
11341lt_save_GCC=$GCC
11342GCC=$GXX
11343lt_save_with_gnu_ld=$with_gnu_ld
11344lt_save_path_LD=$lt_cv_path_LD
11345if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11346  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11347else
11348  $as_unset lt_cv_prog_gnu_ld
11349fi
11350if test -n "${lt_cv_path_LDCXX+set}"; then
11351  lt_cv_path_LD=$lt_cv_path_LDCXX
11352else
11353  $as_unset lt_cv_path_LD
11354fi
11355test -z "${LDCXX+set}" || LD=$LDCXX
11356CC=${CXX-"c++"}
11357compiler=$CC
11358compiler_CXX=$CC
11359for cc_temp in $compiler""; do
11360  case $cc_temp in
11361    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11362    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11363    \-*) ;;
11364    *) break;;
11365  esac
11366done
11367cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11368
11369
11370# We don't want -fno-exception wen compiling C++ code, so set the
11371# no_builtin_flag separately
11372if test "$GXX" = yes; then
11373  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11374else
11375  lt_prog_compiler_no_builtin_flag_CXX=
11376fi
11377
11378if test "$GXX" = yes; then
11379  # Set up default GNU C++ configuration
11380
11381
11382# Check whether --with-gnu-ld was given.
11383if test "${with_gnu_ld+set}" = set; then
11384  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11385else
11386  with_gnu_ld=no
11387fi
11388
11389ac_prog=ld
11390if test "$GCC" = yes; then
11391  # Check if gcc -print-prog-name=ld gives a path.
11392  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11393$as_echo_n "checking for ld used by $CC... " >&6; }
11394  case $host in
11395  *-*-mingw*)
11396    # gcc leaves a trailing carriage return which upsets mingw
11397    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11398  *)
11399    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11400  esac
11401  case $ac_prog in
11402    # Accept absolute paths.
11403    [\\/]* | ?:[\\/]*)
11404      re_direlt='/[^/][^/]*/\.\./'
11405      # Canonicalize the pathname of ld
11406      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11407      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11408	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11409      done
11410      test -z "$LD" && LD="$ac_prog"
11411      ;;
11412  "")
11413    # If it fails, then pretend we aren't using GCC.
11414    ac_prog=ld
11415    ;;
11416  *)
11417    # If it is relative, then search for the first ld in PATH.
11418    with_gnu_ld=unknown
11419    ;;
11420  esac
11421elif test "$with_gnu_ld" = yes; then
11422  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11423$as_echo_n "checking for GNU ld... " >&6; }
11424else
11425  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11426$as_echo_n "checking for non-GNU ld... " >&6; }
11427fi
11428if test "${lt_cv_path_LD+set}" = set; then
11429  $as_echo_n "(cached) " >&6
11430else
11431  if test -z "$LD"; then
11432  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11433  for ac_dir in $PATH; do
11434    IFS="$lt_save_ifs"
11435    test -z "$ac_dir" && ac_dir=.
11436    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11437      lt_cv_path_LD="$ac_dir/$ac_prog"
11438      # Check to see if the program is GNU ld.  I'd rather use --version,
11439      # but apparently some variants of GNU ld only accept -v.
11440      # Break only if it was the GNU/non-GNU ld that we prefer.
11441      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11442      *GNU* | *'with BFD'*)
11443	test "$with_gnu_ld" != no && break
11444	;;
11445      *)
11446	test "$with_gnu_ld" != yes && break
11447	;;
11448      esac
11449    fi
11450  done
11451  IFS="$lt_save_ifs"
11452else
11453  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11454fi
11455fi
11456
11457LD="$lt_cv_path_LD"
11458if test -n "$LD"; then
11459  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11460$as_echo "$LD" >&6; }
11461else
11462  { $as_echo "$as_me:$LINENO: result: no" >&5
11463$as_echo "no" >&6; }
11464fi
11465test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11466$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11467   { (exit 1); exit 1; }; }
11468{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11469$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11470if test "${lt_cv_prog_gnu_ld+set}" = set; then
11471  $as_echo_n "(cached) " >&6
11472else
11473  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11474case `$LD -v 2>&1 </dev/null` in
11475*GNU* | *'with BFD'*)
11476  lt_cv_prog_gnu_ld=yes
11477  ;;
11478*)
11479  lt_cv_prog_gnu_ld=no
11480  ;;
11481esac
11482fi
11483{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11484$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11485with_gnu_ld=$lt_cv_prog_gnu_ld
11486
11487
11488
11489  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11490  # archiving commands below assume that GNU ld is being used.
11491  if test "$with_gnu_ld" = yes; then
11492    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11493    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'
11494
11495    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11496    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11497
11498    # If archive_cmds runs LD, not CC, wlarc should be empty
11499    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11500    #     investigate it a little bit more. (MM)
11501    wlarc='${wl}'
11502
11503    # ancient GNU ld didn't support --whole-archive et. al.
11504    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11505	grep 'no-whole-archive' > /dev/null; then
11506      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11507    else
11508      whole_archive_flag_spec_CXX=
11509    fi
11510  else
11511    with_gnu_ld=no
11512    wlarc=
11513
11514    # A generic and very simple default shared library creation
11515    # command for GNU C++ for the case where it uses the native
11516    # linker, instead of GNU ld.  If possible, this setting should
11517    # overridden to take advantage of the native linker features on
11518    # the platform it is being used on.
11519    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11520  fi
11521
11522  # Commands to make compiler produce verbose output that lists
11523  # what "hidden" libraries, object files and flags are used when
11524  # linking a shared library.
11525  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11526
11527else
11528  GXX=no
11529  with_gnu_ld=no
11530  wlarc=
11531fi
11532
11533# PORTME: fill in a description of your system's C++ link characteristics
11534{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11535$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11536ld_shlibs_CXX=yes
11537case $host_os in
11538  aix3*)
11539    # FIXME: insert proper C++ library support
11540    ld_shlibs_CXX=no
11541    ;;
11542  aix[4-9]*)
11543    if test "$host_cpu" = ia64; then
11544      # On IA64, the linker does run time linking by default, so we don't
11545      # have to do anything special.
11546      aix_use_runtimelinking=no
11547      exp_sym_flag='-Bexport'
11548      no_entry_flag=""
11549    else
11550      aix_use_runtimelinking=no
11551
11552      # Test if we are trying to use run time linking or normal
11553      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11554      # need to do runtime linking.
11555      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11556	for ld_flag in $LDFLAGS; do
11557	  case $ld_flag in
11558	  *-brtl*)
11559	    aix_use_runtimelinking=yes
11560	    break
11561	    ;;
11562	  esac
11563	done
11564	;;
11565      esac
11566
11567      exp_sym_flag='-bexport'
11568      no_entry_flag='-bnoentry'
11569    fi
11570
11571    # When large executables or shared objects are built, AIX ld can
11572    # have problems creating the table of contents.  If linking a library
11573    # or program results in "error TOC overflow" add -mminimal-toc to
11574    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11575    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11576
11577    archive_cmds_CXX=''
11578    hardcode_direct_CXX=yes
11579    hardcode_libdir_separator_CXX=':'
11580    link_all_deplibs_CXX=yes
11581
11582    if test "$GXX" = yes; then
11583      case $host_os in aix4.[012]|aix4.[012].*)
11584      # We only want to do this on AIX 4.2 and lower, the check
11585      # below for broken collect2 doesn't work under 4.3+
11586	collect2name=`${CC} -print-prog-name=collect2`
11587	if test -f "$collect2name" && \
11588	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11589	then
11590	  # We have reworked collect2
11591	  :
11592	else
11593	  # We have old collect2
11594	  hardcode_direct_CXX=unsupported
11595	  # It fails to find uninstalled libraries when the uninstalled
11596	  # path is not listed in the libpath.  Setting hardcode_minus_L
11597	  # to unsupported forces relinking
11598	  hardcode_minus_L_CXX=yes
11599	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11600	  hardcode_libdir_separator_CXX=
11601	fi
11602	;;
11603      esac
11604      shared_flag='-shared'
11605      if test "$aix_use_runtimelinking" = yes; then
11606	shared_flag="$shared_flag "'${wl}-G'
11607      fi
11608    else
11609      # not using gcc
11610      if test "$host_cpu" = ia64; then
11611	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11612	# chokes on -Wl,-G. The following line is correct:
11613	shared_flag='-G'
11614      else
11615	if test "$aix_use_runtimelinking" = yes; then
11616	  shared_flag='${wl}-G'
11617	else
11618	  shared_flag='${wl}-bM:SRE'
11619	fi
11620      fi
11621    fi
11622
11623    # It seems that -bexpall does not export symbols beginning with
11624    # underscore (_), so it is better to generate a list of symbols to export.
11625    always_export_symbols_CXX=yes
11626    if test "$aix_use_runtimelinking" = yes; then
11627      # Warning - without using the other runtime loading flags (-brtl),
11628      # -berok will link without error, but may produce a broken library.
11629      allow_undefined_flag_CXX='-berok'
11630      # Determine the default libpath from the value encoded in an empty executable.
11631      cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h.  */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h.  */
11637
11638int
11639main ()
11640{
11641
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (ac_try="$ac_link"
11648case "(($ac_try" in
11649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650  *) ac_try_echo=$ac_try;;
11651esac
11652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653$as_echo "$ac_try_echo") >&5
11654  (eval "$ac_link") 2>conftest.er1
11655  ac_status=$?
11656  grep -v '^ *+' conftest.er1 >conftest.err
11657  rm -f conftest.er1
11658  cat conftest.err >&5
11659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660  (exit $ac_status); } && {
11661	 test -z "$ac_cxx_werror_flag" ||
11662	 test ! -s conftest.err
11663       } && test -s conftest$ac_exeext && {
11664	 test "$cross_compiling" = yes ||
11665	 $as_test_x conftest$ac_exeext
11666       }; then
11667
11668lt_aix_libpath_sed='
11669    /Import File Strings/,/^$/ {
11670	/^0/ {
11671	    s/^0  *\(.*\)$/\1/
11672	    p
11673	}
11674    }'
11675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676# Check for a 64-bit object if we didn't find anything.
11677if test -z "$aix_libpath"; then
11678  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11679fi
11680else
11681  $as_echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684
11685fi
11686
11687rm -rf conftest.dSYM
11688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11689      conftest$ac_exeext conftest.$ac_ext
11690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11691
11692      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11693
11694      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"
11695     else
11696      if test "$host_cpu" = ia64; then
11697	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11698	allow_undefined_flag_CXX="-z nodefs"
11699	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"
11700      else
11701	# Determine the default libpath from the value encoded in an empty executable.
11702	cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h.  */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h.  */
11708
11709int
11710main ()
11711{
11712
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (ac_try="$ac_link"
11719case "(($ac_try" in
11720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721  *) ac_try_echo=$ac_try;;
11722esac
11723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11724$as_echo "$ac_try_echo") >&5
11725  (eval "$ac_link") 2>conftest.er1
11726  ac_status=$?
11727  grep -v '^ *+' conftest.er1 >conftest.err
11728  rm -f conftest.er1
11729  cat conftest.err >&5
11730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731  (exit $ac_status); } && {
11732	 test -z "$ac_cxx_werror_flag" ||
11733	 test ! -s conftest.err
11734       } && test -s conftest$ac_exeext && {
11735	 test "$cross_compiling" = yes ||
11736	 $as_test_x conftest$ac_exeext
11737       }; then
11738
11739lt_aix_libpath_sed='
11740    /Import File Strings/,/^$/ {
11741	/^0/ {
11742	    s/^0  *\(.*\)$/\1/
11743	    p
11744	}
11745    }'
11746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747# Check for a 64-bit object if we didn't find anything.
11748if test -z "$aix_libpath"; then
11749  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750fi
11751else
11752  $as_echo "$as_me: failed program was:" >&5
11753sed 's/^/| /' conftest.$ac_ext >&5
11754
11755
11756fi
11757
11758rm -rf conftest.dSYM
11759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760      conftest$ac_exeext conftest.$ac_ext
11761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11762
11763	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11764	# Warning - without using the other run time loading flags,
11765	# -berok will link without error, but may produce a broken library.
11766	no_undefined_flag_CXX=' ${wl}-bernotok'
11767	allow_undefined_flag_CXX=' ${wl}-berok'
11768	# Exported symbols can be pulled into shared objects from archives
11769	whole_archive_flag_spec_CXX='$convenience'
11770	archive_cmds_need_lc_CXX=yes
11771	# This is similar to how AIX traditionally builds its shared libraries.
11772	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'
11773      fi
11774    fi
11775    ;;
11776
11777  beos*)
11778    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11779      allow_undefined_flag_CXX=unsupported
11780      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11781      # support --undefined.  This deserves some investigation.  FIXME
11782      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11783    else
11784      ld_shlibs_CXX=no
11785    fi
11786    ;;
11787
11788  chorus*)
11789    case $cc_basename in
11790      *)
11791	# FIXME: insert proper C++ library support
11792	ld_shlibs_CXX=no
11793	;;
11794    esac
11795    ;;
11796
11797  cygwin* | mingw* | pw32*)
11798    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11799    # as there is no search path for DLLs.
11800    hardcode_libdir_flag_spec_CXX='-L$libdir'
11801    allow_undefined_flag_CXX=unsupported
11802    always_export_symbols_CXX=no
11803    enable_shared_with_static_runtimes_CXX=yes
11804
11805    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11806      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'
11807      # If the export-symbols file already is a .def file (1st line
11808      # is EXPORTS), use it as is; otherwise, prepend...
11809      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11810	cp $export_symbols $output_objdir/$soname.def;
11811      else
11812	echo EXPORTS > $output_objdir/$soname.def;
11813	cat $export_symbols >> $output_objdir/$soname.def;
11814      fi~
11815      $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'
11816    else
11817      ld_shlibs_CXX=no
11818    fi
11819  ;;
11820      darwin* | rhapsody*)
11821      archive_cmds_need_lc_CXX=no
11822      hardcode_direct_CXX=no
11823      hardcode_automatic_CXX=yes
11824      hardcode_shlibpath_var_CXX=unsupported
11825      whole_archive_flag_spec_CXX=''
11826      link_all_deplibs_CXX=yes
11827      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11828      if test "$GXX" = yes ; then
11829      output_verbose_link_cmd='echo'
11830      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}"
11831      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11832      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}"
11833      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}"
11834      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11835        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}"
11836        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}"
11837      fi
11838      else
11839      case $cc_basename in
11840        xlc*)
11841         output_verbose_link_cmd='echo'
11842          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'
11843          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11844          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11845          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}'
11846          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}'
11847          ;;
11848       *)
11849         ld_shlibs_CXX=no
11850          ;;
11851      esac
11852      fi
11853        ;;
11854
11855  dgux*)
11856    case $cc_basename in
11857      ec++*)
11858	# FIXME: insert proper C++ library support
11859	ld_shlibs_CXX=no
11860	;;
11861      ghcx*)
11862	# Green Hills C++ Compiler
11863	# FIXME: insert proper C++ library support
11864	ld_shlibs_CXX=no
11865	;;
11866      *)
11867	# FIXME: insert proper C++ library support
11868	ld_shlibs_CXX=no
11869	;;
11870    esac
11871    ;;
11872  freebsd[12]*)
11873    # C++ shared libraries reported to be fairly broken before switch to ELF
11874    ld_shlibs_CXX=no
11875    ;;
11876  freebsd-elf*)
11877    archive_cmds_need_lc_CXX=no
11878    ;;
11879  freebsd* | dragonfly*)
11880    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11881    # conventions
11882    ld_shlibs_CXX=yes
11883    ;;
11884  gnu*)
11885    ;;
11886  hpux9*)
11887    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11888    hardcode_libdir_separator_CXX=:
11889    export_dynamic_flag_spec_CXX='${wl}-E'
11890    hardcode_direct_CXX=yes
11891    hardcode_minus_L_CXX=yes # Not in the search PATH,
11892				# but as the default
11893				# location of the library.
11894
11895    case $cc_basename in
11896    CC*)
11897      # FIXME: insert proper C++ library support
11898      ld_shlibs_CXX=no
11899      ;;
11900    aCC*)
11901      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'
11902      # Commands to make compiler produce verbose output that lists
11903      # what "hidden" libraries, object files and flags are used when
11904      # linking a shared library.
11905      #
11906      # There doesn't appear to be a way to prevent this compiler from
11907      # explicitly linking system object files so we need to strip them
11908      # from the output so that they don't get included in the library
11909      # dependencies.
11910      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'
11911      ;;
11912    *)
11913      if test "$GXX" = yes; then
11914        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'
11915      else
11916        # FIXME: insert proper C++ library support
11917        ld_shlibs_CXX=no
11918      fi
11919      ;;
11920    esac
11921    ;;
11922  hpux10*|hpux11*)
11923    if test $with_gnu_ld = no; then
11924      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11925      hardcode_libdir_separator_CXX=:
11926
11927      case $host_cpu in
11928      hppa*64*|ia64*) ;;
11929      *)
11930	export_dynamic_flag_spec_CXX='${wl}-E'
11931        ;;
11932      esac
11933    fi
11934    case $host_cpu in
11935    hppa*64*|ia64*)
11936      hardcode_direct_CXX=no
11937      hardcode_shlibpath_var_CXX=no
11938      ;;
11939    *)
11940      hardcode_direct_CXX=yes
11941      hardcode_minus_L_CXX=yes # Not in the search PATH,
11942					      # but as the default
11943					      # location of the library.
11944      ;;
11945    esac
11946
11947    case $cc_basename in
11948      CC*)
11949	# FIXME: insert proper C++ library support
11950	ld_shlibs_CXX=no
11951	;;
11952      aCC*)
11953	case $host_cpu in
11954	hppa*64*)
11955	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956	  ;;
11957	ia64*)
11958	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959	  ;;
11960	*)
11961	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962	  ;;
11963	esac
11964	# Commands to make compiler produce verbose output that lists
11965	# what "hidden" libraries, object files and flags are used when
11966	# linking a shared library.
11967	#
11968	# There doesn't appear to be a way to prevent this compiler from
11969	# explicitly linking system object files so we need to strip them
11970	# from the output so that they don't get included in the library
11971	# dependencies.
11972	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'
11973	;;
11974      *)
11975	if test "$GXX" = yes; then
11976	  if test $with_gnu_ld = no; then
11977	    case $host_cpu in
11978	    hppa*64*)
11979	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11980	      ;;
11981	    ia64*)
11982	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11983	      ;;
11984	    *)
11985	      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'
11986	      ;;
11987	    esac
11988	  fi
11989	else
11990	  # FIXME: insert proper C++ library support
11991	  ld_shlibs_CXX=no
11992	fi
11993	;;
11994    esac
11995    ;;
11996  interix[3-9]*)
11997    hardcode_direct_CXX=no
11998    hardcode_shlibpath_var_CXX=no
11999    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12000    export_dynamic_flag_spec_CXX='${wl}-E'
12001    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12002    # Instead, shared libraries are loaded at an image base (0x10000000 by
12003    # default) and relocated if they conflict, which is a slow very memory
12004    # consuming and fragmenting process.  To avoid this, we pick a random,
12005    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12006    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12007    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'
12008    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'
12009    ;;
12010  irix5* | irix6*)
12011    case $cc_basename in
12012      CC*)
12013	# SGI C++
12014	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'
12015
12016	# Archives containing C++ object files must be created using
12017	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12018	# necessary to make sure instantiated templates are included
12019	# in the archive.
12020	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12021	;;
12022      *)
12023	if test "$GXX" = yes; then
12024	  if test "$with_gnu_ld" = no; then
12025	    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'
12026	  else
12027	    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'
12028	  fi
12029	fi
12030	link_all_deplibs_CXX=yes
12031	;;
12032    esac
12033    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12034    hardcode_libdir_separator_CXX=:
12035    ;;
12036  linux* | k*bsd*-gnu)
12037    case $cc_basename in
12038      KCC*)
12039	# Kuck and Associates, Inc. (KAI) C++ Compiler
12040
12041	# KCC will only create a shared library if the output file
12042	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12043	# to its proper name (with version) after linking.
12044	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'
12045	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'
12046	# Commands to make compiler produce verbose output that lists
12047	# what "hidden" libraries, object files and flags are used when
12048	# linking a shared library.
12049	#
12050	# There doesn't appear to be a way to prevent this compiler from
12051	# explicitly linking system object files so we need to strip them
12052	# from the output so that they don't get included in the library
12053	# dependencies.
12054	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'
12055
12056	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12057	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12058
12059	# Archives containing C++ object files must be created using
12060	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12061	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12062	;;
12063      icpc*)
12064	# Intel C++
12065	with_gnu_ld=yes
12066	# version 8.0 and above of icpc choke on multiply defined symbols
12067	# if we add $predep_objects and $postdep_objects, however 7.1 and
12068	# earlier do not add the objects themselves.
12069	case `$CC -V 2>&1` in
12070	*"Version 7."*)
12071  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072  	  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'
12073	  ;;
12074	*)  # Version 8.0 or newer
12075	  tmp_idyn=
12076	  case $host_cpu in
12077	    ia64*) tmp_idyn=' -i_dynamic';;
12078	  esac
12079  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080	  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'
12081	  ;;
12082	esac
12083	archive_cmds_need_lc_CXX=no
12084	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12086	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12087	;;
12088      pgCC* | pgcpp*)
12089        # Portland Group C++ compiler
12090	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12091  	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'
12092
12093	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12094	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12095	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'
12096        ;;
12097      cxx*)
12098	# Compaq C++
12099	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100	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'
12101
12102	runpath_var=LD_RUN_PATH
12103	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12104	hardcode_libdir_separator_CXX=:
12105
12106	# Commands to make compiler produce verbose output that lists
12107	# what "hidden" libraries, object files and flags are used when
12108	# linking a shared library.
12109	#
12110	# There doesn't appear to be a way to prevent this compiler from
12111	# explicitly linking system object files so we need to strip them
12112	# from the output so that they don't get included in the library
12113	# dependencies.
12114	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'
12115	;;
12116      *)
12117	case `$CC -V 2>&1 | sed 5q` in
12118	*Sun\ C*)
12119	  # Sun C++ 5.9
12120	  no_undefined_flag_CXX=' -zdefs'
12121	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12122	  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'
12123	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12124	  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'
12125
12126	  # Not sure whether something based on
12127	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12128	  # would be better.
12129	  output_verbose_link_cmd='echo'
12130
12131	  # Archives containing C++ object files must be created using
12132	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12133	  # necessary to make sure instantiated templates are included
12134	  # in the archive.
12135	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12136	  ;;
12137	esac
12138	;;
12139    esac
12140    ;;
12141  lynxos*)
12142    # FIXME: insert proper C++ library support
12143    ld_shlibs_CXX=no
12144    ;;
12145  m88k*)
12146    # FIXME: insert proper C++ library support
12147    ld_shlibs_CXX=no
12148    ;;
12149  mvs*)
12150    case $cc_basename in
12151      cxx*)
12152	# FIXME: insert proper C++ library support
12153	ld_shlibs_CXX=no
12154	;;
12155      *)
12156	# FIXME: insert proper C++ library support
12157	ld_shlibs_CXX=no
12158	;;
12159    esac
12160    ;;
12161  netbsd*)
12162    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12163      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12164      wlarc=
12165      hardcode_libdir_flag_spec_CXX='-R$libdir'
12166      hardcode_direct_CXX=yes
12167      hardcode_shlibpath_var_CXX=no
12168    fi
12169    # Workaround some broken pre-1.5 toolchains
12170    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12171    ;;
12172  openbsd2*)
12173    # C++ shared libraries are fairly broken
12174    ld_shlibs_CXX=no
12175    ;;
12176  openbsd*)
12177    if test -f /usr/libexec/ld.so; then
12178      hardcode_direct_CXX=yes
12179      hardcode_shlibpath_var_CXX=no
12180      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12181      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12183	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12184	export_dynamic_flag_spec_CXX='${wl}-E'
12185	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12186      fi
12187      output_verbose_link_cmd='echo'
12188    else
12189      ld_shlibs_CXX=no
12190    fi
12191    ;;
12192  osf3*)
12193    case $cc_basename in
12194      KCC*)
12195	# Kuck and Associates, Inc. (KAI) C++ Compiler
12196
12197	# KCC will only create a shared library if the output file
12198	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12199	# to its proper name (with version) after linking.
12200	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'
12201
12202	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203	hardcode_libdir_separator_CXX=:
12204
12205	# Archives containing C++ object files must be created using
12206	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12207	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12208
12209	;;
12210      RCC*)
12211	# Rational C++ 2.4.1
12212	# FIXME: insert proper C++ library support
12213	ld_shlibs_CXX=no
12214	;;
12215      cxx*)
12216	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12217	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'
12218
12219	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12220	hardcode_libdir_separator_CXX=:
12221
12222	# Commands to make compiler produce verbose output that lists
12223	# what "hidden" libraries, object files and flags are used when
12224	# linking a shared library.
12225	#
12226	# There doesn't appear to be a way to prevent this compiler from
12227	# explicitly linking system object files so we need to strip them
12228	# from the output so that they don't get included in the library
12229	# dependencies.
12230	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'
12231	;;
12232      *)
12233	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12234	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12235	  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'
12236
12237	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12238	  hardcode_libdir_separator_CXX=:
12239
12240	  # Commands to make compiler produce verbose output that lists
12241	  # what "hidden" libraries, object files and flags are used when
12242	  # linking a shared library.
12243	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12244
12245	else
12246	  # FIXME: insert proper C++ library support
12247	  ld_shlibs_CXX=no
12248	fi
12249	;;
12250    esac
12251    ;;
12252  osf4* | osf5*)
12253    case $cc_basename in
12254      KCC*)
12255	# Kuck and Associates, Inc. (KAI) C++ Compiler
12256
12257	# KCC will only create a shared library if the output file
12258	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12259	# to its proper name (with version) after linking.
12260	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'
12261
12262	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12263	hardcode_libdir_separator_CXX=:
12264
12265	# Archives containing C++ object files must be created using
12266	# the KAI C++ compiler.
12267	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12268	;;
12269      RCC*)
12270	# Rational C++ 2.4.1
12271	# FIXME: insert proper C++ library support
12272	ld_shlibs_CXX=no
12273	;;
12274      cxx*)
12275	allow_undefined_flag_CXX=' -expect_unresolved \*'
12276	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'
12277	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12278	  echo "-hidden">> $lib.exp~
12279	  $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~
12280	  $rm $lib.exp'
12281
12282	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12283	hardcode_libdir_separator_CXX=:
12284
12285	# Commands to make compiler produce verbose output that lists
12286	# what "hidden" libraries, object files and flags are used when
12287	# linking a shared library.
12288	#
12289	# There doesn't appear to be a way to prevent this compiler from
12290	# explicitly linking system object files so we need to strip them
12291	# from the output so that they don't get included in the library
12292	# dependencies.
12293	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'
12294	;;
12295      *)
12296	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12297	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12298	 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'
12299
12300	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12301	  hardcode_libdir_separator_CXX=:
12302
12303	  # Commands to make compiler produce verbose output that lists
12304	  # what "hidden" libraries, object files and flags are used when
12305	  # linking a shared library.
12306	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12307
12308	else
12309	  # FIXME: insert proper C++ library support
12310	  ld_shlibs_CXX=no
12311	fi
12312	;;
12313    esac
12314    ;;
12315  psos*)
12316    # FIXME: insert proper C++ library support
12317    ld_shlibs_CXX=no
12318    ;;
12319  sunos4*)
12320    case $cc_basename in
12321      CC*)
12322	# Sun C++ 4.x
12323	# FIXME: insert proper C++ library support
12324	ld_shlibs_CXX=no
12325	;;
12326      lcc*)
12327	# Lucid
12328	# FIXME: insert proper C++ library support
12329	ld_shlibs_CXX=no
12330	;;
12331      *)
12332	# FIXME: insert proper C++ library support
12333	ld_shlibs_CXX=no
12334	;;
12335    esac
12336    ;;
12337  solaris*)
12338    case $cc_basename in
12339      CC*)
12340	# Sun C++ 4.2, 5.x and Centerline C++
12341        archive_cmds_need_lc_CXX=yes
12342	no_undefined_flag_CXX=' -zdefs'
12343	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12344	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12345	$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'
12346
12347	hardcode_libdir_flag_spec_CXX='-R$libdir'
12348	hardcode_shlibpath_var_CXX=no
12349	case $host_os in
12350	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12351	  *)
12352	    # The compiler driver will combine and reorder linker options,
12353	    # but understands `-z linker_flag'.
12354	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12355	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12356	    ;;
12357	esac
12358	link_all_deplibs_CXX=yes
12359
12360	output_verbose_link_cmd='echo'
12361
12362	# Archives containing C++ object files must be created using
12363	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12364	# necessary to make sure instantiated templates are included
12365	# in the archive.
12366	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12367	;;
12368      gcx*)
12369	# Green Hills C++ Compiler
12370	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371
12372	# The C++ compiler must be used to create the archive.
12373	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12374	;;
12375      *)
12376	# GNU C++ compiler with Solaris linker
12377	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12378	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12379	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12380	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12382		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383
12384	    # Commands to make compiler produce verbose output that lists
12385	    # what "hidden" libraries, object files and flags are used when
12386	    # linking a shared library.
12387	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12388	  else
12389	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12390	    # platform.
12391	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12392	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12393		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12394
12395	    # Commands to make compiler produce verbose output that lists
12396	    # what "hidden" libraries, object files and flags are used when
12397	    # linking a shared library.
12398	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12399	  fi
12400
12401	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12402	  case $host_os in
12403	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12404	  *)
12405	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12406	    ;;
12407	  esac
12408	fi
12409	;;
12410    esac
12411    ;;
12412  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12413    no_undefined_flag_CXX='${wl}-z,text'
12414    archive_cmds_need_lc_CXX=no
12415    hardcode_shlibpath_var_CXX=no
12416    runpath_var='LD_RUN_PATH'
12417
12418    case $cc_basename in
12419      CC*)
12420	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422	;;
12423      *)
12424	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426	;;
12427    esac
12428    ;;
12429  sysv5* | sco3.2v5* | sco5v6*)
12430    # Note: We can NOT use -z defs as we might desire, because we do not
12431    # link with -lc, and that would cause any symbols used from libc to
12432    # always be unresolved, which means just about no library would
12433    # ever link correctly.  If we're not using GNU ld we use -z text
12434    # though, which does catch some bad symbols but isn't as heavy-handed
12435    # as -z defs.
12436    # For security reasons, it is highly recommended that you always
12437    # use absolute paths for naming shared libraries, and exclude the
12438    # DT_RUNPATH tag from executables and libraries.  But doing so
12439    # requires that you compile everything twice, which is a pain.
12440    # So that behaviour is only enabled if SCOABSPATH is set to a
12441    # non-empty value in the environment.  Most likely only useful for
12442    # creating official distributions of packages.
12443    # This is a hack until libtool officially supports absolute path
12444    # names for shared libraries.
12445    no_undefined_flag_CXX='${wl}-z,text'
12446    allow_undefined_flag_CXX='${wl}-z,nodefs'
12447    archive_cmds_need_lc_CXX=no
12448    hardcode_shlibpath_var_CXX=no
12449    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12450    hardcode_libdir_separator_CXX=':'
12451    link_all_deplibs_CXX=yes
12452    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12453    runpath_var='LD_RUN_PATH'
12454
12455    case $cc_basename in
12456      CC*)
12457	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12459	;;
12460      *)
12461	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12463	;;
12464    esac
12465    ;;
12466  tandem*)
12467    case $cc_basename in
12468      NCC*)
12469	# NonStop-UX NCC 3.20
12470	# FIXME: insert proper C++ library support
12471	ld_shlibs_CXX=no
12472	;;
12473      *)
12474	# FIXME: insert proper C++ library support
12475	ld_shlibs_CXX=no
12476	;;
12477    esac
12478    ;;
12479  vxworks*)
12480    # FIXME: insert proper C++ library support
12481    ld_shlibs_CXX=no
12482    ;;
12483  *)
12484    # FIXME: insert proper C++ library support
12485    ld_shlibs_CXX=no
12486    ;;
12487esac
12488{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12489$as_echo "$ld_shlibs_CXX" >&6; }
12490test "$ld_shlibs_CXX" = no && can_build_shared=no
12491
12492GCC_CXX="$GXX"
12493LD_CXX="$LD"
12494
12495cat > conftest.$ac_ext <<EOF
12496class Foo
12497{
12498public:
12499  Foo (void) { a = 0; }
12500private:
12501  int a;
12502};
12503EOF
12504
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506  (eval $ac_compile) 2>&5
12507  ac_status=$?
12508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509  (exit $ac_status); }; then
12510  # Parse the compiler output and extract the necessary
12511  # objects, libraries and library flags.
12512
12513  # Sentinel used to keep track of whether or not we are before
12514  # the conftest object file.
12515  pre_test_object_deps_done=no
12516
12517  # The `*' in the case matches for architectures that use `case' in
12518  # $output_verbose_cmd can trigger glob expansion during the loop
12519  # eval without this substitution.
12520  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12521
12522  for p in `eval $output_verbose_link_cmd`; do
12523    case $p in
12524
12525    -L* | -R* | -l*)
12526       # Some compilers place space between "-{L,R}" and the path.
12527       # Remove the space.
12528       if test $p = "-L" \
12529	  || test $p = "-R"; then
12530	 prev=$p
12531	 continue
12532       else
12533	 prev=
12534       fi
12535
12536       if test "$pre_test_object_deps_done" = no; then
12537	 case $p in
12538	 -L* | -R*)
12539	   # Internal compiler library paths should come after those
12540	   # provided the user.  The postdeps already come after the
12541	   # user supplied libs so there is no need to process them.
12542	   if test -z "$compiler_lib_search_path_CXX"; then
12543	     compiler_lib_search_path_CXX="${prev}${p}"
12544	   else
12545	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12546	   fi
12547	   ;;
12548	 # The "-l" case would never come before the object being
12549	 # linked, so don't bother handling this case.
12550	 esac
12551       else
12552	 if test -z "$postdeps_CXX"; then
12553	   postdeps_CXX="${prev}${p}"
12554	 else
12555	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12556	 fi
12557       fi
12558       ;;
12559
12560    *.$objext)
12561       # This assumes that the test object file only shows up
12562       # once in the compiler output.
12563       if test "$p" = "conftest.$objext"; then
12564	 pre_test_object_deps_done=yes
12565	 continue
12566       fi
12567
12568       if test "$pre_test_object_deps_done" = no; then
12569	 if test -z "$predep_objects_CXX"; then
12570	   predep_objects_CXX="$p"
12571	 else
12572	   predep_objects_CXX="$predep_objects_CXX $p"
12573	 fi
12574       else
12575	 if test -z "$postdep_objects_CXX"; then
12576	   postdep_objects_CXX="$p"
12577	 else
12578	   postdep_objects_CXX="$postdep_objects_CXX $p"
12579	 fi
12580       fi
12581       ;;
12582
12583    *) ;; # Ignore the rest.
12584
12585    esac
12586  done
12587
12588  # Clean up.
12589  rm -f a.out a.exe
12590else
12591  echo "libtool.m4: error: problem compiling CXX test program"
12592fi
12593
12594$rm -f confest.$objext
12595
12596compiler_lib_search_dirs_CXX=
12597if test -n "$compiler_lib_search_path_CXX"; then
12598  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12599fi
12600
12601# PORTME: override above test on systems where it is broken
12602case $host_os in
12603interix[3-9]*)
12604  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12605  # hack all around it, let's just trust "g++" to DTRT.
12606  predep_objects_CXX=
12607  postdep_objects_CXX=
12608  postdeps_CXX=
12609  ;;
12610
12611linux*)
12612  case `$CC -V 2>&1 | sed 5q` in
12613  *Sun\ C*)
12614    # Sun C++ 5.9
12615    #
12616    # The more standards-conforming stlport4 library is
12617    # incompatible with the Cstd library. Avoid specifying
12618    # it if it's in CXXFLAGS. Ignore libCrun as
12619    # -library=stlport4 depends on it.
12620    case " $CXX $CXXFLAGS " in
12621    *" -library=stlport4 "*)
12622      solaris_use_stlport4=yes
12623      ;;
12624    esac
12625    if test "$solaris_use_stlport4" != yes; then
12626      postdeps_CXX='-library=Cstd -library=Crun'
12627    fi
12628    ;;
12629  esac
12630  ;;
12631
12632solaris*)
12633  case $cc_basename in
12634  CC*)
12635    # The more standards-conforming stlport4 library is
12636    # incompatible with the Cstd library. Avoid specifying
12637    # it if it's in CXXFLAGS. Ignore libCrun as
12638    # -library=stlport4 depends on it.
12639    case " $CXX $CXXFLAGS " in
12640    *" -library=stlport4 "*)
12641      solaris_use_stlport4=yes
12642      ;;
12643    esac
12644
12645    # Adding this requires a known-good setup of shared libraries for
12646    # Sun compiler versions before 5.6, else PIC objects from an old
12647    # archive will be linked into the output, leading to subtle bugs.
12648    if test "$solaris_use_stlport4" != yes; then
12649      postdeps_CXX='-library=Cstd -library=Crun'
12650    fi
12651    ;;
12652  esac
12653  ;;
12654esac
12655
12656case " $postdeps_CXX " in
12657*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12658esac
12659
12660lt_prog_compiler_wl_CXX=
12661lt_prog_compiler_pic_CXX=
12662lt_prog_compiler_static_CXX=
12663
12664{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12665$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12666
12667  # C++ specific cases for pic, static, wl, etc.
12668  if test "$GXX" = yes; then
12669    lt_prog_compiler_wl_CXX='-Wl,'
12670    lt_prog_compiler_static_CXX='-static'
12671
12672    case $host_os in
12673    aix*)
12674      # All AIX code is PIC.
12675      if test "$host_cpu" = ia64; then
12676	# AIX 5 now supports IA64 processor
12677	lt_prog_compiler_static_CXX='-Bstatic'
12678      fi
12679      ;;
12680    amigaos*)
12681      # FIXME: we need at least 68020 code to build shared libraries, but
12682      # adding the `-m68020' flag to GCC prevents building anything better,
12683      # like `-m68040'.
12684      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12685      ;;
12686    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12687      # PIC is the default for these OSes.
12688      ;;
12689    mingw* | cygwin* | os2* | pw32*)
12690      # This hack is so that the source file can tell whether it is being
12691      # built for inclusion in a dll (and should export symbols for example).
12692      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12693      # (--disable-auto-import) libraries
12694      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12695      ;;
12696    darwin* | rhapsody*)
12697      # PIC is the default on this platform
12698      # Common symbols not allowed in MH_DYLIB files
12699      lt_prog_compiler_pic_CXX='-fno-common'
12700      ;;
12701    *djgpp*)
12702      # DJGPP does not support shared libraries at all
12703      lt_prog_compiler_pic_CXX=
12704      ;;
12705    interix[3-9]*)
12706      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12707      # Instead, we relocate shared libraries at runtime.
12708      ;;
12709    sysv4*MP*)
12710      if test -d /usr/nec; then
12711	lt_prog_compiler_pic_CXX=-Kconform_pic
12712      fi
12713      ;;
12714    hpux*)
12715      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12716      # not for PA HP-UX.
12717      case $host_cpu in
12718      hppa*64*|ia64*)
12719	;;
12720      *)
12721	lt_prog_compiler_pic_CXX='-fPIC'
12722	;;
12723      esac
12724      ;;
12725    *)
12726      lt_prog_compiler_pic_CXX='-fPIC'
12727      ;;
12728    esac
12729  else
12730    case $host_os in
12731      aix[4-9]*)
12732	# All AIX code is PIC.
12733	if test "$host_cpu" = ia64; then
12734	  # AIX 5 now supports IA64 processor
12735	  lt_prog_compiler_static_CXX='-Bstatic'
12736	else
12737	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12738	fi
12739	;;
12740      chorus*)
12741	case $cc_basename in
12742	cxch68*)
12743	  # Green Hills C++ Compiler
12744	  # _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"
12745	  ;;
12746	esac
12747	;;
12748       darwin*)
12749         # PIC is the default on this platform
12750         # Common symbols not allowed in MH_DYLIB files
12751         case $cc_basename in
12752           xlc*)
12753           lt_prog_compiler_pic_CXX='-qnocommon'
12754           lt_prog_compiler_wl_CXX='-Wl,'
12755           ;;
12756         esac
12757       ;;
12758      dgux*)
12759	case $cc_basename in
12760	  ec++*)
12761	    lt_prog_compiler_pic_CXX='-KPIC'
12762	    ;;
12763	  ghcx*)
12764	    # Green Hills C++ Compiler
12765	    lt_prog_compiler_pic_CXX='-pic'
12766	    ;;
12767	  *)
12768	    ;;
12769	esac
12770	;;
12771      freebsd* | dragonfly*)
12772	# FreeBSD uses GNU C++
12773	;;
12774      hpux9* | hpux10* | hpux11*)
12775	case $cc_basename in
12776	  CC*)
12777	    lt_prog_compiler_wl_CXX='-Wl,'
12778	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12779	    if test "$host_cpu" != ia64; then
12780	      lt_prog_compiler_pic_CXX='+Z'
12781	    fi
12782	    ;;
12783	  aCC*)
12784	    lt_prog_compiler_wl_CXX='-Wl,'
12785	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12786	    case $host_cpu in
12787	    hppa*64*|ia64*)
12788	      # +Z the default
12789	      ;;
12790	    *)
12791	      lt_prog_compiler_pic_CXX='+Z'
12792	      ;;
12793	    esac
12794	    ;;
12795	  *)
12796	    ;;
12797	esac
12798	;;
12799      interix*)
12800	# This is c89, which is MS Visual C++ (no shared libs)
12801	# Anyone wants to do a port?
12802	;;
12803      irix5* | irix6* | nonstopux*)
12804	case $cc_basename in
12805	  CC*)
12806	    lt_prog_compiler_wl_CXX='-Wl,'
12807	    lt_prog_compiler_static_CXX='-non_shared'
12808	    # CC pic flag -KPIC is the default.
12809	    ;;
12810	  *)
12811	    ;;
12812	esac
12813	;;
12814      linux* | k*bsd*-gnu)
12815	case $cc_basename in
12816	  KCC*)
12817	    # KAI C++ Compiler
12818	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12819	    lt_prog_compiler_pic_CXX='-fPIC'
12820	    ;;
12821	  icpc* | ecpc*)
12822	    # Intel C++
12823	    lt_prog_compiler_wl_CXX='-Wl,'
12824	    lt_prog_compiler_pic_CXX='-KPIC'
12825	    lt_prog_compiler_static_CXX='-static'
12826	    ;;
12827	  pgCC* | pgcpp*)
12828	    # Portland Group C++ compiler.
12829	    lt_prog_compiler_wl_CXX='-Wl,'
12830	    lt_prog_compiler_pic_CXX='-fpic'
12831	    lt_prog_compiler_static_CXX='-Bstatic'
12832	    ;;
12833	  cxx*)
12834	    # Compaq C++
12835	    # Make sure the PIC flag is empty.  It appears that all Alpha
12836	    # Linux and Compaq Tru64 Unix objects are PIC.
12837	    lt_prog_compiler_pic_CXX=
12838	    lt_prog_compiler_static_CXX='-non_shared'
12839	    ;;
12840	  *)
12841	    case `$CC -V 2>&1 | sed 5q` in
12842	    *Sun\ C*)
12843	      # Sun C++ 5.9
12844	      lt_prog_compiler_pic_CXX='-KPIC'
12845	      lt_prog_compiler_static_CXX='-Bstatic'
12846	      lt_prog_compiler_wl_CXX='-Qoption ld '
12847	      ;;
12848	    esac
12849	    ;;
12850	esac
12851	;;
12852      lynxos*)
12853	;;
12854      m88k*)
12855	;;
12856      mvs*)
12857	case $cc_basename in
12858	  cxx*)
12859	    lt_prog_compiler_pic_CXX='-W c,exportall'
12860	    ;;
12861	  *)
12862	    ;;
12863	esac
12864	;;
12865      netbsd*)
12866	;;
12867      osf3* | osf4* | osf5*)
12868	case $cc_basename in
12869	  KCC*)
12870	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12871	    ;;
12872	  RCC*)
12873	    # Rational C++ 2.4.1
12874	    lt_prog_compiler_pic_CXX='-pic'
12875	    ;;
12876	  cxx*)
12877	    # Digital/Compaq C++
12878	    lt_prog_compiler_wl_CXX='-Wl,'
12879	    # Make sure the PIC flag is empty.  It appears that all Alpha
12880	    # Linux and Compaq Tru64 Unix objects are PIC.
12881	    lt_prog_compiler_pic_CXX=
12882	    lt_prog_compiler_static_CXX='-non_shared'
12883	    ;;
12884	  *)
12885	    ;;
12886	esac
12887	;;
12888      psos*)
12889	;;
12890      solaris*)
12891	case $cc_basename in
12892	  CC*)
12893	    # Sun C++ 4.2, 5.x and Centerline C++
12894	    lt_prog_compiler_pic_CXX='-KPIC'
12895	    lt_prog_compiler_static_CXX='-Bstatic'
12896	    lt_prog_compiler_wl_CXX='-Qoption ld '
12897	    ;;
12898	  gcx*)
12899	    # Green Hills C++ Compiler
12900	    lt_prog_compiler_pic_CXX='-PIC'
12901	    ;;
12902	  *)
12903	    ;;
12904	esac
12905	;;
12906      sunos4*)
12907	case $cc_basename in
12908	  CC*)
12909	    # Sun C++ 4.x
12910	    lt_prog_compiler_pic_CXX='-pic'
12911	    lt_prog_compiler_static_CXX='-Bstatic'
12912	    ;;
12913	  lcc*)
12914	    # Lucid
12915	    lt_prog_compiler_pic_CXX='-pic'
12916	    ;;
12917	  *)
12918	    ;;
12919	esac
12920	;;
12921      tandem*)
12922	case $cc_basename in
12923	  NCC*)
12924	    # NonStop-UX NCC 3.20
12925	    lt_prog_compiler_pic_CXX='-KPIC'
12926	    ;;
12927	  *)
12928	    ;;
12929	esac
12930	;;
12931      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12932	case $cc_basename in
12933	  CC*)
12934	    lt_prog_compiler_wl_CXX='-Wl,'
12935	    lt_prog_compiler_pic_CXX='-KPIC'
12936	    lt_prog_compiler_static_CXX='-Bstatic'
12937	    ;;
12938	esac
12939	;;
12940      vxworks*)
12941	;;
12942      *)
12943	lt_prog_compiler_can_build_shared_CXX=no
12944	;;
12945    esac
12946  fi
12947
12948{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12949$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12950
12951#
12952# Check to make sure the PIC flag actually works.
12953#
12954if test -n "$lt_prog_compiler_pic_CXX"; then
12955
12956{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12957$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12958if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12959  $as_echo_n "(cached) " >&6
12960else
12961  lt_cv_prog_compiler_pic_works_CXX=no
12962  ac_outfile=conftest.$ac_objext
12963   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12964   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12965   # Insert the option either (1) after the last *FLAGS variable, or
12966   # (2) before a word containing "conftest.", or (3) at the end.
12967   # Note that $ac_compile itself does not contain backslashes and begins
12968   # with a dollar sign (not a hyphen), so the echo should work correctly.
12969   # The option is referenced via a variable to avoid confusing sed.
12970   lt_compile=`echo "$ac_compile" | $SED \
12971   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12972   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12973   -e 's:$: $lt_compiler_flag:'`
12974   (eval echo "\"\$as_me:12974: $lt_compile\"" >&5)
12975   (eval "$lt_compile" 2>conftest.err)
12976   ac_status=$?
12977   cat conftest.err >&5
12978   echo "$as_me:12978: \$? = $ac_status" >&5
12979   if (exit $ac_status) && test -s "$ac_outfile"; then
12980     # The compiler can only warn and ignore the option if not recognized
12981     # So say no if there are warnings other than the usual output.
12982     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12983     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12984     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12985       lt_cv_prog_compiler_pic_works_CXX=yes
12986     fi
12987   fi
12988   $rm conftest*
12989
12990fi
12991{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12992$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12993
12994if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12995    case $lt_prog_compiler_pic_CXX in
12996     "" | " "*) ;;
12997     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12998     esac
12999else
13000    lt_prog_compiler_pic_CXX=
13001     lt_prog_compiler_can_build_shared_CXX=no
13002fi
13003
13004fi
13005case $host_os in
13006  # For platforms which do not support PIC, -DPIC is meaningless:
13007  *djgpp*)
13008    lt_prog_compiler_pic_CXX=
13009    ;;
13010  *)
13011    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13012    ;;
13013esac
13014
13015#
13016# Check to make sure the static flag actually works.
13017#
13018wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13019{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13020$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13021if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13022  $as_echo_n "(cached) " >&6
13023else
13024  lt_cv_prog_compiler_static_works_CXX=no
13025   save_LDFLAGS="$LDFLAGS"
13026   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13027   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13028   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13029     # The linker can only warn and ignore the option if not recognized
13030     # So say no if there are warnings
13031     if test -s conftest.err; then
13032       # Append any errors to the config.log.
13033       cat conftest.err 1>&5
13034       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13035       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13036       if diff conftest.exp conftest.er2 >/dev/null; then
13037         lt_cv_prog_compiler_static_works_CXX=yes
13038       fi
13039     else
13040       lt_cv_prog_compiler_static_works_CXX=yes
13041     fi
13042   fi
13043   $rm -r conftest*
13044   LDFLAGS="$save_LDFLAGS"
13045
13046fi
13047{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13048$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13049
13050if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13051    :
13052else
13053    lt_prog_compiler_static_CXX=
13054fi
13055
13056
13057{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13058$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13059if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13060  $as_echo_n "(cached) " >&6
13061else
13062  lt_cv_prog_compiler_c_o_CXX=no
13063   $rm -r conftest 2>/dev/null
13064   mkdir conftest
13065   cd conftest
13066   mkdir out
13067   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069   lt_compiler_flag="-o out/conftest2.$ac_objext"
13070   # Insert the option either (1) after the last *FLAGS variable, or
13071   # (2) before a word containing "conftest.", or (3) at the end.
13072   # Note that $ac_compile itself does not contain backslashes and begins
13073   # with a dollar sign (not a hyphen), so the echo should work correctly.
13074   lt_compile=`echo "$ac_compile" | $SED \
13075   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13076   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077   -e 's:$: $lt_compiler_flag:'`
13078   (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13079   (eval "$lt_compile" 2>out/conftest.err)
13080   ac_status=$?
13081   cat out/conftest.err >&5
13082   echo "$as_me:13082: \$? = $ac_status" >&5
13083   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13084   then
13085     # The compiler can only warn and ignore the option if not recognized
13086     # So say no if there are warnings
13087     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13088     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13089     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13090       lt_cv_prog_compiler_c_o_CXX=yes
13091     fi
13092   fi
13093   chmod u+w . 2>&5
13094   $rm conftest*
13095   # SGI C++ compiler will create directory out/ii_files/ for
13096   # template instantiation
13097   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13098   $rm out/* && rmdir out
13099   cd ..
13100   rmdir conftest
13101   $rm conftest*
13102
13103fi
13104{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13105$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13106
13107
13108hard_links="nottested"
13109if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13110  # do not overwrite the value of need_locks provided by the user
13111  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13112$as_echo_n "checking if we can lock with hard links... " >&6; }
13113  hard_links=yes
13114  $rm conftest*
13115  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13116  touch conftest.a
13117  ln conftest.a conftest.b 2>&5 || hard_links=no
13118  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13120$as_echo "$hard_links" >&6; }
13121  if test "$hard_links" = no; then
13122    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13123$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13124    need_locks=warn
13125  fi
13126else
13127  need_locks=no
13128fi
13129
13130{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13131$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13132
13133  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13134  case $host_os in
13135  aix[4-9]*)
13136    # If we're using GNU nm, then we don't want the "-C" option.
13137    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13138    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13139      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'
13140    else
13141      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'
13142    fi
13143    ;;
13144  pw32*)
13145    export_symbols_cmds_CXX="$ltdll_cmds"
13146  ;;
13147  cygwin* | mingw*)
13148    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'
13149  ;;
13150  *)
13151    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13152  ;;
13153  esac
13154  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13155
13156{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13157$as_echo "$ld_shlibs_CXX" >&6; }
13158test "$ld_shlibs_CXX" = no && can_build_shared=no
13159
13160#
13161# Do we need to explicitly link libc?
13162#
13163case "x$archive_cmds_need_lc_CXX" in
13164x|xyes)
13165  # Assume -lc should be added
13166  archive_cmds_need_lc_CXX=yes
13167
13168  if test "$enable_shared" = yes && test "$GCC" = yes; then
13169    case $archive_cmds_CXX in
13170    *'~'*)
13171      # FIXME: we may have to deal with multi-command sequences.
13172      ;;
13173    '$CC '*)
13174      # Test whether the compiler implicitly links with -lc since on some
13175      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13176      # to ld, don't add -lc before -lgcc.
13177      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13179      $rm conftest*
13180      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13181
13182      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13183  (eval $ac_compile) 2>&5
13184  ac_status=$?
13185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186  (exit $ac_status); } 2>conftest.err; then
13187        soname=conftest
13188        lib=conftest
13189        libobjs=conftest.$ac_objext
13190        deplibs=
13191        wl=$lt_prog_compiler_wl_CXX
13192	pic_flag=$lt_prog_compiler_pic_CXX
13193        compiler_flags=-v
13194        linker_flags=-v
13195        verstring=
13196        output_objdir=.
13197        libname=conftest
13198        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13199        allow_undefined_flag_CXX=
13200        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13201  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13202  ac_status=$?
13203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); }
13205        then
13206	  archive_cmds_need_lc_CXX=no
13207        else
13208	  archive_cmds_need_lc_CXX=yes
13209        fi
13210        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13211      else
13212        cat conftest.err 1>&5
13213      fi
13214      $rm conftest*
13215      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13216$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13217      ;;
13218    esac
13219  fi
13220  ;;
13221esac
13222
13223{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13224$as_echo_n "checking dynamic linker characteristics... " >&6; }
13225library_names_spec=
13226libname_spec='lib$name'
13227soname_spec=
13228shrext_cmds=".so"
13229postinstall_cmds=
13230postuninstall_cmds=
13231finish_cmds=
13232finish_eval=
13233shlibpath_var=
13234shlibpath_overrides_runpath=unknown
13235version_type=none
13236dynamic_linker="$host_os ld.so"
13237sys_lib_dlsearch_path_spec="/lib /usr/lib"
13238
13239need_lib_prefix=unknown
13240hardcode_into_libs=no
13241
13242# when you set need_version to no, make sure it does not cause -set_version
13243# flags to be left without arguments
13244need_version=unknown
13245
13246case $host_os in
13247aix3*)
13248  version_type=linux
13249  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13250  shlibpath_var=LIBPATH
13251
13252  # AIX 3 has no versioning support, so we append a major version to the name.
13253  soname_spec='${libname}${release}${shared_ext}$major'
13254  ;;
13255
13256aix[4-9]*)
13257  version_type=linux
13258  need_lib_prefix=no
13259  need_version=no
13260  hardcode_into_libs=yes
13261  if test "$host_cpu" = ia64; then
13262    # AIX 5 supports IA64
13263    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13264    shlibpath_var=LD_LIBRARY_PATH
13265  else
13266    # With GCC up to 2.95.x, collect2 would create an import file
13267    # for dependence libraries.  The import file would start with
13268    # the line `#! .'.  This would cause the generated library to
13269    # depend on `.', always an invalid library.  This was fixed in
13270    # development snapshots of GCC prior to 3.0.
13271    case $host_os in
13272      aix4 | aix4.[01] | aix4.[01].*)
13273      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13274	   echo ' yes '
13275	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13276	:
13277      else
13278	can_build_shared=no
13279      fi
13280      ;;
13281    esac
13282    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13283    # soname into executable. Probably we can add versioning support to
13284    # collect2, so additional links can be useful in future.
13285    if test "$aix_use_runtimelinking" = yes; then
13286      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13287      # instead of lib<name>.a to let people know that these are not
13288      # typical AIX shared libraries.
13289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290    else
13291      # We preserve .a as extension for shared libraries through AIX4.2
13292      # and later when we are not doing run time linking.
13293      library_names_spec='${libname}${release}.a $libname.a'
13294      soname_spec='${libname}${release}${shared_ext}$major'
13295    fi
13296    shlibpath_var=LIBPATH
13297  fi
13298  ;;
13299
13300amigaos*)
13301  library_names_spec='$libname.ixlibrary $libname.a'
13302  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13303  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'
13304  ;;
13305
13306beos*)
13307  library_names_spec='${libname}${shared_ext}'
13308  dynamic_linker="$host_os ld.so"
13309  shlibpath_var=LIBRARY_PATH
13310  ;;
13311
13312bsdi[45]*)
13313  version_type=linux
13314  need_version=no
13315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316  soname_spec='${libname}${release}${shared_ext}$major'
13317  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13318  shlibpath_var=LD_LIBRARY_PATH
13319  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13320  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13321  # the default ld.so.conf also contains /usr/contrib/lib and
13322  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13323  # libtool to hard-code these into programs
13324  ;;
13325
13326cygwin* | mingw* | pw32*)
13327  version_type=windows
13328  shrext_cmds=".dll"
13329  need_version=no
13330  need_lib_prefix=no
13331
13332  case $GCC,$host_os in
13333  yes,cygwin* | yes,mingw* | yes,pw32*)
13334    library_names_spec='$libname.dll.a'
13335    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13336    postinstall_cmds='base_file=`basename \${file}`~
13337      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13338      dldir=$destdir/`dirname \$dlpath`~
13339      test -d \$dldir || mkdir -p \$dldir~
13340      $install_prog $dir/$dlname \$dldir/$dlname~
13341      chmod a+x \$dldir/$dlname'
13342    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13343      dlpath=$dir/\$dldll~
13344       $rm \$dlpath'
13345    shlibpath_overrides_runpath=yes
13346
13347    case $host_os in
13348    cygwin*)
13349      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13350      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13351      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13352      ;;
13353    mingw*)
13354      # MinGW DLLs use traditional 'lib' prefix
13355      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13356      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13357      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13358        # It is most probably a Windows format PATH printed by
13359        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13360        # path with ; separators, and with drive letters. We can handle the
13361        # drive letters (cygwin fileutils understands them), so leave them,
13362        # especially as we might pass files found there to a mingw objdump,
13363        # which wouldn't understand a cygwinified path. Ahh.
13364        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13365      else
13366        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13367      fi
13368      ;;
13369    pw32*)
13370      # pw32 DLLs use 'pw' prefix rather than 'lib'
13371      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13372      ;;
13373    esac
13374    ;;
13375
13376  *)
13377    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13378    ;;
13379  esac
13380  dynamic_linker='Win32 ld.exe'
13381  # FIXME: first we should search . and the directory the executable is in
13382  shlibpath_var=PATH
13383  ;;
13384
13385darwin* | rhapsody*)
13386  dynamic_linker="$host_os dyld"
13387  version_type=darwin
13388  need_lib_prefix=no
13389  need_version=no
13390  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13391  soname_spec='${libname}${release}${major}$shared_ext'
13392  shlibpath_overrides_runpath=yes
13393  shlibpath_var=DYLD_LIBRARY_PATH
13394  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13395
13396  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13397  ;;
13398
13399dgux*)
13400  version_type=linux
13401  need_lib_prefix=no
13402  need_version=no
13403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13404  soname_spec='${libname}${release}${shared_ext}$major'
13405  shlibpath_var=LD_LIBRARY_PATH
13406  ;;
13407
13408freebsd1*)
13409  dynamic_linker=no
13410  ;;
13411
13412freebsd* | dragonfly*)
13413  # DragonFly does not have aout.  When/if they implement a new
13414  # versioning mechanism, adjust this.
13415  if test -x /usr/bin/objformat; then
13416    objformat=`/usr/bin/objformat`
13417  else
13418    case $host_os in
13419    freebsd[123]*) objformat=aout ;;
13420    *) objformat=elf ;;
13421    esac
13422  fi
13423  version_type=freebsd-$objformat
13424  case $version_type in
13425    freebsd-elf*)
13426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13427      need_version=no
13428      need_lib_prefix=no
13429      ;;
13430    freebsd-*)
13431      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13432      need_version=yes
13433      ;;
13434  esac
13435  shlibpath_var=LD_LIBRARY_PATH
13436  case $host_os in
13437  freebsd2*)
13438    shlibpath_overrides_runpath=yes
13439    ;;
13440  freebsd3.[01]* | freebsdelf3.[01]*)
13441    shlibpath_overrides_runpath=yes
13442    hardcode_into_libs=yes
13443    ;;
13444  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13445  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13446    shlibpath_overrides_runpath=no
13447    hardcode_into_libs=yes
13448    ;;
13449  *) # from 4.6 on, and DragonFly
13450    shlibpath_overrides_runpath=yes
13451    hardcode_into_libs=yes
13452    ;;
13453  esac
13454  ;;
13455
13456gnu*)
13457  version_type=linux
13458  need_lib_prefix=no
13459  need_version=no
13460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13461  soname_spec='${libname}${release}${shared_ext}$major'
13462  shlibpath_var=LD_LIBRARY_PATH
13463  hardcode_into_libs=yes
13464  ;;
13465
13466hpux9* | hpux10* | hpux11*)
13467  # Give a soname corresponding to the major version so that dld.sl refuses to
13468  # link against other versions.
13469  version_type=sunos
13470  need_lib_prefix=no
13471  need_version=no
13472  case $host_cpu in
13473  ia64*)
13474    shrext_cmds='.so'
13475    hardcode_into_libs=yes
13476    dynamic_linker="$host_os dld.so"
13477    shlibpath_var=LD_LIBRARY_PATH
13478    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13479    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480    soname_spec='${libname}${release}${shared_ext}$major'
13481    if test "X$HPUX_IA64_MODE" = X32; then
13482      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13483    else
13484      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13485    fi
13486    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13487    ;;
13488   hppa*64*)
13489     shrext_cmds='.sl'
13490     hardcode_into_libs=yes
13491     dynamic_linker="$host_os dld.sl"
13492     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13493     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13498     ;;
13499   *)
13500    shrext_cmds='.sl'
13501    dynamic_linker="$host_os dld.sl"
13502    shlibpath_var=SHLIB_PATH
13503    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505    soname_spec='${libname}${release}${shared_ext}$major'
13506    ;;
13507  esac
13508  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13509  postinstall_cmds='chmod 555 $lib'
13510  ;;
13511
13512interix[3-9]*)
13513  version_type=linux
13514  need_lib_prefix=no
13515  need_version=no
13516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13517  soname_spec='${libname}${release}${shared_ext}$major'
13518  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13519  shlibpath_var=LD_LIBRARY_PATH
13520  shlibpath_overrides_runpath=no
13521  hardcode_into_libs=yes
13522  ;;
13523
13524irix5* | irix6* | nonstopux*)
13525  case $host_os in
13526    nonstopux*) version_type=nonstopux ;;
13527    *)
13528	if test "$lt_cv_prog_gnu_ld" = yes; then
13529		version_type=linux
13530	else
13531		version_type=irix
13532	fi ;;
13533  esac
13534  need_lib_prefix=no
13535  need_version=no
13536  soname_spec='${libname}${release}${shared_ext}$major'
13537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13538  case $host_os in
13539  irix5* | nonstopux*)
13540    libsuff= shlibsuff=
13541    ;;
13542  *)
13543    case $LD in # libtool.m4 will add one of these switches to LD
13544    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13545      libsuff= shlibsuff= libmagic=32-bit;;
13546    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13547      libsuff=32 shlibsuff=N32 libmagic=N32;;
13548    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13549      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13550    *) libsuff= shlibsuff= libmagic=never-match;;
13551    esac
13552    ;;
13553  esac
13554  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13555  shlibpath_overrides_runpath=no
13556  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13557  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13558  hardcode_into_libs=yes
13559  ;;
13560
13561# No shared lib support for Linux oldld, aout, or coff.
13562linux*oldld* | linux*aout* | linux*coff*)
13563  dynamic_linker=no
13564  ;;
13565
13566# This must be Linux ELF.
13567linux* | k*bsd*-gnu)
13568  version_type=linux
13569  need_lib_prefix=no
13570  need_version=no
13571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572  soname_spec='${libname}${release}${shared_ext}$major'
13573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13574  shlibpath_var=LD_LIBRARY_PATH
13575  shlibpath_overrides_runpath=no
13576  # This implies no fast_install, which is unacceptable.
13577  # Some rework will be needed to allow for fast_install
13578  # before this can be enabled.
13579  hardcode_into_libs=yes
13580  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13581  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13582
13583  # Append ld.so.conf contents to the search path
13584  if test -f /etc/ld.so.conf; then
13585    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' ' '`
13586    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13587  fi
13588
13589  # We used to test for /lib/ld.so.1 and disable shared libraries on
13590  # powerpc, because MkLinux only supported shared libraries with the
13591  # GNU dynamic linker.  Since this was broken with cross compilers,
13592  # most powerpc-linux boxes support dynamic linking these days and
13593  # people can always --disable-shared, the test was removed, and we
13594  # assume the GNU/Linux dynamic linker is in use.
13595  dynamic_linker='GNU/Linux ld.so'
13596  ;;
13597
13598netbsd*)
13599  version_type=sunos
13600  need_lib_prefix=no
13601  need_version=no
13602  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13604    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13605    dynamic_linker='NetBSD (a.out) ld.so'
13606  else
13607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13608    soname_spec='${libname}${release}${shared_ext}$major'
13609    dynamic_linker='NetBSD ld.elf_so'
13610  fi
13611  shlibpath_var=LD_LIBRARY_PATH
13612  shlibpath_overrides_runpath=yes
13613  hardcode_into_libs=yes
13614  ;;
13615
13616newsos6)
13617  version_type=linux
13618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619  shlibpath_var=LD_LIBRARY_PATH
13620  shlibpath_overrides_runpath=yes
13621  ;;
13622
13623nto-qnx*)
13624  version_type=linux
13625  need_lib_prefix=no
13626  need_version=no
13627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628  soname_spec='${libname}${release}${shared_ext}$major'
13629  shlibpath_var=LD_LIBRARY_PATH
13630  shlibpath_overrides_runpath=yes
13631  ;;
13632
13633openbsd*)
13634  version_type=sunos
13635  sys_lib_dlsearch_path_spec="/usr/lib"
13636  need_lib_prefix=no
13637  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13638  case $host_os in
13639    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13640    *)                         need_version=no  ;;
13641  esac
13642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13643  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13644  shlibpath_var=LD_LIBRARY_PATH
13645  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13646    case $host_os in
13647      openbsd2.[89] | openbsd2.[89].*)
13648	shlibpath_overrides_runpath=no
13649	;;
13650      *)
13651	shlibpath_overrides_runpath=yes
13652	;;
13653      esac
13654  else
13655    shlibpath_overrides_runpath=yes
13656  fi
13657  ;;
13658
13659os2*)
13660  libname_spec='$name'
13661  shrext_cmds=".dll"
13662  need_lib_prefix=no
13663  library_names_spec='$libname${shared_ext} $libname.a'
13664  dynamic_linker='OS/2 ld.exe'
13665  shlibpath_var=LIBPATH
13666  ;;
13667
13668osf3* | osf4* | osf5*)
13669  version_type=osf
13670  need_lib_prefix=no
13671  need_version=no
13672  soname_spec='${libname}${release}${shared_ext}$major'
13673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13676  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13677  ;;
13678
13679rdos*)
13680  dynamic_linker=no
13681  ;;
13682
13683solaris*)
13684  version_type=linux
13685  need_lib_prefix=no
13686  need_version=no
13687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688  soname_spec='${libname}${release}${shared_ext}$major'
13689  shlibpath_var=LD_LIBRARY_PATH
13690  shlibpath_overrides_runpath=yes
13691  hardcode_into_libs=yes
13692  # ldd complains unless libraries are executable
13693  postinstall_cmds='chmod +x $lib'
13694  ;;
13695
13696sunos4*)
13697  version_type=sunos
13698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13699  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  shlibpath_overrides_runpath=yes
13702  if test "$with_gnu_ld" = yes; then
13703    need_lib_prefix=no
13704  fi
13705  need_version=yes
13706  ;;
13707
13708sysv4 | sysv4.3*)
13709  version_type=linux
13710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711  soname_spec='${libname}${release}${shared_ext}$major'
13712  shlibpath_var=LD_LIBRARY_PATH
13713  case $host_vendor in
13714    sni)
13715      shlibpath_overrides_runpath=no
13716      need_lib_prefix=no
13717      export_dynamic_flag_spec='${wl}-Blargedynsym'
13718      runpath_var=LD_RUN_PATH
13719      ;;
13720    siemens)
13721      need_lib_prefix=no
13722      ;;
13723    motorola)
13724      need_lib_prefix=no
13725      need_version=no
13726      shlibpath_overrides_runpath=no
13727      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13728      ;;
13729  esac
13730  ;;
13731
13732sysv4*MP*)
13733  if test -d /usr/nec ;then
13734    version_type=linux
13735    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13736    soname_spec='$libname${shared_ext}.$major'
13737    shlibpath_var=LD_LIBRARY_PATH
13738  fi
13739  ;;
13740
13741sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13742  version_type=freebsd-elf
13743  need_lib_prefix=no
13744  need_version=no
13745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13746  soname_spec='${libname}${release}${shared_ext}$major'
13747  shlibpath_var=LD_LIBRARY_PATH
13748  hardcode_into_libs=yes
13749  if test "$with_gnu_ld" = yes; then
13750    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13751    shlibpath_overrides_runpath=no
13752  else
13753    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13754    shlibpath_overrides_runpath=yes
13755    case $host_os in
13756      sco3.2v5*)
13757        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13758	;;
13759    esac
13760  fi
13761  sys_lib_dlsearch_path_spec='/usr/lib'
13762  ;;
13763
13764uts4*)
13765  version_type=linux
13766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767  soname_spec='${libname}${release}${shared_ext}$major'
13768  shlibpath_var=LD_LIBRARY_PATH
13769  ;;
13770
13771*)
13772  dynamic_linker=no
13773  ;;
13774esac
13775{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13776$as_echo "$dynamic_linker" >&6; }
13777test "$dynamic_linker" = no && can_build_shared=no
13778
13779if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13780  $as_echo_n "(cached) " >&6
13781else
13782  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13783fi
13784
13785sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13786if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13787  $as_echo_n "(cached) " >&6
13788else
13789  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13790fi
13791
13792sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13793
13794variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13795if test "$GCC" = yes; then
13796  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13797fi
13798
13799{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13800$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13801hardcode_action_CXX=
13802if test -n "$hardcode_libdir_flag_spec_CXX" || \
13803   test -n "$runpath_var_CXX" || \
13804   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13805
13806  # We can hardcode non-existant directories.
13807  if test "$hardcode_direct_CXX" != no &&
13808     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13809     # have to relink, otherwise we might link with an installed library
13810     # when we should be linking with a yet-to-be-installed one
13811     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13812     test "$hardcode_minus_L_CXX" != no; then
13813    # Linking always hardcodes the temporary library directory.
13814    hardcode_action_CXX=relink
13815  else
13816    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13817    hardcode_action_CXX=immediate
13818  fi
13819else
13820  # We cannot hardcode anything, or else we can only hardcode existing
13821  # directories.
13822  hardcode_action_CXX=unsupported
13823fi
13824{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13825$as_echo "$hardcode_action_CXX" >&6; }
13826
13827if test "$hardcode_action_CXX" = relink; then
13828  # Fast installation is not supported
13829  enable_fast_install=no
13830elif test "$shlibpath_overrides_runpath" = yes ||
13831     test "$enable_shared" = no; then
13832  # Fast installation is not necessary
13833  enable_fast_install=needless
13834fi
13835
13836
13837# The else clause should only fire when bootstrapping the
13838# libtool distribution, otherwise you forgot to ship ltmain.sh
13839# with your package, and you will get complaints that there are
13840# no rules to generate ltmain.sh.
13841if test -f "$ltmain"; then
13842  # See if we are running on zsh, and set the options which allow our commands through
13843  # without removal of \ escapes.
13844  if test -n "${ZSH_VERSION+set}" ; then
13845    setopt NO_GLOB_SUBST
13846  fi
13847  # Now quote all the things that may contain metacharacters while being
13848  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13849  # variables and quote the copies for generation of the libtool script.
13850  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13851    SED SHELL STRIP \
13852    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13853    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13854    deplibs_check_method reload_flag reload_cmds need_locks \
13855    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13856    lt_cv_sys_global_symbol_to_c_name_address \
13857    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13858    old_postinstall_cmds old_postuninstall_cmds \
13859    compiler_CXX \
13860    CC_CXX \
13861    LD_CXX \
13862    lt_prog_compiler_wl_CXX \
13863    lt_prog_compiler_pic_CXX \
13864    lt_prog_compiler_static_CXX \
13865    lt_prog_compiler_no_builtin_flag_CXX \
13866    export_dynamic_flag_spec_CXX \
13867    thread_safe_flag_spec_CXX \
13868    whole_archive_flag_spec_CXX \
13869    enable_shared_with_static_runtimes_CXX \
13870    old_archive_cmds_CXX \
13871    old_archive_from_new_cmds_CXX \
13872    predep_objects_CXX \
13873    postdep_objects_CXX \
13874    predeps_CXX \
13875    postdeps_CXX \
13876    compiler_lib_search_path_CXX \
13877    compiler_lib_search_dirs_CXX \
13878    archive_cmds_CXX \
13879    archive_expsym_cmds_CXX \
13880    postinstall_cmds_CXX \
13881    postuninstall_cmds_CXX \
13882    old_archive_from_expsyms_cmds_CXX \
13883    allow_undefined_flag_CXX \
13884    no_undefined_flag_CXX \
13885    export_symbols_cmds_CXX \
13886    hardcode_libdir_flag_spec_CXX \
13887    hardcode_libdir_flag_spec_ld_CXX \
13888    hardcode_libdir_separator_CXX \
13889    hardcode_automatic_CXX \
13890    module_cmds_CXX \
13891    module_expsym_cmds_CXX \
13892    lt_cv_prog_compiler_c_o_CXX \
13893    fix_srcfile_path_CXX \
13894    exclude_expsyms_CXX \
13895    include_expsyms_CXX; do
13896
13897    case $var in
13898    old_archive_cmds_CXX | \
13899    old_archive_from_new_cmds_CXX | \
13900    archive_cmds_CXX | \
13901    archive_expsym_cmds_CXX | \
13902    module_cmds_CXX | \
13903    module_expsym_cmds_CXX | \
13904    old_archive_from_expsyms_cmds_CXX | \
13905    export_symbols_cmds_CXX | \
13906    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13907    postinstall_cmds | postuninstall_cmds | \
13908    old_postinstall_cmds | old_postuninstall_cmds | \
13909    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13910      # Double-quote double-evaled strings.
13911      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13912      ;;
13913    *)
13914      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13915      ;;
13916    esac
13917  done
13918
13919  case $lt_echo in
13920  *'\$0 --fallback-echo"')
13921    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13922    ;;
13923  esac
13924
13925cfgfile="$ofile"
13926
13927  cat <<__EOF__ >> "$cfgfile"
13928# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13929
13930# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13931
13932# Shell to use when invoking shell scripts.
13933SHELL=$lt_SHELL
13934
13935# Whether or not to build shared libraries.
13936build_libtool_libs=$enable_shared
13937
13938# Whether or not to build static libraries.
13939build_old_libs=$enable_static
13940
13941# Whether or not to add -lc for building shared libraries.
13942build_libtool_need_lc=$archive_cmds_need_lc_CXX
13943
13944# Whether or not to disallow shared libs when runtime libs are static
13945allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13946
13947# Whether or not to optimize for fast installation.
13948fast_install=$enable_fast_install
13949
13950# The host system.
13951host_alias=$host_alias
13952host=$host
13953host_os=$host_os
13954
13955# The build system.
13956build_alias=$build_alias
13957build=$build
13958build_os=$build_os
13959
13960# An echo program that does not interpret backslashes.
13961echo=$lt_echo
13962
13963# The archiver.
13964AR=$lt_AR
13965AR_FLAGS=$lt_AR_FLAGS
13966
13967# A C compiler.
13968LTCC=$lt_LTCC
13969
13970# LTCC compiler flags.
13971LTCFLAGS=$lt_LTCFLAGS
13972
13973# A language-specific compiler.
13974CC=$lt_compiler_CXX
13975
13976# Is the compiler the GNU C compiler?
13977with_gcc=$GCC_CXX
13978
13979# An ERE matcher.
13980EGREP=$lt_EGREP
13981
13982# The linker used to build libraries.
13983LD=$lt_LD_CXX
13984
13985# Whether we need hard or soft links.
13986LN_S=$lt_LN_S
13987
13988# A BSD-compatible nm program.
13989NM=$lt_NM
13990
13991# A symbol stripping program
13992STRIP=$lt_STRIP
13993
13994# Used to examine libraries when file_magic_cmd begins "file"
13995MAGIC_CMD=$MAGIC_CMD
13996
13997# Used on cygwin: DLL creation program.
13998DLLTOOL="$DLLTOOL"
13999
14000# Used on cygwin: object dumper.
14001OBJDUMP="$OBJDUMP"
14002
14003# Used on cygwin: assembler.
14004AS="$AS"
14005
14006# The name of the directory that contains temporary libtool files.
14007objdir=$objdir
14008
14009# How to create reloadable object files.
14010reload_flag=$lt_reload_flag
14011reload_cmds=$lt_reload_cmds
14012
14013# How to pass a linker flag through the compiler.
14014wl=$lt_lt_prog_compiler_wl_CXX
14015
14016# Object file suffix (normally "o").
14017objext="$ac_objext"
14018
14019# Old archive suffix (normally "a").
14020libext="$libext"
14021
14022# Shared library suffix (normally ".so").
14023shrext_cmds='$shrext_cmds'
14024
14025# Executable file suffix (normally "").
14026exeext="$exeext"
14027
14028# Additional compiler flags for building library objects.
14029pic_flag=$lt_lt_prog_compiler_pic_CXX
14030pic_mode=$pic_mode
14031
14032# What is the maximum length of a command?
14033max_cmd_len=$lt_cv_sys_max_cmd_len
14034
14035# Does compiler simultaneously support -c and -o options?
14036compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14037
14038# Must we lock files when doing compilation?
14039need_locks=$lt_need_locks
14040
14041# Do we need the lib prefix for modules?
14042need_lib_prefix=$need_lib_prefix
14043
14044# Do we need a version for libraries?
14045need_version=$need_version
14046
14047# Whether dlopen is supported.
14048dlopen_support=$enable_dlopen
14049
14050# Whether dlopen of programs is supported.
14051dlopen_self=$enable_dlopen_self
14052
14053# Whether dlopen of statically linked programs is supported.
14054dlopen_self_static=$enable_dlopen_self_static
14055
14056# Compiler flag to prevent dynamic linking.
14057link_static_flag=$lt_lt_prog_compiler_static_CXX
14058
14059# Compiler flag to turn off builtin functions.
14060no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14061
14062# Compiler flag to allow reflexive dlopens.
14063export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14064
14065# Compiler flag to generate shared objects directly from archives.
14066whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14067
14068# Compiler flag to generate thread-safe objects.
14069thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14070
14071# Library versioning type.
14072version_type=$version_type
14073
14074# Format of library name prefix.
14075libname_spec=$lt_libname_spec
14076
14077# List of archive names.  First name is the real one, the rest are links.
14078# The last name is the one that the linker finds with -lNAME.
14079library_names_spec=$lt_library_names_spec
14080
14081# The coded name of the library, if different from the real name.
14082soname_spec=$lt_soname_spec
14083
14084# Commands used to build and install an old-style archive.
14085RANLIB=$lt_RANLIB
14086old_archive_cmds=$lt_old_archive_cmds_CXX
14087old_postinstall_cmds=$lt_old_postinstall_cmds
14088old_postuninstall_cmds=$lt_old_postuninstall_cmds
14089
14090# Create an old-style archive from a shared archive.
14091old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14092
14093# Create a temporary old-style archive to link instead of a shared archive.
14094old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14095
14096# Commands used to build and install a shared archive.
14097archive_cmds=$lt_archive_cmds_CXX
14098archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14099postinstall_cmds=$lt_postinstall_cmds
14100postuninstall_cmds=$lt_postuninstall_cmds
14101
14102# Commands used to build a loadable module (assumed same as above if empty)
14103module_cmds=$lt_module_cmds_CXX
14104module_expsym_cmds=$lt_module_expsym_cmds_CXX
14105
14106# Commands to strip libraries.
14107old_striplib=$lt_old_striplib
14108striplib=$lt_striplib
14109
14110# Dependencies to place before the objects being linked to create a
14111# shared library.
14112predep_objects=$lt_predep_objects_CXX
14113
14114# Dependencies to place after the objects being linked to create a
14115# shared library.
14116postdep_objects=$lt_postdep_objects_CXX
14117
14118# Dependencies to place before the objects being linked to create a
14119# shared library.
14120predeps=$lt_predeps_CXX
14121
14122# Dependencies to place after the objects being linked to create a
14123# shared library.
14124postdeps=$lt_postdeps_CXX
14125
14126# The directories searched by this compiler when creating a shared
14127# library
14128compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14129
14130# The library search path used internally by the compiler when linking
14131# a shared library.
14132compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14133
14134# Method to check whether dependent libraries are shared objects.
14135deplibs_check_method=$lt_deplibs_check_method
14136
14137# Command to use when deplibs_check_method == file_magic.
14138file_magic_cmd=$lt_file_magic_cmd
14139
14140# Flag that allows shared libraries with undefined symbols to be built.
14141allow_undefined_flag=$lt_allow_undefined_flag_CXX
14142
14143# Flag that forces no undefined symbols.
14144no_undefined_flag=$lt_no_undefined_flag_CXX
14145
14146# Commands used to finish a libtool library installation in a directory.
14147finish_cmds=$lt_finish_cmds
14148
14149# Same as above, but a single script fragment to be evaled but not shown.
14150finish_eval=$lt_finish_eval
14151
14152# Take the output of nm and produce a listing of raw symbols and C names.
14153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14154
14155# Transform the output of nm in a proper C declaration
14156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14157
14158# Transform the output of nm in a C name address pair
14159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14160
14161# This is the shared library runtime path variable.
14162runpath_var=$runpath_var
14163
14164# This is the shared library path variable.
14165shlibpath_var=$shlibpath_var
14166
14167# Is shlibpath searched before the hard-coded library search path?
14168shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14169
14170# How to hardcode a shared library path into an executable.
14171hardcode_action=$hardcode_action_CXX
14172
14173# Whether we should hardcode library paths into libraries.
14174hardcode_into_libs=$hardcode_into_libs
14175
14176# Flag to hardcode \$libdir into a binary during linking.
14177# This must work even if \$libdir does not exist.
14178hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14179
14180# If ld is used when linking, flag to hardcode \$libdir into
14181# a binary during linking. This must work even if \$libdir does
14182# not exist.
14183hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14184
14185# Whether we need a single -rpath flag with a separated argument.
14186hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14187
14188# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14189# resulting binary.
14190hardcode_direct=$hardcode_direct_CXX
14191
14192# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14193# resulting binary.
14194hardcode_minus_L=$hardcode_minus_L_CXX
14195
14196# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14197# the resulting binary.
14198hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14199
14200# Set to yes if building a shared library automatically hardcodes DIR into the library
14201# and all subsequent libraries and executables linked against it.
14202hardcode_automatic=$hardcode_automatic_CXX
14203
14204# Variables whose values should be saved in libtool wrapper scripts and
14205# restored at relink time.
14206variables_saved_for_relink="$variables_saved_for_relink"
14207
14208# Whether libtool must link a program against all its dependency libraries.
14209link_all_deplibs=$link_all_deplibs_CXX
14210
14211# Compile-time system search path for libraries
14212sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14213
14214# Run-time system search path for libraries
14215sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14216
14217# Fix the shell variable \$srcfile for the compiler.
14218fix_srcfile_path=$lt_fix_srcfile_path
14219
14220# Set to yes if exported symbols are required.
14221always_export_symbols=$always_export_symbols_CXX
14222
14223# The commands to list exported symbols.
14224export_symbols_cmds=$lt_export_symbols_cmds_CXX
14225
14226# The commands to extract the exported symbol list from a shared archive.
14227extract_expsyms_cmds=$lt_extract_expsyms_cmds
14228
14229# Symbols that should not be listed in the preloaded symbols.
14230exclude_expsyms=$lt_exclude_expsyms_CXX
14231
14232# Symbols that must always be exported.
14233include_expsyms=$lt_include_expsyms_CXX
14234
14235# ### END LIBTOOL TAG CONFIG: $tagname
14236
14237__EOF__
14238
14239
14240else
14241  # If there is no Makefile yet, we rely on a make rule to execute
14242  # `config.status --recheck' to rerun these tests and create the
14243  # libtool script then.
14244  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14245  if test -f "$ltmain_in"; then
14246    test -f Makefile && make "$ltmain"
14247  fi
14248fi
14249
14250
14251ac_ext=c
14252ac_cpp='$CPP $CPPFLAGS'
14253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256
14257CC=$lt_save_CC
14258LDCXX=$LD
14259LD=$lt_save_LD
14260GCC=$lt_save_GCC
14261with_gnu_ldcxx=$with_gnu_ld
14262with_gnu_ld=$lt_save_with_gnu_ld
14263lt_cv_path_LDCXX=$lt_cv_path_LD
14264lt_cv_path_LD=$lt_save_path_LD
14265lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14266lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14267
14268	else
14269	  tagname=""
14270	fi
14271	;;
14272
14273      F77)
14274	if test -n "$F77" && test "X$F77" != "Xno"; then
14275
14276ac_ext=f
14277ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14278ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14280
14281
14282archive_cmds_need_lc_F77=no
14283allow_undefined_flag_F77=
14284always_export_symbols_F77=no
14285archive_expsym_cmds_F77=
14286export_dynamic_flag_spec_F77=
14287hardcode_direct_F77=no
14288hardcode_libdir_flag_spec_F77=
14289hardcode_libdir_flag_spec_ld_F77=
14290hardcode_libdir_separator_F77=
14291hardcode_minus_L_F77=no
14292hardcode_automatic_F77=no
14293module_cmds_F77=
14294module_expsym_cmds_F77=
14295link_all_deplibs_F77=unknown
14296old_archive_cmds_F77=$old_archive_cmds
14297no_undefined_flag_F77=
14298whole_archive_flag_spec_F77=
14299enable_shared_with_static_runtimes_F77=no
14300
14301# Source file extension for f77 test sources.
14302ac_ext=f
14303
14304# Object file extension for compiled f77 test sources.
14305objext=o
14306objext_F77=$objext
14307
14308# Code to be used in simple compile tests
14309lt_simple_compile_test_code="\
14310      subroutine t
14311      return
14312      end
14313"
14314
14315# Code to be used in simple link tests
14316lt_simple_link_test_code="\
14317      program t
14318      end
14319"
14320
14321# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14322
14323# If no C compiler was specified, use CC.
14324LTCC=${LTCC-"$CC"}
14325
14326# If no C compiler flags were specified, use CFLAGS.
14327LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14328
14329# Allow CC to be a program name with arguments.
14330compiler=$CC
14331
14332
14333# save warnings/boilerplate of simple test code
14334ac_outfile=conftest.$ac_objext
14335echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14336eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14337_lt_compiler_boilerplate=`cat conftest.err`
14338$rm conftest*
14339
14340ac_outfile=conftest.$ac_objext
14341echo "$lt_simple_link_test_code" >conftest.$ac_ext
14342eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14343_lt_linker_boilerplate=`cat conftest.err`
14344$rm -r conftest*
14345
14346
14347# Allow CC to be a program name with arguments.
14348lt_save_CC="$CC"
14349CC=${F77-"f77"}
14350compiler=$CC
14351compiler_F77=$CC
14352for cc_temp in $compiler""; do
14353  case $cc_temp in
14354    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14355    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14356    \-*) ;;
14357    *) break;;
14358  esac
14359done
14360cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14361
14362
14363{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14364$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14365{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14366$as_echo "$can_build_shared" >&6; }
14367
14368{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14369$as_echo_n "checking whether to build shared libraries... " >&6; }
14370test "$can_build_shared" = "no" && enable_shared=no
14371
14372# On AIX, shared libraries and static libraries use the same namespace, and
14373# are all built from PIC.
14374case $host_os in
14375aix3*)
14376  test "$enable_shared" = yes && enable_static=no
14377  if test -n "$RANLIB"; then
14378    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14379    postinstall_cmds='$RANLIB $lib'
14380  fi
14381  ;;
14382aix[4-9]*)
14383  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14384    test "$enable_shared" = yes && enable_static=no
14385  fi
14386  ;;
14387esac
14388{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14389$as_echo "$enable_shared" >&6; }
14390
14391{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14392$as_echo_n "checking whether to build static libraries... " >&6; }
14393# Make sure either enable_shared or enable_static is yes.
14394test "$enable_shared" = yes || enable_static=yes
14395{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14396$as_echo "$enable_static" >&6; }
14397
14398GCC_F77="$G77"
14399LD_F77="$LD"
14400
14401lt_prog_compiler_wl_F77=
14402lt_prog_compiler_pic_F77=
14403lt_prog_compiler_static_F77=
14404
14405{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14406$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14407
14408  if test "$GCC" = yes; then
14409    lt_prog_compiler_wl_F77='-Wl,'
14410    lt_prog_compiler_static_F77='-static'
14411
14412    case $host_os in
14413      aix*)
14414      # All AIX code is PIC.
14415      if test "$host_cpu" = ia64; then
14416	# AIX 5 now supports IA64 processor
14417	lt_prog_compiler_static_F77='-Bstatic'
14418      fi
14419      ;;
14420
14421    amigaos*)
14422      # FIXME: we need at least 68020 code to build shared libraries, but
14423      # adding the `-m68020' flag to GCC prevents building anything better,
14424      # like `-m68040'.
14425      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14426      ;;
14427
14428    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14429      # PIC is the default for these OSes.
14430      ;;
14431
14432    mingw* | cygwin* | pw32* | os2*)
14433      # This hack is so that the source file can tell whether it is being
14434      # built for inclusion in a dll (and should export symbols for example).
14435      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14436      # (--disable-auto-import) libraries
14437      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14438      ;;
14439
14440    darwin* | rhapsody*)
14441      # PIC is the default on this platform
14442      # Common symbols not allowed in MH_DYLIB files
14443      lt_prog_compiler_pic_F77='-fno-common'
14444      ;;
14445
14446    interix[3-9]*)
14447      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448      # Instead, we relocate shared libraries at runtime.
14449      ;;
14450
14451    msdosdjgpp*)
14452      # Just because we use GCC doesn't mean we suddenly get shared libraries
14453      # on systems that don't support them.
14454      lt_prog_compiler_can_build_shared_F77=no
14455      enable_shared=no
14456      ;;
14457
14458    sysv4*MP*)
14459      if test -d /usr/nec; then
14460	lt_prog_compiler_pic_F77=-Kconform_pic
14461      fi
14462      ;;
14463
14464    hpux*)
14465      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14466      # not for PA HP-UX.
14467      case $host_cpu in
14468      hppa*64*|ia64*)
14469	# +Z the default
14470	;;
14471      *)
14472	lt_prog_compiler_pic_F77='-fPIC'
14473	;;
14474      esac
14475      ;;
14476
14477    *)
14478      lt_prog_compiler_pic_F77='-fPIC'
14479      ;;
14480    esac
14481  else
14482    # PORTME Check for flag to pass linker flags through the system compiler.
14483    case $host_os in
14484    aix*)
14485      lt_prog_compiler_wl_F77='-Wl,'
14486      if test "$host_cpu" = ia64; then
14487	# AIX 5 now supports IA64 processor
14488	lt_prog_compiler_static_F77='-Bstatic'
14489      else
14490	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14491      fi
14492      ;;
14493      darwin*)
14494        # PIC is the default on this platform
14495        # Common symbols not allowed in MH_DYLIB files
14496       case $cc_basename in
14497         xlc*)
14498         lt_prog_compiler_pic_F77='-qnocommon'
14499         lt_prog_compiler_wl_F77='-Wl,'
14500         ;;
14501       esac
14502       ;;
14503
14504    mingw* | cygwin* | pw32* | os2*)
14505      # This hack is so that the source file can tell whether it is being
14506      # built for inclusion in a dll (and should export symbols for example).
14507      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14508      ;;
14509
14510    hpux9* | hpux10* | hpux11*)
14511      lt_prog_compiler_wl_F77='-Wl,'
14512      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14513      # not for PA HP-UX.
14514      case $host_cpu in
14515      hppa*64*|ia64*)
14516	# +Z the default
14517	;;
14518      *)
14519	lt_prog_compiler_pic_F77='+Z'
14520	;;
14521      esac
14522      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14523      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14524      ;;
14525
14526    irix5* | irix6* | nonstopux*)
14527      lt_prog_compiler_wl_F77='-Wl,'
14528      # PIC (with -KPIC) is the default.
14529      lt_prog_compiler_static_F77='-non_shared'
14530      ;;
14531
14532    newsos6)
14533      lt_prog_compiler_pic_F77='-KPIC'
14534      lt_prog_compiler_static_F77='-Bstatic'
14535      ;;
14536
14537    linux* | k*bsd*-gnu)
14538      case $cc_basename in
14539      icc* | ecc*)
14540	lt_prog_compiler_wl_F77='-Wl,'
14541	lt_prog_compiler_pic_F77='-KPIC'
14542	lt_prog_compiler_static_F77='-static'
14543        ;;
14544      pgcc* | pgf77* | pgf90* | pgf95*)
14545        # Portland Group compilers (*not* the Pentium gcc compiler,
14546	# which looks to be a dead project)
14547	lt_prog_compiler_wl_F77='-Wl,'
14548	lt_prog_compiler_pic_F77='-fpic'
14549	lt_prog_compiler_static_F77='-Bstatic'
14550        ;;
14551      ccc*)
14552        lt_prog_compiler_wl_F77='-Wl,'
14553        # All Alpha code is PIC.
14554        lt_prog_compiler_static_F77='-non_shared'
14555        ;;
14556      *)
14557        case `$CC -V 2>&1 | sed 5q` in
14558	*Sun\ C*)
14559	  # Sun C 5.9
14560	  lt_prog_compiler_pic_F77='-KPIC'
14561	  lt_prog_compiler_static_F77='-Bstatic'
14562	  lt_prog_compiler_wl_F77='-Wl,'
14563	  ;;
14564	*Sun\ F*)
14565	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14566	  lt_prog_compiler_pic_F77='-KPIC'
14567	  lt_prog_compiler_static_F77='-Bstatic'
14568	  lt_prog_compiler_wl_F77=''
14569	  ;;
14570	esac
14571	;;
14572      esac
14573      ;;
14574
14575    osf3* | osf4* | osf5*)
14576      lt_prog_compiler_wl_F77='-Wl,'
14577      # All OSF/1 code is PIC.
14578      lt_prog_compiler_static_F77='-non_shared'
14579      ;;
14580
14581    rdos*)
14582      lt_prog_compiler_static_F77='-non_shared'
14583      ;;
14584
14585    solaris*)
14586      lt_prog_compiler_pic_F77='-KPIC'
14587      lt_prog_compiler_static_F77='-Bstatic'
14588      case $cc_basename in
14589      f77* | f90* | f95*)
14590	lt_prog_compiler_wl_F77='-Qoption ld ';;
14591      *)
14592	lt_prog_compiler_wl_F77='-Wl,';;
14593      esac
14594      ;;
14595
14596    sunos4*)
14597      lt_prog_compiler_wl_F77='-Qoption ld '
14598      lt_prog_compiler_pic_F77='-PIC'
14599      lt_prog_compiler_static_F77='-Bstatic'
14600      ;;
14601
14602    sysv4 | sysv4.2uw2* | sysv4.3*)
14603      lt_prog_compiler_wl_F77='-Wl,'
14604      lt_prog_compiler_pic_F77='-KPIC'
14605      lt_prog_compiler_static_F77='-Bstatic'
14606      ;;
14607
14608    sysv4*MP*)
14609      if test -d /usr/nec ;then
14610	lt_prog_compiler_pic_F77='-Kconform_pic'
14611	lt_prog_compiler_static_F77='-Bstatic'
14612      fi
14613      ;;
14614
14615    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14616      lt_prog_compiler_wl_F77='-Wl,'
14617      lt_prog_compiler_pic_F77='-KPIC'
14618      lt_prog_compiler_static_F77='-Bstatic'
14619      ;;
14620
14621    unicos*)
14622      lt_prog_compiler_wl_F77='-Wl,'
14623      lt_prog_compiler_can_build_shared_F77=no
14624      ;;
14625
14626    uts4*)
14627      lt_prog_compiler_pic_F77='-pic'
14628      lt_prog_compiler_static_F77='-Bstatic'
14629      ;;
14630
14631    *)
14632      lt_prog_compiler_can_build_shared_F77=no
14633      ;;
14634    esac
14635  fi
14636
14637{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14638$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14639
14640#
14641# Check to make sure the PIC flag actually works.
14642#
14643if test -n "$lt_prog_compiler_pic_F77"; then
14644
14645{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14646$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14647if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14648  $as_echo_n "(cached) " >&6
14649else
14650  lt_cv_prog_compiler_pic_works_F77=no
14651  ac_outfile=conftest.$ac_objext
14652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14654   # Insert the option either (1) after the last *FLAGS variable, or
14655   # (2) before a word containing "conftest.", or (3) at the end.
14656   # Note that $ac_compile itself does not contain backslashes and begins
14657   # with a dollar sign (not a hyphen), so the echo should work correctly.
14658   # The option is referenced via a variable to avoid confusing sed.
14659   lt_compile=`echo "$ac_compile" | $SED \
14660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662   -e 's:$: $lt_compiler_flag:'`
14663   (eval echo "\"\$as_me:14663: $lt_compile\"" >&5)
14664   (eval "$lt_compile" 2>conftest.err)
14665   ac_status=$?
14666   cat conftest.err >&5
14667   echo "$as_me:14667: \$? = $ac_status" >&5
14668   if (exit $ac_status) && test -s "$ac_outfile"; then
14669     # The compiler can only warn and ignore the option if not recognized
14670     # So say no if there are warnings other than the usual output.
14671     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14672     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14673     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14674       lt_cv_prog_compiler_pic_works_F77=yes
14675     fi
14676   fi
14677   $rm conftest*
14678
14679fi
14680{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14681$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14682
14683if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14684    case $lt_prog_compiler_pic_F77 in
14685     "" | " "*) ;;
14686     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14687     esac
14688else
14689    lt_prog_compiler_pic_F77=
14690     lt_prog_compiler_can_build_shared_F77=no
14691fi
14692
14693fi
14694case $host_os in
14695  # For platforms which do not support PIC, -DPIC is meaningless:
14696  *djgpp*)
14697    lt_prog_compiler_pic_F77=
14698    ;;
14699  *)
14700    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14701    ;;
14702esac
14703
14704#
14705# Check to make sure the static flag actually works.
14706#
14707wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14708{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14709$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14710if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14711  $as_echo_n "(cached) " >&6
14712else
14713  lt_cv_prog_compiler_static_works_F77=no
14714   save_LDFLAGS="$LDFLAGS"
14715   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14716   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14717   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14718     # The linker can only warn and ignore the option if not recognized
14719     # So say no if there are warnings
14720     if test -s conftest.err; then
14721       # Append any errors to the config.log.
14722       cat conftest.err 1>&5
14723       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14724       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14725       if diff conftest.exp conftest.er2 >/dev/null; then
14726         lt_cv_prog_compiler_static_works_F77=yes
14727       fi
14728     else
14729       lt_cv_prog_compiler_static_works_F77=yes
14730     fi
14731   fi
14732   $rm -r conftest*
14733   LDFLAGS="$save_LDFLAGS"
14734
14735fi
14736{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14737$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14738
14739if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14740    :
14741else
14742    lt_prog_compiler_static_F77=
14743fi
14744
14745
14746{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14747$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14748if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14749  $as_echo_n "(cached) " >&6
14750else
14751  lt_cv_prog_compiler_c_o_F77=no
14752   $rm -r conftest 2>/dev/null
14753   mkdir conftest
14754   cd conftest
14755   mkdir out
14756   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757
14758   lt_compiler_flag="-o out/conftest2.$ac_objext"
14759   # Insert the option either (1) after the last *FLAGS variable, or
14760   # (2) before a word containing "conftest.", or (3) at the end.
14761   # Note that $ac_compile itself does not contain backslashes and begins
14762   # with a dollar sign (not a hyphen), so the echo should work correctly.
14763   lt_compile=`echo "$ac_compile" | $SED \
14764   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766   -e 's:$: $lt_compiler_flag:'`
14767   (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
14768   (eval "$lt_compile" 2>out/conftest.err)
14769   ac_status=$?
14770   cat out/conftest.err >&5
14771   echo "$as_me:14771: \$? = $ac_status" >&5
14772   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14773   then
14774     # The compiler can only warn and ignore the option if not recognized
14775     # So say no if there are warnings
14776     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14777     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14778     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14779       lt_cv_prog_compiler_c_o_F77=yes
14780     fi
14781   fi
14782   chmod u+w . 2>&5
14783   $rm conftest*
14784   # SGI C++ compiler will create directory out/ii_files/ for
14785   # template instantiation
14786   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14787   $rm out/* && rmdir out
14788   cd ..
14789   rmdir conftest
14790   $rm conftest*
14791
14792fi
14793{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14794$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14795
14796
14797hard_links="nottested"
14798if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14799  # do not overwrite the value of need_locks provided by the user
14800  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14801$as_echo_n "checking if we can lock with hard links... " >&6; }
14802  hard_links=yes
14803  $rm conftest*
14804  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14805  touch conftest.a
14806  ln conftest.a conftest.b 2>&5 || hard_links=no
14807  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14808  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14809$as_echo "$hard_links" >&6; }
14810  if test "$hard_links" = no; then
14811    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14812$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14813    need_locks=warn
14814  fi
14815else
14816  need_locks=no
14817fi
14818
14819{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14820$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14821
14822  runpath_var=
14823  allow_undefined_flag_F77=
14824  enable_shared_with_static_runtimes_F77=no
14825  archive_cmds_F77=
14826  archive_expsym_cmds_F77=
14827  old_archive_From_new_cmds_F77=
14828  old_archive_from_expsyms_cmds_F77=
14829  export_dynamic_flag_spec_F77=
14830  whole_archive_flag_spec_F77=
14831  thread_safe_flag_spec_F77=
14832  hardcode_libdir_flag_spec_F77=
14833  hardcode_libdir_flag_spec_ld_F77=
14834  hardcode_libdir_separator_F77=
14835  hardcode_direct_F77=no
14836  hardcode_minus_L_F77=no
14837  hardcode_shlibpath_var_F77=unsupported
14838  link_all_deplibs_F77=unknown
14839  hardcode_automatic_F77=no
14840  module_cmds_F77=
14841  module_expsym_cmds_F77=
14842  always_export_symbols_F77=no
14843  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14844  # include_expsyms should be a list of space-separated symbols to be *always*
14845  # included in the symbol list
14846  include_expsyms_F77=
14847  # exclude_expsyms can be an extended regexp of symbols to exclude
14848  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14849  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14850  # as well as any symbol that contains `d'.
14851  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14852  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14853  # platforms (ab)use it in PIC code, but their linkers get confused if
14854  # the symbol is explicitly referenced.  Since portable code cannot
14855  # rely on this symbol name, it's probably fine to never include it in
14856  # preloaded symbol tables.
14857  # Exclude shared library initialization/finalization symbols.
14858  extract_expsyms_cmds=
14859  # Just being paranoid about ensuring that cc_basename is set.
14860  for cc_temp in $compiler""; do
14861  case $cc_temp in
14862    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14863    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14864    \-*) ;;
14865    *) break;;
14866  esac
14867done
14868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14869
14870  case $host_os in
14871  cygwin* | mingw* | pw32*)
14872    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14873    # When not using gcc, we currently assume that we are using
14874    # Microsoft Visual C++.
14875    if test "$GCC" != yes; then
14876      with_gnu_ld=no
14877    fi
14878    ;;
14879  interix*)
14880    # we just hope/assume this is gcc and not c89 (= MSVC++)
14881    with_gnu_ld=yes
14882    ;;
14883  openbsd*)
14884    with_gnu_ld=no
14885    ;;
14886  esac
14887
14888  ld_shlibs_F77=yes
14889  if test "$with_gnu_ld" = yes; then
14890    # If archive_cmds runs LD, not CC, wlarc should be empty
14891    wlarc='${wl}'
14892
14893    # Set some defaults for GNU ld with shared library support. These
14894    # are reset later if shared libraries are not supported. Putting them
14895    # here allows them to be overridden if necessary.
14896    runpath_var=LD_RUN_PATH
14897    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14898    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14899    # ancient GNU ld didn't support --whole-archive et. al.
14900    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14901	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14902      else
14903  	whole_archive_flag_spec_F77=
14904    fi
14905    supports_anon_versioning=no
14906    case `$LD -v 2>/dev/null` in
14907      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14908      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14909      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14910      *\ 2.11.*) ;; # other 2.11 versions
14911      *) supports_anon_versioning=yes ;;
14912    esac
14913
14914    # See if GNU ld supports shared libraries.
14915    case $host_os in
14916    aix[3-9]*)
14917      # On AIX/PPC, the GNU linker is very broken
14918      if test "$host_cpu" != ia64; then
14919	ld_shlibs_F77=no
14920	cat <<EOF 1>&2
14921
14922*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14923*** to be unable to reliably create shared libraries on AIX.
14924*** Therefore, libtool is disabling shared libraries support.  If you
14925*** really care for shared libraries, you may want to modify your PATH
14926*** so that a non-GNU linker is found, and then restart.
14927
14928EOF
14929      fi
14930      ;;
14931
14932    amigaos*)
14933      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)'
14934      hardcode_libdir_flag_spec_F77='-L$libdir'
14935      hardcode_minus_L_F77=yes
14936
14937      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14938      # that the semantics of dynamic libraries on AmigaOS, at least up
14939      # to version 4, is to share data among multiple programs linked
14940      # with the same dynamic library.  Since this doesn't match the
14941      # behavior of shared libraries on other platforms, we can't use
14942      # them.
14943      ld_shlibs_F77=no
14944      ;;
14945
14946    beos*)
14947      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14948	allow_undefined_flag_F77=unsupported
14949	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14950	# support --undefined.  This deserves some investigation.  FIXME
14951	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952      else
14953	ld_shlibs_F77=no
14954      fi
14955      ;;
14956
14957    cygwin* | mingw* | pw32*)
14958      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14959      # as there is no search path for DLLs.
14960      hardcode_libdir_flag_spec_F77='-L$libdir'
14961      allow_undefined_flag_F77=unsupported
14962      always_export_symbols_F77=no
14963      enable_shared_with_static_runtimes_F77=yes
14964      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14965
14966      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14967        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14968	# If the export-symbols file already is a .def file (1st line
14969	# is EXPORTS), use it as is; otherwise, prepend...
14970	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14971	  cp $export_symbols $output_objdir/$soname.def;
14972	else
14973	  echo EXPORTS > $output_objdir/$soname.def;
14974	  cat $export_symbols >> $output_objdir/$soname.def;
14975	fi~
14976	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14977      else
14978	ld_shlibs_F77=no
14979      fi
14980      ;;
14981
14982    interix[3-9]*)
14983      hardcode_direct_F77=no
14984      hardcode_shlibpath_var_F77=no
14985      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14986      export_dynamic_flag_spec_F77='${wl}-E'
14987      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14988      # Instead, shared libraries are loaded at an image base (0x10000000 by
14989      # default) and relocated if they conflict, which is a slow very memory
14990      # consuming and fragmenting process.  To avoid this, we pick a random,
14991      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14992      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14993      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'
14994      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'
14995      ;;
14996
14997    gnu* | linux* | k*bsd*-gnu)
14998      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14999	tmp_addflag=
15000	case $cc_basename,$host_cpu in
15001	pgcc*)				# Portland Group C compiler
15002	  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'
15003	  tmp_addflag=' $pic_flag'
15004	  ;;
15005	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15006	  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'
15007	  tmp_addflag=' $pic_flag -Mnomain' ;;
15008	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15009	  tmp_addflag=' -i_dynamic' ;;
15010	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15011	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15012	ifc* | ifort*)			# Intel Fortran compiler
15013	  tmp_addflag=' -nofor_main' ;;
15014	esac
15015	case `$CC -V 2>&1 | sed 5q` in
15016	*Sun\ C*)			# Sun C 5.9
15017	  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'
15018	  tmp_sharedflag='-G' ;;
15019	*Sun\ F*)			# Sun Fortran 8.3
15020	  tmp_sharedflag='-G' ;;
15021	*)
15022	  tmp_sharedflag='-shared' ;;
15023	esac
15024	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15025
15026	if test $supports_anon_versioning = yes; then
15027	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15028  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15029  $echo "local: *; };" >> $output_objdir/$libname.ver~
15030	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15031	fi
15032      else
15033	ld_shlibs_F77=no
15034      fi
15035      ;;
15036
15037    netbsd*)
15038      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15039	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15040	wlarc=
15041      else
15042	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15044      fi
15045      ;;
15046
15047    solaris*)
15048      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15049	ld_shlibs_F77=no
15050	cat <<EOF 1>&2
15051
15052*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15053*** create shared libraries on Solaris systems.  Therefore, libtool
15054*** is disabling shared libraries support.  We urge you to upgrade GNU
15055*** binutils to release 2.9.1 or newer.  Another option is to modify
15056*** your PATH or compiler configuration so that the native linker is
15057*** used, and then restart.
15058
15059EOF
15060      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15061	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15063      else
15064	ld_shlibs_F77=no
15065      fi
15066      ;;
15067
15068    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15069      case `$LD -v 2>&1` in
15070        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15071	ld_shlibs_F77=no
15072	cat <<_LT_EOF 1>&2
15073
15074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15075*** reliably create shared libraries on SCO systems.  Therefore, libtool
15076*** is disabling shared libraries support.  We urge you to upgrade GNU
15077*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15078*** your PATH or compiler configuration so that the native linker is
15079*** used, and then restart.
15080
15081_LT_EOF
15082	;;
15083	*)
15084	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15085	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15086	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15087	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15088	  else
15089	    ld_shlibs_F77=no
15090	  fi
15091	;;
15092      esac
15093      ;;
15094
15095    sunos4*)
15096      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15097      wlarc=
15098      hardcode_direct_F77=yes
15099      hardcode_shlibpath_var_F77=no
15100      ;;
15101
15102    *)
15103      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15104	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106      else
15107	ld_shlibs_F77=no
15108      fi
15109      ;;
15110    esac
15111
15112    if test "$ld_shlibs_F77" = no; then
15113      runpath_var=
15114      hardcode_libdir_flag_spec_F77=
15115      export_dynamic_flag_spec_F77=
15116      whole_archive_flag_spec_F77=
15117    fi
15118  else
15119    # PORTME fill in a description of your system's linker (not GNU ld)
15120    case $host_os in
15121    aix3*)
15122      allow_undefined_flag_F77=unsupported
15123      always_export_symbols_F77=yes
15124      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'
15125      # Note: this linker hardcodes the directories in LIBPATH if there
15126      # are no directories specified by -L.
15127      hardcode_minus_L_F77=yes
15128      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15129	# Neither direct hardcoding nor static linking is supported with a
15130	# broken collect2.
15131	hardcode_direct_F77=unsupported
15132      fi
15133      ;;
15134
15135    aix[4-9]*)
15136      if test "$host_cpu" = ia64; then
15137	# On IA64, the linker does run time linking by default, so we don't
15138	# have to do anything special.
15139	aix_use_runtimelinking=no
15140	exp_sym_flag='-Bexport'
15141	no_entry_flag=""
15142      else
15143	# If we're using GNU nm, then we don't want the "-C" option.
15144	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15145	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15146	  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'
15147	else
15148	  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'
15149	fi
15150	aix_use_runtimelinking=no
15151
15152	# Test if we are trying to use run time linking or normal
15153	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15154	# need to do runtime linking.
15155	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15156	  for ld_flag in $LDFLAGS; do
15157  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15158  	    aix_use_runtimelinking=yes
15159  	    break
15160  	  fi
15161	  done
15162	  ;;
15163	esac
15164
15165	exp_sym_flag='-bexport'
15166	no_entry_flag='-bnoentry'
15167      fi
15168
15169      # When large executables or shared objects are built, AIX ld can
15170      # have problems creating the table of contents.  If linking a library
15171      # or program results in "error TOC overflow" add -mminimal-toc to
15172      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15173      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15174
15175      archive_cmds_F77=''
15176      hardcode_direct_F77=yes
15177      hardcode_libdir_separator_F77=':'
15178      link_all_deplibs_F77=yes
15179
15180      if test "$GCC" = yes; then
15181	case $host_os in aix4.[012]|aix4.[012].*)
15182	# We only want to do this on AIX 4.2 and lower, the check
15183	# below for broken collect2 doesn't work under 4.3+
15184	  collect2name=`${CC} -print-prog-name=collect2`
15185	  if test -f "$collect2name" && \
15186  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15187	  then
15188  	  # We have reworked collect2
15189  	  :
15190	  else
15191  	  # We have old collect2
15192  	  hardcode_direct_F77=unsupported
15193  	  # It fails to find uninstalled libraries when the uninstalled
15194  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15195  	  # to unsupported forces relinking
15196  	  hardcode_minus_L_F77=yes
15197  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15198  	  hardcode_libdir_separator_F77=
15199	  fi
15200	  ;;
15201	esac
15202	shared_flag='-shared'
15203	if test "$aix_use_runtimelinking" = yes; then
15204	  shared_flag="$shared_flag "'${wl}-G'
15205	fi
15206      else
15207	# not using gcc
15208	if test "$host_cpu" = ia64; then
15209  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15210  	# chokes on -Wl,-G. The following line is correct:
15211	  shared_flag='-G'
15212	else
15213	  if test "$aix_use_runtimelinking" = yes; then
15214	    shared_flag='${wl}-G'
15215	  else
15216	    shared_flag='${wl}-bM:SRE'
15217	  fi
15218	fi
15219      fi
15220
15221      # It seems that -bexpall does not export symbols beginning with
15222      # underscore (_), so it is better to generate a list of symbols to export.
15223      always_export_symbols_F77=yes
15224      if test "$aix_use_runtimelinking" = yes; then
15225	# Warning - without using the other runtime loading flags (-brtl),
15226	# -berok will link without error, but may produce a broken library.
15227	allow_undefined_flag_F77='-berok'
15228       # Determine the default libpath from the value encoded in an empty executable.
15229       cat >conftest.$ac_ext <<_ACEOF
15230      program main
15231
15232      end
15233_ACEOF
15234rm -f conftest.$ac_objext conftest$ac_exeext
15235if { (ac_try="$ac_link"
15236case "(($ac_try" in
15237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238  *) ac_try_echo=$ac_try;;
15239esac
15240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15241$as_echo "$ac_try_echo") >&5
15242  (eval "$ac_link") 2>conftest.er1
15243  ac_status=$?
15244  grep -v '^ *+' conftest.er1 >conftest.err
15245  rm -f conftest.er1
15246  cat conftest.err >&5
15247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248  (exit $ac_status); } && {
15249	 test -z "$ac_f77_werror_flag" ||
15250	 test ! -s conftest.err
15251       } && test -s conftest$ac_exeext && {
15252	 test "$cross_compiling" = yes ||
15253	 $as_test_x conftest$ac_exeext
15254       }; then
15255
15256lt_aix_libpath_sed='
15257    /Import File Strings/,/^$/ {
15258	/^0/ {
15259	    s/^0  *\(.*\)$/\1/
15260	    p
15261	}
15262    }'
15263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15264# Check for a 64-bit object if we didn't find anything.
15265if test -z "$aix_libpath"; then
15266  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15267fi
15268else
15269  $as_echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272
15273fi
15274
15275rm -rf conftest.dSYM
15276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277      conftest$ac_exeext conftest.$ac_ext
15278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15279
15280       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15281	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"
15282       else
15283	if test "$host_cpu" = ia64; then
15284	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15285	  allow_undefined_flag_F77="-z nodefs"
15286	  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"
15287	else
15288	 # Determine the default libpath from the value encoded in an empty executable.
15289	 cat >conftest.$ac_ext <<_ACEOF
15290      program main
15291
15292      end
15293_ACEOF
15294rm -f conftest.$ac_objext conftest$ac_exeext
15295if { (ac_try="$ac_link"
15296case "(($ac_try" in
15297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298  *) ac_try_echo=$ac_try;;
15299esac
15300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15301$as_echo "$ac_try_echo") >&5
15302  (eval "$ac_link") 2>conftest.er1
15303  ac_status=$?
15304  grep -v '^ *+' conftest.er1 >conftest.err
15305  rm -f conftest.er1
15306  cat conftest.err >&5
15307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308  (exit $ac_status); } && {
15309	 test -z "$ac_f77_werror_flag" ||
15310	 test ! -s conftest.err
15311       } && test -s conftest$ac_exeext && {
15312	 test "$cross_compiling" = yes ||
15313	 $as_test_x conftest$ac_exeext
15314       }; then
15315
15316lt_aix_libpath_sed='
15317    /Import File Strings/,/^$/ {
15318	/^0/ {
15319	    s/^0  *\(.*\)$/\1/
15320	    p
15321	}
15322    }'
15323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15324# Check for a 64-bit object if we didn't find anything.
15325if test -z "$aix_libpath"; then
15326  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15327fi
15328else
15329  $as_echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332
15333fi
15334
15335rm -rf conftest.dSYM
15336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15337      conftest$ac_exeext conftest.$ac_ext
15338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15339
15340	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15341	  # Warning - without using the other run time loading flags,
15342	  # -berok will link without error, but may produce a broken library.
15343	  no_undefined_flag_F77=' ${wl}-bernotok'
15344	  allow_undefined_flag_F77=' ${wl}-berok'
15345	  # Exported symbols can be pulled into shared objects from archives
15346	  whole_archive_flag_spec_F77='$convenience'
15347	  archive_cmds_need_lc_F77=yes
15348	  # This is similar to how AIX traditionally builds its shared libraries.
15349	  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'
15350	fi
15351      fi
15352      ;;
15353
15354    amigaos*)
15355      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)'
15356      hardcode_libdir_flag_spec_F77='-L$libdir'
15357      hardcode_minus_L_F77=yes
15358      # see comment about different semantics on the GNU ld section
15359      ld_shlibs_F77=no
15360      ;;
15361
15362    bsdi[45]*)
15363      export_dynamic_flag_spec_F77=-rdynamic
15364      ;;
15365
15366    cygwin* | mingw* | pw32*)
15367      # When not using gcc, we currently assume that we are using
15368      # Microsoft Visual C++.
15369      # hardcode_libdir_flag_spec is actually meaningless, as there is
15370      # no search path for DLLs.
15371      hardcode_libdir_flag_spec_F77=' '
15372      allow_undefined_flag_F77=unsupported
15373      # Tell ltmain to make .lib files, not .a files.
15374      libext=lib
15375      # Tell ltmain to make .dll files, not .so files.
15376      shrext_cmds=".dll"
15377      # FIXME: Setting linknames here is a bad hack.
15378      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15379      # The linker will automatically build a .lib file if we build a DLL.
15380      old_archive_From_new_cmds_F77='true'
15381      # FIXME: Should let the user specify the lib program.
15382      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15383      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15384      enable_shared_with_static_runtimes_F77=yes
15385      ;;
15386
15387    darwin* | rhapsody*)
15388      case $host_os in
15389        rhapsody* | darwin1.[012])
15390         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15391         ;;
15392       *) # Darwin 1.3 on
15393         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15394           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15395         else
15396           case ${MACOSX_DEPLOYMENT_TARGET} in
15397             10.[012])
15398               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15399               ;;
15400             10.*)
15401               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15402               ;;
15403           esac
15404         fi
15405         ;;
15406      esac
15407      archive_cmds_need_lc_F77=no
15408      hardcode_direct_F77=no
15409      hardcode_automatic_F77=yes
15410      hardcode_shlibpath_var_F77=unsupported
15411      whole_archive_flag_spec_F77=''
15412      link_all_deplibs_F77=yes
15413    if test "$GCC" = yes ; then
15414    	output_verbose_link_cmd='echo'
15415        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}"
15416        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15417        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}"
15418        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}"
15419    else
15420      case $cc_basename in
15421        xlc*)
15422         output_verbose_link_cmd='echo'
15423         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15424         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15425          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15426         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}'
15427          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}'
15428          ;;
15429       *)
15430         ld_shlibs_F77=no
15431          ;;
15432      esac
15433    fi
15434      ;;
15435
15436    dgux*)
15437      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438      hardcode_libdir_flag_spec_F77='-L$libdir'
15439      hardcode_shlibpath_var_F77=no
15440      ;;
15441
15442    freebsd1*)
15443      ld_shlibs_F77=no
15444      ;;
15445
15446    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15447    # support.  Future versions do this automatically, but an explicit c++rt0.o
15448    # does not break anything, and helps significantly (at the cost of a little
15449    # extra space).
15450    freebsd2.2*)
15451      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15452      hardcode_libdir_flag_spec_F77='-R$libdir'
15453      hardcode_direct_F77=yes
15454      hardcode_shlibpath_var_F77=no
15455      ;;
15456
15457    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15458    freebsd2*)
15459      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460      hardcode_direct_F77=yes
15461      hardcode_minus_L_F77=yes
15462      hardcode_shlibpath_var_F77=no
15463      ;;
15464
15465    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15466    freebsd* | dragonfly*)
15467      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15468      hardcode_libdir_flag_spec_F77='-R$libdir'
15469      hardcode_direct_F77=yes
15470      hardcode_shlibpath_var_F77=no
15471      ;;
15472
15473    hpux9*)
15474      if test "$GCC" = yes; then
15475	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'
15476      else
15477	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'
15478      fi
15479      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15480      hardcode_libdir_separator_F77=:
15481      hardcode_direct_F77=yes
15482
15483      # hardcode_minus_L: Not really in the search PATH,
15484      # but as the default location of the library.
15485      hardcode_minus_L_F77=yes
15486      export_dynamic_flag_spec_F77='${wl}-E'
15487      ;;
15488
15489    hpux10*)
15490      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15492      else
15493	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15494      fi
15495      if test "$with_gnu_ld" = no; then
15496	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15497	hardcode_libdir_separator_F77=:
15498
15499	hardcode_direct_F77=yes
15500	export_dynamic_flag_spec_F77='${wl}-E'
15501
15502	# hardcode_minus_L: Not really in the search PATH,
15503	# but as the default location of the library.
15504	hardcode_minus_L_F77=yes
15505      fi
15506      ;;
15507
15508    hpux11*)
15509      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15510	case $host_cpu in
15511	hppa*64*)
15512	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513	  ;;
15514	ia64*)
15515	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15516	  ;;
15517	*)
15518	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15519	  ;;
15520	esac
15521      else
15522	case $host_cpu in
15523	hppa*64*)
15524	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525	  ;;
15526	ia64*)
15527	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15528	  ;;
15529	*)
15530	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15531	  ;;
15532	esac
15533      fi
15534      if test "$with_gnu_ld" = no; then
15535	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15536	hardcode_libdir_separator_F77=:
15537
15538	case $host_cpu in
15539	hppa*64*|ia64*)
15540	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15541	  hardcode_direct_F77=no
15542	  hardcode_shlibpath_var_F77=no
15543	  ;;
15544	*)
15545	  hardcode_direct_F77=yes
15546	  export_dynamic_flag_spec_F77='${wl}-E'
15547
15548	  # hardcode_minus_L: Not really in the search PATH,
15549	  # but as the default location of the library.
15550	  hardcode_minus_L_F77=yes
15551	  ;;
15552	esac
15553      fi
15554      ;;
15555
15556    irix5* | irix6* | nonstopux*)
15557      if test "$GCC" = yes; then
15558	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'
15559      else
15560	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'
15561	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15562      fi
15563      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564      hardcode_libdir_separator_F77=:
15565      link_all_deplibs_F77=yes
15566      ;;
15567
15568    netbsd*)
15569      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15570	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15571      else
15572	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15573      fi
15574      hardcode_libdir_flag_spec_F77='-R$libdir'
15575      hardcode_direct_F77=yes
15576      hardcode_shlibpath_var_F77=no
15577      ;;
15578
15579    newsos6)
15580      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581      hardcode_direct_F77=yes
15582      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15583      hardcode_libdir_separator_F77=:
15584      hardcode_shlibpath_var_F77=no
15585      ;;
15586
15587    openbsd*)
15588      if test -f /usr/libexec/ld.so; then
15589	hardcode_direct_F77=yes
15590	hardcode_shlibpath_var_F77=no
15591	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15592	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15593	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15594	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15595	  export_dynamic_flag_spec_F77='${wl}-E'
15596	else
15597	  case $host_os in
15598	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15599	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15600	     hardcode_libdir_flag_spec_F77='-R$libdir'
15601	     ;;
15602	   *)
15603	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15604	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15605	     ;;
15606	  esac
15607        fi
15608      else
15609	ld_shlibs_F77=no
15610      fi
15611      ;;
15612
15613    os2*)
15614      hardcode_libdir_flag_spec_F77='-L$libdir'
15615      hardcode_minus_L_F77=yes
15616      allow_undefined_flag_F77=unsupported
15617      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'
15618      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15619      ;;
15620
15621    osf3*)
15622      if test "$GCC" = yes; then
15623	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15624	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'
15625      else
15626	allow_undefined_flag_F77=' -expect_unresolved \*'
15627	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'
15628      fi
15629      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15630      hardcode_libdir_separator_F77=:
15631      ;;
15632
15633    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15634      if test "$GCC" = yes; then
15635	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15636	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'
15637	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15638      else
15639	allow_undefined_flag_F77=' -expect_unresolved \*'
15640	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'
15641	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~
15642	$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'
15643
15644	# Both c and cxx compiler support -rpath directly
15645	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15646      fi
15647      hardcode_libdir_separator_F77=:
15648      ;;
15649
15650    solaris*)
15651      no_undefined_flag_F77=' -z text'
15652      if test "$GCC" = yes; then
15653	wlarc='${wl}'
15654	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15656	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15657      else
15658	wlarc=''
15659	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15660	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15661  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15662      fi
15663      hardcode_libdir_flag_spec_F77='-R$libdir'
15664      hardcode_shlibpath_var_F77=no
15665      case $host_os in
15666      solaris2.[0-5] | solaris2.[0-5].*) ;;
15667      *)
15668	# The compiler driver will combine and reorder linker options,
15669	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15670	# but is careful enough not to reorder.
15671 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15672	if test "$GCC" = yes; then
15673	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15674	else
15675	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15676	fi
15677	;;
15678      esac
15679      link_all_deplibs_F77=yes
15680      ;;
15681
15682    sunos4*)
15683      if test "x$host_vendor" = xsequent; then
15684	# Use $CC to link under sequent, because it throws in some extra .o
15685	# files that make .init and .fini sections work.
15686	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15687      else
15688	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15689      fi
15690      hardcode_libdir_flag_spec_F77='-L$libdir'
15691      hardcode_direct_F77=yes
15692      hardcode_minus_L_F77=yes
15693      hardcode_shlibpath_var_F77=no
15694      ;;
15695
15696    sysv4)
15697      case $host_vendor in
15698	sni)
15699	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700	  hardcode_direct_F77=yes # is this really true???
15701	;;
15702	siemens)
15703	  ## LD is ld it makes a PLAMLIB
15704	  ## CC just makes a GrossModule.
15705	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15706	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15707	  hardcode_direct_F77=no
15708        ;;
15709	motorola)
15710	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15712	;;
15713      esac
15714      runpath_var='LD_RUN_PATH'
15715      hardcode_shlibpath_var_F77=no
15716      ;;
15717
15718    sysv4.3*)
15719      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720      hardcode_shlibpath_var_F77=no
15721      export_dynamic_flag_spec_F77='-Bexport'
15722      ;;
15723
15724    sysv4*MP*)
15725      if test -d /usr/nec; then
15726	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727	hardcode_shlibpath_var_F77=no
15728	runpath_var=LD_RUN_PATH
15729	hardcode_runpath_var=yes
15730	ld_shlibs_F77=yes
15731      fi
15732      ;;
15733
15734    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15735      no_undefined_flag_F77='${wl}-z,text'
15736      archive_cmds_need_lc_F77=no
15737      hardcode_shlibpath_var_F77=no
15738      runpath_var='LD_RUN_PATH'
15739
15740      if test "$GCC" = yes; then
15741	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15742	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15743      else
15744	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15745	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746      fi
15747      ;;
15748
15749    sysv5* | sco3.2v5* | sco5v6*)
15750      # Note: We can NOT use -z defs as we might desire, because we do not
15751      # link with -lc, and that would cause any symbols used from libc to
15752      # always be unresolved, which means just about no library would
15753      # ever link correctly.  If we're not using GNU ld we use -z text
15754      # though, which does catch some bad symbols but isn't as heavy-handed
15755      # as -z defs.
15756      no_undefined_flag_F77='${wl}-z,text'
15757      allow_undefined_flag_F77='${wl}-z,nodefs'
15758      archive_cmds_need_lc_F77=no
15759      hardcode_shlibpath_var_F77=no
15760      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15761      hardcode_libdir_separator_F77=':'
15762      link_all_deplibs_F77=yes
15763      export_dynamic_flag_spec_F77='${wl}-Bexport'
15764      runpath_var='LD_RUN_PATH'
15765
15766      if test "$GCC" = yes; then
15767	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15768	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15769      else
15770	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772      fi
15773      ;;
15774
15775    uts4*)
15776      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15777      hardcode_libdir_flag_spec_F77='-L$libdir'
15778      hardcode_shlibpath_var_F77=no
15779      ;;
15780
15781    *)
15782      ld_shlibs_F77=no
15783      ;;
15784    esac
15785  fi
15786
15787{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15788$as_echo "$ld_shlibs_F77" >&6; }
15789test "$ld_shlibs_F77" = no && can_build_shared=no
15790
15791#
15792# Do we need to explicitly link libc?
15793#
15794case "x$archive_cmds_need_lc_F77" in
15795x|xyes)
15796  # Assume -lc should be added
15797  archive_cmds_need_lc_F77=yes
15798
15799  if test "$enable_shared" = yes && test "$GCC" = yes; then
15800    case $archive_cmds_F77 in
15801    *'~'*)
15802      # FIXME: we may have to deal with multi-command sequences.
15803      ;;
15804    '$CC '*)
15805      # Test whether the compiler implicitly links with -lc since on some
15806      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15807      # to ld, don't add -lc before -lgcc.
15808      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15809$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15810      $rm conftest*
15811      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15812
15813      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814  (eval $ac_compile) 2>&5
15815  ac_status=$?
15816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817  (exit $ac_status); } 2>conftest.err; then
15818        soname=conftest
15819        lib=conftest
15820        libobjs=conftest.$ac_objext
15821        deplibs=
15822        wl=$lt_prog_compiler_wl_F77
15823	pic_flag=$lt_prog_compiler_pic_F77
15824        compiler_flags=-v
15825        linker_flags=-v
15826        verstring=
15827        output_objdir=.
15828        libname=conftest
15829        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15830        allow_undefined_flag_F77=
15831        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15832  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15833  ac_status=$?
15834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835  (exit $ac_status); }
15836        then
15837	  archive_cmds_need_lc_F77=no
15838        else
15839	  archive_cmds_need_lc_F77=yes
15840        fi
15841        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15842      else
15843        cat conftest.err 1>&5
15844      fi
15845      $rm conftest*
15846      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15847$as_echo "$archive_cmds_need_lc_F77" >&6; }
15848      ;;
15849    esac
15850  fi
15851  ;;
15852esac
15853
15854{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15855$as_echo_n "checking dynamic linker characteristics... " >&6; }
15856library_names_spec=
15857libname_spec='lib$name'
15858soname_spec=
15859shrext_cmds=".so"
15860postinstall_cmds=
15861postuninstall_cmds=
15862finish_cmds=
15863finish_eval=
15864shlibpath_var=
15865shlibpath_overrides_runpath=unknown
15866version_type=none
15867dynamic_linker="$host_os ld.so"
15868sys_lib_dlsearch_path_spec="/lib /usr/lib"
15869
15870need_lib_prefix=unknown
15871hardcode_into_libs=no
15872
15873# when you set need_version to no, make sure it does not cause -set_version
15874# flags to be left without arguments
15875need_version=unknown
15876
15877case $host_os in
15878aix3*)
15879  version_type=linux
15880  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15881  shlibpath_var=LIBPATH
15882
15883  # AIX 3 has no versioning support, so we append a major version to the name.
15884  soname_spec='${libname}${release}${shared_ext}$major'
15885  ;;
15886
15887aix[4-9]*)
15888  version_type=linux
15889  need_lib_prefix=no
15890  need_version=no
15891  hardcode_into_libs=yes
15892  if test "$host_cpu" = ia64; then
15893    # AIX 5 supports IA64
15894    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15895    shlibpath_var=LD_LIBRARY_PATH
15896  else
15897    # With GCC up to 2.95.x, collect2 would create an import file
15898    # for dependence libraries.  The import file would start with
15899    # the line `#! .'.  This would cause the generated library to
15900    # depend on `.', always an invalid library.  This was fixed in
15901    # development snapshots of GCC prior to 3.0.
15902    case $host_os in
15903      aix4 | aix4.[01] | aix4.[01].*)
15904      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15905	   echo ' yes '
15906	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15907	:
15908      else
15909	can_build_shared=no
15910      fi
15911      ;;
15912    esac
15913    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15914    # soname into executable. Probably we can add versioning support to
15915    # collect2, so additional links can be useful in future.
15916    if test "$aix_use_runtimelinking" = yes; then
15917      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15918      # instead of lib<name>.a to let people know that these are not
15919      # typical AIX shared libraries.
15920      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921    else
15922      # We preserve .a as extension for shared libraries through AIX4.2
15923      # and later when we are not doing run time linking.
15924      library_names_spec='${libname}${release}.a $libname.a'
15925      soname_spec='${libname}${release}${shared_ext}$major'
15926    fi
15927    shlibpath_var=LIBPATH
15928  fi
15929  ;;
15930
15931amigaos*)
15932  library_names_spec='$libname.ixlibrary $libname.a'
15933  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15934  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'
15935  ;;
15936
15937beos*)
15938  library_names_spec='${libname}${shared_ext}'
15939  dynamic_linker="$host_os ld.so"
15940  shlibpath_var=LIBRARY_PATH
15941  ;;
15942
15943bsdi[45]*)
15944  version_type=linux
15945  need_version=no
15946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947  soname_spec='${libname}${release}${shared_ext}$major'
15948  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949  shlibpath_var=LD_LIBRARY_PATH
15950  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952  # the default ld.so.conf also contains /usr/contrib/lib and
15953  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954  # libtool to hard-code these into programs
15955  ;;
15956
15957cygwin* | mingw* | pw32*)
15958  version_type=windows
15959  shrext_cmds=".dll"
15960  need_version=no
15961  need_lib_prefix=no
15962
15963  case $GCC,$host_os in
15964  yes,cygwin* | yes,mingw* | yes,pw32*)
15965    library_names_spec='$libname.dll.a'
15966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15967    postinstall_cmds='base_file=`basename \${file}`~
15968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15969      dldir=$destdir/`dirname \$dlpath`~
15970      test -d \$dldir || mkdir -p \$dldir~
15971      $install_prog $dir/$dlname \$dldir/$dlname~
15972      chmod a+x \$dldir/$dlname'
15973    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15974      dlpath=$dir/\$dldll~
15975       $rm \$dlpath'
15976    shlibpath_overrides_runpath=yes
15977
15978    case $host_os in
15979    cygwin*)
15980      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15981      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15983      ;;
15984    mingw*)
15985      # MinGW DLLs use traditional 'lib' prefix
15986      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15989        # It is most probably a Windows format PATH printed by
15990        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15991        # path with ; separators, and with drive letters. We can handle the
15992        # drive letters (cygwin fileutils understands them), so leave them,
15993        # especially as we might pass files found there to a mingw objdump,
15994        # which wouldn't understand a cygwinified path. Ahh.
15995        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15996      else
15997        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15998      fi
15999      ;;
16000    pw32*)
16001      # pw32 DLLs use 'pw' prefix rather than 'lib'
16002      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003      ;;
16004    esac
16005    ;;
16006
16007  *)
16008    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16009    ;;
16010  esac
16011  dynamic_linker='Win32 ld.exe'
16012  # FIXME: first we should search . and the directory the executable is in
16013  shlibpath_var=PATH
16014  ;;
16015
16016darwin* | rhapsody*)
16017  dynamic_linker="$host_os dyld"
16018  version_type=darwin
16019  need_lib_prefix=no
16020  need_version=no
16021  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16022  soname_spec='${libname}${release}${major}$shared_ext'
16023  shlibpath_overrides_runpath=yes
16024  shlibpath_var=DYLD_LIBRARY_PATH
16025  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16026
16027  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16028  ;;
16029
16030dgux*)
16031  version_type=linux
16032  need_lib_prefix=no
16033  need_version=no
16034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16035  soname_spec='${libname}${release}${shared_ext}$major'
16036  shlibpath_var=LD_LIBRARY_PATH
16037  ;;
16038
16039freebsd1*)
16040  dynamic_linker=no
16041  ;;
16042
16043freebsd* | dragonfly*)
16044  # DragonFly does not have aout.  When/if they implement a new
16045  # versioning mechanism, adjust this.
16046  if test -x /usr/bin/objformat; then
16047    objformat=`/usr/bin/objformat`
16048  else
16049    case $host_os in
16050    freebsd[123]*) objformat=aout ;;
16051    *) objformat=elf ;;
16052    esac
16053  fi
16054  version_type=freebsd-$objformat
16055  case $version_type in
16056    freebsd-elf*)
16057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16058      need_version=no
16059      need_lib_prefix=no
16060      ;;
16061    freebsd-*)
16062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16063      need_version=yes
16064      ;;
16065  esac
16066  shlibpath_var=LD_LIBRARY_PATH
16067  case $host_os in
16068  freebsd2*)
16069    shlibpath_overrides_runpath=yes
16070    ;;
16071  freebsd3.[01]* | freebsdelf3.[01]*)
16072    shlibpath_overrides_runpath=yes
16073    hardcode_into_libs=yes
16074    ;;
16075  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16076  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16077    shlibpath_overrides_runpath=no
16078    hardcode_into_libs=yes
16079    ;;
16080  *) # from 4.6 on, and DragonFly
16081    shlibpath_overrides_runpath=yes
16082    hardcode_into_libs=yes
16083    ;;
16084  esac
16085  ;;
16086
16087gnu*)
16088  version_type=linux
16089  need_lib_prefix=no
16090  need_version=no
16091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16092  soname_spec='${libname}${release}${shared_ext}$major'
16093  shlibpath_var=LD_LIBRARY_PATH
16094  hardcode_into_libs=yes
16095  ;;
16096
16097hpux9* | hpux10* | hpux11*)
16098  # Give a soname corresponding to the major version so that dld.sl refuses to
16099  # link against other versions.
16100  version_type=sunos
16101  need_lib_prefix=no
16102  need_version=no
16103  case $host_cpu in
16104  ia64*)
16105    shrext_cmds='.so'
16106    hardcode_into_libs=yes
16107    dynamic_linker="$host_os dld.so"
16108    shlibpath_var=LD_LIBRARY_PATH
16109    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16110    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111    soname_spec='${libname}${release}${shared_ext}$major'
16112    if test "X$HPUX_IA64_MODE" = X32; then
16113      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16114    else
16115      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16116    fi
16117    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16118    ;;
16119   hppa*64*)
16120     shrext_cmds='.sl'
16121     hardcode_into_libs=yes
16122     dynamic_linker="$host_os dld.sl"
16123     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126     soname_spec='${libname}${release}${shared_ext}$major'
16127     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16128     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16129     ;;
16130   *)
16131    shrext_cmds='.sl'
16132    dynamic_linker="$host_os dld.sl"
16133    shlibpath_var=SHLIB_PATH
16134    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136    soname_spec='${libname}${release}${shared_ext}$major'
16137    ;;
16138  esac
16139  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16140  postinstall_cmds='chmod 555 $lib'
16141  ;;
16142
16143interix[3-9]*)
16144  version_type=linux
16145  need_lib_prefix=no
16146  need_version=no
16147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16148  soname_spec='${libname}${release}${shared_ext}$major'
16149  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16150  shlibpath_var=LD_LIBRARY_PATH
16151  shlibpath_overrides_runpath=no
16152  hardcode_into_libs=yes
16153  ;;
16154
16155irix5* | irix6* | nonstopux*)
16156  case $host_os in
16157    nonstopux*) version_type=nonstopux ;;
16158    *)
16159	if test "$lt_cv_prog_gnu_ld" = yes; then
16160		version_type=linux
16161	else
16162		version_type=irix
16163	fi ;;
16164  esac
16165  need_lib_prefix=no
16166  need_version=no
16167  soname_spec='${libname}${release}${shared_ext}$major'
16168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16169  case $host_os in
16170  irix5* | nonstopux*)
16171    libsuff= shlibsuff=
16172    ;;
16173  *)
16174    case $LD in # libtool.m4 will add one of these switches to LD
16175    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16176      libsuff= shlibsuff= libmagic=32-bit;;
16177    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16178      libsuff=32 shlibsuff=N32 libmagic=N32;;
16179    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16180      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16181    *) libsuff= shlibsuff= libmagic=never-match;;
16182    esac
16183    ;;
16184  esac
16185  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16186  shlibpath_overrides_runpath=no
16187  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16188  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16189  hardcode_into_libs=yes
16190  ;;
16191
16192# No shared lib support for Linux oldld, aout, or coff.
16193linux*oldld* | linux*aout* | linux*coff*)
16194  dynamic_linker=no
16195  ;;
16196
16197# This must be Linux ELF.
16198linux* | k*bsd*-gnu)
16199  version_type=linux
16200  need_lib_prefix=no
16201  need_version=no
16202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203  soname_spec='${libname}${release}${shared_ext}$major'
16204  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16205  shlibpath_var=LD_LIBRARY_PATH
16206  shlibpath_overrides_runpath=no
16207  # This implies no fast_install, which is unacceptable.
16208  # Some rework will be needed to allow for fast_install
16209  # before this can be enabled.
16210  hardcode_into_libs=yes
16211  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16212  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16213
16214  # Append ld.so.conf contents to the search path
16215  if test -f /etc/ld.so.conf; then
16216    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' ' '`
16217    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16218  fi
16219
16220  # We used to test for /lib/ld.so.1 and disable shared libraries on
16221  # powerpc, because MkLinux only supported shared libraries with the
16222  # GNU dynamic linker.  Since this was broken with cross compilers,
16223  # most powerpc-linux boxes support dynamic linking these days and
16224  # people can always --disable-shared, the test was removed, and we
16225  # assume the GNU/Linux dynamic linker is in use.
16226  dynamic_linker='GNU/Linux ld.so'
16227  ;;
16228
16229netbsd*)
16230  version_type=sunos
16231  need_lib_prefix=no
16232  need_version=no
16233  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16235    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16236    dynamic_linker='NetBSD (a.out) ld.so'
16237  else
16238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16239    soname_spec='${libname}${release}${shared_ext}$major'
16240    dynamic_linker='NetBSD ld.elf_so'
16241  fi
16242  shlibpath_var=LD_LIBRARY_PATH
16243  shlibpath_overrides_runpath=yes
16244  hardcode_into_libs=yes
16245  ;;
16246
16247newsos6)
16248  version_type=linux
16249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250  shlibpath_var=LD_LIBRARY_PATH
16251  shlibpath_overrides_runpath=yes
16252  ;;
16253
16254nto-qnx*)
16255  version_type=linux
16256  need_lib_prefix=no
16257  need_version=no
16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259  soname_spec='${libname}${release}${shared_ext}$major'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  shlibpath_overrides_runpath=yes
16262  ;;
16263
16264openbsd*)
16265  version_type=sunos
16266  sys_lib_dlsearch_path_spec="/usr/lib"
16267  need_lib_prefix=no
16268  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16269  case $host_os in
16270    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16271    *)                         need_version=no  ;;
16272  esac
16273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16274  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16275  shlibpath_var=LD_LIBRARY_PATH
16276  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16277    case $host_os in
16278      openbsd2.[89] | openbsd2.[89].*)
16279	shlibpath_overrides_runpath=no
16280	;;
16281      *)
16282	shlibpath_overrides_runpath=yes
16283	;;
16284      esac
16285  else
16286    shlibpath_overrides_runpath=yes
16287  fi
16288  ;;
16289
16290os2*)
16291  libname_spec='$name'
16292  shrext_cmds=".dll"
16293  need_lib_prefix=no
16294  library_names_spec='$libname${shared_ext} $libname.a'
16295  dynamic_linker='OS/2 ld.exe'
16296  shlibpath_var=LIBPATH
16297  ;;
16298
16299osf3* | osf4* | osf5*)
16300  version_type=osf
16301  need_lib_prefix=no
16302  need_version=no
16303  soname_spec='${libname}${release}${shared_ext}$major'
16304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16307  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16308  ;;
16309
16310rdos*)
16311  dynamic_linker=no
16312  ;;
16313
16314solaris*)
16315  version_type=linux
16316  need_lib_prefix=no
16317  need_version=no
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319  soname_spec='${libname}${release}${shared_ext}$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  hardcode_into_libs=yes
16323  # ldd complains unless libraries are executable
16324  postinstall_cmds='chmod +x $lib'
16325  ;;
16326
16327sunos4*)
16328  version_type=sunos
16329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16330  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16331  shlibpath_var=LD_LIBRARY_PATH
16332  shlibpath_overrides_runpath=yes
16333  if test "$with_gnu_ld" = yes; then
16334    need_lib_prefix=no
16335  fi
16336  need_version=yes
16337  ;;
16338
16339sysv4 | sysv4.3*)
16340  version_type=linux
16341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342  soname_spec='${libname}${release}${shared_ext}$major'
16343  shlibpath_var=LD_LIBRARY_PATH
16344  case $host_vendor in
16345    sni)
16346      shlibpath_overrides_runpath=no
16347      need_lib_prefix=no
16348      export_dynamic_flag_spec='${wl}-Blargedynsym'
16349      runpath_var=LD_RUN_PATH
16350      ;;
16351    siemens)
16352      need_lib_prefix=no
16353      ;;
16354    motorola)
16355      need_lib_prefix=no
16356      need_version=no
16357      shlibpath_overrides_runpath=no
16358      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16359      ;;
16360  esac
16361  ;;
16362
16363sysv4*MP*)
16364  if test -d /usr/nec ;then
16365    version_type=linux
16366    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16367    soname_spec='$libname${shared_ext}.$major'
16368    shlibpath_var=LD_LIBRARY_PATH
16369  fi
16370  ;;
16371
16372sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16373  version_type=freebsd-elf
16374  need_lib_prefix=no
16375  need_version=no
16376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16377  soname_spec='${libname}${release}${shared_ext}$major'
16378  shlibpath_var=LD_LIBRARY_PATH
16379  hardcode_into_libs=yes
16380  if test "$with_gnu_ld" = yes; then
16381    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16382    shlibpath_overrides_runpath=no
16383  else
16384    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16385    shlibpath_overrides_runpath=yes
16386    case $host_os in
16387      sco3.2v5*)
16388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16389	;;
16390    esac
16391  fi
16392  sys_lib_dlsearch_path_spec='/usr/lib'
16393  ;;
16394
16395uts4*)
16396  version_type=linux
16397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398  soname_spec='${libname}${release}${shared_ext}$major'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  ;;
16401
16402*)
16403  dynamic_linker=no
16404  ;;
16405esac
16406{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16407$as_echo "$dynamic_linker" >&6; }
16408test "$dynamic_linker" = no && can_build_shared=no
16409
16410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16411  $as_echo_n "(cached) " >&6
16412else
16413  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16414fi
16415
16416sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16417if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16418  $as_echo_n "(cached) " >&6
16419else
16420  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16421fi
16422
16423sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16424
16425variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16426if test "$GCC" = yes; then
16427  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16428fi
16429
16430{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16431$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16432hardcode_action_F77=
16433if test -n "$hardcode_libdir_flag_spec_F77" || \
16434   test -n "$runpath_var_F77" || \
16435   test "X$hardcode_automatic_F77" = "Xyes" ; then
16436
16437  # We can hardcode non-existant directories.
16438  if test "$hardcode_direct_F77" != no &&
16439     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16440     # have to relink, otherwise we might link with an installed library
16441     # when we should be linking with a yet-to-be-installed one
16442     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16443     test "$hardcode_minus_L_F77" != no; then
16444    # Linking always hardcodes the temporary library directory.
16445    hardcode_action_F77=relink
16446  else
16447    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16448    hardcode_action_F77=immediate
16449  fi
16450else
16451  # We cannot hardcode anything, or else we can only hardcode existing
16452  # directories.
16453  hardcode_action_F77=unsupported
16454fi
16455{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16456$as_echo "$hardcode_action_F77" >&6; }
16457
16458if test "$hardcode_action_F77" = relink; then
16459  # Fast installation is not supported
16460  enable_fast_install=no
16461elif test "$shlibpath_overrides_runpath" = yes ||
16462     test "$enable_shared" = no; then
16463  # Fast installation is not necessary
16464  enable_fast_install=needless
16465fi
16466
16467
16468# The else clause should only fire when bootstrapping the
16469# libtool distribution, otherwise you forgot to ship ltmain.sh
16470# with your package, and you will get complaints that there are
16471# no rules to generate ltmain.sh.
16472if test -f "$ltmain"; then
16473  # See if we are running on zsh, and set the options which allow our commands through
16474  # without removal of \ escapes.
16475  if test -n "${ZSH_VERSION+set}" ; then
16476    setopt NO_GLOB_SUBST
16477  fi
16478  # Now quote all the things that may contain metacharacters while being
16479  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16480  # variables and quote the copies for generation of the libtool script.
16481  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16482    SED SHELL STRIP \
16483    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16484    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16485    deplibs_check_method reload_flag reload_cmds need_locks \
16486    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16487    lt_cv_sys_global_symbol_to_c_name_address \
16488    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16489    old_postinstall_cmds old_postuninstall_cmds \
16490    compiler_F77 \
16491    CC_F77 \
16492    LD_F77 \
16493    lt_prog_compiler_wl_F77 \
16494    lt_prog_compiler_pic_F77 \
16495    lt_prog_compiler_static_F77 \
16496    lt_prog_compiler_no_builtin_flag_F77 \
16497    export_dynamic_flag_spec_F77 \
16498    thread_safe_flag_spec_F77 \
16499    whole_archive_flag_spec_F77 \
16500    enable_shared_with_static_runtimes_F77 \
16501    old_archive_cmds_F77 \
16502    old_archive_from_new_cmds_F77 \
16503    predep_objects_F77 \
16504    postdep_objects_F77 \
16505    predeps_F77 \
16506    postdeps_F77 \
16507    compiler_lib_search_path_F77 \
16508    compiler_lib_search_dirs_F77 \
16509    archive_cmds_F77 \
16510    archive_expsym_cmds_F77 \
16511    postinstall_cmds_F77 \
16512    postuninstall_cmds_F77 \
16513    old_archive_from_expsyms_cmds_F77 \
16514    allow_undefined_flag_F77 \
16515    no_undefined_flag_F77 \
16516    export_symbols_cmds_F77 \
16517    hardcode_libdir_flag_spec_F77 \
16518    hardcode_libdir_flag_spec_ld_F77 \
16519    hardcode_libdir_separator_F77 \
16520    hardcode_automatic_F77 \
16521    module_cmds_F77 \
16522    module_expsym_cmds_F77 \
16523    lt_cv_prog_compiler_c_o_F77 \
16524    fix_srcfile_path_F77 \
16525    exclude_expsyms_F77 \
16526    include_expsyms_F77; do
16527
16528    case $var in
16529    old_archive_cmds_F77 | \
16530    old_archive_from_new_cmds_F77 | \
16531    archive_cmds_F77 | \
16532    archive_expsym_cmds_F77 | \
16533    module_cmds_F77 | \
16534    module_expsym_cmds_F77 | \
16535    old_archive_from_expsyms_cmds_F77 | \
16536    export_symbols_cmds_F77 | \
16537    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16538    postinstall_cmds | postuninstall_cmds | \
16539    old_postinstall_cmds | old_postuninstall_cmds | \
16540    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16541      # Double-quote double-evaled strings.
16542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16543      ;;
16544    *)
16545      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16546      ;;
16547    esac
16548  done
16549
16550  case $lt_echo in
16551  *'\$0 --fallback-echo"')
16552    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16553    ;;
16554  esac
16555
16556cfgfile="$ofile"
16557
16558  cat <<__EOF__ >> "$cfgfile"
16559# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16560
16561# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16562
16563# Shell to use when invoking shell scripts.
16564SHELL=$lt_SHELL
16565
16566# Whether or not to build shared libraries.
16567build_libtool_libs=$enable_shared
16568
16569# Whether or not to build static libraries.
16570build_old_libs=$enable_static
16571
16572# Whether or not to add -lc for building shared libraries.
16573build_libtool_need_lc=$archive_cmds_need_lc_F77
16574
16575# Whether or not to disallow shared libs when runtime libs are static
16576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16577
16578# Whether or not to optimize for fast installation.
16579fast_install=$enable_fast_install
16580
16581# The host system.
16582host_alias=$host_alias
16583host=$host
16584host_os=$host_os
16585
16586# The build system.
16587build_alias=$build_alias
16588build=$build
16589build_os=$build_os
16590
16591# An echo program that does not interpret backslashes.
16592echo=$lt_echo
16593
16594# The archiver.
16595AR=$lt_AR
16596AR_FLAGS=$lt_AR_FLAGS
16597
16598# A C compiler.
16599LTCC=$lt_LTCC
16600
16601# LTCC compiler flags.
16602LTCFLAGS=$lt_LTCFLAGS
16603
16604# A language-specific compiler.
16605CC=$lt_compiler_F77
16606
16607# Is the compiler the GNU C compiler?
16608with_gcc=$GCC_F77
16609
16610# An ERE matcher.
16611EGREP=$lt_EGREP
16612
16613# The linker used to build libraries.
16614LD=$lt_LD_F77
16615
16616# Whether we need hard or soft links.
16617LN_S=$lt_LN_S
16618
16619# A BSD-compatible nm program.
16620NM=$lt_NM
16621
16622# A symbol stripping program
16623STRIP=$lt_STRIP
16624
16625# Used to examine libraries when file_magic_cmd begins "file"
16626MAGIC_CMD=$MAGIC_CMD
16627
16628# Used on cygwin: DLL creation program.
16629DLLTOOL="$DLLTOOL"
16630
16631# Used on cygwin: object dumper.
16632OBJDUMP="$OBJDUMP"
16633
16634# Used on cygwin: assembler.
16635AS="$AS"
16636
16637# The name of the directory that contains temporary libtool files.
16638objdir=$objdir
16639
16640# How to create reloadable object files.
16641reload_flag=$lt_reload_flag
16642reload_cmds=$lt_reload_cmds
16643
16644# How to pass a linker flag through the compiler.
16645wl=$lt_lt_prog_compiler_wl_F77
16646
16647# Object file suffix (normally "o").
16648objext="$ac_objext"
16649
16650# Old archive suffix (normally "a").
16651libext="$libext"
16652
16653# Shared library suffix (normally ".so").
16654shrext_cmds='$shrext_cmds'
16655
16656# Executable file suffix (normally "").
16657exeext="$exeext"
16658
16659# Additional compiler flags for building library objects.
16660pic_flag=$lt_lt_prog_compiler_pic_F77
16661pic_mode=$pic_mode
16662
16663# What is the maximum length of a command?
16664max_cmd_len=$lt_cv_sys_max_cmd_len
16665
16666# Does compiler simultaneously support -c and -o options?
16667compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16668
16669# Must we lock files when doing compilation?
16670need_locks=$lt_need_locks
16671
16672# Do we need the lib prefix for modules?
16673need_lib_prefix=$need_lib_prefix
16674
16675# Do we need a version for libraries?
16676need_version=$need_version
16677
16678# Whether dlopen is supported.
16679dlopen_support=$enable_dlopen
16680
16681# Whether dlopen of programs is supported.
16682dlopen_self=$enable_dlopen_self
16683
16684# Whether dlopen of statically linked programs is supported.
16685dlopen_self_static=$enable_dlopen_self_static
16686
16687# Compiler flag to prevent dynamic linking.
16688link_static_flag=$lt_lt_prog_compiler_static_F77
16689
16690# Compiler flag to turn off builtin functions.
16691no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16692
16693# Compiler flag to allow reflexive dlopens.
16694export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16695
16696# Compiler flag to generate shared objects directly from archives.
16697whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16698
16699# Compiler flag to generate thread-safe objects.
16700thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16701
16702# Library versioning type.
16703version_type=$version_type
16704
16705# Format of library name prefix.
16706libname_spec=$lt_libname_spec
16707
16708# List of archive names.  First name is the real one, the rest are links.
16709# The last name is the one that the linker finds with -lNAME.
16710library_names_spec=$lt_library_names_spec
16711
16712# The coded name of the library, if different from the real name.
16713soname_spec=$lt_soname_spec
16714
16715# Commands used to build and install an old-style archive.
16716RANLIB=$lt_RANLIB
16717old_archive_cmds=$lt_old_archive_cmds_F77
16718old_postinstall_cmds=$lt_old_postinstall_cmds
16719old_postuninstall_cmds=$lt_old_postuninstall_cmds
16720
16721# Create an old-style archive from a shared archive.
16722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16723
16724# Create a temporary old-style archive to link instead of a shared archive.
16725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16726
16727# Commands used to build and install a shared archive.
16728archive_cmds=$lt_archive_cmds_F77
16729archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16730postinstall_cmds=$lt_postinstall_cmds
16731postuninstall_cmds=$lt_postuninstall_cmds
16732
16733# Commands used to build a loadable module (assumed same as above if empty)
16734module_cmds=$lt_module_cmds_F77
16735module_expsym_cmds=$lt_module_expsym_cmds_F77
16736
16737# Commands to strip libraries.
16738old_striplib=$lt_old_striplib
16739striplib=$lt_striplib
16740
16741# Dependencies to place before the objects being linked to create a
16742# shared library.
16743predep_objects=$lt_predep_objects_F77
16744
16745# Dependencies to place after the objects being linked to create a
16746# shared library.
16747postdep_objects=$lt_postdep_objects_F77
16748
16749# Dependencies to place before the objects being linked to create a
16750# shared library.
16751predeps=$lt_predeps_F77
16752
16753# Dependencies to place after the objects being linked to create a
16754# shared library.
16755postdeps=$lt_postdeps_F77
16756
16757# The directories searched by this compiler when creating a shared
16758# library
16759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16760
16761# The library search path used internally by the compiler when linking
16762# a shared library.
16763compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16764
16765# Method to check whether dependent libraries are shared objects.
16766deplibs_check_method=$lt_deplibs_check_method
16767
16768# Command to use when deplibs_check_method == file_magic.
16769file_magic_cmd=$lt_file_magic_cmd
16770
16771# Flag that allows shared libraries with undefined symbols to be built.
16772allow_undefined_flag=$lt_allow_undefined_flag_F77
16773
16774# Flag that forces no undefined symbols.
16775no_undefined_flag=$lt_no_undefined_flag_F77
16776
16777# Commands used to finish a libtool library installation in a directory.
16778finish_cmds=$lt_finish_cmds
16779
16780# Same as above, but a single script fragment to be evaled but not shown.
16781finish_eval=$lt_finish_eval
16782
16783# Take the output of nm and produce a listing of raw symbols and C names.
16784global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16785
16786# Transform the output of nm in a proper C declaration
16787global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16788
16789# Transform the output of nm in a C name address pair
16790global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16791
16792# This is the shared library runtime path variable.
16793runpath_var=$runpath_var
16794
16795# This is the shared library path variable.
16796shlibpath_var=$shlibpath_var
16797
16798# Is shlibpath searched before the hard-coded library search path?
16799shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16800
16801# How to hardcode a shared library path into an executable.
16802hardcode_action=$hardcode_action_F77
16803
16804# Whether we should hardcode library paths into libraries.
16805hardcode_into_libs=$hardcode_into_libs
16806
16807# Flag to hardcode \$libdir into a binary during linking.
16808# This must work even if \$libdir does not exist.
16809hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16810
16811# If ld is used when linking, flag to hardcode \$libdir into
16812# a binary during linking. This must work even if \$libdir does
16813# not exist.
16814hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16815
16816# Whether we need a single -rpath flag with a separated argument.
16817hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16818
16819# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16820# resulting binary.
16821hardcode_direct=$hardcode_direct_F77
16822
16823# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16824# resulting binary.
16825hardcode_minus_L=$hardcode_minus_L_F77
16826
16827# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16828# the resulting binary.
16829hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16830
16831# Set to yes if building a shared library automatically hardcodes DIR into the library
16832# and all subsequent libraries and executables linked against it.
16833hardcode_automatic=$hardcode_automatic_F77
16834
16835# Variables whose values should be saved in libtool wrapper scripts and
16836# restored at relink time.
16837variables_saved_for_relink="$variables_saved_for_relink"
16838
16839# Whether libtool must link a program against all its dependency libraries.
16840link_all_deplibs=$link_all_deplibs_F77
16841
16842# Compile-time system search path for libraries
16843sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16844
16845# Run-time system search path for libraries
16846sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16847
16848# Fix the shell variable \$srcfile for the compiler.
16849fix_srcfile_path=$lt_fix_srcfile_path
16850
16851# Set to yes if exported symbols are required.
16852always_export_symbols=$always_export_symbols_F77
16853
16854# The commands to list exported symbols.
16855export_symbols_cmds=$lt_export_symbols_cmds_F77
16856
16857# The commands to extract the exported symbol list from a shared archive.
16858extract_expsyms_cmds=$lt_extract_expsyms_cmds
16859
16860# Symbols that should not be listed in the preloaded symbols.
16861exclude_expsyms=$lt_exclude_expsyms_F77
16862
16863# Symbols that must always be exported.
16864include_expsyms=$lt_include_expsyms_F77
16865
16866# ### END LIBTOOL TAG CONFIG: $tagname
16867
16868__EOF__
16869
16870
16871else
16872  # If there is no Makefile yet, we rely on a make rule to execute
16873  # `config.status --recheck' to rerun these tests and create the
16874  # libtool script then.
16875  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16876  if test -f "$ltmain_in"; then
16877    test -f Makefile && make "$ltmain"
16878  fi
16879fi
16880
16881
16882ac_ext=c
16883ac_cpp='$CPP $CPPFLAGS'
16884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886ac_compiler_gnu=$ac_cv_c_compiler_gnu
16887
16888CC="$lt_save_CC"
16889
16890	else
16891	  tagname=""
16892	fi
16893	;;
16894
16895      GCJ)
16896	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16897
16898
16899# Source file extension for Java test sources.
16900ac_ext=java
16901
16902# Object file extension for compiled Java test sources.
16903objext=o
16904objext_GCJ=$objext
16905
16906# Code to be used in simple compile tests
16907lt_simple_compile_test_code="class foo {}"
16908
16909# Code to be used in simple link tests
16910lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16911
16912# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16913
16914# If no C compiler was specified, use CC.
16915LTCC=${LTCC-"$CC"}
16916
16917# If no C compiler flags were specified, use CFLAGS.
16918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16919
16920# Allow CC to be a program name with arguments.
16921compiler=$CC
16922
16923
16924# save warnings/boilerplate of simple test code
16925ac_outfile=conftest.$ac_objext
16926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16928_lt_compiler_boilerplate=`cat conftest.err`
16929$rm conftest*
16930
16931ac_outfile=conftest.$ac_objext
16932echo "$lt_simple_link_test_code" >conftest.$ac_ext
16933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16934_lt_linker_boilerplate=`cat conftest.err`
16935$rm -r conftest*
16936
16937
16938# Allow CC to be a program name with arguments.
16939lt_save_CC="$CC"
16940CC=${GCJ-"gcj"}
16941compiler=$CC
16942compiler_GCJ=$CC
16943for cc_temp in $compiler""; do
16944  case $cc_temp in
16945    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16946    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16947    \-*) ;;
16948    *) break;;
16949  esac
16950done
16951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16952
16953
16954# GCJ did not exist at the time GCC didn't implicitly link libc in.
16955archive_cmds_need_lc_GCJ=no
16956
16957old_archive_cmds_GCJ=$old_archive_cmds
16958
16959
16960lt_prog_compiler_no_builtin_flag_GCJ=
16961
16962if test "$GCC" = yes; then
16963  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16964
16965
16966{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16967$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16968if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16969  $as_echo_n "(cached) " >&6
16970else
16971  lt_cv_prog_compiler_rtti_exceptions=no
16972  ac_outfile=conftest.$ac_objext
16973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16974   lt_compiler_flag="-fno-rtti -fno-exceptions"
16975   # Insert the option either (1) after the last *FLAGS variable, or
16976   # (2) before a word containing "conftest.", or (3) at the end.
16977   # Note that $ac_compile itself does not contain backslashes and begins
16978   # with a dollar sign (not a hyphen), so the echo should work correctly.
16979   # The option is referenced via a variable to avoid confusing sed.
16980   lt_compile=`echo "$ac_compile" | $SED \
16981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983   -e 's:$: $lt_compiler_flag:'`
16984   (eval echo "\"\$as_me:16984: $lt_compile\"" >&5)
16985   (eval "$lt_compile" 2>conftest.err)
16986   ac_status=$?
16987   cat conftest.err >&5
16988   echo "$as_me:16988: \$? = $ac_status" >&5
16989   if (exit $ac_status) && test -s "$ac_outfile"; then
16990     # The compiler can only warn and ignore the option if not recognized
16991     # So say no if there are warnings other than the usual output.
16992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16995       lt_cv_prog_compiler_rtti_exceptions=yes
16996     fi
16997   fi
16998   $rm conftest*
16999
17000fi
17001{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17002$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17003
17004if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17005    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17006else
17007    :
17008fi
17009
17010fi
17011
17012lt_prog_compiler_wl_GCJ=
17013lt_prog_compiler_pic_GCJ=
17014lt_prog_compiler_static_GCJ=
17015
17016{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17017$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17018
17019  if test "$GCC" = yes; then
17020    lt_prog_compiler_wl_GCJ='-Wl,'
17021    lt_prog_compiler_static_GCJ='-static'
17022
17023    case $host_os in
17024      aix*)
17025      # All AIX code is PIC.
17026      if test "$host_cpu" = ia64; then
17027	# AIX 5 now supports IA64 processor
17028	lt_prog_compiler_static_GCJ='-Bstatic'
17029      fi
17030      ;;
17031
17032    amigaos*)
17033      # FIXME: we need at least 68020 code to build shared libraries, but
17034      # adding the `-m68020' flag to GCC prevents building anything better,
17035      # like `-m68040'.
17036      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17037      ;;
17038
17039    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17040      # PIC is the default for these OSes.
17041      ;;
17042
17043    mingw* | cygwin* | pw32* | os2*)
17044      # This hack is so that the source file can tell whether it is being
17045      # built for inclusion in a dll (and should export symbols for example).
17046      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17047      # (--disable-auto-import) libraries
17048
17049      ;;
17050
17051    darwin* | rhapsody*)
17052      # PIC is the default on this platform
17053      # Common symbols not allowed in MH_DYLIB files
17054      lt_prog_compiler_pic_GCJ='-fno-common'
17055      ;;
17056
17057    interix[3-9]*)
17058      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17059      # Instead, we relocate shared libraries at runtime.
17060      ;;
17061
17062    msdosdjgpp*)
17063      # Just because we use GCC doesn't mean we suddenly get shared libraries
17064      # on systems that don't support them.
17065      lt_prog_compiler_can_build_shared_GCJ=no
17066      enable_shared=no
17067      ;;
17068
17069    sysv4*MP*)
17070      if test -d /usr/nec; then
17071	lt_prog_compiler_pic_GCJ=-Kconform_pic
17072      fi
17073      ;;
17074
17075    hpux*)
17076      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17077      # not for PA HP-UX.
17078      case $host_cpu in
17079      hppa*64*|ia64*)
17080	# +Z the default
17081	;;
17082      *)
17083	lt_prog_compiler_pic_GCJ='-fPIC'
17084	;;
17085      esac
17086      ;;
17087
17088    *)
17089      lt_prog_compiler_pic_GCJ='-fPIC'
17090      ;;
17091    esac
17092  else
17093    # PORTME Check for flag to pass linker flags through the system compiler.
17094    case $host_os in
17095    aix*)
17096      lt_prog_compiler_wl_GCJ='-Wl,'
17097      if test "$host_cpu" = ia64; then
17098	# AIX 5 now supports IA64 processor
17099	lt_prog_compiler_static_GCJ='-Bstatic'
17100      else
17101	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17102      fi
17103      ;;
17104      darwin*)
17105        # PIC is the default on this platform
17106        # Common symbols not allowed in MH_DYLIB files
17107       case $cc_basename in
17108         xlc*)
17109         lt_prog_compiler_pic_GCJ='-qnocommon'
17110         lt_prog_compiler_wl_GCJ='-Wl,'
17111         ;;
17112       esac
17113       ;;
17114
17115    mingw* | cygwin* | pw32* | os2*)
17116      # This hack is so that the source file can tell whether it is being
17117      # built for inclusion in a dll (and should export symbols for example).
17118
17119      ;;
17120
17121    hpux9* | hpux10* | hpux11*)
17122      lt_prog_compiler_wl_GCJ='-Wl,'
17123      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17124      # not for PA HP-UX.
17125      case $host_cpu in
17126      hppa*64*|ia64*)
17127	# +Z the default
17128	;;
17129      *)
17130	lt_prog_compiler_pic_GCJ='+Z'
17131	;;
17132      esac
17133      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17134      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17135      ;;
17136
17137    irix5* | irix6* | nonstopux*)
17138      lt_prog_compiler_wl_GCJ='-Wl,'
17139      # PIC (with -KPIC) is the default.
17140      lt_prog_compiler_static_GCJ='-non_shared'
17141      ;;
17142
17143    newsos6)
17144      lt_prog_compiler_pic_GCJ='-KPIC'
17145      lt_prog_compiler_static_GCJ='-Bstatic'
17146      ;;
17147
17148    linux* | k*bsd*-gnu)
17149      case $cc_basename in
17150      icc* | ecc*)
17151	lt_prog_compiler_wl_GCJ='-Wl,'
17152	lt_prog_compiler_pic_GCJ='-KPIC'
17153	lt_prog_compiler_static_GCJ='-static'
17154        ;;
17155      pgcc* | pgf77* | pgf90* | pgf95*)
17156        # Portland Group compilers (*not* the Pentium gcc compiler,
17157	# which looks to be a dead project)
17158	lt_prog_compiler_wl_GCJ='-Wl,'
17159	lt_prog_compiler_pic_GCJ='-fpic'
17160	lt_prog_compiler_static_GCJ='-Bstatic'
17161        ;;
17162      ccc*)
17163        lt_prog_compiler_wl_GCJ='-Wl,'
17164        # All Alpha code is PIC.
17165        lt_prog_compiler_static_GCJ='-non_shared'
17166        ;;
17167      *)
17168        case `$CC -V 2>&1 | sed 5q` in
17169	*Sun\ C*)
17170	  # Sun C 5.9
17171	  lt_prog_compiler_pic_GCJ='-KPIC'
17172	  lt_prog_compiler_static_GCJ='-Bstatic'
17173	  lt_prog_compiler_wl_GCJ='-Wl,'
17174	  ;;
17175	*Sun\ F*)
17176	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17177	  lt_prog_compiler_pic_GCJ='-KPIC'
17178	  lt_prog_compiler_static_GCJ='-Bstatic'
17179	  lt_prog_compiler_wl_GCJ=''
17180	  ;;
17181	esac
17182	;;
17183      esac
17184      ;;
17185
17186    osf3* | osf4* | osf5*)
17187      lt_prog_compiler_wl_GCJ='-Wl,'
17188      # All OSF/1 code is PIC.
17189      lt_prog_compiler_static_GCJ='-non_shared'
17190      ;;
17191
17192    rdos*)
17193      lt_prog_compiler_static_GCJ='-non_shared'
17194      ;;
17195
17196    solaris*)
17197      lt_prog_compiler_pic_GCJ='-KPIC'
17198      lt_prog_compiler_static_GCJ='-Bstatic'
17199      case $cc_basename in
17200      f77* | f90* | f95*)
17201	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17202      *)
17203	lt_prog_compiler_wl_GCJ='-Wl,';;
17204      esac
17205      ;;
17206
17207    sunos4*)
17208      lt_prog_compiler_wl_GCJ='-Qoption ld '
17209      lt_prog_compiler_pic_GCJ='-PIC'
17210      lt_prog_compiler_static_GCJ='-Bstatic'
17211      ;;
17212
17213    sysv4 | sysv4.2uw2* | sysv4.3*)
17214      lt_prog_compiler_wl_GCJ='-Wl,'
17215      lt_prog_compiler_pic_GCJ='-KPIC'
17216      lt_prog_compiler_static_GCJ='-Bstatic'
17217      ;;
17218
17219    sysv4*MP*)
17220      if test -d /usr/nec ;then
17221	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17222	lt_prog_compiler_static_GCJ='-Bstatic'
17223      fi
17224      ;;
17225
17226    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17227      lt_prog_compiler_wl_GCJ='-Wl,'
17228      lt_prog_compiler_pic_GCJ='-KPIC'
17229      lt_prog_compiler_static_GCJ='-Bstatic'
17230      ;;
17231
17232    unicos*)
17233      lt_prog_compiler_wl_GCJ='-Wl,'
17234      lt_prog_compiler_can_build_shared_GCJ=no
17235      ;;
17236
17237    uts4*)
17238      lt_prog_compiler_pic_GCJ='-pic'
17239      lt_prog_compiler_static_GCJ='-Bstatic'
17240      ;;
17241
17242    *)
17243      lt_prog_compiler_can_build_shared_GCJ=no
17244      ;;
17245    esac
17246  fi
17247
17248{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17249$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17250
17251#
17252# Check to make sure the PIC flag actually works.
17253#
17254if test -n "$lt_prog_compiler_pic_GCJ"; then
17255
17256{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17257$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17258if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17259  $as_echo_n "(cached) " >&6
17260else
17261  lt_cv_prog_compiler_pic_works_GCJ=no
17262  ac_outfile=conftest.$ac_objext
17263   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17264   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17265   # Insert the option either (1) after the last *FLAGS variable, or
17266   # (2) before a word containing "conftest.", or (3) at the end.
17267   # Note that $ac_compile itself does not contain backslashes and begins
17268   # with a dollar sign (not a hyphen), so the echo should work correctly.
17269   # The option is referenced via a variable to avoid confusing sed.
17270   lt_compile=`echo "$ac_compile" | $SED \
17271   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17272   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17273   -e 's:$: $lt_compiler_flag:'`
17274   (eval echo "\"\$as_me:17274: $lt_compile\"" >&5)
17275   (eval "$lt_compile" 2>conftest.err)
17276   ac_status=$?
17277   cat conftest.err >&5
17278   echo "$as_me:17278: \$? = $ac_status" >&5
17279   if (exit $ac_status) && test -s "$ac_outfile"; then
17280     # The compiler can only warn and ignore the option if not recognized
17281     # So say no if there are warnings other than the usual output.
17282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17283     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17284     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17285       lt_cv_prog_compiler_pic_works_GCJ=yes
17286     fi
17287   fi
17288   $rm conftest*
17289
17290fi
17291{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17292$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17293
17294if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17295    case $lt_prog_compiler_pic_GCJ in
17296     "" | " "*) ;;
17297     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17298     esac
17299else
17300    lt_prog_compiler_pic_GCJ=
17301     lt_prog_compiler_can_build_shared_GCJ=no
17302fi
17303
17304fi
17305case $host_os in
17306  # For platforms which do not support PIC, -DPIC is meaningless:
17307  *djgpp*)
17308    lt_prog_compiler_pic_GCJ=
17309    ;;
17310  *)
17311    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17312    ;;
17313esac
17314
17315#
17316# Check to make sure the static flag actually works.
17317#
17318wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17319{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17320$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17321if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17322  $as_echo_n "(cached) " >&6
17323else
17324  lt_cv_prog_compiler_static_works_GCJ=no
17325   save_LDFLAGS="$LDFLAGS"
17326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17327   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17329     # The linker can only warn and ignore the option if not recognized
17330     # So say no if there are warnings
17331     if test -s conftest.err; then
17332       # Append any errors to the config.log.
17333       cat conftest.err 1>&5
17334       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17336       if diff conftest.exp conftest.er2 >/dev/null; then
17337         lt_cv_prog_compiler_static_works_GCJ=yes
17338       fi
17339     else
17340       lt_cv_prog_compiler_static_works_GCJ=yes
17341     fi
17342   fi
17343   $rm -r conftest*
17344   LDFLAGS="$save_LDFLAGS"
17345
17346fi
17347{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17348$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17349
17350if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17351    :
17352else
17353    lt_prog_compiler_static_GCJ=
17354fi
17355
17356
17357{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17359if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17360  $as_echo_n "(cached) " >&6
17361else
17362  lt_cv_prog_compiler_c_o_GCJ=no
17363   $rm -r conftest 2>/dev/null
17364   mkdir conftest
17365   cd conftest
17366   mkdir out
17367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17368
17369   lt_compiler_flag="-o out/conftest2.$ac_objext"
17370   # Insert the option either (1) after the last *FLAGS variable, or
17371   # (2) before a word containing "conftest.", or (3) at the end.
17372   # Note that $ac_compile itself does not contain backslashes and begins
17373   # with a dollar sign (not a hyphen), so the echo should work correctly.
17374   lt_compile=`echo "$ac_compile" | $SED \
17375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17377   -e 's:$: $lt_compiler_flag:'`
17378   (eval echo "\"\$as_me:17378: $lt_compile\"" >&5)
17379   (eval "$lt_compile" 2>out/conftest.err)
17380   ac_status=$?
17381   cat out/conftest.err >&5
17382   echo "$as_me:17382: \$? = $ac_status" >&5
17383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17384   then
17385     # The compiler can only warn and ignore the option if not recognized
17386     # So say no if there are warnings
17387     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17390       lt_cv_prog_compiler_c_o_GCJ=yes
17391     fi
17392   fi
17393   chmod u+w . 2>&5
17394   $rm conftest*
17395   # SGI C++ compiler will create directory out/ii_files/ for
17396   # template instantiation
17397   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17398   $rm out/* && rmdir out
17399   cd ..
17400   rmdir conftest
17401   $rm conftest*
17402
17403fi
17404{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17405$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17406
17407
17408hard_links="nottested"
17409if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17410  # do not overwrite the value of need_locks provided by the user
17411  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17412$as_echo_n "checking if we can lock with hard links... " >&6; }
17413  hard_links=yes
17414  $rm conftest*
17415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17416  touch conftest.a
17417  ln conftest.a conftest.b 2>&5 || hard_links=no
17418  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17419  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17420$as_echo "$hard_links" >&6; }
17421  if test "$hard_links" = no; then
17422    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17423$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17424    need_locks=warn
17425  fi
17426else
17427  need_locks=no
17428fi
17429
17430{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17432
17433  runpath_var=
17434  allow_undefined_flag_GCJ=
17435  enable_shared_with_static_runtimes_GCJ=no
17436  archive_cmds_GCJ=
17437  archive_expsym_cmds_GCJ=
17438  old_archive_From_new_cmds_GCJ=
17439  old_archive_from_expsyms_cmds_GCJ=
17440  export_dynamic_flag_spec_GCJ=
17441  whole_archive_flag_spec_GCJ=
17442  thread_safe_flag_spec_GCJ=
17443  hardcode_libdir_flag_spec_GCJ=
17444  hardcode_libdir_flag_spec_ld_GCJ=
17445  hardcode_libdir_separator_GCJ=
17446  hardcode_direct_GCJ=no
17447  hardcode_minus_L_GCJ=no
17448  hardcode_shlibpath_var_GCJ=unsupported
17449  link_all_deplibs_GCJ=unknown
17450  hardcode_automatic_GCJ=no
17451  module_cmds_GCJ=
17452  module_expsym_cmds_GCJ=
17453  always_export_symbols_GCJ=no
17454  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17455  # include_expsyms should be a list of space-separated symbols to be *always*
17456  # included in the symbol list
17457  include_expsyms_GCJ=
17458  # exclude_expsyms can be an extended regexp of symbols to exclude
17459  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17460  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17461  # as well as any symbol that contains `d'.
17462  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17463  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17464  # platforms (ab)use it in PIC code, but their linkers get confused if
17465  # the symbol is explicitly referenced.  Since portable code cannot
17466  # rely on this symbol name, it's probably fine to never include it in
17467  # preloaded symbol tables.
17468  # Exclude shared library initialization/finalization symbols.
17469  extract_expsyms_cmds=
17470  # Just being paranoid about ensuring that cc_basename is set.
17471  for cc_temp in $compiler""; do
17472  case $cc_temp in
17473    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17474    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17475    \-*) ;;
17476    *) break;;
17477  esac
17478done
17479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17480
17481  case $host_os in
17482  cygwin* | mingw* | pw32*)
17483    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17484    # When not using gcc, we currently assume that we are using
17485    # Microsoft Visual C++.
17486    if test "$GCC" != yes; then
17487      with_gnu_ld=no
17488    fi
17489    ;;
17490  interix*)
17491    # we just hope/assume this is gcc and not c89 (= MSVC++)
17492    with_gnu_ld=yes
17493    ;;
17494  openbsd*)
17495    with_gnu_ld=no
17496    ;;
17497  esac
17498
17499  ld_shlibs_GCJ=yes
17500  if test "$with_gnu_ld" = yes; then
17501    # If archive_cmds runs LD, not CC, wlarc should be empty
17502    wlarc='${wl}'
17503
17504    # Set some defaults for GNU ld with shared library support. These
17505    # are reset later if shared libraries are not supported. Putting them
17506    # here allows them to be overridden if necessary.
17507    runpath_var=LD_RUN_PATH
17508    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17509    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17510    # ancient GNU ld didn't support --whole-archive et. al.
17511    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17512	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17513      else
17514  	whole_archive_flag_spec_GCJ=
17515    fi
17516    supports_anon_versioning=no
17517    case `$LD -v 2>/dev/null` in
17518      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17519      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17520      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17521      *\ 2.11.*) ;; # other 2.11 versions
17522      *) supports_anon_versioning=yes ;;
17523    esac
17524
17525    # See if GNU ld supports shared libraries.
17526    case $host_os in
17527    aix[3-9]*)
17528      # On AIX/PPC, the GNU linker is very broken
17529      if test "$host_cpu" != ia64; then
17530	ld_shlibs_GCJ=no
17531	cat <<EOF 1>&2
17532
17533*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17534*** to be unable to reliably create shared libraries on AIX.
17535*** Therefore, libtool is disabling shared libraries support.  If you
17536*** really care for shared libraries, you may want to modify your PATH
17537*** so that a non-GNU linker is found, and then restart.
17538
17539EOF
17540      fi
17541      ;;
17542
17543    amigaos*)
17544      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)'
17545      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546      hardcode_minus_L_GCJ=yes
17547
17548      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17549      # that the semantics of dynamic libraries on AmigaOS, at least up
17550      # to version 4, is to share data among multiple programs linked
17551      # with the same dynamic library.  Since this doesn't match the
17552      # behavior of shared libraries on other platforms, we can't use
17553      # them.
17554      ld_shlibs_GCJ=no
17555      ;;
17556
17557    beos*)
17558      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17559	allow_undefined_flag_GCJ=unsupported
17560	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17561	# support --undefined.  This deserves some investigation.  FIXME
17562	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563      else
17564	ld_shlibs_GCJ=no
17565      fi
17566      ;;
17567
17568    cygwin* | mingw* | pw32*)
17569      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17570      # as there is no search path for DLLs.
17571      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17572      allow_undefined_flag_GCJ=unsupported
17573      always_export_symbols_GCJ=no
17574      enable_shared_with_static_runtimes_GCJ=yes
17575      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17576
17577      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17578        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17579	# If the export-symbols file already is a .def file (1st line
17580	# is EXPORTS), use it as is; otherwise, prepend...
17581	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17582	  cp $export_symbols $output_objdir/$soname.def;
17583	else
17584	  echo EXPORTS > $output_objdir/$soname.def;
17585	  cat $export_symbols >> $output_objdir/$soname.def;
17586	fi~
17587	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17588      else
17589	ld_shlibs_GCJ=no
17590      fi
17591      ;;
17592
17593    interix[3-9]*)
17594      hardcode_direct_GCJ=no
17595      hardcode_shlibpath_var_GCJ=no
17596      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17597      export_dynamic_flag_spec_GCJ='${wl}-E'
17598      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17599      # Instead, shared libraries are loaded at an image base (0x10000000 by
17600      # default) and relocated if they conflict, which is a slow very memory
17601      # consuming and fragmenting process.  To avoid this, we pick a random,
17602      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17603      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17604      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'
17605      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'
17606      ;;
17607
17608    gnu* | linux* | k*bsd*-gnu)
17609      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17610	tmp_addflag=
17611	case $cc_basename,$host_cpu in
17612	pgcc*)				# Portland Group C compiler
17613	  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'
17614	  tmp_addflag=' $pic_flag'
17615	  ;;
17616	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17617	  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'
17618	  tmp_addflag=' $pic_flag -Mnomain' ;;
17619	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17620	  tmp_addflag=' -i_dynamic' ;;
17621	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17622	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17623	ifc* | ifort*)			# Intel Fortran compiler
17624	  tmp_addflag=' -nofor_main' ;;
17625	esac
17626	case `$CC -V 2>&1 | sed 5q` in
17627	*Sun\ C*)			# Sun C 5.9
17628	  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'
17629	  tmp_sharedflag='-G' ;;
17630	*Sun\ F*)			# Sun Fortran 8.3
17631	  tmp_sharedflag='-G' ;;
17632	*)
17633	  tmp_sharedflag='-shared' ;;
17634	esac
17635	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17636
17637	if test $supports_anon_versioning = yes; then
17638	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17639  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17640  $echo "local: *; };" >> $output_objdir/$libname.ver~
17641	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17642	fi
17643      else
17644	ld_shlibs_GCJ=no
17645      fi
17646      ;;
17647
17648    netbsd*)
17649      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17650	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17651	wlarc=
17652      else
17653	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655      fi
17656      ;;
17657
17658    solaris*)
17659      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17660	ld_shlibs_GCJ=no
17661	cat <<EOF 1>&2
17662
17663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17664*** create shared libraries on Solaris systems.  Therefore, libtool
17665*** is disabling shared libraries support.  We urge you to upgrade GNU
17666*** binutils to release 2.9.1 or newer.  Another option is to modify
17667*** your PATH or compiler configuration so that the native linker is
17668*** used, and then restart.
17669
17670EOF
17671      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17672	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17674      else
17675	ld_shlibs_GCJ=no
17676      fi
17677      ;;
17678
17679    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17680      case `$LD -v 2>&1` in
17681        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17682	ld_shlibs_GCJ=no
17683	cat <<_LT_EOF 1>&2
17684
17685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17686*** reliably create shared libraries on SCO systems.  Therefore, libtool
17687*** is disabling shared libraries support.  We urge you to upgrade GNU
17688*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17689*** your PATH or compiler configuration so that the native linker is
17690*** used, and then restart.
17691
17692_LT_EOF
17693	;;
17694	*)
17695	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17696	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17697	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17698	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17699	  else
17700	    ld_shlibs_GCJ=no
17701	  fi
17702	;;
17703      esac
17704      ;;
17705
17706    sunos4*)
17707      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17708      wlarc=
17709      hardcode_direct_GCJ=yes
17710      hardcode_shlibpath_var_GCJ=no
17711      ;;
17712
17713    *)
17714      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17715	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17716	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17717      else
17718	ld_shlibs_GCJ=no
17719      fi
17720      ;;
17721    esac
17722
17723    if test "$ld_shlibs_GCJ" = no; then
17724      runpath_var=
17725      hardcode_libdir_flag_spec_GCJ=
17726      export_dynamic_flag_spec_GCJ=
17727      whole_archive_flag_spec_GCJ=
17728    fi
17729  else
17730    # PORTME fill in a description of your system's linker (not GNU ld)
17731    case $host_os in
17732    aix3*)
17733      allow_undefined_flag_GCJ=unsupported
17734      always_export_symbols_GCJ=yes
17735      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'
17736      # Note: this linker hardcodes the directories in LIBPATH if there
17737      # are no directories specified by -L.
17738      hardcode_minus_L_GCJ=yes
17739      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17740	# Neither direct hardcoding nor static linking is supported with a
17741	# broken collect2.
17742	hardcode_direct_GCJ=unsupported
17743      fi
17744      ;;
17745
17746    aix[4-9]*)
17747      if test "$host_cpu" = ia64; then
17748	# On IA64, the linker does run time linking by default, so we don't
17749	# have to do anything special.
17750	aix_use_runtimelinking=no
17751	exp_sym_flag='-Bexport'
17752	no_entry_flag=""
17753      else
17754	# If we're using GNU nm, then we don't want the "-C" option.
17755	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17756	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17757	  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'
17758	else
17759	  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'
17760	fi
17761	aix_use_runtimelinking=no
17762
17763	# Test if we are trying to use run time linking or normal
17764	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17765	# need to do runtime linking.
17766	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17767	  for ld_flag in $LDFLAGS; do
17768  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17769  	    aix_use_runtimelinking=yes
17770  	    break
17771  	  fi
17772	  done
17773	  ;;
17774	esac
17775
17776	exp_sym_flag='-bexport'
17777	no_entry_flag='-bnoentry'
17778      fi
17779
17780      # When large executables or shared objects are built, AIX ld can
17781      # have problems creating the table of contents.  If linking a library
17782      # or program results in "error TOC overflow" add -mminimal-toc to
17783      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17784      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17785
17786      archive_cmds_GCJ=''
17787      hardcode_direct_GCJ=yes
17788      hardcode_libdir_separator_GCJ=':'
17789      link_all_deplibs_GCJ=yes
17790
17791      if test "$GCC" = yes; then
17792	case $host_os in aix4.[012]|aix4.[012].*)
17793	# We only want to do this on AIX 4.2 and lower, the check
17794	# below for broken collect2 doesn't work under 4.3+
17795	  collect2name=`${CC} -print-prog-name=collect2`
17796	  if test -f "$collect2name" && \
17797  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17798	  then
17799  	  # We have reworked collect2
17800  	  :
17801	  else
17802  	  # We have old collect2
17803  	  hardcode_direct_GCJ=unsupported
17804  	  # It fails to find uninstalled libraries when the uninstalled
17805  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17806  	  # to unsupported forces relinking
17807  	  hardcode_minus_L_GCJ=yes
17808  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809  	  hardcode_libdir_separator_GCJ=
17810	  fi
17811	  ;;
17812	esac
17813	shared_flag='-shared'
17814	if test "$aix_use_runtimelinking" = yes; then
17815	  shared_flag="$shared_flag "'${wl}-G'
17816	fi
17817      else
17818	# not using gcc
17819	if test "$host_cpu" = ia64; then
17820  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17821  	# chokes on -Wl,-G. The following line is correct:
17822	  shared_flag='-G'
17823	else
17824	  if test "$aix_use_runtimelinking" = yes; then
17825	    shared_flag='${wl}-G'
17826	  else
17827	    shared_flag='${wl}-bM:SRE'
17828	  fi
17829	fi
17830      fi
17831
17832      # It seems that -bexpall does not export symbols beginning with
17833      # underscore (_), so it is better to generate a list of symbols to export.
17834      always_export_symbols_GCJ=yes
17835      if test "$aix_use_runtimelinking" = yes; then
17836	# Warning - without using the other runtime loading flags (-brtl),
17837	# -berok will link without error, but may produce a broken library.
17838	allow_undefined_flag_GCJ='-berok'
17839       # Determine the default libpath from the value encoded in an empty executable.
17840       cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h.  */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h.  */
17846
17847int
17848main ()
17849{
17850
17851  ;
17852  return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext conftest$ac_exeext
17856if { (ac_try="$ac_link"
17857case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17862$as_echo "$ac_try_echo") >&5
17863  (eval "$ac_link") 2>conftest.er1
17864  ac_status=$?
17865  grep -v '^ *+' conftest.er1 >conftest.err
17866  rm -f conftest.er1
17867  cat conftest.err >&5
17868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869  (exit $ac_status); } && {
17870	 test -z "$ac_c_werror_flag" ||
17871	 test ! -s conftest.err
17872       } && test -s conftest$ac_exeext && {
17873	 test "$cross_compiling" = yes ||
17874	 $as_test_x conftest$ac_exeext
17875       }; then
17876
17877lt_aix_libpath_sed='
17878    /Import File Strings/,/^$/ {
17879	/^0/ {
17880	    s/^0  *\(.*\)$/\1/
17881	    p
17882	}
17883    }'
17884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17885# Check for a 64-bit object if we didn't find anything.
17886if test -z "$aix_libpath"; then
17887  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888fi
17889else
17890  $as_echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893
17894fi
17895
17896rm -rf conftest.dSYM
17897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898      conftest$ac_exeext conftest.$ac_ext
17899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17900
17901       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17902	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"
17903       else
17904	if test "$host_cpu" = ia64; then
17905	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17906	  allow_undefined_flag_GCJ="-z nodefs"
17907	  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"
17908	else
17909	 # Determine the default libpath from the value encoded in an empty executable.
17910	 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h.  */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h.  */
17916
17917int
17918main ()
17919{
17920
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext conftest$ac_exeext
17926if { (ac_try="$ac_link"
17927case "(($ac_try" in
17928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929  *) ac_try_echo=$ac_try;;
17930esac
17931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17932$as_echo "$ac_try_echo") >&5
17933  (eval "$ac_link") 2>conftest.er1
17934  ac_status=$?
17935  grep -v '^ *+' conftest.er1 >conftest.err
17936  rm -f conftest.er1
17937  cat conftest.err >&5
17938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); } && {
17940	 test -z "$ac_c_werror_flag" ||
17941	 test ! -s conftest.err
17942       } && test -s conftest$ac_exeext && {
17943	 test "$cross_compiling" = yes ||
17944	 $as_test_x conftest$ac_exeext
17945       }; then
17946
17947lt_aix_libpath_sed='
17948    /Import File Strings/,/^$/ {
17949	/^0/ {
17950	    s/^0  *\(.*\)$/\1/
17951	    p
17952	}
17953    }'
17954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17955# Check for a 64-bit object if we didn't find anything.
17956if test -z "$aix_libpath"; then
17957  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958fi
17959else
17960  $as_echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963
17964fi
17965
17966rm -rf conftest.dSYM
17967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17968      conftest$ac_exeext conftest.$ac_ext
17969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17970
17971	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17972	  # Warning - without using the other run time loading flags,
17973	  # -berok will link without error, but may produce a broken library.
17974	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17975	  allow_undefined_flag_GCJ=' ${wl}-berok'
17976	  # Exported symbols can be pulled into shared objects from archives
17977	  whole_archive_flag_spec_GCJ='$convenience'
17978	  archive_cmds_need_lc_GCJ=yes
17979	  # This is similar to how AIX traditionally builds its shared libraries.
17980	  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'
17981	fi
17982      fi
17983      ;;
17984
17985    amigaos*)
17986      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)'
17987      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988      hardcode_minus_L_GCJ=yes
17989      # see comment about different semantics on the GNU ld section
17990      ld_shlibs_GCJ=no
17991      ;;
17992
17993    bsdi[45]*)
17994      export_dynamic_flag_spec_GCJ=-rdynamic
17995      ;;
17996
17997    cygwin* | mingw* | pw32*)
17998      # When not using gcc, we currently assume that we are using
17999      # Microsoft Visual C++.
18000      # hardcode_libdir_flag_spec is actually meaningless, as there is
18001      # no search path for DLLs.
18002      hardcode_libdir_flag_spec_GCJ=' '
18003      allow_undefined_flag_GCJ=unsupported
18004      # Tell ltmain to make .lib files, not .a files.
18005      libext=lib
18006      # Tell ltmain to make .dll files, not .so files.
18007      shrext_cmds=".dll"
18008      # FIXME: Setting linknames here is a bad hack.
18009      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18010      # The linker will automatically build a .lib file if we build a DLL.
18011      old_archive_From_new_cmds_GCJ='true'
18012      # FIXME: Should let the user specify the lib program.
18013      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18014      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18015      enable_shared_with_static_runtimes_GCJ=yes
18016      ;;
18017
18018    darwin* | rhapsody*)
18019      case $host_os in
18020        rhapsody* | darwin1.[012])
18021         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18022         ;;
18023       *) # Darwin 1.3 on
18024         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18025           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18026         else
18027           case ${MACOSX_DEPLOYMENT_TARGET} in
18028             10.[012])
18029               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18030               ;;
18031             10.*)
18032               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18033               ;;
18034           esac
18035         fi
18036         ;;
18037      esac
18038      archive_cmds_need_lc_GCJ=no
18039      hardcode_direct_GCJ=no
18040      hardcode_automatic_GCJ=yes
18041      hardcode_shlibpath_var_GCJ=unsupported
18042      whole_archive_flag_spec_GCJ=''
18043      link_all_deplibs_GCJ=yes
18044    if test "$GCC" = yes ; then
18045    	output_verbose_link_cmd='echo'
18046        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}"
18047        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18048        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}"
18049        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}"
18050    else
18051      case $cc_basename in
18052        xlc*)
18053         output_verbose_link_cmd='echo'
18054         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18055         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18056          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18057         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}'
18058          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}'
18059          ;;
18060       *)
18061         ld_shlibs_GCJ=no
18062          ;;
18063      esac
18064    fi
18065      ;;
18066
18067    dgux*)
18068      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070      hardcode_shlibpath_var_GCJ=no
18071      ;;
18072
18073    freebsd1*)
18074      ld_shlibs_GCJ=no
18075      ;;
18076
18077    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18078    # support.  Future versions do this automatically, but an explicit c++rt0.o
18079    # does not break anything, and helps significantly (at the cost of a little
18080    # extra space).
18081    freebsd2.2*)
18082      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18083      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18084      hardcode_direct_GCJ=yes
18085      hardcode_shlibpath_var_GCJ=no
18086      ;;
18087
18088    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18089    freebsd2*)
18090      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18091      hardcode_direct_GCJ=yes
18092      hardcode_minus_L_GCJ=yes
18093      hardcode_shlibpath_var_GCJ=no
18094      ;;
18095
18096    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18097    freebsd* | dragonfly*)
18098      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18099      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18100      hardcode_direct_GCJ=yes
18101      hardcode_shlibpath_var_GCJ=no
18102      ;;
18103
18104    hpux9*)
18105      if test "$GCC" = yes; then
18106	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'
18107      else
18108	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'
18109      fi
18110      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18111      hardcode_libdir_separator_GCJ=:
18112      hardcode_direct_GCJ=yes
18113
18114      # hardcode_minus_L: Not really in the search PATH,
18115      # but as the default location of the library.
18116      hardcode_minus_L_GCJ=yes
18117      export_dynamic_flag_spec_GCJ='${wl}-E'
18118      ;;
18119
18120    hpux10*)
18121      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18122	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18123      else
18124	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18125      fi
18126      if test "$with_gnu_ld" = no; then
18127	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18128	hardcode_libdir_separator_GCJ=:
18129
18130	hardcode_direct_GCJ=yes
18131	export_dynamic_flag_spec_GCJ='${wl}-E'
18132
18133	# hardcode_minus_L: Not really in the search PATH,
18134	# but as the default location of the library.
18135	hardcode_minus_L_GCJ=yes
18136      fi
18137      ;;
18138
18139    hpux11*)
18140      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18141	case $host_cpu in
18142	hppa*64*)
18143	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144	  ;;
18145	ia64*)
18146	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147	  ;;
18148	*)
18149	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150	  ;;
18151	esac
18152      else
18153	case $host_cpu in
18154	hppa*64*)
18155	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18156	  ;;
18157	ia64*)
18158	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18159	  ;;
18160	*)
18161	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18162	  ;;
18163	esac
18164      fi
18165      if test "$with_gnu_ld" = no; then
18166	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18167	hardcode_libdir_separator_GCJ=:
18168
18169	case $host_cpu in
18170	hppa*64*|ia64*)
18171	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18172	  hardcode_direct_GCJ=no
18173	  hardcode_shlibpath_var_GCJ=no
18174	  ;;
18175	*)
18176	  hardcode_direct_GCJ=yes
18177	  export_dynamic_flag_spec_GCJ='${wl}-E'
18178
18179	  # hardcode_minus_L: Not really in the search PATH,
18180	  # but as the default location of the library.
18181	  hardcode_minus_L_GCJ=yes
18182	  ;;
18183	esac
18184      fi
18185      ;;
18186
18187    irix5* | irix6* | nonstopux*)
18188      if test "$GCC" = yes; then
18189	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'
18190      else
18191	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'
18192	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18193      fi
18194      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18195      hardcode_libdir_separator_GCJ=:
18196      link_all_deplibs_GCJ=yes
18197      ;;
18198
18199    netbsd*)
18200      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18201	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18202      else
18203	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18204      fi
18205      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18206      hardcode_direct_GCJ=yes
18207      hardcode_shlibpath_var_GCJ=no
18208      ;;
18209
18210    newsos6)
18211      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18212      hardcode_direct_GCJ=yes
18213      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18214      hardcode_libdir_separator_GCJ=:
18215      hardcode_shlibpath_var_GCJ=no
18216      ;;
18217
18218    openbsd*)
18219      if test -f /usr/libexec/ld.so; then
18220	hardcode_direct_GCJ=yes
18221	hardcode_shlibpath_var_GCJ=no
18222	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18223	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18224	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18225	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18226	  export_dynamic_flag_spec_GCJ='${wl}-E'
18227	else
18228	  case $host_os in
18229	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18230	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18231	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18232	     ;;
18233	   *)
18234	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18235	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18236	     ;;
18237	  esac
18238        fi
18239      else
18240	ld_shlibs_GCJ=no
18241      fi
18242      ;;
18243
18244    os2*)
18245      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18246      hardcode_minus_L_GCJ=yes
18247      allow_undefined_flag_GCJ=unsupported
18248      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'
18249      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18250      ;;
18251
18252    osf3*)
18253      if test "$GCC" = yes; then
18254	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255	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'
18256      else
18257	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18258	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'
18259      fi
18260      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18261      hardcode_libdir_separator_GCJ=:
18262      ;;
18263
18264    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18265      if test "$GCC" = yes; then
18266	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18267	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'
18268	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269      else
18270	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18271	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'
18272	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~
18273	$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'
18274
18275	# Both c and cxx compiler support -rpath directly
18276	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18277      fi
18278      hardcode_libdir_separator_GCJ=:
18279      ;;
18280
18281    solaris*)
18282      no_undefined_flag_GCJ=' -z text'
18283      if test "$GCC" = yes; then
18284	wlarc='${wl}'
18285	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18286	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18287	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18288      else
18289	wlarc=''
18290	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18291	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18292  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18293      fi
18294      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18295      hardcode_shlibpath_var_GCJ=no
18296      case $host_os in
18297      solaris2.[0-5] | solaris2.[0-5].*) ;;
18298      *)
18299	# The compiler driver will combine and reorder linker options,
18300	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18301	# but is careful enough not to reorder.
18302 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18303	if test "$GCC" = yes; then
18304	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18305	else
18306	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18307	fi
18308	;;
18309      esac
18310      link_all_deplibs_GCJ=yes
18311      ;;
18312
18313    sunos4*)
18314      if test "x$host_vendor" = xsequent; then
18315	# Use $CC to link under sequent, because it throws in some extra .o
18316	# files that make .init and .fini sections work.
18317	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18318      else
18319	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18320      fi
18321      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18322      hardcode_direct_GCJ=yes
18323      hardcode_minus_L_GCJ=yes
18324      hardcode_shlibpath_var_GCJ=no
18325      ;;
18326
18327    sysv4)
18328      case $host_vendor in
18329	sni)
18330	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331	  hardcode_direct_GCJ=yes # is this really true???
18332	;;
18333	siemens)
18334	  ## LD is ld it makes a PLAMLIB
18335	  ## CC just makes a GrossModule.
18336	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18337	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18338	  hardcode_direct_GCJ=no
18339        ;;
18340	motorola)
18341	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18343	;;
18344      esac
18345      runpath_var='LD_RUN_PATH'
18346      hardcode_shlibpath_var_GCJ=no
18347      ;;
18348
18349    sysv4.3*)
18350      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351      hardcode_shlibpath_var_GCJ=no
18352      export_dynamic_flag_spec_GCJ='-Bexport'
18353      ;;
18354
18355    sysv4*MP*)
18356      if test -d /usr/nec; then
18357	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358	hardcode_shlibpath_var_GCJ=no
18359	runpath_var=LD_RUN_PATH
18360	hardcode_runpath_var=yes
18361	ld_shlibs_GCJ=yes
18362      fi
18363      ;;
18364
18365    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18366      no_undefined_flag_GCJ='${wl}-z,text'
18367      archive_cmds_need_lc_GCJ=no
18368      hardcode_shlibpath_var_GCJ=no
18369      runpath_var='LD_RUN_PATH'
18370
18371      if test "$GCC" = yes; then
18372	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18373	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18374      else
18375	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377      fi
18378      ;;
18379
18380    sysv5* | sco3.2v5* | sco5v6*)
18381      # Note: We can NOT use -z defs as we might desire, because we do not
18382      # link with -lc, and that would cause any symbols used from libc to
18383      # always be unresolved, which means just about no library would
18384      # ever link correctly.  If we're not using GNU ld we use -z text
18385      # though, which does catch some bad symbols but isn't as heavy-handed
18386      # as -z defs.
18387      no_undefined_flag_GCJ='${wl}-z,text'
18388      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18389      archive_cmds_need_lc_GCJ=no
18390      hardcode_shlibpath_var_GCJ=no
18391      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18392      hardcode_libdir_separator_GCJ=':'
18393      link_all_deplibs_GCJ=yes
18394      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18395      runpath_var='LD_RUN_PATH'
18396
18397      if test "$GCC" = yes; then
18398	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18399	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18400      else
18401	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403      fi
18404      ;;
18405
18406    uts4*)
18407      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18409      hardcode_shlibpath_var_GCJ=no
18410      ;;
18411
18412    *)
18413      ld_shlibs_GCJ=no
18414      ;;
18415    esac
18416  fi
18417
18418{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18419$as_echo "$ld_shlibs_GCJ" >&6; }
18420test "$ld_shlibs_GCJ" = no && can_build_shared=no
18421
18422#
18423# Do we need to explicitly link libc?
18424#
18425case "x$archive_cmds_need_lc_GCJ" in
18426x|xyes)
18427  # Assume -lc should be added
18428  archive_cmds_need_lc_GCJ=yes
18429
18430  if test "$enable_shared" = yes && test "$GCC" = yes; then
18431    case $archive_cmds_GCJ in
18432    *'~'*)
18433      # FIXME: we may have to deal with multi-command sequences.
18434      ;;
18435    '$CC '*)
18436      # Test whether the compiler implicitly links with -lc since on some
18437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18438      # to ld, don't add -lc before -lgcc.
18439      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18440$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18441      $rm conftest*
18442      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18443
18444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445  (eval $ac_compile) 2>&5
18446  ac_status=$?
18447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448  (exit $ac_status); } 2>conftest.err; then
18449        soname=conftest
18450        lib=conftest
18451        libobjs=conftest.$ac_objext
18452        deplibs=
18453        wl=$lt_prog_compiler_wl_GCJ
18454	pic_flag=$lt_prog_compiler_pic_GCJ
18455        compiler_flags=-v
18456        linker_flags=-v
18457        verstring=
18458        output_objdir=.
18459        libname=conftest
18460        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18461        allow_undefined_flag_GCJ=
18462        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18463  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18464  ac_status=$?
18465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466  (exit $ac_status); }
18467        then
18468	  archive_cmds_need_lc_GCJ=no
18469        else
18470	  archive_cmds_need_lc_GCJ=yes
18471        fi
18472        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18473      else
18474        cat conftest.err 1>&5
18475      fi
18476      $rm conftest*
18477      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18478$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18479      ;;
18480    esac
18481  fi
18482  ;;
18483esac
18484
18485{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18486$as_echo_n "checking dynamic linker characteristics... " >&6; }
18487library_names_spec=
18488libname_spec='lib$name'
18489soname_spec=
18490shrext_cmds=".so"
18491postinstall_cmds=
18492postuninstall_cmds=
18493finish_cmds=
18494finish_eval=
18495shlibpath_var=
18496shlibpath_overrides_runpath=unknown
18497version_type=none
18498dynamic_linker="$host_os ld.so"
18499sys_lib_dlsearch_path_spec="/lib /usr/lib"
18500
18501need_lib_prefix=unknown
18502hardcode_into_libs=no
18503
18504# when you set need_version to no, make sure it does not cause -set_version
18505# flags to be left without arguments
18506need_version=unknown
18507
18508case $host_os in
18509aix3*)
18510  version_type=linux
18511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18512  shlibpath_var=LIBPATH
18513
18514  # AIX 3 has no versioning support, so we append a major version to the name.
18515  soname_spec='${libname}${release}${shared_ext}$major'
18516  ;;
18517
18518aix[4-9]*)
18519  version_type=linux
18520  need_lib_prefix=no
18521  need_version=no
18522  hardcode_into_libs=yes
18523  if test "$host_cpu" = ia64; then
18524    # AIX 5 supports IA64
18525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18526    shlibpath_var=LD_LIBRARY_PATH
18527  else
18528    # With GCC up to 2.95.x, collect2 would create an import file
18529    # for dependence libraries.  The import file would start with
18530    # the line `#! .'.  This would cause the generated library to
18531    # depend on `.', always an invalid library.  This was fixed in
18532    # development snapshots of GCC prior to 3.0.
18533    case $host_os in
18534      aix4 | aix4.[01] | aix4.[01].*)
18535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18536	   echo ' yes '
18537	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18538	:
18539      else
18540	can_build_shared=no
18541      fi
18542      ;;
18543    esac
18544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18545    # soname into executable. Probably we can add versioning support to
18546    # collect2, so additional links can be useful in future.
18547    if test "$aix_use_runtimelinking" = yes; then
18548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18549      # instead of lib<name>.a to let people know that these are not
18550      # typical AIX shared libraries.
18551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552    else
18553      # We preserve .a as extension for shared libraries through AIX4.2
18554      # and later when we are not doing run time linking.
18555      library_names_spec='${libname}${release}.a $libname.a'
18556      soname_spec='${libname}${release}${shared_ext}$major'
18557    fi
18558    shlibpath_var=LIBPATH
18559  fi
18560  ;;
18561
18562amigaos*)
18563  library_names_spec='$libname.ixlibrary $libname.a'
18564  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18565  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'
18566  ;;
18567
18568beos*)
18569  library_names_spec='${libname}${shared_ext}'
18570  dynamic_linker="$host_os ld.so"
18571  shlibpath_var=LIBRARY_PATH
18572  ;;
18573
18574bsdi[45]*)
18575  version_type=linux
18576  need_version=no
18577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578  soname_spec='${libname}${release}${shared_ext}$major'
18579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18580  shlibpath_var=LD_LIBRARY_PATH
18581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18583  # the default ld.so.conf also contains /usr/contrib/lib and
18584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18585  # libtool to hard-code these into programs
18586  ;;
18587
18588cygwin* | mingw* | pw32*)
18589  version_type=windows
18590  shrext_cmds=".dll"
18591  need_version=no
18592  need_lib_prefix=no
18593
18594  case $GCC,$host_os in
18595  yes,cygwin* | yes,mingw* | yes,pw32*)
18596    library_names_spec='$libname.dll.a'
18597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18598    postinstall_cmds='base_file=`basename \${file}`~
18599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18600      dldir=$destdir/`dirname \$dlpath`~
18601      test -d \$dldir || mkdir -p \$dldir~
18602      $install_prog $dir/$dlname \$dldir/$dlname~
18603      chmod a+x \$dldir/$dlname'
18604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18605      dlpath=$dir/\$dldll~
18606       $rm \$dlpath'
18607    shlibpath_overrides_runpath=yes
18608
18609    case $host_os in
18610    cygwin*)
18611      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18612      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18613      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18614      ;;
18615    mingw*)
18616      # MinGW DLLs use traditional 'lib' prefix
18617      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18618      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18619      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18620        # It is most probably a Windows format PATH printed by
18621        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18622        # path with ; separators, and with drive letters. We can handle the
18623        # drive letters (cygwin fileutils understands them), so leave them,
18624        # especially as we might pass files found there to a mingw objdump,
18625        # which wouldn't understand a cygwinified path. Ahh.
18626        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18627      else
18628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18629      fi
18630      ;;
18631    pw32*)
18632      # pw32 DLLs use 'pw' prefix rather than 'lib'
18633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18634      ;;
18635    esac
18636    ;;
18637
18638  *)
18639    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18640    ;;
18641  esac
18642  dynamic_linker='Win32 ld.exe'
18643  # FIXME: first we should search . and the directory the executable is in
18644  shlibpath_var=PATH
18645  ;;
18646
18647darwin* | rhapsody*)
18648  dynamic_linker="$host_os dyld"
18649  version_type=darwin
18650  need_lib_prefix=no
18651  need_version=no
18652  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18653  soname_spec='${libname}${release}${major}$shared_ext'
18654  shlibpath_overrides_runpath=yes
18655  shlibpath_var=DYLD_LIBRARY_PATH
18656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18657
18658  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18659  ;;
18660
18661dgux*)
18662  version_type=linux
18663  need_lib_prefix=no
18664  need_version=no
18665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18666  soname_spec='${libname}${release}${shared_ext}$major'
18667  shlibpath_var=LD_LIBRARY_PATH
18668  ;;
18669
18670freebsd1*)
18671  dynamic_linker=no
18672  ;;
18673
18674freebsd* | dragonfly*)
18675  # DragonFly does not have aout.  When/if they implement a new
18676  # versioning mechanism, adjust this.
18677  if test -x /usr/bin/objformat; then
18678    objformat=`/usr/bin/objformat`
18679  else
18680    case $host_os in
18681    freebsd[123]*) objformat=aout ;;
18682    *) objformat=elf ;;
18683    esac
18684  fi
18685  version_type=freebsd-$objformat
18686  case $version_type in
18687    freebsd-elf*)
18688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18689      need_version=no
18690      need_lib_prefix=no
18691      ;;
18692    freebsd-*)
18693      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18694      need_version=yes
18695      ;;
18696  esac
18697  shlibpath_var=LD_LIBRARY_PATH
18698  case $host_os in
18699  freebsd2*)
18700    shlibpath_overrides_runpath=yes
18701    ;;
18702  freebsd3.[01]* | freebsdelf3.[01]*)
18703    shlibpath_overrides_runpath=yes
18704    hardcode_into_libs=yes
18705    ;;
18706  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18707  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18708    shlibpath_overrides_runpath=no
18709    hardcode_into_libs=yes
18710    ;;
18711  *) # from 4.6 on, and DragonFly
18712    shlibpath_overrides_runpath=yes
18713    hardcode_into_libs=yes
18714    ;;
18715  esac
18716  ;;
18717
18718gnu*)
18719  version_type=linux
18720  need_lib_prefix=no
18721  need_version=no
18722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18723  soname_spec='${libname}${release}${shared_ext}$major'
18724  shlibpath_var=LD_LIBRARY_PATH
18725  hardcode_into_libs=yes
18726  ;;
18727
18728hpux9* | hpux10* | hpux11*)
18729  # Give a soname corresponding to the major version so that dld.sl refuses to
18730  # link against other versions.
18731  version_type=sunos
18732  need_lib_prefix=no
18733  need_version=no
18734  case $host_cpu in
18735  ia64*)
18736    shrext_cmds='.so'
18737    hardcode_into_libs=yes
18738    dynamic_linker="$host_os dld.so"
18739    shlibpath_var=LD_LIBRARY_PATH
18740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742    soname_spec='${libname}${release}${shared_ext}$major'
18743    if test "X$HPUX_IA64_MODE" = X32; then
18744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18745    else
18746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18747    fi
18748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18749    ;;
18750   hppa*64*)
18751     shrext_cmds='.sl'
18752     hardcode_into_libs=yes
18753     dynamic_linker="$host_os dld.sl"
18754     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757     soname_spec='${libname}${release}${shared_ext}$major'
18758     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18760     ;;
18761   *)
18762    shrext_cmds='.sl'
18763    dynamic_linker="$host_os dld.sl"
18764    shlibpath_var=SHLIB_PATH
18765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767    soname_spec='${libname}${release}${shared_ext}$major'
18768    ;;
18769  esac
18770  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18771  postinstall_cmds='chmod 555 $lib'
18772  ;;
18773
18774interix[3-9]*)
18775  version_type=linux
18776  need_lib_prefix=no
18777  need_version=no
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779  soname_spec='${libname}${release}${shared_ext}$major'
18780  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18781  shlibpath_var=LD_LIBRARY_PATH
18782  shlibpath_overrides_runpath=no
18783  hardcode_into_libs=yes
18784  ;;
18785
18786irix5* | irix6* | nonstopux*)
18787  case $host_os in
18788    nonstopux*) version_type=nonstopux ;;
18789    *)
18790	if test "$lt_cv_prog_gnu_ld" = yes; then
18791		version_type=linux
18792	else
18793		version_type=irix
18794	fi ;;
18795  esac
18796  need_lib_prefix=no
18797  need_version=no
18798  soname_spec='${libname}${release}${shared_ext}$major'
18799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18800  case $host_os in
18801  irix5* | nonstopux*)
18802    libsuff= shlibsuff=
18803    ;;
18804  *)
18805    case $LD in # libtool.m4 will add one of these switches to LD
18806    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18807      libsuff= shlibsuff= libmagic=32-bit;;
18808    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18809      libsuff=32 shlibsuff=N32 libmagic=N32;;
18810    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18811      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18812    *) libsuff= shlibsuff= libmagic=never-match;;
18813    esac
18814    ;;
18815  esac
18816  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18817  shlibpath_overrides_runpath=no
18818  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18819  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18820  hardcode_into_libs=yes
18821  ;;
18822
18823# No shared lib support for Linux oldld, aout, or coff.
18824linux*oldld* | linux*aout* | linux*coff*)
18825  dynamic_linker=no
18826  ;;
18827
18828# This must be Linux ELF.
18829linux* | k*bsd*-gnu)
18830  version_type=linux
18831  need_lib_prefix=no
18832  need_version=no
18833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834  soname_spec='${libname}${release}${shared_ext}$major'
18835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18836  shlibpath_var=LD_LIBRARY_PATH
18837  shlibpath_overrides_runpath=no
18838  # This implies no fast_install, which is unacceptable.
18839  # Some rework will be needed to allow for fast_install
18840  # before this can be enabled.
18841  hardcode_into_libs=yes
18842  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18843  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18844
18845  # Append ld.so.conf contents to the search path
18846  if test -f /etc/ld.so.conf; then
18847    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' ' '`
18848    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18849  fi
18850
18851  # We used to test for /lib/ld.so.1 and disable shared libraries on
18852  # powerpc, because MkLinux only supported shared libraries with the
18853  # GNU dynamic linker.  Since this was broken with cross compilers,
18854  # most powerpc-linux boxes support dynamic linking these days and
18855  # people can always --disable-shared, the test was removed, and we
18856  # assume the GNU/Linux dynamic linker is in use.
18857  dynamic_linker='GNU/Linux ld.so'
18858  ;;
18859
18860netbsd*)
18861  version_type=sunos
18862  need_lib_prefix=no
18863  need_version=no
18864  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18866    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18867    dynamic_linker='NetBSD (a.out) ld.so'
18868  else
18869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870    soname_spec='${libname}${release}${shared_ext}$major'
18871    dynamic_linker='NetBSD ld.elf_so'
18872  fi
18873  shlibpath_var=LD_LIBRARY_PATH
18874  shlibpath_overrides_runpath=yes
18875  hardcode_into_libs=yes
18876  ;;
18877
18878newsos6)
18879  version_type=linux
18880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881  shlibpath_var=LD_LIBRARY_PATH
18882  shlibpath_overrides_runpath=yes
18883  ;;
18884
18885nto-qnx*)
18886  version_type=linux
18887  need_lib_prefix=no
18888  need_version=no
18889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890  soname_spec='${libname}${release}${shared_ext}$major'
18891  shlibpath_var=LD_LIBRARY_PATH
18892  shlibpath_overrides_runpath=yes
18893  ;;
18894
18895openbsd*)
18896  version_type=sunos
18897  sys_lib_dlsearch_path_spec="/usr/lib"
18898  need_lib_prefix=no
18899  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18900  case $host_os in
18901    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18902    *)                         need_version=no  ;;
18903  esac
18904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906  shlibpath_var=LD_LIBRARY_PATH
18907  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18908    case $host_os in
18909      openbsd2.[89] | openbsd2.[89].*)
18910	shlibpath_overrides_runpath=no
18911	;;
18912      *)
18913	shlibpath_overrides_runpath=yes
18914	;;
18915      esac
18916  else
18917    shlibpath_overrides_runpath=yes
18918  fi
18919  ;;
18920
18921os2*)
18922  libname_spec='$name'
18923  shrext_cmds=".dll"
18924  need_lib_prefix=no
18925  library_names_spec='$libname${shared_ext} $libname.a'
18926  dynamic_linker='OS/2 ld.exe'
18927  shlibpath_var=LIBPATH
18928  ;;
18929
18930osf3* | osf4* | osf5*)
18931  version_type=osf
18932  need_lib_prefix=no
18933  need_version=no
18934  soname_spec='${libname}${release}${shared_ext}$major'
18935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936  shlibpath_var=LD_LIBRARY_PATH
18937  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18938  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18939  ;;
18940
18941rdos*)
18942  dynamic_linker=no
18943  ;;
18944
18945solaris*)
18946  version_type=linux
18947  need_lib_prefix=no
18948  need_version=no
18949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950  soname_spec='${libname}${release}${shared_ext}$major'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  shlibpath_overrides_runpath=yes
18953  hardcode_into_libs=yes
18954  # ldd complains unless libraries are executable
18955  postinstall_cmds='chmod +x $lib'
18956  ;;
18957
18958sunos4*)
18959  version_type=sunos
18960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18961  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18962  shlibpath_var=LD_LIBRARY_PATH
18963  shlibpath_overrides_runpath=yes
18964  if test "$with_gnu_ld" = yes; then
18965    need_lib_prefix=no
18966  fi
18967  need_version=yes
18968  ;;
18969
18970sysv4 | sysv4.3*)
18971  version_type=linux
18972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973  soname_spec='${libname}${release}${shared_ext}$major'
18974  shlibpath_var=LD_LIBRARY_PATH
18975  case $host_vendor in
18976    sni)
18977      shlibpath_overrides_runpath=no
18978      need_lib_prefix=no
18979      export_dynamic_flag_spec='${wl}-Blargedynsym'
18980      runpath_var=LD_RUN_PATH
18981      ;;
18982    siemens)
18983      need_lib_prefix=no
18984      ;;
18985    motorola)
18986      need_lib_prefix=no
18987      need_version=no
18988      shlibpath_overrides_runpath=no
18989      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18990      ;;
18991  esac
18992  ;;
18993
18994sysv4*MP*)
18995  if test -d /usr/nec ;then
18996    version_type=linux
18997    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18998    soname_spec='$libname${shared_ext}.$major'
18999    shlibpath_var=LD_LIBRARY_PATH
19000  fi
19001  ;;
19002
19003sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19004  version_type=freebsd-elf
19005  need_lib_prefix=no
19006  need_version=no
19007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19008  soname_spec='${libname}${release}${shared_ext}$major'
19009  shlibpath_var=LD_LIBRARY_PATH
19010  hardcode_into_libs=yes
19011  if test "$with_gnu_ld" = yes; then
19012    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19013    shlibpath_overrides_runpath=no
19014  else
19015    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19016    shlibpath_overrides_runpath=yes
19017    case $host_os in
19018      sco3.2v5*)
19019        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19020	;;
19021    esac
19022  fi
19023  sys_lib_dlsearch_path_spec='/usr/lib'
19024  ;;
19025
19026uts4*)
19027  version_type=linux
19028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029  soname_spec='${libname}${release}${shared_ext}$major'
19030  shlibpath_var=LD_LIBRARY_PATH
19031  ;;
19032
19033*)
19034  dynamic_linker=no
19035  ;;
19036esac
19037{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19038$as_echo "$dynamic_linker" >&6; }
19039test "$dynamic_linker" = no && can_build_shared=no
19040
19041if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19042  $as_echo_n "(cached) " >&6
19043else
19044  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19045fi
19046
19047sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19048if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19049  $as_echo_n "(cached) " >&6
19050else
19051  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19052fi
19053
19054sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19055
19056variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19057if test "$GCC" = yes; then
19058  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19059fi
19060
19061{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19062$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19063hardcode_action_GCJ=
19064if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19065   test -n "$runpath_var_GCJ" || \
19066   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19067
19068  # We can hardcode non-existant directories.
19069  if test "$hardcode_direct_GCJ" != no &&
19070     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19071     # have to relink, otherwise we might link with an installed library
19072     # when we should be linking with a yet-to-be-installed one
19073     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19074     test "$hardcode_minus_L_GCJ" != no; then
19075    # Linking always hardcodes the temporary library directory.
19076    hardcode_action_GCJ=relink
19077  else
19078    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19079    hardcode_action_GCJ=immediate
19080  fi
19081else
19082  # We cannot hardcode anything, or else we can only hardcode existing
19083  # directories.
19084  hardcode_action_GCJ=unsupported
19085fi
19086{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19087$as_echo "$hardcode_action_GCJ" >&6; }
19088
19089if test "$hardcode_action_GCJ" = relink; then
19090  # Fast installation is not supported
19091  enable_fast_install=no
19092elif test "$shlibpath_overrides_runpath" = yes ||
19093     test "$enable_shared" = no; then
19094  # Fast installation is not necessary
19095  enable_fast_install=needless
19096fi
19097
19098
19099# The else clause should only fire when bootstrapping the
19100# libtool distribution, otherwise you forgot to ship ltmain.sh
19101# with your package, and you will get complaints that there are
19102# no rules to generate ltmain.sh.
19103if test -f "$ltmain"; then
19104  # See if we are running on zsh, and set the options which allow our commands through
19105  # without removal of \ escapes.
19106  if test -n "${ZSH_VERSION+set}" ; then
19107    setopt NO_GLOB_SUBST
19108  fi
19109  # Now quote all the things that may contain metacharacters while being
19110  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19111  # variables and quote the copies for generation of the libtool script.
19112  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19113    SED SHELL STRIP \
19114    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19115    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19116    deplibs_check_method reload_flag reload_cmds need_locks \
19117    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19118    lt_cv_sys_global_symbol_to_c_name_address \
19119    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19120    old_postinstall_cmds old_postuninstall_cmds \
19121    compiler_GCJ \
19122    CC_GCJ \
19123    LD_GCJ \
19124    lt_prog_compiler_wl_GCJ \
19125    lt_prog_compiler_pic_GCJ \
19126    lt_prog_compiler_static_GCJ \
19127    lt_prog_compiler_no_builtin_flag_GCJ \
19128    export_dynamic_flag_spec_GCJ \
19129    thread_safe_flag_spec_GCJ \
19130    whole_archive_flag_spec_GCJ \
19131    enable_shared_with_static_runtimes_GCJ \
19132    old_archive_cmds_GCJ \
19133    old_archive_from_new_cmds_GCJ \
19134    predep_objects_GCJ \
19135    postdep_objects_GCJ \
19136    predeps_GCJ \
19137    postdeps_GCJ \
19138    compiler_lib_search_path_GCJ \
19139    compiler_lib_search_dirs_GCJ \
19140    archive_cmds_GCJ \
19141    archive_expsym_cmds_GCJ \
19142    postinstall_cmds_GCJ \
19143    postuninstall_cmds_GCJ \
19144    old_archive_from_expsyms_cmds_GCJ \
19145    allow_undefined_flag_GCJ \
19146    no_undefined_flag_GCJ \
19147    export_symbols_cmds_GCJ \
19148    hardcode_libdir_flag_spec_GCJ \
19149    hardcode_libdir_flag_spec_ld_GCJ \
19150    hardcode_libdir_separator_GCJ \
19151    hardcode_automatic_GCJ \
19152    module_cmds_GCJ \
19153    module_expsym_cmds_GCJ \
19154    lt_cv_prog_compiler_c_o_GCJ \
19155    fix_srcfile_path_GCJ \
19156    exclude_expsyms_GCJ \
19157    include_expsyms_GCJ; do
19158
19159    case $var in
19160    old_archive_cmds_GCJ | \
19161    old_archive_from_new_cmds_GCJ | \
19162    archive_cmds_GCJ | \
19163    archive_expsym_cmds_GCJ | \
19164    module_cmds_GCJ | \
19165    module_expsym_cmds_GCJ | \
19166    old_archive_from_expsyms_cmds_GCJ | \
19167    export_symbols_cmds_GCJ | \
19168    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19169    postinstall_cmds | postuninstall_cmds | \
19170    old_postinstall_cmds | old_postuninstall_cmds | \
19171    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19172      # Double-quote double-evaled strings.
19173      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19174      ;;
19175    *)
19176      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19177      ;;
19178    esac
19179  done
19180
19181  case $lt_echo in
19182  *'\$0 --fallback-echo"')
19183    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19184    ;;
19185  esac
19186
19187cfgfile="$ofile"
19188
19189  cat <<__EOF__ >> "$cfgfile"
19190# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19191
19192# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19193
19194# Shell to use when invoking shell scripts.
19195SHELL=$lt_SHELL
19196
19197# Whether or not to build shared libraries.
19198build_libtool_libs=$enable_shared
19199
19200# Whether or not to build static libraries.
19201build_old_libs=$enable_static
19202
19203# Whether or not to add -lc for building shared libraries.
19204build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19205
19206# Whether or not to disallow shared libs when runtime libs are static
19207allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19208
19209# Whether or not to optimize for fast installation.
19210fast_install=$enable_fast_install
19211
19212# The host system.
19213host_alias=$host_alias
19214host=$host
19215host_os=$host_os
19216
19217# The build system.
19218build_alias=$build_alias
19219build=$build
19220build_os=$build_os
19221
19222# An echo program that does not interpret backslashes.
19223echo=$lt_echo
19224
19225# The archiver.
19226AR=$lt_AR
19227AR_FLAGS=$lt_AR_FLAGS
19228
19229# A C compiler.
19230LTCC=$lt_LTCC
19231
19232# LTCC compiler flags.
19233LTCFLAGS=$lt_LTCFLAGS
19234
19235# A language-specific compiler.
19236CC=$lt_compiler_GCJ
19237
19238# Is the compiler the GNU C compiler?
19239with_gcc=$GCC_GCJ
19240
19241# An ERE matcher.
19242EGREP=$lt_EGREP
19243
19244# The linker used to build libraries.
19245LD=$lt_LD_GCJ
19246
19247# Whether we need hard or soft links.
19248LN_S=$lt_LN_S
19249
19250# A BSD-compatible nm program.
19251NM=$lt_NM
19252
19253# A symbol stripping program
19254STRIP=$lt_STRIP
19255
19256# Used to examine libraries when file_magic_cmd begins "file"
19257MAGIC_CMD=$MAGIC_CMD
19258
19259# Used on cygwin: DLL creation program.
19260DLLTOOL="$DLLTOOL"
19261
19262# Used on cygwin: object dumper.
19263OBJDUMP="$OBJDUMP"
19264
19265# Used on cygwin: assembler.
19266AS="$AS"
19267
19268# The name of the directory that contains temporary libtool files.
19269objdir=$objdir
19270
19271# How to create reloadable object files.
19272reload_flag=$lt_reload_flag
19273reload_cmds=$lt_reload_cmds
19274
19275# How to pass a linker flag through the compiler.
19276wl=$lt_lt_prog_compiler_wl_GCJ
19277
19278# Object file suffix (normally "o").
19279objext="$ac_objext"
19280
19281# Old archive suffix (normally "a").
19282libext="$libext"
19283
19284# Shared library suffix (normally ".so").
19285shrext_cmds='$shrext_cmds'
19286
19287# Executable file suffix (normally "").
19288exeext="$exeext"
19289
19290# Additional compiler flags for building library objects.
19291pic_flag=$lt_lt_prog_compiler_pic_GCJ
19292pic_mode=$pic_mode
19293
19294# What is the maximum length of a command?
19295max_cmd_len=$lt_cv_sys_max_cmd_len
19296
19297# Does compiler simultaneously support -c and -o options?
19298compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19299
19300# Must we lock files when doing compilation?
19301need_locks=$lt_need_locks
19302
19303# Do we need the lib prefix for modules?
19304need_lib_prefix=$need_lib_prefix
19305
19306# Do we need a version for libraries?
19307need_version=$need_version
19308
19309# Whether dlopen is supported.
19310dlopen_support=$enable_dlopen
19311
19312# Whether dlopen of programs is supported.
19313dlopen_self=$enable_dlopen_self
19314
19315# Whether dlopen of statically linked programs is supported.
19316dlopen_self_static=$enable_dlopen_self_static
19317
19318# Compiler flag to prevent dynamic linking.
19319link_static_flag=$lt_lt_prog_compiler_static_GCJ
19320
19321# Compiler flag to turn off builtin functions.
19322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19323
19324# Compiler flag to allow reflexive dlopens.
19325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19326
19327# Compiler flag to generate shared objects directly from archives.
19328whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19329
19330# Compiler flag to generate thread-safe objects.
19331thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19332
19333# Library versioning type.
19334version_type=$version_type
19335
19336# Format of library name prefix.
19337libname_spec=$lt_libname_spec
19338
19339# List of archive names.  First name is the real one, the rest are links.
19340# The last name is the one that the linker finds with -lNAME.
19341library_names_spec=$lt_library_names_spec
19342
19343# The coded name of the library, if different from the real name.
19344soname_spec=$lt_soname_spec
19345
19346# Commands used to build and install an old-style archive.
19347RANLIB=$lt_RANLIB
19348old_archive_cmds=$lt_old_archive_cmds_GCJ
19349old_postinstall_cmds=$lt_old_postinstall_cmds
19350old_postuninstall_cmds=$lt_old_postuninstall_cmds
19351
19352# Create an old-style archive from a shared archive.
19353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19354
19355# Create a temporary old-style archive to link instead of a shared archive.
19356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19357
19358# Commands used to build and install a shared archive.
19359archive_cmds=$lt_archive_cmds_GCJ
19360archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19361postinstall_cmds=$lt_postinstall_cmds
19362postuninstall_cmds=$lt_postuninstall_cmds
19363
19364# Commands used to build a loadable module (assumed same as above if empty)
19365module_cmds=$lt_module_cmds_GCJ
19366module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19367
19368# Commands to strip libraries.
19369old_striplib=$lt_old_striplib
19370striplib=$lt_striplib
19371
19372# Dependencies to place before the objects being linked to create a
19373# shared library.
19374predep_objects=$lt_predep_objects_GCJ
19375
19376# Dependencies to place after the objects being linked to create a
19377# shared library.
19378postdep_objects=$lt_postdep_objects_GCJ
19379
19380# Dependencies to place before the objects being linked to create a
19381# shared library.
19382predeps=$lt_predeps_GCJ
19383
19384# Dependencies to place after the objects being linked to create a
19385# shared library.
19386postdeps=$lt_postdeps_GCJ
19387
19388# The directories searched by this compiler when creating a shared
19389# library
19390compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19391
19392# The library search path used internally by the compiler when linking
19393# a shared library.
19394compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19395
19396# Method to check whether dependent libraries are shared objects.
19397deplibs_check_method=$lt_deplibs_check_method
19398
19399# Command to use when deplibs_check_method == file_magic.
19400file_magic_cmd=$lt_file_magic_cmd
19401
19402# Flag that allows shared libraries with undefined symbols to be built.
19403allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19404
19405# Flag that forces no undefined symbols.
19406no_undefined_flag=$lt_no_undefined_flag_GCJ
19407
19408# Commands used to finish a libtool library installation in a directory.
19409finish_cmds=$lt_finish_cmds
19410
19411# Same as above, but a single script fragment to be evaled but not shown.
19412finish_eval=$lt_finish_eval
19413
19414# Take the output of nm and produce a listing of raw symbols and C names.
19415global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19416
19417# Transform the output of nm in a proper C declaration
19418global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19419
19420# Transform the output of nm in a C name address pair
19421global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19422
19423# This is the shared library runtime path variable.
19424runpath_var=$runpath_var
19425
19426# This is the shared library path variable.
19427shlibpath_var=$shlibpath_var
19428
19429# Is shlibpath searched before the hard-coded library search path?
19430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19431
19432# How to hardcode a shared library path into an executable.
19433hardcode_action=$hardcode_action_GCJ
19434
19435# Whether we should hardcode library paths into libraries.
19436hardcode_into_libs=$hardcode_into_libs
19437
19438# Flag to hardcode \$libdir into a binary during linking.
19439# This must work even if \$libdir does not exist.
19440hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19441
19442# If ld is used when linking, flag to hardcode \$libdir into
19443# a binary during linking. This must work even if \$libdir does
19444# not exist.
19445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19446
19447# Whether we need a single -rpath flag with a separated argument.
19448hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19449
19450# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19451# resulting binary.
19452hardcode_direct=$hardcode_direct_GCJ
19453
19454# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19455# resulting binary.
19456hardcode_minus_L=$hardcode_minus_L_GCJ
19457
19458# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19459# the resulting binary.
19460hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19461
19462# Set to yes if building a shared library automatically hardcodes DIR into the library
19463# and all subsequent libraries and executables linked against it.
19464hardcode_automatic=$hardcode_automatic_GCJ
19465
19466# Variables whose values should be saved in libtool wrapper scripts and
19467# restored at relink time.
19468variables_saved_for_relink="$variables_saved_for_relink"
19469
19470# Whether libtool must link a program against all its dependency libraries.
19471link_all_deplibs=$link_all_deplibs_GCJ
19472
19473# Compile-time system search path for libraries
19474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19475
19476# Run-time system search path for libraries
19477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19478
19479# Fix the shell variable \$srcfile for the compiler.
19480fix_srcfile_path=$lt_fix_srcfile_path
19481
19482# Set to yes if exported symbols are required.
19483always_export_symbols=$always_export_symbols_GCJ
19484
19485# The commands to list exported symbols.
19486export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19487
19488# The commands to extract the exported symbol list from a shared archive.
19489extract_expsyms_cmds=$lt_extract_expsyms_cmds
19490
19491# Symbols that should not be listed in the preloaded symbols.
19492exclude_expsyms=$lt_exclude_expsyms_GCJ
19493
19494# Symbols that must always be exported.
19495include_expsyms=$lt_include_expsyms_GCJ
19496
19497# ### END LIBTOOL TAG CONFIG: $tagname
19498
19499__EOF__
19500
19501
19502else
19503  # If there is no Makefile yet, we rely on a make rule to execute
19504  # `config.status --recheck' to rerun these tests and create the
19505  # libtool script then.
19506  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19507  if test -f "$ltmain_in"; then
19508    test -f Makefile && make "$ltmain"
19509  fi
19510fi
19511
19512
19513ac_ext=c
19514ac_cpp='$CPP $CPPFLAGS'
19515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517ac_compiler_gnu=$ac_cv_c_compiler_gnu
19518
19519CC="$lt_save_CC"
19520
19521	else
19522	  tagname=""
19523	fi
19524	;;
19525
19526      RC)
19527
19528
19529# Source file extension for RC test sources.
19530ac_ext=rc
19531
19532# Object file extension for compiled RC test sources.
19533objext=o
19534objext_RC=$objext
19535
19536# Code to be used in simple compile tests
19537lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19538
19539# Code to be used in simple link tests
19540lt_simple_link_test_code="$lt_simple_compile_test_code"
19541
19542# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19543
19544# If no C compiler was specified, use CC.
19545LTCC=${LTCC-"$CC"}
19546
19547# If no C compiler flags were specified, use CFLAGS.
19548LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19549
19550# Allow CC to be a program name with arguments.
19551compiler=$CC
19552
19553
19554# save warnings/boilerplate of simple test code
19555ac_outfile=conftest.$ac_objext
19556echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558_lt_compiler_boilerplate=`cat conftest.err`
19559$rm conftest*
19560
19561ac_outfile=conftest.$ac_objext
19562echo "$lt_simple_link_test_code" >conftest.$ac_ext
19563eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19564_lt_linker_boilerplate=`cat conftest.err`
19565$rm -r conftest*
19566
19567
19568# Allow CC to be a program name with arguments.
19569lt_save_CC="$CC"
19570CC=${RC-"windres"}
19571compiler=$CC
19572compiler_RC=$CC
19573for cc_temp in $compiler""; do
19574  case $cc_temp in
19575    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19576    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19577    \-*) ;;
19578    *) break;;
19579  esac
19580done
19581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19582
19583lt_cv_prog_compiler_c_o_RC=yes
19584
19585# The else clause should only fire when bootstrapping the
19586# libtool distribution, otherwise you forgot to ship ltmain.sh
19587# with your package, and you will get complaints that there are
19588# no rules to generate ltmain.sh.
19589if test -f "$ltmain"; then
19590  # See if we are running on zsh, and set the options which allow our commands through
19591  # without removal of \ escapes.
19592  if test -n "${ZSH_VERSION+set}" ; then
19593    setopt NO_GLOB_SUBST
19594  fi
19595  # Now quote all the things that may contain metacharacters while being
19596  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19597  # variables and quote the copies for generation of the libtool script.
19598  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19599    SED SHELL STRIP \
19600    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602    deplibs_check_method reload_flag reload_cmds need_locks \
19603    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604    lt_cv_sys_global_symbol_to_c_name_address \
19605    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606    old_postinstall_cmds old_postuninstall_cmds \
19607    compiler_RC \
19608    CC_RC \
19609    LD_RC \
19610    lt_prog_compiler_wl_RC \
19611    lt_prog_compiler_pic_RC \
19612    lt_prog_compiler_static_RC \
19613    lt_prog_compiler_no_builtin_flag_RC \
19614    export_dynamic_flag_spec_RC \
19615    thread_safe_flag_spec_RC \
19616    whole_archive_flag_spec_RC \
19617    enable_shared_with_static_runtimes_RC \
19618    old_archive_cmds_RC \
19619    old_archive_from_new_cmds_RC \
19620    predep_objects_RC \
19621    postdep_objects_RC \
19622    predeps_RC \
19623    postdeps_RC \
19624    compiler_lib_search_path_RC \
19625    compiler_lib_search_dirs_RC \
19626    archive_cmds_RC \
19627    archive_expsym_cmds_RC \
19628    postinstall_cmds_RC \
19629    postuninstall_cmds_RC \
19630    old_archive_from_expsyms_cmds_RC \
19631    allow_undefined_flag_RC \
19632    no_undefined_flag_RC \
19633    export_symbols_cmds_RC \
19634    hardcode_libdir_flag_spec_RC \
19635    hardcode_libdir_flag_spec_ld_RC \
19636    hardcode_libdir_separator_RC \
19637    hardcode_automatic_RC \
19638    module_cmds_RC \
19639    module_expsym_cmds_RC \
19640    lt_cv_prog_compiler_c_o_RC \
19641    fix_srcfile_path_RC \
19642    exclude_expsyms_RC \
19643    include_expsyms_RC; do
19644
19645    case $var in
19646    old_archive_cmds_RC | \
19647    old_archive_from_new_cmds_RC | \
19648    archive_cmds_RC | \
19649    archive_expsym_cmds_RC | \
19650    module_cmds_RC | \
19651    module_expsym_cmds_RC | \
19652    old_archive_from_expsyms_cmds_RC | \
19653    export_symbols_cmds_RC | \
19654    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19655    postinstall_cmds | postuninstall_cmds | \
19656    old_postinstall_cmds | old_postuninstall_cmds | \
19657    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19658      # Double-quote double-evaled strings.
19659      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19660      ;;
19661    *)
19662      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19663      ;;
19664    esac
19665  done
19666
19667  case $lt_echo in
19668  *'\$0 --fallback-echo"')
19669    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19670    ;;
19671  esac
19672
19673cfgfile="$ofile"
19674
19675  cat <<__EOF__ >> "$cfgfile"
19676# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19677
19678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19679
19680# Shell to use when invoking shell scripts.
19681SHELL=$lt_SHELL
19682
19683# Whether or not to build shared libraries.
19684build_libtool_libs=$enable_shared
19685
19686# Whether or not to build static libraries.
19687build_old_libs=$enable_static
19688
19689# Whether or not to add -lc for building shared libraries.
19690build_libtool_need_lc=$archive_cmds_need_lc_RC
19691
19692# Whether or not to disallow shared libs when runtime libs are static
19693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19694
19695# Whether or not to optimize for fast installation.
19696fast_install=$enable_fast_install
19697
19698# The host system.
19699host_alias=$host_alias
19700host=$host
19701host_os=$host_os
19702
19703# The build system.
19704build_alias=$build_alias
19705build=$build
19706build_os=$build_os
19707
19708# An echo program that does not interpret backslashes.
19709echo=$lt_echo
19710
19711# The archiver.
19712AR=$lt_AR
19713AR_FLAGS=$lt_AR_FLAGS
19714
19715# A C compiler.
19716LTCC=$lt_LTCC
19717
19718# LTCC compiler flags.
19719LTCFLAGS=$lt_LTCFLAGS
19720
19721# A language-specific compiler.
19722CC=$lt_compiler_RC
19723
19724# Is the compiler the GNU C compiler?
19725with_gcc=$GCC_RC
19726
19727# An ERE matcher.
19728EGREP=$lt_EGREP
19729
19730# The linker used to build libraries.
19731LD=$lt_LD_RC
19732
19733# Whether we need hard or soft links.
19734LN_S=$lt_LN_S
19735
19736# A BSD-compatible nm program.
19737NM=$lt_NM
19738
19739# A symbol stripping program
19740STRIP=$lt_STRIP
19741
19742# Used to examine libraries when file_magic_cmd begins "file"
19743MAGIC_CMD=$MAGIC_CMD
19744
19745# Used on cygwin: DLL creation program.
19746DLLTOOL="$DLLTOOL"
19747
19748# Used on cygwin: object dumper.
19749OBJDUMP="$OBJDUMP"
19750
19751# Used on cygwin: assembler.
19752AS="$AS"
19753
19754# The name of the directory that contains temporary libtool files.
19755objdir=$objdir
19756
19757# How to create reloadable object files.
19758reload_flag=$lt_reload_flag
19759reload_cmds=$lt_reload_cmds
19760
19761# How to pass a linker flag through the compiler.
19762wl=$lt_lt_prog_compiler_wl_RC
19763
19764# Object file suffix (normally "o").
19765objext="$ac_objext"
19766
19767# Old archive suffix (normally "a").
19768libext="$libext"
19769
19770# Shared library suffix (normally ".so").
19771shrext_cmds='$shrext_cmds'
19772
19773# Executable file suffix (normally "").
19774exeext="$exeext"
19775
19776# Additional compiler flags for building library objects.
19777pic_flag=$lt_lt_prog_compiler_pic_RC
19778pic_mode=$pic_mode
19779
19780# What is the maximum length of a command?
19781max_cmd_len=$lt_cv_sys_max_cmd_len
19782
19783# Does compiler simultaneously support -c and -o options?
19784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19785
19786# Must we lock files when doing compilation?
19787need_locks=$lt_need_locks
19788
19789# Do we need the lib prefix for modules?
19790need_lib_prefix=$need_lib_prefix
19791
19792# Do we need a version for libraries?
19793need_version=$need_version
19794
19795# Whether dlopen is supported.
19796dlopen_support=$enable_dlopen
19797
19798# Whether dlopen of programs is supported.
19799dlopen_self=$enable_dlopen_self
19800
19801# Whether dlopen of statically linked programs is supported.
19802dlopen_self_static=$enable_dlopen_self_static
19803
19804# Compiler flag to prevent dynamic linking.
19805link_static_flag=$lt_lt_prog_compiler_static_RC
19806
19807# Compiler flag to turn off builtin functions.
19808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19809
19810# Compiler flag to allow reflexive dlopens.
19811export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19812
19813# Compiler flag to generate shared objects directly from archives.
19814whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19815
19816# Compiler flag to generate thread-safe objects.
19817thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19818
19819# Library versioning type.
19820version_type=$version_type
19821
19822# Format of library name prefix.
19823libname_spec=$lt_libname_spec
19824
19825# List of archive names.  First name is the real one, the rest are links.
19826# The last name is the one that the linker finds with -lNAME.
19827library_names_spec=$lt_library_names_spec
19828
19829# The coded name of the library, if different from the real name.
19830soname_spec=$lt_soname_spec
19831
19832# Commands used to build and install an old-style archive.
19833RANLIB=$lt_RANLIB
19834old_archive_cmds=$lt_old_archive_cmds_RC
19835old_postinstall_cmds=$lt_old_postinstall_cmds
19836old_postuninstall_cmds=$lt_old_postuninstall_cmds
19837
19838# Create an old-style archive from a shared archive.
19839old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19840
19841# Create a temporary old-style archive to link instead of a shared archive.
19842old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19843
19844# Commands used to build and install a shared archive.
19845archive_cmds=$lt_archive_cmds_RC
19846archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19847postinstall_cmds=$lt_postinstall_cmds
19848postuninstall_cmds=$lt_postuninstall_cmds
19849
19850# Commands used to build a loadable module (assumed same as above if empty)
19851module_cmds=$lt_module_cmds_RC
19852module_expsym_cmds=$lt_module_expsym_cmds_RC
19853
19854# Commands to strip libraries.
19855old_striplib=$lt_old_striplib
19856striplib=$lt_striplib
19857
19858# Dependencies to place before the objects being linked to create a
19859# shared library.
19860predep_objects=$lt_predep_objects_RC
19861
19862# Dependencies to place after the objects being linked to create a
19863# shared library.
19864postdep_objects=$lt_postdep_objects_RC
19865
19866# Dependencies to place before the objects being linked to create a
19867# shared library.
19868predeps=$lt_predeps_RC
19869
19870# Dependencies to place after the objects being linked to create a
19871# shared library.
19872postdeps=$lt_postdeps_RC
19873
19874# The directories searched by this compiler when creating a shared
19875# library
19876compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19877
19878# The library search path used internally by the compiler when linking
19879# a shared library.
19880compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19881
19882# Method to check whether dependent libraries are shared objects.
19883deplibs_check_method=$lt_deplibs_check_method
19884
19885# Command to use when deplibs_check_method == file_magic.
19886file_magic_cmd=$lt_file_magic_cmd
19887
19888# Flag that allows shared libraries with undefined symbols to be built.
19889allow_undefined_flag=$lt_allow_undefined_flag_RC
19890
19891# Flag that forces no undefined symbols.
19892no_undefined_flag=$lt_no_undefined_flag_RC
19893
19894# Commands used to finish a libtool library installation in a directory.
19895finish_cmds=$lt_finish_cmds
19896
19897# Same as above, but a single script fragment to be evaled but not shown.
19898finish_eval=$lt_finish_eval
19899
19900# Take the output of nm and produce a listing of raw symbols and C names.
19901global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19902
19903# Transform the output of nm in a proper C declaration
19904global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19905
19906# Transform the output of nm in a C name address pair
19907global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19908
19909# This is the shared library runtime path variable.
19910runpath_var=$runpath_var
19911
19912# This is the shared library path variable.
19913shlibpath_var=$shlibpath_var
19914
19915# Is shlibpath searched before the hard-coded library search path?
19916shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19917
19918# How to hardcode a shared library path into an executable.
19919hardcode_action=$hardcode_action_RC
19920
19921# Whether we should hardcode library paths into libraries.
19922hardcode_into_libs=$hardcode_into_libs
19923
19924# Flag to hardcode \$libdir into a binary during linking.
19925# This must work even if \$libdir does not exist.
19926hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19927
19928# If ld is used when linking, flag to hardcode \$libdir into
19929# a binary during linking. This must work even if \$libdir does
19930# not exist.
19931hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19932
19933# Whether we need a single -rpath flag with a separated argument.
19934hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19935
19936# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19937# resulting binary.
19938hardcode_direct=$hardcode_direct_RC
19939
19940# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19941# resulting binary.
19942hardcode_minus_L=$hardcode_minus_L_RC
19943
19944# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19945# the resulting binary.
19946hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19947
19948# Set to yes if building a shared library automatically hardcodes DIR into the library
19949# and all subsequent libraries and executables linked against it.
19950hardcode_automatic=$hardcode_automatic_RC
19951
19952# Variables whose values should be saved in libtool wrapper scripts and
19953# restored at relink time.
19954variables_saved_for_relink="$variables_saved_for_relink"
19955
19956# Whether libtool must link a program against all its dependency libraries.
19957link_all_deplibs=$link_all_deplibs_RC
19958
19959# Compile-time system search path for libraries
19960sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19961
19962# Run-time system search path for libraries
19963sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19964
19965# Fix the shell variable \$srcfile for the compiler.
19966fix_srcfile_path=$lt_fix_srcfile_path
19967
19968# Set to yes if exported symbols are required.
19969always_export_symbols=$always_export_symbols_RC
19970
19971# The commands to list exported symbols.
19972export_symbols_cmds=$lt_export_symbols_cmds_RC
19973
19974# The commands to extract the exported symbol list from a shared archive.
19975extract_expsyms_cmds=$lt_extract_expsyms_cmds
19976
19977# Symbols that should not be listed in the preloaded symbols.
19978exclude_expsyms=$lt_exclude_expsyms_RC
19979
19980# Symbols that must always be exported.
19981include_expsyms=$lt_include_expsyms_RC
19982
19983# ### END LIBTOOL TAG CONFIG: $tagname
19984
19985__EOF__
19986
19987
19988else
19989  # If there is no Makefile yet, we rely on a make rule to execute
19990  # `config.status --recheck' to rerun these tests and create the
19991  # libtool script then.
19992  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19993  if test -f "$ltmain_in"; then
19994    test -f Makefile && make "$ltmain"
19995  fi
19996fi
19997
19998
19999ac_ext=c
20000ac_cpp='$CPP $CPPFLAGS'
20001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003ac_compiler_gnu=$ac_cv_c_compiler_gnu
20004
20005CC="$lt_save_CC"
20006
20007	;;
20008
20009      *)
20010	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20011$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20012   { (exit 1); exit 1; }; }
20013	;;
20014      esac
20015
20016      # Append the new tag name to the list of available tags.
20017      if test -n "$tagname" ; then
20018      available_tags="$available_tags $tagname"
20019    fi
20020    fi
20021  done
20022  IFS="$lt_save_ifs"
20023
20024  # Now substitute the updated list of available tags.
20025  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20026    mv "${ofile}T" "$ofile"
20027    chmod +x "$ofile"
20028  else
20029    rm -f "${ofile}T"
20030    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20031$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20032   { (exit 1); exit 1; }; }
20033  fi
20034fi
20035
20036
20037
20038# This can be used to rebuild libtool when needed
20039LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20040
20041# Always use our own libtool.
20042LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20043
20044# Prevent multiple expansion
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065ac_ext=c
20066ac_cpp='$CPP $CPPFLAGS'
20067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069ac_compiler_gnu=$ac_cv_c_compiler_gnu
20070if test -n "$ac_tool_prefix"; then
20071  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20072set dummy ${ac_tool_prefix}gcc; ac_word=$2
20073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20074$as_echo_n "checking for $ac_word... " >&6; }
20075if test "${ac_cv_prog_CC+set}" = set; then
20076  $as_echo_n "(cached) " >&6
20077else
20078  if test -n "$CC"; then
20079  ac_cv_prog_CC="$CC" # Let the user override the test.
20080else
20081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20082for as_dir in $PATH
20083do
20084  IFS=$as_save_IFS
20085  test -z "$as_dir" && as_dir=.
20086  for ac_exec_ext in '' $ac_executable_extensions; do
20087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20088    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20089    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20090    break 2
20091  fi
20092done
20093done
20094IFS=$as_save_IFS
20095
20096fi
20097fi
20098CC=$ac_cv_prog_CC
20099if test -n "$CC"; then
20100  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20101$as_echo "$CC" >&6; }
20102else
20103  { $as_echo "$as_me:$LINENO: result: no" >&5
20104$as_echo "no" >&6; }
20105fi
20106
20107
20108fi
20109if test -z "$ac_cv_prog_CC"; then
20110  ac_ct_CC=$CC
20111  # Extract the first word of "gcc", so it can be a program name with args.
20112set dummy gcc; ac_word=$2
20113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20114$as_echo_n "checking for $ac_word... " >&6; }
20115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20116  $as_echo_n "(cached) " >&6
20117else
20118  if test -n "$ac_ct_CC"; then
20119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20120else
20121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20122for as_dir in $PATH
20123do
20124  IFS=$as_save_IFS
20125  test -z "$as_dir" && as_dir=.
20126  for ac_exec_ext in '' $ac_executable_extensions; do
20127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20128    ac_cv_prog_ac_ct_CC="gcc"
20129    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20130    break 2
20131  fi
20132done
20133done
20134IFS=$as_save_IFS
20135
20136fi
20137fi
20138ac_ct_CC=$ac_cv_prog_ac_ct_CC
20139if test -n "$ac_ct_CC"; then
20140  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20141$as_echo "$ac_ct_CC" >&6; }
20142else
20143  { $as_echo "$as_me:$LINENO: result: no" >&5
20144$as_echo "no" >&6; }
20145fi
20146
20147  if test "x$ac_ct_CC" = x; then
20148    CC=""
20149  else
20150    case $cross_compiling:$ac_tool_warned in
20151yes:)
20152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20154ac_tool_warned=yes ;;
20155esac
20156    CC=$ac_ct_CC
20157  fi
20158else
20159  CC="$ac_cv_prog_CC"
20160fi
20161
20162if test -z "$CC"; then
20163          if test -n "$ac_tool_prefix"; then
20164    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20165set dummy ${ac_tool_prefix}cc; ac_word=$2
20166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20167$as_echo_n "checking for $ac_word... " >&6; }
20168if test "${ac_cv_prog_CC+set}" = set; then
20169  $as_echo_n "(cached) " >&6
20170else
20171  if test -n "$CC"; then
20172  ac_cv_prog_CC="$CC" # Let the user override the test.
20173else
20174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20175for as_dir in $PATH
20176do
20177  IFS=$as_save_IFS
20178  test -z "$as_dir" && as_dir=.
20179  for ac_exec_ext in '' $ac_executable_extensions; do
20180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20181    ac_cv_prog_CC="${ac_tool_prefix}cc"
20182    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20183    break 2
20184  fi
20185done
20186done
20187IFS=$as_save_IFS
20188
20189fi
20190fi
20191CC=$ac_cv_prog_CC
20192if test -n "$CC"; then
20193  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20194$as_echo "$CC" >&6; }
20195else
20196  { $as_echo "$as_me:$LINENO: result: no" >&5
20197$as_echo "no" >&6; }
20198fi
20199
20200
20201  fi
20202fi
20203if test -z "$CC"; then
20204  # Extract the first word of "cc", so it can be a program name with args.
20205set dummy cc; ac_word=$2
20206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20207$as_echo_n "checking for $ac_word... " >&6; }
20208if test "${ac_cv_prog_CC+set}" = set; then
20209  $as_echo_n "(cached) " >&6
20210else
20211  if test -n "$CC"; then
20212  ac_cv_prog_CC="$CC" # Let the user override the test.
20213else
20214  ac_prog_rejected=no
20215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216for as_dir in $PATH
20217do
20218  IFS=$as_save_IFS
20219  test -z "$as_dir" && as_dir=.
20220  for ac_exec_ext in '' $ac_executable_extensions; do
20221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20222    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20223       ac_prog_rejected=yes
20224       continue
20225     fi
20226    ac_cv_prog_CC="cc"
20227    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20228    break 2
20229  fi
20230done
20231done
20232IFS=$as_save_IFS
20233
20234if test $ac_prog_rejected = yes; then
20235  # We found a bogon in the path, so make sure we never use it.
20236  set dummy $ac_cv_prog_CC
20237  shift
20238  if test $# != 0; then
20239    # We chose a different compiler from the bogus one.
20240    # However, it has the same basename, so the bogon will be chosen
20241    # first if we set CC to just the basename; use the full file name.
20242    shift
20243    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20244  fi
20245fi
20246fi
20247fi
20248CC=$ac_cv_prog_CC
20249if test -n "$CC"; then
20250  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20251$as_echo "$CC" >&6; }
20252else
20253  { $as_echo "$as_me:$LINENO: result: no" >&5
20254$as_echo "no" >&6; }
20255fi
20256
20257
20258fi
20259if test -z "$CC"; then
20260  if test -n "$ac_tool_prefix"; then
20261  for ac_prog in cl.exe
20262  do
20263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20266$as_echo_n "checking for $ac_word... " >&6; }
20267if test "${ac_cv_prog_CC+set}" = set; then
20268  $as_echo_n "(cached) " >&6
20269else
20270  if test -n "$CC"; then
20271  ac_cv_prog_CC="$CC" # Let the user override the test.
20272else
20273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274for as_dir in $PATH
20275do
20276  IFS=$as_save_IFS
20277  test -z "$as_dir" && as_dir=.
20278  for ac_exec_ext in '' $ac_executable_extensions; do
20279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20280    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20281    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20282    break 2
20283  fi
20284done
20285done
20286IFS=$as_save_IFS
20287
20288fi
20289fi
20290CC=$ac_cv_prog_CC
20291if test -n "$CC"; then
20292  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20293$as_echo "$CC" >&6; }
20294else
20295  { $as_echo "$as_me:$LINENO: result: no" >&5
20296$as_echo "no" >&6; }
20297fi
20298
20299
20300    test -n "$CC" && break
20301  done
20302fi
20303if test -z "$CC"; then
20304  ac_ct_CC=$CC
20305  for ac_prog in cl.exe
20306do
20307  # Extract the first word of "$ac_prog", so it can be a program name with args.
20308set dummy $ac_prog; ac_word=$2
20309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20310$as_echo_n "checking for $ac_word... " >&6; }
20311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20312  $as_echo_n "(cached) " >&6
20313else
20314  if test -n "$ac_ct_CC"; then
20315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20316else
20317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20318for as_dir in $PATH
20319do
20320  IFS=$as_save_IFS
20321  test -z "$as_dir" && as_dir=.
20322  for ac_exec_ext in '' $ac_executable_extensions; do
20323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20324    ac_cv_prog_ac_ct_CC="$ac_prog"
20325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20326    break 2
20327  fi
20328done
20329done
20330IFS=$as_save_IFS
20331
20332fi
20333fi
20334ac_ct_CC=$ac_cv_prog_ac_ct_CC
20335if test -n "$ac_ct_CC"; then
20336  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20337$as_echo "$ac_ct_CC" >&6; }
20338else
20339  { $as_echo "$as_me:$LINENO: result: no" >&5
20340$as_echo "no" >&6; }
20341fi
20342
20343
20344  test -n "$ac_ct_CC" && break
20345done
20346
20347  if test "x$ac_ct_CC" = x; then
20348    CC=""
20349  else
20350    case $cross_compiling:$ac_tool_warned in
20351yes:)
20352{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20354ac_tool_warned=yes ;;
20355esac
20356    CC=$ac_ct_CC
20357  fi
20358fi
20359
20360fi
20361
20362
20363test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20365{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20366See \`config.log' for more details." >&5
20367$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20368See \`config.log' for more details." >&2;}
20369   { (exit 1); exit 1; }; }; }
20370
20371# Provide some information about the compiler.
20372$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20373set X $ac_compile
20374ac_compiler=$2
20375{ (ac_try="$ac_compiler --version >&5"
20376case "(($ac_try" in
20377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378  *) ac_try_echo=$ac_try;;
20379esac
20380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20381$as_echo "$ac_try_echo") >&5
20382  (eval "$ac_compiler --version >&5") 2>&5
20383  ac_status=$?
20384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385  (exit $ac_status); }
20386{ (ac_try="$ac_compiler -v >&5"
20387case "(($ac_try" in
20388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389  *) ac_try_echo=$ac_try;;
20390esac
20391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392$as_echo "$ac_try_echo") >&5
20393  (eval "$ac_compiler -v >&5") 2>&5
20394  ac_status=$?
20395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396  (exit $ac_status); }
20397{ (ac_try="$ac_compiler -V >&5"
20398case "(($ac_try" in
20399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400  *) ac_try_echo=$ac_try;;
20401esac
20402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20403$as_echo "$ac_try_echo") >&5
20404  (eval "$ac_compiler -V >&5") 2>&5
20405  ac_status=$?
20406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407  (exit $ac_status); }
20408
20409{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20410$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20411if test "${ac_cv_c_compiler_gnu+set}" = set; then
20412  $as_echo_n "(cached) " >&6
20413else
20414  cat >conftest.$ac_ext <<_ACEOF
20415/* confdefs.h.  */
20416_ACEOF
20417cat confdefs.h >>conftest.$ac_ext
20418cat >>conftest.$ac_ext <<_ACEOF
20419/* end confdefs.h.  */
20420
20421int
20422main ()
20423{
20424#ifndef __GNUC__
20425       choke me
20426#endif
20427
20428  ;
20429  return 0;
20430}
20431_ACEOF
20432rm -f conftest.$ac_objext
20433if { (ac_try="$ac_compile"
20434case "(($ac_try" in
20435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436  *) ac_try_echo=$ac_try;;
20437esac
20438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20439$as_echo "$ac_try_echo") >&5
20440  (eval "$ac_compile") 2>conftest.er1
20441  ac_status=$?
20442  grep -v '^ *+' conftest.er1 >conftest.err
20443  rm -f conftest.er1
20444  cat conftest.err >&5
20445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446  (exit $ac_status); } && {
20447	 test -z "$ac_c_werror_flag" ||
20448	 test ! -s conftest.err
20449       } && test -s conftest.$ac_objext; then
20450  ac_compiler_gnu=yes
20451else
20452  $as_echo "$as_me: failed program was:" >&5
20453sed 's/^/| /' conftest.$ac_ext >&5
20454
20455	ac_compiler_gnu=no
20456fi
20457
20458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459ac_cv_c_compiler_gnu=$ac_compiler_gnu
20460
20461fi
20462{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20463$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20464if test $ac_compiler_gnu = yes; then
20465  GCC=yes
20466else
20467  GCC=
20468fi
20469ac_test_CFLAGS=${CFLAGS+set}
20470ac_save_CFLAGS=$CFLAGS
20471{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20472$as_echo_n "checking whether $CC accepts -g... " >&6; }
20473if test "${ac_cv_prog_cc_g+set}" = set; then
20474  $as_echo_n "(cached) " >&6
20475else
20476  ac_save_c_werror_flag=$ac_c_werror_flag
20477   ac_c_werror_flag=yes
20478   ac_cv_prog_cc_g=no
20479   CFLAGS="-g"
20480   cat >conftest.$ac_ext <<_ACEOF
20481/* confdefs.h.  */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h.  */
20486
20487int
20488main ()
20489{
20490
20491  ;
20492  return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (ac_try="$ac_compile"
20497case "(($ac_try" in
20498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499  *) ac_try_echo=$ac_try;;
20500esac
20501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20502$as_echo "$ac_try_echo") >&5
20503  (eval "$ac_compile") 2>conftest.er1
20504  ac_status=$?
20505  grep -v '^ *+' conftest.er1 >conftest.err
20506  rm -f conftest.er1
20507  cat conftest.err >&5
20508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509  (exit $ac_status); } && {
20510	 test -z "$ac_c_werror_flag" ||
20511	 test ! -s conftest.err
20512       } && test -s conftest.$ac_objext; then
20513  ac_cv_prog_cc_g=yes
20514else
20515  $as_echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518	CFLAGS=""
20519      cat >conftest.$ac_ext <<_ACEOF
20520/* confdefs.h.  */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h.  */
20525
20526int
20527main ()
20528{
20529
20530  ;
20531  return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext
20535if { (ac_try="$ac_compile"
20536case "(($ac_try" in
20537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538  *) ac_try_echo=$ac_try;;
20539esac
20540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20541$as_echo "$ac_try_echo") >&5
20542  (eval "$ac_compile") 2>conftest.er1
20543  ac_status=$?
20544  grep -v '^ *+' conftest.er1 >conftest.err
20545  rm -f conftest.er1
20546  cat conftest.err >&5
20547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548  (exit $ac_status); } && {
20549	 test -z "$ac_c_werror_flag" ||
20550	 test ! -s conftest.err
20551       } && test -s conftest.$ac_objext; then
20552  :
20553else
20554  $as_echo "$as_me: failed program was:" >&5
20555sed 's/^/| /' conftest.$ac_ext >&5
20556
20557	ac_c_werror_flag=$ac_save_c_werror_flag
20558	 CFLAGS="-g"
20559	 cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h.  */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h.  */
20565
20566int
20567main ()
20568{
20569
20570  ;
20571  return 0;
20572}
20573_ACEOF
20574rm -f conftest.$ac_objext
20575if { (ac_try="$ac_compile"
20576case "(($ac_try" in
20577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578  *) ac_try_echo=$ac_try;;
20579esac
20580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20581$as_echo "$ac_try_echo") >&5
20582  (eval "$ac_compile") 2>conftest.er1
20583  ac_status=$?
20584  grep -v '^ *+' conftest.er1 >conftest.err
20585  rm -f conftest.er1
20586  cat conftest.err >&5
20587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); } && {
20589	 test -z "$ac_c_werror_flag" ||
20590	 test ! -s conftest.err
20591       } && test -s conftest.$ac_objext; then
20592  ac_cv_prog_cc_g=yes
20593else
20594  $as_echo "$as_me: failed program was:" >&5
20595sed 's/^/| /' conftest.$ac_ext >&5
20596
20597
20598fi
20599
20600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601fi
20602
20603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604fi
20605
20606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607   ac_c_werror_flag=$ac_save_c_werror_flag
20608fi
20609{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20610$as_echo "$ac_cv_prog_cc_g" >&6; }
20611if test "$ac_test_CFLAGS" = set; then
20612  CFLAGS=$ac_save_CFLAGS
20613elif test $ac_cv_prog_cc_g = yes; then
20614  if test "$GCC" = yes; then
20615    CFLAGS="-g -O2"
20616  else
20617    CFLAGS="-g"
20618  fi
20619else
20620  if test "$GCC" = yes; then
20621    CFLAGS="-O2"
20622  else
20623    CFLAGS=
20624  fi
20625fi
20626{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20628if test "${ac_cv_prog_cc_c89+set}" = set; then
20629  $as_echo_n "(cached) " >&6
20630else
20631  ac_cv_prog_cc_c89=no
20632ac_save_CC=$CC
20633cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h.  */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h.  */
20639#include <stdarg.h>
20640#include <stdio.h>
20641#include <sys/types.h>
20642#include <sys/stat.h>
20643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20644struct buf { int x; };
20645FILE * (*rcsopen) (struct buf *, struct stat *, int);
20646static char *e (p, i)
20647     char **p;
20648     int i;
20649{
20650  return p[i];
20651}
20652static char *f (char * (*g) (char **, int), char **p, ...)
20653{
20654  char *s;
20655  va_list v;
20656  va_start (v,p);
20657  s = g (p, va_arg (v,int));
20658  va_end (v);
20659  return s;
20660}
20661
20662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20663   function prototypes and stuff, but not '\xHH' hex character constants.
20664   These don't provoke an error unfortunately, instead are silently treated
20665   as 'x'.  The following induces an error, until -std is added to get
20666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20667   array size at least.  It's necessary to write '\x00'==0 to get something
20668   that's true only with -std.  */
20669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20670
20671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20672   inside strings and character constants.  */
20673#define FOO(x) 'x'
20674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20675
20676int test (int i, double x);
20677struct s1 {int (*f) (int a);};
20678struct s2 {int (*f) (double a);};
20679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20680int argc;
20681char **argv;
20682int
20683main ()
20684{
20685return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20686  ;
20687  return 0;
20688}
20689_ACEOF
20690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20691	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20692do
20693  CC="$ac_save_CC $ac_arg"
20694  rm -f conftest.$ac_objext
20695if { (ac_try="$ac_compile"
20696case "(($ac_try" in
20697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698  *) ac_try_echo=$ac_try;;
20699esac
20700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20701$as_echo "$ac_try_echo") >&5
20702  (eval "$ac_compile") 2>conftest.er1
20703  ac_status=$?
20704  grep -v '^ *+' conftest.er1 >conftest.err
20705  rm -f conftest.er1
20706  cat conftest.err >&5
20707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); } && {
20709	 test -z "$ac_c_werror_flag" ||
20710	 test ! -s conftest.err
20711       } && test -s conftest.$ac_objext; then
20712  ac_cv_prog_cc_c89=$ac_arg
20713else
20714  $as_echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717
20718fi
20719
20720rm -f core conftest.err conftest.$ac_objext
20721  test "x$ac_cv_prog_cc_c89" != "xno" && break
20722done
20723rm -f conftest.$ac_ext
20724CC=$ac_save_CC
20725
20726fi
20727# AC_CACHE_VAL
20728case "x$ac_cv_prog_cc_c89" in
20729  x)
20730    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20731$as_echo "none needed" >&6; } ;;
20732  xno)
20733    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20734$as_echo "unsupported" >&6; } ;;
20735  *)
20736    CC="$CC $ac_cv_prog_cc_c89"
20737    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20738$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20739esac
20740
20741
20742ac_ext=c
20743ac_cpp='$CPP $CPPFLAGS'
20744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747
20748depcc="$CC"   am_compiler_list=
20749
20750{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20751$as_echo_n "checking dependency style of $depcc... " >&6; }
20752if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20753  $as_echo_n "(cached) " >&6
20754else
20755  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20756  # We make a subdir and do the tests there.  Otherwise we can end up
20757  # making bogus files that we don't know about and never remove.  For
20758  # instance it was reported that on HP-UX the gcc test will end up
20759  # making a dummy file named `D' -- because `-MD' means `put the output
20760  # in D'.
20761  mkdir conftest.dir
20762  # Copy depcomp to subdir because otherwise we won't find it if we're
20763  # using a relative directory.
20764  cp "$am_depcomp" conftest.dir
20765  cd conftest.dir
20766  # We will build objects and dependencies in a subdirectory because
20767  # it helps to detect inapplicable dependency modes.  For instance
20768  # both Tru64's cc and ICC support -MD to output dependencies as a
20769  # side effect of compilation, but ICC will put the dependencies in
20770  # the current directory while Tru64 will put them in the object
20771  # directory.
20772  mkdir sub
20773
20774  am_cv_CC_dependencies_compiler_type=none
20775  if test "$am_compiler_list" = ""; then
20776     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20777  fi
20778  am__universal=false
20779  case " $depcc " in #(
20780     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20781     esac
20782
20783  for depmode in $am_compiler_list; do
20784    # Setup a source with many dependencies, because some compilers
20785    # like to wrap large dependency lists on column 80 (with \), and
20786    # we should not choose a depcomp mode which is confused by this.
20787    #
20788    # We need to recreate these files for each test, as the compiler may
20789    # overwrite some of them when testing with obscure command lines.
20790    # This happens at least with the AIX C compiler.
20791    : > sub/conftest.c
20792    for i in 1 2 3 4 5 6; do
20793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20794      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20795      # Solaris 8's {/usr,}/bin/sh.
20796      touch sub/conftst$i.h
20797    done
20798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20799
20800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20801    # mode.  It turns out that the SunPro C++ compiler does not properly
20802    # handle `-M -o', and we need to detect this.  Also, some Intel
20803    # versions had trouble with output in subdirs
20804    am__obj=sub/conftest.${OBJEXT-o}
20805    am__minus_obj="-o $am__obj"
20806    case $depmode in
20807    gcc)
20808      # This depmode causes a compiler race in universal mode.
20809      test "$am__universal" = false || continue
20810      ;;
20811    nosideeffect)
20812      # after this tag, mechanisms are not by side-effect, so they'll
20813      # only be used when explicitly requested
20814      if test "x$enable_dependency_tracking" = xyes; then
20815	continue
20816      else
20817	break
20818      fi
20819      ;;
20820    msvisualcpp | msvcmsys)
20821      # This compiler won't grok `-c -o', but also, the minuso test has
20822      # not run yet.  These depmodes are late enough in the game, and
20823      # so weak that their functioning should not be impacted.
20824      am__obj=conftest.${OBJEXT-o}
20825      am__minus_obj=
20826      ;;
20827    none) break ;;
20828    esac
20829    if depmode=$depmode \
20830       source=sub/conftest.c object=$am__obj \
20831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20832       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20833         >/dev/null 2>conftest.err &&
20834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20836       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20838      # icc doesn't choke on unknown options, it will just issue warnings
20839      # or remarks (even with -Werror).  So we grep stderr for any message
20840      # that says an option was ignored or not supported.
20841      # When given -MP, icc 7.0 and 7.1 complain thusly:
20842      #   icc: Command line warning: ignoring option '-M'; no argument required
20843      # The diagnosis changed in icc 8.0:
20844      #   icc: Command line remark: option '-MP' not supported
20845      if (grep 'ignoring option' conftest.err ||
20846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20847        am_cv_CC_dependencies_compiler_type=$depmode
20848        break
20849      fi
20850    fi
20851  done
20852
20853  cd ..
20854  rm -rf conftest.dir
20855else
20856  am_cv_CC_dependencies_compiler_type=none
20857fi
20858
20859fi
20860{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20861$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20863
20864 if
20865  test "x$enable_dependency_tracking" != xno \
20866  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20867  am__fastdepCC_TRUE=
20868  am__fastdepCC_FALSE='#'
20869else
20870  am__fastdepCC_TRUE='#'
20871  am__fastdepCC_FALSE=
20872fi
20873
20874
20875
20876
20877
20878
20879
20880# Check whether --with-xorg-module-dir was given.
20881if test "${with_xorg_module_dir+set}" = set; then
20882  withval=$with_xorg_module_dir; moduledir="$withval"
20883else
20884  moduledir="$libdir/xorg/modules"
20885fi
20886
20887
20888# Check whether --enable-dri was given.
20889if test "${enable_dri+set}" = set; then
20890  enableval=$enable_dri; DRI="$enableval"
20891else
20892  DRI=auto
20893fi
20894
20895
20896# Check whether --enable-debug was given.
20897if test "${enable_debug+set}" = set; then
20898  enableval=$enable_debug; DEBUG="$enableval"
20899else
20900  DEBUG=no
20901fi
20902
20903
20904# Check whether --enable-xv-debug was given.
20905if test "${enable_xv_debug+set}" = set; then
20906  enableval=$enable_xv_debug; XV_DEBUG="$enableval"
20907else
20908  XV_DEBUG=no
20909fi
20910
20911
20912# Checks for extensions
20913
20914	SAVE_CFLAGS="$CFLAGS"
20915	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20916	cat >conftest.$ac_ext <<_ACEOF
20917/* confdefs.h.  */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h.  */
20922
20923#include "xorg-server.h"
20924#if !defined RANDR
20925#error RANDR not defined
20926#endif
20927
20928int
20929main ()
20930{
20931
20932  ;
20933  return 0;
20934}
20935_ACEOF
20936rm -f conftest.$ac_objext
20937if { (ac_try="$ac_compile"
20938case "(($ac_try" in
20939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940  *) ac_try_echo=$ac_try;;
20941esac
20942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20943$as_echo "$ac_try_echo") >&5
20944  (eval "$ac_compile") 2>conftest.er1
20945  ac_status=$?
20946  grep -v '^ *+' conftest.er1 >conftest.err
20947  rm -f conftest.er1
20948  cat conftest.err >&5
20949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950  (exit $ac_status); } && {
20951	 test -z "$ac_c_werror_flag" ||
20952	 test ! -s conftest.err
20953       } && test -s conftest.$ac_objext; then
20954  _EXT_CHECK=yes
20955else
20956  $as_echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959	_EXT_CHECK=no
20960fi
20961
20962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963	CFLAGS="$SAVE_CFLAGS"
20964	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20965$as_echo_n "checking if RANDR is defined... " >&6; }
20966	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20967$as_echo "$_EXT_CHECK" >&6; }
20968	if test "$_EXT_CHECK" != no; then
20969		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20970	fi
20971
20972
20973	SAVE_CFLAGS="$CFLAGS"
20974	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20975	cat >conftest.$ac_ext <<_ACEOF
20976/* confdefs.h.  */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h.  */
20981
20982#include "xorg-server.h"
20983#if !defined RENDER
20984#error RENDER not defined
20985#endif
20986
20987int
20988main ()
20989{
20990
20991  ;
20992  return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (ac_try="$ac_compile"
20997case "(($ac_try" in
20998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999  *) ac_try_echo=$ac_try;;
21000esac
21001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21002$as_echo "$ac_try_echo") >&5
21003  (eval "$ac_compile") 2>conftest.er1
21004  ac_status=$?
21005  grep -v '^ *+' conftest.er1 >conftest.err
21006  rm -f conftest.er1
21007  cat conftest.err >&5
21008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009  (exit $ac_status); } && {
21010	 test -z "$ac_c_werror_flag" ||
21011	 test ! -s conftest.err
21012       } && test -s conftest.$ac_objext; then
21013  _EXT_CHECK=yes
21014else
21015  $as_echo "$as_me: failed program was:" >&5
21016sed 's/^/| /' conftest.$ac_ext >&5
21017
21018	_EXT_CHECK=no
21019fi
21020
21021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022	CFLAGS="$SAVE_CFLAGS"
21023	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21024$as_echo_n "checking if RENDER is defined... " >&6; }
21025	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21026$as_echo "$_EXT_CHECK" >&6; }
21027	if test "$_EXT_CHECK" != no; then
21028		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21029	fi
21030
21031
21032	SAVE_CFLAGS="$CFLAGS"
21033	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21034	cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h.  */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h.  */
21040
21041#include "xorg-server.h"
21042#if !defined XV
21043#error XV not defined
21044#endif
21045
21046int
21047main ()
21048{
21049
21050  ;
21051  return 0;
21052}
21053_ACEOF
21054rm -f conftest.$ac_objext
21055if { (ac_try="$ac_compile"
21056case "(($ac_try" in
21057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058  *) ac_try_echo=$ac_try;;
21059esac
21060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21061$as_echo "$ac_try_echo") >&5
21062  (eval "$ac_compile") 2>conftest.er1
21063  ac_status=$?
21064  grep -v '^ *+' conftest.er1 >conftest.err
21065  rm -f conftest.er1
21066  cat conftest.err >&5
21067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068  (exit $ac_status); } && {
21069	 test -z "$ac_c_werror_flag" ||
21070	 test ! -s conftest.err
21071       } && test -s conftest.$ac_objext; then
21072  _EXT_CHECK=yes
21073else
21074  $as_echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
21076
21077	_EXT_CHECK=no
21078fi
21079
21080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21081	CFLAGS="$SAVE_CFLAGS"
21082	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21083$as_echo_n "checking if XV is defined... " >&6; }
21084	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21085$as_echo "$_EXT_CHECK" >&6; }
21086	if test "$_EXT_CHECK" != no; then
21087		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21088	fi
21089
21090
21091	SAVE_CFLAGS="$CFLAGS"
21092	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21093	cat >conftest.$ac_ext <<_ACEOF
21094/* confdefs.h.  */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h.  */
21099
21100#include "xorg-server.h"
21101#if !defined XF86DRI
21102#error XF86DRI not defined
21103#endif
21104
21105int
21106main ()
21107{
21108
21109  ;
21110  return 0;
21111}
21112_ACEOF
21113rm -f conftest.$ac_objext
21114if { (ac_try="$ac_compile"
21115case "(($ac_try" in
21116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117  *) ac_try_echo=$ac_try;;
21118esac
21119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21120$as_echo "$ac_try_echo") >&5
21121  (eval "$ac_compile") 2>conftest.er1
21122  ac_status=$?
21123  grep -v '^ *+' conftest.er1 >conftest.err
21124  rm -f conftest.er1
21125  cat conftest.err >&5
21126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127  (exit $ac_status); } && {
21128	 test -z "$ac_c_werror_flag" ||
21129	 test ! -s conftest.err
21130       } && test -s conftest.$ac_objext; then
21131  _EXT_CHECK=yes
21132else
21133  $as_echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136	_EXT_CHECK=no
21137fi
21138
21139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140	CFLAGS="$SAVE_CFLAGS"
21141	{ $as_echo "$as_me:$LINENO: checking if XF86DRI is defined" >&5
21142$as_echo_n "checking if XF86DRI is defined... " >&6; }
21143	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21144$as_echo "$_EXT_CHECK" >&6; }
21145	if test "$_EXT_CHECK" != no; then
21146		REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
21147	fi
21148
21149
21150	SAVE_CFLAGS="$CFLAGS"
21151	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21152	cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h.  */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h.  */
21158
21159#include "xorg-server.h"
21160#if !defined DPMSExtension
21161#error DPMSExtension not defined
21162#endif
21163
21164int
21165main ()
21166{
21167
21168  ;
21169  return 0;
21170}
21171_ACEOF
21172rm -f conftest.$ac_objext
21173if { (ac_try="$ac_compile"
21174case "(($ac_try" in
21175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176  *) ac_try_echo=$ac_try;;
21177esac
21178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21179$as_echo "$ac_try_echo") >&5
21180  (eval "$ac_compile") 2>conftest.er1
21181  ac_status=$?
21182  grep -v '^ *+' conftest.er1 >conftest.err
21183  rm -f conftest.er1
21184  cat conftest.err >&5
21185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186  (exit $ac_status); } && {
21187	 test -z "$ac_c_werror_flag" ||
21188	 test ! -s conftest.err
21189       } && test -s conftest.$ac_objext; then
21190  _EXT_CHECK=yes
21191else
21192  $as_echo "$as_me: failed program was:" >&5
21193sed 's/^/| /' conftest.$ac_ext >&5
21194
21195	_EXT_CHECK=no
21196fi
21197
21198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199	CFLAGS="$SAVE_CFLAGS"
21200	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21201$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21202	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21203$as_echo "$_EXT_CHECK" >&6; }
21204	if test "$_EXT_CHECK" != no; then
21205		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21206	fi
21207
21208
21209# Checks for pkg-config packages
21210
21211
21212if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21213	if test -n "$ac_tool_prefix"; then
21214  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21215set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21217$as_echo_n "checking for $ac_word... " >&6; }
21218if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21219  $as_echo_n "(cached) " >&6
21220else
21221  case $PKG_CONFIG in
21222  [\\/]* | ?:[\\/]*)
21223  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21224  ;;
21225  *)
21226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21227for as_dir in $PATH
21228do
21229  IFS=$as_save_IFS
21230  test -z "$as_dir" && as_dir=.
21231  for ac_exec_ext in '' $ac_executable_extensions; do
21232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21233    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21234    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21235    break 2
21236  fi
21237done
21238done
21239IFS=$as_save_IFS
21240
21241  ;;
21242esac
21243fi
21244PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21245if test -n "$PKG_CONFIG"; then
21246  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21247$as_echo "$PKG_CONFIG" >&6; }
21248else
21249  { $as_echo "$as_me:$LINENO: result: no" >&5
21250$as_echo "no" >&6; }
21251fi
21252
21253
21254fi
21255if test -z "$ac_cv_path_PKG_CONFIG"; then
21256  ac_pt_PKG_CONFIG=$PKG_CONFIG
21257  # Extract the first word of "pkg-config", so it can be a program name with args.
21258set dummy pkg-config; ac_word=$2
21259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21260$as_echo_n "checking for $ac_word... " >&6; }
21261if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21262  $as_echo_n "(cached) " >&6
21263else
21264  case $ac_pt_PKG_CONFIG in
21265  [\\/]* | ?:[\\/]*)
21266  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21267  ;;
21268  *)
21269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21270for as_dir in $PATH
21271do
21272  IFS=$as_save_IFS
21273  test -z "$as_dir" && as_dir=.
21274  for ac_exec_ext in '' $ac_executable_extensions; do
21275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21276    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21277    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21278    break 2
21279  fi
21280done
21281done
21282IFS=$as_save_IFS
21283
21284  ;;
21285esac
21286fi
21287ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21288if test -n "$ac_pt_PKG_CONFIG"; then
21289  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21290$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21291else
21292  { $as_echo "$as_me:$LINENO: result: no" >&5
21293$as_echo "no" >&6; }
21294fi
21295
21296  if test "x$ac_pt_PKG_CONFIG" = x; then
21297    PKG_CONFIG=""
21298  else
21299    case $cross_compiling:$ac_tool_warned in
21300yes:)
21301{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21303ac_tool_warned=yes ;;
21304esac
21305    PKG_CONFIG=$ac_pt_PKG_CONFIG
21306  fi
21307else
21308  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21309fi
21310
21311fi
21312if test -n "$PKG_CONFIG"; then
21313	_pkg_min_version=0.9.0
21314	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21315$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21316	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21317		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21318$as_echo "yes" >&6; }
21319	else
21320		{ $as_echo "$as_me:$LINENO: result: no" >&5
21321$as_echo "no" >&6; }
21322		PKG_CONFIG=""
21323	fi
21324
21325fi
21326
21327pkg_failed=no
21328{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21329$as_echo_n "checking for XORG... " >&6; }
21330
21331if test -n "$XORG_CFLAGS"; then
21332    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21333 elif test -n "$PKG_CONFIG"; then
21334    if test -n "$PKG_CONFIG" && \
21335    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm \$REQUIRED_MODULES\"") >&5
21336  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
21337  ac_status=$?
21338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339  (exit $ac_status); }; then
21340  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
21341else
21342  pkg_failed=yes
21343fi
21344 else
21345    pkg_failed=untried
21346fi
21347if test -n "$XORG_LIBS"; then
21348    pkg_cv_XORG_LIBS="$XORG_LIBS"
21349 elif test -n "$PKG_CONFIG"; then
21350    if test -n "$PKG_CONFIG" && \
21351    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm \$REQUIRED_MODULES\"") >&5
21352  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
21353  ac_status=$?
21354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355  (exit $ac_status); }; then
21356  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
21357else
21358  pkg_failed=yes
21359fi
21360 else
21361    pkg_failed=untried
21362fi
21363
21364
21365
21366if test $pkg_failed = yes; then
21367
21368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21369        _pkg_short_errors_supported=yes
21370else
21371        _pkg_short_errors_supported=no
21372fi
21373        if test $_pkg_short_errors_supported = yes; then
21374	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
21375        else
21376	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
21377        fi
21378	# Put the nasty error message in config.log where it belongs
21379	echo "$XORG_PKG_ERRORS" >&5
21380
21381	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto libdrm $REQUIRED_MODULES) were not met:
21382
21383$XORG_PKG_ERRORS
21384
21385Consider adjusting the PKG_CONFIG_PATH environment variable if you
21386installed software in a non-standard prefix.
21387
21388Alternatively, you may set the environment variables XORG_CFLAGS
21389and XORG_LIBS to avoid the need to call pkg-config.
21390See the pkg-config man page for more details.
21391" >&5
21392$as_echo "$as_me: error: Package requirements (xorg-server xproto fontsproto libdrm $REQUIRED_MODULES) were not met:
21393
21394$XORG_PKG_ERRORS
21395
21396Consider adjusting the PKG_CONFIG_PATH environment variable if you
21397installed software in a non-standard prefix.
21398
21399Alternatively, you may set the environment variables XORG_CFLAGS
21400and XORG_LIBS to avoid the need to call pkg-config.
21401See the pkg-config man page for more details.
21402" >&2;}
21403   { (exit 1); exit 1; }; }
21404elif test $pkg_failed = untried; then
21405	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21407{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21408is in your PATH or set the PKG_CONFIG environment variable to the full
21409path to pkg-config.
21410
21411Alternatively, you may set the environment variables XORG_CFLAGS
21412and XORG_LIBS to avoid the need to call pkg-config.
21413See the pkg-config man page for more details.
21414
21415To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21416See \`config.log' for more details." >&5
21417$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21418is in your PATH or set the PKG_CONFIG environment variable to the full
21419path to pkg-config.
21420
21421Alternatively, you may set the environment variables XORG_CFLAGS
21422and XORG_LIBS to avoid the need to call pkg-config.
21423See the pkg-config man page for more details.
21424
21425To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21426See \`config.log' for more details." >&2;}
21427   { (exit 1); exit 1; }; }; }
21428else
21429	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21430	XORG_LIBS=$pkg_cv_XORG_LIBS
21431        { $as_echo "$as_me:$LINENO: result: yes" >&5
21432$as_echo "yes" >&6; }
21433	:
21434fi
21435
21436pkg_failed=no
21437{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
21438$as_echo_n "checking for XEXT... " >&6; }
21439
21440if test -n "$XEXT_CFLAGS"; then
21441    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
21442 elif test -n "$PKG_CONFIG"; then
21443    if test -n "$PKG_CONFIG" && \
21444    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21445  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21446  ac_status=$?
21447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448  (exit $ac_status); }; then
21449  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
21450else
21451  pkg_failed=yes
21452fi
21453 else
21454    pkg_failed=untried
21455fi
21456if test -n "$XEXT_LIBS"; then
21457    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
21458 elif test -n "$PKG_CONFIG"; then
21459    if test -n "$PKG_CONFIG" && \
21460    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21461  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21462  ac_status=$?
21463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464  (exit $ac_status); }; then
21465  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
21466else
21467  pkg_failed=yes
21468fi
21469 else
21470    pkg_failed=untried
21471fi
21472
21473
21474
21475if test $pkg_failed = yes; then
21476
21477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21478        _pkg_short_errors_supported=yes
21479else
21480        _pkg_short_errors_supported=no
21481fi
21482        if test $_pkg_short_errors_supported = yes; then
21483	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
21484        else
21485	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
21486        fi
21487	# Put the nasty error message in config.log where it belongs
21488	echo "$XEXT_PKG_ERRORS" >&5
21489
21490	{ $as_echo "$as_me:$LINENO: result: no" >&5
21491$as_echo "no" >&6; }
21492                HAVE_XEXTPROTO_71="no"
21493elif test $pkg_failed = untried; then
21494	HAVE_XEXTPROTO_71="no"
21495else
21496	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
21497	XEXT_LIBS=$pkg_cv_XEXT_LIBS
21498        { $as_echo "$as_me:$LINENO: result: yes" >&5
21499$as_echo "yes" >&6; }
21500	HAVE_XEXTPROTO_71="yes";
21501cat >>confdefs.h <<\_ACEOF
21502#define HAVE_XEXTPROTO_71 1
21503_ACEOF
21504
21505fi
21506 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
21507  HAVE_XEXTPROTO_71_TRUE=
21508  HAVE_XEXTPROTO_71_FALSE='#'
21509else
21510  HAVE_XEXTPROTO_71_TRUE='#'
21511  HAVE_XEXTPROTO_71_FALSE=
21512fi
21513
21514sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21515
21516# Checks for libraries.
21517
21518# Checks for header files.
21519{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21520$as_echo_n "checking for ANSI C header files... " >&6; }
21521if test "${ac_cv_header_stdc+set}" = set; then
21522  $as_echo_n "(cached) " >&6
21523else
21524  cat >conftest.$ac_ext <<_ACEOF
21525/* confdefs.h.  */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h.  */
21530#include <stdlib.h>
21531#include <stdarg.h>
21532#include <string.h>
21533#include <float.h>
21534
21535int
21536main ()
21537{
21538
21539  ;
21540  return 0;
21541}
21542_ACEOF
21543rm -f conftest.$ac_objext
21544if { (ac_try="$ac_compile"
21545case "(($ac_try" in
21546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547  *) ac_try_echo=$ac_try;;
21548esac
21549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21550$as_echo "$ac_try_echo") >&5
21551  (eval "$ac_compile") 2>conftest.er1
21552  ac_status=$?
21553  grep -v '^ *+' conftest.er1 >conftest.err
21554  rm -f conftest.er1
21555  cat conftest.err >&5
21556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557  (exit $ac_status); } && {
21558	 test -z "$ac_c_werror_flag" ||
21559	 test ! -s conftest.err
21560       } && test -s conftest.$ac_objext; then
21561  ac_cv_header_stdc=yes
21562else
21563  $as_echo "$as_me: failed program was:" >&5
21564sed 's/^/| /' conftest.$ac_ext >&5
21565
21566	ac_cv_header_stdc=no
21567fi
21568
21569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570
21571if test $ac_cv_header_stdc = yes; then
21572  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21573  cat >conftest.$ac_ext <<_ACEOF
21574/* confdefs.h.  */
21575_ACEOF
21576cat confdefs.h >>conftest.$ac_ext
21577cat >>conftest.$ac_ext <<_ACEOF
21578/* end confdefs.h.  */
21579#include <string.h>
21580
21581_ACEOF
21582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21583  $EGREP "memchr" >/dev/null 2>&1; then
21584  :
21585else
21586  ac_cv_header_stdc=no
21587fi
21588rm -f conftest*
21589
21590fi
21591
21592if test $ac_cv_header_stdc = yes; then
21593  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21594  cat >conftest.$ac_ext <<_ACEOF
21595/* confdefs.h.  */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h.  */
21600#include <stdlib.h>
21601
21602_ACEOF
21603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21604  $EGREP "free" >/dev/null 2>&1; then
21605  :
21606else
21607  ac_cv_header_stdc=no
21608fi
21609rm -f conftest*
21610
21611fi
21612
21613if test $ac_cv_header_stdc = yes; then
21614  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21615  if test "$cross_compiling" = yes; then
21616  :
21617else
21618  cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h.  */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h.  */
21624#include <ctype.h>
21625#include <stdlib.h>
21626#if ((' ' & 0x0FF) == 0x020)
21627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21629#else
21630# define ISLOWER(c) \
21631		   (('a' <= (c) && (c) <= 'i') \
21632		     || ('j' <= (c) && (c) <= 'r') \
21633		     || ('s' <= (c) && (c) <= 'z'))
21634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21635#endif
21636
21637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21638int
21639main ()
21640{
21641  int i;
21642  for (i = 0; i < 256; i++)
21643    if (XOR (islower (i), ISLOWER (i))
21644	|| toupper (i) != TOUPPER (i))
21645      return 2;
21646  return 0;
21647}
21648_ACEOF
21649rm -f conftest$ac_exeext
21650if { (ac_try="$ac_link"
21651case "(($ac_try" in
21652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653  *) ac_try_echo=$ac_try;;
21654esac
21655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21656$as_echo "$ac_try_echo") >&5
21657  (eval "$ac_link") 2>&5
21658  ac_status=$?
21659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21661  { (case "(($ac_try" in
21662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663  *) ac_try_echo=$ac_try;;
21664esac
21665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21666$as_echo "$ac_try_echo") >&5
21667  (eval "$ac_try") 2>&5
21668  ac_status=$?
21669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670  (exit $ac_status); }; }; then
21671  :
21672else
21673  $as_echo "$as_me: program exited with status $ac_status" >&5
21674$as_echo "$as_me: failed program was:" >&5
21675sed 's/^/| /' conftest.$ac_ext >&5
21676
21677( exit $ac_status )
21678ac_cv_header_stdc=no
21679fi
21680rm -rf conftest.dSYM
21681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21682fi
21683
21684
21685fi
21686fi
21687{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21688$as_echo "$ac_cv_header_stdc" >&6; }
21689if test $ac_cv_header_stdc = yes; then
21690
21691cat >>confdefs.h <<\_ACEOF
21692#define STDC_HEADERS 1
21693_ACEOF
21694
21695fi
21696
21697{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
21698$as_echo_n "checking for xf86Modes.h... " >&6; }
21699if test "${ac_cv_header_xf86Modes_h+set}" = set; then
21700  $as_echo_n "(cached) " >&6
21701else
21702  cat >conftest.$ac_ext <<_ACEOF
21703/* confdefs.h.  */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h.  */
21708#include "xorg-server.h"
21709
21710#include <xf86Modes.h>
21711_ACEOF
21712rm -f conftest.$ac_objext
21713if { (ac_try="$ac_compile"
21714case "(($ac_try" in
21715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716  *) ac_try_echo=$ac_try;;
21717esac
21718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21719$as_echo "$ac_try_echo") >&5
21720  (eval "$ac_compile") 2>conftest.er1
21721  ac_status=$?
21722  grep -v '^ *+' conftest.er1 >conftest.err
21723  rm -f conftest.er1
21724  cat conftest.err >&5
21725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726  (exit $ac_status); } && {
21727	 test -z "$ac_c_werror_flag" ||
21728	 test ! -s conftest.err
21729       } && test -s conftest.$ac_objext; then
21730  ac_cv_header_xf86Modes_h=yes
21731else
21732  $as_echo "$as_me: failed program was:" >&5
21733sed 's/^/| /' conftest.$ac_ext >&5
21734
21735	ac_cv_header_xf86Modes_h=no
21736fi
21737
21738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21739fi
21740{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
21741$as_echo "$ac_cv_header_xf86Modes_h" >&6; }
21742if test "x$ac_cv_header_xf86Modes_h" = x""yes; then
21743  XMODES=yes
21744else
21745  XMODES=no
21746fi
21747
21748
21749{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21750$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21751if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21752  $as_echo_n "(cached) " >&6
21753else
21754  cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h.  */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h.  */
21760#include "xorg/xorg-server.h"
21761
21762int
21763main ()
21764{
21765#ifndef XSERVER_LIBPCIACCESS
21766  (void) XSERVER_LIBPCIACCESS;
21767#endif
21768
21769  ;
21770  return 0;
21771}
21772_ACEOF
21773rm -f conftest.$ac_objext
21774if { (ac_try="$ac_compile"
21775case "(($ac_try" in
21776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777  *) ac_try_echo=$ac_try;;
21778esac
21779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21780$as_echo "$ac_try_echo") >&5
21781  (eval "$ac_compile") 2>conftest.er1
21782  ac_status=$?
21783  grep -v '^ *+' conftest.er1 >conftest.err
21784  rm -f conftest.er1
21785  cat conftest.err >&5
21786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787  (exit $ac_status); } && {
21788	 test -z "$ac_c_werror_flag" ||
21789	 test ! -s conftest.err
21790       } && test -s conftest.$ac_objext; then
21791  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21792else
21793  $as_echo "$as_me: failed program was:" >&5
21794sed 's/^/| /' conftest.$ac_ext >&5
21795
21796	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21797fi
21798
21799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800fi
21801{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21802$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21803if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21804  XSERVER_LIBPCIACCESS=yes
21805else
21806  XSERVER_LIBPCIACCESS=no
21807fi
21808
21809
21810if test x$XSERVER_LIBPCIACCESS = xyes; then
21811
21812pkg_failed=no
21813{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21814$as_echo_n "checking for PCIACCESS... " >&6; }
21815
21816if test -n "$PCIACCESS_CFLAGS"; then
21817    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21818 elif test -n "$PKG_CONFIG"; then
21819    if test -n "$PKG_CONFIG" && \
21820    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21821  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21822  ac_status=$?
21823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824  (exit $ac_status); }; then
21825  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21826else
21827  pkg_failed=yes
21828fi
21829 else
21830    pkg_failed=untried
21831fi
21832if test -n "$PCIACCESS_LIBS"; then
21833    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21834 elif test -n "$PKG_CONFIG"; then
21835    if test -n "$PKG_CONFIG" && \
21836    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21837  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21838  ac_status=$?
21839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840  (exit $ac_status); }; then
21841  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21842else
21843  pkg_failed=yes
21844fi
21845 else
21846    pkg_failed=untried
21847fi
21848
21849
21850
21851if test $pkg_failed = yes; then
21852
21853if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21854        _pkg_short_errors_supported=yes
21855else
21856        _pkg_short_errors_supported=no
21857fi
21858        if test $_pkg_short_errors_supported = yes; then
21859	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21860        else
21861	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21862        fi
21863	# Put the nasty error message in config.log where it belongs
21864	echo "$PCIACCESS_PKG_ERRORS" >&5
21865
21866	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21867
21868$PCIACCESS_PKG_ERRORS
21869
21870Consider adjusting the PKG_CONFIG_PATH environment variable if you
21871installed software in a non-standard prefix.
21872
21873Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21874and PCIACCESS_LIBS to avoid the need to call pkg-config.
21875See the pkg-config man page for more details.
21876" >&5
21877$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21878
21879$PCIACCESS_PKG_ERRORS
21880
21881Consider adjusting the PKG_CONFIG_PATH environment variable if you
21882installed software in a non-standard prefix.
21883
21884Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21885and PCIACCESS_LIBS to avoid the need to call pkg-config.
21886See the pkg-config man page for more details.
21887" >&2;}
21888   { (exit 1); exit 1; }; }
21889elif test $pkg_failed = untried; then
21890	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21892{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21893is in your PATH or set the PKG_CONFIG environment variable to the full
21894path to pkg-config.
21895
21896Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21897and PCIACCESS_LIBS to avoid the need to call pkg-config.
21898See the pkg-config man page for more details.
21899
21900To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21901See \`config.log' for more details." >&5
21902$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21903is in your PATH or set the PKG_CONFIG environment variable to the full
21904path to pkg-config.
21905
21906Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21907and PCIACCESS_LIBS to avoid the need to call pkg-config.
21908See the pkg-config man page for more details.
21909
21910To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21911See \`config.log' for more details." >&2;}
21912   { (exit 1); exit 1; }; }; }
21913else
21914	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21915	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21916        { $as_echo "$as_me:$LINENO: result: yes" >&5
21917$as_echo "yes" >&6; }
21918	:
21919fi
21920fi
21921
21922if test "$DRI" != no; then
21923        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21924{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21925$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21926if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21927  $as_echo_n "(cached) " >&6
21928else
21929  test "$cross_compiling" = yes &&
21930  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21931$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21932   { (exit 1); exit 1; }; }
21933if test -r "${sdkdir}/dri.h"; then
21934  eval "$as_ac_File=yes"
21935else
21936  eval "$as_ac_File=no"
21937fi
21938fi
21939ac_res=`eval 'as_val=${'$as_ac_File'}
21940		 $as_echo "$as_val"'`
21941	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21942$as_echo "$ac_res" >&6; }
21943as_val=`eval 'as_val=${'$as_ac_File'}
21944		 $as_echo "$as_val"'`
21945   if test "x$as_val" = x""yes; then
21946  have_dri_h="yes"
21947else
21948  have_dri_h="no"
21949fi
21950
21951        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21952{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21953$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21954if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21955  $as_echo_n "(cached) " >&6
21956else
21957  test "$cross_compiling" = yes &&
21958  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21959$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21960   { (exit 1); exit 1; }; }
21961if test -r "${sdkdir}/sarea.h"; then
21962  eval "$as_ac_File=yes"
21963else
21964  eval "$as_ac_File=no"
21965fi
21966fi
21967ac_res=`eval 'as_val=${'$as_ac_File'}
21968		 $as_echo "$as_val"'`
21969	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21970$as_echo "$ac_res" >&6; }
21971as_val=`eval 'as_val=${'$as_ac_File'}
21972		 $as_echo "$as_val"'`
21973   if test "x$as_val" = x""yes; then
21974  have_sarea_h="yes"
21975else
21976  have_sarea_h="no"
21977fi
21978
21979        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21980{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21981$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21982if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21983  $as_echo_n "(cached) " >&6
21984else
21985  test "$cross_compiling" = yes &&
21986  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21987$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21988   { (exit 1); exit 1; }; }
21989if test -r "${sdkdir}/dristruct.h"; then
21990  eval "$as_ac_File=yes"
21991else
21992  eval "$as_ac_File=no"
21993fi
21994fi
21995ac_res=`eval 'as_val=${'$as_ac_File'}
21996		 $as_echo "$as_val"'`
21997	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21998$as_echo "$ac_res" >&6; }
21999as_val=`eval 'as_val=${'$as_ac_File'}
22000		 $as_echo "$as_val"'`
22001   if test "x$as_val" = x""yes; then
22002  have_dristruct_h="yes"
22003else
22004  have_dristruct_h="no"
22005fi
22006
22007fi
22008
22009{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
22010$as_echo_n "checking whether to include DRI support... " >&6; }
22011if test x$DRI = xauto; then
22012        if test "$have_dri_h" = yes -a \
22013                "$have_sarea_h" = yes -a \
22014                "$have_dristruct_h" = yes; then
22015                DRI="yes"
22016        else
22017                DRI="no"
22018        fi
22019fi
22020{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
22021$as_echo "$DRI" >&6; }
22022
22023 if test x$DRI = xyes; then
22024  DRI_TRUE=
22025  DRI_FALSE='#'
22026else
22027  DRI_TRUE='#'
22028  DRI_FALSE=
22029fi
22030
22031if test "$DRI" = yes; then
22032
22033pkg_failed=no
22034{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
22035$as_echo_n "checking for DRI... " >&6; }
22036
22037if test -n "$DRI_CFLAGS"; then
22038    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
22039 elif test -n "$PKG_CONFIG"; then
22040    if test -n "$PKG_CONFIG" && \
22041    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto\"") >&5
22042  ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto") 2>&5
22043  ac_status=$?
22044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045  (exit $ac_status); }; then
22046  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm xf86driproto" 2>/dev/null`
22047else
22048  pkg_failed=yes
22049fi
22050 else
22051    pkg_failed=untried
22052fi
22053if test -n "$DRI_LIBS"; then
22054    pkg_cv_DRI_LIBS="$DRI_LIBS"
22055 elif test -n "$PKG_CONFIG"; then
22056    if test -n "$PKG_CONFIG" && \
22057    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto\"") >&5
22058  ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto") 2>&5
22059  ac_status=$?
22060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061  (exit $ac_status); }; then
22062  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm xf86driproto" 2>/dev/null`
22063else
22064  pkg_failed=yes
22065fi
22066 else
22067    pkg_failed=untried
22068fi
22069
22070
22071
22072if test $pkg_failed = yes; then
22073
22074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22075        _pkg_short_errors_supported=yes
22076else
22077        _pkg_short_errors_supported=no
22078fi
22079        if test $_pkg_short_errors_supported = yes; then
22080	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm xf86driproto" 2>&1`
22081        else
22082	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm xf86driproto" 2>&1`
22083        fi
22084	# Put the nasty error message in config.log where it belongs
22085	echo "$DRI_PKG_ERRORS" >&5
22086
22087	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm xf86driproto) were not met:
22088
22089$DRI_PKG_ERRORS
22090
22091Consider adjusting the PKG_CONFIG_PATH environment variable if you
22092installed software in a non-standard prefix.
22093
22094Alternatively, you may set the environment variables DRI_CFLAGS
22095and DRI_LIBS to avoid the need to call pkg-config.
22096See the pkg-config man page for more details.
22097" >&5
22098$as_echo "$as_me: error: Package requirements (libdrm xf86driproto) were not met:
22099
22100$DRI_PKG_ERRORS
22101
22102Consider adjusting the PKG_CONFIG_PATH environment variable if you
22103installed software in a non-standard prefix.
22104
22105Alternatively, you may set the environment variables DRI_CFLAGS
22106and DRI_LIBS to avoid the need to call pkg-config.
22107See the pkg-config man page for more details.
22108" >&2;}
22109   { (exit 1); exit 1; }; }
22110elif test $pkg_failed = untried; then
22111	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22113{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22114is in your PATH or set the PKG_CONFIG environment variable to the full
22115path to pkg-config.
22116
22117Alternatively, you may set the environment variables DRI_CFLAGS
22118and DRI_LIBS to avoid the need to call pkg-config.
22119See the pkg-config man page for more details.
22120
22121To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22122See \`config.log' for more details." >&5
22123$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22124is in your PATH or set the PKG_CONFIG environment variable to the full
22125path to pkg-config.
22126
22127Alternatively, you may set the environment variables DRI_CFLAGS
22128and DRI_LIBS to avoid the need to call pkg-config.
22129See the pkg-config man page for more details.
22130
22131To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22132See \`config.log' for more details." >&2;}
22133   { (exit 1); exit 1; }; }; }
22134else
22135	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
22136	DRI_LIBS=$pkg_cv_DRI_LIBS
22137        { $as_echo "$as_me:$LINENO: result: yes" >&5
22138$as_echo "yes" >&6; }
22139	:
22140fi
22141
22142cat >>confdefs.h <<\_ACEOF
22143#define XF86DRI 1
22144_ACEOF
22145
22146
22147cat >>confdefs.h <<\_ACEOF
22148#define XF86DRI_DEVEL 1
22149_ACEOF
22150
22151        case "$host_cpu" in
22152            i*86)
22153                XVMC=yes ;;
22154            amd64*|x86_64*)
22155                XVMC=yes ;;
22156            *)
22157                XVMC=no ;;
22158        esac
22159else
22160        XVMC="no"
22161fi
22162
22163if test "x$XVMC" = xyes; then
22164
22165
22166
22167
22168for ac_header in pthread.h sys/ioctl.h sys/time.h time.h
22169do
22170as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22173$as_echo_n "checking for $ac_header... " >&6; }
22174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22175  $as_echo_n "(cached) " >&6
22176fi
22177ac_res=`eval 'as_val=${'$as_ac_Header'}
22178		 $as_echo "$as_val"'`
22179	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22180$as_echo "$ac_res" >&6; }
22181else
22182  # Is the header compilable?
22183{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22184$as_echo_n "checking $ac_header usability... " >&6; }
22185cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h.  */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h.  */
22191$ac_includes_default
22192#include <$ac_header>
22193_ACEOF
22194rm -f conftest.$ac_objext
22195if { (ac_try="$ac_compile"
22196case "(($ac_try" in
22197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198  *) ac_try_echo=$ac_try;;
22199esac
22200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201$as_echo "$ac_try_echo") >&5
22202  (eval "$ac_compile") 2>conftest.er1
22203  ac_status=$?
22204  grep -v '^ *+' conftest.er1 >conftest.err
22205  rm -f conftest.er1
22206  cat conftest.err >&5
22207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208  (exit $ac_status); } && {
22209	 test -z "$ac_c_werror_flag" ||
22210	 test ! -s conftest.err
22211       } && test -s conftest.$ac_objext; then
22212  ac_header_compiler=yes
22213else
22214  $as_echo "$as_me: failed program was:" >&5
22215sed 's/^/| /' conftest.$ac_ext >&5
22216
22217	ac_header_compiler=no
22218fi
22219
22220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22222$as_echo "$ac_header_compiler" >&6; }
22223
22224# Is the header present?
22225{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22226$as_echo_n "checking $ac_header presence... " >&6; }
22227cat >conftest.$ac_ext <<_ACEOF
22228/* confdefs.h.  */
22229_ACEOF
22230cat confdefs.h >>conftest.$ac_ext
22231cat >>conftest.$ac_ext <<_ACEOF
22232/* end confdefs.h.  */
22233#include <$ac_header>
22234_ACEOF
22235if { (ac_try="$ac_cpp conftest.$ac_ext"
22236case "(($ac_try" in
22237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238  *) ac_try_echo=$ac_try;;
22239esac
22240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241$as_echo "$ac_try_echo") >&5
22242  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22243  ac_status=$?
22244  grep -v '^ *+' conftest.er1 >conftest.err
22245  rm -f conftest.er1
22246  cat conftest.err >&5
22247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248  (exit $ac_status); } >/dev/null && {
22249	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22250	 test ! -s conftest.err
22251       }; then
22252  ac_header_preproc=yes
22253else
22254  $as_echo "$as_me: failed program was:" >&5
22255sed 's/^/| /' conftest.$ac_ext >&5
22256
22257  ac_header_preproc=no
22258fi
22259
22260rm -f conftest.err conftest.$ac_ext
22261{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22262$as_echo "$ac_header_preproc" >&6; }
22263
22264# So?  What about this header?
22265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22266  yes:no: )
22267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22268$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22270$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22271    ac_header_preproc=yes
22272    ;;
22273  no:yes:* )
22274    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22275$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22276    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22277$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22278    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22279$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22280    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22281$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22283$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22285$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22286    ( cat <<\_ASBOX
22287## ------------------------------------------------------ ##
22288## Report this to http://www.openchrome.org/trac/report/1 ##
22289## ------------------------------------------------------ ##
22290_ASBOX
22291     ) | sed "s/^/$as_me: WARNING:     /" >&2
22292    ;;
22293esac
22294{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22295$as_echo_n "checking for $ac_header... " >&6; }
22296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22297  $as_echo_n "(cached) " >&6
22298else
22299  eval "$as_ac_Header=\$ac_header_preproc"
22300fi
22301ac_res=`eval 'as_val=${'$as_ac_Header'}
22302		 $as_echo "$as_val"'`
22303	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22304$as_echo "$ac_res" >&6; }
22305
22306fi
22307as_val=`eval 'as_val=${'$as_ac_Header'}
22308		 $as_echo "$as_val"'`
22309   if test "x$as_val" = x""yes; then
22310  cat >>confdefs.h <<_ACEOF
22311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22312_ACEOF
22313
22314else
22315  XVMC="no"; break
22316fi
22317
22318done
22319
22320
22321pkg_failed=no
22322{ $as_echo "$as_me:$LINENO: checking for XVMC" >&5
22323$as_echo_n "checking for XVMC... " >&6; }
22324
22325if test -n "$XVMC_CFLAGS"; then
22326    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
22327 elif test -n "$PKG_CONFIG"; then
22328    if test -n "$PKG_CONFIG" && \
22329    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\"") >&5
22330  ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
22331  ac_status=$?
22332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333  (exit $ac_status); }; then
22334  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null`
22335else
22336  pkg_failed=yes
22337fi
22338 else
22339    pkg_failed=untried
22340fi
22341if test -n "$XVMC_LIBS"; then
22342    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
22343 elif test -n "$PKG_CONFIG"; then
22344    if test -n "$PKG_CONFIG" && \
22345    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\"") >&5
22346  ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
22347  ac_status=$?
22348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349  (exit $ac_status); }; then
22350  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null`
22351else
22352  pkg_failed=yes
22353fi
22354 else
22355    pkg_failed=untried
22356fi
22357
22358
22359
22360if test $pkg_failed = yes; then
22361
22362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22363        _pkg_short_errors_supported=yes
22364else
22365        _pkg_short_errors_supported=no
22366fi
22367        if test $_pkg_short_errors_supported = yes; then
22368	        XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xvmc" 2>&1`
22369        else
22370	        XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xvmc" 2>&1`
22371        fi
22372	# Put the nasty error message in config.log where it belongs
22373	echo "$XVMC_PKG_ERRORS" >&5
22374
22375	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xvmc) were not met:
22376
22377$XVMC_PKG_ERRORS
22378
22379Consider adjusting the PKG_CONFIG_PATH environment variable if you
22380installed software in a non-standard prefix.
22381
22382Alternatively, you may set the environment variables XVMC_CFLAGS
22383and XVMC_LIBS to avoid the need to call pkg-config.
22384See the pkg-config man page for more details.
22385" >&5
22386$as_echo "$as_me: error: Package requirements (x11 xext xvmc) were not met:
22387
22388$XVMC_PKG_ERRORS
22389
22390Consider adjusting the PKG_CONFIG_PATH environment variable if you
22391installed software in a non-standard prefix.
22392
22393Alternatively, you may set the environment variables XVMC_CFLAGS
22394and XVMC_LIBS to avoid the need to call pkg-config.
22395See the pkg-config man page for more details.
22396" >&2;}
22397   { (exit 1); exit 1; }; }
22398elif test $pkg_failed = untried; then
22399	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22401{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22402is in your PATH or set the PKG_CONFIG environment variable to the full
22403path to pkg-config.
22404
22405Alternatively, you may set the environment variables XVMC_CFLAGS
22406and XVMC_LIBS to avoid the need to call pkg-config.
22407See the pkg-config man page for more details.
22408
22409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22410See \`config.log' for more details." >&5
22411$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22412is in your PATH or set the PKG_CONFIG environment variable to the full
22413path to pkg-config.
22414
22415Alternatively, you may set the environment variables XVMC_CFLAGS
22416and XVMC_LIBS to avoid the need to call pkg-config.
22417See the pkg-config man page for more details.
22418
22419To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22420See \`config.log' for more details." >&2;}
22421   { (exit 1); exit 1; }; }; }
22422else
22423	XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
22424	XVMC_LIBS=$pkg_cv_XVMC_LIBS
22425        { $as_echo "$as_me:$LINENO: result: yes" >&5
22426$as_echo "yes" >&6; }
22427	:
22428fi
22429fi
22430
22431{ $as_echo "$as_me:$LINENO: checking whether to build XvMC driver support" >&5
22432$as_echo_n "checking whether to build XvMC driver support... " >&6; }
22433{ $as_echo "$as_me:$LINENO: result: $XVMC" >&5
22434$as_echo "$XVMC" >&6; }
22435
22436 if test x$XVMC = xyes; then
22437  XVMC_TRUE=
22438  XVMC_FALSE='#'
22439else
22440  XVMC_TRUE='#'
22441  XVMC_FALSE=
22442fi
22443
22444
22445# Check the ABI_VIDEODRV_VERSION
22446SAVE_CFLAGS="$CFLAGS"
22447CFLAGS="$CFLAGS $XORG_CFLAGS"
22448
22449 if test x$XSERVER_LIBPCIACCESS = xyes; then
22450  XSERVER_LIBPCIACCESS_TRUE=
22451  XSERVER_LIBPCIACCESS_FALSE='#'
22452else
22453  XSERVER_LIBPCIACCESS_TRUE='#'
22454  XSERVER_LIBPCIACCESS_FALSE=
22455fi
22456
22457if test "$XSERVER_LIBPCIACCESS" = yes; then
22458
22459cat >>confdefs.h <<\_ACEOF
22460#define XSERVER_LIBPCIACCESS 1
22461_ACEOF
22462
22463fi
22464
22465 if test x$DEBUG = xyes; then
22466  DEBUG_TRUE=
22467  DEBUG_FALSE='#'
22468else
22469  DEBUG_TRUE='#'
22470  DEBUG_FALSE=
22471fi
22472
22473if test "$DEBUG" = yes; then
22474
22475cat >>confdefs.h <<\_ACEOF
22476#define HAVE_DEBUG 1
22477_ACEOF
22478
22479fi
22480
22481 if test x$XV_DEBUG = xyes; then
22482  XV_DEBUG_TRUE=
22483  XV_DEBUG_FALSE='#'
22484else
22485  XV_DEBUG_TRUE='#'
22486  XV_DEBUG_FALSE=
22487fi
22488
22489if test "$XV_DEBUG" = yes; then
22490
22491cat >>confdefs.h <<\_ACEOF
22492#define XV_DEBUG 1
22493_ACEOF
22494
22495fi
22496
22497
22498
22499
22500
22501DRIVER_NAME=openchrome
22502
22503
22504
22505cat >>confdefs.h <<\_ACEOF
22506#define X_USE_LINEARFB 1
22507_ACEOF
22508
22509
22510cat >>confdefs.h <<\_ACEOF
22511#define X_USE_REGION_NULL 1
22512_ACEOF
22513
22514
22515cat >>confdefs.h <<\_ACEOF
22516#define X_HAVE_XAAGETROP 1
22517_ACEOF
22518
22519
22520cat >>confdefs.h <<\_ACEOF
22521#define X_NEED_I2CSTART 1
22522_ACEOF
22523
22524
22525DRIVER_MAN_SUFFIX="4"
22526
22527
22528
22529
22530# Check whether --with-release-version was given.
22531if test "${with_release_version+set}" = set; then
22532  withval=$with_release_version; RELEASE_VERSION="$withval"
22533else
22534  RELEASE_VERSION=""
22535fi
22536
22537	if test "x$RELEASE_VERSION" != "x"; then
22538		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22539		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22540		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22541$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22542	fi
22543
22544
22545ac_config_files="$ac_config_files Makefile libxvmc/Makefile man/Makefile src/Makefile"
22546
22547cat >confcache <<\_ACEOF
22548# This file is a shell script that caches the results of configure
22549# tests run on this system so they can be shared between configure
22550# scripts and configure runs, see configure's option --config-cache.
22551# It is not useful on other systems.  If it contains results you don't
22552# want to keep, you may remove or edit it.
22553#
22554# config.status only pays attention to the cache file if you give it
22555# the --recheck option to rerun configure.
22556#
22557# `ac_cv_env_foo' variables (set or unset) will be overridden when
22558# loading this file, other *unset* `ac_cv_foo' will be assigned the
22559# following values.
22560
22561_ACEOF
22562
22563# The following way of writing the cache mishandles newlines in values,
22564# but we know of no workaround that is simple, portable, and efficient.
22565# So, we kill variables containing newlines.
22566# Ultrix sh set writes to stderr and can't be redirected directly,
22567# and sets the high bit in the cache file unless we assign to the vars.
22568(
22569  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22570    eval ac_val=\$$ac_var
22571    case $ac_val in #(
22572    *${as_nl}*)
22573      case $ac_var in #(
22574      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22576      esac
22577      case $ac_var in #(
22578      _ | IFS | as_nl) ;; #(
22579      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22580      *) $as_unset $ac_var ;;
22581      esac ;;
22582    esac
22583  done
22584
22585  (set) 2>&1 |
22586    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22587    *${as_nl}ac_space=\ *)
22588      # `set' does not quote correctly, so add quotes (double-quote
22589      # substitution turns \\\\ into \\, and sed turns \\ into \).
22590      sed -n \
22591	"s/'/'\\\\''/g;
22592	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22593      ;; #(
22594    *)
22595      # `set' quotes correctly as required by POSIX, so do not add quotes.
22596      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22597      ;;
22598    esac |
22599    sort
22600) |
22601  sed '
22602     /^ac_cv_env_/b end
22603     t clear
22604     :clear
22605     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22606     t end
22607     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22608     :end' >>confcache
22609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22610  if test -w "$cache_file"; then
22611    test "x$cache_file" != "x/dev/null" &&
22612      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22613$as_echo "$as_me: updating cache $cache_file" >&6;}
22614    cat confcache >$cache_file
22615  else
22616    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22617$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22618  fi
22619fi
22620rm -f confcache
22621
22622test "x$prefix" = xNONE && prefix=$ac_default_prefix
22623# Let make expand exec_prefix.
22624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22625
22626DEFS=-DHAVE_CONFIG_H
22627
22628ac_libobjs=
22629ac_ltlibobjs=
22630for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22631  # 1. Remove the extension, and $U if already installed.
22632  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22633  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22634  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22635  #    will be set to the directory where LIBOBJS objects are built.
22636  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22637  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22638done
22639LIBOBJS=$ac_libobjs
22640
22641LTLIBOBJS=$ac_ltlibobjs
22642
22643
22644 if test -n "$EXEEXT"; then
22645  am__EXEEXT_TRUE=
22646  am__EXEEXT_FALSE='#'
22647else
22648  am__EXEEXT_TRUE='#'
22649  am__EXEEXT_FALSE=
22650fi
22651
22652if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22653  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22654Usually this means the macro was only invoked conditionally." >&5
22655$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22656Usually this means the macro was only invoked conditionally." >&2;}
22657   { (exit 1); exit 1; }; }
22658fi
22659if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22660  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22661Usually this means the macro was only invoked conditionally." >&5
22662$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22663Usually this means the macro was only invoked conditionally." >&2;}
22664   { (exit 1); exit 1; }; }
22665fi
22666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22667  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22668Usually this means the macro was only invoked conditionally." >&5
22669$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22670Usually this means the macro was only invoked conditionally." >&2;}
22671   { (exit 1); exit 1; }; }
22672fi
22673if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22674  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22675Usually this means the macro was only invoked conditionally." >&5
22676$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22677Usually this means the macro was only invoked conditionally." >&2;}
22678   { (exit 1); exit 1; }; }
22679fi
22680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22681  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22682Usually this means the macro was only invoked conditionally." >&5
22683$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22684Usually this means the macro was only invoked conditionally." >&2;}
22685   { (exit 1); exit 1; }; }
22686fi
22687if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
22688  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
22689Usually this means the macro was only invoked conditionally." >&5
22690$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
22691Usually this means the macro was only invoked conditionally." >&2;}
22692   { (exit 1); exit 1; }; }
22693fi
22694if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22695  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22696Usually this means the macro was only invoked conditionally." >&5
22697$as_echo "$as_me: error: conditional \"DRI\" was never defined.
22698Usually this means the macro was only invoked conditionally." >&2;}
22699   { (exit 1); exit 1; }; }
22700fi
22701if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
22702  { { $as_echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
22703Usually this means the macro was only invoked conditionally." >&5
22704$as_echo "$as_me: error: conditional \"XVMC\" was never defined.
22705Usually this means the macro was only invoked conditionally." >&2;}
22706   { (exit 1); exit 1; }; }
22707fi
22708if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22709  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22710Usually this means the macro was only invoked conditionally." >&5
22711$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22712Usually this means the macro was only invoked conditionally." >&2;}
22713   { (exit 1); exit 1; }; }
22714fi
22715if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
22716  { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
22717Usually this means the macro was only invoked conditionally." >&5
22718$as_echo "$as_me: error: conditional \"DEBUG\" was never defined.
22719Usually this means the macro was only invoked conditionally." >&2;}
22720   { (exit 1); exit 1; }; }
22721fi
22722if test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then
22723  { { $as_echo "$as_me:$LINENO: error: conditional \"XV_DEBUG\" was never defined.
22724Usually this means the macro was only invoked conditionally." >&5
22725$as_echo "$as_me: error: conditional \"XV_DEBUG\" was never defined.
22726Usually this means the macro was only invoked conditionally." >&2;}
22727   { (exit 1); exit 1; }; }
22728fi
22729
22730: ${CONFIG_STATUS=./config.status}
22731ac_write_fail=0
22732ac_clean_files_save=$ac_clean_files
22733ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22734{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22735$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22736cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22737#! $SHELL
22738# Generated by $as_me.
22739# Run this file to recreate the current configuration.
22740# Compiler output produced by configure, useful for debugging
22741# configure, is in config.log if it exists.
22742
22743debug=false
22744ac_cs_recheck=false
22745ac_cs_silent=false
22746SHELL=\${CONFIG_SHELL-$SHELL}
22747_ACEOF
22748
22749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22750## --------------------- ##
22751## M4sh Initialization.  ##
22752## --------------------- ##
22753
22754# Be more Bourne compatible
22755DUALCASE=1; export DUALCASE # for MKS sh
22756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22757  emulate sh
22758  NULLCMD=:
22759  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22760  # is contrary to our usage.  Disable this feature.
22761  alias -g '${1+"$@"}'='"$@"'
22762  setopt NO_GLOB_SUBST
22763else
22764  case `(set -o) 2>/dev/null` in
22765  *posix*) set -o posix ;;
22766esac
22767
22768fi
22769
22770
22771
22772
22773# PATH needs CR
22774# Avoid depending upon Character Ranges.
22775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22778as_cr_digits='0123456789'
22779as_cr_alnum=$as_cr_Letters$as_cr_digits
22780
22781as_nl='
22782'
22783export as_nl
22784# Printing a long string crashes Solaris 7 /usr/bin/printf.
22785as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22786as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22788if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22789  as_echo='printf %s\n'
22790  as_echo_n='printf %s'
22791else
22792  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22793    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22794    as_echo_n='/usr/ucb/echo -n'
22795  else
22796    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22797    as_echo_n_body='eval
22798      arg=$1;
22799      case $arg in
22800      *"$as_nl"*)
22801	expr "X$arg" : "X\\(.*\\)$as_nl";
22802	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22803      esac;
22804      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22805    '
22806    export as_echo_n_body
22807    as_echo_n='sh -c $as_echo_n_body as_echo'
22808  fi
22809  export as_echo_body
22810  as_echo='sh -c $as_echo_body as_echo'
22811fi
22812
22813# The user is always right.
22814if test "${PATH_SEPARATOR+set}" != set; then
22815  PATH_SEPARATOR=:
22816  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22817    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22818      PATH_SEPARATOR=';'
22819  }
22820fi
22821
22822# Support unset when possible.
22823if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22824  as_unset=unset
22825else
22826  as_unset=false
22827fi
22828
22829
22830# IFS
22831# We need space, tab and new line, in precisely that order.  Quoting is
22832# there to prevent editors from complaining about space-tab.
22833# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22834# splitting by setting IFS to empty value.)
22835IFS=" ""	$as_nl"
22836
22837# Find who we are.  Look in the path if we contain no directory separator.
22838case $0 in
22839  *[\\/]* ) as_myself=$0 ;;
22840  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22841for as_dir in $PATH
22842do
22843  IFS=$as_save_IFS
22844  test -z "$as_dir" && as_dir=.
22845  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22846done
22847IFS=$as_save_IFS
22848
22849     ;;
22850esac
22851# We did not find ourselves, most probably we were run as `sh COMMAND'
22852# in which case we are not to be found in the path.
22853if test "x$as_myself" = x; then
22854  as_myself=$0
22855fi
22856if test ! -f "$as_myself"; then
22857  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22858  { (exit 1); exit 1; }
22859fi
22860
22861# Work around bugs in pre-3.0 UWIN ksh.
22862for as_var in ENV MAIL MAILPATH
22863do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22864done
22865PS1='$ '
22866PS2='> '
22867PS4='+ '
22868
22869# NLS nuisances.
22870LC_ALL=C
22871export LC_ALL
22872LANGUAGE=C
22873export LANGUAGE
22874
22875# Required to use basename.
22876if expr a : '\(a\)' >/dev/null 2>&1 &&
22877   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22878  as_expr=expr
22879else
22880  as_expr=false
22881fi
22882
22883if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22884  as_basename=basename
22885else
22886  as_basename=false
22887fi
22888
22889
22890# Name of the executable.
22891as_me=`$as_basename -- "$0" ||
22892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22893	 X"$0" : 'X\(//\)$' \| \
22894	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22895$as_echo X/"$0" |
22896    sed '/^.*\/\([^/][^/]*\)\/*$/{
22897	    s//\1/
22898	    q
22899	  }
22900	  /^X\/\(\/\/\)$/{
22901	    s//\1/
22902	    q
22903	  }
22904	  /^X\/\(\/\).*/{
22905	    s//\1/
22906	    q
22907	  }
22908	  s/.*/./; q'`
22909
22910# CDPATH.
22911$as_unset CDPATH
22912
22913
22914
22915  as_lineno_1=$LINENO
22916  as_lineno_2=$LINENO
22917  test "x$as_lineno_1" != "x$as_lineno_2" &&
22918  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22919
22920  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22921  # uniformly replaced by the line number.  The first 'sed' inserts a
22922  # line-number line after each line using $LINENO; the second 'sed'
22923  # does the real work.  The second script uses 'N' to pair each
22924  # line-number line with the line containing $LINENO, and appends
22925  # trailing '-' during substitution so that $LINENO is not a special
22926  # case at line end.
22927  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22928  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22929  # E. McMahon (1931-1989) for sed's syntax.  :-)
22930  sed -n '
22931    p
22932    /[$]LINENO/=
22933  ' <$as_myself |
22934    sed '
22935      s/[$]LINENO.*/&-/
22936      t lineno
22937      b
22938      :lineno
22939      N
22940      :loop
22941      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22942      t loop
22943      s/-\n.*//
22944    ' >$as_me.lineno &&
22945  chmod +x "$as_me.lineno" ||
22946    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22947   { (exit 1); exit 1; }; }
22948
22949  # Don't try to exec as it changes $[0], causing all sort of problems
22950  # (the dirname of $[0] is not the place where we might find the
22951  # original and so on.  Autoconf is especially sensitive to this).
22952  . "./$as_me.lineno"
22953  # Exit status is that of the last command.
22954  exit
22955}
22956
22957
22958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22959  as_dirname=dirname
22960else
22961  as_dirname=false
22962fi
22963
22964ECHO_C= ECHO_N= ECHO_T=
22965case `echo -n x` in
22966-n*)
22967  case `echo 'x\c'` in
22968  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22969  *)   ECHO_C='\c';;
22970  esac;;
22971*)
22972  ECHO_N='-n';;
22973esac
22974if expr a : '\(a\)' >/dev/null 2>&1 &&
22975   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22976  as_expr=expr
22977else
22978  as_expr=false
22979fi
22980
22981rm -f conf$$ conf$$.exe conf$$.file
22982if test -d conf$$.dir; then
22983  rm -f conf$$.dir/conf$$.file
22984else
22985  rm -f conf$$.dir
22986  mkdir conf$$.dir 2>/dev/null
22987fi
22988if (echo >conf$$.file) 2>/dev/null; then
22989  if ln -s conf$$.file conf$$ 2>/dev/null; then
22990    as_ln_s='ln -s'
22991    # ... but there are two gotchas:
22992    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22993    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22994    # In both cases, we have to default to `cp -p'.
22995    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22996      as_ln_s='cp -p'
22997  elif ln conf$$.file conf$$ 2>/dev/null; then
22998    as_ln_s=ln
22999  else
23000    as_ln_s='cp -p'
23001  fi
23002else
23003  as_ln_s='cp -p'
23004fi
23005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23006rmdir conf$$.dir 2>/dev/null
23007
23008if mkdir -p . 2>/dev/null; then
23009  as_mkdir_p=:
23010else
23011  test -d ./-p && rmdir ./-p
23012  as_mkdir_p=false
23013fi
23014
23015if test -x / >/dev/null 2>&1; then
23016  as_test_x='test -x'
23017else
23018  if ls -dL / >/dev/null 2>&1; then
23019    as_ls_L_option=L
23020  else
23021    as_ls_L_option=
23022  fi
23023  as_test_x='
23024    eval sh -c '\''
23025      if test -d "$1"; then
23026	test -d "$1/.";
23027      else
23028	case $1 in
23029	-*)set "./$1";;
23030	esac;
23031	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23032	???[sx]*):;;*)false;;esac;fi
23033    '\'' sh
23034  '
23035fi
23036as_executable_p=$as_test_x
23037
23038# Sed expression to map a string onto a valid CPP name.
23039as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23040
23041# Sed expression to map a string onto a valid variable name.
23042as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23043
23044
23045exec 6>&1
23046
23047# Save the log message, to keep $[0] and so on meaningful, and to
23048# report actual input values of CONFIG_FILES etc. instead of their
23049# values after options handling.
23050ac_log="
23051This file was extended by xf86-video-openchrome $as_me 0.2.904, which was
23052generated by GNU Autoconf 2.63.  Invocation command line was
23053
23054  CONFIG_FILES    = $CONFIG_FILES
23055  CONFIG_HEADERS  = $CONFIG_HEADERS
23056  CONFIG_LINKS    = $CONFIG_LINKS
23057  CONFIG_COMMANDS = $CONFIG_COMMANDS
23058  $ $0 $@
23059
23060on `(hostname || uname -n) 2>/dev/null | sed 1q`
23061"
23062
23063_ACEOF
23064
23065case $ac_config_files in *"
23066"*) set x $ac_config_files; shift; ac_config_files=$*;;
23067esac
23068
23069case $ac_config_headers in *"
23070"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23071esac
23072
23073
23074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23075# Files that config.status was made for.
23076config_files="$ac_config_files"
23077config_headers="$ac_config_headers"
23078config_commands="$ac_config_commands"
23079
23080_ACEOF
23081
23082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23083ac_cs_usage="\
23084\`$as_me' instantiates files from templates according to the
23085current configuration.
23086
23087Usage: $0 [OPTION]... [FILE]...
23088
23089  -h, --help       print this help, then exit
23090  -V, --version    print version number and configuration settings, then exit
23091  -q, --quiet, --silent
23092                   do not print progress messages
23093  -d, --debug      don't remove temporary files
23094      --recheck    update $as_me by reconfiguring in the same conditions
23095      --file=FILE[:TEMPLATE]
23096                   instantiate the configuration file FILE
23097      --header=FILE[:TEMPLATE]
23098                   instantiate the configuration header FILE
23099
23100Configuration files:
23101$config_files
23102
23103Configuration headers:
23104$config_headers
23105
23106Configuration commands:
23107$config_commands
23108
23109Report bugs to <bug-autoconf@gnu.org>."
23110
23111_ACEOF
23112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23113ac_cs_version="\\
23114xf86-video-openchrome config.status 0.2.904
23115configured by $0, generated by GNU Autoconf 2.63,
23116  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23117
23118Copyright (C) 2008 Free Software Foundation, Inc.
23119This config.status script is free software; the Free Software Foundation
23120gives unlimited permission to copy, distribute and modify it."
23121
23122ac_pwd='$ac_pwd'
23123srcdir='$srcdir'
23124INSTALL='$INSTALL'
23125MKDIR_P='$MKDIR_P'
23126AWK='$AWK'
23127test -n "\$AWK" || AWK=awk
23128_ACEOF
23129
23130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23131# The default lists apply if the user does not specify any file.
23132ac_need_defaults=:
23133while test $# != 0
23134do
23135  case $1 in
23136  --*=*)
23137    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23138    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23139    ac_shift=:
23140    ;;
23141  *)
23142    ac_option=$1
23143    ac_optarg=$2
23144    ac_shift=shift
23145    ;;
23146  esac
23147
23148  case $ac_option in
23149  # Handling of the options.
23150  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23151    ac_cs_recheck=: ;;
23152  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23153    $as_echo "$ac_cs_version"; exit ;;
23154  --debug | --debu | --deb | --de | --d | -d )
23155    debug=: ;;
23156  --file | --fil | --fi | --f )
23157    $ac_shift
23158    case $ac_optarg in
23159    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23160    esac
23161    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23162    ac_need_defaults=false;;
23163  --header | --heade | --head | --hea )
23164    $ac_shift
23165    case $ac_optarg in
23166    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23167    esac
23168    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23169    ac_need_defaults=false;;
23170  --he | --h)
23171    # Conflict between --help and --header
23172    { $as_echo "$as_me: error: ambiguous option: $1
23173Try \`$0 --help' for more information." >&2
23174   { (exit 1); exit 1; }; };;
23175  --help | --hel | -h )
23176    $as_echo "$ac_cs_usage"; exit ;;
23177  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23178  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23179    ac_cs_silent=: ;;
23180
23181  # This is an error.
23182  -*) { $as_echo "$as_me: error: unrecognized option: $1
23183Try \`$0 --help' for more information." >&2
23184   { (exit 1); exit 1; }; } ;;
23185
23186  *) ac_config_targets="$ac_config_targets $1"
23187     ac_need_defaults=false ;;
23188
23189  esac
23190  shift
23191done
23192
23193ac_configure_extra_args=
23194
23195if $ac_cs_silent; then
23196  exec 6>/dev/null
23197  ac_configure_extra_args="$ac_configure_extra_args --silent"
23198fi
23199
23200_ACEOF
23201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23202if \$ac_cs_recheck; then
23203  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23204  shift
23205  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23206  CONFIG_SHELL='$SHELL'
23207  export CONFIG_SHELL
23208  exec "\$@"
23209fi
23210
23211_ACEOF
23212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23213exec 5>>config.log
23214{
23215  echo
23216  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23217## Running $as_me. ##
23218_ASBOX
23219  $as_echo "$ac_log"
23220} >&5
23221
23222_ACEOF
23223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23224#
23225# INIT-COMMANDS
23226#
23227AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23228
23229_ACEOF
23230
23231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23232
23233# Handling of arguments.
23234for ac_config_target in $ac_config_targets
23235do
23236  case $ac_config_target in
23237    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23238    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23239    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23240    "libxvmc/Makefile") CONFIG_FILES="$CONFIG_FILES libxvmc/Makefile" ;;
23241    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23242    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23243
23244  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23245$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23246   { (exit 1); exit 1; }; };;
23247  esac
23248done
23249
23250
23251# If the user did not use the arguments to specify the items to instantiate,
23252# then the envvar interface is used.  Set only those that are not.
23253# We use the long form for the default assignment because of an extremely
23254# bizarre bug on SunOS 4.1.3.
23255if $ac_need_defaults; then
23256  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23257  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23258  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23259fi
23260
23261# Have a temporary directory for convenience.  Make it in the build tree
23262# simply because there is no reason against having it here, and in addition,
23263# creating and moving files from /tmp can sometimes cause problems.
23264# Hook for its removal unless debugging.
23265# Note that there is a small window in which the directory will not be cleaned:
23266# after its creation but before its name has been assigned to `$tmp'.
23267$debug ||
23268{
23269  tmp=
23270  trap 'exit_status=$?
23271  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23272' 0
23273  trap '{ (exit 1); exit 1; }' 1 2 13 15
23274}
23275# Create a (secure) tmp directory for tmp files.
23276
23277{
23278  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23279  test -n "$tmp" && test -d "$tmp"
23280}  ||
23281{
23282  tmp=./conf$$-$RANDOM
23283  (umask 077 && mkdir "$tmp")
23284} ||
23285{
23286   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23287   { (exit 1); exit 1; }
23288}
23289
23290# Set up the scripts for CONFIG_FILES section.
23291# No need to generate them if there are no CONFIG_FILES.
23292# This happens for instance with `./config.status config.h'.
23293if test -n "$CONFIG_FILES"; then
23294
23295
23296ac_cr='
23297'
23298ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23299if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23300  ac_cs_awk_cr='\\r'
23301else
23302  ac_cs_awk_cr=$ac_cr
23303fi
23304
23305echo 'BEGIN {' >"$tmp/subs1.awk" &&
23306_ACEOF
23307
23308
23309{
23310  echo "cat >conf$$subs.awk <<_ACEOF" &&
23311  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23312  echo "_ACEOF"
23313} >conf$$subs.sh ||
23314  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23315$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23316   { (exit 1); exit 1; }; }
23317ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23318ac_delim='%!_!# '
23319for ac_last_try in false false false false false :; do
23320  . ./conf$$subs.sh ||
23321    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23322$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23323   { (exit 1); exit 1; }; }
23324
23325  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23326  if test $ac_delim_n = $ac_delim_num; then
23327    break
23328  elif $ac_last_try; then
23329    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23330$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23331   { (exit 1); exit 1; }; }
23332  else
23333    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23334  fi
23335done
23336rm -f conf$$subs.sh
23337
23338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23339cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23340_ACEOF
23341sed -n '
23342h
23343s/^/S["/; s/!.*/"]=/
23344p
23345g
23346s/^[^!]*!//
23347:repl
23348t repl
23349s/'"$ac_delim"'$//
23350t delim
23351:nl
23352h
23353s/\(.\{148\}\).*/\1/
23354t more1
23355s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23356p
23357n
23358b repl
23359:more1
23360s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23361p
23362g
23363s/.\{148\}//
23364t nl
23365:delim
23366h
23367s/\(.\{148\}\).*/\1/
23368t more2
23369s/["\\]/\\&/g; s/^/"/; s/$/"/
23370p
23371b
23372:more2
23373s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23374p
23375g
23376s/.\{148\}//
23377t delim
23378' <conf$$subs.awk | sed '
23379/^[^""]/{
23380  N
23381  s/\n//
23382}
23383' >>$CONFIG_STATUS || ac_write_fail=1
23384rm -f conf$$subs.awk
23385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23386_ACAWK
23387cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23388  for (key in S) S_is_set[key] = 1
23389  FS = ""
23390
23391}
23392{
23393  line = $ 0
23394  nfields = split(line, field, "@")
23395  substed = 0
23396  len = length(field[1])
23397  for (i = 2; i < nfields; i++) {
23398    key = field[i]
23399    keylen = length(key)
23400    if (S_is_set[key]) {
23401      value = S[key]
23402      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23403      len += length(value) + length(field[++i])
23404      substed = 1
23405    } else
23406      len += 1 + keylen
23407  }
23408
23409  print line
23410}
23411
23412_ACAWK
23413_ACEOF
23414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23415if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23416  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23417else
23418  cat
23419fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23420  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23421$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23422   { (exit 1); exit 1; }; }
23423_ACEOF
23424
23425# VPATH may cause trouble with some makes, so we remove $(srcdir),
23426# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23427# trailing colons and then remove the whole line if VPATH becomes empty
23428# (actually we leave an empty line to preserve line numbers).
23429if test "x$srcdir" = x.; then
23430  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23431s/:*\$(srcdir):*/:/
23432s/:*\${srcdir}:*/:/
23433s/:*@srcdir@:*/:/
23434s/^\([^=]*=[	 ]*\):*/\1/
23435s/:*$//
23436s/^[^=]*=[	 ]*$//
23437}'
23438fi
23439
23440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23441fi # test -n "$CONFIG_FILES"
23442
23443# Set up the scripts for CONFIG_HEADERS section.
23444# No need to generate them if there are no CONFIG_HEADERS.
23445# This happens for instance with `./config.status Makefile'.
23446if test -n "$CONFIG_HEADERS"; then
23447cat >"$tmp/defines.awk" <<\_ACAWK ||
23448BEGIN {
23449_ACEOF
23450
23451# Transform confdefs.h into an awk script `defines.awk', embedded as
23452# here-document in config.status, that substitutes the proper values into
23453# config.h.in to produce config.h.
23454
23455# Create a delimiter string that does not exist in confdefs.h, to ease
23456# handling of long lines.
23457ac_delim='%!_!# '
23458for ac_last_try in false false :; do
23459  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23460  if test -z "$ac_t"; then
23461    break
23462  elif $ac_last_try; then
23463    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23464$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23465   { (exit 1); exit 1; }; }
23466  else
23467    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23468  fi
23469done
23470
23471# For the awk script, D is an array of macro values keyed by name,
23472# likewise P contains macro parameters if any.  Preserve backslash
23473# newline sequences.
23474
23475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23476sed -n '
23477s/.\{148\}/&'"$ac_delim"'/g
23478t rset
23479:rset
23480s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23481t def
23482d
23483:def
23484s/\\$//
23485t bsnl
23486s/["\\]/\\&/g
23487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23488D["\1"]=" \3"/p
23489s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23490d
23491:bsnl
23492s/["\\]/\\&/g
23493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23494D["\1"]=" \3\\\\\\n"\\/p
23495t cont
23496s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23497t cont
23498d
23499:cont
23500n
23501s/.\{148\}/&'"$ac_delim"'/g
23502t clear
23503:clear
23504s/\\$//
23505t bsnlc
23506s/["\\]/\\&/g; s/^/"/; s/$/"/p
23507d
23508:bsnlc
23509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23510b cont
23511' <confdefs.h | sed '
23512s/'"$ac_delim"'/"\\\
23513"/g' >>$CONFIG_STATUS || ac_write_fail=1
23514
23515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23516  for (key in D) D_is_set[key] = 1
23517  FS = ""
23518}
23519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23520  line = \$ 0
23521  split(line, arg, " ")
23522  if (arg[1] == "#") {
23523    defundef = arg[2]
23524    mac1 = arg[3]
23525  } else {
23526    defundef = substr(arg[1], 2)
23527    mac1 = arg[2]
23528  }
23529  split(mac1, mac2, "(") #)
23530  macro = mac2[1]
23531  prefix = substr(line, 1, index(line, defundef) - 1)
23532  if (D_is_set[macro]) {
23533    # Preserve the white space surrounding the "#".
23534    print prefix "define", macro P[macro] D[macro]
23535    next
23536  } else {
23537    # Replace #undef with comments.  This is necessary, for example,
23538    # in the case of _POSIX_SOURCE, which is predefined and required
23539    # on some systems where configure will not decide to define it.
23540    if (defundef == "undef") {
23541      print "/*", prefix defundef, macro, "*/"
23542      next
23543    }
23544  }
23545}
23546{ print }
23547_ACAWK
23548_ACEOF
23549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23550  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23551$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23552   { (exit 1); exit 1; }; }
23553fi # test -n "$CONFIG_HEADERS"
23554
23555
23556eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23557shift
23558for ac_tag
23559do
23560  case $ac_tag in
23561  :[FHLC]) ac_mode=$ac_tag; continue;;
23562  esac
23563  case $ac_mode$ac_tag in
23564  :[FHL]*:*);;
23565  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23566$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23567   { (exit 1); exit 1; }; };;
23568  :[FH]-) ac_tag=-:-;;
23569  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23570  esac
23571  ac_save_IFS=$IFS
23572  IFS=:
23573  set x $ac_tag
23574  IFS=$ac_save_IFS
23575  shift
23576  ac_file=$1
23577  shift
23578
23579  case $ac_mode in
23580  :L) ac_source=$1;;
23581  :[FH])
23582    ac_file_inputs=
23583    for ac_f
23584    do
23585      case $ac_f in
23586      -) ac_f="$tmp/stdin";;
23587      *) # Look for the file first in the build tree, then in the source tree
23588	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23589	 # because $ac_f cannot contain `:'.
23590	 test -f "$ac_f" ||
23591	   case $ac_f in
23592	   [\\/$]*) false;;
23593	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23594	   esac ||
23595	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23596$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23597   { (exit 1); exit 1; }; };;
23598      esac
23599      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23600      ac_file_inputs="$ac_file_inputs '$ac_f'"
23601    done
23602
23603    # Let's still pretend it is `configure' which instantiates (i.e., don't
23604    # use $as_me), people would be surprised to read:
23605    #    /* config.h.  Generated by config.status.  */
23606    configure_input='Generated from '`
23607	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23608	`' by configure.'
23609    if test x"$ac_file" != x-; then
23610      configure_input="$ac_file.  $configure_input"
23611      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23612$as_echo "$as_me: creating $ac_file" >&6;}
23613    fi
23614    # Neutralize special characters interpreted by sed in replacement strings.
23615    case $configure_input in #(
23616    *\&* | *\|* | *\\* )
23617       ac_sed_conf_input=`$as_echo "$configure_input" |
23618       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23619    *) ac_sed_conf_input=$configure_input;;
23620    esac
23621
23622    case $ac_tag in
23623    *:-:* | *:-) cat >"$tmp/stdin" \
23624      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23625$as_echo "$as_me: error: could not create $ac_file" >&2;}
23626   { (exit 1); exit 1; }; } ;;
23627    esac
23628    ;;
23629  esac
23630
23631  ac_dir=`$as_dirname -- "$ac_file" ||
23632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633	 X"$ac_file" : 'X\(//\)[^/]' \| \
23634	 X"$ac_file" : 'X\(//\)$' \| \
23635	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23636$as_echo X"$ac_file" |
23637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638	    s//\1/
23639	    q
23640	  }
23641	  /^X\(\/\/\)[^/].*/{
23642	    s//\1/
23643	    q
23644	  }
23645	  /^X\(\/\/\)$/{
23646	    s//\1/
23647	    q
23648	  }
23649	  /^X\(\/\).*/{
23650	    s//\1/
23651	    q
23652	  }
23653	  s/.*/./; q'`
23654  { as_dir="$ac_dir"
23655  case $as_dir in #(
23656  -*) as_dir=./$as_dir;;
23657  esac
23658  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23659    as_dirs=
23660    while :; do
23661      case $as_dir in #(
23662      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23663      *) as_qdir=$as_dir;;
23664      esac
23665      as_dirs="'$as_qdir' $as_dirs"
23666      as_dir=`$as_dirname -- "$as_dir" ||
23667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668	 X"$as_dir" : 'X\(//\)[^/]' \| \
23669	 X"$as_dir" : 'X\(//\)$' \| \
23670	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23671$as_echo X"$as_dir" |
23672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23673	    s//\1/
23674	    q
23675	  }
23676	  /^X\(\/\/\)[^/].*/{
23677	    s//\1/
23678	    q
23679	  }
23680	  /^X\(\/\/\)$/{
23681	    s//\1/
23682	    q
23683	  }
23684	  /^X\(\/\).*/{
23685	    s//\1/
23686	    q
23687	  }
23688	  s/.*/./; q'`
23689      test -d "$as_dir" && break
23690    done
23691    test -z "$as_dirs" || eval "mkdir $as_dirs"
23692  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23693$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23694   { (exit 1); exit 1; }; }; }
23695  ac_builddir=.
23696
23697case "$ac_dir" in
23698.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23699*)
23700  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23701  # A ".." for each directory in $ac_dir_suffix.
23702  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23703  case $ac_top_builddir_sub in
23704  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23705  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23706  esac ;;
23707esac
23708ac_abs_top_builddir=$ac_pwd
23709ac_abs_builddir=$ac_pwd$ac_dir_suffix
23710# for backward compatibility:
23711ac_top_builddir=$ac_top_build_prefix
23712
23713case $srcdir in
23714  .)  # We are building in place.
23715    ac_srcdir=.
23716    ac_top_srcdir=$ac_top_builddir_sub
23717    ac_abs_top_srcdir=$ac_pwd ;;
23718  [\\/]* | ?:[\\/]* )  # Absolute name.
23719    ac_srcdir=$srcdir$ac_dir_suffix;
23720    ac_top_srcdir=$srcdir
23721    ac_abs_top_srcdir=$srcdir ;;
23722  *) # Relative name.
23723    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23724    ac_top_srcdir=$ac_top_build_prefix$srcdir
23725    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23726esac
23727ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23728
23729
23730  case $ac_mode in
23731  :F)
23732  #
23733  # CONFIG_FILE
23734  #
23735
23736  case $INSTALL in
23737  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23738  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23739  esac
23740  ac_MKDIR_P=$MKDIR_P
23741  case $MKDIR_P in
23742  [\\/$]* | ?:[\\/]* ) ;;
23743  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23744  esac
23745_ACEOF
23746
23747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23748# If the template does not know about datarootdir, expand it.
23749# FIXME: This hack should be removed a few years after 2.60.
23750ac_datarootdir_hack=; ac_datarootdir_seen=
23751
23752ac_sed_dataroot='
23753/datarootdir/ {
23754  p
23755  q
23756}
23757/@datadir@/p
23758/@docdir@/p
23759/@infodir@/p
23760/@localedir@/p
23761/@mandir@/p
23762'
23763case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23764*datarootdir*) ac_datarootdir_seen=yes;;
23765*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23766  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23767$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23768_ACEOF
23769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23770  ac_datarootdir_hack='
23771  s&@datadir@&$datadir&g
23772  s&@docdir@&$docdir&g
23773  s&@infodir@&$infodir&g
23774  s&@localedir@&$localedir&g
23775  s&@mandir@&$mandir&g
23776    s&\\\${datarootdir}&$datarootdir&g' ;;
23777esac
23778_ACEOF
23779
23780# Neutralize VPATH when `$srcdir' = `.'.
23781# Shell code in configure.ac might set extrasub.
23782# FIXME: do we really want to maintain this feature?
23783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23784ac_sed_extra="$ac_vpsub
23785$extrasub
23786_ACEOF
23787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23788:t
23789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23790s|@configure_input@|$ac_sed_conf_input|;t t
23791s&@top_builddir@&$ac_top_builddir_sub&;t t
23792s&@top_build_prefix@&$ac_top_build_prefix&;t t
23793s&@srcdir@&$ac_srcdir&;t t
23794s&@abs_srcdir@&$ac_abs_srcdir&;t t
23795s&@top_srcdir@&$ac_top_srcdir&;t t
23796s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23797s&@builddir@&$ac_builddir&;t t
23798s&@abs_builddir@&$ac_abs_builddir&;t t
23799s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23800s&@INSTALL@&$ac_INSTALL&;t t
23801s&@MKDIR_P@&$ac_MKDIR_P&;t t
23802$ac_datarootdir_hack
23803"
23804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23805  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23806$as_echo "$as_me: error: could not create $ac_file" >&2;}
23807   { (exit 1); exit 1; }; }
23808
23809test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23810  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23811  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23812  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23813which seems to be undefined.  Please make sure it is defined." >&5
23814$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23815which seems to be undefined.  Please make sure it is defined." >&2;}
23816
23817  rm -f "$tmp/stdin"
23818  case $ac_file in
23819  -) cat "$tmp/out" && rm -f "$tmp/out";;
23820  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23821  esac \
23822  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23823$as_echo "$as_me: error: could not create $ac_file" >&2;}
23824   { (exit 1); exit 1; }; }
23825 ;;
23826  :H)
23827  #
23828  # CONFIG_HEADER
23829  #
23830  if test x"$ac_file" != x-; then
23831    {
23832      $as_echo "/* $configure_input  */" \
23833      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23834    } >"$tmp/config.h" \
23835      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23836$as_echo "$as_me: error: could not create $ac_file" >&2;}
23837   { (exit 1); exit 1; }; }
23838    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23839      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23840$as_echo "$as_me: $ac_file is unchanged" >&6;}
23841    else
23842      rm -f "$ac_file"
23843      mv "$tmp/config.h" "$ac_file" \
23844	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23845$as_echo "$as_me: error: could not create $ac_file" >&2;}
23846   { (exit 1); exit 1; }; }
23847    fi
23848  else
23849    $as_echo "/* $configure_input  */" \
23850      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23851      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23852$as_echo "$as_me: error: could not create -" >&2;}
23853   { (exit 1); exit 1; }; }
23854  fi
23855# Compute "$ac_file"'s index in $config_headers.
23856_am_arg="$ac_file"
23857_am_stamp_count=1
23858for _am_header in $config_headers :; do
23859  case $_am_header in
23860    $_am_arg | $_am_arg:* )
23861      break ;;
23862    * )
23863      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23864  esac
23865done
23866echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23867$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23868	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23869	 X"$_am_arg" : 'X\(//\)$' \| \
23870	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23871$as_echo X"$_am_arg" |
23872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23873	    s//\1/
23874	    q
23875	  }
23876	  /^X\(\/\/\)[^/].*/{
23877	    s//\1/
23878	    q
23879	  }
23880	  /^X\(\/\/\)$/{
23881	    s//\1/
23882	    q
23883	  }
23884	  /^X\(\/\).*/{
23885	    s//\1/
23886	    q
23887	  }
23888	  s/.*/./; q'`/stamp-h$_am_stamp_count
23889 ;;
23890
23891  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23892$as_echo "$as_me: executing $ac_file commands" >&6;}
23893 ;;
23894  esac
23895
23896
23897  case $ac_file$ac_mode in
23898    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23899  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23900  # are listed without --file.  Let's play safe and only enable the eval
23901  # if we detect the quoting.
23902  case $CONFIG_FILES in
23903  *\'*) eval set x "$CONFIG_FILES" ;;
23904  *)   set x $CONFIG_FILES ;;
23905  esac
23906  shift
23907  for mf
23908  do
23909    # Strip MF so we end up with the name of the file.
23910    mf=`echo "$mf" | sed -e 's/:.*$//'`
23911    # Check whether this is an Automake generated Makefile or not.
23912    # We used to match only the files named `Makefile.in', but
23913    # some people rename them; so instead we look at the file content.
23914    # Grep'ing the first line is not enough: some people post-process
23915    # each Makefile.in and add a new line on top of each file to say so.
23916    # Grep'ing the whole file is not good either: AIX grep has a line
23917    # limit of 2048, but all sed's we know have understand at least 4000.
23918    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23919      dirpart=`$as_dirname -- "$mf" ||
23920$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23921	 X"$mf" : 'X\(//\)[^/]' \| \
23922	 X"$mf" : 'X\(//\)$' \| \
23923	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23924$as_echo X"$mf" |
23925    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23926	    s//\1/
23927	    q
23928	  }
23929	  /^X\(\/\/\)[^/].*/{
23930	    s//\1/
23931	    q
23932	  }
23933	  /^X\(\/\/\)$/{
23934	    s//\1/
23935	    q
23936	  }
23937	  /^X\(\/\).*/{
23938	    s//\1/
23939	    q
23940	  }
23941	  s/.*/./; q'`
23942    else
23943      continue
23944    fi
23945    # Extract the definition of DEPDIR, am__include, and am__quote
23946    # from the Makefile without running `make'.
23947    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23948    test -z "$DEPDIR" && continue
23949    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23950    test -z "am__include" && continue
23951    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23952    # When using ansi2knr, U may be empty or an underscore; expand it
23953    U=`sed -n 's/^U = //p' < "$mf"`
23954    # Find all dependency output files, they are included files with
23955    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23956    # simplest approach to changing $(DEPDIR) to its actual value in the
23957    # expansion.
23958    for file in `sed -n "
23959      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23960	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23961      # Make sure the directory exists.
23962      test -f "$dirpart/$file" && continue
23963      fdir=`$as_dirname -- "$file" ||
23964$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23965	 X"$file" : 'X\(//\)[^/]' \| \
23966	 X"$file" : 'X\(//\)$' \| \
23967	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23968$as_echo X"$file" |
23969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23970	    s//\1/
23971	    q
23972	  }
23973	  /^X\(\/\/\)[^/].*/{
23974	    s//\1/
23975	    q
23976	  }
23977	  /^X\(\/\/\)$/{
23978	    s//\1/
23979	    q
23980	  }
23981	  /^X\(\/\).*/{
23982	    s//\1/
23983	    q
23984	  }
23985	  s/.*/./; q'`
23986      { as_dir=$dirpart/$fdir
23987  case $as_dir in #(
23988  -*) as_dir=./$as_dir;;
23989  esac
23990  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23991    as_dirs=
23992    while :; do
23993      case $as_dir in #(
23994      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23995      *) as_qdir=$as_dir;;
23996      esac
23997      as_dirs="'$as_qdir' $as_dirs"
23998      as_dir=`$as_dirname -- "$as_dir" ||
23999$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24000	 X"$as_dir" : 'X\(//\)[^/]' \| \
24001	 X"$as_dir" : 'X\(//\)$' \| \
24002	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24003$as_echo X"$as_dir" |
24004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24005	    s//\1/
24006	    q
24007	  }
24008	  /^X\(\/\/\)[^/].*/{
24009	    s//\1/
24010	    q
24011	  }
24012	  /^X\(\/\/\)$/{
24013	    s//\1/
24014	    q
24015	  }
24016	  /^X\(\/\).*/{
24017	    s//\1/
24018	    q
24019	  }
24020	  s/.*/./; q'`
24021      test -d "$as_dir" && break
24022    done
24023    test -z "$as_dirs" || eval "mkdir $as_dirs"
24024  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24025$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24026   { (exit 1); exit 1; }; }; }
24027      # echo "creating $dirpart/$file"
24028      echo '# dummy' > "$dirpart/$file"
24029    done
24030  done
24031}
24032 ;;
24033
24034  esac
24035done # for ac_tag
24036
24037
24038{ (exit 0); exit 0; }
24039_ACEOF
24040chmod +x $CONFIG_STATUS
24041ac_clean_files=$ac_clean_files_save
24042
24043test $ac_write_fail = 0 ||
24044  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24045$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24046   { (exit 1); exit 1; }; }
24047
24048
24049# configure is writing to config.log, and then calls config.status.
24050# config.status does its own redirection, appending to config.log.
24051# Unfortunately, on DOS this fails, as config.log is still kept open
24052# by configure, so config.status won't be able to write to it; its
24053# output is simply discarded.  So we exec the FD to /dev/null,
24054# effectively closing config.log, so it can be properly (re)opened and
24055# appended to by config.status.  When coming back to configure, we
24056# need to make the FD available again.
24057if test "$no_create" != yes; then
24058  ac_cs_success=:
24059  ac_config_status_args=
24060  test "$silent" = yes &&
24061    ac_config_status_args="$ac_config_status_args --quiet"
24062  exec 5>/dev/null
24063  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24064  exec 5>>config.log
24065  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066  # would make configure fail if this is the last instruction.
24067  $ac_cs_success || { (exit 1); exit 1; }
24068fi
24069if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24070  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24071$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24072fi
24073
24074