configure revision 880ed95a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-tdfx 1.4.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='xf86-video-tdfx'
752PACKAGE_TARNAME='xf86-video-tdfx'
753PACKAGE_VERSION='1.4.1'
754PACKAGE_STRING='xf86-video-tdfx 1.4.1'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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='LTLIBOBJS
795LIBOBJS
796ADMIN_MAN_DIR
797DRIVER_MAN_DIR
798MISC_MAN_DIR
799FILE_MAN_DIR
800LIB_MAN_DIR
801APP_MAN_DIR
802ADMIN_MAN_SUFFIX
803DRIVER_MAN_SUFFIX
804MISC_MAN_SUFFIX
805FILE_MAN_SUFFIX
806LIB_MAN_SUFFIX
807APP_MAN_SUFFIX
808DRIVER_NAME
809moduledir
810XSERVER_LIBPCIACCESS_FALSE
811XSERVER_LIBPCIACCESS_TRUE
812PCIACCESS_LIBS
813PCIACCESS_CFLAGS
814DRI_LIBS
815DRI_CFLAGS
816DRI_FALSE
817DRI_TRUE
818XORG_LIBS
819XORG_CFLAGS
820PKG_CONFIG
821LIBTOOL
822ac_ct_F77
823FFLAGS
824F77
825CXXCPP
826am__fastdepCXX_FALSE
827am__fastdepCXX_TRUE
828CXXDEPMODE
829ac_ct_CXX
830CXXFLAGS
831CXX
832CPP
833NMEDIT
834DSYMUTIL
835RANLIB
836AR
837ECHO
838LN_S
839EGREP
840GREP
841SED
842am__fastdepCC_FALSE
843am__fastdepCC_TRUE
844CCDEPMODE
845AMDEPBACKSLASH
846AMDEP_FALSE
847AMDEP_TRUE
848am__quote
849am__include
850DEPDIR
851OBJEXT
852EXEEXT
853ac_ct_CC
854CPPFLAGS
855LDFLAGS
856CFLAGS
857CC
858host_os
859host_vendor
860host_cpu
861host
862build_os
863build_vendor
864build_cpu
865build
866MAINT
867MAINTAINER_MODE_FALSE
868MAINTAINER_MODE_TRUE
869am__untar
870am__tar
871AMTAR
872am__leading_dot
873SET_MAKE
874AWK
875mkdir_p
876MKDIR_P
877INSTALL_STRIP_PROGRAM
878STRIP
879install_sh
880MAKEINFO
881AUTOHEADER
882AUTOMAKE
883AUTOCONF
884ACLOCAL
885VERSION
886PACKAGE
887CYGPATH_W
888am__isrc
889INSTALL_DATA
890INSTALL_SCRIPT
891INSTALL_PROGRAM
892target_alias
893host_alias
894build_alias
895LIBS
896ECHO_T
897ECHO_N
898ECHO_C
899DEFS
900mandir
901localedir
902libdir
903psdir
904pdfdir
905dvidir
906htmldir
907infodir
908docdir
909oldincludedir
910includedir
911localstatedir
912sharedstatedir
913sysconfdir
914datadir
915datarootdir
916libexecdir
917sbindir
918bindir
919program_transform_name
920prefix
921exec_prefix
922PACKAGE_BUGREPORT
923PACKAGE_STRING
924PACKAGE_VERSION
925PACKAGE_TARNAME
926PACKAGE_NAME
927PATH_SEPARATOR
928SHELL'
929ac_subst_files=''
930ac_user_opts='
931enable_option_checking
932enable_maintainer_mode
933enable_static
934enable_shared
935enable_fast_install
936enable_dependency_tracking
937with_gnu_ld
938enable_libtool_lock
939with_pic
940with_tags
941with_xorg_module_dir
942enable_dri
943with_release_version
944'
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CPP
954CXX
955CXXFLAGS
956CCC
957CXXCPP
958F77
959FFLAGS
960PKG_CONFIG
961XORG_CFLAGS
962XORG_LIBS
963DRI_CFLAGS
964DRI_LIBS
965PCIACCESS_CFLAGS
966PCIACCESS_LIBS'
967
968
969# Initialize some variables set by options.
970ac_init_help=
971ac_init_version=false
972ac_unrecognized_opts=
973ac_unrecognized_sep=
974# The variables have the same names as the options, with
975# dashes changed to underlines.
976cache_file=/dev/null
977exec_prefix=NONE
978no_create=
979no_recursion=
980prefix=NONE
981program_prefix=NONE
982program_suffix=NONE
983program_transform_name=s,x,x,
984silent=
985site=
986srcdir=
987verbose=
988x_includes=NONE
989x_libraries=NONE
990
991# Installation directory options.
992# These are left unexpanded so users can "make install exec_prefix=/foo"
993# and all the variables that are supposed to be based on exec_prefix
994# by default will actually change.
995# Use braces instead of parens because sh, perl, etc. also accept them.
996# (The list follows the same order as the GNU Coding Standards.)
997bindir='${exec_prefix}/bin'
998sbindir='${exec_prefix}/sbin'
999libexecdir='${exec_prefix}/libexec'
1000datarootdir='${prefix}/share'
1001datadir='${datarootdir}'
1002sysconfdir='${prefix}/etc'
1003sharedstatedir='${prefix}/com'
1004localstatedir='${prefix}/var'
1005includedir='${prefix}/include'
1006oldincludedir='/usr/include'
1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008infodir='${datarootdir}/info'
1009htmldir='${docdir}'
1010dvidir='${docdir}'
1011pdfdir='${docdir}'
1012psdir='${docdir}'
1013libdir='${exec_prefix}/lib'
1014localedir='${datarootdir}/locale'
1015mandir='${datarootdir}/man'
1016
1017ac_prev=
1018ac_dashdash=
1019for ac_option
1020do
1021  # If the previous option needs an argument, assign it.
1022  if test -n "$ac_prev"; then
1023    eval $ac_prev=\$ac_option
1024    ac_prev=
1025    continue
1026  fi
1027
1028  case $ac_option in
1029  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030  *)	ac_optarg=yes ;;
1031  esac
1032
1033  # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035  case $ac_dashdash$ac_option in
1036  --)
1037    ac_dashdash=yes ;;
1038
1039  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040    ac_prev=bindir ;;
1041  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042    bindir=$ac_optarg ;;
1043
1044  -build | --build | --buil | --bui | --bu)
1045    ac_prev=build_alias ;;
1046  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047    build_alias=$ac_optarg ;;
1048
1049  -cache-file | --cache-file | --cache-fil | --cache-fi \
1050  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051    ac_prev=cache_file ;;
1052  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054    cache_file=$ac_optarg ;;
1055
1056  --config-cache | -C)
1057    cache_file=config.cache ;;
1058
1059  -datadir | --datadir | --datadi | --datad)
1060    ac_prev=datadir ;;
1061  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062    datadir=$ac_optarg ;;
1063
1064  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065  | --dataroo | --dataro | --datar)
1066    ac_prev=datarootdir ;;
1067  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069    datarootdir=$ac_optarg ;;
1070
1071  -disable-* | --disable-*)
1072    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076   { (exit 1); exit 1; }; }
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=no ;;
1087
1088  -docdir | --docdir | --docdi | --doc | --do)
1089    ac_prev=docdir ;;
1090  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091    docdir=$ac_optarg ;;
1092
1093  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094    ac_prev=dvidir ;;
1095  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096    dvidir=$ac_optarg ;;
1097
1098  -enable-* | --enable-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103   { (exit 1); exit 1; }; }
1104    ac_useropt_orig=$ac_useropt
1105    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106    case $ac_user_opts in
1107      *"
1108"enable_$ac_useropt"
1109"*) ;;
1110      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111	 ac_unrecognized_sep=', ';;
1112    esac
1113    eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117  | --exec | --exe | --ex)
1118    ac_prev=exec_prefix ;;
1119  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121  | --exec=* | --exe=* | --ex=*)
1122    exec_prefix=$ac_optarg ;;
1123
1124  -gas | --gas | --ga | --g)
1125    # Obsolete; use --with-gas.
1126    with_gas=yes ;;
1127
1128  -help | --help | --hel | --he | -h)
1129    ac_init_help=long ;;
1130  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131    ac_init_help=recursive ;;
1132  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133    ac_init_help=short ;;
1134
1135  -host | --host | --hos | --ho)
1136    ac_prev=host_alias ;;
1137  -host=* | --host=* | --hos=* | --ho=*)
1138    host_alias=$ac_optarg ;;
1139
1140  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141    ac_prev=htmldir ;;
1142  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143  | --ht=*)
1144    htmldir=$ac_optarg ;;
1145
1146  -includedir | --includedir | --includedi | --included | --include \
1147  | --includ | --inclu | --incl | --inc)
1148    ac_prev=includedir ;;
1149  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150  | --includ=* | --inclu=* | --incl=* | --inc=*)
1151    includedir=$ac_optarg ;;
1152
1153  -infodir | --infodir | --infodi | --infod | --info | --inf)
1154    ac_prev=infodir ;;
1155  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156    infodir=$ac_optarg ;;
1157
1158  -libdir | --libdir | --libdi | --libd)
1159    ac_prev=libdir ;;
1160  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161    libdir=$ac_optarg ;;
1162
1163  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164  | --libexe | --libex | --libe)
1165    ac_prev=libexecdir ;;
1166  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167  | --libexe=* | --libex=* | --libe=*)
1168    libexecdir=$ac_optarg ;;
1169
1170  -localedir | --localedir | --localedi | --localed | --locale)
1171    ac_prev=localedir ;;
1172  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173    localedir=$ac_optarg ;;
1174
1175  -localstatedir | --localstatedir | --localstatedi | --localstated \
1176  | --localstate | --localstat | --localsta | --localst | --locals)
1177    ac_prev=localstatedir ;;
1178  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180    localstatedir=$ac_optarg ;;
1181
1182  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183    ac_prev=mandir ;;
1184  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185    mandir=$ac_optarg ;;
1186
1187  -nfp | --nfp | --nf)
1188    # Obsolete; use --without-fp.
1189    with_fp=no ;;
1190
1191  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192  | --no-cr | --no-c | -n)
1193    no_create=yes ;;
1194
1195  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197    no_recursion=yes ;;
1198
1199  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201  | --oldin | --oldi | --old | --ol | --o)
1202    ac_prev=oldincludedir ;;
1203  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206    oldincludedir=$ac_optarg ;;
1207
1208  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209    ac_prev=prefix ;;
1210  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211    prefix=$ac_optarg ;;
1212
1213  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214  | --program-pre | --program-pr | --program-p)
1215    ac_prev=program_prefix ;;
1216  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218    program_prefix=$ac_optarg ;;
1219
1220  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221  | --program-suf | --program-su | --program-s)
1222    ac_prev=program_suffix ;;
1223  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225    program_suffix=$ac_optarg ;;
1226
1227  -program-transform-name | --program-transform-name \
1228  | --program-transform-nam | --program-transform-na \
1229  | --program-transform-n | --program-transform- \
1230  | --program-transform | --program-transfor \
1231  | --program-transfo | --program-transf \
1232  | --program-trans | --program-tran \
1233  | --progr-tra | --program-tr | --program-t)
1234    ac_prev=program_transform_name ;;
1235  -program-transform-name=* | --program-transform-name=* \
1236  | --program-transform-nam=* | --program-transform-na=* \
1237  | --program-transform-n=* | --program-transform-=* \
1238  | --program-transform=* | --program-transfor=* \
1239  | --program-transfo=* | --program-transf=* \
1240  | --program-trans=* | --program-tran=* \
1241  | --progr-tra=* | --program-tr=* | --program-t=*)
1242    program_transform_name=$ac_optarg ;;
1243
1244  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245    ac_prev=pdfdir ;;
1246  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247    pdfdir=$ac_optarg ;;
1248
1249  -psdir | --psdir | --psdi | --psd | --ps)
1250    ac_prev=psdir ;;
1251  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252    psdir=$ac_optarg ;;
1253
1254  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255  | -silent | --silent | --silen | --sile | --sil)
1256    silent=yes ;;
1257
1258  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259    ac_prev=sbindir ;;
1260  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261  | --sbi=* | --sb=*)
1262    sbindir=$ac_optarg ;;
1263
1264  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266  | --sharedst | --shareds | --shared | --share | --shar \
1267  | --sha | --sh)
1268    ac_prev=sharedstatedir ;;
1269  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272  | --sha=* | --sh=*)
1273    sharedstatedir=$ac_optarg ;;
1274
1275  -site | --site | --sit)
1276    ac_prev=site ;;
1277  -site=* | --site=* | --sit=*)
1278    site=$ac_optarg ;;
1279
1280  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281    ac_prev=srcdir ;;
1282  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283    srcdir=$ac_optarg ;;
1284
1285  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286  | --syscon | --sysco | --sysc | --sys | --sy)
1287    ac_prev=sysconfdir ;;
1288  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290    sysconfdir=$ac_optarg ;;
1291
1292  -target | --target | --targe | --targ | --tar | --ta | --t)
1293    ac_prev=target_alias ;;
1294  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295    target_alias=$ac_optarg ;;
1296
1297  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298    verbose=yes ;;
1299
1300  -version | --version | --versio | --versi | --vers | -V)
1301    ac_init_version=: ;;
1302
1303  -with-* | --with-*)
1304    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308   { (exit 1); exit 1; }; }
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=\$ac_optarg ;;
1319
1320  -without-* | --without-*)
1321    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325   { (exit 1); exit 1; }; }
1326    ac_useropt_orig=$ac_useropt
1327    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328    case $ac_user_opts in
1329      *"
1330"with_$ac_useropt"
1331"*) ;;
1332      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333	 ac_unrecognized_sep=', ';;
1334    esac
1335    eval with_$ac_useropt=no ;;
1336
1337  --x)
1338    # Obsolete; use --with-x.
1339    with_x=yes ;;
1340
1341  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342  | --x-incl | --x-inc | --x-in | --x-i)
1343    ac_prev=x_includes ;;
1344  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346    x_includes=$ac_optarg ;;
1347
1348  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350    ac_prev=x_libraries ;;
1351  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353    x_libraries=$ac_optarg ;;
1354
1355  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1356Try \`$0 --help' for more information." >&2
1357   { (exit 1); exit 1; }; }
1358    ;;
1359
1360  *=*)
1361    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362    # Reject names that are not valid shell variable names.
1363    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365   { (exit 1); exit 1; }; }
1366    eval $ac_envvar=\$ac_optarg
1367    export $ac_envvar ;;
1368
1369  *)
1370    # FIXME: should be removed in autoconf 3.0.
1371    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375    ;;
1376
1377  esac
1378done
1379
1380if test -n "$ac_prev"; then
1381  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1383   { (exit 1); exit 1; }; }
1384fi
1385
1386if test -n "$ac_unrecognized_opts"; then
1387  case $enable_option_checking in
1388    no) ;;
1389    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1390   { (exit 1); exit 1; }; } ;;
1391    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392  esac
1393fi
1394
1395# Check all directory arguments for consistency.
1396for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397		datadir sysconfdir sharedstatedir localstatedir includedir \
1398		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399		libdir localedir mandir
1400do
1401  eval ac_val=\$$ac_var
1402  # Remove trailing slashes.
1403  case $ac_val in
1404    */ )
1405      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406      eval $ac_var=\$ac_val;;
1407  esac
1408  # Be sure to have absolute directory names.
1409  case $ac_val in
1410    [\\/$]* | ?:[\\/]* )  continue;;
1411    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412  esac
1413  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1414   { (exit 1); exit 1; }; }
1415done
1416
1417# There might be people who depend on the old broken behavior: `$host'
1418# used to hold the argument of --host etc.
1419# FIXME: To remove some day.
1420build=$build_alias
1421host=$host_alias
1422target=$target_alias
1423
1424# FIXME: To remove some day.
1425if test "x$host_alias" != x; then
1426  if test "x$build_alias" = x; then
1427    cross_compiling=maybe
1428    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429    If a cross compiler is detected then cross compile mode will be used." >&2
1430  elif test "x$build_alias" != "x$host_alias"; then
1431    cross_compiling=yes
1432  fi
1433fi
1434
1435ac_tool_prefix=
1436test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438test "$silent" = yes && exec 6>/dev/null
1439
1440
1441ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442ac_ls_di=`ls -di .` &&
1443ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1445   { (exit 1); exit 1; }; }
1446test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1448   { (exit 1); exit 1; }; }
1449
1450
1451# Find the source files, if location was not specified.
1452if test -z "$srcdir"; then
1453  ac_srcdir_defaulted=yes
1454  # Try the directory containing this script, then the parent directory.
1455  ac_confdir=`$as_dirname -- "$as_myself" ||
1456$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457	 X"$as_myself" : 'X\(//\)[^/]' \| \
1458	 X"$as_myself" : 'X\(//\)$' \| \
1459	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460$as_echo X"$as_myself" |
1461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\/\)[^/].*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  /^X\(\/\/\)$/{
1470	    s//\1/
1471	    q
1472	  }
1473	  /^X\(\/\).*/{
1474	    s//\1/
1475	    q
1476	  }
1477	  s/.*/./; q'`
1478  srcdir=$ac_confdir
1479  if test ! -r "$srcdir/$ac_unique_file"; then
1480    srcdir=..
1481  fi
1482else
1483  ac_srcdir_defaulted=no
1484fi
1485if test ! -r "$srcdir/$ac_unique_file"; then
1486  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1488   { (exit 1); exit 1; }; }
1489fi
1490ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491ac_abs_confdir=`(
1492	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1493   { (exit 1); exit 1; }; }
1494	pwd)`
1495# When building in place, set srcdir=.
1496if test "$ac_abs_confdir" = "$ac_pwd"; then
1497  srcdir=.
1498fi
1499# Remove unnecessary trailing slashes from srcdir.
1500# Double slashes in file names in object file debugging info
1501# mess up M-x gdb in Emacs.
1502case $srcdir in
1503*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504esac
1505for ac_var in $ac_precious_vars; do
1506  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507  eval ac_env_${ac_var}_value=\$${ac_var}
1508  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510done
1511
1512#
1513# Report the --help message.
1514#
1515if test "$ac_init_help" = "long"; then
1516  # Omit some internal or obsolete options to make the list less imposing.
1517  # This message is too long to be a string in the A/UX 3.1 sh.
1518  cat <<_ACEOF
1519\`configure' configures xf86-video-tdfx 1.4.1 to adapt to many kinds of systems.
1520
1521Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526Defaults for the options are specified in brackets.
1527
1528Configuration:
1529  -h, --help              display this help and exit
1530      --help=short        display options specific to this package
1531      --help=recursive    display the short help of all the included packages
1532  -V, --version           display version information and exit
1533  -q, --quiet, --silent   do not print \`checking...' messages
1534      --cache-file=FILE   cache test results in FILE [disabled]
1535  -C, --config-cache      alias for \`--cache-file=config.cache'
1536  -n, --no-create         do not create output files
1537      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539Installation directories:
1540  --prefix=PREFIX         install architecture-independent files in PREFIX
1541                          [$ac_default_prefix]
1542  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                          [PREFIX]
1544
1545By default, \`make install' will install all the files in
1546\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548for instance \`--prefix=\$HOME'.
1549
1550For better control, use the options below.
1551
1552Fine tuning of the installation directories:
1553  --bindir=DIR            user executables [EPREFIX/bin]
1554  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555  --libexecdir=DIR        program executables [EPREFIX/libexec]
1556  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559  --libdir=DIR            object code libraries [EPREFIX/lib]
1560  --includedir=DIR        C header files [PREFIX/include]
1561  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564  --infodir=DIR           info documentation [DATAROOTDIR/info]
1565  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566  --mandir=DIR            man documentation [DATAROOTDIR/man]
1567  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-tdfx]
1568  --htmldir=DIR           html documentation [DOCDIR]
1569  --dvidir=DIR            dvi documentation [DOCDIR]
1570  --pdfdir=DIR            pdf documentation [DOCDIR]
1571  --psdir=DIR             ps documentation [DOCDIR]
1572_ACEOF
1573
1574  cat <<\_ACEOF
1575
1576Program names:
1577  --program-prefix=PREFIX            prepend PREFIX to installed program names
1578  --program-suffix=SUFFIX            append SUFFIX to installed program names
1579  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581System types:
1582  --build=BUILD     configure for building on BUILD [guessed]
1583  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1584_ACEOF
1585fi
1586
1587if test -n "$ac_init_help"; then
1588  case $ac_init_help in
1589     short | recursive ) echo "Configuration of xf86-video-tdfx 1.4.1:";;
1590   esac
1591  cat <<\_ACEOF
1592
1593Optional Features:
1594  --disable-option-checking  ignore unrecognized --enable/--with options
1595  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1596  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1597  --enable-maintainer-mode  enable make rules and dependencies not useful
1598			  (and sometimes confusing) to the casual installer
1599  --enable-static[=PKGS]  build static libraries [default=no]
1600  --enable-shared[=PKGS]  build shared libraries [default=yes]
1601  --enable-fast-install[=PKGS]
1602                          optimize for fast installation [default=yes]
1603  --disable-dependency-tracking  speeds up one-time build
1604  --enable-dependency-tracking   do not reject slow dependency extractors
1605  --disable-libtool-lock  avoid locking (might break parallel builds)
1606  --disable-dri           Disable DRI support [default=auto]
1607
1608Optional Packages:
1609  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1612  --with-pic              try to use only PIC/non-PIC objects [default=use
1613                          both]
1614  --with-tags[=TAGS]      include additional configurations [automatic]
1615  --with-xorg-module-dir=DIR
1616                          Default xorg module directory
1617                          [default=$libdir/xorg/modules]
1618  --with-release-version=STRING
1619                          Use release version string in package name
1620
1621Some influential environment variables:
1622  CC          C compiler command
1623  CFLAGS      C compiler flags
1624  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1625              nonstandard directory <lib dir>
1626  LIBS        libraries to pass to the linker, e.g. -l<library>
1627  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628              you have headers in a nonstandard directory <include dir>
1629  CPP         C preprocessor
1630  CXX         C++ compiler command
1631  CXXFLAGS    C++ compiler flags
1632  CXXCPP      C++ preprocessor
1633  F77         Fortran 77 compiler command
1634  FFLAGS      Fortran 77 compiler flags
1635  PKG_CONFIG  path to pkg-config utility
1636  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1637  XORG_LIBS   linker flags for XORG, overriding pkg-config
1638  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1639  DRI_LIBS    linker flags for DRI, overriding pkg-config
1640  PCIACCESS_CFLAGS
1641              C compiler flags for PCIACCESS, overriding pkg-config
1642  PCIACCESS_LIBS
1643              linker flags for PCIACCESS, overriding pkg-config
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654  # If there are subdirs, report their specific --help.
1655  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656    test -d "$ac_dir" ||
1657      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658      continue
1659    ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665  # A ".." for each directory in $ac_dir_suffix.
1666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667  case $ac_top_builddir_sub in
1668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670  esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678  .)  # We are building in place.
1679    ac_srcdir=.
1680    ac_top_srcdir=$ac_top_builddir_sub
1681    ac_abs_top_srcdir=$ac_pwd ;;
1682  [\\/]* | ?:[\\/]* )  # Absolute name.
1683    ac_srcdir=$srcdir$ac_dir_suffix;
1684    ac_top_srcdir=$srcdir
1685    ac_abs_top_srcdir=$srcdir ;;
1686  *) # Relative name.
1687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693    cd "$ac_dir" || { ac_status=$?; continue; }
1694    # Check for guested configure.
1695    if test -f "$ac_srcdir/configure.gnu"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698    elif test -f "$ac_srcdir/configure"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure" --help=recursive
1701    else
1702      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703    fi || ac_status=$?
1704    cd "$ac_pwd" || { ac_status=$?; break; }
1705  done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710  cat <<\_ACEOF
1711xf86-video-tdfx configure 1.4.1
1712generated by GNU Autoconf 2.63
1713
1714Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716This configure script is free software; the Free Software Foundation
1717gives unlimited permission to copy, distribute and modify it.
1718_ACEOF
1719  exit
1720fi
1721cat >config.log <<_ACEOF
1722This file contains any messages produced by compilers while
1723running configure, to aid debugging if configure makes a mistake.
1724
1725It was created by xf86-video-tdfx $as_me 1.4.1, which was
1726generated by GNU Autoconf 2.63.  Invocation command line was
1727
1728  $ $0 $@
1729
1730_ACEOF
1731exec 5>>config.log
1732{
1733cat <<_ASUNAME
1734## --------- ##
1735## Platform. ##
1736## --------- ##
1737
1738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1746
1747/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1748/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1751/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1752/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1753/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1754
1755_ASUNAME
1756
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760  IFS=$as_save_IFS
1761  test -z "$as_dir" && as_dir=.
1762  $as_echo "PATH: $as_dir"
1763done
1764IFS=$as_save_IFS
1765
1766} >&5
1767
1768cat >&5 <<_ACEOF
1769
1770
1771## ----------- ##
1772## Core tests. ##
1773## ----------- ##
1774
1775_ACEOF
1776
1777
1778# Keep a trace of the command line.
1779# Strip out --no-create and --no-recursion so they do not pile up.
1780# Strip out --silent because we don't want to record it for future runs.
1781# Also quote any args containing shell meta-characters.
1782# Make two passes to allow for proper duplicate-argument suppression.
1783ac_configure_args=
1784ac_configure_args0=
1785ac_configure_args1=
1786ac_must_keep_next=false
1787for ac_pass in 1 2
1788do
1789  for ac_arg
1790  do
1791    case $ac_arg in
1792    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794    | -silent | --silent | --silen | --sile | --sil)
1795      continue ;;
1796    *\'*)
1797      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798    esac
1799    case $ac_pass in
1800    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801    2)
1802      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803      if test $ac_must_keep_next = true; then
1804	ac_must_keep_next=false # Got value, back to normal.
1805      else
1806	case $ac_arg in
1807	  *=* | --config-cache | -C | -disable-* | --disable-* \
1808	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810	  | -with-* | --with-* | -without-* | --without-* | --x)
1811	    case "$ac_configure_args0 " in
1812	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813	    esac
1814	    ;;
1815	  -* ) ac_must_keep_next=true ;;
1816	esac
1817      fi
1818      ac_configure_args="$ac_configure_args '$ac_arg'"
1819      ;;
1820    esac
1821  done
1822done
1823$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826# When interrupted or exit'd, cleanup temporary files, and complete
1827# config.log.  We remove comments because anyway the quotes in there
1828# would cause problems or look ugly.
1829# WARNING: Use '\'' to represent an apostrophe within the trap.
1830# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831trap 'exit_status=$?
1832  # Save into config.log some information that might help in debugging.
1833  {
1834    echo
1835
1836    cat <<\_ASBOX
1837## ---------------- ##
1838## Cache variables. ##
1839## ---------------- ##
1840_ASBOX
1841    echo
1842    # The following way of writing the cache mishandles newlines in values,
1843(
1844  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845    eval ac_val=\$$ac_var
1846    case $ac_val in #(
1847    *${as_nl}*)
1848      case $ac_var in #(
1849      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851      esac
1852      case $ac_var in #(
1853      _ | IFS | as_nl) ;; #(
1854      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855      *) $as_unset $ac_var ;;
1856      esac ;;
1857    esac
1858  done
1859  (set) 2>&1 |
1860    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861    *${as_nl}ac_space=\ *)
1862      sed -n \
1863	"s/'\''/'\''\\\\'\'''\''/g;
1864	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865      ;; #(
1866    *)
1867      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868      ;;
1869    esac |
1870    sort
1871)
1872    echo
1873
1874    cat <<\_ASBOX
1875## ----------------- ##
1876## Output variables. ##
1877## ----------------- ##
1878_ASBOX
1879    echo
1880    for ac_var in $ac_subst_vars
1881    do
1882      eval ac_val=\$$ac_var
1883      case $ac_val in
1884      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885      esac
1886      $as_echo "$ac_var='\''$ac_val'\''"
1887    done | sort
1888    echo
1889
1890    if test -n "$ac_subst_files"; then
1891      cat <<\_ASBOX
1892## ------------------- ##
1893## File substitutions. ##
1894## ------------------- ##
1895_ASBOX
1896      echo
1897      for ac_var in $ac_subst_files
1898      do
1899	eval ac_val=\$$ac_var
1900	case $ac_val in
1901	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902	esac
1903	$as_echo "$ac_var='\''$ac_val'\''"
1904      done | sort
1905      echo
1906    fi
1907
1908    if test -s confdefs.h; then
1909      cat <<\_ASBOX
1910## ----------- ##
1911## confdefs.h. ##
1912## ----------- ##
1913_ASBOX
1914      echo
1915      cat confdefs.h
1916      echo
1917    fi
1918    test "$ac_signal" != 0 &&
1919      $as_echo "$as_me: caught signal $ac_signal"
1920    $as_echo "$as_me: exit $exit_status"
1921  } >&5
1922  rm -f core *.core core.conftest.* &&
1923    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924    exit $exit_status
1925' 0
1926for ac_signal in 1 2 13 15; do
1927  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928done
1929ac_signal=0
1930
1931# confdefs.h avoids OS command line length limits that DEFS can exceed.
1932rm -f -r conftest* confdefs.h
1933
1934# Predefined preprocessor variables.
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_NAME "$PACKAGE_NAME"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_VERSION "$PACKAGE_VERSION"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_STRING "$PACKAGE_STRING"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958_ACEOF
1959
1960
1961# Let the site file select an alternate cache file if it wants to.
1962# Prefer an explicitly selected file to automatically selected ones.
1963ac_site_file1=NONE
1964ac_site_file2=NONE
1965if test -n "$CONFIG_SITE"; then
1966  ac_site_file1=$CONFIG_SITE
1967elif test "x$prefix" != xNONE; then
1968  ac_site_file1=$prefix/share/config.site
1969  ac_site_file2=$prefix/etc/config.site
1970else
1971  ac_site_file1=$ac_default_prefix/share/config.site
1972  ac_site_file2=$ac_default_prefix/etc/config.site
1973fi
1974for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1975do
1976  test "x$ac_site_file" = xNONE && continue
1977  if test -r "$ac_site_file"; then
1978    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1980    sed 's/^/| /' "$ac_site_file" >&5
1981    . "$ac_site_file"
1982  fi
1983done
1984
1985if test -r "$cache_file"; then
1986  # Some versions of bash will fail to source /dev/null (special
1987  # files actually), so we avoid doing that.
1988  if test -f "$cache_file"; then
1989    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1990$as_echo "$as_me: loading cache $cache_file" >&6;}
1991    case $cache_file in
1992      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993      *)                      . "./$cache_file";;
1994    esac
1995  fi
1996else
1997  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1998$as_echo "$as_me: creating cache $cache_file" >&6;}
1999  >$cache_file
2000fi
2001
2002# Check that the precious variables saved in the cache have kept the same
2003# value.
2004ac_cache_corrupted=false
2005for ac_var in $ac_precious_vars; do
2006  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2007  eval ac_new_set=\$ac_env_${ac_var}_set
2008  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2009  eval ac_new_val=\$ac_env_${ac_var}_value
2010  case $ac_old_set,$ac_new_set in
2011    set,)
2012      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2014      ac_cache_corrupted=: ;;
2015    ,set)
2016      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2018      ac_cache_corrupted=: ;;
2019    ,);;
2020    *)
2021      if test "x$ac_old_val" != "x$ac_new_val"; then
2022	# differences in whitespace do not lead to failure.
2023	ac_old_val_w=`echo x $ac_old_val`
2024	ac_new_val_w=`echo x $ac_new_val`
2025	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2026	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028	  ac_cache_corrupted=:
2029	else
2030	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2032	  eval $ac_var=\$ac_old_val
2033	fi
2034	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2035$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2036	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2037$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2038      fi;;
2039  esac
2040  # Pass precious variables to config.status.
2041  if test "$ac_new_set" = set; then
2042    case $ac_new_val in
2043    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    *) ac_arg=$ac_var=$ac_new_val ;;
2045    esac
2046    case " $ac_configure_args " in
2047      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2048      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2049    esac
2050  fi
2051done
2052if $ac_cache_corrupted; then
2053  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093
2094
2095ac_config_headers="$ac_config_headers config.h"
2096
2097ac_aux_dir=
2098for ac_dir in . "$srcdir"/.; do
2099  if test -f "$ac_dir/install-sh"; then
2100    ac_aux_dir=$ac_dir
2101    ac_install_sh="$ac_aux_dir/install-sh -c"
2102    break
2103  elif test -f "$ac_dir/install.sh"; then
2104    ac_aux_dir=$ac_dir
2105    ac_install_sh="$ac_aux_dir/install.sh -c"
2106    break
2107  elif test -f "$ac_dir/shtool"; then
2108    ac_aux_dir=$ac_dir
2109    ac_install_sh="$ac_aux_dir/shtool install -c"
2110    break
2111  fi
2112done
2113if test -z "$ac_aux_dir"; then
2114  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2115$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2116   { (exit 1); exit 1; }; }
2117fi
2118
2119# These three variables are undocumented and unsupported,
2120# and are intended to be withdrawn in a future Autoconf release.
2121# They can cause serious problems if a builder's source tree is in a directory
2122# whose full name contains unusual characters.
2123ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2124ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2125ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2126
2127
2128
2129am__api_version='1.10'
2130
2131# Find a good install program.  We prefer a C program (faster),
2132# so one script is as good as another.  But avoid the broken or
2133# incompatible versions:
2134# SysV /etc/install, /usr/sbin/install
2135# SunOS /usr/etc/install
2136# IRIX /sbin/install
2137# AIX /bin/install
2138# AmigaOS /C/install, which installs bootblocks on floppy discs
2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142# OS/2's system install, which has a completely different semantic
2143# ./install, which can be erroneously created by make from ./install.sh.
2144# Reject install programs that cannot install multiple files.
2145{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146$as_echo_n "checking for a BSD-compatible install... " >&6; }
2147if test -z "$INSTALL"; then
2148if test "${ac_cv_path_install+set}" = set; then
2149  $as_echo_n "(cached) " >&6
2150else
2151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  # Account for people who put trailing slashes in PATH elements.
2157case $as_dir/ in
2158  ./ | .// | /cC/* | \
2159  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2161  /usr/ucb/* ) ;;
2162  *)
2163    # OSF1 and SCO ODT 3.0 have their own names for install.
2164    # Don't use installbsd from OSF since it installs stuff as root
2165    # by default.
2166    for ac_prog in ginstall scoinst install; do
2167      for ac_exec_ext in '' $ac_executable_extensions; do
2168	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169	  if test $ac_prog = install &&
2170	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171	    # AIX install.  It has an incompatible calling convention.
2172	    :
2173	  elif test $ac_prog = install &&
2174	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175	    # program-specific install script used by HP pwplus--don't use.
2176	    :
2177	  else
2178	    rm -rf conftest.one conftest.two conftest.dir
2179	    echo one > conftest.one
2180	    echo two > conftest.two
2181	    mkdir conftest.dir
2182	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2183	      test -s conftest.one && test -s conftest.two &&
2184	      test -s conftest.dir/conftest.one &&
2185	      test -s conftest.dir/conftest.two
2186	    then
2187	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2188	      break 3
2189	    fi
2190	  fi
2191	fi
2192      done
2193    done
2194    ;;
2195esac
2196
2197done
2198IFS=$as_save_IFS
2199
2200rm -rf conftest.one conftest.two conftest.dir
2201
2202fi
2203  if test "${ac_cv_path_install+set}" = set; then
2204    INSTALL=$ac_cv_path_install
2205  else
2206    # As a last resort, use the slow shell script.  Don't cache a
2207    # value for INSTALL within a source directory, because that will
2208    # break other packages using the cache if that directory is
2209    # removed, or if the value is a relative name.
2210    INSTALL=$ac_install_sh
2211  fi
2212fi
2213{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2214$as_echo "$INSTALL" >&6; }
2215
2216# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217# It thinks the first close brace ends the variable substitution.
2218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219
2220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221
2222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223
2224{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2225$as_echo_n "checking whether build environment is sane... " >&6; }
2226# Just in case
2227sleep 1
2228echo timestamp > conftest.file
2229# Do `set' in a subshell so we don't clobber the current shell's
2230# arguments.  Must try -L first in case configure is actually a
2231# symlink; some systems play weird games with the mod time of symlinks
2232# (eg FreeBSD returns the mod time of the symlink's containing
2233# directory).
2234if (
2235   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2236   if test "$*" = "X"; then
2237      # -L didn't work.
2238      set X `ls -t $srcdir/configure conftest.file`
2239   fi
2240   rm -f conftest.file
2241   if test "$*" != "X $srcdir/configure conftest.file" \
2242      && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244      # If neither matched, then we have a broken ls.  This can happen
2245      # if, for instance, CONFIG_SHELL is bash and it inherits a
2246      # broken ls alias from the environment.  This has actually
2247      # happened.  Such a system could not be considered "sane".
2248      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2249alias in your environment" >&5
2250$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2251alias in your environment" >&2;}
2252   { (exit 1); exit 1; }; }
2253   fi
2254
2255   test "$2" = conftest.file
2256   )
2257then
2258   # Ok.
2259   :
2260else
2261   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2262Check your system clock" >&5
2263$as_echo "$as_me: error: newly created file is older than distributed files!
2264Check your system clock" >&2;}
2265   { (exit 1); exit 1; }; }
2266fi
2267{ $as_echo "$as_me:$LINENO: result: yes" >&5
2268$as_echo "yes" >&6; }
2269test "$program_prefix" != NONE &&
2270  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271# Use a double $ so make ignores it.
2272test "$program_suffix" != NONE &&
2273  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274# Double any \ or $.
2275# By default was `s,x,x', remove it if useless.
2276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2278
2279# expand $ac_aux_dir to an absolute path
2280am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2283# Use eval to expand $SHELL
2284if eval "$MISSING --run true"; then
2285  am_missing_run="$MISSING --run "
2286else
2287  am_missing_run=
2288  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2289$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290fi
2291
2292{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2293$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2294if test -z "$MKDIR_P"; then
2295  if test "${ac_cv_path_mkdir+set}" = set; then
2296  $as_echo_n "(cached) " >&6
2297else
2298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2300do
2301  IFS=$as_save_IFS
2302  test -z "$as_dir" && as_dir=.
2303  for ac_prog in mkdir gmkdir; do
2304	 for ac_exec_ext in '' $ac_executable_extensions; do
2305	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2306	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2307	     'mkdir (GNU coreutils) '* | \
2308	     'mkdir (coreutils) '* | \
2309	     'mkdir (fileutils) '4.1*)
2310	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311	       break 3;;
2312	   esac
2313	 done
2314       done
2315done
2316IFS=$as_save_IFS
2317
2318fi
2319
2320  if test "${ac_cv_path_mkdir+set}" = set; then
2321    MKDIR_P="$ac_cv_path_mkdir -p"
2322  else
2323    # As a last resort, use the slow shell script.  Don't cache a
2324    # value for MKDIR_P within a source directory, because that will
2325    # break other packages using the cache if that directory is
2326    # removed, or if the value is a relative name.
2327    test -d ./--version && rmdir ./--version
2328    MKDIR_P="$ac_install_sh -d"
2329  fi
2330fi
2331{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2332$as_echo "$MKDIR_P" >&6; }
2333
2334mkdir_p="$MKDIR_P"
2335case $mkdir_p in
2336  [\\/$]* | ?:[\\/]*) ;;
2337  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2338esac
2339
2340for ac_prog in gawk mawk nawk awk
2341do
2342  # Extract the first word of "$ac_prog", so it can be a program name with args.
2343set dummy $ac_prog; ac_word=$2
2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2345$as_echo_n "checking for $ac_word... " >&6; }
2346if test "${ac_cv_prog_AWK+set}" = set; then
2347  $as_echo_n "(cached) " >&6
2348else
2349  if test -n "$AWK"; then
2350  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357  for ac_exec_ext in '' $ac_executable_extensions; do
2358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359    ac_cv_prog_AWK="$ac_prog"
2360    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361    break 2
2362  fi
2363done
2364done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369AWK=$ac_cv_prog_AWK
2370if test -n "$AWK"; then
2371  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2372$as_echo "$AWK" >&6; }
2373else
2374  { $as_echo "$as_me:$LINENO: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378
2379  test -n "$AWK" && break
2380done
2381
2382{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2384set x ${MAKE-make}
2385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387  $as_echo_n "(cached) " >&6
2388else
2389  cat >conftest.make <<\_ACEOF
2390SHELL = /bin/sh
2391all:
2392	@echo '@@@%%%=$(MAKE)=@@@%%%'
2393_ACEOF
2394# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396  *@@@%%%=?*=@@@%%%*)
2397    eval ac_cv_prog_make_${ac_make}_set=yes;;
2398  *)
2399    eval ac_cv_prog_make_${ac_make}_set=no;;
2400esac
2401rm -f conftest.make
2402fi
2403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404  { $as_echo "$as_me:$LINENO: result: yes" >&5
2405$as_echo "yes" >&6; }
2406  SET_MAKE=
2407else
2408  { $as_echo "$as_me:$LINENO: result: no" >&5
2409$as_echo "no" >&6; }
2410  SET_MAKE="MAKE=${MAKE-make}"
2411fi
2412
2413rm -rf .tst 2>/dev/null
2414mkdir .tst 2>/dev/null
2415if test -d .tst; then
2416  am__leading_dot=.
2417else
2418  am__leading_dot=_
2419fi
2420rmdir .tst 2>/dev/null
2421
2422if test "`cd $srcdir && pwd`" != "`pwd`"; then
2423  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2424  # is not polluted with repeated "-I."
2425  am__isrc=' -I$(srcdir)'
2426  # test to see if srcdir already configured
2427  if test -f $srcdir/config.status; then
2428    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2429$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2430   { (exit 1); exit 1; }; }
2431  fi
2432fi
2433
2434# test whether we have cygpath
2435if test -z "$CYGPATH_W"; then
2436  if (cygpath --version) >/dev/null 2>/dev/null; then
2437    CYGPATH_W='cygpath -w'
2438  else
2439    CYGPATH_W=echo
2440  fi
2441fi
2442
2443
2444# Define the identity of the package.
2445 PACKAGE='xf86-video-tdfx'
2446 VERSION='1.4.1'
2447
2448
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE "$PACKAGE"
2451_ACEOF
2452
2453
2454cat >>confdefs.h <<_ACEOF
2455#define VERSION "$VERSION"
2456_ACEOF
2457
2458# Some tools Automake needs.
2459
2460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461
2462
2463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464
2465
2466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2467
2468
2469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470
2471
2472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2473
2474install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2475
2476# Installed binaries are usually stripped using `strip' when the user
2477# run `make install-strip'.  However `strip' might not be the right
2478# tool to use in cross-compilation environments, therefore Automake
2479# will honor the `STRIP' environment variable to overrule this program.
2480if test "$cross_compiling" != no; then
2481  if test -n "$ac_tool_prefix"; then
2482  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483set dummy ${ac_tool_prefix}strip; ac_word=$2
2484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if test "${ac_cv_prog_STRIP+set}" = set; then
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$STRIP"; then
2490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509STRIP=$ac_cv_prog_STRIP
2510if test -n "$STRIP"; then
2511  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2512$as_echo "$STRIP" >&6; }
2513else
2514  { $as_echo "$as_me:$LINENO: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519fi
2520if test -z "$ac_cv_prog_STRIP"; then
2521  ac_ct_STRIP=$STRIP
2522  # Extract the first word of "strip", so it can be a program name with args.
2523set dummy strip; ac_word=$2
2524{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$ac_ct_STRIP"; then
2530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537  for ac_exec_ext in '' $ac_executable_extensions; do
2538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539    ac_cv_prog_ac_ct_STRIP="strip"
2540    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550if test -n "$ac_ct_STRIP"; then
2551  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2552$as_echo "$ac_ct_STRIP" >&6; }
2553else
2554  { $as_echo "$as_me:$LINENO: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558  if test "x$ac_ct_STRIP" = x; then
2559    STRIP=":"
2560  else
2561    case $cross_compiling:$ac_tool_warned in
2562yes:)
2563{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565ac_tool_warned=yes ;;
2566esac
2567    STRIP=$ac_ct_STRIP
2568  fi
2569else
2570  STRIP="$ac_cv_prog_STRIP"
2571fi
2572
2573fi
2574INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576# We need awk for the "check" target.  The system "awk" is bad on
2577# some platforms.
2578# Always define AMTAR for backward compatibility.
2579
2580AMTAR=${AMTAR-"${am_missing_run}tar"}
2581
2582am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583
2584
2585
2586
2587
2588
2589{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2590$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2591    # Check whether --enable-maintainer-mode was given.
2592if test "${enable_maintainer_mode+set}" = set; then
2593  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2594else
2595  USE_MAINTAINER_MODE=no
2596fi
2597
2598  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2599$as_echo "$USE_MAINTAINER_MODE" >&6; }
2600   if test $USE_MAINTAINER_MODE = yes; then
2601  MAINTAINER_MODE_TRUE=
2602  MAINTAINER_MODE_FALSE='#'
2603else
2604  MAINTAINER_MODE_TRUE='#'
2605  MAINTAINER_MODE_FALSE=
2606fi
2607
2608  MAINT=$MAINTAINER_MODE_TRUE
2609
2610
2611
2612# Checks for programs.
2613# Check whether --enable-static was given.
2614if test "${enable_static+set}" = set; then
2615  enableval=$enable_static; p=${PACKAGE-default}
2616    case $enableval in
2617    yes) enable_static=yes ;;
2618    no) enable_static=no ;;
2619    *)
2620     enable_static=no
2621      # Look at the argument we got.  We use all the common list separators.
2622      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2623      for pkg in $enableval; do
2624	IFS="$lt_save_ifs"
2625	if test "X$pkg" = "X$p"; then
2626	  enable_static=yes
2627	fi
2628      done
2629      IFS="$lt_save_ifs"
2630      ;;
2631    esac
2632else
2633  enable_static=no
2634fi
2635
2636
2637
2638# Check whether --enable-shared was given.
2639if test "${enable_shared+set}" = set; then
2640  enableval=$enable_shared; p=${PACKAGE-default}
2641    case $enableval in
2642    yes) enable_shared=yes ;;
2643    no) enable_shared=no ;;
2644    *)
2645      enable_shared=no
2646      # Look at the argument we got.  We use all the common list separators.
2647      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2648      for pkg in $enableval; do
2649	IFS="$lt_save_ifs"
2650	if test "X$pkg" = "X$p"; then
2651	  enable_shared=yes
2652	fi
2653      done
2654      IFS="$lt_save_ifs"
2655      ;;
2656    esac
2657else
2658  enable_shared=yes
2659fi
2660
2661
2662# Check whether --enable-fast-install was given.
2663if test "${enable_fast_install+set}" = set; then
2664  enableval=$enable_fast_install; p=${PACKAGE-default}
2665    case $enableval in
2666    yes) enable_fast_install=yes ;;
2667    no) enable_fast_install=no ;;
2668    *)
2669      enable_fast_install=no
2670      # Look at the argument we got.  We use all the common list separators.
2671      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2672      for pkg in $enableval; do
2673	IFS="$lt_save_ifs"
2674	if test "X$pkg" = "X$p"; then
2675	  enable_fast_install=yes
2676	fi
2677      done
2678      IFS="$lt_save_ifs"
2679      ;;
2680    esac
2681else
2682  enable_fast_install=yes
2683fi
2684
2685
2686# Make sure we can run config.sub.
2687$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2688  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2689$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2690   { (exit 1); exit 1; }; }
2691
2692{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2693$as_echo_n "checking build system type... " >&6; }
2694if test "${ac_cv_build+set}" = set; then
2695  $as_echo_n "(cached) " >&6
2696else
2697  ac_build_alias=$build_alias
2698test "x$ac_build_alias" = x &&
2699  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700test "x$ac_build_alias" = x &&
2701  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2702$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2703   { (exit 1); exit 1; }; }
2704ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2705  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2706$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2707   { (exit 1); exit 1; }; }
2708
2709fi
2710{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2711$as_echo "$ac_cv_build" >&6; }
2712case $ac_cv_build in
2713*-*-*) ;;
2714*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2715$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2716   { (exit 1); exit 1; }; };;
2717esac
2718build=$ac_cv_build
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_build
2721shift
2722build_cpu=$1
2723build_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727build_os=$*
2728IFS=$ac_save_IFS
2729case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730
2731
2732{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2733$as_echo_n "checking host system type... " >&6; }
2734if test "${ac_cv_host+set}" = set; then
2735  $as_echo_n "(cached) " >&6
2736else
2737  if test "x$host_alias" = x; then
2738  ac_cv_host=$ac_cv_build
2739else
2740  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2741    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2742$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2743   { (exit 1); exit 1; }; }
2744fi
2745
2746fi
2747{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2748$as_echo "$ac_cv_host" >&6; }
2749case $ac_cv_host in
2750*-*-*) ;;
2751*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2752$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2753   { (exit 1); exit 1; }; };;
2754esac
2755host=$ac_cv_host
2756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_host
2758shift
2759host_cpu=$1
2760host_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764host_os=$*
2765IFS=$ac_save_IFS
2766case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767
2768
2769DEPDIR="${am__leading_dot}deps"
2770
2771ac_config_commands="$ac_config_commands depfiles"
2772
2773
2774am_make=${MAKE-make}
2775cat > confinc << 'END'
2776am__doit:
2777	@echo done
2778.PHONY: am__doit
2779END
2780# If we don't find an include directive, just comment out the code.
2781{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2782$as_echo_n "checking for style of include used by $am_make... " >&6; }
2783am__include="#"
2784am__quote=
2785_am_result=none
2786# First try GNU make style include.
2787echo "include confinc" > confmf
2788# We grep out `Entering directory' and `Leaving directory'
2789# messages which can occur if `w' ends up in MAKEFLAGS.
2790# In particular we don't look at `^make:' because GNU make might
2791# be invoked under some other name (usually "gmake"), in which
2792# case it prints its new name instead of `make'.
2793if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2794   am__include=include
2795   am__quote=
2796   _am_result=GNU
2797fi
2798# Now try BSD make style include.
2799if test "$am__include" = "#"; then
2800   echo '.include "confinc"' > confmf
2801   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2802      am__include=.include
2803      am__quote="\""
2804      _am_result=BSD
2805   fi
2806fi
2807
2808
2809{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2810$as_echo "$_am_result" >&6; }
2811rm -f confinc confmf
2812
2813# Check whether --enable-dependency-tracking was given.
2814if test "${enable_dependency_tracking+set}" = set; then
2815  enableval=$enable_dependency_tracking;
2816fi
2817
2818if test "x$enable_dependency_tracking" != xno; then
2819  am_depcomp="$ac_aux_dir/depcomp"
2820  AMDEPBACKSLASH='\'
2821fi
2822 if test "x$enable_dependency_tracking" != xno; then
2823  AMDEP_TRUE=
2824  AMDEP_FALSE='#'
2825else
2826  AMDEP_TRUE='#'
2827  AMDEP_FALSE=
2828fi
2829
2830
2831ac_ext=c
2832ac_cpp='$CPP $CPPFLAGS'
2833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836if test -n "$ac_tool_prefix"; then
2837  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if test "${ac_cv_prog_CC+set}" = set; then
2842  $as_echo_n "(cached) " >&6
2843else
2844  if test -n "$CC"; then
2845  ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852  for ac_exec_ext in '' $ac_executable_extensions; do
2853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869  { $as_echo "$as_me:$LINENO: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874fi
2875if test -z "$ac_cv_prog_CC"; then
2876  ac_ct_CC=$CC
2877  # Extract the first word of "gcc", so it can be a program name with args.
2878set dummy gcc; ac_word=$2
2879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$ac_ct_CC"; then
2885  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892  for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_ac_ct_CC="gcc"
2895    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907$as_echo "$ac_ct_CC" >&6; }
2908else
2909  { $as_echo "$as_me:$LINENO: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913  if test "x$ac_ct_CC" = x; then
2914    CC=""
2915  else
2916    case $cross_compiling:$ac_tool_warned in
2917yes:)
2918{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920ac_tool_warned=yes ;;
2921esac
2922    CC=$ac_ct_CC
2923  fi
2924else
2925  CC="$ac_cv_prog_CC"
2926fi
2927
2928if test -z "$CC"; then
2929          if test -n "$ac_tool_prefix"; then
2930    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931set dummy ${ac_tool_prefix}cc; ac_word=$2
2932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if test "${ac_cv_prog_CC+set}" = set; then
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$CC"; then
2938  ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945  for ac_exec_ext in '' $ac_executable_extensions; do
2946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947    ac_cv_prog_CC="${ac_tool_prefix}cc"
2948    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957CC=$ac_cv_prog_CC
2958if test -n "$CC"; then
2959  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2960$as_echo "$CC" >&6; }
2961else
2962  { $as_echo "$as_me:$LINENO: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967  fi
2968fi
2969if test -z "$CC"; then
2970  # Extract the first word of "cc", so it can be a program name with args.
2971set dummy cc; ac_word=$2
2972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if test "${ac_cv_prog_CC+set}" = set; then
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980  ac_prog_rejected=no
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986  for ac_exec_ext in '' $ac_executable_extensions; do
2987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989       ac_prog_rejected=yes
2990       continue
2991     fi
2992    ac_cv_prog_CC="cc"
2993    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997done
2998IFS=$as_save_IFS
2999
3000if test $ac_prog_rejected = yes; then
3001  # We found a bogon in the path, so make sure we never use it.
3002  set dummy $ac_cv_prog_CC
3003  shift
3004  if test $# != 0; then
3005    # We chose a different compiler from the bogus one.
3006    # However, it has the same basename, so the bogon will be chosen
3007    # first if we set CC to just the basename; use the full file name.
3008    shift
3009    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010  fi
3011fi
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:$LINENO: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024fi
3025if test -z "$CC"; then
3026  if test -n "$ac_tool_prefix"; then
3027  for ac_prog in cl.exe
3028  do
3029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if test "${ac_cv_prog_CC+set}" = set; then
3034  $as_echo_n "(cached) " >&6
3035else
3036  if test -n "$CC"; then
3037  ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042  IFS=$as_save_IFS
3043  test -z "$as_dir" && as_dir=.
3044  for ac_exec_ext in '' $ac_executable_extensions; do
3045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3059$as_echo "$CC" >&6; }
3060else
3061  { $as_echo "$as_me:$LINENO: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066    test -n "$CC" && break
3067  done
3068fi
3069if test -z "$CC"; then
3070  ac_ct_CC=$CC
3071  for ac_prog in cl.exe
3072do
3073  # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$ac_ct_CC"; then
3081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088  for ac_exec_ext in '' $ac_executable_extensions; do
3089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090    ac_cv_prog_ac_ct_CC="$ac_prog"
3091    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
3102  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103$as_echo "$ac_ct_CC" >&6; }
3104else
3105  { $as_echo "$as_me:$LINENO: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110  test -n "$ac_ct_CC" && break
3111done
3112
3113  if test "x$ac_ct_CC" = x; then
3114    CC=""
3115  else
3116    case $cross_compiling:$ac_tool_warned in
3117yes:)
3118{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120ac_tool_warned=yes ;;
3121esac
3122    CC=$ac_ct_CC
3123  fi
3124fi
3125
3126fi
3127
3128
3129test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3132See \`config.log' for more details." >&5
3133$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3134See \`config.log' for more details." >&2;}
3135   { (exit 1); exit 1; }; }; }
3136
3137# Provide some information about the compiler.
3138$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3139set X $ac_compile
3140ac_compiler=$2
3141{ (ac_try="$ac_compiler --version >&5"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147$as_echo "$ac_try_echo") >&5
3148  (eval "$ac_compiler --version >&5") 2>&5
3149  ac_status=$?
3150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }
3152{ (ac_try="$ac_compiler -v >&5"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158$as_echo "$ac_try_echo") >&5
3159  (eval "$ac_compiler -v >&5") 2>&5
3160  ac_status=$?
3161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }
3163{ (ac_try="$ac_compiler -V >&5"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
3170  (eval "$ac_compiler -V >&5") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }
3174
3175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190ac_clean_files_save=$ac_clean_files
3191ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3192# Try to create an executable without -o first, disregard a.out.
3193# It will help us diagnose broken compilers, and finding out an intuition
3194# of exeext.
3195{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196$as_echo_n "checking for C compiler default output file name... " >&6; }
3197ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3198
3199# The possible output files:
3200ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201
3202ac_rmfiles=
3203for ac_file in $ac_files
3204do
3205  case $ac_file in
3206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3208  esac
3209done
3210rm -f $ac_rmfiles
3211
3212if { (ac_try="$ac_link_default"
3213case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3218$as_echo "$ac_try_echo") >&5
3219  (eval "$ac_link_default") 2>&5
3220  ac_status=$?
3221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; then
3223  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3226# so that the user can short-circuit this test for compilers unknown to
3227# Autoconf.
3228for ac_file in $ac_files ''
3229do
3230  test -f "$ac_file" || continue
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233	;;
3234    [ab].out )
3235	# We found the default executable, but exeext='' is most
3236	# certainly right.
3237	break;;
3238    *.* )
3239        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3240	then :; else
3241	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242	fi
3243	# We set ac_cv_exeext here because the later test for it is not
3244	# safe: cross compilers may not add the suffix if given an `-o'
3245	# argument, so we may need to know it at that point already.
3246	# Even if this section looks crufty: it has the advantage of
3247	# actually working.
3248	break;;
3249    * )
3250	break;;
3251  esac
3252done
3253test "$ac_cv_exeext" = no && ac_cv_exeext=
3254
3255else
3256  ac_file=''
3257fi
3258
3259{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3260$as_echo "$ac_file" >&6; }
3261if test -z "$ac_file"; then
3262  $as_echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3268See \`config.log' for more details." >&5
3269$as_echo "$as_me: error: C compiler cannot create executables
3270See \`config.log' for more details." >&2;}
3271   { (exit 77); exit 77; }; }; }
3272fi
3273
3274ac_exeext=$ac_cv_exeext
3275
3276# Check that the compiler produces executables we can run.  If not, either
3277# the compiler is broken, or we cross compile.
3278{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3279$as_echo_n "checking whether the C compiler works... " >&6; }
3280# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3281# If not cross compiling, check that we can run a simple program.
3282if test "$cross_compiling" != yes; then
3283  if { ac_try='./$ac_file'
3284  { (case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3289$as_echo "$ac_try_echo") >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; }; then
3294    cross_compiling=no
3295  else
3296    if test "$cross_compiling" = maybe; then
3297	cross_compiling=yes
3298    else
3299	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3302If you meant to cross compile, use \`--host'.
3303See \`config.log' for more details." >&5
3304$as_echo "$as_me: error: cannot run C compiled programs.
3305If you meant to cross compile, use \`--host'.
3306See \`config.log' for more details." >&2;}
3307   { (exit 1); exit 1; }; }; }
3308    fi
3309  fi
3310fi
3311{ $as_echo "$as_me:$LINENO: result: yes" >&5
3312$as_echo "yes" >&6; }
3313
3314rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315ac_clean_files=$ac_clean_files_save
3316# Check that the compiler produces executables we can run.  If not, either
3317# the compiler is broken, or we cross compile.
3318{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3319$as_echo_n "checking whether we are cross compiling... " >&6; }
3320{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3321$as_echo "$cross_compiling" >&6; }
3322
3323{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3324$as_echo_n "checking for suffix of executables... " >&6; }
3325if { (ac_try="$ac_link"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331$as_echo "$ac_try_echo") >&5
3332  (eval "$ac_link") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }; then
3336  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3338# work properly (i.e., refer to `conftest.exe'), while it won't with
3339# `rm'.
3340for ac_file in conftest.exe conftest conftest.*; do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3344    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345	  break;;
3346    * ) break;;
3347  esac
3348done
3349else
3350  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3353See \`config.log' for more details." >&5
3354$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3355See \`config.log' for more details." >&2;}
3356   { (exit 1); exit 1; }; }; }
3357fi
3358
3359rm -f conftest$ac_cv_exeext
3360{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3361$as_echo "$ac_cv_exeext" >&6; }
3362
3363rm -f conftest.$ac_ext
3364EXEEXT=$ac_cv_exeext
3365ac_exeext=$EXEEXT
3366{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3367$as_echo_n "checking for suffix of object files... " >&6; }
3368if test "${ac_cv_objext+set}" = set; then
3369  $as_echo_n "(cached) " >&6
3370else
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.o conftest.obj
3387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393$as_echo "$ac_try_echo") >&5
3394  (eval "$ac_compile") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; then
3398  for ac_file in conftest.o conftest.obj conftest.*; do
3399  test -f "$ac_file" || continue;
3400  case $ac_file in
3401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403       break;;
3404  esac
3405done
3406else
3407  $as_echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details." >&5
3414$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3415See \`config.log' for more details." >&2;}
3416   { (exit 1); exit 1; }; }; }
3417fi
3418
3419rm -f conftest.$ac_cv_objext conftest.$ac_ext
3420fi
3421{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3422$as_echo "$ac_cv_objext" >&6; }
3423OBJEXT=$ac_cv_objext
3424ac_objext=$OBJEXT
3425{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3426$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3427if test "${ac_cv_c_compiler_gnu+set}" = set; then
3428  $as_echo_n "(cached) " >&6
3429else
3430  cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440#ifndef __GNUC__
3441       choke me
3442#endif
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455$as_echo "$ac_try_echo") >&5
3456  (eval "$ac_compile") 2>conftest.er1
3457  ac_status=$?
3458  grep -v '^ *+' conftest.er1 >conftest.err
3459  rm -f conftest.er1
3460  cat conftest.err >&5
3461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); } && {
3463	 test -z "$ac_c_werror_flag" ||
3464	 test ! -s conftest.err
3465       } && test -s conftest.$ac_objext; then
3466  ac_compiler_gnu=yes
3467else
3468  $as_echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471	ac_compiler_gnu=no
3472fi
3473
3474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475ac_cv_c_compiler_gnu=$ac_compiler_gnu
3476
3477fi
3478{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3479$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3480if test $ac_compiler_gnu = yes; then
3481  GCC=yes
3482else
3483  GCC=
3484fi
3485ac_test_CFLAGS=${CFLAGS+set}
3486ac_save_CFLAGS=$CFLAGS
3487{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3488$as_echo_n "checking whether $CC accepts -g... " >&6; }
3489if test "${ac_cv_prog_cc_g+set}" = set; then
3490  $as_echo_n "(cached) " >&6
3491else
3492  ac_save_c_werror_flag=$ac_c_werror_flag
3493   ac_c_werror_flag=yes
3494   ac_cv_prog_cc_g=no
3495   CFLAGS="-g"
3496   cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h.  */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518$as_echo "$ac_try_echo") >&5
3519  (eval "$ac_compile") 2>conftest.er1
3520  ac_status=$?
3521  grep -v '^ *+' conftest.er1 >conftest.err
3522  rm -f conftest.er1
3523  cat conftest.err >&5
3524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); } && {
3526	 test -z "$ac_c_werror_flag" ||
3527	 test ! -s conftest.err
3528       } && test -s conftest.$ac_objext; then
3529  ac_cv_prog_cc_g=yes
3530else
3531  $as_echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534	CFLAGS=""
3535      cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h.  */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (ac_try="$ac_compile"
3552case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557$as_echo "$ac_try_echo") >&5
3558  (eval "$ac_compile") 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } && {
3565	 test -z "$ac_c_werror_flag" ||
3566	 test ! -s conftest.err
3567       } && test -s conftest.$ac_objext; then
3568  :
3569else
3570  $as_echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573	ac_c_werror_flag=$ac_save_c_werror_flag
3574	 CFLAGS="-g"
3575	 cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (ac_try="$ac_compile"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597$as_echo "$ac_try_echo") >&5
3598  (eval "$ac_compile") 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } && {
3605	 test -z "$ac_c_werror_flag" ||
3606	 test ! -s conftest.err
3607       } && test -s conftest.$ac_objext; then
3608  ac_cv_prog_cc_g=yes
3609else
3610  $as_echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613
3614fi
3615
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620fi
3621
3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623   ac_c_werror_flag=$ac_save_c_werror_flag
3624fi
3625{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3626$as_echo "$ac_cv_prog_cc_g" >&6; }
3627if test "$ac_test_CFLAGS" = set; then
3628  CFLAGS=$ac_save_CFLAGS
3629elif test $ac_cv_prog_cc_g = yes; then
3630  if test "$GCC" = yes; then
3631    CFLAGS="-g -O2"
3632  else
3633    CFLAGS="-g"
3634  fi
3635else
3636  if test "$GCC" = yes; then
3637    CFLAGS="-O2"
3638  else
3639    CFLAGS=
3640  fi
3641fi
3642{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644if test "${ac_cv_prog_cc_c89+set}" = set; then
3645  $as_echo_n "(cached) " >&6
3646else
3647  ac_cv_prog_cc_c89=no
3648ac_save_CC=$CC
3649cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h.  */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h.  */
3655#include <stdarg.h>
3656#include <stdio.h>
3657#include <sys/types.h>
3658#include <sys/stat.h>
3659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3660struct buf { int x; };
3661FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662static char *e (p, i)
3663     char **p;
3664     int i;
3665{
3666  return p[i];
3667}
3668static char *f (char * (*g) (char **, int), char **p, ...)
3669{
3670  char *s;
3671  va_list v;
3672  va_start (v,p);
3673  s = g (p, va_arg (v,int));
3674  va_end (v);
3675  return s;
3676}
3677
3678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3679   function prototypes and stuff, but not '\xHH' hex character constants.
3680   These don't provoke an error unfortunately, instead are silently treated
3681   as 'x'.  The following induces an error, until -std is added to get
3682   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3683   array size at least.  It's necessary to write '\x00'==0 to get something
3684   that's true only with -std.  */
3685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688   inside strings and character constants.  */
3689#define FOO(x) 'x'
3690int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691
3692int test (int i, double x);
3693struct s1 {int (*f) (int a);};
3694struct s2 {int (*f) (double a);};
3695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696int argc;
3697char **argv;
3698int
3699main ()
3700{
3701return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708do
3709  CC="$ac_save_CC $ac_arg"
3710  rm -f conftest.$ac_objext
3711if { (ac_try="$ac_compile"
3712case "(($ac_try" in
3713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714  *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3717$as_echo "$ac_try_echo") >&5
3718  (eval "$ac_compile") 2>conftest.er1
3719  ac_status=$?
3720  grep -v '^ *+' conftest.er1 >conftest.err
3721  rm -f conftest.er1
3722  cat conftest.err >&5
3723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); } && {
3725	 test -z "$ac_c_werror_flag" ||
3726	 test ! -s conftest.err
3727       } && test -s conftest.$ac_objext; then
3728  ac_cv_prog_cc_c89=$ac_arg
3729else
3730  $as_echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733
3734fi
3735
3736rm -f core conftest.err conftest.$ac_objext
3737  test "x$ac_cv_prog_cc_c89" != "xno" && break
3738done
3739rm -f conftest.$ac_ext
3740CC=$ac_save_CC
3741
3742fi
3743# AC_CACHE_VAL
3744case "x$ac_cv_prog_cc_c89" in
3745  x)
3746    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3747$as_echo "none needed" >&6; } ;;
3748  xno)
3749    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3750$as_echo "unsupported" >&6; } ;;
3751  *)
3752    CC="$CC $ac_cv_prog_cc_c89"
3753    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3754$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755esac
3756
3757
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764depcc="$CC"   am_compiler_list=
3765
3766{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3767$as_echo_n "checking dependency style of $depcc... " >&6; }
3768if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3769  $as_echo_n "(cached) " >&6
3770else
3771  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3772  # We make a subdir and do the tests there.  Otherwise we can end up
3773  # making bogus files that we don't know about and never remove.  For
3774  # instance it was reported that on HP-UX the gcc test will end up
3775  # making a dummy file named `D' -- because `-MD' means `put the output
3776  # in D'.
3777  mkdir conftest.dir
3778  # Copy depcomp to subdir because otherwise we won't find it if we're
3779  # using a relative directory.
3780  cp "$am_depcomp" conftest.dir
3781  cd conftest.dir
3782  # We will build objects and dependencies in a subdirectory because
3783  # it helps to detect inapplicable dependency modes.  For instance
3784  # both Tru64's cc and ICC support -MD to output dependencies as a
3785  # side effect of compilation, but ICC will put the dependencies in
3786  # the current directory while Tru64 will put them in the object
3787  # directory.
3788  mkdir sub
3789
3790  am_cv_CC_dependencies_compiler_type=none
3791  if test "$am_compiler_list" = ""; then
3792     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3793  fi
3794  for depmode in $am_compiler_list; do
3795    # Setup a source with many dependencies, because some compilers
3796    # like to wrap large dependency lists on column 80 (with \), and
3797    # we should not choose a depcomp mode which is confused by this.
3798    #
3799    # We need to recreate these files for each test, as the compiler may
3800    # overwrite some of them when testing with obscure command lines.
3801    # This happens at least with the AIX C compiler.
3802    : > sub/conftest.c
3803    for i in 1 2 3 4 5 6; do
3804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3805      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3806      # Solaris 8's {/usr,}/bin/sh.
3807      touch sub/conftst$i.h
3808    done
3809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810
3811    case $depmode in
3812    nosideeffect)
3813      # after this tag, mechanisms are not by side-effect, so they'll
3814      # only be used when explicitly requested
3815      if test "x$enable_dependency_tracking" = xyes; then
3816	continue
3817      else
3818	break
3819      fi
3820      ;;
3821    none) break ;;
3822    esac
3823    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3824    # mode.  It turns out that the SunPro C++ compiler does not properly
3825    # handle `-M -o', and we need to detect this.
3826    if depmode=$depmode \
3827       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3828       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3829       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3830         >/dev/null 2>conftest.err &&
3831       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835      # icc doesn't choke on unknown options, it will just issue warnings
3836      # or remarks (even with -Werror).  So we grep stderr for any message
3837      # that says an option was ignored or not supported.
3838      # When given -MP, icc 7.0 and 7.1 complain thusly:
3839      #   icc: Command line warning: ignoring option '-M'; no argument required
3840      # The diagnosis changed in icc 8.0:
3841      #   icc: Command line remark: option '-MP' not supported
3842      if (grep 'ignoring option' conftest.err ||
3843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844        am_cv_CC_dependencies_compiler_type=$depmode
3845        break
3846      fi
3847    fi
3848  done
3849
3850  cd ..
3851  rm -rf conftest.dir
3852else
3853  am_cv_CC_dependencies_compiler_type=none
3854fi
3855
3856fi
3857{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861 if
3862  test "x$enable_dependency_tracking" != xno \
3863  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3864  am__fastdepCC_TRUE=
3865  am__fastdepCC_FALSE='#'
3866else
3867  am__fastdepCC_TRUE='#'
3868  am__fastdepCC_FALSE=
3869fi
3870
3871
3872{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3873$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3874if test "${lt_cv_path_SED+set}" = set; then
3875  $as_echo_n "(cached) " >&6
3876else
3877  # Loop through the user's path and test for sed and gsed.
3878# Then use that list of sed's as ones to test for truncation.
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884  for lt_ac_prog in sed gsed; do
3885    for ac_exec_ext in '' $ac_executable_extensions; do
3886      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3887        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3888      fi
3889    done
3890  done
3891done
3892IFS=$as_save_IFS
3893lt_ac_max=0
3894lt_ac_count=0
3895# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3896# along with /bin/sed that truncates output.
3897for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3898  test ! -f $lt_ac_sed && continue
3899  cat /dev/null > conftest.in
3900  lt_ac_count=0
3901  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3902  # Check for GNU sed and select it if it is found.
3903  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3904    lt_cv_path_SED=$lt_ac_sed
3905    break
3906  fi
3907  while true; do
3908    cat conftest.in conftest.in >conftest.tmp
3909    mv conftest.tmp conftest.in
3910    cp conftest.in conftest.nl
3911    echo >>conftest.nl
3912    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3913    cmp -s conftest.out conftest.nl || break
3914    # 10000 chars as input seems more than enough
3915    test $lt_ac_count -gt 10 && break
3916    lt_ac_count=`expr $lt_ac_count + 1`
3917    if test $lt_ac_count -gt $lt_ac_max; then
3918      lt_ac_max=$lt_ac_count
3919      lt_cv_path_SED=$lt_ac_sed
3920    fi
3921  done
3922done
3923
3924fi
3925
3926SED=$lt_cv_path_SED
3927
3928{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3929$as_echo "$SED" >&6; }
3930
3931{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3932$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3933if test "${ac_cv_path_GREP+set}" = set; then
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -z "$GREP"; then
3937  ac_path_GREP_found=false
3938  # Loop through the user's path and test for each of PROGNAME-LIST
3939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944  for ac_prog in grep ggrep; do
3945    for ac_exec_ext in '' $ac_executable_extensions; do
3946      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3947      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3948# Check for GNU ac_path_GREP and select it if it is found.
3949  # Check for GNU $ac_path_GREP
3950case `"$ac_path_GREP" --version 2>&1` in
3951*GNU*)
3952  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3953*)
3954  ac_count=0
3955  $as_echo_n 0123456789 >"conftest.in"
3956  while :
3957  do
3958    cat "conftest.in" "conftest.in" >"conftest.tmp"
3959    mv "conftest.tmp" "conftest.in"
3960    cp "conftest.in" "conftest.nl"
3961    $as_echo 'GREP' >> "conftest.nl"
3962    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964    ac_count=`expr $ac_count + 1`
3965    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3966      # Best one so far, save it but keep looking for a better one
3967      ac_cv_path_GREP="$ac_path_GREP"
3968      ac_path_GREP_max=$ac_count
3969    fi
3970    # 10*(2^10) chars as input seems more than enough
3971    test $ac_count -gt 10 && break
3972  done
3973  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974esac
3975
3976      $ac_path_GREP_found && break 3
3977    done
3978  done
3979done
3980IFS=$as_save_IFS
3981  if test -z "$ac_cv_path_GREP"; then
3982    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3983$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3984   { (exit 1); exit 1; }; }
3985  fi
3986else
3987  ac_cv_path_GREP=$GREP
3988fi
3989
3990fi
3991{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992$as_echo "$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
3995
3996{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3997$as_echo_n "checking for egrep... " >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999  $as_echo_n "(cached) " >&6
4000else
4001  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002   then ac_cv_path_EGREP="$GREP -E"
4003   else
4004     if test -z "$EGREP"; then
4005  ac_path_EGREP_found=false
4006  # Loop through the user's path and test for each of PROGNAME-LIST
4007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012  for ac_prog in egrep; do
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4016# Check for GNU ac_path_EGREP and select it if it is found.
4017  # Check for GNU $ac_path_EGREP
4018case `"$ac_path_EGREP" --version 2>&1` in
4019*GNU*)
4020  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021*)
4022  ac_count=0
4023  $as_echo_n 0123456789 >"conftest.in"
4024  while :
4025  do
4026    cat "conftest.in" "conftest.in" >"conftest.tmp"
4027    mv "conftest.tmp" "conftest.in"
4028    cp "conftest.in" "conftest.nl"
4029    $as_echo 'EGREP' >> "conftest.nl"
4030    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032    ac_count=`expr $ac_count + 1`
4033    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034      # Best one so far, save it but keep looking for a better one
4035      ac_cv_path_EGREP="$ac_path_EGREP"
4036      ac_path_EGREP_max=$ac_count
4037    fi
4038    # 10*(2^10) chars as input seems more than enough
4039    test $ac_count -gt 10 && break
4040  done
4041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042esac
4043
4044      $ac_path_EGREP_found && break 3
4045    done
4046  done
4047done
4048IFS=$as_save_IFS
4049  if test -z "$ac_cv_path_EGREP"; then
4050    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4051$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4052   { (exit 1); exit 1; }; }
4053  fi
4054else
4055  ac_cv_path_EGREP=$EGREP
4056fi
4057
4058   fi
4059fi
4060{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4061$as_echo "$ac_cv_path_EGREP" >&6; }
4062 EGREP="$ac_cv_path_EGREP"
4063
4064
4065
4066# Check whether --with-gnu-ld was given.
4067if test "${with_gnu_ld+set}" = set; then
4068  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4069else
4070  with_gnu_ld=no
4071fi
4072
4073ac_prog=ld
4074if test "$GCC" = yes; then
4075  # Check if gcc -print-prog-name=ld gives a path.
4076  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4077$as_echo_n "checking for ld used by $CC... " >&6; }
4078  case $host in
4079  *-*-mingw*)
4080    # gcc leaves a trailing carriage return which upsets mingw
4081    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4082  *)
4083    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4084  esac
4085  case $ac_prog in
4086    # Accept absolute paths.
4087    [\\/]* | ?:[\\/]*)
4088      re_direlt='/[^/][^/]*/\.\./'
4089      # Canonicalize the pathname of ld
4090      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4091      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4092	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4093      done
4094      test -z "$LD" && LD="$ac_prog"
4095      ;;
4096  "")
4097    # If it fails, then pretend we aren't using GCC.
4098    ac_prog=ld
4099    ;;
4100  *)
4101    # If it is relative, then search for the first ld in PATH.
4102    with_gnu_ld=unknown
4103    ;;
4104  esac
4105elif test "$with_gnu_ld" = yes; then
4106  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4107$as_echo_n "checking for GNU ld... " >&6; }
4108else
4109  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4110$as_echo_n "checking for non-GNU ld... " >&6; }
4111fi
4112if test "${lt_cv_path_LD+set}" = set; then
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$LD"; then
4116  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4117  for ac_dir in $PATH; do
4118    IFS="$lt_save_ifs"
4119    test -z "$ac_dir" && ac_dir=.
4120    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4121      lt_cv_path_LD="$ac_dir/$ac_prog"
4122      # Check to see if the program is GNU ld.  I'd rather use --version,
4123      # but apparently some variants of GNU ld only accept -v.
4124      # Break only if it was the GNU/non-GNU ld that we prefer.
4125      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4126      *GNU* | *'with BFD'*)
4127	test "$with_gnu_ld" != no && break
4128	;;
4129      *)
4130	test "$with_gnu_ld" != yes && break
4131	;;
4132      esac
4133    fi
4134  done
4135  IFS="$lt_save_ifs"
4136else
4137  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4138fi
4139fi
4140
4141LD="$lt_cv_path_LD"
4142if test -n "$LD"; then
4143  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4144$as_echo "$LD" >&6; }
4145else
4146  { $as_echo "$as_me:$LINENO: result: no" >&5
4147$as_echo "no" >&6; }
4148fi
4149test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4150$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4151   { (exit 1); exit 1; }; }
4152{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4154if test "${lt_cv_prog_gnu_ld+set}" = set; then
4155  $as_echo_n "(cached) " >&6
4156else
4157  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4158case `$LD -v 2>&1 </dev/null` in
4159*GNU* | *'with BFD'*)
4160  lt_cv_prog_gnu_ld=yes
4161  ;;
4162*)
4163  lt_cv_prog_gnu_ld=no
4164  ;;
4165esac
4166fi
4167{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4168$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4169with_gnu_ld=$lt_cv_prog_gnu_ld
4170
4171
4172{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4173$as_echo_n "checking for $LD option to reload object files... " >&6; }
4174if test "${lt_cv_ld_reload_flag+set}" = set; then
4175  $as_echo_n "(cached) " >&6
4176else
4177  lt_cv_ld_reload_flag='-r'
4178fi
4179{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4180$as_echo "$lt_cv_ld_reload_flag" >&6; }
4181reload_flag=$lt_cv_ld_reload_flag
4182case $reload_flag in
4183"" | " "*) ;;
4184*) reload_flag=" $reload_flag" ;;
4185esac
4186reload_cmds='$LD$reload_flag -o $output$reload_objs'
4187case $host_os in
4188  darwin*)
4189    if test "$GCC" = yes; then
4190      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4191    else
4192      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4193    fi
4194    ;;
4195esac
4196
4197{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4198$as_echo_n "checking for BSD-compatible nm... " >&6; }
4199if test "${lt_cv_path_NM+set}" = set; then
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -n "$NM"; then
4203  # Let the user override the test.
4204  lt_cv_path_NM="$NM"
4205else
4206  lt_nm_to_check="${ac_tool_prefix}nm"
4207  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4208    lt_nm_to_check="$lt_nm_to_check nm"
4209  fi
4210  for lt_tmp_nm in $lt_nm_to_check; do
4211    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4212    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4213      IFS="$lt_save_ifs"
4214      test -z "$ac_dir" && ac_dir=.
4215      tmp_nm="$ac_dir/$lt_tmp_nm"
4216      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4217	# Check to see if the nm accepts a BSD-compat flag.
4218	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4219	#   nm: unknown option "B" ignored
4220	# Tru64's nm complains that /dev/null is an invalid object file
4221	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4222	*/dev/null* | *'Invalid file or object type'*)
4223	  lt_cv_path_NM="$tmp_nm -B"
4224	  break
4225	  ;;
4226	*)
4227	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4228	  */dev/null*)
4229	    lt_cv_path_NM="$tmp_nm -p"
4230	    break
4231	    ;;
4232	  *)
4233	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4234	    continue # so that we can try to find one that supports BSD flags
4235	    ;;
4236	  esac
4237	  ;;
4238	esac
4239      fi
4240    done
4241    IFS="$lt_save_ifs"
4242  done
4243  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4244fi
4245fi
4246{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4247$as_echo "$lt_cv_path_NM" >&6; }
4248NM="$lt_cv_path_NM"
4249
4250{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4251$as_echo_n "checking whether ln -s works... " >&6; }
4252LN_S=$as_ln_s
4253if test "$LN_S" = "ln -s"; then
4254  { $as_echo "$as_me:$LINENO: result: yes" >&5
4255$as_echo "yes" >&6; }
4256else
4257  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4258$as_echo "no, using $LN_S" >&6; }
4259fi
4260
4261{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4262$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4263if test "${lt_cv_deplibs_check_method+set}" = set; then
4264  $as_echo_n "(cached) " >&6
4265else
4266  lt_cv_file_magic_cmd='$MAGIC_CMD'
4267lt_cv_file_magic_test_file=
4268lt_cv_deplibs_check_method='unknown'
4269# Need to set the preceding variable on all platforms that support
4270# interlibrary dependencies.
4271# 'none' -- dependencies not supported.
4272# `unknown' -- same as none, but documents that we really don't know.
4273# 'pass_all' -- all dependencies passed with no checks.
4274# 'test_compile' -- check by making test program.
4275# 'file_magic [[regex]]' -- check by looking for files in library path
4276# which responds to the $file_magic_cmd with a given extended regex.
4277# If you have `file' or equivalent on your system and you're not sure
4278# whether `pass_all' will *always* work, you probably want this one.
4279
4280case $host_os in
4281aix[4-9]*)
4282  lt_cv_deplibs_check_method=pass_all
4283  ;;
4284
4285beos*)
4286  lt_cv_deplibs_check_method=pass_all
4287  ;;
4288
4289bsdi[45]*)
4290  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4291  lt_cv_file_magic_cmd='/usr/bin/file -L'
4292  lt_cv_file_magic_test_file=/shlib/libc.so
4293  ;;
4294
4295cygwin*)
4296  # func_win32_libid is a shell function defined in ltmain.sh
4297  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4298  lt_cv_file_magic_cmd='func_win32_libid'
4299  ;;
4300
4301mingw* | pw32*)
4302  # Base MSYS/MinGW do not provide the 'file' command needed by
4303  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4304  # unless we find 'file', for example because we are cross-compiling.
4305  if ( file / ) >/dev/null 2>&1; then
4306    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4307    lt_cv_file_magic_cmd='func_win32_libid'
4308  else
4309    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4310    lt_cv_file_magic_cmd='$OBJDUMP -f'
4311  fi
4312  ;;
4313
4314darwin* | rhapsody*)
4315  lt_cv_deplibs_check_method=pass_all
4316  ;;
4317
4318freebsd* | dragonfly*)
4319  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4320    case $host_cpu in
4321    i*86 )
4322      # Not sure whether the presence of OpenBSD here was a mistake.
4323      # Let's accept both of them until this is cleared up.
4324      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4325      lt_cv_file_magic_cmd=/usr/bin/file
4326      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4327      ;;
4328    esac
4329  else
4330    lt_cv_deplibs_check_method=pass_all
4331  fi
4332  ;;
4333
4334gnu*)
4335  lt_cv_deplibs_check_method=pass_all
4336  ;;
4337
4338hpux10.20* | hpux11*)
4339  lt_cv_file_magic_cmd=/usr/bin/file
4340  case $host_cpu in
4341  ia64*)
4342    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4343    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4344    ;;
4345  hppa*64*)
4346    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]'
4347    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4348    ;;
4349  *)
4350    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4351    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4352    ;;
4353  esac
4354  ;;
4355
4356interix[3-9]*)
4357  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4358  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4359  ;;
4360
4361irix5* | irix6* | nonstopux*)
4362  case $LD in
4363  *-32|*"-32 ") libmagic=32-bit;;
4364  *-n32|*"-n32 ") libmagic=N32;;
4365  *-64|*"-64 ") libmagic=64-bit;;
4366  *) libmagic=never-match;;
4367  esac
4368  lt_cv_deplibs_check_method=pass_all
4369  ;;
4370
4371# This must be Linux ELF.
4372linux* | k*bsd*-gnu)
4373  lt_cv_deplibs_check_method=pass_all
4374  ;;
4375
4376netbsd*)
4377  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4379  else
4380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4381  fi
4382  ;;
4383
4384newos6*)
4385  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4386  lt_cv_file_magic_cmd=/usr/bin/file
4387  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4388  ;;
4389
4390nto-qnx*)
4391  lt_cv_deplibs_check_method=unknown
4392  ;;
4393
4394openbsd*)
4395  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4397  else
4398    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4399  fi
4400  ;;
4401
4402osf3* | osf4* | osf5*)
4403  lt_cv_deplibs_check_method=pass_all
4404  ;;
4405
4406rdos*)
4407  lt_cv_deplibs_check_method=pass_all
4408  ;;
4409
4410solaris*)
4411  lt_cv_deplibs_check_method=pass_all
4412  ;;
4413
4414sysv4 | sysv4.3*)
4415  case $host_vendor in
4416  motorola)
4417    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]'
4418    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4419    ;;
4420  ncr)
4421    lt_cv_deplibs_check_method=pass_all
4422    ;;
4423  sequent)
4424    lt_cv_file_magic_cmd='/bin/file'
4425    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4426    ;;
4427  sni)
4428    lt_cv_file_magic_cmd='/bin/file'
4429    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4430    lt_cv_file_magic_test_file=/lib/libc.so
4431    ;;
4432  siemens)
4433    lt_cv_deplibs_check_method=pass_all
4434    ;;
4435  pc)
4436    lt_cv_deplibs_check_method=pass_all
4437    ;;
4438  esac
4439  ;;
4440
4441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4442  lt_cv_deplibs_check_method=pass_all
4443  ;;
4444esac
4445
4446fi
4447{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4448$as_echo "$lt_cv_deplibs_check_method" >&6; }
4449file_magic_cmd=$lt_cv_file_magic_cmd
4450deplibs_check_method=$lt_cv_deplibs_check_method
4451test -z "$deplibs_check_method" && deplibs_check_method=unknown
4452
4453
4454
4455
4456# If no C compiler was specified, use CC.
4457LTCC=${LTCC-"$CC"}
4458
4459# If no C compiler flags were specified, use CFLAGS.
4460LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4461
4462# Allow CC to be a program name with arguments.
4463compiler=$CC
4464
4465
4466# Check whether --enable-libtool-lock was given.
4467if test "${enable_libtool_lock+set}" = set; then
4468  enableval=$enable_libtool_lock;
4469fi
4470
4471test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4472
4473# Some flags need to be propagated to the compiler or linker for good
4474# libtool support.
4475case $host in
4476ia64-*-hpux*)
4477  # Find out which ABI we are using.
4478  echo 'int i;' > conftest.$ac_ext
4479  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480  (eval $ac_compile) 2>&5
4481  ac_status=$?
4482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; then
4484    case `/usr/bin/file conftest.$ac_objext` in
4485    *ELF-32*)
4486      HPUX_IA64_MODE="32"
4487      ;;
4488    *ELF-64*)
4489      HPUX_IA64_MODE="64"
4490      ;;
4491    esac
4492  fi
4493  rm -rf conftest*
4494  ;;
4495*-*-irix6*)
4496  # Find out which ABI we are using.
4497  echo '#line 4497 "configure"' > conftest.$ac_ext
4498  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499  (eval $ac_compile) 2>&5
4500  ac_status=$?
4501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502  (exit $ac_status); }; then
4503   if test "$lt_cv_prog_gnu_ld" = yes; then
4504    case `/usr/bin/file conftest.$ac_objext` in
4505    *32-bit*)
4506      LD="${LD-ld} -melf32bsmip"
4507      ;;
4508    *N32*)
4509      LD="${LD-ld} -melf32bmipn32"
4510      ;;
4511    *64-bit*)
4512      LD="${LD-ld} -melf64bmip"
4513      ;;
4514    esac
4515   else
4516    case `/usr/bin/file conftest.$ac_objext` in
4517    *32-bit*)
4518      LD="${LD-ld} -32"
4519      ;;
4520    *N32*)
4521      LD="${LD-ld} -n32"
4522      ;;
4523    *64-bit*)
4524      LD="${LD-ld} -64"
4525      ;;
4526    esac
4527   fi
4528  fi
4529  rm -rf conftest*
4530  ;;
4531
4532x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4533s390*-*linux*|sparc*-*linux*)
4534  # Find out which ABI we are using.
4535  echo 'int i;' > conftest.$ac_ext
4536  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537  (eval $ac_compile) 2>&5
4538  ac_status=$?
4539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; then
4541    case `/usr/bin/file conftest.o` in
4542    *32-bit*)
4543      case $host in
4544        x86_64-*kfreebsd*-gnu)
4545          LD="${LD-ld} -m elf_i386_fbsd"
4546          ;;
4547        x86_64-*linux*)
4548          LD="${LD-ld} -m elf_i386"
4549          ;;
4550        ppc64-*linux*|powerpc64-*linux*)
4551          LD="${LD-ld} -m elf32ppclinux"
4552          ;;
4553        s390x-*linux*)
4554          LD="${LD-ld} -m elf_s390"
4555          ;;
4556        sparc64-*linux*)
4557          LD="${LD-ld} -m elf32_sparc"
4558          ;;
4559      esac
4560      ;;
4561    *64-bit*)
4562      libsuff=64
4563      case $host in
4564        x86_64-*kfreebsd*-gnu)
4565          LD="${LD-ld} -m elf_x86_64_fbsd"
4566          ;;
4567        x86_64-*linux*)
4568          LD="${LD-ld} -m elf_x86_64"
4569          ;;
4570        ppc*-*linux*|powerpc*-*linux*)
4571          LD="${LD-ld} -m elf64ppc"
4572          ;;
4573        s390*-*linux*)
4574          LD="${LD-ld} -m elf64_s390"
4575          ;;
4576        sparc*-*linux*)
4577          LD="${LD-ld} -m elf64_sparc"
4578          ;;
4579      esac
4580      ;;
4581    esac
4582  fi
4583  rm -rf conftest*
4584  ;;
4585
4586*-*-sco3.2v5*)
4587  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4588  SAVE_CFLAGS="$CFLAGS"
4589  CFLAGS="$CFLAGS -belf"
4590  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4591$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4592if test "${lt_cv_cc_needs_belf+set}" = set; then
4593  $as_echo_n "(cached) " >&6
4594else
4595  ac_ext=c
4596ac_cpp='$CPP $CPPFLAGS'
4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601     cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h.  */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h.  */
4607
4608int
4609main ()
4610{
4611
4612  ;
4613  return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (ac_try="$ac_link"
4618case "(($ac_try" in
4619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620  *) ac_try_echo=$ac_try;;
4621esac
4622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4623$as_echo "$ac_try_echo") >&5
4624  (eval "$ac_link") 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } && {
4631	 test -z "$ac_c_werror_flag" ||
4632	 test ! -s conftest.err
4633       } && test -s conftest$ac_exeext && {
4634	 test "$cross_compiling" = yes ||
4635	 $as_test_x conftest$ac_exeext
4636       }; then
4637  lt_cv_cc_needs_belf=yes
4638else
4639  $as_echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642	lt_cv_cc_needs_belf=no
4643fi
4644
4645rm -rf conftest.dSYM
4646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4647      conftest$ac_exeext conftest.$ac_ext
4648     ac_ext=c
4649ac_cpp='$CPP $CPPFLAGS'
4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654fi
4655{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4656$as_echo "$lt_cv_cc_needs_belf" >&6; }
4657  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4658    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4659    CFLAGS="$SAVE_CFLAGS"
4660  fi
4661  ;;
4662sparc*-*solaris*)
4663  # Find out which ABI we are using.
4664  echo 'int i;' > conftest.$ac_ext
4665  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666  (eval $ac_compile) 2>&5
4667  ac_status=$?
4668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); }; then
4670    case `/usr/bin/file conftest.o` in
4671    *64-bit*)
4672      case $lt_cv_prog_gnu_ld in
4673      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4674      *)
4675        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4676	  LD="${LD-ld} -64"
4677	fi
4678	;;
4679      esac
4680      ;;
4681    esac
4682  fi
4683  rm -rf conftest*
4684  ;;
4685
4686
4687esac
4688
4689need_locks="$enable_libtool_lock"
4690
4691
4692ac_ext=c
4693ac_cpp='$CPP $CPPFLAGS'
4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698$as_echo_n "checking how to run the C preprocessor... " >&6; }
4699# On Suns, sometimes $CPP names a directory.
4700if test -n "$CPP" && test -d "$CPP"; then
4701  CPP=
4702fi
4703if test -z "$CPP"; then
4704  if test "${ac_cv_prog_CPP+set}" = set; then
4705  $as_echo_n "(cached) " >&6
4706else
4707      # Double quotes because CPP needs to be expanded
4708    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709    do
4710      ac_preproc_ok=false
4711for ac_c_preproc_warn_flag in '' yes
4712do
4713  # Use a header file that comes with gcc, so configuring glibc
4714  # with a fresh cross-compiler works.
4715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716  # <limits.h> exists even on freestanding compilers.
4717  # On the NeXT, cc -E runs the code through the compiler's parser,
4718  # not just through cpp. "Syntax error" is here to catch this case.
4719  cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h.  */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h.  */
4725#ifdef __STDC__
4726# include <limits.h>
4727#else
4728# include <assert.h>
4729#endif
4730		     Syntax error
4731_ACEOF
4732if { (ac_try="$ac_cpp conftest.$ac_ext"
4733case "(($ac_try" in
4734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735  *) ac_try_echo=$ac_try;;
4736esac
4737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738$as_echo "$ac_try_echo") >&5
4739  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740  ac_status=$?
4741  grep -v '^ *+' conftest.er1 >conftest.err
4742  rm -f conftest.er1
4743  cat conftest.err >&5
4744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); } >/dev/null && {
4746	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747	 test ! -s conftest.err
4748       }; then
4749  :
4750else
4751  $as_echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754  # Broken: fails on valid input.
4755continue
4756fi
4757
4758rm -f conftest.err conftest.$ac_ext
4759
4760  # OK, works on sane cases.  Now check whether nonexistent headers
4761  # can be detected and how.
4762  cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h.  */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h.  */
4768#include <ac_nonexistent.h>
4769_ACEOF
4770if { (ac_try="$ac_cpp conftest.$ac_ext"
4771case "(($ac_try" in
4772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773  *) ac_try_echo=$ac_try;;
4774esac
4775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4776$as_echo "$ac_try_echo") >&5
4777  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778  ac_status=$?
4779  grep -v '^ *+' conftest.er1 >conftest.err
4780  rm -f conftest.er1
4781  cat conftest.err >&5
4782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); } >/dev/null && {
4784	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785	 test ! -s conftest.err
4786       }; then
4787  # Broken: success on invalid input.
4788continue
4789else
4790  $as_echo "$as_me: failed program was:" >&5
4791sed 's/^/| /' conftest.$ac_ext >&5
4792
4793  # Passes both tests.
4794ac_preproc_ok=:
4795break
4796fi
4797
4798rm -f conftest.err conftest.$ac_ext
4799
4800done
4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802rm -f conftest.err conftest.$ac_ext
4803if $ac_preproc_ok; then
4804  break
4805fi
4806
4807    done
4808    ac_cv_prog_CPP=$CPP
4809
4810fi
4811  CPP=$ac_cv_prog_CPP
4812else
4813  ac_cv_prog_CPP=$CPP
4814fi
4815{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4816$as_echo "$CPP" >&6; }
4817ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820  # Use a header file that comes with gcc, so configuring glibc
4821  # with a fresh cross-compiler works.
4822  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823  # <limits.h> exists even on freestanding compilers.
4824  # On the NeXT, cc -E runs the code through the compiler's parser,
4825  # not just through cpp. "Syntax error" is here to catch this case.
4826  cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h.  */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h.  */
4832#ifdef __STDC__
4833# include <limits.h>
4834#else
4835# include <assert.h>
4836#endif
4837		     Syntax error
4838_ACEOF
4839if { (ac_try="$ac_cpp conftest.$ac_ext"
4840case "(($ac_try" in
4841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842  *) ac_try_echo=$ac_try;;
4843esac
4844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845$as_echo "$ac_try_echo") >&5
4846  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847  ac_status=$?
4848  grep -v '^ *+' conftest.er1 >conftest.err
4849  rm -f conftest.er1
4850  cat conftest.err >&5
4851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); } >/dev/null && {
4853	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854	 test ! -s conftest.err
4855       }; then
4856  :
4857else
4858  $as_echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861  # Broken: fails on valid input.
4862continue
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867  # OK, works on sane cases.  Now check whether nonexistent headers
4868  # can be detected and how.
4869  cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h.  */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h.  */
4875#include <ac_nonexistent.h>
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880  *) ac_try_echo=$ac_try;;
4881esac
4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883$as_echo "$ac_try_echo") >&5
4884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885  ac_status=$?
4886  grep -v '^ *+' conftest.er1 >conftest.err
4887  rm -f conftest.er1
4888  cat conftest.err >&5
4889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } >/dev/null && {
4891	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892	 test ! -s conftest.err
4893       }; then
4894  # Broken: success on invalid input.
4895continue
4896else
4897  $as_echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900  # Passes both tests.
4901ac_preproc_ok=:
4902break
4903fi
4904
4905rm -f conftest.err conftest.$ac_ext
4906
4907done
4908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909rm -f conftest.err conftest.$ac_ext
4910if $ac_preproc_ok; then
4911  :
4912else
4913  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4915{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4916See \`config.log' for more details." >&5
4917$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4918See \`config.log' for more details." >&2;}
4919   { (exit 1); exit 1; }; }; }
4920fi
4921
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928
4929{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930$as_echo_n "checking for ANSI C header files... " >&6; }
4931if test "${ac_cv_header_stdc+set}" = set; then
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h.  */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h.  */
4940#include <stdlib.h>
4941#include <stdarg.h>
4942#include <string.h>
4943#include <float.h>
4944
4945int
4946main ()
4947{
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext
4954if { (ac_try="$ac_compile"
4955case "(($ac_try" in
4956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957  *) ac_try_echo=$ac_try;;
4958esac
4959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4960$as_echo "$ac_try_echo") >&5
4961  (eval "$ac_compile") 2>conftest.er1
4962  ac_status=$?
4963  grep -v '^ *+' conftest.er1 >conftest.err
4964  rm -f conftest.er1
4965  cat conftest.err >&5
4966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } && {
4968	 test -z "$ac_c_werror_flag" ||
4969	 test ! -s conftest.err
4970       } && test -s conftest.$ac_objext; then
4971  ac_cv_header_stdc=yes
4972else
4973  $as_echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976	ac_cv_header_stdc=no
4977fi
4978
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980
4981if test $ac_cv_header_stdc = yes; then
4982  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4983  cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989#include <string.h>
4990
4991_ACEOF
4992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993  $EGREP "memchr" >/dev/null 2>&1; then
4994  :
4995else
4996  ac_cv_header_stdc=no
4997fi
4998rm -f conftest*
4999
5000fi
5001
5002if test $ac_cv_header_stdc = yes; then
5003  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004  cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010#include <stdlib.h>
5011
5012_ACEOF
5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014  $EGREP "free" >/dev/null 2>&1; then
5015  :
5016else
5017  ac_cv_header_stdc=no
5018fi
5019rm -f conftest*
5020
5021fi
5022
5023if test $ac_cv_header_stdc = yes; then
5024  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5025  if test "$cross_compiling" = yes; then
5026  :
5027else
5028  cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h.  */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h.  */
5034#include <ctype.h>
5035#include <stdlib.h>
5036#if ((' ' & 0x0FF) == 0x020)
5037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5039#else
5040# define ISLOWER(c) \
5041		   (('a' <= (c) && (c) <= 'i') \
5042		     || ('j' <= (c) && (c) <= 'r') \
5043		     || ('s' <= (c) && (c) <= 'z'))
5044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5045#endif
5046
5047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5048int
5049main ()
5050{
5051  int i;
5052  for (i = 0; i < 256; i++)
5053    if (XOR (islower (i), ISLOWER (i))
5054	|| toupper (i) != TOUPPER (i))
5055      return 2;
5056  return 0;
5057}
5058_ACEOF
5059rm -f conftest$ac_exeext
5060if { (ac_try="$ac_link"
5061case "(($ac_try" in
5062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063  *) ac_try_echo=$ac_try;;
5064esac
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
5067  (eval "$ac_link") 2>&5
5068  ac_status=$?
5069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5071  { (case "(($ac_try" in
5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073  *) ac_try_echo=$ac_try;;
5074esac
5075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076$as_echo "$ac_try_echo") >&5
5077  (eval "$ac_try") 2>&5
5078  ac_status=$?
5079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); }; }; then
5081  :
5082else
5083  $as_echo "$as_me: program exited with status $ac_status" >&5
5084$as_echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087( exit $ac_status )
5088ac_cv_header_stdc=no
5089fi
5090rm -rf conftest.dSYM
5091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092fi
5093
5094
5095fi
5096fi
5097{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5098$as_echo "$ac_cv_header_stdc" >&6; }
5099if test $ac_cv_header_stdc = yes; then
5100
5101cat >>confdefs.h <<\_ACEOF
5102#define STDC_HEADERS 1
5103_ACEOF
5104
5105fi
5106
5107# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5118		  inttypes.h stdint.h unistd.h
5119do
5120as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5122$as_echo_n "checking for $ac_header... " >&6; }
5123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124  $as_echo_n "(cached) " >&6
5125else
5126  cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h.  */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h.  */
5132$ac_includes_default
5133
5134#include <$ac_header>
5135_ACEOF
5136rm -f conftest.$ac_objext
5137if { (ac_try="$ac_compile"
5138case "(($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_compile") 2>conftest.er1
5145  ac_status=$?
5146  grep -v '^ *+' conftest.er1 >conftest.err
5147  rm -f conftest.er1
5148  cat conftest.err >&5
5149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } && {
5151	 test -z "$ac_c_werror_flag" ||
5152	 test ! -s conftest.err
5153       } && test -s conftest.$ac_objext; then
5154  eval "$as_ac_Header=yes"
5155else
5156  $as_echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159	eval "$as_ac_Header=no"
5160fi
5161
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163fi
5164ac_res=`eval 'as_val=${'$as_ac_Header'}
5165		 $as_echo "$as_val"'`
5166	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5167$as_echo "$ac_res" >&6; }
5168as_val=`eval 'as_val=${'$as_ac_Header'}
5169		 $as_echo "$as_val"'`
5170   if test "x$as_val" = x""yes; then
5171  cat >>confdefs.h <<_ACEOF
5172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5173_ACEOF
5174
5175fi
5176
5177done
5178
5179
5180
5181for ac_header in dlfcn.h
5182do
5183as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5185  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5186$as_echo_n "checking for $ac_header... " >&6; }
5187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5188  $as_echo_n "(cached) " >&6
5189fi
5190ac_res=`eval 'as_val=${'$as_ac_Header'}
5191		 $as_echo "$as_val"'`
5192	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5193$as_echo "$ac_res" >&6; }
5194else
5195  # Is the header compilable?
5196{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5197$as_echo_n "checking $ac_header usability... " >&6; }
5198cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h.  */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h.  */
5204$ac_includes_default
5205#include <$ac_header>
5206_ACEOF
5207rm -f conftest.$ac_objext
5208if { (ac_try="$ac_compile"
5209case "(($ac_try" in
5210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211  *) ac_try_echo=$ac_try;;
5212esac
5213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5214$as_echo "$ac_try_echo") >&5
5215  (eval "$ac_compile") 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } && {
5222	 test -z "$ac_c_werror_flag" ||
5223	 test ! -s conftest.err
5224       } && test -s conftest.$ac_objext; then
5225  ac_header_compiler=yes
5226else
5227  $as_echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230	ac_header_compiler=no
5231fi
5232
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5235$as_echo "$ac_header_compiler" >&6; }
5236
5237# Is the header present?
5238{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5239$as_echo_n "checking $ac_header presence... " >&6; }
5240cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246#include <$ac_header>
5247_ACEOF
5248if { (ac_try="$ac_cpp conftest.$ac_ext"
5249case "(($ac_try" in
5250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251  *) ac_try_echo=$ac_try;;
5252esac
5253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254$as_echo "$ac_try_echo") >&5
5255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } >/dev/null && {
5262	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5263	 test ! -s conftest.err
5264       }; then
5265  ac_header_preproc=yes
5266else
5267  $as_echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270  ac_header_preproc=no
5271fi
5272
5273rm -f conftest.err conftest.$ac_ext
5274{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5275$as_echo "$ac_header_preproc" >&6; }
5276
5277# So?  What about this header?
5278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5279  yes:no: )
5280    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5281$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5283$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5284    ac_header_preproc=yes
5285    ;;
5286  no:yes:* )
5287    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5288$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5289    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5290$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5291    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5292$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5294$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5296$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5298$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5299    ( cat <<\_ASBOX
5300## ---------------------------------------------------------------------- ##
5301## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5302## ---------------------------------------------------------------------- ##
5303_ASBOX
5304     ) | sed "s/^/$as_me: WARNING:     /" >&2
5305    ;;
5306esac
5307{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5308$as_echo_n "checking for $ac_header... " >&6; }
5309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5310  $as_echo_n "(cached) " >&6
5311else
5312  eval "$as_ac_Header=\$ac_header_preproc"
5313fi
5314ac_res=`eval 'as_val=${'$as_ac_Header'}
5315		 $as_echo "$as_val"'`
5316	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5317$as_echo "$ac_res" >&6; }
5318
5319fi
5320as_val=`eval 'as_val=${'$as_ac_Header'}
5321		 $as_echo "$as_val"'`
5322   if test "x$as_val" = x""yes; then
5323  cat >>confdefs.h <<_ACEOF
5324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5325_ACEOF
5326
5327fi
5328
5329done
5330
5331ac_ext=cpp
5332ac_cpp='$CXXCPP $CPPFLAGS'
5333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5336if test -z "$CXX"; then
5337  if test -n "$CCC"; then
5338    CXX=$CCC
5339  else
5340    if test -n "$ac_tool_prefix"; then
5341  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5342  do
5343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if test "${ac_cv_prog_CXX+set}" = set; then
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -n "$CXX"; then
5351  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358  for ac_exec_ext in '' $ac_executable_extensions; do
5359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5361    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370CXX=$ac_cv_prog_CXX
5371if test -n "$CXX"; then
5372  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5373$as_echo "$CXX" >&6; }
5374else
5375  { $as_echo "$as_me:$LINENO: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379
5380    test -n "$CXX" && break
5381  done
5382fi
5383if test -z "$CXX"; then
5384  ac_ct_CXX=$CXX
5385  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5386do
5387  # Extract the first word of "$ac_prog", so it can be a program name with args.
5388set dummy $ac_prog; ac_word=$2
5389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5392  $as_echo_n "(cached) " >&6
5393else
5394  if test -n "$ac_ct_CXX"; then
5395  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402  for ac_exec_ext in '' $ac_executable_extensions; do
5403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404    ac_cv_prog_ac_ct_CXX="$ac_prog"
5405    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409done
5410IFS=$as_save_IFS
5411
5412fi
5413fi
5414ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5415if test -n "$ac_ct_CXX"; then
5416  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5417$as_echo "$ac_ct_CXX" >&6; }
5418else
5419  { $as_echo "$as_me:$LINENO: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422
5423
5424  test -n "$ac_ct_CXX" && break
5425done
5426
5427  if test "x$ac_ct_CXX" = x; then
5428    CXX="g++"
5429  else
5430    case $cross_compiling:$ac_tool_warned in
5431yes:)
5432{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434ac_tool_warned=yes ;;
5435esac
5436    CXX=$ac_ct_CXX
5437  fi
5438fi
5439
5440  fi
5441fi
5442# Provide some information about the compiler.
5443$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5444set X $ac_compile
5445ac_compiler=$2
5446{ (ac_try="$ac_compiler --version >&5"
5447case "(($ac_try" in
5448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449  *) ac_try_echo=$ac_try;;
5450esac
5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452$as_echo "$ac_try_echo") >&5
5453  (eval "$ac_compiler --version >&5") 2>&5
5454  ac_status=$?
5455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }
5457{ (ac_try="$ac_compiler -v >&5"
5458case "(($ac_try" in
5459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460  *) ac_try_echo=$ac_try;;
5461esac
5462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463$as_echo "$ac_try_echo") >&5
5464  (eval "$ac_compiler -v >&5") 2>&5
5465  ac_status=$?
5466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }
5468{ (ac_try="$ac_compiler -V >&5"
5469case "(($ac_try" in
5470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471  *) ac_try_echo=$ac_try;;
5472esac
5473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474$as_echo "$ac_try_echo") >&5
5475  (eval "$ac_compiler -V >&5") 2>&5
5476  ac_status=$?
5477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }
5479
5480{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5481$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5482if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5483  $as_echo_n "(cached) " >&6
5484else
5485  cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492int
5493main ()
5494{
5495#ifndef __GNUC__
5496       choke me
5497#endif
5498
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext
5504if { (ac_try="$ac_compile"
5505case "(($ac_try" in
5506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507  *) ac_try_echo=$ac_try;;
5508esac
5509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510$as_echo "$ac_try_echo") >&5
5511  (eval "$ac_compile") 2>conftest.er1
5512  ac_status=$?
5513  grep -v '^ *+' conftest.er1 >conftest.err
5514  rm -f conftest.er1
5515  cat conftest.err >&5
5516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); } && {
5518	 test -z "$ac_cxx_werror_flag" ||
5519	 test ! -s conftest.err
5520       } && test -s conftest.$ac_objext; then
5521  ac_compiler_gnu=yes
5522else
5523  $as_echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526	ac_compiler_gnu=no
5527fi
5528
5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531
5532fi
5533{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5534$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5535if test $ac_compiler_gnu = yes; then
5536  GXX=yes
5537else
5538  GXX=
5539fi
5540ac_test_CXXFLAGS=${CXXFLAGS+set}
5541ac_save_CXXFLAGS=$CXXFLAGS
5542{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5543$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5544if test "${ac_cv_prog_cxx_g+set}" = set; then
5545  $as_echo_n "(cached) " >&6
5546else
5547  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5548   ac_cxx_werror_flag=yes
5549   ac_cv_prog_cxx_g=no
5550   CXXFLAGS="-g"
5551   cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h.  */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h.  */
5557
5558int
5559main ()
5560{
5561
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566rm -f conftest.$ac_objext
5567if { (ac_try="$ac_compile"
5568case "(($ac_try" in
5569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570  *) ac_try_echo=$ac_try;;
5571esac
5572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573$as_echo "$ac_try_echo") >&5
5574  (eval "$ac_compile") 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && {
5581	 test -z "$ac_cxx_werror_flag" ||
5582	 test ! -s conftest.err
5583       } && test -s conftest.$ac_objext; then
5584  ac_cv_prog_cxx_g=yes
5585else
5586  $as_echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589	CXXFLAGS=""
5590      cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h.  */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h.  */
5596
5597int
5598main ()
5599{
5600
5601  ;
5602  return 0;
5603}
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (ac_try="$ac_compile"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
5613  (eval "$ac_compile") 2>conftest.er1
5614  ac_status=$?
5615  grep -v '^ *+' conftest.er1 >conftest.err
5616  rm -f conftest.er1
5617  cat conftest.err >&5
5618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619  (exit $ac_status); } && {
5620	 test -z "$ac_cxx_werror_flag" ||
5621	 test ! -s conftest.err
5622       } && test -s conftest.$ac_objext; then
5623  :
5624else
5625  $as_echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5629	 CXXFLAGS="-g"
5630	 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636
5637int
5638main ()
5639{
5640
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (ac_try="$ac_compile"
5647case "(($ac_try" in
5648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649  *) ac_try_echo=$ac_try;;
5650esac
5651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652$as_echo "$ac_try_echo") >&5
5653  (eval "$ac_compile") 2>conftest.er1
5654  ac_status=$?
5655  grep -v '^ *+' conftest.er1 >conftest.err
5656  rm -f conftest.er1
5657  cat conftest.err >&5
5658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); } && {
5660	 test -z "$ac_cxx_werror_flag" ||
5661	 test ! -s conftest.err
5662       } && test -s conftest.$ac_objext; then
5663  ac_cv_prog_cxx_g=yes
5664else
5665  $as_echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668
5669fi
5670
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672fi
5673
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675fi
5676
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5679fi
5680{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5681$as_echo "$ac_cv_prog_cxx_g" >&6; }
5682if test "$ac_test_CXXFLAGS" = set; then
5683  CXXFLAGS=$ac_save_CXXFLAGS
5684elif test $ac_cv_prog_cxx_g = yes; then
5685  if test "$GXX" = yes; then
5686    CXXFLAGS="-g -O2"
5687  else
5688    CXXFLAGS="-g"
5689  fi
5690else
5691  if test "$GXX" = yes; then
5692    CXXFLAGS="-O2"
5693  else
5694    CXXFLAGS=
5695  fi
5696fi
5697ac_ext=cpp
5698ac_cpp='$CXXCPP $CPPFLAGS'
5699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702
5703depcc="$CXX"  am_compiler_list=
5704
5705{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706$as_echo_n "checking dependency style of $depcc... " >&6; }
5707if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711  # We make a subdir and do the tests there.  Otherwise we can end up
5712  # making bogus files that we don't know about and never remove.  For
5713  # instance it was reported that on HP-UX the gcc test will end up
5714  # making a dummy file named `D' -- because `-MD' means `put the output
5715  # in D'.
5716  mkdir conftest.dir
5717  # Copy depcomp to subdir because otherwise we won't find it if we're
5718  # using a relative directory.
5719  cp "$am_depcomp" conftest.dir
5720  cd conftest.dir
5721  # We will build objects and dependencies in a subdirectory because
5722  # it helps to detect inapplicable dependency modes.  For instance
5723  # both Tru64's cc and ICC support -MD to output dependencies as a
5724  # side effect of compilation, but ICC will put the dependencies in
5725  # the current directory while Tru64 will put them in the object
5726  # directory.
5727  mkdir sub
5728
5729  am_cv_CXX_dependencies_compiler_type=none
5730  if test "$am_compiler_list" = ""; then
5731     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5732  fi
5733  for depmode in $am_compiler_list; do
5734    # Setup a source with many dependencies, because some compilers
5735    # like to wrap large dependency lists on column 80 (with \), and
5736    # we should not choose a depcomp mode which is confused by this.
5737    #
5738    # We need to recreate these files for each test, as the compiler may
5739    # overwrite some of them when testing with obscure command lines.
5740    # This happens at least with the AIX C compiler.
5741    : > sub/conftest.c
5742    for i in 1 2 3 4 5 6; do
5743      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745      # Solaris 8's {/usr,}/bin/sh.
5746      touch sub/conftst$i.h
5747    done
5748    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749
5750    case $depmode in
5751    nosideeffect)
5752      # after this tag, mechanisms are not by side-effect, so they'll
5753      # only be used when explicitly requested
5754      if test "x$enable_dependency_tracking" = xyes; then
5755	continue
5756      else
5757	break
5758      fi
5759      ;;
5760    none) break ;;
5761    esac
5762    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763    # mode.  It turns out that the SunPro C++ compiler does not properly
5764    # handle `-M -o', and we need to detect this.
5765    if depmode=$depmode \
5766       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769         >/dev/null 2>conftest.err &&
5770       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5771       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5772       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5773       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5774      # icc doesn't choke on unknown options, it will just issue warnings
5775      # or remarks (even with -Werror).  So we grep stderr for any message
5776      # that says an option was ignored or not supported.
5777      # When given -MP, icc 7.0 and 7.1 complain thusly:
5778      #   icc: Command line warning: ignoring option '-M'; no argument required
5779      # The diagnosis changed in icc 8.0:
5780      #   icc: Command line remark: option '-MP' not supported
5781      if (grep 'ignoring option' conftest.err ||
5782          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5783        am_cv_CXX_dependencies_compiler_type=$depmode
5784        break
5785      fi
5786    fi
5787  done
5788
5789  cd ..
5790  rm -rf conftest.dir
5791else
5792  am_cv_CXX_dependencies_compiler_type=none
5793fi
5794
5795fi
5796{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5797$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5798CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5799
5800 if
5801  test "x$enable_dependency_tracking" != xno \
5802  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5803  am__fastdepCXX_TRUE=
5804  am__fastdepCXX_FALSE='#'
5805else
5806  am__fastdepCXX_TRUE='#'
5807  am__fastdepCXX_FALSE=
5808fi
5809
5810
5811
5812
5813if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5814    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5815    (test "X$CXX" != "Xg++"))) ; then
5816  ac_ext=cpp
5817ac_cpp='$CXXCPP $CPPFLAGS'
5818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5822$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5823if test -z "$CXXCPP"; then
5824  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5825  $as_echo_n "(cached) " >&6
5826else
5827      # Double quotes because CXXCPP needs to be expanded
5828    for CXXCPP in "$CXX -E" "/lib/cpp"
5829    do
5830      ac_preproc_ok=false
5831for ac_cxx_preproc_warn_flag in '' yes
5832do
5833  # Use a header file that comes with gcc, so configuring glibc
5834  # with a fresh cross-compiler works.
5835  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836  # <limits.h> exists even on freestanding compilers.
5837  # On the NeXT, cc -E runs the code through the compiler's parser,
5838  # not just through cpp. "Syntax error" is here to catch this case.
5839  cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h.  */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h.  */
5845#ifdef __STDC__
5846# include <limits.h>
5847#else
5848# include <assert.h>
5849#endif
5850		     Syntax error
5851_ACEOF
5852if { (ac_try="$ac_cpp conftest.$ac_ext"
5853case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858$as_echo "$ac_try_echo") >&5
5859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860  ac_status=$?
5861  grep -v '^ *+' conftest.er1 >conftest.err
5862  rm -f conftest.er1
5863  cat conftest.err >&5
5864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } >/dev/null && {
5866	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5867	 test ! -s conftest.err
5868       }; then
5869  :
5870else
5871  $as_echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874  # Broken: fails on valid input.
5875continue
5876fi
5877
5878rm -f conftest.err conftest.$ac_ext
5879
5880  # OK, works on sane cases.  Now check whether nonexistent headers
5881  # can be detected and how.
5882  cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888#include <ac_nonexistent.h>
5889_ACEOF
5890if { (ac_try="$ac_cpp conftest.$ac_ext"
5891case "(($ac_try" in
5892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893  *) ac_try_echo=$ac_try;;
5894esac
5895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896$as_echo "$ac_try_echo") >&5
5897  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } >/dev/null && {
5904	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5905	 test ! -s conftest.err
5906       }; then
5907  # Broken: success on invalid input.
5908continue
5909else
5910  $as_echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913  # Passes both tests.
5914ac_preproc_ok=:
5915break
5916fi
5917
5918rm -f conftest.err conftest.$ac_ext
5919
5920done
5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922rm -f conftest.err conftest.$ac_ext
5923if $ac_preproc_ok; then
5924  break
5925fi
5926
5927    done
5928    ac_cv_prog_CXXCPP=$CXXCPP
5929
5930fi
5931  CXXCPP=$ac_cv_prog_CXXCPP
5932else
5933  ac_cv_prog_CXXCPP=$CXXCPP
5934fi
5935{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5936$as_echo "$CXXCPP" >&6; }
5937ac_preproc_ok=false
5938for ac_cxx_preproc_warn_flag in '' yes
5939do
5940  # Use a header file that comes with gcc, so configuring glibc
5941  # with a fresh cross-compiler works.
5942  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943  # <limits.h> exists even on freestanding compilers.
5944  # On the NeXT, cc -E runs the code through the compiler's parser,
5945  # not just through cpp. "Syntax error" is here to catch this case.
5946  cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952#ifdef __STDC__
5953# include <limits.h>
5954#else
5955# include <assert.h>
5956#endif
5957		     Syntax error
5958_ACEOF
5959if { (ac_try="$ac_cpp conftest.$ac_ext"
5960case "(($ac_try" in
5961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962  *) ac_try_echo=$ac_try;;
5963esac
5964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5965$as_echo "$ac_try_echo") >&5
5966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5967  ac_status=$?
5968  grep -v '^ *+' conftest.er1 >conftest.err
5969  rm -f conftest.er1
5970  cat conftest.err >&5
5971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); } >/dev/null && {
5973	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5974	 test ! -s conftest.err
5975       }; then
5976  :
5977else
5978  $as_echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981  # Broken: fails on valid input.
5982continue
5983fi
5984
5985rm -f conftest.err conftest.$ac_ext
5986
5987  # OK, works on sane cases.  Now check whether nonexistent headers
5988  # can be detected and how.
5989  cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995#include <ac_nonexistent.h>
5996_ACEOF
5997if { (ac_try="$ac_cpp conftest.$ac_ext"
5998case "(($ac_try" in
5999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000  *) ac_try_echo=$ac_try;;
6001esac
6002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6003$as_echo "$ac_try_echo") >&5
6004  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } >/dev/null && {
6011	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6012	 test ! -s conftest.err
6013       }; then
6014  # Broken: success on invalid input.
6015continue
6016else
6017  $as_echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020  # Passes both tests.
6021ac_preproc_ok=:
6022break
6023fi
6024
6025rm -f conftest.err conftest.$ac_ext
6026
6027done
6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029rm -f conftest.err conftest.$ac_ext
6030if $ac_preproc_ok; then
6031  :
6032else
6033  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6036See \`config.log' for more details." >&5
6037$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6038See \`config.log' for more details." >&2;}
6039   { (exit 1); exit 1; }; }; }
6040fi
6041
6042ac_ext=cpp
6043ac_cpp='$CXXCPP $CPPFLAGS'
6044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048fi
6049
6050
6051ac_ext=f
6052ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6053ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6055if test -n "$ac_tool_prefix"; then
6056  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
6057  do
6058    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
6062if test "${ac_cv_prog_F77+set}" = set; then
6063  $as_echo_n "(cached) " >&6
6064else
6065  if test -n "$F77"; then
6066  ac_cv_prog_F77="$F77" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071  IFS=$as_save_IFS
6072  test -z "$as_dir" && as_dir=.
6073  for ac_exec_ext in '' $ac_executable_extensions; do
6074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085F77=$ac_cv_prog_F77
6086if test -n "$F77"; then
6087  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6088$as_echo "$F77" >&6; }
6089else
6090  { $as_echo "$as_me:$LINENO: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094
6095    test -n "$F77" && break
6096  done
6097fi
6098if test -z "$F77"; then
6099  ac_ct_F77=$F77
6100  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
6101do
6102  # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
6104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$ac_ct_F77"; then
6110  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117  for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_ac_ct_F77="$ac_prog"
6120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_F77=$ac_cv_prog_ac_ct_F77
6130if test -n "$ac_ct_F77"; then
6131  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6132$as_echo "$ac_ct_F77" >&6; }
6133else
6134  { $as_echo "$as_me:$LINENO: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139  test -n "$ac_ct_F77" && break
6140done
6141
6142  if test "x$ac_ct_F77" = x; then
6143    F77=""
6144  else
6145    case $cross_compiling:$ac_tool_warned in
6146yes:)
6147{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149ac_tool_warned=yes ;;
6150esac
6151    F77=$ac_ct_F77
6152  fi
6153fi
6154
6155
6156# Provide some information about the compiler.
6157$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6158set X $ac_compile
6159ac_compiler=$2
6160{ (ac_try="$ac_compiler --version >&5"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167  (eval "$ac_compiler --version >&5") 2>&5
6168  ac_status=$?
6169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }
6171{ (ac_try="$ac_compiler -v >&5"
6172case "(($ac_try" in
6173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174  *) ac_try_echo=$ac_try;;
6175esac
6176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
6178  (eval "$ac_compiler -v >&5") 2>&5
6179  ac_status=$?
6180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }
6182{ (ac_try="$ac_compiler -V >&5"
6183case "(($ac_try" in
6184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185  *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188$as_echo "$ac_try_echo") >&5
6189  (eval "$ac_compiler -V >&5") 2>&5
6190  ac_status=$?
6191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192  (exit $ac_status); }
6193rm -f a.out
6194
6195# If we don't use `.F' as extension, the preprocessor is not run on the
6196# input file.  (Note that this only needs to work for GNU compilers.)
6197ac_save_ext=$ac_ext
6198ac_ext=F
6199{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6200$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6201if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6202  $as_echo_n "(cached) " >&6
6203else
6204  cat >conftest.$ac_ext <<_ACEOF
6205      program main
6206#ifndef __GNUC__
6207       choke me
6208#endif
6209
6210      end
6211_ACEOF
6212rm -f conftest.$ac_objext
6213if { (ac_try="$ac_compile"
6214case "(($ac_try" in
6215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216  *) ac_try_echo=$ac_try;;
6217esac
6218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219$as_echo "$ac_try_echo") >&5
6220  (eval "$ac_compile") 2>conftest.er1
6221  ac_status=$?
6222  grep -v '^ *+' conftest.er1 >conftest.err
6223  rm -f conftest.er1
6224  cat conftest.err >&5
6225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); } && {
6227	 test -z "$ac_f77_werror_flag" ||
6228	 test ! -s conftest.err
6229       } && test -s conftest.$ac_objext; then
6230  ac_compiler_gnu=yes
6231else
6232  $as_echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235	ac_compiler_gnu=no
6236fi
6237
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6240
6241fi
6242{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6243$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6244ac_ext=$ac_save_ext
6245ac_test_FFLAGS=${FFLAGS+set}
6246ac_save_FFLAGS=$FFLAGS
6247FFLAGS=
6248{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6249$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6250if test "${ac_cv_prog_f77_g+set}" = set; then
6251  $as_echo_n "(cached) " >&6
6252else
6253  FFLAGS=-g
6254cat >conftest.$ac_ext <<_ACEOF
6255      program main
6256
6257      end
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (ac_try="$ac_compile"
6261case "(($ac_try" in
6262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263  *) ac_try_echo=$ac_try;;
6264esac
6265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6266$as_echo "$ac_try_echo") >&5
6267  (eval "$ac_compile") 2>conftest.er1
6268  ac_status=$?
6269  grep -v '^ *+' conftest.er1 >conftest.err
6270  rm -f conftest.er1
6271  cat conftest.err >&5
6272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); } && {
6274	 test -z "$ac_f77_werror_flag" ||
6275	 test ! -s conftest.err
6276       } && test -s conftest.$ac_objext; then
6277  ac_cv_prog_f77_g=yes
6278else
6279  $as_echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282	ac_cv_prog_f77_g=no
6283fi
6284
6285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286
6287fi
6288{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6289$as_echo "$ac_cv_prog_f77_g" >&6; }
6290if test "$ac_test_FFLAGS" = set; then
6291  FFLAGS=$ac_save_FFLAGS
6292elif test $ac_cv_prog_f77_g = yes; then
6293  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6294    FFLAGS="-g -O2"
6295  else
6296    FFLAGS="-g"
6297  fi
6298else
6299  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6300    FFLAGS="-O2"
6301  else
6302    FFLAGS=
6303  fi
6304fi
6305
6306if test $ac_compiler_gnu = yes; then
6307  G77=yes
6308else
6309  G77=
6310fi
6311ac_ext=c
6312ac_cpp='$CPP $CPPFLAGS'
6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317
6318
6319# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6320# find the maximum length of command line arguments
6321{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6322$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6323if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6324  $as_echo_n "(cached) " >&6
6325else
6326    i=0
6327  teststring="ABCD"
6328
6329  case $build_os in
6330  msdosdjgpp*)
6331    # On DJGPP, this test can blow up pretty badly due to problems in libc
6332    # (any single argument exceeding 2000 bytes causes a buffer overrun
6333    # during glob expansion).  Even if it were fixed, the result of this
6334    # check would be larger than it should be.
6335    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6336    ;;
6337
6338  gnu*)
6339    # Under GNU Hurd, this test is not required because there is
6340    # no limit to the length of command line arguments.
6341    # Libtool will interpret -1 as no limit whatsoever
6342    lt_cv_sys_max_cmd_len=-1;
6343    ;;
6344
6345  cygwin* | mingw*)
6346    # On Win9x/ME, this test blows up -- it succeeds, but takes
6347    # about 5 minutes as the teststring grows exponentially.
6348    # Worse, since 9x/ME are not pre-emptively multitasking,
6349    # you end up with a "frozen" computer, even though with patience
6350    # the test eventually succeeds (with a max line length of 256k).
6351    # Instead, let's just punt: use the minimum linelength reported by
6352    # all of the supported platforms: 8192 (on NT/2K/XP).
6353    lt_cv_sys_max_cmd_len=8192;
6354    ;;
6355
6356  amigaos*)
6357    # On AmigaOS with pdksh, this test takes hours, literally.
6358    # So we just punt and use a minimum line length of 8192.
6359    lt_cv_sys_max_cmd_len=8192;
6360    ;;
6361
6362  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6363    # This has been around since 386BSD, at least.  Likely further.
6364    if test -x /sbin/sysctl; then
6365      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6366    elif test -x /usr/sbin/sysctl; then
6367      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6368    else
6369      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6370    fi
6371    # And add a safety zone
6372    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6373    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6374    ;;
6375
6376  interix*)
6377    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6378    lt_cv_sys_max_cmd_len=196608
6379    ;;
6380
6381  osf*)
6382    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6383    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6384    # nice to cause kernel panics so lets avoid the loop below.
6385    # First set a reasonable default.
6386    lt_cv_sys_max_cmd_len=16384
6387    #
6388    if test -x /sbin/sysconfig; then
6389      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6390        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6391      esac
6392    fi
6393    ;;
6394  sco3.2v5*)
6395    lt_cv_sys_max_cmd_len=102400
6396    ;;
6397  sysv5* | sco5v6* | sysv4.2uw2*)
6398    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6399    if test -n "$kargmax"; then
6400      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6401    else
6402      lt_cv_sys_max_cmd_len=32768
6403    fi
6404    ;;
6405  *)
6406    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6407    if test -n "$lt_cv_sys_max_cmd_len"; then
6408      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6409      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6410    else
6411      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6412      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6413	       = "XX$teststring") >/dev/null 2>&1 &&
6414	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6415	      lt_cv_sys_max_cmd_len=$new_result &&
6416	      test $i != 17 # 1/2 MB should be enough
6417      do
6418        i=`expr $i + 1`
6419        teststring=$teststring$teststring
6420      done
6421      teststring=
6422      # Add a significant safety factor because C++ compilers can tack on massive
6423      # amounts of additional arguments before passing them to the linker.
6424      # It appears as though 1/2 is a usable value.
6425      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6426    fi
6427    ;;
6428  esac
6429
6430fi
6431
6432if test -n $lt_cv_sys_max_cmd_len ; then
6433  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6434$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6435else
6436  { $as_echo "$as_me:$LINENO: result: none" >&5
6437$as_echo "none" >&6; }
6438fi
6439
6440
6441
6442
6443
6444# Check for command to grab the raw symbol name followed by C symbol from nm.
6445{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6446$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6447if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6448  $as_echo_n "(cached) " >&6
6449else
6450
6451# These are sane defaults that work on at least a few old systems.
6452# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6453
6454# Character class describing NM global symbol codes.
6455symcode='[BCDEGRST]'
6456
6457# Regexp to match symbols that can be accessed directly from C.
6458sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6459
6460# Transform an extracted symbol line into a proper C declaration
6461lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6462
6463# Transform an extracted symbol line into symbol name and symbol address
6464lt_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'"
6465
6466# Define system-specific variables.
6467case $host_os in
6468aix*)
6469  symcode='[BCDT]'
6470  ;;
6471cygwin* | mingw* | pw32*)
6472  symcode='[ABCDGISTW]'
6473  ;;
6474hpux*) # Its linker distinguishes data from code symbols
6475  if test "$host_cpu" = ia64; then
6476    symcode='[ABCDEGRST]'
6477  fi
6478  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6479  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'"
6480  ;;
6481linux* | k*bsd*-gnu)
6482  if test "$host_cpu" = ia64; then
6483    symcode='[ABCDGIRSTW]'
6484    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6485    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'"
6486  fi
6487  ;;
6488irix* | nonstopux*)
6489  symcode='[BCDEGRST]'
6490  ;;
6491osf*)
6492  symcode='[BCDEGQRST]'
6493  ;;
6494solaris*)
6495  symcode='[BDRT]'
6496  ;;
6497sco3.2v5*)
6498  symcode='[DT]'
6499  ;;
6500sysv4.2uw2*)
6501  symcode='[DT]'
6502  ;;
6503sysv5* | sco5v6* | unixware* | OpenUNIX*)
6504  symcode='[ABDT]'
6505  ;;
6506sysv4)
6507  symcode='[DFNSTU]'
6508  ;;
6509esac
6510
6511# Handle CRLF in mingw tool chain
6512opt_cr=
6513case $build_os in
6514mingw*)
6515  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6516  ;;
6517esac
6518
6519# If we're using GNU nm, then use its standard symbol codes.
6520case `$NM -V 2>&1` in
6521*GNU* | *'with BFD'*)
6522  symcode='[ABCDGIRSTW]' ;;
6523esac
6524
6525# Try without a prefix undercore, then with it.
6526for ac_symprfx in "" "_"; do
6527
6528  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6529  symxfrm="\\1 $ac_symprfx\\2 \\2"
6530
6531  # Write the raw and C identifiers.
6532  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6533
6534  # Check to see that the pipe works correctly.
6535  pipe_works=no
6536
6537  rm -f conftest*
6538  cat > conftest.$ac_ext <<EOF
6539#ifdef __cplusplus
6540extern "C" {
6541#endif
6542char nm_test_var;
6543void nm_test_func(){}
6544#ifdef __cplusplus
6545}
6546#endif
6547int main(){nm_test_var='a';nm_test_func();return(0);}
6548EOF
6549
6550  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551  (eval $ac_compile) 2>&5
6552  ac_status=$?
6553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554  (exit $ac_status); }; then
6555    # Now try to grab the symbols.
6556    nlist=conftest.nm
6557    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6558  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6559  ac_status=$?
6560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); } && test -s "$nlist"; then
6562      # Try sorting and uniquifying the output.
6563      if sort "$nlist" | uniq > "$nlist"T; then
6564	mv -f "$nlist"T "$nlist"
6565      else
6566	rm -f "$nlist"T
6567      fi
6568
6569      # Make sure that we snagged all the symbols we need.
6570      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6571	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6572	  cat <<EOF > conftest.$ac_ext
6573#ifdef __cplusplus
6574extern "C" {
6575#endif
6576
6577EOF
6578	  # Now generate the symbol file.
6579	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6580
6581	  cat <<EOF >> conftest.$ac_ext
6582#if defined (__STDC__) && __STDC__
6583# define lt_ptr_t void *
6584#else
6585# define lt_ptr_t char *
6586# define const
6587#endif
6588
6589/* The mapping between symbol names and symbols. */
6590const struct {
6591  const char *name;
6592  lt_ptr_t address;
6593}
6594lt_preloaded_symbols[] =
6595{
6596EOF
6597	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6598	  cat <<\EOF >> conftest.$ac_ext
6599  {0, (lt_ptr_t) 0}
6600};
6601
6602#ifdef __cplusplus
6603}
6604#endif
6605EOF
6606	  # Now try linking the two files.
6607	  mv conftest.$ac_objext conftstm.$ac_objext
6608	  lt_save_LIBS="$LIBS"
6609	  lt_save_CFLAGS="$CFLAGS"
6610	  LIBS="conftstm.$ac_objext"
6611	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6612	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6613  (eval $ac_link) 2>&5
6614  ac_status=$?
6615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6617	    pipe_works=yes
6618	  fi
6619	  LIBS="$lt_save_LIBS"
6620	  CFLAGS="$lt_save_CFLAGS"
6621	else
6622	  echo "cannot find nm_test_func in $nlist" >&5
6623	fi
6624      else
6625	echo "cannot find nm_test_var in $nlist" >&5
6626      fi
6627    else
6628      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6629    fi
6630  else
6631    echo "$progname: failed program was:" >&5
6632    cat conftest.$ac_ext >&5
6633  fi
6634  rm -rf conftest* conftst*
6635
6636  # Do not use the global_symbol_pipe unless it works.
6637  if test "$pipe_works" = yes; then
6638    break
6639  else
6640    lt_cv_sys_global_symbol_pipe=
6641  fi
6642done
6643
6644fi
6645
6646if test -z "$lt_cv_sys_global_symbol_pipe"; then
6647  lt_cv_sys_global_symbol_to_cdecl=
6648fi
6649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6650  { $as_echo "$as_me:$LINENO: result: failed" >&5
6651$as_echo "failed" >&6; }
6652else
6653  { $as_echo "$as_me:$LINENO: result: ok" >&5
6654$as_echo "ok" >&6; }
6655fi
6656
6657{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6658$as_echo_n "checking for objdir... " >&6; }
6659if test "${lt_cv_objdir+set}" = set; then
6660  $as_echo_n "(cached) " >&6
6661else
6662  rm -f .libs 2>/dev/null
6663mkdir .libs 2>/dev/null
6664if test -d .libs; then
6665  lt_cv_objdir=.libs
6666else
6667  # MS-DOS does not allow filenames that begin with a dot.
6668  lt_cv_objdir=_libs
6669fi
6670rmdir .libs 2>/dev/null
6671fi
6672{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6673$as_echo "$lt_cv_objdir" >&6; }
6674objdir=$lt_cv_objdir
6675
6676
6677
6678
6679
6680case $host_os in
6681aix3*)
6682  # AIX sometimes has problems with the GCC collect2 program.  For some
6683  # reason, if we set the COLLECT_NAMES environment variable, the problems
6684  # vanish in a puff of smoke.
6685  if test "X${COLLECT_NAMES+set}" != Xset; then
6686    COLLECT_NAMES=
6687    export COLLECT_NAMES
6688  fi
6689  ;;
6690esac
6691
6692# Sed substitution that helps us do robust quoting.  It backslashifies
6693# metacharacters that are still active within double-quoted strings.
6694Xsed='sed -e 1s/^X//'
6695sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6696
6697# Same as above, but do not quote variable references.
6698double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6699
6700# Sed substitution to delay expansion of an escaped shell variable in a
6701# double_quote_subst'ed string.
6702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6703
6704# Sed substitution to avoid accidental globbing in evaled expressions
6705no_glob_subst='s/\*/\\\*/g'
6706
6707# Constants:
6708rm="rm -f"
6709
6710# Global variables:
6711default_ofile=libtool
6712can_build_shared=yes
6713
6714# All known linkers require a `.a' archive for static linking (except MSVC,
6715# which needs '.lib').
6716libext=a
6717ltmain="$ac_aux_dir/ltmain.sh"
6718ofile="$default_ofile"
6719with_gnu_ld="$lt_cv_prog_gnu_ld"
6720
6721if test -n "$ac_tool_prefix"; then
6722  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}ar; ac_word=$2
6724{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_AR+set}" = set; then
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$AR"; then
6730  ac_cv_prog_AR="$AR" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737  for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_AR="${ac_tool_prefix}ar"
6740    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749AR=$ac_cv_prog_AR
6750if test -n "$AR"; then
6751  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6752$as_echo "$AR" >&6; }
6753else
6754  { $as_echo "$as_me:$LINENO: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759fi
6760if test -z "$ac_cv_prog_AR"; then
6761  ac_ct_AR=$AR
6762  # Extract the first word of "ar", so it can be a program name with args.
6763set dummy ar; ac_word=$2
6764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6767  $as_echo_n "(cached) " >&6
6768else
6769  if test -n "$ac_ct_AR"; then
6770  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775  IFS=$as_save_IFS
6776  test -z "$as_dir" && as_dir=.
6777  for ac_exec_ext in '' $ac_executable_extensions; do
6778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779    ac_cv_prog_ac_ct_AR="ar"
6780    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781    break 2
6782  fi
6783done
6784done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790if test -n "$ac_ct_AR"; then
6791  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6792$as_echo "$ac_ct_AR" >&6; }
6793else
6794  { $as_echo "$as_me:$LINENO: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798  if test "x$ac_ct_AR" = x; then
6799    AR="false"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    AR=$ac_ct_AR
6808  fi
6809else
6810  AR="$ac_cv_prog_AR"
6811fi
6812
6813if test -n "$ac_tool_prefix"; then
6814  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_RANLIB+set}" = set; then
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$RANLIB"; then
6822  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829  for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841RANLIB=$ac_cv_prog_RANLIB
6842if test -n "$RANLIB"; then
6843  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6844$as_echo "$RANLIB" >&6; }
6845else
6846  { $as_echo "$as_me:$LINENO: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_RANLIB"; then
6853  ac_ct_RANLIB=$RANLIB
6854  # Extract the first word of "ranlib", so it can be a program name with args.
6855set dummy ranlib; ac_word=$2
6856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
6858if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6859  $as_echo_n "(cached) " >&6
6860else
6861  if test -n "$ac_ct_RANLIB"; then
6862  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_ac_ct_RANLIB="ranlib"
6872    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882if test -n "$ac_ct_RANLIB"; then
6883  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6884$as_echo "$ac_ct_RANLIB" >&6; }
6885else
6886  { $as_echo "$as_me:$LINENO: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890  if test "x$ac_ct_RANLIB" = x; then
6891    RANLIB=":"
6892  else
6893    case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897ac_tool_warned=yes ;;
6898esac
6899    RANLIB=$ac_ct_RANLIB
6900  fi
6901else
6902  RANLIB="$ac_cv_prog_RANLIB"
6903fi
6904
6905if test -n "$ac_tool_prefix"; then
6906  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6907set dummy ${ac_tool_prefix}strip; ac_word=$2
6908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if test "${ac_cv_prog_STRIP+set}" = set; then
6911  $as_echo_n "(cached) " >&6
6912else
6913  if test -n "$STRIP"; then
6914  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921  for ac_exec_ext in '' $ac_executable_extensions; do
6922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6924    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933STRIP=$ac_cv_prog_STRIP
6934if test -n "$STRIP"; then
6935  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6936$as_echo "$STRIP" >&6; }
6937else
6938  { $as_echo "$as_me:$LINENO: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942
6943fi
6944if test -z "$ac_cv_prog_STRIP"; then
6945  ac_ct_STRIP=$STRIP
6946  # Extract the first word of "strip", so it can be a program name with args.
6947set dummy strip; ac_word=$2
6948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
6950if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6951  $as_echo_n "(cached) " >&6
6952else
6953  if test -n "$ac_ct_STRIP"; then
6954  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  test -z "$as_dir" && as_dir=.
6961  for ac_exec_ext in '' $ac_executable_extensions; do
6962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963    ac_cv_prog_ac_ct_STRIP="strip"
6964    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965    break 2
6966  fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6974if test -n "$ac_ct_STRIP"; then
6975  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6976$as_echo "$ac_ct_STRIP" >&6; }
6977else
6978  { $as_echo "$as_me:$LINENO: result: no" >&5
6979$as_echo "no" >&6; }
6980fi
6981
6982  if test "x$ac_ct_STRIP" = x; then
6983    STRIP=":"
6984  else
6985    case $cross_compiling:$ac_tool_warned in
6986yes:)
6987{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989ac_tool_warned=yes ;;
6990esac
6991    STRIP=$ac_ct_STRIP
6992  fi
6993else
6994  STRIP="$ac_cv_prog_STRIP"
6995fi
6996
6997
6998old_CC="$CC"
6999old_CFLAGS="$CFLAGS"
7000
7001# Set sane defaults for various variables
7002test -z "$AR" && AR=ar
7003test -z "$AR_FLAGS" && AR_FLAGS=cru
7004test -z "$AS" && AS=as
7005test -z "$CC" && CC=cc
7006test -z "$LTCC" && LTCC=$CC
7007test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7008test -z "$DLLTOOL" && DLLTOOL=dlltool
7009test -z "$LD" && LD=ld
7010test -z "$LN_S" && LN_S="ln -s"
7011test -z "$MAGIC_CMD" && MAGIC_CMD=file
7012test -z "$NM" && NM=nm
7013test -z "$SED" && SED=sed
7014test -z "$OBJDUMP" && OBJDUMP=objdump
7015test -z "$RANLIB" && RANLIB=:
7016test -z "$STRIP" && STRIP=:
7017test -z "$ac_objext" && ac_objext=o
7018
7019# Determine commands to create old-style static archives.
7020old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7021old_postinstall_cmds='chmod 644 $oldlib'
7022old_postuninstall_cmds=
7023
7024if test -n "$RANLIB"; then
7025  case $host_os in
7026  openbsd*)
7027    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7028    ;;
7029  *)
7030    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7031    ;;
7032  esac
7033  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7034fi
7035
7036for cc_temp in $compiler""; do
7037  case $cc_temp in
7038    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7039    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7040    \-*) ;;
7041    *) break;;
7042  esac
7043done
7044cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7045
7046
7047# Only perform the check for file, if the check method requires it
7048case $deplibs_check_method in
7049file_magic*)
7050  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7051    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7052$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7053if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7054  $as_echo_n "(cached) " >&6
7055else
7056  case $MAGIC_CMD in
7057[\\/*] |  ?:[\\/]*)
7058  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7059  ;;
7060*)
7061  lt_save_MAGIC_CMD="$MAGIC_CMD"
7062  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7063  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7064  for ac_dir in $ac_dummy; do
7065    IFS="$lt_save_ifs"
7066    test -z "$ac_dir" && ac_dir=.
7067    if test -f $ac_dir/${ac_tool_prefix}file; then
7068      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7069      if test -n "$file_magic_test_file"; then
7070	case $deplibs_check_method in
7071	"file_magic "*)
7072	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7073	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7075	    $EGREP "$file_magic_regex" > /dev/null; then
7076	    :
7077	  else
7078	    cat <<EOF 1>&2
7079
7080*** Warning: the command libtool uses to detect shared libraries,
7081*** $file_magic_cmd, produces output that libtool cannot recognize.
7082*** The result is that libtool may fail to recognize shared libraries
7083*** as such.  This will affect the creation of libtool libraries that
7084*** depend on shared libraries, but programs linked with such libtool
7085*** libraries will work regardless of this problem.  Nevertheless, you
7086*** may want to report the problem to your system manager and/or to
7087*** bug-libtool@gnu.org
7088
7089EOF
7090	  fi ;;
7091	esac
7092      fi
7093      break
7094    fi
7095  done
7096  IFS="$lt_save_ifs"
7097  MAGIC_CMD="$lt_save_MAGIC_CMD"
7098  ;;
7099esac
7100fi
7101
7102MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103if test -n "$MAGIC_CMD"; then
7104  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7105$as_echo "$MAGIC_CMD" >&6; }
7106else
7107  { $as_echo "$as_me:$LINENO: result: no" >&5
7108$as_echo "no" >&6; }
7109fi
7110
7111if test -z "$lt_cv_path_MAGIC_CMD"; then
7112  if test -n "$ac_tool_prefix"; then
7113    { $as_echo "$as_me:$LINENO: checking for file" >&5
7114$as_echo_n "checking for file... " >&6; }
7115if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7116  $as_echo_n "(cached) " >&6
7117else
7118  case $MAGIC_CMD in
7119[\\/*] |  ?:[\\/]*)
7120  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7121  ;;
7122*)
7123  lt_save_MAGIC_CMD="$MAGIC_CMD"
7124  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7125  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7126  for ac_dir in $ac_dummy; do
7127    IFS="$lt_save_ifs"
7128    test -z "$ac_dir" && ac_dir=.
7129    if test -f $ac_dir/file; then
7130      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7131      if test -n "$file_magic_test_file"; then
7132	case $deplibs_check_method in
7133	"file_magic "*)
7134	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7135	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7137	    $EGREP "$file_magic_regex" > /dev/null; then
7138	    :
7139	  else
7140	    cat <<EOF 1>&2
7141
7142*** Warning: the command libtool uses to detect shared libraries,
7143*** $file_magic_cmd, produces output that libtool cannot recognize.
7144*** The result is that libtool may fail to recognize shared libraries
7145*** as such.  This will affect the creation of libtool libraries that
7146*** depend on shared libraries, but programs linked with such libtool
7147*** libraries will work regardless of this problem.  Nevertheless, you
7148*** may want to report the problem to your system manager and/or to
7149*** bug-libtool@gnu.org
7150
7151EOF
7152	  fi ;;
7153	esac
7154      fi
7155      break
7156    fi
7157  done
7158  IFS="$lt_save_ifs"
7159  MAGIC_CMD="$lt_save_MAGIC_CMD"
7160  ;;
7161esac
7162fi
7163
7164MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165if test -n "$MAGIC_CMD"; then
7166  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7167$as_echo "$MAGIC_CMD" >&6; }
7168else
7169  { $as_echo "$as_me:$LINENO: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173  else
7174    MAGIC_CMD=:
7175  fi
7176fi
7177
7178  fi
7179  ;;
7180esac
7181
7182
7183  case $host_os in
7184    rhapsody* | darwin*)
7185    if test -n "$ac_tool_prefix"; then
7186  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7191  $as_echo_n "(cached) " >&6
7192else
7193  if test -n "$DSYMUTIL"; then
7194  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7204    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213DSYMUTIL=$ac_cv_prog_DSYMUTIL
7214if test -n "$DSYMUTIL"; then
7215  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7216$as_echo "$DSYMUTIL" >&6; }
7217else
7218  { $as_echo "$as_me:$LINENO: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
7223fi
7224if test -z "$ac_cv_prog_DSYMUTIL"; then
7225  ac_ct_DSYMUTIL=$DSYMUTIL
7226  # Extract the first word of "dsymutil", so it can be a program name with args.
7227set dummy dsymutil; ac_word=$2
7228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7231  $as_echo_n "(cached) " >&6
7232else
7233  if test -n "$ac_ct_DSYMUTIL"; then
7234  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241  for ac_exec_ext in '' $ac_executable_extensions; do
7242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7244    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7254if test -n "$ac_ct_DSYMUTIL"; then
7255  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7256$as_echo "$ac_ct_DSYMUTIL" >&6; }
7257else
7258  { $as_echo "$as_me:$LINENO: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262  if test "x$ac_ct_DSYMUTIL" = x; then
7263    DSYMUTIL=":"
7264  else
7265    case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271    DSYMUTIL=$ac_ct_DSYMUTIL
7272  fi
7273else
7274  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7275fi
7276
7277    if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if test "${ac_cv_prog_NMEDIT+set}" = set; then
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$NMEDIT"; then
7286  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293  for ac_exec_ext in '' $ac_executable_extensions; do
7294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7296    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305NMEDIT=$ac_cv_prog_NMEDIT
7306if test -n "$NMEDIT"; then
7307  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7308$as_echo "$NMEDIT" >&6; }
7309else
7310  { $as_echo "$as_me:$LINENO: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_NMEDIT"; then
7317  ac_ct_NMEDIT=$NMEDIT
7318  # Extract the first word of "nmedit", so it can be a program name with args.
7319set dummy nmedit; ac_word=$2
7320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_NMEDIT"; then
7326  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333  for ac_exec_ext in '' $ac_executable_extensions; do
7334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7336    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7346if test -n "$ac_ct_NMEDIT"; then
7347  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7348$as_echo "$ac_ct_NMEDIT" >&6; }
7349else
7350  { $as_echo "$as_me:$LINENO: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_NMEDIT" = x; then
7355    NMEDIT=":"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    NMEDIT=$ac_ct_NMEDIT
7364  fi
7365else
7366  NMEDIT="$ac_cv_prog_NMEDIT"
7367fi
7368
7369
7370    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7371$as_echo_n "checking for -single_module linker flag... " >&6; }
7372if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7373  $as_echo_n "(cached) " >&6
7374else
7375  lt_cv_apple_cc_single_mod=no
7376      if test -z "${LT_MULTI_MODULE}"; then
7377   # By default we will add the -single_module flag. You can override
7378   # by either setting the environment variable LT_MULTI_MODULE
7379   # non-empty at configure time, or by adding -multi_module to the
7380   # link flags.
7381   echo "int foo(void){return 1;}" > conftest.c
7382   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7383     -dynamiclib ${wl}-single_module conftest.c
7384   if test -f libconftest.dylib; then
7385     lt_cv_apple_cc_single_mod=yes
7386     rm -rf libconftest.dylib*
7387   fi
7388   rm conftest.c
7389      fi
7390fi
7391{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7392$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7394$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7396  $as_echo_n "(cached) " >&6
7397else
7398  lt_cv_ld_exported_symbols_list=no
7399      save_LDFLAGS=$LDFLAGS
7400      echo "_main" > conftest.sym
7401      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7402      cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h.  */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h.  */
7408
7409int
7410main ()
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
7418if { (ac_try="$ac_link"
7419case "(($ac_try" in
7420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421  *) ac_try_echo=$ac_try;;
7422esac
7423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424$as_echo "$ac_try_echo") >&5
7425  (eval "$ac_link") 2>conftest.er1
7426  ac_status=$?
7427  grep -v '^ *+' conftest.er1 >conftest.err
7428  rm -f conftest.er1
7429  cat conftest.err >&5
7430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } && {
7432	 test -z "$ac_c_werror_flag" ||
7433	 test ! -s conftest.err
7434       } && test -s conftest$ac_exeext && {
7435	 test "$cross_compiling" = yes ||
7436	 $as_test_x conftest$ac_exeext
7437       }; then
7438  lt_cv_ld_exported_symbols_list=yes
7439else
7440  $as_echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443	lt_cv_ld_exported_symbols_list=no
7444fi
7445
7446rm -rf conftest.dSYM
7447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448      conftest$ac_exeext conftest.$ac_ext
7449   LDFLAGS="$save_LDFLAGS"
7450
7451fi
7452{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7453$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7454    case $host_os in
7455    rhapsody* | darwin1.[0123])
7456      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7457    darwin1.*)
7458     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459    darwin*)
7460      # if running on 10.5 or later, the deployment target defaults
7461      # to the OS version, if on x86, and 10.4, the deployment
7462      # target defaults to 10.4. Don't you love it?
7463      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7464   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7465     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7466   10.[012]*)
7467     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7468   10.*)
7469     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7470      esac
7471    ;;
7472  esac
7473    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7474      _lt_dar_single_mod='$single_module'
7475    fi
7476    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7477      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7478    else
7479      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7480    fi
7481    if test "$DSYMUTIL" != ":"; then
7482      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7483    else
7484      _lt_dsymutil=
7485    fi
7486    ;;
7487  esac
7488
7489
7490enable_dlopen=no
7491enable_win32_dll=no
7492
7493# Check whether --enable-libtool-lock was given.
7494if test "${enable_libtool_lock+set}" = set; then
7495  enableval=$enable_libtool_lock;
7496fi
7497
7498test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7499
7500
7501# Check whether --with-pic was given.
7502if test "${with_pic+set}" = set; then
7503  withval=$with_pic; pic_mode="$withval"
7504else
7505  pic_mode=default
7506fi
7507
7508test -z "$pic_mode" && pic_mode=default
7509
7510# Use C for the default configuration in the libtool script
7511tagname=
7512lt_save_CC="$CC"
7513ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519
7520# Source file extension for C test sources.
7521ac_ext=c
7522
7523# Object file extension for compiled C test sources.
7524objext=o
7525objext=$objext
7526
7527# Code to be used in simple compile tests
7528lt_simple_compile_test_code="int some_variable = 0;"
7529
7530# Code to be used in simple link tests
7531lt_simple_link_test_code='int main(){return(0);}'
7532
7533
7534# If no C compiler was specified, use CC.
7535LTCC=${LTCC-"$CC"}
7536
7537# If no C compiler flags were specified, use CFLAGS.
7538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7539
7540# Allow CC to be a program name with arguments.
7541compiler=$CC
7542
7543
7544# save warnings/boilerplate of simple test code
7545ac_outfile=conftest.$ac_objext
7546echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7547eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7548_lt_compiler_boilerplate=`cat conftest.err`
7549$rm conftest*
7550
7551ac_outfile=conftest.$ac_objext
7552echo "$lt_simple_link_test_code" >conftest.$ac_ext
7553eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7554_lt_linker_boilerplate=`cat conftest.err`
7555$rm -r conftest*
7556
7557
7558
7559lt_prog_compiler_no_builtin_flag=
7560
7561if test "$GCC" = yes; then
7562  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7563
7564
7565{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7566$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7567if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7568  $as_echo_n "(cached) " >&6
7569else
7570  lt_cv_prog_compiler_rtti_exceptions=no
7571  ac_outfile=conftest.$ac_objext
7572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573   lt_compiler_flag="-fno-rtti -fno-exceptions"
7574   # Insert the option either (1) after the last *FLAGS variable, or
7575   # (2) before a word containing "conftest.", or (3) at the end.
7576   # Note that $ac_compile itself does not contain backslashes and begins
7577   # with a dollar sign (not a hyphen), so the echo should work correctly.
7578   # The option is referenced via a variable to avoid confusing sed.
7579   lt_compile=`echo "$ac_compile" | $SED \
7580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582   -e 's:$: $lt_compiler_flag:'`
7583   (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584   (eval "$lt_compile" 2>conftest.err)
7585   ac_status=$?
7586   cat conftest.err >&5
7587   echo "$as_me:7587: \$? = $ac_status" >&5
7588   if (exit $ac_status) && test -s "$ac_outfile"; then
7589     # The compiler can only warn and ignore the option if not recognized
7590     # So say no if there are warnings other than the usual output.
7591     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7592     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594       lt_cv_prog_compiler_rtti_exceptions=yes
7595     fi
7596   fi
7597   $rm conftest*
7598
7599fi
7600{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7601$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7602
7603if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7604    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7605else
7606    :
7607fi
7608
7609fi
7610
7611lt_prog_compiler_wl=
7612lt_prog_compiler_pic=
7613lt_prog_compiler_static=
7614
7615{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7616$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7617
7618  if test "$GCC" = yes; then
7619    lt_prog_compiler_wl='-Wl,'
7620    lt_prog_compiler_static='-static'
7621
7622    case $host_os in
7623      aix*)
7624      # All AIX code is PIC.
7625      if test "$host_cpu" = ia64; then
7626	# AIX 5 now supports IA64 processor
7627	lt_prog_compiler_static='-Bstatic'
7628      fi
7629      ;;
7630
7631    amigaos*)
7632      # FIXME: we need at least 68020 code to build shared libraries, but
7633      # adding the `-m68020' flag to GCC prevents building anything better,
7634      # like `-m68040'.
7635      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7636      ;;
7637
7638    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7639      # PIC is the default for these OSes.
7640      ;;
7641
7642    mingw* | cygwin* | pw32* | os2*)
7643      # This hack is so that the source file can tell whether it is being
7644      # built for inclusion in a dll (and should export symbols for example).
7645      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7646      # (--disable-auto-import) libraries
7647      lt_prog_compiler_pic='-DDLL_EXPORT'
7648      ;;
7649
7650    darwin* | rhapsody*)
7651      # PIC is the default on this platform
7652      # Common symbols not allowed in MH_DYLIB files
7653      lt_prog_compiler_pic='-fno-common'
7654      ;;
7655
7656    interix[3-9]*)
7657      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7658      # Instead, we relocate shared libraries at runtime.
7659      ;;
7660
7661    msdosdjgpp*)
7662      # Just because we use GCC doesn't mean we suddenly get shared libraries
7663      # on systems that don't support them.
7664      lt_prog_compiler_can_build_shared=no
7665      enable_shared=no
7666      ;;
7667
7668    sysv4*MP*)
7669      if test -d /usr/nec; then
7670	lt_prog_compiler_pic=-Kconform_pic
7671      fi
7672      ;;
7673
7674    hpux*)
7675      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7676      # not for PA HP-UX.
7677      case $host_cpu in
7678      hppa*64*|ia64*)
7679	# +Z the default
7680	;;
7681      *)
7682	lt_prog_compiler_pic='-fPIC'
7683	;;
7684      esac
7685      ;;
7686
7687    *)
7688      lt_prog_compiler_pic='-fPIC'
7689      ;;
7690    esac
7691  else
7692    # PORTME Check for flag to pass linker flags through the system compiler.
7693    case $host_os in
7694    aix*)
7695      lt_prog_compiler_wl='-Wl,'
7696      if test "$host_cpu" = ia64; then
7697	# AIX 5 now supports IA64 processor
7698	lt_prog_compiler_static='-Bstatic'
7699      else
7700	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701      fi
7702      ;;
7703      darwin*)
7704        # PIC is the default on this platform
7705        # Common symbols not allowed in MH_DYLIB files
7706       case $cc_basename in
7707         xlc*)
7708         lt_prog_compiler_pic='-qnocommon'
7709         lt_prog_compiler_wl='-Wl,'
7710         ;;
7711       esac
7712       ;;
7713
7714    mingw* | cygwin* | pw32* | os2*)
7715      # This hack is so that the source file can tell whether it is being
7716      # built for inclusion in a dll (and should export symbols for example).
7717      lt_prog_compiler_pic='-DDLL_EXPORT'
7718      ;;
7719
7720    hpux9* | hpux10* | hpux11*)
7721      lt_prog_compiler_wl='-Wl,'
7722      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723      # not for PA HP-UX.
7724      case $host_cpu in
7725      hppa*64*|ia64*)
7726	# +Z the default
7727	;;
7728      *)
7729	lt_prog_compiler_pic='+Z'
7730	;;
7731      esac
7732      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7733      lt_prog_compiler_static='${wl}-a ${wl}archive'
7734      ;;
7735
7736    irix5* | irix6* | nonstopux*)
7737      lt_prog_compiler_wl='-Wl,'
7738      # PIC (with -KPIC) is the default.
7739      lt_prog_compiler_static='-non_shared'
7740      ;;
7741
7742    newsos6)
7743      lt_prog_compiler_pic='-KPIC'
7744      lt_prog_compiler_static='-Bstatic'
7745      ;;
7746
7747    linux* | k*bsd*-gnu)
7748      case $cc_basename in
7749      icc* | ecc*)
7750	lt_prog_compiler_wl='-Wl,'
7751	lt_prog_compiler_pic='-KPIC'
7752	lt_prog_compiler_static='-static'
7753        ;;
7754      pgcc* | pgf77* | pgf90* | pgf95*)
7755        # Portland Group compilers (*not* the Pentium gcc compiler,
7756	# which looks to be a dead project)
7757	lt_prog_compiler_wl='-Wl,'
7758	lt_prog_compiler_pic='-fpic'
7759	lt_prog_compiler_static='-Bstatic'
7760        ;;
7761      ccc*)
7762        lt_prog_compiler_wl='-Wl,'
7763        # All Alpha code is PIC.
7764        lt_prog_compiler_static='-non_shared'
7765        ;;
7766      *)
7767        case `$CC -V 2>&1 | sed 5q` in
7768	*Sun\ C*)
7769	  # Sun C 5.9
7770	  lt_prog_compiler_pic='-KPIC'
7771	  lt_prog_compiler_static='-Bstatic'
7772	  lt_prog_compiler_wl='-Wl,'
7773	  ;;
7774	*Sun\ F*)
7775	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7776	  lt_prog_compiler_pic='-KPIC'
7777	  lt_prog_compiler_static='-Bstatic'
7778	  lt_prog_compiler_wl=''
7779	  ;;
7780	esac
7781	;;
7782      esac
7783      ;;
7784
7785    osf3* | osf4* | osf5*)
7786      lt_prog_compiler_wl='-Wl,'
7787      # All OSF/1 code is PIC.
7788      lt_prog_compiler_static='-non_shared'
7789      ;;
7790
7791    rdos*)
7792      lt_prog_compiler_static='-non_shared'
7793      ;;
7794
7795    solaris*)
7796      lt_prog_compiler_pic='-KPIC'
7797      lt_prog_compiler_static='-Bstatic'
7798      case $cc_basename in
7799      f77* | f90* | f95*)
7800	lt_prog_compiler_wl='-Qoption ld ';;
7801      *)
7802	lt_prog_compiler_wl='-Wl,';;
7803      esac
7804      ;;
7805
7806    sunos4*)
7807      lt_prog_compiler_wl='-Qoption ld '
7808      lt_prog_compiler_pic='-PIC'
7809      lt_prog_compiler_static='-Bstatic'
7810      ;;
7811
7812    sysv4 | sysv4.2uw2* | sysv4.3*)
7813      lt_prog_compiler_wl='-Wl,'
7814      lt_prog_compiler_pic='-KPIC'
7815      lt_prog_compiler_static='-Bstatic'
7816      ;;
7817
7818    sysv4*MP*)
7819      if test -d /usr/nec ;then
7820	lt_prog_compiler_pic='-Kconform_pic'
7821	lt_prog_compiler_static='-Bstatic'
7822      fi
7823      ;;
7824
7825    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7826      lt_prog_compiler_wl='-Wl,'
7827      lt_prog_compiler_pic='-KPIC'
7828      lt_prog_compiler_static='-Bstatic'
7829      ;;
7830
7831    unicos*)
7832      lt_prog_compiler_wl='-Wl,'
7833      lt_prog_compiler_can_build_shared=no
7834      ;;
7835
7836    uts4*)
7837      lt_prog_compiler_pic='-pic'
7838      lt_prog_compiler_static='-Bstatic'
7839      ;;
7840
7841    *)
7842      lt_prog_compiler_can_build_shared=no
7843      ;;
7844    esac
7845  fi
7846
7847{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7848$as_echo "$lt_prog_compiler_pic" >&6; }
7849
7850#
7851# Check to make sure the PIC flag actually works.
7852#
7853if test -n "$lt_prog_compiler_pic"; then
7854
7855{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7857if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7858  $as_echo_n "(cached) " >&6
7859else
7860  lt_cv_prog_compiler_pic_works=no
7861  ac_outfile=conftest.$ac_objext
7862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7863   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7864   # Insert the option either (1) after the last *FLAGS variable, or
7865   # (2) before a word containing "conftest.", or (3) at the end.
7866   # Note that $ac_compile itself does not contain backslashes and begins
7867   # with a dollar sign (not a hyphen), so the echo should work correctly.
7868   # The option is referenced via a variable to avoid confusing sed.
7869   lt_compile=`echo "$ac_compile" | $SED \
7870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7872   -e 's:$: $lt_compiler_flag:'`
7873   (eval echo "\"\$as_me:7873: $lt_compile\"" >&5)
7874   (eval "$lt_compile" 2>conftest.err)
7875   ac_status=$?
7876   cat conftest.err >&5
7877   echo "$as_me:7877: \$? = $ac_status" >&5
7878   if (exit $ac_status) && test -s "$ac_outfile"; then
7879     # The compiler can only warn and ignore the option if not recognized
7880     # So say no if there are warnings other than the usual output.
7881     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7882     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7883     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7884       lt_cv_prog_compiler_pic_works=yes
7885     fi
7886   fi
7887   $rm conftest*
7888
7889fi
7890{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7892
7893if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7894    case $lt_prog_compiler_pic in
7895     "" | " "*) ;;
7896     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7897     esac
7898else
7899    lt_prog_compiler_pic=
7900     lt_prog_compiler_can_build_shared=no
7901fi
7902
7903fi
7904case $host_os in
7905  # For platforms which do not support PIC, -DPIC is meaningless:
7906  *djgpp*)
7907    lt_prog_compiler_pic=
7908    ;;
7909  *)
7910    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7911    ;;
7912esac
7913
7914#
7915# Check to make sure the static flag actually works.
7916#
7917wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7918{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7920if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7921  $as_echo_n "(cached) " >&6
7922else
7923  lt_cv_prog_compiler_static_works=no
7924   save_LDFLAGS="$LDFLAGS"
7925   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7928     # The linker can only warn and ignore the option if not recognized
7929     # So say no if there are warnings
7930     if test -s conftest.err; then
7931       # Append any errors to the config.log.
7932       cat conftest.err 1>&5
7933       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935       if diff conftest.exp conftest.er2 >/dev/null; then
7936         lt_cv_prog_compiler_static_works=yes
7937       fi
7938     else
7939       lt_cv_prog_compiler_static_works=yes
7940     fi
7941   fi
7942   $rm -r conftest*
7943   LDFLAGS="$save_LDFLAGS"
7944
7945fi
7946{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7947$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7948
7949if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7950    :
7951else
7952    lt_prog_compiler_static=
7953fi
7954
7955
7956{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7958if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7959  $as_echo_n "(cached) " >&6
7960else
7961  lt_cv_prog_compiler_c_o=no
7962   $rm -r conftest 2>/dev/null
7963   mkdir conftest
7964   cd conftest
7965   mkdir out
7966   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7967
7968   lt_compiler_flag="-o out/conftest2.$ac_objext"
7969   # Insert the option either (1) after the last *FLAGS variable, or
7970   # (2) before a word containing "conftest.", or (3) at the end.
7971   # Note that $ac_compile itself does not contain backslashes and begins
7972   # with a dollar sign (not a hyphen), so the echo should work correctly.
7973   lt_compile=`echo "$ac_compile" | $SED \
7974   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7975   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7976   -e 's:$: $lt_compiler_flag:'`
7977   (eval echo "\"\$as_me:7977: $lt_compile\"" >&5)
7978   (eval "$lt_compile" 2>out/conftest.err)
7979   ac_status=$?
7980   cat out/conftest.err >&5
7981   echo "$as_me:7981: \$? = $ac_status" >&5
7982   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7983   then
7984     # The compiler can only warn and ignore the option if not recognized
7985     # So say no if there are warnings
7986     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7987     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7988     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7989       lt_cv_prog_compiler_c_o=yes
7990     fi
7991   fi
7992   chmod u+w . 2>&5
7993   $rm conftest*
7994   # SGI C++ compiler will create directory out/ii_files/ for
7995   # template instantiation
7996   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7997   $rm out/* && rmdir out
7998   cd ..
7999   rmdir conftest
8000   $rm conftest*
8001
8002fi
8003{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8005
8006
8007hard_links="nottested"
8008if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8009  # do not overwrite the value of need_locks provided by the user
8010  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8011$as_echo_n "checking if we can lock with hard links... " >&6; }
8012  hard_links=yes
8013  $rm conftest*
8014  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8015  touch conftest.a
8016  ln conftest.a conftest.b 2>&5 || hard_links=no
8017  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8018  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8019$as_echo "$hard_links" >&6; }
8020  if test "$hard_links" = no; then
8021    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8022$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8023    need_locks=warn
8024  fi
8025else
8026  need_locks=no
8027fi
8028
8029{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8030$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8031
8032  runpath_var=
8033  allow_undefined_flag=
8034  enable_shared_with_static_runtimes=no
8035  archive_cmds=
8036  archive_expsym_cmds=
8037  old_archive_From_new_cmds=
8038  old_archive_from_expsyms_cmds=
8039  export_dynamic_flag_spec=
8040  whole_archive_flag_spec=
8041  thread_safe_flag_spec=
8042  hardcode_libdir_flag_spec=
8043  hardcode_libdir_flag_spec_ld=
8044  hardcode_libdir_separator=
8045  hardcode_direct=no
8046  hardcode_minus_L=no
8047  hardcode_shlibpath_var=unsupported
8048  link_all_deplibs=unknown
8049  hardcode_automatic=no
8050  module_cmds=
8051  module_expsym_cmds=
8052  always_export_symbols=no
8053  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8054  # include_expsyms should be a list of space-separated symbols to be *always*
8055  # included in the symbol list
8056  include_expsyms=
8057  # exclude_expsyms can be an extended regexp of symbols to exclude
8058  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8059  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8060  # as well as any symbol that contains `d'.
8061  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8062  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8063  # platforms (ab)use it in PIC code, but their linkers get confused if
8064  # the symbol is explicitly referenced.  Since portable code cannot
8065  # rely on this symbol name, it's probably fine to never include it in
8066  # preloaded symbol tables.
8067  # Exclude shared library initialization/finalization symbols.
8068  extract_expsyms_cmds=
8069  # Just being paranoid about ensuring that cc_basename is set.
8070  for cc_temp in $compiler""; do
8071  case $cc_temp in
8072    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8073    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8074    \-*) ;;
8075    *) break;;
8076  esac
8077done
8078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8079
8080  case $host_os in
8081  cygwin* | mingw* | pw32*)
8082    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8083    # When not using gcc, we currently assume that we are using
8084    # Microsoft Visual C++.
8085    if test "$GCC" != yes; then
8086      with_gnu_ld=no
8087    fi
8088    ;;
8089  interix*)
8090    # we just hope/assume this is gcc and not c89 (= MSVC++)
8091    with_gnu_ld=yes
8092    ;;
8093  openbsd*)
8094    with_gnu_ld=no
8095    ;;
8096  esac
8097
8098  ld_shlibs=yes
8099  if test "$with_gnu_ld" = yes; then
8100    # If archive_cmds runs LD, not CC, wlarc should be empty
8101    wlarc='${wl}'
8102
8103    # Set some defaults for GNU ld with shared library support. These
8104    # are reset later if shared libraries are not supported. Putting them
8105    # here allows them to be overridden if necessary.
8106    runpath_var=LD_RUN_PATH
8107    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8108    export_dynamic_flag_spec='${wl}--export-dynamic'
8109    # ancient GNU ld didn't support --whole-archive et. al.
8110    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8111	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8112      else
8113  	whole_archive_flag_spec=
8114    fi
8115    supports_anon_versioning=no
8116    case `$LD -v 2>/dev/null` in
8117      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8118      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8119      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8120      *\ 2.11.*) ;; # other 2.11 versions
8121      *) supports_anon_versioning=yes ;;
8122    esac
8123
8124    # See if GNU ld supports shared libraries.
8125    case $host_os in
8126    aix[3-9]*)
8127      # On AIX/PPC, the GNU linker is very broken
8128      if test "$host_cpu" != ia64; then
8129	ld_shlibs=no
8130	cat <<EOF 1>&2
8131
8132*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8133*** to be unable to reliably create shared libraries on AIX.
8134*** Therefore, libtool is disabling shared libraries support.  If you
8135*** really care for shared libraries, you may want to modify your PATH
8136*** so that a non-GNU linker is found, and then restart.
8137
8138EOF
8139      fi
8140      ;;
8141
8142    amigaos*)
8143      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)'
8144      hardcode_libdir_flag_spec='-L$libdir'
8145      hardcode_minus_L=yes
8146
8147      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8148      # that the semantics of dynamic libraries on AmigaOS, at least up
8149      # to version 4, is to share data among multiple programs linked
8150      # with the same dynamic library.  Since this doesn't match the
8151      # behavior of shared libraries on other platforms, we can't use
8152      # them.
8153      ld_shlibs=no
8154      ;;
8155
8156    beos*)
8157      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8158	allow_undefined_flag=unsupported
8159	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8160	# support --undefined.  This deserves some investigation.  FIXME
8161	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8162      else
8163	ld_shlibs=no
8164      fi
8165      ;;
8166
8167    cygwin* | mingw* | pw32*)
8168      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8169      # as there is no search path for DLLs.
8170      hardcode_libdir_flag_spec='-L$libdir'
8171      allow_undefined_flag=unsupported
8172      always_export_symbols=no
8173      enable_shared_with_static_runtimes=yes
8174      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8175
8176      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8177        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178	# If the export-symbols file already is a .def file (1st line
8179	# is EXPORTS), use it as is; otherwise, prepend...
8180	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8181	  cp $export_symbols $output_objdir/$soname.def;
8182	else
8183	  echo EXPORTS > $output_objdir/$soname.def;
8184	  cat $export_symbols >> $output_objdir/$soname.def;
8185	fi~
8186	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8187      else
8188	ld_shlibs=no
8189      fi
8190      ;;
8191
8192    interix[3-9]*)
8193      hardcode_direct=no
8194      hardcode_shlibpath_var=no
8195      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8196      export_dynamic_flag_spec='${wl}-E'
8197      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8198      # Instead, shared libraries are loaded at an image base (0x10000000 by
8199      # default) and relocated if they conflict, which is a slow very memory
8200      # consuming and fragmenting process.  To avoid this, we pick a random,
8201      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8202      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8203      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8204      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'
8205      ;;
8206
8207    gnu* | linux* | k*bsd*-gnu)
8208      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8209	tmp_addflag=
8210	case $cc_basename,$host_cpu in
8211	pgcc*)				# Portland Group C compiler
8212	  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'
8213	  tmp_addflag=' $pic_flag'
8214	  ;;
8215	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8216	  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'
8217	  tmp_addflag=' $pic_flag -Mnomain' ;;
8218	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8219	  tmp_addflag=' -i_dynamic' ;;
8220	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8221	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8222	ifc* | ifort*)			# Intel Fortran compiler
8223	  tmp_addflag=' -nofor_main' ;;
8224	esac
8225	case `$CC -V 2>&1 | sed 5q` in
8226	*Sun\ C*)			# Sun C 5.9
8227	  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'
8228	  tmp_sharedflag='-G' ;;
8229	*Sun\ F*)			# Sun Fortran 8.3
8230	  tmp_sharedflag='-G' ;;
8231	*)
8232	  tmp_sharedflag='-shared' ;;
8233	esac
8234	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235
8236	if test $supports_anon_versioning = yes; then
8237	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8238  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8239  $echo "local: *; };" >> $output_objdir/$libname.ver~
8240	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8241	fi
8242      else
8243	ld_shlibs=no
8244      fi
8245      ;;
8246
8247    netbsd*)
8248      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8249	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8250	wlarc=
8251      else
8252	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8254      fi
8255      ;;
8256
8257    solaris*)
8258      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8259	ld_shlibs=no
8260	cat <<EOF 1>&2
8261
8262*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8263*** create shared libraries on Solaris systems.  Therefore, libtool
8264*** is disabling shared libraries support.  We urge you to upgrade GNU
8265*** binutils to release 2.9.1 or newer.  Another option is to modify
8266*** your PATH or compiler configuration so that the native linker is
8267*** used, and then restart.
8268
8269EOF
8270      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273      else
8274	ld_shlibs=no
8275      fi
8276      ;;
8277
8278    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8279      case `$LD -v 2>&1` in
8280        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8281	ld_shlibs=no
8282	cat <<_LT_EOF 1>&2
8283
8284*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8285*** reliably create shared libraries on SCO systems.  Therefore, libtool
8286*** is disabling shared libraries support.  We urge you to upgrade GNU
8287*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8288*** your PATH or compiler configuration so that the native linker is
8289*** used, and then restart.
8290
8291_LT_EOF
8292	;;
8293	*)
8294	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8295	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8296	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8297	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8298	  else
8299	    ld_shlibs=no
8300	  fi
8301	;;
8302      esac
8303      ;;
8304
8305    sunos4*)
8306      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8307      wlarc=
8308      hardcode_direct=yes
8309      hardcode_shlibpath_var=no
8310      ;;
8311
8312    *)
8313      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8314	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8316      else
8317	ld_shlibs=no
8318      fi
8319      ;;
8320    esac
8321
8322    if test "$ld_shlibs" = no; then
8323      runpath_var=
8324      hardcode_libdir_flag_spec=
8325      export_dynamic_flag_spec=
8326      whole_archive_flag_spec=
8327    fi
8328  else
8329    # PORTME fill in a description of your system's linker (not GNU ld)
8330    case $host_os in
8331    aix3*)
8332      allow_undefined_flag=unsupported
8333      always_export_symbols=yes
8334      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'
8335      # Note: this linker hardcodes the directories in LIBPATH if there
8336      # are no directories specified by -L.
8337      hardcode_minus_L=yes
8338      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8339	# Neither direct hardcoding nor static linking is supported with a
8340	# broken collect2.
8341	hardcode_direct=unsupported
8342      fi
8343      ;;
8344
8345    aix[4-9]*)
8346      if test "$host_cpu" = ia64; then
8347	# On IA64, the linker does run time linking by default, so we don't
8348	# have to do anything special.
8349	aix_use_runtimelinking=no
8350	exp_sym_flag='-Bexport'
8351	no_entry_flag=""
8352      else
8353	# If we're using GNU nm, then we don't want the "-C" option.
8354	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8355	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8356	  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'
8357	else
8358	  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'
8359	fi
8360	aix_use_runtimelinking=no
8361
8362	# Test if we are trying to use run time linking or normal
8363	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8364	# need to do runtime linking.
8365	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8366	  for ld_flag in $LDFLAGS; do
8367  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8368  	    aix_use_runtimelinking=yes
8369  	    break
8370  	  fi
8371	  done
8372	  ;;
8373	esac
8374
8375	exp_sym_flag='-bexport'
8376	no_entry_flag='-bnoentry'
8377      fi
8378
8379      # When large executables or shared objects are built, AIX ld can
8380      # have problems creating the table of contents.  If linking a library
8381      # or program results in "error TOC overflow" add -mminimal-toc to
8382      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8383      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8384
8385      archive_cmds=''
8386      hardcode_direct=yes
8387      hardcode_libdir_separator=':'
8388      link_all_deplibs=yes
8389
8390      if test "$GCC" = yes; then
8391	case $host_os in aix4.[012]|aix4.[012].*)
8392	# We only want to do this on AIX 4.2 and lower, the check
8393	# below for broken collect2 doesn't work under 4.3+
8394	  collect2name=`${CC} -print-prog-name=collect2`
8395	  if test -f "$collect2name" && \
8396  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8397	  then
8398  	  # We have reworked collect2
8399  	  :
8400	  else
8401  	  # We have old collect2
8402  	  hardcode_direct=unsupported
8403  	  # It fails to find uninstalled libraries when the uninstalled
8404  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8405  	  # to unsupported forces relinking
8406  	  hardcode_minus_L=yes
8407  	  hardcode_libdir_flag_spec='-L$libdir'
8408  	  hardcode_libdir_separator=
8409	  fi
8410	  ;;
8411	esac
8412	shared_flag='-shared'
8413	if test "$aix_use_runtimelinking" = yes; then
8414	  shared_flag="$shared_flag "'${wl}-G'
8415	fi
8416      else
8417	# not using gcc
8418	if test "$host_cpu" = ia64; then
8419  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8420  	# chokes on -Wl,-G. The following line is correct:
8421	  shared_flag='-G'
8422	else
8423	  if test "$aix_use_runtimelinking" = yes; then
8424	    shared_flag='${wl}-G'
8425	  else
8426	    shared_flag='${wl}-bM:SRE'
8427	  fi
8428	fi
8429      fi
8430
8431      # It seems that -bexpall does not export symbols beginning with
8432      # underscore (_), so it is better to generate a list of symbols to export.
8433      always_export_symbols=yes
8434      if test "$aix_use_runtimelinking" = yes; then
8435	# Warning - without using the other runtime loading flags (-brtl),
8436	# -berok will link without error, but may produce a broken library.
8437	allow_undefined_flag='-berok'
8438       # Determine the default libpath from the value encoded in an empty executable.
8439       cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h.  */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h.  */
8445
8446int
8447main ()
8448{
8449
8450  ;
8451  return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext conftest$ac_exeext
8455if { (ac_try="$ac_link"
8456case "(($ac_try" in
8457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458  *) ac_try_echo=$ac_try;;
8459esac
8460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461$as_echo "$ac_try_echo") >&5
8462  (eval "$ac_link") 2>conftest.er1
8463  ac_status=$?
8464  grep -v '^ *+' conftest.er1 >conftest.err
8465  rm -f conftest.er1
8466  cat conftest.err >&5
8467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); } && {
8469	 test -z "$ac_c_werror_flag" ||
8470	 test ! -s conftest.err
8471       } && test -s conftest$ac_exeext && {
8472	 test "$cross_compiling" = yes ||
8473	 $as_test_x conftest$ac_exeext
8474       }; then
8475
8476lt_aix_libpath_sed='
8477    /Import File Strings/,/^$/ {
8478	/^0/ {
8479	    s/^0  *\(.*\)$/\1/
8480	    p
8481	}
8482    }'
8483aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8484# Check for a 64-bit object if we didn't find anything.
8485if test -z "$aix_libpath"; then
8486  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487fi
8488else
8489  $as_echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492
8493fi
8494
8495rm -rf conftest.dSYM
8496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8497      conftest$ac_exeext conftest.$ac_ext
8498if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8499
8500       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501	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"
8502       else
8503	if test "$host_cpu" = ia64; then
8504	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8505	  allow_undefined_flag="-z nodefs"
8506	  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"
8507	else
8508	 # Determine the default libpath from the value encoded in an empty executable.
8509	 cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h.  */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h.  */
8515
8516int
8517main ()
8518{
8519
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (ac_try="$ac_link"
8526case "(($ac_try" in
8527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528  *) ac_try_echo=$ac_try;;
8529esac
8530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531$as_echo "$ac_try_echo") >&5
8532  (eval "$ac_link") 2>conftest.er1
8533  ac_status=$?
8534  grep -v '^ *+' conftest.er1 >conftest.err
8535  rm -f conftest.er1
8536  cat conftest.err >&5
8537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); } && {
8539	 test -z "$ac_c_werror_flag" ||
8540	 test ! -s conftest.err
8541       } && test -s conftest$ac_exeext && {
8542	 test "$cross_compiling" = yes ||
8543	 $as_test_x conftest$ac_exeext
8544       }; then
8545
8546lt_aix_libpath_sed='
8547    /Import File Strings/,/^$/ {
8548	/^0/ {
8549	    s/^0  *\(.*\)$/\1/
8550	    p
8551	}
8552    }'
8553aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554# Check for a 64-bit object if we didn't find anything.
8555if test -z "$aix_libpath"; then
8556  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8557fi
8558else
8559  $as_echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562
8563fi
8564
8565rm -rf conftest.dSYM
8566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8567      conftest$ac_exeext conftest.$ac_ext
8568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8569
8570	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8571	  # Warning - without using the other run time loading flags,
8572	  # -berok will link without error, but may produce a broken library.
8573	  no_undefined_flag=' ${wl}-bernotok'
8574	  allow_undefined_flag=' ${wl}-berok'
8575	  # Exported symbols can be pulled into shared objects from archives
8576	  whole_archive_flag_spec='$convenience'
8577	  archive_cmds_need_lc=yes
8578	  # This is similar to how AIX traditionally builds its shared libraries.
8579	  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'
8580	fi
8581      fi
8582      ;;
8583
8584    amigaos*)
8585      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)'
8586      hardcode_libdir_flag_spec='-L$libdir'
8587      hardcode_minus_L=yes
8588      # see comment about different semantics on the GNU ld section
8589      ld_shlibs=no
8590      ;;
8591
8592    bsdi[45]*)
8593      export_dynamic_flag_spec=-rdynamic
8594      ;;
8595
8596    cygwin* | mingw* | pw32*)
8597      # When not using gcc, we currently assume that we are using
8598      # Microsoft Visual C++.
8599      # hardcode_libdir_flag_spec is actually meaningless, as there is
8600      # no search path for DLLs.
8601      hardcode_libdir_flag_spec=' '
8602      allow_undefined_flag=unsupported
8603      # Tell ltmain to make .lib files, not .a files.
8604      libext=lib
8605      # Tell ltmain to make .dll files, not .so files.
8606      shrext_cmds=".dll"
8607      # FIXME: Setting linknames here is a bad hack.
8608      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8609      # The linker will automatically build a .lib file if we build a DLL.
8610      old_archive_From_new_cmds='true'
8611      # FIXME: Should let the user specify the lib program.
8612      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8613      fix_srcfile_path='`cygpath -w "$srcfile"`'
8614      enable_shared_with_static_runtimes=yes
8615      ;;
8616
8617    darwin* | rhapsody*)
8618      case $host_os in
8619        rhapsody* | darwin1.[012])
8620         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8621         ;;
8622       *) # Darwin 1.3 on
8623         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8624           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8625         else
8626           case ${MACOSX_DEPLOYMENT_TARGET} in
8627             10.[012])
8628               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8629               ;;
8630             10.*)
8631               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8632               ;;
8633           esac
8634         fi
8635         ;;
8636      esac
8637      archive_cmds_need_lc=no
8638      hardcode_direct=no
8639      hardcode_automatic=yes
8640      hardcode_shlibpath_var=unsupported
8641      whole_archive_flag_spec=''
8642      link_all_deplibs=yes
8643    if test "$GCC" = yes ; then
8644    	output_verbose_link_cmd='echo'
8645        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8646        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8647        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}"
8648        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}"
8649    else
8650      case $cc_basename in
8651        xlc*)
8652         output_verbose_link_cmd='echo'
8653         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8654         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8655          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8656         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}'
8657          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}'
8658          ;;
8659       *)
8660         ld_shlibs=no
8661          ;;
8662      esac
8663    fi
8664      ;;
8665
8666    dgux*)
8667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668      hardcode_libdir_flag_spec='-L$libdir'
8669      hardcode_shlibpath_var=no
8670      ;;
8671
8672    freebsd1*)
8673      ld_shlibs=no
8674      ;;
8675
8676    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8677    # support.  Future versions do this automatically, but an explicit c++rt0.o
8678    # does not break anything, and helps significantly (at the cost of a little
8679    # extra space).
8680    freebsd2.2*)
8681      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8682      hardcode_libdir_flag_spec='-R$libdir'
8683      hardcode_direct=yes
8684      hardcode_shlibpath_var=no
8685      ;;
8686
8687    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8688    freebsd2*)
8689      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8690      hardcode_direct=yes
8691      hardcode_minus_L=yes
8692      hardcode_shlibpath_var=no
8693      ;;
8694
8695    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8696    freebsd* | dragonfly*)
8697      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8698      hardcode_libdir_flag_spec='-R$libdir'
8699      hardcode_direct=yes
8700      hardcode_shlibpath_var=no
8701      ;;
8702
8703    hpux9*)
8704      if test "$GCC" = yes; then
8705	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'
8706      else
8707	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'
8708      fi
8709      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8710      hardcode_libdir_separator=:
8711      hardcode_direct=yes
8712
8713      # hardcode_minus_L: Not really in the search PATH,
8714      # but as the default location of the library.
8715      hardcode_minus_L=yes
8716      export_dynamic_flag_spec='${wl}-E'
8717      ;;
8718
8719    hpux10*)
8720      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722      else
8723	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8724      fi
8725      if test "$with_gnu_ld" = no; then
8726	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727	hardcode_libdir_separator=:
8728
8729	hardcode_direct=yes
8730	export_dynamic_flag_spec='${wl}-E'
8731
8732	# hardcode_minus_L: Not really in the search PATH,
8733	# but as the default location of the library.
8734	hardcode_minus_L=yes
8735      fi
8736      ;;
8737
8738    hpux11*)
8739      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8740	case $host_cpu in
8741	hppa*64*)
8742	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743	  ;;
8744	ia64*)
8745	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8746	  ;;
8747	*)
8748	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8749	  ;;
8750	esac
8751      else
8752	case $host_cpu in
8753	hppa*64*)
8754	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8755	  ;;
8756	ia64*)
8757	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8758	  ;;
8759	*)
8760	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8761	  ;;
8762	esac
8763      fi
8764      if test "$with_gnu_ld" = no; then
8765	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766	hardcode_libdir_separator=:
8767
8768	case $host_cpu in
8769	hppa*64*|ia64*)
8770	  hardcode_libdir_flag_spec_ld='+b $libdir'
8771	  hardcode_direct=no
8772	  hardcode_shlibpath_var=no
8773	  ;;
8774	*)
8775	  hardcode_direct=yes
8776	  export_dynamic_flag_spec='${wl}-E'
8777
8778	  # hardcode_minus_L: Not really in the search PATH,
8779	  # but as the default location of the library.
8780	  hardcode_minus_L=yes
8781	  ;;
8782	esac
8783      fi
8784      ;;
8785
8786    irix5* | irix6* | nonstopux*)
8787      if test "$GCC" = yes; then
8788	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'
8789      else
8790	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'
8791	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8792      fi
8793      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794      hardcode_libdir_separator=:
8795      link_all_deplibs=yes
8796      ;;
8797
8798    netbsd*)
8799      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8800	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8801      else
8802	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8803      fi
8804      hardcode_libdir_flag_spec='-R$libdir'
8805      hardcode_direct=yes
8806      hardcode_shlibpath_var=no
8807      ;;
8808
8809    newsos6)
8810      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811      hardcode_direct=yes
8812      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813      hardcode_libdir_separator=:
8814      hardcode_shlibpath_var=no
8815      ;;
8816
8817    openbsd*)
8818      if test -f /usr/libexec/ld.so; then
8819	hardcode_direct=yes
8820	hardcode_shlibpath_var=no
8821	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8822	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8823	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8824	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8825	  export_dynamic_flag_spec='${wl}-E'
8826	else
8827	  case $host_os in
8828	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8829	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8830	     hardcode_libdir_flag_spec='-R$libdir'
8831	     ;;
8832	   *)
8833	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8834	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8835	     ;;
8836	  esac
8837        fi
8838      else
8839	ld_shlibs=no
8840      fi
8841      ;;
8842
8843    os2*)
8844      hardcode_libdir_flag_spec='-L$libdir'
8845      hardcode_minus_L=yes
8846      allow_undefined_flag=unsupported
8847      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'
8848      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8849      ;;
8850
8851    osf3*)
8852      if test "$GCC" = yes; then
8853	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8854	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'
8855      else
8856	allow_undefined_flag=' -expect_unresolved \*'
8857	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'
8858      fi
8859      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860      hardcode_libdir_separator=:
8861      ;;
8862
8863    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8864      if test "$GCC" = yes; then
8865	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8866	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'
8867	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868      else
8869	allow_undefined_flag=' -expect_unresolved \*'
8870	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'
8871	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8872	$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'
8873
8874	# Both c and cxx compiler support -rpath directly
8875	hardcode_libdir_flag_spec='-rpath $libdir'
8876      fi
8877      hardcode_libdir_separator=:
8878      ;;
8879
8880    solaris*)
8881      no_undefined_flag=' -z text'
8882      if test "$GCC" = yes; then
8883	wlarc='${wl}'
8884	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8887      else
8888	wlarc=''
8889	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8891  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8892      fi
8893      hardcode_libdir_flag_spec='-R$libdir'
8894      hardcode_shlibpath_var=no
8895      case $host_os in
8896      solaris2.[0-5] | solaris2.[0-5].*) ;;
8897      *)
8898	# The compiler driver will combine and reorder linker options,
8899	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8900	# but is careful enough not to reorder.
8901 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8902	if test "$GCC" = yes; then
8903	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8904	else
8905	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8906	fi
8907	;;
8908      esac
8909      link_all_deplibs=yes
8910      ;;
8911
8912    sunos4*)
8913      if test "x$host_vendor" = xsequent; then
8914	# Use $CC to link under sequent, because it throws in some extra .o
8915	# files that make .init and .fini sections work.
8916	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8917      else
8918	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8919      fi
8920      hardcode_libdir_flag_spec='-L$libdir'
8921      hardcode_direct=yes
8922      hardcode_minus_L=yes
8923      hardcode_shlibpath_var=no
8924      ;;
8925
8926    sysv4)
8927      case $host_vendor in
8928	sni)
8929	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930	  hardcode_direct=yes # is this really true???
8931	;;
8932	siemens)
8933	  ## LD is ld it makes a PLAMLIB
8934	  ## CC just makes a GrossModule.
8935	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8936	  reload_cmds='$CC -r -o $output$reload_objs'
8937	  hardcode_direct=no
8938        ;;
8939	motorola)
8940	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8942	;;
8943      esac
8944      runpath_var='LD_RUN_PATH'
8945      hardcode_shlibpath_var=no
8946      ;;
8947
8948    sysv4.3*)
8949      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950      hardcode_shlibpath_var=no
8951      export_dynamic_flag_spec='-Bexport'
8952      ;;
8953
8954    sysv4*MP*)
8955      if test -d /usr/nec; then
8956	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957	hardcode_shlibpath_var=no
8958	runpath_var=LD_RUN_PATH
8959	hardcode_runpath_var=yes
8960	ld_shlibs=yes
8961      fi
8962      ;;
8963
8964    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8965      no_undefined_flag='${wl}-z,text'
8966      archive_cmds_need_lc=no
8967      hardcode_shlibpath_var=no
8968      runpath_var='LD_RUN_PATH'
8969
8970      if test "$GCC" = yes; then
8971	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8973      else
8974	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976      fi
8977      ;;
8978
8979    sysv5* | sco3.2v5* | sco5v6*)
8980      # Note: We can NOT use -z defs as we might desire, because we do not
8981      # link with -lc, and that would cause any symbols used from libc to
8982      # always be unresolved, which means just about no library would
8983      # ever link correctly.  If we're not using GNU ld we use -z text
8984      # though, which does catch some bad symbols but isn't as heavy-handed
8985      # as -z defs.
8986      no_undefined_flag='${wl}-z,text'
8987      allow_undefined_flag='${wl}-z,nodefs'
8988      archive_cmds_need_lc=no
8989      hardcode_shlibpath_var=no
8990      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8991      hardcode_libdir_separator=':'
8992      link_all_deplibs=yes
8993      export_dynamic_flag_spec='${wl}-Bexport'
8994      runpath_var='LD_RUN_PATH'
8995
8996      if test "$GCC" = yes; then
8997	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999      else
9000	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9002      fi
9003      ;;
9004
9005    uts4*)
9006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007      hardcode_libdir_flag_spec='-L$libdir'
9008      hardcode_shlibpath_var=no
9009      ;;
9010
9011    *)
9012      ld_shlibs=no
9013      ;;
9014    esac
9015  fi
9016
9017{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9018$as_echo "$ld_shlibs" >&6; }
9019test "$ld_shlibs" = no && can_build_shared=no
9020
9021#
9022# Do we need to explicitly link libc?
9023#
9024case "x$archive_cmds_need_lc" in
9025x|xyes)
9026  # Assume -lc should be added
9027  archive_cmds_need_lc=yes
9028
9029  if test "$enable_shared" = yes && test "$GCC" = yes; then
9030    case $archive_cmds in
9031    *'~'*)
9032      # FIXME: we may have to deal with multi-command sequences.
9033      ;;
9034    '$CC '*)
9035      # Test whether the compiler implicitly links with -lc since on some
9036      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9037      # to ld, don't add -lc before -lgcc.
9038      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9039$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9040      $rm conftest*
9041      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042
9043      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9044  (eval $ac_compile) 2>&5
9045  ac_status=$?
9046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); } 2>conftest.err; then
9048        soname=conftest
9049        lib=conftest
9050        libobjs=conftest.$ac_objext
9051        deplibs=
9052        wl=$lt_prog_compiler_wl
9053	pic_flag=$lt_prog_compiler_pic
9054        compiler_flags=-v
9055        linker_flags=-v
9056        verstring=
9057        output_objdir=.
9058        libname=conftest
9059        lt_save_allow_undefined_flag=$allow_undefined_flag
9060        allow_undefined_flag=
9061        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9062  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9063  ac_status=$?
9064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); }
9066        then
9067	  archive_cmds_need_lc=no
9068        else
9069	  archive_cmds_need_lc=yes
9070        fi
9071        allow_undefined_flag=$lt_save_allow_undefined_flag
9072      else
9073        cat conftest.err 1>&5
9074      fi
9075      $rm conftest*
9076      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9077$as_echo "$archive_cmds_need_lc" >&6; }
9078      ;;
9079    esac
9080  fi
9081  ;;
9082esac
9083
9084{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9085$as_echo_n "checking dynamic linker characteristics... " >&6; }
9086library_names_spec=
9087libname_spec='lib$name'
9088soname_spec=
9089shrext_cmds=".so"
9090postinstall_cmds=
9091postuninstall_cmds=
9092finish_cmds=
9093finish_eval=
9094shlibpath_var=
9095shlibpath_overrides_runpath=unknown
9096version_type=none
9097dynamic_linker="$host_os ld.so"
9098sys_lib_dlsearch_path_spec="/lib /usr/lib"
9099
9100if test "$GCC" = yes; then
9101  case $host_os in
9102    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9103    *) lt_awk_arg="/^libraries:/" ;;
9104  esac
9105  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9106  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9107    # if the path contains ";" then we assume it to be the separator
9108    # otherwise default to the standard path separator (i.e. ":") - it is
9109    # assumed that no part of a normal pathname contains ";" but that should
9110    # okay in the real world where ";" in dirpaths is itself problematic.
9111    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9112  else
9113    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9114  fi
9115  # Ok, now we have the path, separated by spaces, we can step through it
9116  # and add multilib dir if necessary.
9117  lt_tmp_lt_search_path_spec=
9118  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9119  for lt_sys_path in $lt_search_path_spec; do
9120    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9121      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9122    else
9123      test -d "$lt_sys_path" && \
9124	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9125    fi
9126  done
9127  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9128BEGIN {RS=" "; FS="/|\n";} {
9129  lt_foo="";
9130  lt_count=0;
9131  for (lt_i = NF; lt_i > 0; lt_i--) {
9132    if ($lt_i != "" && $lt_i != ".") {
9133      if ($lt_i == "..") {
9134        lt_count++;
9135      } else {
9136        if (lt_count == 0) {
9137          lt_foo="/" $lt_i lt_foo;
9138        } else {
9139          lt_count--;
9140        }
9141      }
9142    }
9143  }
9144  if (lt_foo != "") { lt_freq[lt_foo]++; }
9145  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9146}'`
9147  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9148else
9149  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9150fi
9151need_lib_prefix=unknown
9152hardcode_into_libs=no
9153
9154# when you set need_version to no, make sure it does not cause -set_version
9155# flags to be left without arguments
9156need_version=unknown
9157
9158case $host_os in
9159aix3*)
9160  version_type=linux
9161  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9162  shlibpath_var=LIBPATH
9163
9164  # AIX 3 has no versioning support, so we append a major version to the name.
9165  soname_spec='${libname}${release}${shared_ext}$major'
9166  ;;
9167
9168aix[4-9]*)
9169  version_type=linux
9170  need_lib_prefix=no
9171  need_version=no
9172  hardcode_into_libs=yes
9173  if test "$host_cpu" = ia64; then
9174    # AIX 5 supports IA64
9175    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9176    shlibpath_var=LD_LIBRARY_PATH
9177  else
9178    # With GCC up to 2.95.x, collect2 would create an import file
9179    # for dependence libraries.  The import file would start with
9180    # the line `#! .'.  This would cause the generated library to
9181    # depend on `.', always an invalid library.  This was fixed in
9182    # development snapshots of GCC prior to 3.0.
9183    case $host_os in
9184      aix4 | aix4.[01] | aix4.[01].*)
9185      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9186	   echo ' yes '
9187	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9188	:
9189      else
9190	can_build_shared=no
9191      fi
9192      ;;
9193    esac
9194    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9195    # soname into executable. Probably we can add versioning support to
9196    # collect2, so additional links can be useful in future.
9197    if test "$aix_use_runtimelinking" = yes; then
9198      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9199      # instead of lib<name>.a to let people know that these are not
9200      # typical AIX shared libraries.
9201      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202    else
9203      # We preserve .a as extension for shared libraries through AIX4.2
9204      # and later when we are not doing run time linking.
9205      library_names_spec='${libname}${release}.a $libname.a'
9206      soname_spec='${libname}${release}${shared_ext}$major'
9207    fi
9208    shlibpath_var=LIBPATH
9209  fi
9210  ;;
9211
9212amigaos*)
9213  library_names_spec='$libname.ixlibrary $libname.a'
9214  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9215  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'
9216  ;;
9217
9218beos*)
9219  library_names_spec='${libname}${shared_ext}'
9220  dynamic_linker="$host_os ld.so"
9221  shlibpath_var=LIBRARY_PATH
9222  ;;
9223
9224bsdi[45]*)
9225  version_type=linux
9226  need_version=no
9227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228  soname_spec='${libname}${release}${shared_ext}$major'
9229  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9230  shlibpath_var=LD_LIBRARY_PATH
9231  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9232  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9233  # the default ld.so.conf also contains /usr/contrib/lib and
9234  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9235  # libtool to hard-code these into programs
9236  ;;
9237
9238cygwin* | mingw* | pw32*)
9239  version_type=windows
9240  shrext_cmds=".dll"
9241  need_version=no
9242  need_lib_prefix=no
9243
9244  case $GCC,$host_os in
9245  yes,cygwin* | yes,mingw* | yes,pw32*)
9246    library_names_spec='$libname.dll.a'
9247    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9248    postinstall_cmds='base_file=`basename \${file}`~
9249      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9250      dldir=$destdir/`dirname \$dlpath`~
9251      test -d \$dldir || mkdir -p \$dldir~
9252      $install_prog $dir/$dlname \$dldir/$dlname~
9253      chmod a+x \$dldir/$dlname'
9254    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9255      dlpath=$dir/\$dldll~
9256       $rm \$dlpath'
9257    shlibpath_overrides_runpath=yes
9258
9259    case $host_os in
9260    cygwin*)
9261      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9262      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9264      ;;
9265    mingw*)
9266      # MinGW DLLs use traditional 'lib' prefix
9267      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9268      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9269      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9270        # It is most probably a Windows format PATH printed by
9271        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9272        # path with ; separators, and with drive letters. We can handle the
9273        # drive letters (cygwin fileutils understands them), so leave them,
9274        # especially as we might pass files found there to a mingw objdump,
9275        # which wouldn't understand a cygwinified path. Ahh.
9276        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9277      else
9278        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9279      fi
9280      ;;
9281    pw32*)
9282      # pw32 DLLs use 'pw' prefix rather than 'lib'
9283      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9284      ;;
9285    esac
9286    ;;
9287
9288  *)
9289    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9290    ;;
9291  esac
9292  dynamic_linker='Win32 ld.exe'
9293  # FIXME: first we should search . and the directory the executable is in
9294  shlibpath_var=PATH
9295  ;;
9296
9297darwin* | rhapsody*)
9298  dynamic_linker="$host_os dyld"
9299  version_type=darwin
9300  need_lib_prefix=no
9301  need_version=no
9302  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9303  soname_spec='${libname}${release}${major}$shared_ext'
9304  shlibpath_overrides_runpath=yes
9305  shlibpath_var=DYLD_LIBRARY_PATH
9306  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9307
9308  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9309  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9310  ;;
9311
9312dgux*)
9313  version_type=linux
9314  need_lib_prefix=no
9315  need_version=no
9316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9317  soname_spec='${libname}${release}${shared_ext}$major'
9318  shlibpath_var=LD_LIBRARY_PATH
9319  ;;
9320
9321freebsd1*)
9322  dynamic_linker=no
9323  ;;
9324
9325freebsd* | dragonfly*)
9326  # DragonFly does not have aout.  When/if they implement a new
9327  # versioning mechanism, adjust this.
9328  if test -x /usr/bin/objformat; then
9329    objformat=`/usr/bin/objformat`
9330  else
9331    case $host_os in
9332    freebsd[123]*) objformat=aout ;;
9333    *) objformat=elf ;;
9334    esac
9335  fi
9336  version_type=freebsd-$objformat
9337  case $version_type in
9338    freebsd-elf*)
9339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340      need_version=no
9341      need_lib_prefix=no
9342      ;;
9343    freebsd-*)
9344      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9345      need_version=yes
9346      ;;
9347  esac
9348  shlibpath_var=LD_LIBRARY_PATH
9349  case $host_os in
9350  freebsd2*)
9351    shlibpath_overrides_runpath=yes
9352    ;;
9353  freebsd3.[01]* | freebsdelf3.[01]*)
9354    shlibpath_overrides_runpath=yes
9355    hardcode_into_libs=yes
9356    ;;
9357  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9358  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9359    shlibpath_overrides_runpath=no
9360    hardcode_into_libs=yes
9361    ;;
9362  *) # from 4.6 on, and DragonFly
9363    shlibpath_overrides_runpath=yes
9364    hardcode_into_libs=yes
9365    ;;
9366  esac
9367  ;;
9368
9369gnu*)
9370  version_type=linux
9371  need_lib_prefix=no
9372  need_version=no
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9374  soname_spec='${libname}${release}${shared_ext}$major'
9375  shlibpath_var=LD_LIBRARY_PATH
9376  hardcode_into_libs=yes
9377  ;;
9378
9379hpux9* | hpux10* | hpux11*)
9380  # Give a soname corresponding to the major version so that dld.sl refuses to
9381  # link against other versions.
9382  version_type=sunos
9383  need_lib_prefix=no
9384  need_version=no
9385  case $host_cpu in
9386  ia64*)
9387    shrext_cmds='.so'
9388    hardcode_into_libs=yes
9389    dynamic_linker="$host_os dld.so"
9390    shlibpath_var=LD_LIBRARY_PATH
9391    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393    soname_spec='${libname}${release}${shared_ext}$major'
9394    if test "X$HPUX_IA64_MODE" = X32; then
9395      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9396    else
9397      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9398    fi
9399    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400    ;;
9401   hppa*64*)
9402     shrext_cmds='.sl'
9403     hardcode_into_libs=yes
9404     dynamic_linker="$host_os dld.sl"
9405     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408     soname_spec='${libname}${release}${shared_ext}$major'
9409     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9411     ;;
9412   *)
9413    shrext_cmds='.sl'
9414    dynamic_linker="$host_os dld.sl"
9415    shlibpath_var=SHLIB_PATH
9416    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418    soname_spec='${libname}${release}${shared_ext}$major'
9419    ;;
9420  esac
9421  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9422  postinstall_cmds='chmod 555 $lib'
9423  ;;
9424
9425interix[3-9]*)
9426  version_type=linux
9427  need_lib_prefix=no
9428  need_version=no
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430  soname_spec='${libname}${release}${shared_ext}$major'
9431  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  shlibpath_overrides_runpath=no
9434  hardcode_into_libs=yes
9435  ;;
9436
9437irix5* | irix6* | nonstopux*)
9438  case $host_os in
9439    nonstopux*) version_type=nonstopux ;;
9440    *)
9441	if test "$lt_cv_prog_gnu_ld" = yes; then
9442		version_type=linux
9443	else
9444		version_type=irix
9445	fi ;;
9446  esac
9447  need_lib_prefix=no
9448  need_version=no
9449  soname_spec='${libname}${release}${shared_ext}$major'
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9451  case $host_os in
9452  irix5* | nonstopux*)
9453    libsuff= shlibsuff=
9454    ;;
9455  *)
9456    case $LD in # libtool.m4 will add one of these switches to LD
9457    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9458      libsuff= shlibsuff= libmagic=32-bit;;
9459    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9460      libsuff=32 shlibsuff=N32 libmagic=N32;;
9461    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9462      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9463    *) libsuff= shlibsuff= libmagic=never-match;;
9464    esac
9465    ;;
9466  esac
9467  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9468  shlibpath_overrides_runpath=no
9469  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9470  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9471  hardcode_into_libs=yes
9472  ;;
9473
9474# No shared lib support for Linux oldld, aout, or coff.
9475linux*oldld* | linux*aout* | linux*coff*)
9476  dynamic_linker=no
9477  ;;
9478
9479# This must be Linux ELF.
9480linux* | k*bsd*-gnu)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=no
9489  # This implies no fast_install, which is unacceptable.
9490  # Some rework will be needed to allow for fast_install
9491  # before this can be enabled.
9492  hardcode_into_libs=yes
9493  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9494  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9495
9496  # Append ld.so.conf contents to the search path
9497  if test -f /etc/ld.so.conf; then
9498    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' ' '`
9499    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9500  fi
9501
9502  # We used to test for /lib/ld.so.1 and disable shared libraries on
9503  # powerpc, because MkLinux only supported shared libraries with the
9504  # GNU dynamic linker.  Since this was broken with cross compilers,
9505  # most powerpc-linux boxes support dynamic linking these days and
9506  # people can always --disable-shared, the test was removed, and we
9507  # assume the GNU/Linux dynamic linker is in use.
9508  dynamic_linker='GNU/Linux ld.so'
9509  ;;
9510
9511netbsd*)
9512  version_type=sunos
9513  need_lib_prefix=no
9514  need_version=no
9515  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9517    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9518    dynamic_linker='NetBSD (a.out) ld.so'
9519  else
9520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9521    soname_spec='${libname}${release}${shared_ext}$major'
9522    dynamic_linker='NetBSD ld.elf_so'
9523  fi
9524  shlibpath_var=LD_LIBRARY_PATH
9525  shlibpath_overrides_runpath=yes
9526  hardcode_into_libs=yes
9527  ;;
9528
9529newsos6)
9530  version_type=linux
9531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  shlibpath_overrides_runpath=yes
9534  ;;
9535
9536nto-qnx*)
9537  version_type=linux
9538  need_lib_prefix=no
9539  need_version=no
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=yes
9544  ;;
9545
9546openbsd*)
9547  version_type=sunos
9548  sys_lib_dlsearch_path_spec="/usr/lib"
9549  need_lib_prefix=no
9550  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9551  case $host_os in
9552    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9553    *)                         need_version=no  ;;
9554  esac
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9559    case $host_os in
9560      openbsd2.[89] | openbsd2.[89].*)
9561	shlibpath_overrides_runpath=no
9562	;;
9563      *)
9564	shlibpath_overrides_runpath=yes
9565	;;
9566      esac
9567  else
9568    shlibpath_overrides_runpath=yes
9569  fi
9570  ;;
9571
9572os2*)
9573  libname_spec='$name'
9574  shrext_cmds=".dll"
9575  need_lib_prefix=no
9576  library_names_spec='$libname${shared_ext} $libname.a'
9577  dynamic_linker='OS/2 ld.exe'
9578  shlibpath_var=LIBPATH
9579  ;;
9580
9581osf3* | osf4* | osf5*)
9582  version_type=osf
9583  need_lib_prefix=no
9584  need_version=no
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9589  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9590  ;;
9591
9592rdos*)
9593  dynamic_linker=no
9594  ;;
9595
9596solaris*)
9597  version_type=linux
9598  need_lib_prefix=no
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  shlibpath_overrides_runpath=yes
9604  hardcode_into_libs=yes
9605  # ldd complains unless libraries are executable
9606  postinstall_cmds='chmod +x $lib'
9607  ;;
9608
9609sunos4*)
9610  version_type=sunos
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9612  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9613  shlibpath_var=LD_LIBRARY_PATH
9614  shlibpath_overrides_runpath=yes
9615  if test "$with_gnu_ld" = yes; then
9616    need_lib_prefix=no
9617  fi
9618  need_version=yes
9619  ;;
9620
9621sysv4 | sysv4.3*)
9622  version_type=linux
9623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624  soname_spec='${libname}${release}${shared_ext}$major'
9625  shlibpath_var=LD_LIBRARY_PATH
9626  case $host_vendor in
9627    sni)
9628      shlibpath_overrides_runpath=no
9629      need_lib_prefix=no
9630      export_dynamic_flag_spec='${wl}-Blargedynsym'
9631      runpath_var=LD_RUN_PATH
9632      ;;
9633    siemens)
9634      need_lib_prefix=no
9635      ;;
9636    motorola)
9637      need_lib_prefix=no
9638      need_version=no
9639      shlibpath_overrides_runpath=no
9640      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9641      ;;
9642  esac
9643  ;;
9644
9645sysv4*MP*)
9646  if test -d /usr/nec ;then
9647    version_type=linux
9648    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9649    soname_spec='$libname${shared_ext}.$major'
9650    shlibpath_var=LD_LIBRARY_PATH
9651  fi
9652  ;;
9653
9654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9655  version_type=freebsd-elf
9656  need_lib_prefix=no
9657  need_version=no
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9659  soname_spec='${libname}${release}${shared_ext}$major'
9660  shlibpath_var=LD_LIBRARY_PATH
9661  hardcode_into_libs=yes
9662  if test "$with_gnu_ld" = yes; then
9663    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9664    shlibpath_overrides_runpath=no
9665  else
9666    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9667    shlibpath_overrides_runpath=yes
9668    case $host_os in
9669      sco3.2v5*)
9670        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9671	;;
9672    esac
9673  fi
9674  sys_lib_dlsearch_path_spec='/usr/lib'
9675  ;;
9676
9677uts4*)
9678  version_type=linux
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680  soname_spec='${libname}${release}${shared_ext}$major'
9681  shlibpath_var=LD_LIBRARY_PATH
9682  ;;
9683
9684*)
9685  dynamic_linker=no
9686  ;;
9687esac
9688{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9689$as_echo "$dynamic_linker" >&6; }
9690test "$dynamic_linker" = no && can_build_shared=no
9691
9692if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9693  $as_echo_n "(cached) " >&6
9694else
9695  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9696fi
9697
9698sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9700  $as_echo_n "(cached) " >&6
9701else
9702  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9703fi
9704
9705sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9706
9707variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9708if test "$GCC" = yes; then
9709  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9710fi
9711
9712{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9713$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9714hardcode_action=
9715if test -n "$hardcode_libdir_flag_spec" || \
9716   test -n "$runpath_var" || \
9717   test "X$hardcode_automatic" = "Xyes" ; then
9718
9719  # We can hardcode non-existant directories.
9720  if test "$hardcode_direct" != no &&
9721     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9722     # have to relink, otherwise we might link with an installed library
9723     # when we should be linking with a yet-to-be-installed one
9724     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9725     test "$hardcode_minus_L" != no; then
9726    # Linking always hardcodes the temporary library directory.
9727    hardcode_action=relink
9728  else
9729    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9730    hardcode_action=immediate
9731  fi
9732else
9733  # We cannot hardcode anything, or else we can only hardcode existing
9734  # directories.
9735  hardcode_action=unsupported
9736fi
9737{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9738$as_echo "$hardcode_action" >&6; }
9739
9740if test "$hardcode_action" = relink; then
9741  # Fast installation is not supported
9742  enable_fast_install=no
9743elif test "$shlibpath_overrides_runpath" = yes ||
9744     test "$enable_shared" = no; then
9745  # Fast installation is not necessary
9746  enable_fast_install=needless
9747fi
9748
9749striplib=
9750old_striplib=
9751{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9752$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9753if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9754  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9755  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9756  { $as_echo "$as_me:$LINENO: result: yes" >&5
9757$as_echo "yes" >&6; }
9758else
9759# FIXME - insert some real tests, host_os isn't really good enough
9760  case $host_os in
9761   darwin*)
9762       if test -n "$STRIP" ; then
9763         striplib="$STRIP -x"
9764         old_striplib="$STRIP -S"
9765         { $as_echo "$as_me:$LINENO: result: yes" >&5
9766$as_echo "yes" >&6; }
9767       else
9768  { $as_echo "$as_me:$LINENO: result: no" >&5
9769$as_echo "no" >&6; }
9770fi
9771       ;;
9772   *)
9773  { $as_echo "$as_me:$LINENO: result: no" >&5
9774$as_echo "no" >&6; }
9775    ;;
9776  esac
9777fi
9778
9779if test "x$enable_dlopen" != xyes; then
9780  enable_dlopen=unknown
9781  enable_dlopen_self=unknown
9782  enable_dlopen_self_static=unknown
9783else
9784  lt_cv_dlopen=no
9785  lt_cv_dlopen_libs=
9786
9787  case $host_os in
9788  beos*)
9789    lt_cv_dlopen="load_add_on"
9790    lt_cv_dlopen_libs=
9791    lt_cv_dlopen_self=yes
9792    ;;
9793
9794  mingw* | pw32*)
9795    lt_cv_dlopen="LoadLibrary"
9796    lt_cv_dlopen_libs=
9797   ;;
9798
9799  cygwin*)
9800    lt_cv_dlopen="dlopen"
9801    lt_cv_dlopen_libs=
9802   ;;
9803
9804  darwin*)
9805  # if libdl is installed we need to link against it
9806    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9807$as_echo_n "checking for dlopen in -ldl... " >&6; }
9808if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9809  $as_echo_n "(cached) " >&6
9810else
9811  ac_check_lib_save_LIBS=$LIBS
9812LIBS="-ldl  $LIBS"
9813cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h.  */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h.  */
9819
9820/* Override any GCC internal prototype to avoid an error.
9821   Use char because int might match the return type of a GCC
9822   builtin and then its argument prototype would still apply.  */
9823#ifdef __cplusplus
9824extern "C"
9825#endif
9826char dlopen ();
9827int
9828main ()
9829{
9830return dlopen ();
9831  ;
9832  return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
9836if { (ac_try="$ac_link"
9837case "(($ac_try" in
9838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839  *) ac_try_echo=$ac_try;;
9840esac
9841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842$as_echo "$ac_try_echo") >&5
9843  (eval "$ac_link") 2>conftest.er1
9844  ac_status=$?
9845  grep -v '^ *+' conftest.er1 >conftest.err
9846  rm -f conftest.er1
9847  cat conftest.err >&5
9848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); } && {
9850	 test -z "$ac_c_werror_flag" ||
9851	 test ! -s conftest.err
9852       } && test -s conftest$ac_exeext && {
9853	 test "$cross_compiling" = yes ||
9854	 $as_test_x conftest$ac_exeext
9855       }; then
9856  ac_cv_lib_dl_dlopen=yes
9857else
9858  $as_echo "$as_me: failed program was:" >&5
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
9861	ac_cv_lib_dl_dlopen=no
9862fi
9863
9864rm -rf conftest.dSYM
9865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866      conftest$ac_exeext conftest.$ac_ext
9867LIBS=$ac_check_lib_save_LIBS
9868fi
9869{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9870$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9871if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9872  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9873else
9874
9875    lt_cv_dlopen="dyld"
9876    lt_cv_dlopen_libs=
9877    lt_cv_dlopen_self=yes
9878
9879fi
9880
9881   ;;
9882
9883  *)
9884    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9885$as_echo_n "checking for shl_load... " >&6; }
9886if test "${ac_cv_func_shl_load+set}" = set; then
9887  $as_echo_n "(cached) " >&6
9888else
9889  cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h.  */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h.  */
9895/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9897#define shl_load innocuous_shl_load
9898
9899/* System header to define __stub macros and hopefully few prototypes,
9900    which can conflict with char shl_load (); below.
9901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902    <limits.h> exists even on freestanding compilers.  */
9903
9904#ifdef __STDC__
9905# include <limits.h>
9906#else
9907# include <assert.h>
9908#endif
9909
9910#undef shl_load
9911
9912/* Override any GCC internal prototype to avoid an error.
9913   Use char because int might match the return type of a GCC
9914   builtin and then its argument prototype would still apply.  */
9915#ifdef __cplusplus
9916extern "C"
9917#endif
9918char shl_load ();
9919/* The GNU C library defines this for functions which it implements
9920    to always fail with ENOSYS.  Some functions are actually named
9921    something starting with __ and the normal name is an alias.  */
9922#if defined __stub_shl_load || defined __stub___shl_load
9923choke me
9924#endif
9925
9926int
9927main ()
9928{
9929return shl_load ();
9930  ;
9931  return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (ac_try="$ac_link"
9936case "(($ac_try" in
9937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938  *) ac_try_echo=$ac_try;;
9939esac
9940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9941$as_echo "$ac_try_echo") >&5
9942  (eval "$ac_link") 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } && {
9949	 test -z "$ac_c_werror_flag" ||
9950	 test ! -s conftest.err
9951       } && test -s conftest$ac_exeext && {
9952	 test "$cross_compiling" = yes ||
9953	 $as_test_x conftest$ac_exeext
9954       }; then
9955  ac_cv_func_shl_load=yes
9956else
9957  $as_echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960	ac_cv_func_shl_load=no
9961fi
9962
9963rm -rf conftest.dSYM
9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965      conftest$ac_exeext conftest.$ac_ext
9966fi
9967{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9968$as_echo "$ac_cv_func_shl_load" >&6; }
9969if test "x$ac_cv_func_shl_load" = x""yes; then
9970  lt_cv_dlopen="shl_load"
9971else
9972  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9973$as_echo_n "checking for shl_load in -ldld... " >&6; }
9974if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9975  $as_echo_n "(cached) " >&6
9976else
9977  ac_check_lib_save_LIBS=$LIBS
9978LIBS="-ldld  $LIBS"
9979cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h.  */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h.  */
9985
9986/* Override any GCC internal prototype to avoid an error.
9987   Use char because int might match the return type of a GCC
9988   builtin and then its argument prototype would still apply.  */
9989#ifdef __cplusplus
9990extern "C"
9991#endif
9992char shl_load ();
9993int
9994main ()
9995{
9996return shl_load ();
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001rm -f conftest.$ac_objext conftest$ac_exeext
10002if { (ac_try="$ac_link"
10003case "(($ac_try" in
10004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005  *) ac_try_echo=$ac_try;;
10006esac
10007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10008$as_echo "$ac_try_echo") >&5
10009  (eval "$ac_link") 2>conftest.er1
10010  ac_status=$?
10011  grep -v '^ *+' conftest.er1 >conftest.err
10012  rm -f conftest.er1
10013  cat conftest.err >&5
10014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015  (exit $ac_status); } && {
10016	 test -z "$ac_c_werror_flag" ||
10017	 test ! -s conftest.err
10018       } && test -s conftest$ac_exeext && {
10019	 test "$cross_compiling" = yes ||
10020	 $as_test_x conftest$ac_exeext
10021       }; then
10022  ac_cv_lib_dld_shl_load=yes
10023else
10024  $as_echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027	ac_cv_lib_dld_shl_load=no
10028fi
10029
10030rm -rf conftest.dSYM
10031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10032      conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10036$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10037if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10038  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10039else
10040  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10041$as_echo_n "checking for dlopen... " >&6; }
10042if test "${ac_cv_func_dlopen+set}" = set; then
10043  $as_echo_n "(cached) " >&6
10044else
10045  cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h.  */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h.  */
10051/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10052   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10053#define dlopen innocuous_dlopen
10054
10055/* System header to define __stub macros and hopefully few prototypes,
10056    which can conflict with char dlopen (); below.
10057    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10058    <limits.h> exists even on freestanding compilers.  */
10059
10060#ifdef __STDC__
10061# include <limits.h>
10062#else
10063# include <assert.h>
10064#endif
10065
10066#undef dlopen
10067
10068/* Override any GCC internal prototype to avoid an error.
10069   Use char because int might match the return type of a GCC
10070   builtin and then its argument prototype would still apply.  */
10071#ifdef __cplusplus
10072extern "C"
10073#endif
10074char dlopen ();
10075/* The GNU C library defines this for functions which it implements
10076    to always fail with ENOSYS.  Some functions are actually named
10077    something starting with __ and the normal name is an alias.  */
10078#if defined __stub_dlopen || defined __stub___dlopen
10079choke me
10080#endif
10081
10082int
10083main ()
10084{
10085return dlopen ();
10086  ;
10087  return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (ac_try="$ac_link"
10092case "(($ac_try" in
10093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094  *) ac_try_echo=$ac_try;;
10095esac
10096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10097$as_echo "$ac_try_echo") >&5
10098  (eval "$ac_link") 2>conftest.er1
10099  ac_status=$?
10100  grep -v '^ *+' conftest.er1 >conftest.err
10101  rm -f conftest.er1
10102  cat conftest.err >&5
10103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104  (exit $ac_status); } && {
10105	 test -z "$ac_c_werror_flag" ||
10106	 test ! -s conftest.err
10107       } && test -s conftest$ac_exeext && {
10108	 test "$cross_compiling" = yes ||
10109	 $as_test_x conftest$ac_exeext
10110       }; then
10111  ac_cv_func_dlopen=yes
10112else
10113  $as_echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116	ac_cv_func_dlopen=no
10117fi
10118
10119rm -rf conftest.dSYM
10120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121      conftest$ac_exeext conftest.$ac_ext
10122fi
10123{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10124$as_echo "$ac_cv_func_dlopen" >&6; }
10125if test "x$ac_cv_func_dlopen" = x""yes; then
10126  lt_cv_dlopen="dlopen"
10127else
10128  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10129$as_echo_n "checking for dlopen in -ldl... " >&6; }
10130if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10131  $as_echo_n "(cached) " >&6
10132else
10133  ac_check_lib_save_LIBS=$LIBS
10134LIBS="-ldl  $LIBS"
10135cat >conftest.$ac_ext <<_ACEOF
10136/* confdefs.h.  */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h.  */
10141
10142/* Override any GCC internal prototype to avoid an error.
10143   Use char because int might match the return type of a GCC
10144   builtin and then its argument prototype would still apply.  */
10145#ifdef __cplusplus
10146extern "C"
10147#endif
10148char dlopen ();
10149int
10150main ()
10151{
10152return dlopen ();
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
10158if { (ac_try="$ac_link"
10159case "(($ac_try" in
10160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161  *) ac_try_echo=$ac_try;;
10162esac
10163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164$as_echo "$ac_try_echo") >&5
10165  (eval "$ac_link") 2>conftest.er1
10166  ac_status=$?
10167  grep -v '^ *+' conftest.er1 >conftest.err
10168  rm -f conftest.er1
10169  cat conftest.err >&5
10170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); } && {
10172	 test -z "$ac_c_werror_flag" ||
10173	 test ! -s conftest.err
10174       } && test -s conftest$ac_exeext && {
10175	 test "$cross_compiling" = yes ||
10176	 $as_test_x conftest$ac_exeext
10177       }; then
10178  ac_cv_lib_dl_dlopen=yes
10179else
10180  $as_echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183	ac_cv_lib_dl_dlopen=no
10184fi
10185
10186rm -rf conftest.dSYM
10187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188      conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
10191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10192$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10193if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10194  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10195else
10196  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10197$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10198if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10199  $as_echo_n "(cached) " >&6
10200else
10201  ac_check_lib_save_LIBS=$LIBS
10202LIBS="-lsvld  $LIBS"
10203cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h.  */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h.  */
10209
10210/* Override any GCC internal prototype to avoid an error.
10211   Use char because int might match the return type of a GCC
10212   builtin and then its argument prototype would still apply.  */
10213#ifdef __cplusplus
10214extern "C"
10215#endif
10216char dlopen ();
10217int
10218main ()
10219{
10220return dlopen ();
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (ac_try="$ac_link"
10227case "(($ac_try" in
10228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229  *) ac_try_echo=$ac_try;;
10230esac
10231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10232$as_echo "$ac_try_echo") >&5
10233  (eval "$ac_link") 2>conftest.er1
10234  ac_status=$?
10235  grep -v '^ *+' conftest.er1 >conftest.err
10236  rm -f conftest.er1
10237  cat conftest.err >&5
10238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239  (exit $ac_status); } && {
10240	 test -z "$ac_c_werror_flag" ||
10241	 test ! -s conftest.err
10242       } && test -s conftest$ac_exeext && {
10243	 test "$cross_compiling" = yes ||
10244	 $as_test_x conftest$ac_exeext
10245       }; then
10246  ac_cv_lib_svld_dlopen=yes
10247else
10248  $as_echo "$as_me: failed program was:" >&5
10249sed 's/^/| /' conftest.$ac_ext >&5
10250
10251	ac_cv_lib_svld_dlopen=no
10252fi
10253
10254rm -rf conftest.dSYM
10255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256      conftest$ac_exeext conftest.$ac_ext
10257LIBS=$ac_check_lib_save_LIBS
10258fi
10259{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10260$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10261if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10262  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10263else
10264  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10265$as_echo_n "checking for dld_link in -ldld... " >&6; }
10266if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10267  $as_echo_n "(cached) " >&6
10268else
10269  ac_check_lib_save_LIBS=$LIBS
10270LIBS="-ldld  $LIBS"
10271cat >conftest.$ac_ext <<_ACEOF
10272/* confdefs.h.  */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
10276/* end confdefs.h.  */
10277
10278/* Override any GCC internal prototype to avoid an error.
10279   Use char because int might match the return type of a GCC
10280   builtin and then its argument prototype would still apply.  */
10281#ifdef __cplusplus
10282extern "C"
10283#endif
10284char dld_link ();
10285int
10286main ()
10287{
10288return dld_link ();
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293rm -f conftest.$ac_objext conftest$ac_exeext
10294if { (ac_try="$ac_link"
10295case "(($ac_try" in
10296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297  *) ac_try_echo=$ac_try;;
10298esac
10299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10300$as_echo "$ac_try_echo") >&5
10301  (eval "$ac_link") 2>conftest.er1
10302  ac_status=$?
10303  grep -v '^ *+' conftest.er1 >conftest.err
10304  rm -f conftest.er1
10305  cat conftest.err >&5
10306  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); } && {
10308	 test -z "$ac_c_werror_flag" ||
10309	 test ! -s conftest.err
10310       } && test -s conftest$ac_exeext && {
10311	 test "$cross_compiling" = yes ||
10312	 $as_test_x conftest$ac_exeext
10313       }; then
10314  ac_cv_lib_dld_dld_link=yes
10315else
10316  $as_echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319	ac_cv_lib_dld_dld_link=no
10320fi
10321
10322rm -rf conftest.dSYM
10323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10324      conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
10327{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10328$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10329if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10330  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10331fi
10332
10333
10334fi
10335
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348    ;;
10349  esac
10350
10351  if test "x$lt_cv_dlopen" != xno; then
10352    enable_dlopen=yes
10353  else
10354    enable_dlopen=no
10355  fi
10356
10357  case $lt_cv_dlopen in
10358  dlopen)
10359    save_CPPFLAGS="$CPPFLAGS"
10360    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10361
10362    save_LDFLAGS="$LDFLAGS"
10363    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10364
10365    save_LIBS="$LIBS"
10366    LIBS="$lt_cv_dlopen_libs $LIBS"
10367
10368    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10369$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10370if test "${lt_cv_dlopen_self+set}" = set; then
10371  $as_echo_n "(cached) " >&6
10372else
10373  	  if test "$cross_compiling" = yes; then :
10374  lt_cv_dlopen_self=cross
10375else
10376  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10377  lt_status=$lt_dlunknown
10378  cat > conftest.$ac_ext <<EOF
10379#line 10379 "configure"
10380#include "confdefs.h"
10381
10382#if HAVE_DLFCN_H
10383#include <dlfcn.h>
10384#endif
10385
10386#include <stdio.h>
10387
10388#ifdef RTLD_GLOBAL
10389#  define LT_DLGLOBAL		RTLD_GLOBAL
10390#else
10391#  ifdef DL_GLOBAL
10392#    define LT_DLGLOBAL		DL_GLOBAL
10393#  else
10394#    define LT_DLGLOBAL		0
10395#  endif
10396#endif
10397
10398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10399   find out it does not work in some platform. */
10400#ifndef LT_DLLAZY_OR_NOW
10401#  ifdef RTLD_LAZY
10402#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10403#  else
10404#    ifdef DL_LAZY
10405#      define LT_DLLAZY_OR_NOW		DL_LAZY
10406#    else
10407#      ifdef RTLD_NOW
10408#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10409#      else
10410#        ifdef DL_NOW
10411#          define LT_DLLAZY_OR_NOW	DL_NOW
10412#        else
10413#          define LT_DLLAZY_OR_NOW	0
10414#        endif
10415#      endif
10416#    endif
10417#  endif
10418#endif
10419
10420#ifdef __cplusplus
10421extern "C" void exit (int);
10422#endif
10423
10424void fnord() { int i=42;}
10425int main ()
10426{
10427  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10428  int status = $lt_dlunknown;
10429
10430  if (self)
10431    {
10432      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10433      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10434      /* dlclose (self); */
10435    }
10436  else
10437    puts (dlerror ());
10438
10439    exit (status);
10440}
10441EOF
10442  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10443  (eval $ac_link) 2>&5
10444  ac_status=$?
10445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10447    (./conftest; exit; ) >&5 2>/dev/null
10448    lt_status=$?
10449    case x$lt_status in
10450      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10451      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10452      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10453    esac
10454  else :
10455    # compilation failed
10456    lt_cv_dlopen_self=no
10457  fi
10458fi
10459rm -fr conftest*
10460
10461
10462fi
10463{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10464$as_echo "$lt_cv_dlopen_self" >&6; }
10465
10466    if test "x$lt_cv_dlopen_self" = xyes; then
10467      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10468      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10469$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10470if test "${lt_cv_dlopen_self_static+set}" = set; then
10471  $as_echo_n "(cached) " >&6
10472else
10473  	  if test "$cross_compiling" = yes; then :
10474  lt_cv_dlopen_self_static=cross
10475else
10476  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10477  lt_status=$lt_dlunknown
10478  cat > conftest.$ac_ext <<EOF
10479#line 10479 "configure"
10480#include "confdefs.h"
10481
10482#if HAVE_DLFCN_H
10483#include <dlfcn.h>
10484#endif
10485
10486#include <stdio.h>
10487
10488#ifdef RTLD_GLOBAL
10489#  define LT_DLGLOBAL		RTLD_GLOBAL
10490#else
10491#  ifdef DL_GLOBAL
10492#    define LT_DLGLOBAL		DL_GLOBAL
10493#  else
10494#    define LT_DLGLOBAL		0
10495#  endif
10496#endif
10497
10498/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10499   find out it does not work in some platform. */
10500#ifndef LT_DLLAZY_OR_NOW
10501#  ifdef RTLD_LAZY
10502#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10503#  else
10504#    ifdef DL_LAZY
10505#      define LT_DLLAZY_OR_NOW		DL_LAZY
10506#    else
10507#      ifdef RTLD_NOW
10508#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10509#      else
10510#        ifdef DL_NOW
10511#          define LT_DLLAZY_OR_NOW	DL_NOW
10512#        else
10513#          define LT_DLLAZY_OR_NOW	0
10514#        endif
10515#      endif
10516#    endif
10517#  endif
10518#endif
10519
10520#ifdef __cplusplus
10521extern "C" void exit (int);
10522#endif
10523
10524void fnord() { int i=42;}
10525int main ()
10526{
10527  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10528  int status = $lt_dlunknown;
10529
10530  if (self)
10531    {
10532      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10533      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10534      /* dlclose (self); */
10535    }
10536  else
10537    puts (dlerror ());
10538
10539    exit (status);
10540}
10541EOF
10542  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543  (eval $ac_link) 2>&5
10544  ac_status=$?
10545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10547    (./conftest; exit; ) >&5 2>/dev/null
10548    lt_status=$?
10549    case x$lt_status in
10550      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10551      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10552      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10553    esac
10554  else :
10555    # compilation failed
10556    lt_cv_dlopen_self_static=no
10557  fi
10558fi
10559rm -fr conftest*
10560
10561
10562fi
10563{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10564$as_echo "$lt_cv_dlopen_self_static" >&6; }
10565    fi
10566
10567    CPPFLAGS="$save_CPPFLAGS"
10568    LDFLAGS="$save_LDFLAGS"
10569    LIBS="$save_LIBS"
10570    ;;
10571  esac
10572
10573  case $lt_cv_dlopen_self in
10574  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10575  *) enable_dlopen_self=unknown ;;
10576  esac
10577
10578  case $lt_cv_dlopen_self_static in
10579  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10580  *) enable_dlopen_self_static=unknown ;;
10581  esac
10582fi
10583
10584
10585# Report which library types will actually be built
10586{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10587$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10588{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10589$as_echo "$can_build_shared" >&6; }
10590
10591{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10592$as_echo_n "checking whether to build shared libraries... " >&6; }
10593test "$can_build_shared" = "no" && enable_shared=no
10594
10595# On AIX, shared libraries and static libraries use the same namespace, and
10596# are all built from PIC.
10597case $host_os in
10598aix3*)
10599  test "$enable_shared" = yes && enable_static=no
10600  if test -n "$RANLIB"; then
10601    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10602    postinstall_cmds='$RANLIB $lib'
10603  fi
10604  ;;
10605
10606aix[4-9]*)
10607  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10608    test "$enable_shared" = yes && enable_static=no
10609  fi
10610    ;;
10611esac
10612{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10613$as_echo "$enable_shared" >&6; }
10614
10615{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10616$as_echo_n "checking whether to build static libraries... " >&6; }
10617# Make sure either enable_shared or enable_static is yes.
10618test "$enable_shared" = yes || enable_static=yes
10619{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10620$as_echo "$enable_static" >&6; }
10621
10622# The else clause should only fire when bootstrapping the
10623# libtool distribution, otherwise you forgot to ship ltmain.sh
10624# with your package, and you will get complaints that there are
10625# no rules to generate ltmain.sh.
10626if test -f "$ltmain"; then
10627  # See if we are running on zsh, and set the options which allow our commands through
10628  # without removal of \ escapes.
10629  if test -n "${ZSH_VERSION+set}" ; then
10630    setopt NO_GLOB_SUBST
10631  fi
10632  # Now quote all the things that may contain metacharacters while being
10633  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10634  # variables and quote the copies for generation of the libtool script.
10635  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10636    SED SHELL STRIP \
10637    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10638    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10639    deplibs_check_method reload_flag reload_cmds need_locks \
10640    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10641    lt_cv_sys_global_symbol_to_c_name_address \
10642    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10643    old_postinstall_cmds old_postuninstall_cmds \
10644    compiler \
10645    CC \
10646    LD \
10647    lt_prog_compiler_wl \
10648    lt_prog_compiler_pic \
10649    lt_prog_compiler_static \
10650    lt_prog_compiler_no_builtin_flag \
10651    export_dynamic_flag_spec \
10652    thread_safe_flag_spec \
10653    whole_archive_flag_spec \
10654    enable_shared_with_static_runtimes \
10655    old_archive_cmds \
10656    old_archive_from_new_cmds \
10657    predep_objects \
10658    postdep_objects \
10659    predeps \
10660    postdeps \
10661    compiler_lib_search_path \
10662    compiler_lib_search_dirs \
10663    archive_cmds \
10664    archive_expsym_cmds \
10665    postinstall_cmds \
10666    postuninstall_cmds \
10667    old_archive_from_expsyms_cmds \
10668    allow_undefined_flag \
10669    no_undefined_flag \
10670    export_symbols_cmds \
10671    hardcode_libdir_flag_spec \
10672    hardcode_libdir_flag_spec_ld \
10673    hardcode_libdir_separator \
10674    hardcode_automatic \
10675    module_cmds \
10676    module_expsym_cmds \
10677    lt_cv_prog_compiler_c_o \
10678    fix_srcfile_path \
10679    exclude_expsyms \
10680    include_expsyms; do
10681
10682    case $var in
10683    old_archive_cmds | \
10684    old_archive_from_new_cmds | \
10685    archive_cmds | \
10686    archive_expsym_cmds | \
10687    module_cmds | \
10688    module_expsym_cmds | \
10689    old_archive_from_expsyms_cmds | \
10690    export_symbols_cmds | \
10691    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10692    postinstall_cmds | postuninstall_cmds | \
10693    old_postinstall_cmds | old_postuninstall_cmds | \
10694    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10695      # Double-quote double-evaled strings.
10696      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10697      ;;
10698    *)
10699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10700      ;;
10701    esac
10702  done
10703
10704  case $lt_echo in
10705  *'\$0 --fallback-echo"')
10706    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10707    ;;
10708  esac
10709
10710cfgfile="${ofile}T"
10711  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10712  $rm -f "$cfgfile"
10713  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10714$as_echo "$as_me: creating $ofile" >&6;}
10715
10716  cat <<__EOF__ >> "$cfgfile"
10717#! $SHELL
10718
10719# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10720# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10721# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10722#
10723# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10724# Free Software Foundation, Inc.
10725#
10726# This file is part of GNU Libtool:
10727# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10728#
10729# This program is free software; you can redistribute it and/or modify
10730# it under the terms of the GNU General Public License as published by
10731# the Free Software Foundation; either version 2 of the License, or
10732# (at your option) any later version.
10733#
10734# This program is distributed in the hope that it will be useful, but
10735# WITHOUT ANY WARRANTY; without even the implied warranty of
10736# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10737# General Public License for more details.
10738#
10739# You should have received a copy of the GNU General Public License
10740# along with this program; if not, write to the Free Software
10741# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10742#
10743# As a special exception to the GNU General Public License, if you
10744# distribute this file as part of a program that contains a
10745# configuration script generated by Autoconf, you may include it under
10746# the same distribution terms that you use for the rest of that program.
10747
10748# A sed program that does not truncate output.
10749SED=$lt_SED
10750
10751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10752Xsed="$SED -e 1s/^X//"
10753
10754# The HP-UX ksh and POSIX shell print the target directory to stdout
10755# if CDPATH is set.
10756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10757
10758# The names of the tagged configurations supported by this script.
10759available_tags=
10760
10761# ### BEGIN LIBTOOL CONFIG
10762
10763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10764
10765# Shell to use when invoking shell scripts.
10766SHELL=$lt_SHELL
10767
10768# Whether or not to build shared libraries.
10769build_libtool_libs=$enable_shared
10770
10771# Whether or not to build static libraries.
10772build_old_libs=$enable_static
10773
10774# Whether or not to add -lc for building shared libraries.
10775build_libtool_need_lc=$archive_cmds_need_lc
10776
10777# Whether or not to disallow shared libs when runtime libs are static
10778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10779
10780# Whether or not to optimize for fast installation.
10781fast_install=$enable_fast_install
10782
10783# The host system.
10784host_alias=$host_alias
10785host=$host
10786host_os=$host_os
10787
10788# The build system.
10789build_alias=$build_alias
10790build=$build
10791build_os=$build_os
10792
10793# An echo program that does not interpret backslashes.
10794echo=$lt_echo
10795
10796# The archiver.
10797AR=$lt_AR
10798AR_FLAGS=$lt_AR_FLAGS
10799
10800# A C compiler.
10801LTCC=$lt_LTCC
10802
10803# LTCC compiler flags.
10804LTCFLAGS=$lt_LTCFLAGS
10805
10806# A language-specific compiler.
10807CC=$lt_compiler
10808
10809# Is the compiler the GNU C compiler?
10810with_gcc=$GCC
10811
10812# An ERE matcher.
10813EGREP=$lt_EGREP
10814
10815# The linker used to build libraries.
10816LD=$lt_LD
10817
10818# Whether we need hard or soft links.
10819LN_S=$lt_LN_S
10820
10821# A BSD-compatible nm program.
10822NM=$lt_NM
10823
10824# A symbol stripping program
10825STRIP=$lt_STRIP
10826
10827# Used to examine libraries when file_magic_cmd begins "file"
10828MAGIC_CMD=$MAGIC_CMD
10829
10830# Used on cygwin: DLL creation program.
10831DLLTOOL="$DLLTOOL"
10832
10833# Used on cygwin: object dumper.
10834OBJDUMP="$OBJDUMP"
10835
10836# Used on cygwin: assembler.
10837AS="$AS"
10838
10839# The name of the directory that contains temporary libtool files.
10840objdir=$objdir
10841
10842# How to create reloadable object files.
10843reload_flag=$lt_reload_flag
10844reload_cmds=$lt_reload_cmds
10845
10846# How to pass a linker flag through the compiler.
10847wl=$lt_lt_prog_compiler_wl
10848
10849# Object file suffix (normally "o").
10850objext="$ac_objext"
10851
10852# Old archive suffix (normally "a").
10853libext="$libext"
10854
10855# Shared library suffix (normally ".so").
10856shrext_cmds='$shrext_cmds'
10857
10858# Executable file suffix (normally "").
10859exeext="$exeext"
10860
10861# Additional compiler flags for building library objects.
10862pic_flag=$lt_lt_prog_compiler_pic
10863pic_mode=$pic_mode
10864
10865# What is the maximum length of a command?
10866max_cmd_len=$lt_cv_sys_max_cmd_len
10867
10868# Does compiler simultaneously support -c and -o options?
10869compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10870
10871# Must we lock files when doing compilation?
10872need_locks=$lt_need_locks
10873
10874# Do we need the lib prefix for modules?
10875need_lib_prefix=$need_lib_prefix
10876
10877# Do we need a version for libraries?
10878need_version=$need_version
10879
10880# Whether dlopen is supported.
10881dlopen_support=$enable_dlopen
10882
10883# Whether dlopen of programs is supported.
10884dlopen_self=$enable_dlopen_self
10885
10886# Whether dlopen of statically linked programs is supported.
10887dlopen_self_static=$enable_dlopen_self_static
10888
10889# Compiler flag to prevent dynamic linking.
10890link_static_flag=$lt_lt_prog_compiler_static
10891
10892# Compiler flag to turn off builtin functions.
10893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10894
10895# Compiler flag to allow reflexive dlopens.
10896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10897
10898# Compiler flag to generate shared objects directly from archives.
10899whole_archive_flag_spec=$lt_whole_archive_flag_spec
10900
10901# Compiler flag to generate thread-safe objects.
10902thread_safe_flag_spec=$lt_thread_safe_flag_spec
10903
10904# Library versioning type.
10905version_type=$version_type
10906
10907# Format of library name prefix.
10908libname_spec=$lt_libname_spec
10909
10910# List of archive names.  First name is the real one, the rest are links.
10911# The last name is the one that the linker finds with -lNAME.
10912library_names_spec=$lt_library_names_spec
10913
10914# The coded name of the library, if different from the real name.
10915soname_spec=$lt_soname_spec
10916
10917# Commands used to build and install an old-style archive.
10918RANLIB=$lt_RANLIB
10919old_archive_cmds=$lt_old_archive_cmds
10920old_postinstall_cmds=$lt_old_postinstall_cmds
10921old_postuninstall_cmds=$lt_old_postuninstall_cmds
10922
10923# Create an old-style archive from a shared archive.
10924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10925
10926# Create a temporary old-style archive to link instead of a shared archive.
10927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10928
10929# Commands used to build and install a shared archive.
10930archive_cmds=$lt_archive_cmds
10931archive_expsym_cmds=$lt_archive_expsym_cmds
10932postinstall_cmds=$lt_postinstall_cmds
10933postuninstall_cmds=$lt_postuninstall_cmds
10934
10935# Commands used to build a loadable module (assumed same as above if empty)
10936module_cmds=$lt_module_cmds
10937module_expsym_cmds=$lt_module_expsym_cmds
10938
10939# Commands to strip libraries.
10940old_striplib=$lt_old_striplib
10941striplib=$lt_striplib
10942
10943# Dependencies to place before the objects being linked to create a
10944# shared library.
10945predep_objects=$lt_predep_objects
10946
10947# Dependencies to place after the objects being linked to create a
10948# shared library.
10949postdep_objects=$lt_postdep_objects
10950
10951# Dependencies to place before the objects being linked to create a
10952# shared library.
10953predeps=$lt_predeps
10954
10955# Dependencies to place after the objects being linked to create a
10956# shared library.
10957postdeps=$lt_postdeps
10958
10959# The directories searched by this compiler when creating a shared
10960# library
10961compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10962
10963# The library search path used internally by the compiler when linking
10964# a shared library.
10965compiler_lib_search_path=$lt_compiler_lib_search_path
10966
10967# Method to check whether dependent libraries are shared objects.
10968deplibs_check_method=$lt_deplibs_check_method
10969
10970# Command to use when deplibs_check_method == file_magic.
10971file_magic_cmd=$lt_file_magic_cmd
10972
10973# Flag that allows shared libraries with undefined symbols to be built.
10974allow_undefined_flag=$lt_allow_undefined_flag
10975
10976# Flag that forces no undefined symbols.
10977no_undefined_flag=$lt_no_undefined_flag
10978
10979# Commands used to finish a libtool library installation in a directory.
10980finish_cmds=$lt_finish_cmds
10981
10982# Same as above, but a single script fragment to be evaled but not shown.
10983finish_eval=$lt_finish_eval
10984
10985# Take the output of nm and produce a listing of raw symbols and C names.
10986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10987
10988# Transform the output of nm in a proper C declaration
10989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10990
10991# Transform the output of nm in a C name address pair
10992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10993
10994# This is the shared library runtime path variable.
10995runpath_var=$runpath_var
10996
10997# This is the shared library path variable.
10998shlibpath_var=$shlibpath_var
10999
11000# Is shlibpath searched before the hard-coded library search path?
11001shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11002
11003# How to hardcode a shared library path into an executable.
11004hardcode_action=$hardcode_action
11005
11006# Whether we should hardcode library paths into libraries.
11007hardcode_into_libs=$hardcode_into_libs
11008
11009# Flag to hardcode \$libdir into a binary during linking.
11010# This must work even if \$libdir does not exist.
11011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11012
11013# If ld is used when linking, flag to hardcode \$libdir into
11014# a binary during linking. This must work even if \$libdir does
11015# not exist.
11016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11017
11018# Whether we need a single -rpath flag with a separated argument.
11019hardcode_libdir_separator=$lt_hardcode_libdir_separator
11020
11021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11022# resulting binary.
11023hardcode_direct=$hardcode_direct
11024
11025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11026# resulting binary.
11027hardcode_minus_L=$hardcode_minus_L
11028
11029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11030# the resulting binary.
11031hardcode_shlibpath_var=$hardcode_shlibpath_var
11032
11033# Set to yes if building a shared library automatically hardcodes DIR into the library
11034# and all subsequent libraries and executables linked against it.
11035hardcode_automatic=$hardcode_automatic
11036
11037# Variables whose values should be saved in libtool wrapper scripts and
11038# restored at relink time.
11039variables_saved_for_relink="$variables_saved_for_relink"
11040
11041# Whether libtool must link a program against all its dependency libraries.
11042link_all_deplibs=$link_all_deplibs
11043
11044# Compile-time system search path for libraries
11045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11046
11047# Run-time system search path for libraries
11048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11049
11050# Fix the shell variable \$srcfile for the compiler.
11051fix_srcfile_path=$lt_fix_srcfile_path
11052
11053# Set to yes if exported symbols are required.
11054always_export_symbols=$always_export_symbols
11055
11056# The commands to list exported symbols.
11057export_symbols_cmds=$lt_export_symbols_cmds
11058
11059# The commands to extract the exported symbol list from a shared archive.
11060extract_expsyms_cmds=$lt_extract_expsyms_cmds
11061
11062# Symbols that should not be listed in the preloaded symbols.
11063exclude_expsyms=$lt_exclude_expsyms
11064
11065# Symbols that must always be exported.
11066include_expsyms=$lt_include_expsyms
11067
11068# ### END LIBTOOL CONFIG
11069
11070__EOF__
11071
11072
11073  case $host_os in
11074  aix3*)
11075    cat <<\EOF >> "$cfgfile"
11076
11077# AIX sometimes has problems with the GCC collect2 program.  For some
11078# reason, if we set the COLLECT_NAMES environment variable, the problems
11079# vanish in a puff of smoke.
11080if test "X${COLLECT_NAMES+set}" != Xset; then
11081  COLLECT_NAMES=
11082  export COLLECT_NAMES
11083fi
11084EOF
11085    ;;
11086  esac
11087
11088  # We use sed instead of cat because bash on DJGPP gets confused if
11089  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11090  # text mode, it properly converts lines to CR/LF.  This bash problem
11091  # is reportedly fixed, but why not run on old versions too?
11092  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11093
11094  mv -f "$cfgfile" "$ofile" || \
11095    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11096  chmod +x "$ofile"
11097
11098else
11099  # If there is no Makefile yet, we rely on a make rule to execute
11100  # `config.status --recheck' to rerun these tests and create the
11101  # libtool script then.
11102  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11103  if test -f "$ltmain_in"; then
11104    test -f Makefile && make "$ltmain"
11105  fi
11106fi
11107
11108
11109ac_ext=c
11110ac_cpp='$CPP $CPPFLAGS'
11111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11113ac_compiler_gnu=$ac_cv_c_compiler_gnu
11114
11115CC="$lt_save_CC"
11116
11117
11118# Check whether --with-tags was given.
11119if test "${with_tags+set}" = set; then
11120  withval=$with_tags; tagnames="$withval"
11121fi
11122
11123
11124if test -f "$ltmain" && test -n "$tagnames"; then
11125  if test ! -f "${ofile}"; then
11126    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11127$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11128  fi
11129
11130  if test -z "$LTCC"; then
11131    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11132    if test -z "$LTCC"; then
11133      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11134$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11135    else
11136      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11137$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11138    fi
11139  fi
11140  if test -z "$LTCFLAGS"; then
11141    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11142  fi
11143
11144  # Extract list of available tagged configurations in $ofile.
11145  # Note that this assumes the entire list is on one line.
11146  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11147
11148  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11149  for tagname in $tagnames; do
11150    IFS="$lt_save_ifs"
11151    # Check whether tagname contains only valid characters
11152    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11153    "") ;;
11154    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11155$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11156   { (exit 1); exit 1; }; }
11157	;;
11158    esac
11159
11160    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11161    then
11162      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11163$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11164   { (exit 1); exit 1; }; }
11165    fi
11166
11167    # Update the list of available tags.
11168    if test -n "$tagname"; then
11169      echo appending configuration tag \"$tagname\" to $ofile
11170
11171      case $tagname in
11172      CXX)
11173	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11174	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11175	    (test "X$CXX" != "Xg++"))) ; then
11176	  ac_ext=cpp
11177ac_cpp='$CXXCPP $CPPFLAGS'
11178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11181
11182
11183
11184
11185archive_cmds_need_lc_CXX=no
11186allow_undefined_flag_CXX=
11187always_export_symbols_CXX=no
11188archive_expsym_cmds_CXX=
11189export_dynamic_flag_spec_CXX=
11190hardcode_direct_CXX=no
11191hardcode_libdir_flag_spec_CXX=
11192hardcode_libdir_flag_spec_ld_CXX=
11193hardcode_libdir_separator_CXX=
11194hardcode_minus_L_CXX=no
11195hardcode_shlibpath_var_CXX=unsupported
11196hardcode_automatic_CXX=no
11197module_cmds_CXX=
11198module_expsym_cmds_CXX=
11199link_all_deplibs_CXX=unknown
11200old_archive_cmds_CXX=$old_archive_cmds
11201no_undefined_flag_CXX=
11202whole_archive_flag_spec_CXX=
11203enable_shared_with_static_runtimes_CXX=no
11204
11205# Dependencies to place before and after the object being linked:
11206predep_objects_CXX=
11207postdep_objects_CXX=
11208predeps_CXX=
11209postdeps_CXX=
11210compiler_lib_search_path_CXX=
11211compiler_lib_search_dirs_CXX=
11212
11213# Source file extension for C++ test sources.
11214ac_ext=cpp
11215
11216# Object file extension for compiled C++ test sources.
11217objext=o
11218objext_CXX=$objext
11219
11220# Code to be used in simple compile tests
11221lt_simple_compile_test_code="int some_variable = 0;"
11222
11223# Code to be used in simple link tests
11224lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11225
11226# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11227
11228# If no C compiler was specified, use CC.
11229LTCC=${LTCC-"$CC"}
11230
11231# If no C compiler flags were specified, use CFLAGS.
11232LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11233
11234# Allow CC to be a program name with arguments.
11235compiler=$CC
11236
11237
11238# save warnings/boilerplate of simple test code
11239ac_outfile=conftest.$ac_objext
11240echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11242_lt_compiler_boilerplate=`cat conftest.err`
11243$rm conftest*
11244
11245ac_outfile=conftest.$ac_objext
11246echo "$lt_simple_link_test_code" >conftest.$ac_ext
11247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11248_lt_linker_boilerplate=`cat conftest.err`
11249$rm -r conftest*
11250
11251
11252# Allow CC to be a program name with arguments.
11253lt_save_CC=$CC
11254lt_save_LD=$LD
11255lt_save_GCC=$GCC
11256GCC=$GXX
11257lt_save_with_gnu_ld=$with_gnu_ld
11258lt_save_path_LD=$lt_cv_path_LD
11259if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11260  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11261else
11262  $as_unset lt_cv_prog_gnu_ld
11263fi
11264if test -n "${lt_cv_path_LDCXX+set}"; then
11265  lt_cv_path_LD=$lt_cv_path_LDCXX
11266else
11267  $as_unset lt_cv_path_LD
11268fi
11269test -z "${LDCXX+set}" || LD=$LDCXX
11270CC=${CXX-"c++"}
11271compiler=$CC
11272compiler_CXX=$CC
11273for cc_temp in $compiler""; do
11274  case $cc_temp in
11275    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11276    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11277    \-*) ;;
11278    *) break;;
11279  esac
11280done
11281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11282
11283
11284# We don't want -fno-exception wen compiling C++ code, so set the
11285# no_builtin_flag separately
11286if test "$GXX" = yes; then
11287  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11288else
11289  lt_prog_compiler_no_builtin_flag_CXX=
11290fi
11291
11292if test "$GXX" = yes; then
11293  # Set up default GNU C++ configuration
11294
11295
11296# Check whether --with-gnu-ld was given.
11297if test "${with_gnu_ld+set}" = set; then
11298  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11299else
11300  with_gnu_ld=no
11301fi
11302
11303ac_prog=ld
11304if test "$GCC" = yes; then
11305  # Check if gcc -print-prog-name=ld gives a path.
11306  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11307$as_echo_n "checking for ld used by $CC... " >&6; }
11308  case $host in
11309  *-*-mingw*)
11310    # gcc leaves a trailing carriage return which upsets mingw
11311    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11312  *)
11313    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11314  esac
11315  case $ac_prog in
11316    # Accept absolute paths.
11317    [\\/]* | ?:[\\/]*)
11318      re_direlt='/[^/][^/]*/\.\./'
11319      # Canonicalize the pathname of ld
11320      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11321      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11322	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11323      done
11324      test -z "$LD" && LD="$ac_prog"
11325      ;;
11326  "")
11327    # If it fails, then pretend we aren't using GCC.
11328    ac_prog=ld
11329    ;;
11330  *)
11331    # If it is relative, then search for the first ld in PATH.
11332    with_gnu_ld=unknown
11333    ;;
11334  esac
11335elif test "$with_gnu_ld" = yes; then
11336  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11337$as_echo_n "checking for GNU ld... " >&6; }
11338else
11339  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11340$as_echo_n "checking for non-GNU ld... " >&6; }
11341fi
11342if test "${lt_cv_path_LD+set}" = set; then
11343  $as_echo_n "(cached) " >&6
11344else
11345  if test -z "$LD"; then
11346  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11347  for ac_dir in $PATH; do
11348    IFS="$lt_save_ifs"
11349    test -z "$ac_dir" && ac_dir=.
11350    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11351      lt_cv_path_LD="$ac_dir/$ac_prog"
11352      # Check to see if the program is GNU ld.  I'd rather use --version,
11353      # but apparently some variants of GNU ld only accept -v.
11354      # Break only if it was the GNU/non-GNU ld that we prefer.
11355      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11356      *GNU* | *'with BFD'*)
11357	test "$with_gnu_ld" != no && break
11358	;;
11359      *)
11360	test "$with_gnu_ld" != yes && break
11361	;;
11362      esac
11363    fi
11364  done
11365  IFS="$lt_save_ifs"
11366else
11367  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11368fi
11369fi
11370
11371LD="$lt_cv_path_LD"
11372if test -n "$LD"; then
11373  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11374$as_echo "$LD" >&6; }
11375else
11376  { $as_echo "$as_me:$LINENO: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11380$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11381   { (exit 1); exit 1; }; }
11382{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11383$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11384if test "${lt_cv_prog_gnu_ld+set}" = set; then
11385  $as_echo_n "(cached) " >&6
11386else
11387  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11388case `$LD -v 2>&1 </dev/null` in
11389*GNU* | *'with BFD'*)
11390  lt_cv_prog_gnu_ld=yes
11391  ;;
11392*)
11393  lt_cv_prog_gnu_ld=no
11394  ;;
11395esac
11396fi
11397{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11398$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11399with_gnu_ld=$lt_cv_prog_gnu_ld
11400
11401
11402
11403  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11404  # archiving commands below assume that GNU ld is being used.
11405  if test "$with_gnu_ld" = yes; then
11406    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11407    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'
11408
11409    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11410    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11411
11412    # If archive_cmds runs LD, not CC, wlarc should be empty
11413    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11414    #     investigate it a little bit more. (MM)
11415    wlarc='${wl}'
11416
11417    # ancient GNU ld didn't support --whole-archive et. al.
11418    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11419	grep 'no-whole-archive' > /dev/null; then
11420      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11421    else
11422      whole_archive_flag_spec_CXX=
11423    fi
11424  else
11425    with_gnu_ld=no
11426    wlarc=
11427
11428    # A generic and very simple default shared library creation
11429    # command for GNU C++ for the case where it uses the native
11430    # linker, instead of GNU ld.  If possible, this setting should
11431    # overridden to take advantage of the native linker features on
11432    # the platform it is being used on.
11433    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11434  fi
11435
11436  # Commands to make compiler produce verbose output that lists
11437  # what "hidden" libraries, object files and flags are used when
11438  # linking a shared library.
11439  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11440
11441else
11442  GXX=no
11443  with_gnu_ld=no
11444  wlarc=
11445fi
11446
11447# PORTME: fill in a description of your system's C++ link characteristics
11448{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11450ld_shlibs_CXX=yes
11451case $host_os in
11452  aix3*)
11453    # FIXME: insert proper C++ library support
11454    ld_shlibs_CXX=no
11455    ;;
11456  aix[4-9]*)
11457    if test "$host_cpu" = ia64; then
11458      # On IA64, the linker does run time linking by default, so we don't
11459      # have to do anything special.
11460      aix_use_runtimelinking=no
11461      exp_sym_flag='-Bexport'
11462      no_entry_flag=""
11463    else
11464      aix_use_runtimelinking=no
11465
11466      # Test if we are trying to use run time linking or normal
11467      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11468      # need to do runtime linking.
11469      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11470	for ld_flag in $LDFLAGS; do
11471	  case $ld_flag in
11472	  *-brtl*)
11473	    aix_use_runtimelinking=yes
11474	    break
11475	    ;;
11476	  esac
11477	done
11478	;;
11479      esac
11480
11481      exp_sym_flag='-bexport'
11482      no_entry_flag='-bnoentry'
11483    fi
11484
11485    # When large executables or shared objects are built, AIX ld can
11486    # have problems creating the table of contents.  If linking a library
11487    # or program results in "error TOC overflow" add -mminimal-toc to
11488    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11489    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11490
11491    archive_cmds_CXX=''
11492    hardcode_direct_CXX=yes
11493    hardcode_libdir_separator_CXX=':'
11494    link_all_deplibs_CXX=yes
11495
11496    if test "$GXX" = yes; then
11497      case $host_os in aix4.[012]|aix4.[012].*)
11498      # We only want to do this on AIX 4.2 and lower, the check
11499      # below for broken collect2 doesn't work under 4.3+
11500	collect2name=`${CC} -print-prog-name=collect2`
11501	if test -f "$collect2name" && \
11502	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11503	then
11504	  # We have reworked collect2
11505	  :
11506	else
11507	  # We have old collect2
11508	  hardcode_direct_CXX=unsupported
11509	  # It fails to find uninstalled libraries when the uninstalled
11510	  # path is not listed in the libpath.  Setting hardcode_minus_L
11511	  # to unsupported forces relinking
11512	  hardcode_minus_L_CXX=yes
11513	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11514	  hardcode_libdir_separator_CXX=
11515	fi
11516	;;
11517      esac
11518      shared_flag='-shared'
11519      if test "$aix_use_runtimelinking" = yes; then
11520	shared_flag="$shared_flag "'${wl}-G'
11521      fi
11522    else
11523      # not using gcc
11524      if test "$host_cpu" = ia64; then
11525	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11526	# chokes on -Wl,-G. The following line is correct:
11527	shared_flag='-G'
11528      else
11529	if test "$aix_use_runtimelinking" = yes; then
11530	  shared_flag='${wl}-G'
11531	else
11532	  shared_flag='${wl}-bM:SRE'
11533	fi
11534      fi
11535    fi
11536
11537    # It seems that -bexpall does not export symbols beginning with
11538    # underscore (_), so it is better to generate a list of symbols to export.
11539    always_export_symbols_CXX=yes
11540    if test "$aix_use_runtimelinking" = yes; then
11541      # Warning - without using the other runtime loading flags (-brtl),
11542      # -berok will link without error, but may produce a broken library.
11543      allow_undefined_flag_CXX='-berok'
11544      # Determine the default libpath from the value encoded in an empty executable.
11545      cat >conftest.$ac_ext <<_ACEOF
11546/* confdefs.h.  */
11547_ACEOF
11548cat confdefs.h >>conftest.$ac_ext
11549cat >>conftest.$ac_ext <<_ACEOF
11550/* end confdefs.h.  */
11551
11552int
11553main ()
11554{
11555
11556  ;
11557  return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
11561if { (ac_try="$ac_link"
11562case "(($ac_try" in
11563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564  *) ac_try_echo=$ac_try;;
11565esac
11566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567$as_echo "$ac_try_echo") >&5
11568  (eval "$ac_link") 2>conftest.er1
11569  ac_status=$?
11570  grep -v '^ *+' conftest.er1 >conftest.err
11571  rm -f conftest.er1
11572  cat conftest.err >&5
11573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } && {
11575	 test -z "$ac_cxx_werror_flag" ||
11576	 test ! -s conftest.err
11577       } && test -s conftest$ac_exeext && {
11578	 test "$cross_compiling" = yes ||
11579	 $as_test_x conftest$ac_exeext
11580       }; then
11581
11582lt_aix_libpath_sed='
11583    /Import File Strings/,/^$/ {
11584	/^0/ {
11585	    s/^0  *\(.*\)$/\1/
11586	    p
11587	}
11588    }'
11589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11590# Check for a 64-bit object if we didn't find anything.
11591if test -z "$aix_libpath"; then
11592  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11593fi
11594else
11595  $as_echo "$as_me: failed program was:" >&5
11596sed 's/^/| /' conftest.$ac_ext >&5
11597
11598
11599fi
11600
11601rm -rf conftest.dSYM
11602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11603      conftest$ac_exeext conftest.$ac_ext
11604if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11605
11606      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11607
11608      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"
11609     else
11610      if test "$host_cpu" = ia64; then
11611	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11612	allow_undefined_flag_CXX="-z nodefs"
11613	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"
11614      else
11615	# Determine the default libpath from the value encoded in an empty executable.
11616	cat >conftest.$ac_ext <<_ACEOF
11617/* confdefs.h.  */
11618_ACEOF
11619cat confdefs.h >>conftest.$ac_ext
11620cat >>conftest.$ac_ext <<_ACEOF
11621/* end confdefs.h.  */
11622
11623int
11624main ()
11625{
11626
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631rm -f conftest.$ac_objext conftest$ac_exeext
11632if { (ac_try="$ac_link"
11633case "(($ac_try" in
11634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635  *) ac_try_echo=$ac_try;;
11636esac
11637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638$as_echo "$ac_try_echo") >&5
11639  (eval "$ac_link") 2>conftest.er1
11640  ac_status=$?
11641  grep -v '^ *+' conftest.er1 >conftest.err
11642  rm -f conftest.er1
11643  cat conftest.err >&5
11644  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645  (exit $ac_status); } && {
11646	 test -z "$ac_cxx_werror_flag" ||
11647	 test ! -s conftest.err
11648       } && test -s conftest$ac_exeext && {
11649	 test "$cross_compiling" = yes ||
11650	 $as_test_x conftest$ac_exeext
11651       }; then
11652
11653lt_aix_libpath_sed='
11654    /Import File Strings/,/^$/ {
11655	/^0/ {
11656	    s/^0  *\(.*\)$/\1/
11657	    p
11658	}
11659    }'
11660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11661# Check for a 64-bit object if we didn't find anything.
11662if test -z "$aix_libpath"; then
11663  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11664fi
11665else
11666  $as_echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669
11670fi
11671
11672rm -rf conftest.dSYM
11673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674      conftest$ac_exeext conftest.$ac_ext
11675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678	# Warning - without using the other run time loading flags,
11679	# -berok will link without error, but may produce a broken library.
11680	no_undefined_flag_CXX=' ${wl}-bernotok'
11681	allow_undefined_flag_CXX=' ${wl}-berok'
11682	# Exported symbols can be pulled into shared objects from archives
11683	whole_archive_flag_spec_CXX='$convenience'
11684	archive_cmds_need_lc_CXX=yes
11685	# This is similar to how AIX traditionally builds its shared libraries.
11686	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'
11687      fi
11688    fi
11689    ;;
11690
11691  beos*)
11692    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11693      allow_undefined_flag_CXX=unsupported
11694      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11695      # support --undefined.  This deserves some investigation.  FIXME
11696      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697    else
11698      ld_shlibs_CXX=no
11699    fi
11700    ;;
11701
11702  chorus*)
11703    case $cc_basename in
11704      *)
11705	# FIXME: insert proper C++ library support
11706	ld_shlibs_CXX=no
11707	;;
11708    esac
11709    ;;
11710
11711  cygwin* | mingw* | pw32*)
11712    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11713    # as there is no search path for DLLs.
11714    hardcode_libdir_flag_spec_CXX='-L$libdir'
11715    allow_undefined_flag_CXX=unsupported
11716    always_export_symbols_CXX=no
11717    enable_shared_with_static_runtimes_CXX=yes
11718
11719    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11720      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'
11721      # If the export-symbols file already is a .def file (1st line
11722      # is EXPORTS), use it as is; otherwise, prepend...
11723      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11724	cp $export_symbols $output_objdir/$soname.def;
11725      else
11726	echo EXPORTS > $output_objdir/$soname.def;
11727	cat $export_symbols >> $output_objdir/$soname.def;
11728      fi~
11729      $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'
11730    else
11731      ld_shlibs_CXX=no
11732    fi
11733  ;;
11734      darwin* | rhapsody*)
11735      archive_cmds_need_lc_CXX=no
11736      hardcode_direct_CXX=no
11737      hardcode_automatic_CXX=yes
11738      hardcode_shlibpath_var_CXX=unsupported
11739      whole_archive_flag_spec_CXX=''
11740      link_all_deplibs_CXX=yes
11741      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11742      if test "$GXX" = yes ; then
11743      output_verbose_link_cmd='echo'
11744      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}"
11745      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11746      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}"
11747      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}"
11748      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11749        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}"
11750        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}"
11751      fi
11752      else
11753      case $cc_basename in
11754        xlc*)
11755         output_verbose_link_cmd='echo'
11756          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'
11757          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11758          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11759          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}'
11760          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}'
11761          ;;
11762       *)
11763         ld_shlibs_CXX=no
11764          ;;
11765      esac
11766      fi
11767        ;;
11768
11769  dgux*)
11770    case $cc_basename in
11771      ec++*)
11772	# FIXME: insert proper C++ library support
11773	ld_shlibs_CXX=no
11774	;;
11775      ghcx*)
11776	# Green Hills C++ Compiler
11777	# FIXME: insert proper C++ library support
11778	ld_shlibs_CXX=no
11779	;;
11780      *)
11781	# FIXME: insert proper C++ library support
11782	ld_shlibs_CXX=no
11783	;;
11784    esac
11785    ;;
11786  freebsd[12]*)
11787    # C++ shared libraries reported to be fairly broken before switch to ELF
11788    ld_shlibs_CXX=no
11789    ;;
11790  freebsd-elf*)
11791    archive_cmds_need_lc_CXX=no
11792    ;;
11793  freebsd* | dragonfly*)
11794    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11795    # conventions
11796    ld_shlibs_CXX=yes
11797    ;;
11798  gnu*)
11799    ;;
11800  hpux9*)
11801    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11802    hardcode_libdir_separator_CXX=:
11803    export_dynamic_flag_spec_CXX='${wl}-E'
11804    hardcode_direct_CXX=yes
11805    hardcode_minus_L_CXX=yes # Not in the search PATH,
11806				# but as the default
11807				# location of the library.
11808
11809    case $cc_basename in
11810    CC*)
11811      # FIXME: insert proper C++ library support
11812      ld_shlibs_CXX=no
11813      ;;
11814    aCC*)
11815      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'
11816      # Commands to make compiler produce verbose output that lists
11817      # what "hidden" libraries, object files and flags are used when
11818      # linking a shared library.
11819      #
11820      # There doesn't appear to be a way to prevent this compiler from
11821      # explicitly linking system object files so we need to strip them
11822      # from the output so that they don't get included in the library
11823      # dependencies.
11824      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'
11825      ;;
11826    *)
11827      if test "$GXX" = yes; then
11828        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'
11829      else
11830        # FIXME: insert proper C++ library support
11831        ld_shlibs_CXX=no
11832      fi
11833      ;;
11834    esac
11835    ;;
11836  hpux10*|hpux11*)
11837    if test $with_gnu_ld = no; then
11838      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11839      hardcode_libdir_separator_CXX=:
11840
11841      case $host_cpu in
11842      hppa*64*|ia64*) ;;
11843      *)
11844	export_dynamic_flag_spec_CXX='${wl}-E'
11845        ;;
11846      esac
11847    fi
11848    case $host_cpu in
11849    hppa*64*|ia64*)
11850      hardcode_direct_CXX=no
11851      hardcode_shlibpath_var_CXX=no
11852      ;;
11853    *)
11854      hardcode_direct_CXX=yes
11855      hardcode_minus_L_CXX=yes # Not in the search PATH,
11856					      # but as the default
11857					      # location of the library.
11858      ;;
11859    esac
11860
11861    case $cc_basename in
11862      CC*)
11863	# FIXME: insert proper C++ library support
11864	ld_shlibs_CXX=no
11865	;;
11866      aCC*)
11867	case $host_cpu in
11868	hppa*64*)
11869	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870	  ;;
11871	ia64*)
11872	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873	  ;;
11874	*)
11875	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876	  ;;
11877	esac
11878	# Commands to make compiler produce verbose output that lists
11879	# what "hidden" libraries, object files and flags are used when
11880	# linking a shared library.
11881	#
11882	# There doesn't appear to be a way to prevent this compiler from
11883	# explicitly linking system object files so we need to strip them
11884	# from the output so that they don't get included in the library
11885	# dependencies.
11886	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'
11887	;;
11888      *)
11889	if test "$GXX" = yes; then
11890	  if test $with_gnu_ld = no; then
11891	    case $host_cpu in
11892	    hppa*64*)
11893	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894	      ;;
11895	    ia64*)
11896	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	      ;;
11898	    *)
11899	      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'
11900	      ;;
11901	    esac
11902	  fi
11903	else
11904	  # FIXME: insert proper C++ library support
11905	  ld_shlibs_CXX=no
11906	fi
11907	;;
11908    esac
11909    ;;
11910  interix[3-9]*)
11911    hardcode_direct_CXX=no
11912    hardcode_shlibpath_var_CXX=no
11913    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11914    export_dynamic_flag_spec_CXX='${wl}-E'
11915    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11916    # Instead, shared libraries are loaded at an image base (0x10000000 by
11917    # default) and relocated if they conflict, which is a slow very memory
11918    # consuming and fragmenting process.  To avoid this, we pick a random,
11919    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11920    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11921    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'
11922    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'
11923    ;;
11924  irix5* | irix6*)
11925    case $cc_basename in
11926      CC*)
11927	# SGI C++
11928	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'
11929
11930	# Archives containing C++ object files must be created using
11931	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11932	# necessary to make sure instantiated templates are included
11933	# in the archive.
11934	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11935	;;
11936      *)
11937	if test "$GXX" = yes; then
11938	  if test "$with_gnu_ld" = no; then
11939	    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'
11940	  else
11941	    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'
11942	  fi
11943	fi
11944	link_all_deplibs_CXX=yes
11945	;;
11946    esac
11947    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948    hardcode_libdir_separator_CXX=:
11949    ;;
11950  linux* | k*bsd*-gnu)
11951    case $cc_basename in
11952      KCC*)
11953	# Kuck and Associates, Inc. (KAI) C++ Compiler
11954
11955	# KCC will only create a shared library if the output file
11956	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11957	# to its proper name (with version) after linking.
11958	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'
11959	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'
11960	# Commands to make compiler produce verbose output that lists
11961	# what "hidden" libraries, object files and flags are used when
11962	# linking a shared library.
11963	#
11964	# There doesn't appear to be a way to prevent this compiler from
11965	# explicitly linking system object files so we need to strip them
11966	# from the output so that they don't get included in the library
11967	# dependencies.
11968	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'
11969
11970	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11971	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11972
11973	# Archives containing C++ object files must be created using
11974	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11975	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11976	;;
11977      icpc*)
11978	# Intel C++
11979	with_gnu_ld=yes
11980	# version 8.0 and above of icpc choke on multiply defined symbols
11981	# if we add $predep_objects and $postdep_objects, however 7.1 and
11982	# earlier do not add the objects themselves.
11983	case `$CC -V 2>&1` in
11984	*"Version 7."*)
11985  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11986  	  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'
11987	  ;;
11988	*)  # Version 8.0 or newer
11989	  tmp_idyn=
11990	  case $host_cpu in
11991	    ia64*) tmp_idyn=' -i_dynamic';;
11992	  esac
11993  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11994	  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'
11995	  ;;
11996	esac
11997	archive_cmds_need_lc_CXX=no
11998	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12000	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12001	;;
12002      pgCC* | pgcpp*)
12003        # Portland Group C++ compiler
12004	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12005  	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'
12006
12007	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12008	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12009	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'
12010        ;;
12011      cxx*)
12012	# Compaq C++
12013	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12014	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'
12015
12016	runpath_var=LD_RUN_PATH
12017	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12018	hardcode_libdir_separator_CXX=:
12019
12020	# Commands to make compiler produce verbose output that lists
12021	# what "hidden" libraries, object files and flags are used when
12022	# linking a shared library.
12023	#
12024	# There doesn't appear to be a way to prevent this compiler from
12025	# explicitly linking system object files so we need to strip them
12026	# from the output so that they don't get included in the library
12027	# dependencies.
12028	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12029	;;
12030      *)
12031	case `$CC -V 2>&1 | sed 5q` in
12032	*Sun\ C*)
12033	  # Sun C++ 5.9
12034	  no_undefined_flag_CXX=' -zdefs'
12035	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12036	  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'
12037	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12038	  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'
12039
12040	  # Not sure whether something based on
12041	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12042	  # would be better.
12043	  output_verbose_link_cmd='echo'
12044
12045	  # Archives containing C++ object files must be created using
12046	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12047	  # necessary to make sure instantiated templates are included
12048	  # in the archive.
12049	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12050	  ;;
12051	esac
12052	;;
12053    esac
12054    ;;
12055  lynxos*)
12056    # FIXME: insert proper C++ library support
12057    ld_shlibs_CXX=no
12058    ;;
12059  m88k*)
12060    # FIXME: insert proper C++ library support
12061    ld_shlibs_CXX=no
12062    ;;
12063  mvs*)
12064    case $cc_basename in
12065      cxx*)
12066	# FIXME: insert proper C++ library support
12067	ld_shlibs_CXX=no
12068	;;
12069      *)
12070	# FIXME: insert proper C++ library support
12071	ld_shlibs_CXX=no
12072	;;
12073    esac
12074    ;;
12075  netbsd*)
12076    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12077      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12078      wlarc=
12079      hardcode_libdir_flag_spec_CXX='-R$libdir'
12080      hardcode_direct_CXX=yes
12081      hardcode_shlibpath_var_CXX=no
12082    fi
12083    # Workaround some broken pre-1.5 toolchains
12084    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12085    ;;
12086  openbsd2*)
12087    # C++ shared libraries are fairly broken
12088    ld_shlibs_CXX=no
12089    ;;
12090  openbsd*)
12091    if test -f /usr/libexec/ld.so; then
12092      hardcode_direct_CXX=yes
12093      hardcode_shlibpath_var_CXX=no
12094      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12095      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12096      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12097	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12098	export_dynamic_flag_spec_CXX='${wl}-E'
12099	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12100      fi
12101      output_verbose_link_cmd='echo'
12102    else
12103      ld_shlibs_CXX=no
12104    fi
12105    ;;
12106  osf3*)
12107    case $cc_basename in
12108      KCC*)
12109	# Kuck and Associates, Inc. (KAI) C++ Compiler
12110
12111	# KCC will only create a shared library if the output file
12112	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12113	# to its proper name (with version) after linking.
12114	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'
12115
12116	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12117	hardcode_libdir_separator_CXX=:
12118
12119	# Archives containing C++ object files must be created using
12120	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12121	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12122
12123	;;
12124      RCC*)
12125	# Rational C++ 2.4.1
12126	# FIXME: insert proper C++ library support
12127	ld_shlibs_CXX=no
12128	;;
12129      cxx*)
12130	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12131	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'
12132
12133	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12134	hardcode_libdir_separator_CXX=:
12135
12136	# Commands to make compiler produce verbose output that lists
12137	# what "hidden" libraries, object files and flags are used when
12138	# linking a shared library.
12139	#
12140	# There doesn't appear to be a way to prevent this compiler from
12141	# explicitly linking system object files so we need to strip them
12142	# from the output so that they don't get included in the library
12143	# dependencies.
12144	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'
12145	;;
12146      *)
12147	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12148	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12149	  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'
12150
12151	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12152	  hardcode_libdir_separator_CXX=:
12153
12154	  # Commands to make compiler produce verbose output that lists
12155	  # what "hidden" libraries, object files and flags are used when
12156	  # linking a shared library.
12157	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12158
12159	else
12160	  # FIXME: insert proper C++ library support
12161	  ld_shlibs_CXX=no
12162	fi
12163	;;
12164    esac
12165    ;;
12166  osf4* | osf5*)
12167    case $cc_basename in
12168      KCC*)
12169	# Kuck and Associates, Inc. (KAI) C++ Compiler
12170
12171	# KCC will only create a shared library if the output file
12172	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12173	# to its proper name (with version) after linking.
12174	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'
12175
12176	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177	hardcode_libdir_separator_CXX=:
12178
12179	# Archives containing C++ object files must be created using
12180	# the KAI C++ compiler.
12181	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12182	;;
12183      RCC*)
12184	# Rational C++ 2.4.1
12185	# FIXME: insert proper C++ library support
12186	ld_shlibs_CXX=no
12187	;;
12188      cxx*)
12189	allow_undefined_flag_CXX=' -expect_unresolved \*'
12190	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'
12191	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12192	  echo "-hidden">> $lib.exp~
12193	  $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~
12194	  $rm $lib.exp'
12195
12196	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12197	hardcode_libdir_separator_CXX=:
12198
12199	# Commands to make compiler produce verbose output that lists
12200	# what "hidden" libraries, object files and flags are used when
12201	# linking a shared library.
12202	#
12203	# There doesn't appear to be a way to prevent this compiler from
12204	# explicitly linking system object files so we need to strip them
12205	# from the output so that they don't get included in the library
12206	# dependencies.
12207	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
12208	;;
12209      *)
12210	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12211	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12212	 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'
12213
12214	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12215	  hardcode_libdir_separator_CXX=:
12216
12217	  # Commands to make compiler produce verbose output that lists
12218	  # what "hidden" libraries, object files and flags are used when
12219	  # linking a shared library.
12220	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12221
12222	else
12223	  # FIXME: insert proper C++ library support
12224	  ld_shlibs_CXX=no
12225	fi
12226	;;
12227    esac
12228    ;;
12229  psos*)
12230    # FIXME: insert proper C++ library support
12231    ld_shlibs_CXX=no
12232    ;;
12233  sunos4*)
12234    case $cc_basename in
12235      CC*)
12236	# Sun C++ 4.x
12237	# FIXME: insert proper C++ library support
12238	ld_shlibs_CXX=no
12239	;;
12240      lcc*)
12241	# Lucid
12242	# FIXME: insert proper C++ library support
12243	ld_shlibs_CXX=no
12244	;;
12245      *)
12246	# FIXME: insert proper C++ library support
12247	ld_shlibs_CXX=no
12248	;;
12249    esac
12250    ;;
12251  solaris*)
12252    case $cc_basename in
12253      CC*)
12254	# Sun C++ 4.2, 5.x and Centerline C++
12255        archive_cmds_need_lc_CXX=yes
12256	no_undefined_flag_CXX=' -zdefs'
12257	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12258	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12259	$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'
12260
12261	hardcode_libdir_flag_spec_CXX='-R$libdir'
12262	hardcode_shlibpath_var_CXX=no
12263	case $host_os in
12264	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12265	  *)
12266	    # The compiler driver will combine and reorder linker options,
12267	    # but understands `-z linker_flag'.
12268	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12269	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12270	    ;;
12271	esac
12272	link_all_deplibs_CXX=yes
12273
12274	output_verbose_link_cmd='echo'
12275
12276	# Archives containing C++ object files must be created using
12277	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12278	# necessary to make sure instantiated templates are included
12279	# in the archive.
12280	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12281	;;
12282      gcx*)
12283	# Green Hills C++ Compiler
12284	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12285
12286	# The C++ compiler must be used to create the archive.
12287	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12288	;;
12289      *)
12290	# GNU C++ compiler with Solaris linker
12291	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12292	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12293	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12294	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12295	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12296		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12297
12298	    # Commands to make compiler produce verbose output that lists
12299	    # what "hidden" libraries, object files and flags are used when
12300	    # linking a shared library.
12301	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12302	  else
12303	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12304	    # platform.
12305	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12306	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12307		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12308
12309	    # Commands to make compiler produce verbose output that lists
12310	    # what "hidden" libraries, object files and flags are used when
12311	    # linking a shared library.
12312	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12313	  fi
12314
12315	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12316	  case $host_os in
12317	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12318	  *)
12319	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12320	    ;;
12321	  esac
12322	fi
12323	;;
12324    esac
12325    ;;
12326  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12327    no_undefined_flag_CXX='${wl}-z,text'
12328    archive_cmds_need_lc_CXX=no
12329    hardcode_shlibpath_var_CXX=no
12330    runpath_var='LD_RUN_PATH'
12331
12332    case $cc_basename in
12333      CC*)
12334	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336	;;
12337      *)
12338	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12340	;;
12341    esac
12342    ;;
12343  sysv5* | sco3.2v5* | sco5v6*)
12344    # Note: We can NOT use -z defs as we might desire, because we do not
12345    # link with -lc, and that would cause any symbols used from libc to
12346    # always be unresolved, which means just about no library would
12347    # ever link correctly.  If we're not using GNU ld we use -z text
12348    # though, which does catch some bad symbols but isn't as heavy-handed
12349    # as -z defs.
12350    # For security reasons, it is highly recommended that you always
12351    # use absolute paths for naming shared libraries, and exclude the
12352    # DT_RUNPATH tag from executables and libraries.  But doing so
12353    # requires that you compile everything twice, which is a pain.
12354    # So that behaviour is only enabled if SCOABSPATH is set to a
12355    # non-empty value in the environment.  Most likely only useful for
12356    # creating official distributions of packages.
12357    # This is a hack until libtool officially supports absolute path
12358    # names for shared libraries.
12359    no_undefined_flag_CXX='${wl}-z,text'
12360    allow_undefined_flag_CXX='${wl}-z,nodefs'
12361    archive_cmds_need_lc_CXX=no
12362    hardcode_shlibpath_var_CXX=no
12363    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12364    hardcode_libdir_separator_CXX=':'
12365    link_all_deplibs_CXX=yes
12366    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12367    runpath_var='LD_RUN_PATH'
12368
12369    case $cc_basename in
12370      CC*)
12371	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12372	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12373	;;
12374      *)
12375	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12377	;;
12378    esac
12379    ;;
12380  tandem*)
12381    case $cc_basename in
12382      NCC*)
12383	# NonStop-UX NCC 3.20
12384	# FIXME: insert proper C++ library support
12385	ld_shlibs_CXX=no
12386	;;
12387      *)
12388	# FIXME: insert proper C++ library support
12389	ld_shlibs_CXX=no
12390	;;
12391    esac
12392    ;;
12393  vxworks*)
12394    # FIXME: insert proper C++ library support
12395    ld_shlibs_CXX=no
12396    ;;
12397  *)
12398    # FIXME: insert proper C++ library support
12399    ld_shlibs_CXX=no
12400    ;;
12401esac
12402{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12403$as_echo "$ld_shlibs_CXX" >&6; }
12404test "$ld_shlibs_CXX" = no && can_build_shared=no
12405
12406GCC_CXX="$GXX"
12407LD_CXX="$LD"
12408
12409cat > conftest.$ac_ext <<EOF
12410class Foo
12411{
12412public:
12413  Foo (void) { a = 0; }
12414private:
12415  int a;
12416};
12417EOF
12418
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420  (eval $ac_compile) 2>&5
12421  ac_status=$?
12422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423  (exit $ac_status); }; then
12424  # Parse the compiler output and extract the necessary
12425  # objects, libraries and library flags.
12426
12427  # Sentinel used to keep track of whether or not we are before
12428  # the conftest object file.
12429  pre_test_object_deps_done=no
12430
12431  # The `*' in the case matches for architectures that use `case' in
12432  # $output_verbose_cmd can trigger glob expansion during the loop
12433  # eval without this substitution.
12434  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12435
12436  for p in `eval $output_verbose_link_cmd`; do
12437    case $p in
12438
12439    -L* | -R* | -l*)
12440       # Some compilers place space between "-{L,R}" and the path.
12441       # Remove the space.
12442       if test $p = "-L" \
12443	  || test $p = "-R"; then
12444	 prev=$p
12445	 continue
12446       else
12447	 prev=
12448       fi
12449
12450       if test "$pre_test_object_deps_done" = no; then
12451	 case $p in
12452	 -L* | -R*)
12453	   # Internal compiler library paths should come after those
12454	   # provided the user.  The postdeps already come after the
12455	   # user supplied libs so there is no need to process them.
12456	   if test -z "$compiler_lib_search_path_CXX"; then
12457	     compiler_lib_search_path_CXX="${prev}${p}"
12458	   else
12459	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12460	   fi
12461	   ;;
12462	 # The "-l" case would never come before the object being
12463	 # linked, so don't bother handling this case.
12464	 esac
12465       else
12466	 if test -z "$postdeps_CXX"; then
12467	   postdeps_CXX="${prev}${p}"
12468	 else
12469	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12470	 fi
12471       fi
12472       ;;
12473
12474    *.$objext)
12475       # This assumes that the test object file only shows up
12476       # once in the compiler output.
12477       if test "$p" = "conftest.$objext"; then
12478	 pre_test_object_deps_done=yes
12479	 continue
12480       fi
12481
12482       if test "$pre_test_object_deps_done" = no; then
12483	 if test -z "$predep_objects_CXX"; then
12484	   predep_objects_CXX="$p"
12485	 else
12486	   predep_objects_CXX="$predep_objects_CXX $p"
12487	 fi
12488       else
12489	 if test -z "$postdep_objects_CXX"; then
12490	   postdep_objects_CXX="$p"
12491	 else
12492	   postdep_objects_CXX="$postdep_objects_CXX $p"
12493	 fi
12494       fi
12495       ;;
12496
12497    *) ;; # Ignore the rest.
12498
12499    esac
12500  done
12501
12502  # Clean up.
12503  rm -f a.out a.exe
12504else
12505  echo "libtool.m4: error: problem compiling CXX test program"
12506fi
12507
12508$rm -f confest.$objext
12509
12510compiler_lib_search_dirs_CXX=
12511if test -n "$compiler_lib_search_path_CXX"; then
12512  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12513fi
12514
12515# PORTME: override above test on systems where it is broken
12516case $host_os in
12517interix[3-9]*)
12518  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12519  # hack all around it, let's just trust "g++" to DTRT.
12520  predep_objects_CXX=
12521  postdep_objects_CXX=
12522  postdeps_CXX=
12523  ;;
12524
12525linux*)
12526  case `$CC -V 2>&1 | sed 5q` in
12527  *Sun\ C*)
12528    # Sun C++ 5.9
12529    #
12530    # The more standards-conforming stlport4 library is
12531    # incompatible with the Cstd library. Avoid specifying
12532    # it if it's in CXXFLAGS. Ignore libCrun as
12533    # -library=stlport4 depends on it.
12534    case " $CXX $CXXFLAGS " in
12535    *" -library=stlport4 "*)
12536      solaris_use_stlport4=yes
12537      ;;
12538    esac
12539    if test "$solaris_use_stlport4" != yes; then
12540      postdeps_CXX='-library=Cstd -library=Crun'
12541    fi
12542    ;;
12543  esac
12544  ;;
12545
12546solaris*)
12547  case $cc_basename in
12548  CC*)
12549    # The more standards-conforming stlport4 library is
12550    # incompatible with the Cstd library. Avoid specifying
12551    # it if it's in CXXFLAGS. Ignore libCrun as
12552    # -library=stlport4 depends on it.
12553    case " $CXX $CXXFLAGS " in
12554    *" -library=stlport4 "*)
12555      solaris_use_stlport4=yes
12556      ;;
12557    esac
12558
12559    # Adding this requires a known-good setup of shared libraries for
12560    # Sun compiler versions before 5.6, else PIC objects from an old
12561    # archive will be linked into the output, leading to subtle bugs.
12562    if test "$solaris_use_stlport4" != yes; then
12563      postdeps_CXX='-library=Cstd -library=Crun'
12564    fi
12565    ;;
12566  esac
12567  ;;
12568esac
12569
12570case " $postdeps_CXX " in
12571*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12572esac
12573
12574lt_prog_compiler_wl_CXX=
12575lt_prog_compiler_pic_CXX=
12576lt_prog_compiler_static_CXX=
12577
12578{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12579$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12580
12581  # C++ specific cases for pic, static, wl, etc.
12582  if test "$GXX" = yes; then
12583    lt_prog_compiler_wl_CXX='-Wl,'
12584    lt_prog_compiler_static_CXX='-static'
12585
12586    case $host_os in
12587    aix*)
12588      # All AIX code is PIC.
12589      if test "$host_cpu" = ia64; then
12590	# AIX 5 now supports IA64 processor
12591	lt_prog_compiler_static_CXX='-Bstatic'
12592      fi
12593      ;;
12594    amigaos*)
12595      # FIXME: we need at least 68020 code to build shared libraries, but
12596      # adding the `-m68020' flag to GCC prevents building anything better,
12597      # like `-m68040'.
12598      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12599      ;;
12600    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12601      # PIC is the default for these OSes.
12602      ;;
12603    mingw* | cygwin* | os2* | pw32*)
12604      # This hack is so that the source file can tell whether it is being
12605      # built for inclusion in a dll (and should export symbols for example).
12606      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12607      # (--disable-auto-import) libraries
12608      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12609      ;;
12610    darwin* | rhapsody*)
12611      # PIC is the default on this platform
12612      # Common symbols not allowed in MH_DYLIB files
12613      lt_prog_compiler_pic_CXX='-fno-common'
12614      ;;
12615    *djgpp*)
12616      # DJGPP does not support shared libraries at all
12617      lt_prog_compiler_pic_CXX=
12618      ;;
12619    interix[3-9]*)
12620      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12621      # Instead, we relocate shared libraries at runtime.
12622      ;;
12623    sysv4*MP*)
12624      if test -d /usr/nec; then
12625	lt_prog_compiler_pic_CXX=-Kconform_pic
12626      fi
12627      ;;
12628    hpux*)
12629      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12630      # not for PA HP-UX.
12631      case $host_cpu in
12632      hppa*64*|ia64*)
12633	;;
12634      *)
12635	lt_prog_compiler_pic_CXX='-fPIC'
12636	;;
12637      esac
12638      ;;
12639    *)
12640      lt_prog_compiler_pic_CXX='-fPIC'
12641      ;;
12642    esac
12643  else
12644    case $host_os in
12645      aix[4-9]*)
12646	# All AIX code is PIC.
12647	if test "$host_cpu" = ia64; then
12648	  # AIX 5 now supports IA64 processor
12649	  lt_prog_compiler_static_CXX='-Bstatic'
12650	else
12651	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12652	fi
12653	;;
12654      chorus*)
12655	case $cc_basename in
12656	cxch68*)
12657	  # Green Hills C++ Compiler
12658	  # _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"
12659	  ;;
12660	esac
12661	;;
12662       darwin*)
12663         # PIC is the default on this platform
12664         # Common symbols not allowed in MH_DYLIB files
12665         case $cc_basename in
12666           xlc*)
12667           lt_prog_compiler_pic_CXX='-qnocommon'
12668           lt_prog_compiler_wl_CXX='-Wl,'
12669           ;;
12670         esac
12671       ;;
12672      dgux*)
12673	case $cc_basename in
12674	  ec++*)
12675	    lt_prog_compiler_pic_CXX='-KPIC'
12676	    ;;
12677	  ghcx*)
12678	    # Green Hills C++ Compiler
12679	    lt_prog_compiler_pic_CXX='-pic'
12680	    ;;
12681	  *)
12682	    ;;
12683	esac
12684	;;
12685      freebsd* | dragonfly*)
12686	# FreeBSD uses GNU C++
12687	;;
12688      hpux9* | hpux10* | hpux11*)
12689	case $cc_basename in
12690	  CC*)
12691	    lt_prog_compiler_wl_CXX='-Wl,'
12692	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12693	    if test "$host_cpu" != ia64; then
12694	      lt_prog_compiler_pic_CXX='+Z'
12695	    fi
12696	    ;;
12697	  aCC*)
12698	    lt_prog_compiler_wl_CXX='-Wl,'
12699	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12700	    case $host_cpu in
12701	    hppa*64*|ia64*)
12702	      # +Z the default
12703	      ;;
12704	    *)
12705	      lt_prog_compiler_pic_CXX='+Z'
12706	      ;;
12707	    esac
12708	    ;;
12709	  *)
12710	    ;;
12711	esac
12712	;;
12713      interix*)
12714	# This is c89, which is MS Visual C++ (no shared libs)
12715	# Anyone wants to do a port?
12716	;;
12717      irix5* | irix6* | nonstopux*)
12718	case $cc_basename in
12719	  CC*)
12720	    lt_prog_compiler_wl_CXX='-Wl,'
12721	    lt_prog_compiler_static_CXX='-non_shared'
12722	    # CC pic flag -KPIC is the default.
12723	    ;;
12724	  *)
12725	    ;;
12726	esac
12727	;;
12728      linux* | k*bsd*-gnu)
12729	case $cc_basename in
12730	  KCC*)
12731	    # KAI C++ Compiler
12732	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12733	    lt_prog_compiler_pic_CXX='-fPIC'
12734	    ;;
12735	  icpc* | ecpc*)
12736	    # Intel C++
12737	    lt_prog_compiler_wl_CXX='-Wl,'
12738	    lt_prog_compiler_pic_CXX='-KPIC'
12739	    lt_prog_compiler_static_CXX='-static'
12740	    ;;
12741	  pgCC* | pgcpp*)
12742	    # Portland Group C++ compiler.
12743	    lt_prog_compiler_wl_CXX='-Wl,'
12744	    lt_prog_compiler_pic_CXX='-fpic'
12745	    lt_prog_compiler_static_CXX='-Bstatic'
12746	    ;;
12747	  cxx*)
12748	    # Compaq C++
12749	    # Make sure the PIC flag is empty.  It appears that all Alpha
12750	    # Linux and Compaq Tru64 Unix objects are PIC.
12751	    lt_prog_compiler_pic_CXX=
12752	    lt_prog_compiler_static_CXX='-non_shared'
12753	    ;;
12754	  *)
12755	    case `$CC -V 2>&1 | sed 5q` in
12756	    *Sun\ C*)
12757	      # Sun C++ 5.9
12758	      lt_prog_compiler_pic_CXX='-KPIC'
12759	      lt_prog_compiler_static_CXX='-Bstatic'
12760	      lt_prog_compiler_wl_CXX='-Qoption ld '
12761	      ;;
12762	    esac
12763	    ;;
12764	esac
12765	;;
12766      lynxos*)
12767	;;
12768      m88k*)
12769	;;
12770      mvs*)
12771	case $cc_basename in
12772	  cxx*)
12773	    lt_prog_compiler_pic_CXX='-W c,exportall'
12774	    ;;
12775	  *)
12776	    ;;
12777	esac
12778	;;
12779      netbsd*)
12780	;;
12781      osf3* | osf4* | osf5*)
12782	case $cc_basename in
12783	  KCC*)
12784	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12785	    ;;
12786	  RCC*)
12787	    # Rational C++ 2.4.1
12788	    lt_prog_compiler_pic_CXX='-pic'
12789	    ;;
12790	  cxx*)
12791	    # Digital/Compaq C++
12792	    lt_prog_compiler_wl_CXX='-Wl,'
12793	    # Make sure the PIC flag is empty.  It appears that all Alpha
12794	    # Linux and Compaq Tru64 Unix objects are PIC.
12795	    lt_prog_compiler_pic_CXX=
12796	    lt_prog_compiler_static_CXX='-non_shared'
12797	    ;;
12798	  *)
12799	    ;;
12800	esac
12801	;;
12802      psos*)
12803	;;
12804      solaris*)
12805	case $cc_basename in
12806	  CC*)
12807	    # Sun C++ 4.2, 5.x and Centerline C++
12808	    lt_prog_compiler_pic_CXX='-KPIC'
12809	    lt_prog_compiler_static_CXX='-Bstatic'
12810	    lt_prog_compiler_wl_CXX='-Qoption ld '
12811	    ;;
12812	  gcx*)
12813	    # Green Hills C++ Compiler
12814	    lt_prog_compiler_pic_CXX='-PIC'
12815	    ;;
12816	  *)
12817	    ;;
12818	esac
12819	;;
12820      sunos4*)
12821	case $cc_basename in
12822	  CC*)
12823	    # Sun C++ 4.x
12824	    lt_prog_compiler_pic_CXX='-pic'
12825	    lt_prog_compiler_static_CXX='-Bstatic'
12826	    ;;
12827	  lcc*)
12828	    # Lucid
12829	    lt_prog_compiler_pic_CXX='-pic'
12830	    ;;
12831	  *)
12832	    ;;
12833	esac
12834	;;
12835      tandem*)
12836	case $cc_basename in
12837	  NCC*)
12838	    # NonStop-UX NCC 3.20
12839	    lt_prog_compiler_pic_CXX='-KPIC'
12840	    ;;
12841	  *)
12842	    ;;
12843	esac
12844	;;
12845      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12846	case $cc_basename in
12847	  CC*)
12848	    lt_prog_compiler_wl_CXX='-Wl,'
12849	    lt_prog_compiler_pic_CXX='-KPIC'
12850	    lt_prog_compiler_static_CXX='-Bstatic'
12851	    ;;
12852	esac
12853	;;
12854      vxworks*)
12855	;;
12856      *)
12857	lt_prog_compiler_can_build_shared_CXX=no
12858	;;
12859    esac
12860  fi
12861
12862{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12863$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12864
12865#
12866# Check to make sure the PIC flag actually works.
12867#
12868if test -n "$lt_prog_compiler_pic_CXX"; then
12869
12870{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12872if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12873  $as_echo_n "(cached) " >&6
12874else
12875  lt_cv_prog_compiler_pic_works_CXX=no
12876  ac_outfile=conftest.$ac_objext
12877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12878   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12879   # Insert the option either (1) after the last *FLAGS variable, or
12880   # (2) before a word containing "conftest.", or (3) at the end.
12881   # Note that $ac_compile itself does not contain backslashes and begins
12882   # with a dollar sign (not a hyphen), so the echo should work correctly.
12883   # The option is referenced via a variable to avoid confusing sed.
12884   lt_compile=`echo "$ac_compile" | $SED \
12885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12887   -e 's:$: $lt_compiler_flag:'`
12888   (eval echo "\"\$as_me:12888: $lt_compile\"" >&5)
12889   (eval "$lt_compile" 2>conftest.err)
12890   ac_status=$?
12891   cat conftest.err >&5
12892   echo "$as_me:12892: \$? = $ac_status" >&5
12893   if (exit $ac_status) && test -s "$ac_outfile"; then
12894     # The compiler can only warn and ignore the option if not recognized
12895     # So say no if there are warnings other than the usual output.
12896     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12899       lt_cv_prog_compiler_pic_works_CXX=yes
12900     fi
12901   fi
12902   $rm conftest*
12903
12904fi
12905{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12906$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12907
12908if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12909    case $lt_prog_compiler_pic_CXX in
12910     "" | " "*) ;;
12911     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12912     esac
12913else
12914    lt_prog_compiler_pic_CXX=
12915     lt_prog_compiler_can_build_shared_CXX=no
12916fi
12917
12918fi
12919case $host_os in
12920  # For platforms which do not support PIC, -DPIC is meaningless:
12921  *djgpp*)
12922    lt_prog_compiler_pic_CXX=
12923    ;;
12924  *)
12925    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12926    ;;
12927esac
12928
12929#
12930# Check to make sure the static flag actually works.
12931#
12932wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12933{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12934$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12935if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12936  $as_echo_n "(cached) " >&6
12937else
12938  lt_cv_prog_compiler_static_works_CXX=no
12939   save_LDFLAGS="$LDFLAGS"
12940   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12941   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12942   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12943     # The linker can only warn and ignore the option if not recognized
12944     # So say no if there are warnings
12945     if test -s conftest.err; then
12946       # Append any errors to the config.log.
12947       cat conftest.err 1>&5
12948       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12949       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12950       if diff conftest.exp conftest.er2 >/dev/null; then
12951         lt_cv_prog_compiler_static_works_CXX=yes
12952       fi
12953     else
12954       lt_cv_prog_compiler_static_works_CXX=yes
12955     fi
12956   fi
12957   $rm -r conftest*
12958   LDFLAGS="$save_LDFLAGS"
12959
12960fi
12961{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12962$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12963
12964if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12965    :
12966else
12967    lt_prog_compiler_static_CXX=
12968fi
12969
12970
12971{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12972$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12973if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12974  $as_echo_n "(cached) " >&6
12975else
12976  lt_cv_prog_compiler_c_o_CXX=no
12977   $rm -r conftest 2>/dev/null
12978   mkdir conftest
12979   cd conftest
12980   mkdir out
12981   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12982
12983   lt_compiler_flag="-o out/conftest2.$ac_objext"
12984   # Insert the option either (1) after the last *FLAGS variable, or
12985   # (2) before a word containing "conftest.", or (3) at the end.
12986   # Note that $ac_compile itself does not contain backslashes and begins
12987   # with a dollar sign (not a hyphen), so the echo should work correctly.
12988   lt_compile=`echo "$ac_compile" | $SED \
12989   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12990   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12991   -e 's:$: $lt_compiler_flag:'`
12992   (eval echo "\"\$as_me:12992: $lt_compile\"" >&5)
12993   (eval "$lt_compile" 2>out/conftest.err)
12994   ac_status=$?
12995   cat out/conftest.err >&5
12996   echo "$as_me:12996: \$? = $ac_status" >&5
12997   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12998   then
12999     # The compiler can only warn and ignore the option if not recognized
13000     # So say no if there are warnings
13001     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13002     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13003     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13004       lt_cv_prog_compiler_c_o_CXX=yes
13005     fi
13006   fi
13007   chmod u+w . 2>&5
13008   $rm conftest*
13009   # SGI C++ compiler will create directory out/ii_files/ for
13010   # template instantiation
13011   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13012   $rm out/* && rmdir out
13013   cd ..
13014   rmdir conftest
13015   $rm conftest*
13016
13017fi
13018{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13019$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13020
13021
13022hard_links="nottested"
13023if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13024  # do not overwrite the value of need_locks provided by the user
13025  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13026$as_echo_n "checking if we can lock with hard links... " >&6; }
13027  hard_links=yes
13028  $rm conftest*
13029  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13030  touch conftest.a
13031  ln conftest.a conftest.b 2>&5 || hard_links=no
13032  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13033  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13034$as_echo "$hard_links" >&6; }
13035  if test "$hard_links" = no; then
13036    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13037$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13038    need_locks=warn
13039  fi
13040else
13041  need_locks=no
13042fi
13043
13044{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13045$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13046
13047  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13048  case $host_os in
13049  aix[4-9]*)
13050    # If we're using GNU nm, then we don't want the "-C" option.
13051    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13052    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13053      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'
13054    else
13055      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'
13056    fi
13057    ;;
13058  pw32*)
13059    export_symbols_cmds_CXX="$ltdll_cmds"
13060  ;;
13061  cygwin* | mingw*)
13062    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'
13063  ;;
13064  *)
13065    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13066  ;;
13067  esac
13068  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13069
13070{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13071$as_echo "$ld_shlibs_CXX" >&6; }
13072test "$ld_shlibs_CXX" = no && can_build_shared=no
13073
13074#
13075# Do we need to explicitly link libc?
13076#
13077case "x$archive_cmds_need_lc_CXX" in
13078x|xyes)
13079  # Assume -lc should be added
13080  archive_cmds_need_lc_CXX=yes
13081
13082  if test "$enable_shared" = yes && test "$GCC" = yes; then
13083    case $archive_cmds_CXX in
13084    *'~'*)
13085      # FIXME: we may have to deal with multi-command sequences.
13086      ;;
13087    '$CC '*)
13088      # Test whether the compiler implicitly links with -lc since on some
13089      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13090      # to ld, don't add -lc before -lgcc.
13091      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13092$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13093      $rm conftest*
13094      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13095
13096      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097  (eval $ac_compile) 2>&5
13098  ac_status=$?
13099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100  (exit $ac_status); } 2>conftest.err; then
13101        soname=conftest
13102        lib=conftest
13103        libobjs=conftest.$ac_objext
13104        deplibs=
13105        wl=$lt_prog_compiler_wl_CXX
13106	pic_flag=$lt_prog_compiler_pic_CXX
13107        compiler_flags=-v
13108        linker_flags=-v
13109        verstring=
13110        output_objdir=.
13111        libname=conftest
13112        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13113        allow_undefined_flag_CXX=
13114        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13115  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13116  ac_status=$?
13117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118  (exit $ac_status); }
13119        then
13120	  archive_cmds_need_lc_CXX=no
13121        else
13122	  archive_cmds_need_lc_CXX=yes
13123        fi
13124        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13125      else
13126        cat conftest.err 1>&5
13127      fi
13128      $rm conftest*
13129      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13130$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13131      ;;
13132    esac
13133  fi
13134  ;;
13135esac
13136
13137{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13138$as_echo_n "checking dynamic linker characteristics... " >&6; }
13139library_names_spec=
13140libname_spec='lib$name'
13141soname_spec=
13142shrext_cmds=".so"
13143postinstall_cmds=
13144postuninstall_cmds=
13145finish_cmds=
13146finish_eval=
13147shlibpath_var=
13148shlibpath_overrides_runpath=unknown
13149version_type=none
13150dynamic_linker="$host_os ld.so"
13151sys_lib_dlsearch_path_spec="/lib /usr/lib"
13152
13153need_lib_prefix=unknown
13154hardcode_into_libs=no
13155
13156# when you set need_version to no, make sure it does not cause -set_version
13157# flags to be left without arguments
13158need_version=unknown
13159
13160case $host_os in
13161aix3*)
13162  version_type=linux
13163  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13164  shlibpath_var=LIBPATH
13165
13166  # AIX 3 has no versioning support, so we append a major version to the name.
13167  soname_spec='${libname}${release}${shared_ext}$major'
13168  ;;
13169
13170aix[4-9]*)
13171  version_type=linux
13172  need_lib_prefix=no
13173  need_version=no
13174  hardcode_into_libs=yes
13175  if test "$host_cpu" = ia64; then
13176    # AIX 5 supports IA64
13177    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13178    shlibpath_var=LD_LIBRARY_PATH
13179  else
13180    # With GCC up to 2.95.x, collect2 would create an import file
13181    # for dependence libraries.  The import file would start with
13182    # the line `#! .'.  This would cause the generated library to
13183    # depend on `.', always an invalid library.  This was fixed in
13184    # development snapshots of GCC prior to 3.0.
13185    case $host_os in
13186      aix4 | aix4.[01] | aix4.[01].*)
13187      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13188	   echo ' yes '
13189	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13190	:
13191      else
13192	can_build_shared=no
13193      fi
13194      ;;
13195    esac
13196    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13197    # soname into executable. Probably we can add versioning support to
13198    # collect2, so additional links can be useful in future.
13199    if test "$aix_use_runtimelinking" = yes; then
13200      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13201      # instead of lib<name>.a to let people know that these are not
13202      # typical AIX shared libraries.
13203      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204    else
13205      # We preserve .a as extension for shared libraries through AIX4.2
13206      # and later when we are not doing run time linking.
13207      library_names_spec='${libname}${release}.a $libname.a'
13208      soname_spec='${libname}${release}${shared_ext}$major'
13209    fi
13210    shlibpath_var=LIBPATH
13211  fi
13212  ;;
13213
13214amigaos*)
13215  library_names_spec='$libname.ixlibrary $libname.a'
13216  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13217  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'
13218  ;;
13219
13220beos*)
13221  library_names_spec='${libname}${shared_ext}'
13222  dynamic_linker="$host_os ld.so"
13223  shlibpath_var=LIBRARY_PATH
13224  ;;
13225
13226bsdi[45]*)
13227  version_type=linux
13228  need_version=no
13229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230  soname_spec='${libname}${release}${shared_ext}$major'
13231  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13232  shlibpath_var=LD_LIBRARY_PATH
13233  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13234  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13235  # the default ld.so.conf also contains /usr/contrib/lib and
13236  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13237  # libtool to hard-code these into programs
13238  ;;
13239
13240cygwin* | mingw* | pw32*)
13241  version_type=windows
13242  shrext_cmds=".dll"
13243  need_version=no
13244  need_lib_prefix=no
13245
13246  case $GCC,$host_os in
13247  yes,cygwin* | yes,mingw* | yes,pw32*)
13248    library_names_spec='$libname.dll.a'
13249    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13250    postinstall_cmds='base_file=`basename \${file}`~
13251      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13252      dldir=$destdir/`dirname \$dlpath`~
13253      test -d \$dldir || mkdir -p \$dldir~
13254      $install_prog $dir/$dlname \$dldir/$dlname~
13255      chmod a+x \$dldir/$dlname'
13256    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13257      dlpath=$dir/\$dldll~
13258       $rm \$dlpath'
13259    shlibpath_overrides_runpath=yes
13260
13261    case $host_os in
13262    cygwin*)
13263      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13264      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13265      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13266      ;;
13267    mingw*)
13268      # MinGW DLLs use traditional 'lib' prefix
13269      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13270      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13271      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13272        # It is most probably a Windows format PATH printed by
13273        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13274        # path with ; separators, and with drive letters. We can handle the
13275        # drive letters (cygwin fileutils understands them), so leave them,
13276        # especially as we might pass files found there to a mingw objdump,
13277        # which wouldn't understand a cygwinified path. Ahh.
13278        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13279      else
13280        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13281      fi
13282      ;;
13283    pw32*)
13284      # pw32 DLLs use 'pw' prefix rather than 'lib'
13285      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13286      ;;
13287    esac
13288    ;;
13289
13290  *)
13291    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13292    ;;
13293  esac
13294  dynamic_linker='Win32 ld.exe'
13295  # FIXME: first we should search . and the directory the executable is in
13296  shlibpath_var=PATH
13297  ;;
13298
13299darwin* | rhapsody*)
13300  dynamic_linker="$host_os dyld"
13301  version_type=darwin
13302  need_lib_prefix=no
13303  need_version=no
13304  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13305  soname_spec='${libname}${release}${major}$shared_ext'
13306  shlibpath_overrides_runpath=yes
13307  shlibpath_var=DYLD_LIBRARY_PATH
13308  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13309
13310  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13311  ;;
13312
13313dgux*)
13314  version_type=linux
13315  need_lib_prefix=no
13316  need_version=no
13317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13318  soname_spec='${libname}${release}${shared_ext}$major'
13319  shlibpath_var=LD_LIBRARY_PATH
13320  ;;
13321
13322freebsd1*)
13323  dynamic_linker=no
13324  ;;
13325
13326freebsd* | dragonfly*)
13327  # DragonFly does not have aout.  When/if they implement a new
13328  # versioning mechanism, adjust this.
13329  if test -x /usr/bin/objformat; then
13330    objformat=`/usr/bin/objformat`
13331  else
13332    case $host_os in
13333    freebsd[123]*) objformat=aout ;;
13334    *) objformat=elf ;;
13335    esac
13336  fi
13337  version_type=freebsd-$objformat
13338  case $version_type in
13339    freebsd-elf*)
13340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13341      need_version=no
13342      need_lib_prefix=no
13343      ;;
13344    freebsd-*)
13345      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13346      need_version=yes
13347      ;;
13348  esac
13349  shlibpath_var=LD_LIBRARY_PATH
13350  case $host_os in
13351  freebsd2*)
13352    shlibpath_overrides_runpath=yes
13353    ;;
13354  freebsd3.[01]* | freebsdelf3.[01]*)
13355    shlibpath_overrides_runpath=yes
13356    hardcode_into_libs=yes
13357    ;;
13358  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13359  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13360    shlibpath_overrides_runpath=no
13361    hardcode_into_libs=yes
13362    ;;
13363  *) # from 4.6 on, and DragonFly
13364    shlibpath_overrides_runpath=yes
13365    hardcode_into_libs=yes
13366    ;;
13367  esac
13368  ;;
13369
13370gnu*)
13371  version_type=linux
13372  need_lib_prefix=no
13373  need_version=no
13374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13375  soname_spec='${libname}${release}${shared_ext}$major'
13376  shlibpath_var=LD_LIBRARY_PATH
13377  hardcode_into_libs=yes
13378  ;;
13379
13380hpux9* | hpux10* | hpux11*)
13381  # Give a soname corresponding to the major version so that dld.sl refuses to
13382  # link against other versions.
13383  version_type=sunos
13384  need_lib_prefix=no
13385  need_version=no
13386  case $host_cpu in
13387  ia64*)
13388    shrext_cmds='.so'
13389    hardcode_into_libs=yes
13390    dynamic_linker="$host_os dld.so"
13391    shlibpath_var=LD_LIBRARY_PATH
13392    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394    soname_spec='${libname}${release}${shared_ext}$major'
13395    if test "X$HPUX_IA64_MODE" = X32; then
13396      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13397    else
13398      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13399    fi
13400    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13401    ;;
13402   hppa*64*)
13403     shrext_cmds='.sl'
13404     hardcode_into_libs=yes
13405     dynamic_linker="$host_os dld.sl"
13406     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13407     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409     soname_spec='${libname}${release}${shared_ext}$major'
13410     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13411     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13412     ;;
13413   *)
13414    shrext_cmds='.sl'
13415    dynamic_linker="$host_os dld.sl"
13416    shlibpath_var=SHLIB_PATH
13417    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419    soname_spec='${libname}${release}${shared_ext}$major'
13420    ;;
13421  esac
13422  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13423  postinstall_cmds='chmod 555 $lib'
13424  ;;
13425
13426interix[3-9]*)
13427  version_type=linux
13428  need_lib_prefix=no
13429  need_version=no
13430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13431  soname_spec='${libname}${release}${shared_ext}$major'
13432  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13433  shlibpath_var=LD_LIBRARY_PATH
13434  shlibpath_overrides_runpath=no
13435  hardcode_into_libs=yes
13436  ;;
13437
13438irix5* | irix6* | nonstopux*)
13439  case $host_os in
13440    nonstopux*) version_type=nonstopux ;;
13441    *)
13442	if test "$lt_cv_prog_gnu_ld" = yes; then
13443		version_type=linux
13444	else
13445		version_type=irix
13446	fi ;;
13447  esac
13448  need_lib_prefix=no
13449  need_version=no
13450  soname_spec='${libname}${release}${shared_ext}$major'
13451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13452  case $host_os in
13453  irix5* | nonstopux*)
13454    libsuff= shlibsuff=
13455    ;;
13456  *)
13457    case $LD in # libtool.m4 will add one of these switches to LD
13458    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13459      libsuff= shlibsuff= libmagic=32-bit;;
13460    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13461      libsuff=32 shlibsuff=N32 libmagic=N32;;
13462    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13463      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13464    *) libsuff= shlibsuff= libmagic=never-match;;
13465    esac
13466    ;;
13467  esac
13468  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13469  shlibpath_overrides_runpath=no
13470  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13471  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13472  hardcode_into_libs=yes
13473  ;;
13474
13475# No shared lib support for Linux oldld, aout, or coff.
13476linux*oldld* | linux*aout* | linux*coff*)
13477  dynamic_linker=no
13478  ;;
13479
13480# This must be Linux ELF.
13481linux* | k*bsd*-gnu)
13482  version_type=linux
13483  need_lib_prefix=no
13484  need_version=no
13485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486  soname_spec='${libname}${release}${shared_ext}$major'
13487  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13488  shlibpath_var=LD_LIBRARY_PATH
13489  shlibpath_overrides_runpath=no
13490  # This implies no fast_install, which is unacceptable.
13491  # Some rework will be needed to allow for fast_install
13492  # before this can be enabled.
13493  hardcode_into_libs=yes
13494  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13495  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13496
13497  # Append ld.so.conf contents to the search path
13498  if test -f /etc/ld.so.conf; then
13499    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' ' '`
13500    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13501  fi
13502
13503  # We used to test for /lib/ld.so.1 and disable shared libraries on
13504  # powerpc, because MkLinux only supported shared libraries with the
13505  # GNU dynamic linker.  Since this was broken with cross compilers,
13506  # most powerpc-linux boxes support dynamic linking these days and
13507  # people can always --disable-shared, the test was removed, and we
13508  # assume the GNU/Linux dynamic linker is in use.
13509  dynamic_linker='GNU/Linux ld.so'
13510  ;;
13511
13512netbsd*)
13513  version_type=sunos
13514  need_lib_prefix=no
13515  need_version=no
13516  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13517    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13518    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13519    dynamic_linker='NetBSD (a.out) ld.so'
13520  else
13521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13522    soname_spec='${libname}${release}${shared_ext}$major'
13523    dynamic_linker='NetBSD ld.elf_so'
13524  fi
13525  shlibpath_var=LD_LIBRARY_PATH
13526  shlibpath_overrides_runpath=yes
13527  hardcode_into_libs=yes
13528  ;;
13529
13530newsos6)
13531  version_type=linux
13532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533  shlibpath_var=LD_LIBRARY_PATH
13534  shlibpath_overrides_runpath=yes
13535  ;;
13536
13537nto-qnx*)
13538  version_type=linux
13539  need_lib_prefix=no
13540  need_version=no
13541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542  soname_spec='${libname}${release}${shared_ext}$major'
13543  shlibpath_var=LD_LIBRARY_PATH
13544  shlibpath_overrides_runpath=yes
13545  ;;
13546
13547openbsd*)
13548  version_type=sunos
13549  sys_lib_dlsearch_path_spec="/usr/lib"
13550  need_lib_prefix=no
13551  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13552  case $host_os in
13553    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13554    *)                         need_version=no  ;;
13555  esac
13556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13557  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13558  shlibpath_var=LD_LIBRARY_PATH
13559  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13560    case $host_os in
13561      openbsd2.[89] | openbsd2.[89].*)
13562	shlibpath_overrides_runpath=no
13563	;;
13564      *)
13565	shlibpath_overrides_runpath=yes
13566	;;
13567      esac
13568  else
13569    shlibpath_overrides_runpath=yes
13570  fi
13571  ;;
13572
13573os2*)
13574  libname_spec='$name'
13575  shrext_cmds=".dll"
13576  need_lib_prefix=no
13577  library_names_spec='$libname${shared_ext} $libname.a'
13578  dynamic_linker='OS/2 ld.exe'
13579  shlibpath_var=LIBPATH
13580  ;;
13581
13582osf3* | osf4* | osf5*)
13583  version_type=osf
13584  need_lib_prefix=no
13585  need_version=no
13586  soname_spec='${libname}${release}${shared_ext}$major'
13587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588  shlibpath_var=LD_LIBRARY_PATH
13589  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13590  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13591  ;;
13592
13593rdos*)
13594  dynamic_linker=no
13595  ;;
13596
13597solaris*)
13598  version_type=linux
13599  need_lib_prefix=no
13600  need_version=no
13601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602  soname_spec='${libname}${release}${shared_ext}$major'
13603  shlibpath_var=LD_LIBRARY_PATH
13604  shlibpath_overrides_runpath=yes
13605  hardcode_into_libs=yes
13606  # ldd complains unless libraries are executable
13607  postinstall_cmds='chmod +x $lib'
13608  ;;
13609
13610sunos4*)
13611  version_type=sunos
13612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13613  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13614  shlibpath_var=LD_LIBRARY_PATH
13615  shlibpath_overrides_runpath=yes
13616  if test "$with_gnu_ld" = yes; then
13617    need_lib_prefix=no
13618  fi
13619  need_version=yes
13620  ;;
13621
13622sysv4 | sysv4.3*)
13623  version_type=linux
13624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625  soname_spec='${libname}${release}${shared_ext}$major'
13626  shlibpath_var=LD_LIBRARY_PATH
13627  case $host_vendor in
13628    sni)
13629      shlibpath_overrides_runpath=no
13630      need_lib_prefix=no
13631      export_dynamic_flag_spec='${wl}-Blargedynsym'
13632      runpath_var=LD_RUN_PATH
13633      ;;
13634    siemens)
13635      need_lib_prefix=no
13636      ;;
13637    motorola)
13638      need_lib_prefix=no
13639      need_version=no
13640      shlibpath_overrides_runpath=no
13641      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13642      ;;
13643  esac
13644  ;;
13645
13646sysv4*MP*)
13647  if test -d /usr/nec ;then
13648    version_type=linux
13649    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13650    soname_spec='$libname${shared_ext}.$major'
13651    shlibpath_var=LD_LIBRARY_PATH
13652  fi
13653  ;;
13654
13655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13656  version_type=freebsd-elf
13657  need_lib_prefix=no
13658  need_version=no
13659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13660  soname_spec='${libname}${release}${shared_ext}$major'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  hardcode_into_libs=yes
13663  if test "$with_gnu_ld" = yes; then
13664    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13665    shlibpath_overrides_runpath=no
13666  else
13667    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13668    shlibpath_overrides_runpath=yes
13669    case $host_os in
13670      sco3.2v5*)
13671        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13672	;;
13673    esac
13674  fi
13675  sys_lib_dlsearch_path_spec='/usr/lib'
13676  ;;
13677
13678uts4*)
13679  version_type=linux
13680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681  soname_spec='${libname}${release}${shared_ext}$major'
13682  shlibpath_var=LD_LIBRARY_PATH
13683  ;;
13684
13685*)
13686  dynamic_linker=no
13687  ;;
13688esac
13689{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13690$as_echo "$dynamic_linker" >&6; }
13691test "$dynamic_linker" = no && can_build_shared=no
13692
13693if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13694  $as_echo_n "(cached) " >&6
13695else
13696  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13697fi
13698
13699sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13701  $as_echo_n "(cached) " >&6
13702else
13703  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13704fi
13705
13706sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13707
13708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13709if test "$GCC" = yes; then
13710  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13711fi
13712
13713{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13714$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13715hardcode_action_CXX=
13716if test -n "$hardcode_libdir_flag_spec_CXX" || \
13717   test -n "$runpath_var_CXX" || \
13718   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13719
13720  # We can hardcode non-existant directories.
13721  if test "$hardcode_direct_CXX" != no &&
13722     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13723     # have to relink, otherwise we might link with an installed library
13724     # when we should be linking with a yet-to-be-installed one
13725     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13726     test "$hardcode_minus_L_CXX" != no; then
13727    # Linking always hardcodes the temporary library directory.
13728    hardcode_action_CXX=relink
13729  else
13730    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13731    hardcode_action_CXX=immediate
13732  fi
13733else
13734  # We cannot hardcode anything, or else we can only hardcode existing
13735  # directories.
13736  hardcode_action_CXX=unsupported
13737fi
13738{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13739$as_echo "$hardcode_action_CXX" >&6; }
13740
13741if test "$hardcode_action_CXX" = relink; then
13742  # Fast installation is not supported
13743  enable_fast_install=no
13744elif test "$shlibpath_overrides_runpath" = yes ||
13745     test "$enable_shared" = no; then
13746  # Fast installation is not necessary
13747  enable_fast_install=needless
13748fi
13749
13750
13751# The else clause should only fire when bootstrapping the
13752# libtool distribution, otherwise you forgot to ship ltmain.sh
13753# with your package, and you will get complaints that there are
13754# no rules to generate ltmain.sh.
13755if test -f "$ltmain"; then
13756  # See if we are running on zsh, and set the options which allow our commands through
13757  # without removal of \ escapes.
13758  if test -n "${ZSH_VERSION+set}" ; then
13759    setopt NO_GLOB_SUBST
13760  fi
13761  # Now quote all the things that may contain metacharacters while being
13762  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13763  # variables and quote the copies for generation of the libtool script.
13764  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13765    SED SHELL STRIP \
13766    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13767    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13768    deplibs_check_method reload_flag reload_cmds need_locks \
13769    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13770    lt_cv_sys_global_symbol_to_c_name_address \
13771    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13772    old_postinstall_cmds old_postuninstall_cmds \
13773    compiler_CXX \
13774    CC_CXX \
13775    LD_CXX \
13776    lt_prog_compiler_wl_CXX \
13777    lt_prog_compiler_pic_CXX \
13778    lt_prog_compiler_static_CXX \
13779    lt_prog_compiler_no_builtin_flag_CXX \
13780    export_dynamic_flag_spec_CXX \
13781    thread_safe_flag_spec_CXX \
13782    whole_archive_flag_spec_CXX \
13783    enable_shared_with_static_runtimes_CXX \
13784    old_archive_cmds_CXX \
13785    old_archive_from_new_cmds_CXX \
13786    predep_objects_CXX \
13787    postdep_objects_CXX \
13788    predeps_CXX \
13789    postdeps_CXX \
13790    compiler_lib_search_path_CXX \
13791    compiler_lib_search_dirs_CXX \
13792    archive_cmds_CXX \
13793    archive_expsym_cmds_CXX \
13794    postinstall_cmds_CXX \
13795    postuninstall_cmds_CXX \
13796    old_archive_from_expsyms_cmds_CXX \
13797    allow_undefined_flag_CXX \
13798    no_undefined_flag_CXX \
13799    export_symbols_cmds_CXX \
13800    hardcode_libdir_flag_spec_CXX \
13801    hardcode_libdir_flag_spec_ld_CXX \
13802    hardcode_libdir_separator_CXX \
13803    hardcode_automatic_CXX \
13804    module_cmds_CXX \
13805    module_expsym_cmds_CXX \
13806    lt_cv_prog_compiler_c_o_CXX \
13807    fix_srcfile_path_CXX \
13808    exclude_expsyms_CXX \
13809    include_expsyms_CXX; do
13810
13811    case $var in
13812    old_archive_cmds_CXX | \
13813    old_archive_from_new_cmds_CXX | \
13814    archive_cmds_CXX | \
13815    archive_expsym_cmds_CXX | \
13816    module_cmds_CXX | \
13817    module_expsym_cmds_CXX | \
13818    old_archive_from_expsyms_cmds_CXX | \
13819    export_symbols_cmds_CXX | \
13820    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13821    postinstall_cmds | postuninstall_cmds | \
13822    old_postinstall_cmds | old_postuninstall_cmds | \
13823    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13824      # Double-quote double-evaled strings.
13825      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13826      ;;
13827    *)
13828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13829      ;;
13830    esac
13831  done
13832
13833  case $lt_echo in
13834  *'\$0 --fallback-echo"')
13835    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13836    ;;
13837  esac
13838
13839cfgfile="$ofile"
13840
13841  cat <<__EOF__ >> "$cfgfile"
13842# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13843
13844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13845
13846# Shell to use when invoking shell scripts.
13847SHELL=$lt_SHELL
13848
13849# Whether or not to build shared libraries.
13850build_libtool_libs=$enable_shared
13851
13852# Whether or not to build static libraries.
13853build_old_libs=$enable_static
13854
13855# Whether or not to add -lc for building shared libraries.
13856build_libtool_need_lc=$archive_cmds_need_lc_CXX
13857
13858# Whether or not to disallow shared libs when runtime libs are static
13859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13860
13861# Whether or not to optimize for fast installation.
13862fast_install=$enable_fast_install
13863
13864# The host system.
13865host_alias=$host_alias
13866host=$host
13867host_os=$host_os
13868
13869# The build system.
13870build_alias=$build_alias
13871build=$build
13872build_os=$build_os
13873
13874# An echo program that does not interpret backslashes.
13875echo=$lt_echo
13876
13877# The archiver.
13878AR=$lt_AR
13879AR_FLAGS=$lt_AR_FLAGS
13880
13881# A C compiler.
13882LTCC=$lt_LTCC
13883
13884# LTCC compiler flags.
13885LTCFLAGS=$lt_LTCFLAGS
13886
13887# A language-specific compiler.
13888CC=$lt_compiler_CXX
13889
13890# Is the compiler the GNU C compiler?
13891with_gcc=$GCC_CXX
13892
13893# An ERE matcher.
13894EGREP=$lt_EGREP
13895
13896# The linker used to build libraries.
13897LD=$lt_LD_CXX
13898
13899# Whether we need hard or soft links.
13900LN_S=$lt_LN_S
13901
13902# A BSD-compatible nm program.
13903NM=$lt_NM
13904
13905# A symbol stripping program
13906STRIP=$lt_STRIP
13907
13908# Used to examine libraries when file_magic_cmd begins "file"
13909MAGIC_CMD=$MAGIC_CMD
13910
13911# Used on cygwin: DLL creation program.
13912DLLTOOL="$DLLTOOL"
13913
13914# Used on cygwin: object dumper.
13915OBJDUMP="$OBJDUMP"
13916
13917# Used on cygwin: assembler.
13918AS="$AS"
13919
13920# The name of the directory that contains temporary libtool files.
13921objdir=$objdir
13922
13923# How to create reloadable object files.
13924reload_flag=$lt_reload_flag
13925reload_cmds=$lt_reload_cmds
13926
13927# How to pass a linker flag through the compiler.
13928wl=$lt_lt_prog_compiler_wl_CXX
13929
13930# Object file suffix (normally "o").
13931objext="$ac_objext"
13932
13933# Old archive suffix (normally "a").
13934libext="$libext"
13935
13936# Shared library suffix (normally ".so").
13937shrext_cmds='$shrext_cmds'
13938
13939# Executable file suffix (normally "").
13940exeext="$exeext"
13941
13942# Additional compiler flags for building library objects.
13943pic_flag=$lt_lt_prog_compiler_pic_CXX
13944pic_mode=$pic_mode
13945
13946# What is the maximum length of a command?
13947max_cmd_len=$lt_cv_sys_max_cmd_len
13948
13949# Does compiler simultaneously support -c and -o options?
13950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13951
13952# Must we lock files when doing compilation?
13953need_locks=$lt_need_locks
13954
13955# Do we need the lib prefix for modules?
13956need_lib_prefix=$need_lib_prefix
13957
13958# Do we need a version for libraries?
13959need_version=$need_version
13960
13961# Whether dlopen is supported.
13962dlopen_support=$enable_dlopen
13963
13964# Whether dlopen of programs is supported.
13965dlopen_self=$enable_dlopen_self
13966
13967# Whether dlopen of statically linked programs is supported.
13968dlopen_self_static=$enable_dlopen_self_static
13969
13970# Compiler flag to prevent dynamic linking.
13971link_static_flag=$lt_lt_prog_compiler_static_CXX
13972
13973# Compiler flag to turn off builtin functions.
13974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13975
13976# Compiler flag to allow reflexive dlopens.
13977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13978
13979# Compiler flag to generate shared objects directly from archives.
13980whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13981
13982# Compiler flag to generate thread-safe objects.
13983thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13984
13985# Library versioning type.
13986version_type=$version_type
13987
13988# Format of library name prefix.
13989libname_spec=$lt_libname_spec
13990
13991# List of archive names.  First name is the real one, the rest are links.
13992# The last name is the one that the linker finds with -lNAME.
13993library_names_spec=$lt_library_names_spec
13994
13995# The coded name of the library, if different from the real name.
13996soname_spec=$lt_soname_spec
13997
13998# Commands used to build and install an old-style archive.
13999RANLIB=$lt_RANLIB
14000old_archive_cmds=$lt_old_archive_cmds_CXX
14001old_postinstall_cmds=$lt_old_postinstall_cmds
14002old_postuninstall_cmds=$lt_old_postuninstall_cmds
14003
14004# Create an old-style archive from a shared archive.
14005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14006
14007# Create a temporary old-style archive to link instead of a shared archive.
14008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14009
14010# Commands used to build and install a shared archive.
14011archive_cmds=$lt_archive_cmds_CXX
14012archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14013postinstall_cmds=$lt_postinstall_cmds
14014postuninstall_cmds=$lt_postuninstall_cmds
14015
14016# Commands used to build a loadable module (assumed same as above if empty)
14017module_cmds=$lt_module_cmds_CXX
14018module_expsym_cmds=$lt_module_expsym_cmds_CXX
14019
14020# Commands to strip libraries.
14021old_striplib=$lt_old_striplib
14022striplib=$lt_striplib
14023
14024# Dependencies to place before the objects being linked to create a
14025# shared library.
14026predep_objects=$lt_predep_objects_CXX
14027
14028# Dependencies to place after the objects being linked to create a
14029# shared library.
14030postdep_objects=$lt_postdep_objects_CXX
14031
14032# Dependencies to place before the objects being linked to create a
14033# shared library.
14034predeps=$lt_predeps_CXX
14035
14036# Dependencies to place after the objects being linked to create a
14037# shared library.
14038postdeps=$lt_postdeps_CXX
14039
14040# The directories searched by this compiler when creating a shared
14041# library
14042compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14043
14044# The library search path used internally by the compiler when linking
14045# a shared library.
14046compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14047
14048# Method to check whether dependent libraries are shared objects.
14049deplibs_check_method=$lt_deplibs_check_method
14050
14051# Command to use when deplibs_check_method == file_magic.
14052file_magic_cmd=$lt_file_magic_cmd
14053
14054# Flag that allows shared libraries with undefined symbols to be built.
14055allow_undefined_flag=$lt_allow_undefined_flag_CXX
14056
14057# Flag that forces no undefined symbols.
14058no_undefined_flag=$lt_no_undefined_flag_CXX
14059
14060# Commands used to finish a libtool library installation in a directory.
14061finish_cmds=$lt_finish_cmds
14062
14063# Same as above, but a single script fragment to be evaled but not shown.
14064finish_eval=$lt_finish_eval
14065
14066# Take the output of nm and produce a listing of raw symbols and C names.
14067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14068
14069# Transform the output of nm in a proper C declaration
14070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14071
14072# Transform the output of nm in a C name address pair
14073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14074
14075# This is the shared library runtime path variable.
14076runpath_var=$runpath_var
14077
14078# This is the shared library path variable.
14079shlibpath_var=$shlibpath_var
14080
14081# Is shlibpath searched before the hard-coded library search path?
14082shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14083
14084# How to hardcode a shared library path into an executable.
14085hardcode_action=$hardcode_action_CXX
14086
14087# Whether we should hardcode library paths into libraries.
14088hardcode_into_libs=$hardcode_into_libs
14089
14090# Flag to hardcode \$libdir into a binary during linking.
14091# This must work even if \$libdir does not exist.
14092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14093
14094# If ld is used when linking, flag to hardcode \$libdir into
14095# a binary during linking. This must work even if \$libdir does
14096# not exist.
14097hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14098
14099# Whether we need a single -rpath flag with a separated argument.
14100hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14101
14102# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14103# resulting binary.
14104hardcode_direct=$hardcode_direct_CXX
14105
14106# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14107# resulting binary.
14108hardcode_minus_L=$hardcode_minus_L_CXX
14109
14110# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14111# the resulting binary.
14112hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14113
14114# Set to yes if building a shared library automatically hardcodes DIR into the library
14115# and all subsequent libraries and executables linked against it.
14116hardcode_automatic=$hardcode_automatic_CXX
14117
14118# Variables whose values should be saved in libtool wrapper scripts and
14119# restored at relink time.
14120variables_saved_for_relink="$variables_saved_for_relink"
14121
14122# Whether libtool must link a program against all its dependency libraries.
14123link_all_deplibs=$link_all_deplibs_CXX
14124
14125# Compile-time system search path for libraries
14126sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14127
14128# Run-time system search path for libraries
14129sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14130
14131# Fix the shell variable \$srcfile for the compiler.
14132fix_srcfile_path=$lt_fix_srcfile_path
14133
14134# Set to yes if exported symbols are required.
14135always_export_symbols=$always_export_symbols_CXX
14136
14137# The commands to list exported symbols.
14138export_symbols_cmds=$lt_export_symbols_cmds_CXX
14139
14140# The commands to extract the exported symbol list from a shared archive.
14141extract_expsyms_cmds=$lt_extract_expsyms_cmds
14142
14143# Symbols that should not be listed in the preloaded symbols.
14144exclude_expsyms=$lt_exclude_expsyms_CXX
14145
14146# Symbols that must always be exported.
14147include_expsyms=$lt_include_expsyms_CXX
14148
14149# ### END LIBTOOL TAG CONFIG: $tagname
14150
14151__EOF__
14152
14153
14154else
14155  # If there is no Makefile yet, we rely on a make rule to execute
14156  # `config.status --recheck' to rerun these tests and create the
14157  # libtool script then.
14158  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14159  if test -f "$ltmain_in"; then
14160    test -f Makefile && make "$ltmain"
14161  fi
14162fi
14163
14164
14165ac_ext=c
14166ac_cpp='$CPP $CPPFLAGS'
14167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14169ac_compiler_gnu=$ac_cv_c_compiler_gnu
14170
14171CC=$lt_save_CC
14172LDCXX=$LD
14173LD=$lt_save_LD
14174GCC=$lt_save_GCC
14175with_gnu_ldcxx=$with_gnu_ld
14176with_gnu_ld=$lt_save_with_gnu_ld
14177lt_cv_path_LDCXX=$lt_cv_path_LD
14178lt_cv_path_LD=$lt_save_path_LD
14179lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14180lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14181
14182	else
14183	  tagname=""
14184	fi
14185	;;
14186
14187      F77)
14188	if test -n "$F77" && test "X$F77" != "Xno"; then
14189
14190ac_ext=f
14191ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14192ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14193ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14194
14195
14196archive_cmds_need_lc_F77=no
14197allow_undefined_flag_F77=
14198always_export_symbols_F77=no
14199archive_expsym_cmds_F77=
14200export_dynamic_flag_spec_F77=
14201hardcode_direct_F77=no
14202hardcode_libdir_flag_spec_F77=
14203hardcode_libdir_flag_spec_ld_F77=
14204hardcode_libdir_separator_F77=
14205hardcode_minus_L_F77=no
14206hardcode_automatic_F77=no
14207module_cmds_F77=
14208module_expsym_cmds_F77=
14209link_all_deplibs_F77=unknown
14210old_archive_cmds_F77=$old_archive_cmds
14211no_undefined_flag_F77=
14212whole_archive_flag_spec_F77=
14213enable_shared_with_static_runtimes_F77=no
14214
14215# Source file extension for f77 test sources.
14216ac_ext=f
14217
14218# Object file extension for compiled f77 test sources.
14219objext=o
14220objext_F77=$objext
14221
14222# Code to be used in simple compile tests
14223lt_simple_compile_test_code="\
14224      subroutine t
14225      return
14226      end
14227"
14228
14229# Code to be used in simple link tests
14230lt_simple_link_test_code="\
14231      program t
14232      end
14233"
14234
14235# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14236
14237# If no C compiler was specified, use CC.
14238LTCC=${LTCC-"$CC"}
14239
14240# If no C compiler flags were specified, use CFLAGS.
14241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14242
14243# Allow CC to be a program name with arguments.
14244compiler=$CC
14245
14246
14247# save warnings/boilerplate of simple test code
14248ac_outfile=conftest.$ac_objext
14249echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14250eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14251_lt_compiler_boilerplate=`cat conftest.err`
14252$rm conftest*
14253
14254ac_outfile=conftest.$ac_objext
14255echo "$lt_simple_link_test_code" >conftest.$ac_ext
14256eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14257_lt_linker_boilerplate=`cat conftest.err`
14258$rm -r conftest*
14259
14260
14261# Allow CC to be a program name with arguments.
14262lt_save_CC="$CC"
14263CC=${F77-"f77"}
14264compiler=$CC
14265compiler_F77=$CC
14266for cc_temp in $compiler""; do
14267  case $cc_temp in
14268    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14269    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14270    \-*) ;;
14271    *) break;;
14272  esac
14273done
14274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14275
14276
14277{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14278$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14279{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14280$as_echo "$can_build_shared" >&6; }
14281
14282{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14283$as_echo_n "checking whether to build shared libraries... " >&6; }
14284test "$can_build_shared" = "no" && enable_shared=no
14285
14286# On AIX, shared libraries and static libraries use the same namespace, and
14287# are all built from PIC.
14288case $host_os in
14289aix3*)
14290  test "$enable_shared" = yes && enable_static=no
14291  if test -n "$RANLIB"; then
14292    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14293    postinstall_cmds='$RANLIB $lib'
14294  fi
14295  ;;
14296aix[4-9]*)
14297  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14298    test "$enable_shared" = yes && enable_static=no
14299  fi
14300  ;;
14301esac
14302{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14303$as_echo "$enable_shared" >&6; }
14304
14305{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14306$as_echo_n "checking whether to build static libraries... " >&6; }
14307# Make sure either enable_shared or enable_static is yes.
14308test "$enable_shared" = yes || enable_static=yes
14309{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14310$as_echo "$enable_static" >&6; }
14311
14312GCC_F77="$G77"
14313LD_F77="$LD"
14314
14315lt_prog_compiler_wl_F77=
14316lt_prog_compiler_pic_F77=
14317lt_prog_compiler_static_F77=
14318
14319{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14320$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14321
14322  if test "$GCC" = yes; then
14323    lt_prog_compiler_wl_F77='-Wl,'
14324    lt_prog_compiler_static_F77='-static'
14325
14326    case $host_os in
14327      aix*)
14328      # All AIX code is PIC.
14329      if test "$host_cpu" = ia64; then
14330	# AIX 5 now supports IA64 processor
14331	lt_prog_compiler_static_F77='-Bstatic'
14332      fi
14333      ;;
14334
14335    amigaos*)
14336      # FIXME: we need at least 68020 code to build shared libraries, but
14337      # adding the `-m68020' flag to GCC prevents building anything better,
14338      # like `-m68040'.
14339      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14340      ;;
14341
14342    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14343      # PIC is the default for these OSes.
14344      ;;
14345
14346    mingw* | cygwin* | pw32* | os2*)
14347      # This hack is so that the source file can tell whether it is being
14348      # built for inclusion in a dll (and should export symbols for example).
14349      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14350      # (--disable-auto-import) libraries
14351      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14352      ;;
14353
14354    darwin* | rhapsody*)
14355      # PIC is the default on this platform
14356      # Common symbols not allowed in MH_DYLIB files
14357      lt_prog_compiler_pic_F77='-fno-common'
14358      ;;
14359
14360    interix[3-9]*)
14361      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14362      # Instead, we relocate shared libraries at runtime.
14363      ;;
14364
14365    msdosdjgpp*)
14366      # Just because we use GCC doesn't mean we suddenly get shared libraries
14367      # on systems that don't support them.
14368      lt_prog_compiler_can_build_shared_F77=no
14369      enable_shared=no
14370      ;;
14371
14372    sysv4*MP*)
14373      if test -d /usr/nec; then
14374	lt_prog_compiler_pic_F77=-Kconform_pic
14375      fi
14376      ;;
14377
14378    hpux*)
14379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14380      # not for PA HP-UX.
14381      case $host_cpu in
14382      hppa*64*|ia64*)
14383	# +Z the default
14384	;;
14385      *)
14386	lt_prog_compiler_pic_F77='-fPIC'
14387	;;
14388      esac
14389      ;;
14390
14391    *)
14392      lt_prog_compiler_pic_F77='-fPIC'
14393      ;;
14394    esac
14395  else
14396    # PORTME Check for flag to pass linker flags through the system compiler.
14397    case $host_os in
14398    aix*)
14399      lt_prog_compiler_wl_F77='-Wl,'
14400      if test "$host_cpu" = ia64; then
14401	# AIX 5 now supports IA64 processor
14402	lt_prog_compiler_static_F77='-Bstatic'
14403      else
14404	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14405      fi
14406      ;;
14407      darwin*)
14408        # PIC is the default on this platform
14409        # Common symbols not allowed in MH_DYLIB files
14410       case $cc_basename in
14411         xlc*)
14412         lt_prog_compiler_pic_F77='-qnocommon'
14413         lt_prog_compiler_wl_F77='-Wl,'
14414         ;;
14415       esac
14416       ;;
14417
14418    mingw* | cygwin* | pw32* | os2*)
14419      # This hack is so that the source file can tell whether it is being
14420      # built for inclusion in a dll (and should export symbols for example).
14421      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14422      ;;
14423
14424    hpux9* | hpux10* | hpux11*)
14425      lt_prog_compiler_wl_F77='-Wl,'
14426      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14427      # not for PA HP-UX.
14428      case $host_cpu in
14429      hppa*64*|ia64*)
14430	# +Z the default
14431	;;
14432      *)
14433	lt_prog_compiler_pic_F77='+Z'
14434	;;
14435      esac
14436      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14437      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14438      ;;
14439
14440    irix5* | irix6* | nonstopux*)
14441      lt_prog_compiler_wl_F77='-Wl,'
14442      # PIC (with -KPIC) is the default.
14443      lt_prog_compiler_static_F77='-non_shared'
14444      ;;
14445
14446    newsos6)
14447      lt_prog_compiler_pic_F77='-KPIC'
14448      lt_prog_compiler_static_F77='-Bstatic'
14449      ;;
14450
14451    linux* | k*bsd*-gnu)
14452      case $cc_basename in
14453      icc* | ecc*)
14454	lt_prog_compiler_wl_F77='-Wl,'
14455	lt_prog_compiler_pic_F77='-KPIC'
14456	lt_prog_compiler_static_F77='-static'
14457        ;;
14458      pgcc* | pgf77* | pgf90* | pgf95*)
14459        # Portland Group compilers (*not* the Pentium gcc compiler,
14460	# which looks to be a dead project)
14461	lt_prog_compiler_wl_F77='-Wl,'
14462	lt_prog_compiler_pic_F77='-fpic'
14463	lt_prog_compiler_static_F77='-Bstatic'
14464        ;;
14465      ccc*)
14466        lt_prog_compiler_wl_F77='-Wl,'
14467        # All Alpha code is PIC.
14468        lt_prog_compiler_static_F77='-non_shared'
14469        ;;
14470      *)
14471        case `$CC -V 2>&1 | sed 5q` in
14472	*Sun\ C*)
14473	  # Sun C 5.9
14474	  lt_prog_compiler_pic_F77='-KPIC'
14475	  lt_prog_compiler_static_F77='-Bstatic'
14476	  lt_prog_compiler_wl_F77='-Wl,'
14477	  ;;
14478	*Sun\ F*)
14479	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14480	  lt_prog_compiler_pic_F77='-KPIC'
14481	  lt_prog_compiler_static_F77='-Bstatic'
14482	  lt_prog_compiler_wl_F77=''
14483	  ;;
14484	esac
14485	;;
14486      esac
14487      ;;
14488
14489    osf3* | osf4* | osf5*)
14490      lt_prog_compiler_wl_F77='-Wl,'
14491      # All OSF/1 code is PIC.
14492      lt_prog_compiler_static_F77='-non_shared'
14493      ;;
14494
14495    rdos*)
14496      lt_prog_compiler_static_F77='-non_shared'
14497      ;;
14498
14499    solaris*)
14500      lt_prog_compiler_pic_F77='-KPIC'
14501      lt_prog_compiler_static_F77='-Bstatic'
14502      case $cc_basename in
14503      f77* | f90* | f95*)
14504	lt_prog_compiler_wl_F77='-Qoption ld ';;
14505      *)
14506	lt_prog_compiler_wl_F77='-Wl,';;
14507      esac
14508      ;;
14509
14510    sunos4*)
14511      lt_prog_compiler_wl_F77='-Qoption ld '
14512      lt_prog_compiler_pic_F77='-PIC'
14513      lt_prog_compiler_static_F77='-Bstatic'
14514      ;;
14515
14516    sysv4 | sysv4.2uw2* | sysv4.3*)
14517      lt_prog_compiler_wl_F77='-Wl,'
14518      lt_prog_compiler_pic_F77='-KPIC'
14519      lt_prog_compiler_static_F77='-Bstatic'
14520      ;;
14521
14522    sysv4*MP*)
14523      if test -d /usr/nec ;then
14524	lt_prog_compiler_pic_F77='-Kconform_pic'
14525	lt_prog_compiler_static_F77='-Bstatic'
14526      fi
14527      ;;
14528
14529    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14530      lt_prog_compiler_wl_F77='-Wl,'
14531      lt_prog_compiler_pic_F77='-KPIC'
14532      lt_prog_compiler_static_F77='-Bstatic'
14533      ;;
14534
14535    unicos*)
14536      lt_prog_compiler_wl_F77='-Wl,'
14537      lt_prog_compiler_can_build_shared_F77=no
14538      ;;
14539
14540    uts4*)
14541      lt_prog_compiler_pic_F77='-pic'
14542      lt_prog_compiler_static_F77='-Bstatic'
14543      ;;
14544
14545    *)
14546      lt_prog_compiler_can_build_shared_F77=no
14547      ;;
14548    esac
14549  fi
14550
14551{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14552$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14553
14554#
14555# Check to make sure the PIC flag actually works.
14556#
14557if test -n "$lt_prog_compiler_pic_F77"; then
14558
14559{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14560$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14561if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14562  $as_echo_n "(cached) " >&6
14563else
14564  lt_cv_prog_compiler_pic_works_F77=no
14565  ac_outfile=conftest.$ac_objext
14566   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14567   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14568   # Insert the option either (1) after the last *FLAGS variable, or
14569   # (2) before a word containing "conftest.", or (3) at the end.
14570   # Note that $ac_compile itself does not contain backslashes and begins
14571   # with a dollar sign (not a hyphen), so the echo should work correctly.
14572   # The option is referenced via a variable to avoid confusing sed.
14573   lt_compile=`echo "$ac_compile" | $SED \
14574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576   -e 's:$: $lt_compiler_flag:'`
14577   (eval echo "\"\$as_me:14577: $lt_compile\"" >&5)
14578   (eval "$lt_compile" 2>conftest.err)
14579   ac_status=$?
14580   cat conftest.err >&5
14581   echo "$as_me:14581: \$? = $ac_status" >&5
14582   if (exit $ac_status) && test -s "$ac_outfile"; then
14583     # The compiler can only warn and ignore the option if not recognized
14584     # So say no if there are warnings other than the usual output.
14585     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14586     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14587     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14588       lt_cv_prog_compiler_pic_works_F77=yes
14589     fi
14590   fi
14591   $rm conftest*
14592
14593fi
14594{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14595$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14596
14597if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14598    case $lt_prog_compiler_pic_F77 in
14599     "" | " "*) ;;
14600     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14601     esac
14602else
14603    lt_prog_compiler_pic_F77=
14604     lt_prog_compiler_can_build_shared_F77=no
14605fi
14606
14607fi
14608case $host_os in
14609  # For platforms which do not support PIC, -DPIC is meaningless:
14610  *djgpp*)
14611    lt_prog_compiler_pic_F77=
14612    ;;
14613  *)
14614    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14615    ;;
14616esac
14617
14618#
14619# Check to make sure the static flag actually works.
14620#
14621wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14622{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14623$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14624if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14625  $as_echo_n "(cached) " >&6
14626else
14627  lt_cv_prog_compiler_static_works_F77=no
14628   save_LDFLAGS="$LDFLAGS"
14629   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14630   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14631   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14632     # The linker can only warn and ignore the option if not recognized
14633     # So say no if there are warnings
14634     if test -s conftest.err; then
14635       # Append any errors to the config.log.
14636       cat conftest.err 1>&5
14637       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14638       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14639       if diff conftest.exp conftest.er2 >/dev/null; then
14640         lt_cv_prog_compiler_static_works_F77=yes
14641       fi
14642     else
14643       lt_cv_prog_compiler_static_works_F77=yes
14644     fi
14645   fi
14646   $rm -r conftest*
14647   LDFLAGS="$save_LDFLAGS"
14648
14649fi
14650{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14651$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14652
14653if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14654    :
14655else
14656    lt_prog_compiler_static_F77=
14657fi
14658
14659
14660{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14662if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14663  $as_echo_n "(cached) " >&6
14664else
14665  lt_cv_prog_compiler_c_o_F77=no
14666   $rm -r conftest 2>/dev/null
14667   mkdir conftest
14668   cd conftest
14669   mkdir out
14670   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14671
14672   lt_compiler_flag="-o out/conftest2.$ac_objext"
14673   # Insert the option either (1) after the last *FLAGS variable, or
14674   # (2) before a word containing "conftest.", or (3) at the end.
14675   # Note that $ac_compile itself does not contain backslashes and begins
14676   # with a dollar sign (not a hyphen), so the echo should work correctly.
14677   lt_compile=`echo "$ac_compile" | $SED \
14678   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14679   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680   -e 's:$: $lt_compiler_flag:'`
14681   (eval echo "\"\$as_me:14681: $lt_compile\"" >&5)
14682   (eval "$lt_compile" 2>out/conftest.err)
14683   ac_status=$?
14684   cat out/conftest.err >&5
14685   echo "$as_me:14685: \$? = $ac_status" >&5
14686   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14687   then
14688     # The compiler can only warn and ignore the option if not recognized
14689     # So say no if there are warnings
14690     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14691     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14692     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14693       lt_cv_prog_compiler_c_o_F77=yes
14694     fi
14695   fi
14696   chmod u+w . 2>&5
14697   $rm conftest*
14698   # SGI C++ compiler will create directory out/ii_files/ for
14699   # template instantiation
14700   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14701   $rm out/* && rmdir out
14702   cd ..
14703   rmdir conftest
14704   $rm conftest*
14705
14706fi
14707{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14708$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14709
14710
14711hard_links="nottested"
14712if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14713  # do not overwrite the value of need_locks provided by the user
14714  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14715$as_echo_n "checking if we can lock with hard links... " >&6; }
14716  hard_links=yes
14717  $rm conftest*
14718  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14719  touch conftest.a
14720  ln conftest.a conftest.b 2>&5 || hard_links=no
14721  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14722  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14723$as_echo "$hard_links" >&6; }
14724  if test "$hard_links" = no; then
14725    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14726$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14727    need_locks=warn
14728  fi
14729else
14730  need_locks=no
14731fi
14732
14733{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14734$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14735
14736  runpath_var=
14737  allow_undefined_flag_F77=
14738  enable_shared_with_static_runtimes_F77=no
14739  archive_cmds_F77=
14740  archive_expsym_cmds_F77=
14741  old_archive_From_new_cmds_F77=
14742  old_archive_from_expsyms_cmds_F77=
14743  export_dynamic_flag_spec_F77=
14744  whole_archive_flag_spec_F77=
14745  thread_safe_flag_spec_F77=
14746  hardcode_libdir_flag_spec_F77=
14747  hardcode_libdir_flag_spec_ld_F77=
14748  hardcode_libdir_separator_F77=
14749  hardcode_direct_F77=no
14750  hardcode_minus_L_F77=no
14751  hardcode_shlibpath_var_F77=unsupported
14752  link_all_deplibs_F77=unknown
14753  hardcode_automatic_F77=no
14754  module_cmds_F77=
14755  module_expsym_cmds_F77=
14756  always_export_symbols_F77=no
14757  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14758  # include_expsyms should be a list of space-separated symbols to be *always*
14759  # included in the symbol list
14760  include_expsyms_F77=
14761  # exclude_expsyms can be an extended regexp of symbols to exclude
14762  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14763  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14764  # as well as any symbol that contains `d'.
14765  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14766  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14767  # platforms (ab)use it in PIC code, but their linkers get confused if
14768  # the symbol is explicitly referenced.  Since portable code cannot
14769  # rely on this symbol name, it's probably fine to never include it in
14770  # preloaded symbol tables.
14771  # Exclude shared library initialization/finalization symbols.
14772  extract_expsyms_cmds=
14773  # Just being paranoid about ensuring that cc_basename is set.
14774  for cc_temp in $compiler""; do
14775  case $cc_temp in
14776    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14777    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14778    \-*) ;;
14779    *) break;;
14780  esac
14781done
14782cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14783
14784  case $host_os in
14785  cygwin* | mingw* | pw32*)
14786    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14787    # When not using gcc, we currently assume that we are using
14788    # Microsoft Visual C++.
14789    if test "$GCC" != yes; then
14790      with_gnu_ld=no
14791    fi
14792    ;;
14793  interix*)
14794    # we just hope/assume this is gcc and not c89 (= MSVC++)
14795    with_gnu_ld=yes
14796    ;;
14797  openbsd*)
14798    with_gnu_ld=no
14799    ;;
14800  esac
14801
14802  ld_shlibs_F77=yes
14803  if test "$with_gnu_ld" = yes; then
14804    # If archive_cmds runs LD, not CC, wlarc should be empty
14805    wlarc='${wl}'
14806
14807    # Set some defaults for GNU ld with shared library support. These
14808    # are reset later if shared libraries are not supported. Putting them
14809    # here allows them to be overridden if necessary.
14810    runpath_var=LD_RUN_PATH
14811    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14812    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14813    # ancient GNU ld didn't support --whole-archive et. al.
14814    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14815	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14816      else
14817  	whole_archive_flag_spec_F77=
14818    fi
14819    supports_anon_versioning=no
14820    case `$LD -v 2>/dev/null` in
14821      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14822      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14823      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14824      *\ 2.11.*) ;; # other 2.11 versions
14825      *) supports_anon_versioning=yes ;;
14826    esac
14827
14828    # See if GNU ld supports shared libraries.
14829    case $host_os in
14830    aix[3-9]*)
14831      # On AIX/PPC, the GNU linker is very broken
14832      if test "$host_cpu" != ia64; then
14833	ld_shlibs_F77=no
14834	cat <<EOF 1>&2
14835
14836*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14837*** to be unable to reliably create shared libraries on AIX.
14838*** Therefore, libtool is disabling shared libraries support.  If you
14839*** really care for shared libraries, you may want to modify your PATH
14840*** so that a non-GNU linker is found, and then restart.
14841
14842EOF
14843      fi
14844      ;;
14845
14846    amigaos*)
14847      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)'
14848      hardcode_libdir_flag_spec_F77='-L$libdir'
14849      hardcode_minus_L_F77=yes
14850
14851      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14852      # that the semantics of dynamic libraries on AmigaOS, at least up
14853      # to version 4, is to share data among multiple programs linked
14854      # with the same dynamic library.  Since this doesn't match the
14855      # behavior of shared libraries on other platforms, we can't use
14856      # them.
14857      ld_shlibs_F77=no
14858      ;;
14859
14860    beos*)
14861      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862	allow_undefined_flag_F77=unsupported
14863	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14864	# support --undefined.  This deserves some investigation.  FIXME
14865	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866      else
14867	ld_shlibs_F77=no
14868      fi
14869      ;;
14870
14871    cygwin* | mingw* | pw32*)
14872      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14873      # as there is no search path for DLLs.
14874      hardcode_libdir_flag_spec_F77='-L$libdir'
14875      allow_undefined_flag_F77=unsupported
14876      always_export_symbols_F77=no
14877      enable_shared_with_static_runtimes_F77=yes
14878      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14879
14880      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14881        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14882	# If the export-symbols file already is a .def file (1st line
14883	# is EXPORTS), use it as is; otherwise, prepend...
14884	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14885	  cp $export_symbols $output_objdir/$soname.def;
14886	else
14887	  echo EXPORTS > $output_objdir/$soname.def;
14888	  cat $export_symbols >> $output_objdir/$soname.def;
14889	fi~
14890	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14891      else
14892	ld_shlibs_F77=no
14893      fi
14894      ;;
14895
14896    interix[3-9]*)
14897      hardcode_direct_F77=no
14898      hardcode_shlibpath_var_F77=no
14899      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14900      export_dynamic_flag_spec_F77='${wl}-E'
14901      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14902      # Instead, shared libraries are loaded at an image base (0x10000000 by
14903      # default) and relocated if they conflict, which is a slow very memory
14904      # consuming and fragmenting process.  To avoid this, we pick a random,
14905      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14906      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14907      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'
14908      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'
14909      ;;
14910
14911    gnu* | linux* | k*bsd*-gnu)
14912      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14913	tmp_addflag=
14914	case $cc_basename,$host_cpu in
14915	pgcc*)				# Portland Group C compiler
14916	  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'
14917	  tmp_addflag=' $pic_flag'
14918	  ;;
14919	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14920	  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'
14921	  tmp_addflag=' $pic_flag -Mnomain' ;;
14922	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14923	  tmp_addflag=' -i_dynamic' ;;
14924	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14925	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14926	ifc* | ifort*)			# Intel Fortran compiler
14927	  tmp_addflag=' -nofor_main' ;;
14928	esac
14929	case `$CC -V 2>&1 | sed 5q` in
14930	*Sun\ C*)			# Sun C 5.9
14931	  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'
14932	  tmp_sharedflag='-G' ;;
14933	*Sun\ F*)			# Sun Fortran 8.3
14934	  tmp_sharedflag='-G' ;;
14935	*)
14936	  tmp_sharedflag='-shared' ;;
14937	esac
14938	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939
14940	if test $supports_anon_versioning = yes; then
14941	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14942  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14943  $echo "local: *; };" >> $output_objdir/$libname.ver~
14944	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14945	fi
14946      else
14947	ld_shlibs_F77=no
14948      fi
14949      ;;
14950
14951    netbsd*)
14952      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14953	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14954	wlarc=
14955      else
14956	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14957	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14958      fi
14959      ;;
14960
14961    solaris*)
14962      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14963	ld_shlibs_F77=no
14964	cat <<EOF 1>&2
14965
14966*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14967*** create shared libraries on Solaris systems.  Therefore, libtool
14968*** is disabling shared libraries support.  We urge you to upgrade GNU
14969*** binutils to release 2.9.1 or newer.  Another option is to modify
14970*** your PATH or compiler configuration so that the native linker is
14971*** used, and then restart.
14972
14973EOF
14974      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14975	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14977      else
14978	ld_shlibs_F77=no
14979      fi
14980      ;;
14981
14982    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14983      case `$LD -v 2>&1` in
14984        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14985	ld_shlibs_F77=no
14986	cat <<_LT_EOF 1>&2
14987
14988*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14989*** reliably create shared libraries on SCO systems.  Therefore, libtool
14990*** is disabling shared libraries support.  We urge you to upgrade GNU
14991*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14992*** your PATH or compiler configuration so that the native linker is
14993*** used, and then restart.
14994
14995_LT_EOF
14996	;;
14997	*)
14998	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14999	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15000	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15001	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15002	  else
15003	    ld_shlibs_F77=no
15004	  fi
15005	;;
15006      esac
15007      ;;
15008
15009    sunos4*)
15010      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15011      wlarc=
15012      hardcode_direct_F77=yes
15013      hardcode_shlibpath_var_F77=no
15014      ;;
15015
15016    *)
15017      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15018	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15019	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15020      else
15021	ld_shlibs_F77=no
15022      fi
15023      ;;
15024    esac
15025
15026    if test "$ld_shlibs_F77" = no; then
15027      runpath_var=
15028      hardcode_libdir_flag_spec_F77=
15029      export_dynamic_flag_spec_F77=
15030      whole_archive_flag_spec_F77=
15031    fi
15032  else
15033    # PORTME fill in a description of your system's linker (not GNU ld)
15034    case $host_os in
15035    aix3*)
15036      allow_undefined_flag_F77=unsupported
15037      always_export_symbols_F77=yes
15038      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'
15039      # Note: this linker hardcodes the directories in LIBPATH if there
15040      # are no directories specified by -L.
15041      hardcode_minus_L_F77=yes
15042      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15043	# Neither direct hardcoding nor static linking is supported with a
15044	# broken collect2.
15045	hardcode_direct_F77=unsupported
15046      fi
15047      ;;
15048
15049    aix[4-9]*)
15050      if test "$host_cpu" = ia64; then
15051	# On IA64, the linker does run time linking by default, so we don't
15052	# have to do anything special.
15053	aix_use_runtimelinking=no
15054	exp_sym_flag='-Bexport'
15055	no_entry_flag=""
15056      else
15057	# If we're using GNU nm, then we don't want the "-C" option.
15058	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15059	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15060	  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'
15061	else
15062	  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'
15063	fi
15064	aix_use_runtimelinking=no
15065
15066	# Test if we are trying to use run time linking or normal
15067	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15068	# need to do runtime linking.
15069	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15070	  for ld_flag in $LDFLAGS; do
15071  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15072  	    aix_use_runtimelinking=yes
15073  	    break
15074  	  fi
15075	  done
15076	  ;;
15077	esac
15078
15079	exp_sym_flag='-bexport'
15080	no_entry_flag='-bnoentry'
15081      fi
15082
15083      # When large executables or shared objects are built, AIX ld can
15084      # have problems creating the table of contents.  If linking a library
15085      # or program results in "error TOC overflow" add -mminimal-toc to
15086      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15087      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15088
15089      archive_cmds_F77=''
15090      hardcode_direct_F77=yes
15091      hardcode_libdir_separator_F77=':'
15092      link_all_deplibs_F77=yes
15093
15094      if test "$GCC" = yes; then
15095	case $host_os in aix4.[012]|aix4.[012].*)
15096	# We only want to do this on AIX 4.2 and lower, the check
15097	# below for broken collect2 doesn't work under 4.3+
15098	  collect2name=`${CC} -print-prog-name=collect2`
15099	  if test -f "$collect2name" && \
15100  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15101	  then
15102  	  # We have reworked collect2
15103  	  :
15104	  else
15105  	  # We have old collect2
15106  	  hardcode_direct_F77=unsupported
15107  	  # It fails to find uninstalled libraries when the uninstalled
15108  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15109  	  # to unsupported forces relinking
15110  	  hardcode_minus_L_F77=yes
15111  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15112  	  hardcode_libdir_separator_F77=
15113	  fi
15114	  ;;
15115	esac
15116	shared_flag='-shared'
15117	if test "$aix_use_runtimelinking" = yes; then
15118	  shared_flag="$shared_flag "'${wl}-G'
15119	fi
15120      else
15121	# not using gcc
15122	if test "$host_cpu" = ia64; then
15123  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15124  	# chokes on -Wl,-G. The following line is correct:
15125	  shared_flag='-G'
15126	else
15127	  if test "$aix_use_runtimelinking" = yes; then
15128	    shared_flag='${wl}-G'
15129	  else
15130	    shared_flag='${wl}-bM:SRE'
15131	  fi
15132	fi
15133      fi
15134
15135      # It seems that -bexpall does not export symbols beginning with
15136      # underscore (_), so it is better to generate a list of symbols to export.
15137      always_export_symbols_F77=yes
15138      if test "$aix_use_runtimelinking" = yes; then
15139	# Warning - without using the other runtime loading flags (-brtl),
15140	# -berok will link without error, but may produce a broken library.
15141	allow_undefined_flag_F77='-berok'
15142       # Determine the default libpath from the value encoded in an empty executable.
15143       cat >conftest.$ac_ext <<_ACEOF
15144      program main
15145
15146      end
15147_ACEOF
15148rm -f conftest.$ac_objext conftest$ac_exeext
15149if { (ac_try="$ac_link"
15150case "(($ac_try" in
15151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152  *) ac_try_echo=$ac_try;;
15153esac
15154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155$as_echo "$ac_try_echo") >&5
15156  (eval "$ac_link") 2>conftest.er1
15157  ac_status=$?
15158  grep -v '^ *+' conftest.er1 >conftest.err
15159  rm -f conftest.er1
15160  cat conftest.err >&5
15161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162  (exit $ac_status); } && {
15163	 test -z "$ac_f77_werror_flag" ||
15164	 test ! -s conftest.err
15165       } && test -s conftest$ac_exeext && {
15166	 test "$cross_compiling" = yes ||
15167	 $as_test_x conftest$ac_exeext
15168       }; then
15169
15170lt_aix_libpath_sed='
15171    /Import File Strings/,/^$/ {
15172	/^0/ {
15173	    s/^0  *\(.*\)$/\1/
15174	    p
15175	}
15176    }'
15177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15178# Check for a 64-bit object if we didn't find anything.
15179if test -z "$aix_libpath"; then
15180  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181fi
15182else
15183  $as_echo "$as_me: failed program was:" >&5
15184sed 's/^/| /' conftest.$ac_ext >&5
15185
15186
15187fi
15188
15189rm -rf conftest.dSYM
15190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15191      conftest$ac_exeext conftest.$ac_ext
15192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15193
15194       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15195	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"
15196       else
15197	if test "$host_cpu" = ia64; then
15198	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15199	  allow_undefined_flag_F77="-z nodefs"
15200	  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"
15201	else
15202	 # Determine the default libpath from the value encoded in an empty executable.
15203	 cat >conftest.$ac_ext <<_ACEOF
15204      program main
15205
15206      end
15207_ACEOF
15208rm -f conftest.$ac_objext conftest$ac_exeext
15209if { (ac_try="$ac_link"
15210case "(($ac_try" in
15211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212  *) ac_try_echo=$ac_try;;
15213esac
15214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15215$as_echo "$ac_try_echo") >&5
15216  (eval "$ac_link") 2>conftest.er1
15217  ac_status=$?
15218  grep -v '^ *+' conftest.er1 >conftest.err
15219  rm -f conftest.er1
15220  cat conftest.err >&5
15221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222  (exit $ac_status); } && {
15223	 test -z "$ac_f77_werror_flag" ||
15224	 test ! -s conftest.err
15225       } && test -s conftest$ac_exeext && {
15226	 test "$cross_compiling" = yes ||
15227	 $as_test_x conftest$ac_exeext
15228       }; then
15229
15230lt_aix_libpath_sed='
15231    /Import File Strings/,/^$/ {
15232	/^0/ {
15233	    s/^0  *\(.*\)$/\1/
15234	    p
15235	}
15236    }'
15237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15238# Check for a 64-bit object if we didn't find anything.
15239if test -z "$aix_libpath"; then
15240  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15241fi
15242else
15243  $as_echo "$as_me: failed program was:" >&5
15244sed 's/^/| /' conftest.$ac_ext >&5
15245
15246
15247fi
15248
15249rm -rf conftest.dSYM
15250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15251      conftest$ac_exeext conftest.$ac_ext
15252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15253
15254	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15255	  # Warning - without using the other run time loading flags,
15256	  # -berok will link without error, but may produce a broken library.
15257	  no_undefined_flag_F77=' ${wl}-bernotok'
15258	  allow_undefined_flag_F77=' ${wl}-berok'
15259	  # Exported symbols can be pulled into shared objects from archives
15260	  whole_archive_flag_spec_F77='$convenience'
15261	  archive_cmds_need_lc_F77=yes
15262	  # This is similar to how AIX traditionally builds its shared libraries.
15263	  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'
15264	fi
15265      fi
15266      ;;
15267
15268    amigaos*)
15269      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)'
15270      hardcode_libdir_flag_spec_F77='-L$libdir'
15271      hardcode_minus_L_F77=yes
15272      # see comment about different semantics on the GNU ld section
15273      ld_shlibs_F77=no
15274      ;;
15275
15276    bsdi[45]*)
15277      export_dynamic_flag_spec_F77=-rdynamic
15278      ;;
15279
15280    cygwin* | mingw* | pw32*)
15281      # When not using gcc, we currently assume that we are using
15282      # Microsoft Visual C++.
15283      # hardcode_libdir_flag_spec is actually meaningless, as there is
15284      # no search path for DLLs.
15285      hardcode_libdir_flag_spec_F77=' '
15286      allow_undefined_flag_F77=unsupported
15287      # Tell ltmain to make .lib files, not .a files.
15288      libext=lib
15289      # Tell ltmain to make .dll files, not .so files.
15290      shrext_cmds=".dll"
15291      # FIXME: Setting linknames here is a bad hack.
15292      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15293      # The linker will automatically build a .lib file if we build a DLL.
15294      old_archive_From_new_cmds_F77='true'
15295      # FIXME: Should let the user specify the lib program.
15296      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15297      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15298      enable_shared_with_static_runtimes_F77=yes
15299      ;;
15300
15301    darwin* | rhapsody*)
15302      case $host_os in
15303        rhapsody* | darwin1.[012])
15304         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15305         ;;
15306       *) # Darwin 1.3 on
15307         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15308           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15309         else
15310           case ${MACOSX_DEPLOYMENT_TARGET} in
15311             10.[012])
15312               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15313               ;;
15314             10.*)
15315               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15316               ;;
15317           esac
15318         fi
15319         ;;
15320      esac
15321      archive_cmds_need_lc_F77=no
15322      hardcode_direct_F77=no
15323      hardcode_automatic_F77=yes
15324      hardcode_shlibpath_var_F77=unsupported
15325      whole_archive_flag_spec_F77=''
15326      link_all_deplibs_F77=yes
15327    if test "$GCC" = yes ; then
15328    	output_verbose_link_cmd='echo'
15329        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}"
15330        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15331        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}"
15332        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}"
15333    else
15334      case $cc_basename in
15335        xlc*)
15336         output_verbose_link_cmd='echo'
15337         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15338         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15339          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15340         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}'
15341          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}'
15342          ;;
15343       *)
15344         ld_shlibs_F77=no
15345          ;;
15346      esac
15347    fi
15348      ;;
15349
15350    dgux*)
15351      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15352      hardcode_libdir_flag_spec_F77='-L$libdir'
15353      hardcode_shlibpath_var_F77=no
15354      ;;
15355
15356    freebsd1*)
15357      ld_shlibs_F77=no
15358      ;;
15359
15360    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15361    # support.  Future versions do this automatically, but an explicit c++rt0.o
15362    # does not break anything, and helps significantly (at the cost of a little
15363    # extra space).
15364    freebsd2.2*)
15365      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15366      hardcode_libdir_flag_spec_F77='-R$libdir'
15367      hardcode_direct_F77=yes
15368      hardcode_shlibpath_var_F77=no
15369      ;;
15370
15371    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15372    freebsd2*)
15373      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15374      hardcode_direct_F77=yes
15375      hardcode_minus_L_F77=yes
15376      hardcode_shlibpath_var_F77=no
15377      ;;
15378
15379    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15380    freebsd* | dragonfly*)
15381      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15382      hardcode_libdir_flag_spec_F77='-R$libdir'
15383      hardcode_direct_F77=yes
15384      hardcode_shlibpath_var_F77=no
15385      ;;
15386
15387    hpux9*)
15388      if test "$GCC" = yes; then
15389	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'
15390      else
15391	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'
15392      fi
15393      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15394      hardcode_libdir_separator_F77=:
15395      hardcode_direct_F77=yes
15396
15397      # hardcode_minus_L: Not really in the search PATH,
15398      # but as the default location of the library.
15399      hardcode_minus_L_F77=yes
15400      export_dynamic_flag_spec_F77='${wl}-E'
15401      ;;
15402
15403    hpux10*)
15404      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15405	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15406      else
15407	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15408      fi
15409      if test "$with_gnu_ld" = no; then
15410	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15411	hardcode_libdir_separator_F77=:
15412
15413	hardcode_direct_F77=yes
15414	export_dynamic_flag_spec_F77='${wl}-E'
15415
15416	# hardcode_minus_L: Not really in the search PATH,
15417	# but as the default location of the library.
15418	hardcode_minus_L_F77=yes
15419      fi
15420      ;;
15421
15422    hpux11*)
15423      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15424	case $host_cpu in
15425	hppa*64*)
15426	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427	  ;;
15428	ia64*)
15429	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15430	  ;;
15431	*)
15432	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433	  ;;
15434	esac
15435      else
15436	case $host_cpu in
15437	hppa*64*)
15438	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439	  ;;
15440	ia64*)
15441	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15442	  ;;
15443	*)
15444	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15445	  ;;
15446	esac
15447      fi
15448      if test "$with_gnu_ld" = no; then
15449	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15450	hardcode_libdir_separator_F77=:
15451
15452	case $host_cpu in
15453	hppa*64*|ia64*)
15454	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15455	  hardcode_direct_F77=no
15456	  hardcode_shlibpath_var_F77=no
15457	  ;;
15458	*)
15459	  hardcode_direct_F77=yes
15460	  export_dynamic_flag_spec_F77='${wl}-E'
15461
15462	  # hardcode_minus_L: Not really in the search PATH,
15463	  # but as the default location of the library.
15464	  hardcode_minus_L_F77=yes
15465	  ;;
15466	esac
15467      fi
15468      ;;
15469
15470    irix5* | irix6* | nonstopux*)
15471      if test "$GCC" = yes; then
15472	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'
15473      else
15474	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'
15475	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15476      fi
15477      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15478      hardcode_libdir_separator_F77=:
15479      link_all_deplibs_F77=yes
15480      ;;
15481
15482    netbsd*)
15483      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15484	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15485      else
15486	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15487      fi
15488      hardcode_libdir_flag_spec_F77='-R$libdir'
15489      hardcode_direct_F77=yes
15490      hardcode_shlibpath_var_F77=no
15491      ;;
15492
15493    newsos6)
15494      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15495      hardcode_direct_F77=yes
15496      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15497      hardcode_libdir_separator_F77=:
15498      hardcode_shlibpath_var_F77=no
15499      ;;
15500
15501    openbsd*)
15502      if test -f /usr/libexec/ld.so; then
15503	hardcode_direct_F77=yes
15504	hardcode_shlibpath_var_F77=no
15505	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15506	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15507	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15508	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15509	  export_dynamic_flag_spec_F77='${wl}-E'
15510	else
15511	  case $host_os in
15512	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15513	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15514	     hardcode_libdir_flag_spec_F77='-R$libdir'
15515	     ;;
15516	   *)
15517	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15518	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15519	     ;;
15520	  esac
15521        fi
15522      else
15523	ld_shlibs_F77=no
15524      fi
15525      ;;
15526
15527    os2*)
15528      hardcode_libdir_flag_spec_F77='-L$libdir'
15529      hardcode_minus_L_F77=yes
15530      allow_undefined_flag_F77=unsupported
15531      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'
15532      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15533      ;;
15534
15535    osf3*)
15536      if test "$GCC" = yes; then
15537	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15538	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'
15539      else
15540	allow_undefined_flag_F77=' -expect_unresolved \*'
15541	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'
15542      fi
15543      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15544      hardcode_libdir_separator_F77=:
15545      ;;
15546
15547    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15548      if test "$GCC" = yes; then
15549	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15550	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'
15551	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15552      else
15553	allow_undefined_flag_F77=' -expect_unresolved \*'
15554	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'
15555	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~
15556	$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'
15557
15558	# Both c and cxx compiler support -rpath directly
15559	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15560      fi
15561      hardcode_libdir_separator_F77=:
15562      ;;
15563
15564    solaris*)
15565      no_undefined_flag_F77=' -z text'
15566      if test "$GCC" = yes; then
15567	wlarc='${wl}'
15568	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15570	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15571      else
15572	wlarc=''
15573	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15575  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15576      fi
15577      hardcode_libdir_flag_spec_F77='-R$libdir'
15578      hardcode_shlibpath_var_F77=no
15579      case $host_os in
15580      solaris2.[0-5] | solaris2.[0-5].*) ;;
15581      *)
15582	# The compiler driver will combine and reorder linker options,
15583	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15584	# but is careful enough not to reorder.
15585 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15586	if test "$GCC" = yes; then
15587	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15588	else
15589	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15590	fi
15591	;;
15592      esac
15593      link_all_deplibs_F77=yes
15594      ;;
15595
15596    sunos4*)
15597      if test "x$host_vendor" = xsequent; then
15598	# Use $CC to link under sequent, because it throws in some extra .o
15599	# files that make .init and .fini sections work.
15600	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15601      else
15602	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15603      fi
15604      hardcode_libdir_flag_spec_F77='-L$libdir'
15605      hardcode_direct_F77=yes
15606      hardcode_minus_L_F77=yes
15607      hardcode_shlibpath_var_F77=no
15608      ;;
15609
15610    sysv4)
15611      case $host_vendor in
15612	sni)
15613	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614	  hardcode_direct_F77=yes # is this really true???
15615	;;
15616	siemens)
15617	  ## LD is ld it makes a PLAMLIB
15618	  ## CC just makes a GrossModule.
15619	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15620	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15621	  hardcode_direct_F77=no
15622        ;;
15623	motorola)
15624	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15626	;;
15627      esac
15628      runpath_var='LD_RUN_PATH'
15629      hardcode_shlibpath_var_F77=no
15630      ;;
15631
15632    sysv4.3*)
15633      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634      hardcode_shlibpath_var_F77=no
15635      export_dynamic_flag_spec_F77='-Bexport'
15636      ;;
15637
15638    sysv4*MP*)
15639      if test -d /usr/nec; then
15640	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641	hardcode_shlibpath_var_F77=no
15642	runpath_var=LD_RUN_PATH
15643	hardcode_runpath_var=yes
15644	ld_shlibs_F77=yes
15645      fi
15646      ;;
15647
15648    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15649      no_undefined_flag_F77='${wl}-z,text'
15650      archive_cmds_need_lc_F77=no
15651      hardcode_shlibpath_var_F77=no
15652      runpath_var='LD_RUN_PATH'
15653
15654      if test "$GCC" = yes; then
15655	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15656	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657      else
15658	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15660      fi
15661      ;;
15662
15663    sysv5* | sco3.2v5* | sco5v6*)
15664      # Note: We can NOT use -z defs as we might desire, because we do not
15665      # link with -lc, and that would cause any symbols used from libc to
15666      # always be unresolved, which means just about no library would
15667      # ever link correctly.  If we're not using GNU ld we use -z text
15668      # though, which does catch some bad symbols but isn't as heavy-handed
15669      # as -z defs.
15670      no_undefined_flag_F77='${wl}-z,text'
15671      allow_undefined_flag_F77='${wl}-z,nodefs'
15672      archive_cmds_need_lc_F77=no
15673      hardcode_shlibpath_var_F77=no
15674      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15675      hardcode_libdir_separator_F77=':'
15676      link_all_deplibs_F77=yes
15677      export_dynamic_flag_spec_F77='${wl}-Bexport'
15678      runpath_var='LD_RUN_PATH'
15679
15680      if test "$GCC" = yes; then
15681	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15682	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15683      else
15684	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686      fi
15687      ;;
15688
15689    uts4*)
15690      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691      hardcode_libdir_flag_spec_F77='-L$libdir'
15692      hardcode_shlibpath_var_F77=no
15693      ;;
15694
15695    *)
15696      ld_shlibs_F77=no
15697      ;;
15698    esac
15699  fi
15700
15701{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15702$as_echo "$ld_shlibs_F77" >&6; }
15703test "$ld_shlibs_F77" = no && can_build_shared=no
15704
15705#
15706# Do we need to explicitly link libc?
15707#
15708case "x$archive_cmds_need_lc_F77" in
15709x|xyes)
15710  # Assume -lc should be added
15711  archive_cmds_need_lc_F77=yes
15712
15713  if test "$enable_shared" = yes && test "$GCC" = yes; then
15714    case $archive_cmds_F77 in
15715    *'~'*)
15716      # FIXME: we may have to deal with multi-command sequences.
15717      ;;
15718    '$CC '*)
15719      # Test whether the compiler implicitly links with -lc since on some
15720      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15721      # to ld, don't add -lc before -lgcc.
15722      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15723$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15724      $rm conftest*
15725      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726
15727      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728  (eval $ac_compile) 2>&5
15729  ac_status=$?
15730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731  (exit $ac_status); } 2>conftest.err; then
15732        soname=conftest
15733        lib=conftest
15734        libobjs=conftest.$ac_objext
15735        deplibs=
15736        wl=$lt_prog_compiler_wl_F77
15737	pic_flag=$lt_prog_compiler_pic_F77
15738        compiler_flags=-v
15739        linker_flags=-v
15740        verstring=
15741        output_objdir=.
15742        libname=conftest
15743        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15744        allow_undefined_flag_F77=
15745        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15746  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15747  ac_status=$?
15748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749  (exit $ac_status); }
15750        then
15751	  archive_cmds_need_lc_F77=no
15752        else
15753	  archive_cmds_need_lc_F77=yes
15754        fi
15755        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15756      else
15757        cat conftest.err 1>&5
15758      fi
15759      $rm conftest*
15760      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15761$as_echo "$archive_cmds_need_lc_F77" >&6; }
15762      ;;
15763    esac
15764  fi
15765  ;;
15766esac
15767
15768{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15769$as_echo_n "checking dynamic linker characteristics... " >&6; }
15770library_names_spec=
15771libname_spec='lib$name'
15772soname_spec=
15773shrext_cmds=".so"
15774postinstall_cmds=
15775postuninstall_cmds=
15776finish_cmds=
15777finish_eval=
15778shlibpath_var=
15779shlibpath_overrides_runpath=unknown
15780version_type=none
15781dynamic_linker="$host_os ld.so"
15782sys_lib_dlsearch_path_spec="/lib /usr/lib"
15783
15784need_lib_prefix=unknown
15785hardcode_into_libs=no
15786
15787# when you set need_version to no, make sure it does not cause -set_version
15788# flags to be left without arguments
15789need_version=unknown
15790
15791case $host_os in
15792aix3*)
15793  version_type=linux
15794  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15795  shlibpath_var=LIBPATH
15796
15797  # AIX 3 has no versioning support, so we append a major version to the name.
15798  soname_spec='${libname}${release}${shared_ext}$major'
15799  ;;
15800
15801aix[4-9]*)
15802  version_type=linux
15803  need_lib_prefix=no
15804  need_version=no
15805  hardcode_into_libs=yes
15806  if test "$host_cpu" = ia64; then
15807    # AIX 5 supports IA64
15808    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15809    shlibpath_var=LD_LIBRARY_PATH
15810  else
15811    # With GCC up to 2.95.x, collect2 would create an import file
15812    # for dependence libraries.  The import file would start with
15813    # the line `#! .'.  This would cause the generated library to
15814    # depend on `.', always an invalid library.  This was fixed in
15815    # development snapshots of GCC prior to 3.0.
15816    case $host_os in
15817      aix4 | aix4.[01] | aix4.[01].*)
15818      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15819	   echo ' yes '
15820	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15821	:
15822      else
15823	can_build_shared=no
15824      fi
15825      ;;
15826    esac
15827    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15828    # soname into executable. Probably we can add versioning support to
15829    # collect2, so additional links can be useful in future.
15830    if test "$aix_use_runtimelinking" = yes; then
15831      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15832      # instead of lib<name>.a to let people know that these are not
15833      # typical AIX shared libraries.
15834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835    else
15836      # We preserve .a as extension for shared libraries through AIX4.2
15837      # and later when we are not doing run time linking.
15838      library_names_spec='${libname}${release}.a $libname.a'
15839      soname_spec='${libname}${release}${shared_ext}$major'
15840    fi
15841    shlibpath_var=LIBPATH
15842  fi
15843  ;;
15844
15845amigaos*)
15846  library_names_spec='$libname.ixlibrary $libname.a'
15847  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15848  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'
15849  ;;
15850
15851beos*)
15852  library_names_spec='${libname}${shared_ext}'
15853  dynamic_linker="$host_os ld.so"
15854  shlibpath_var=LIBRARY_PATH
15855  ;;
15856
15857bsdi[45]*)
15858  version_type=linux
15859  need_version=no
15860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861  soname_spec='${libname}${release}${shared_ext}$major'
15862  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15863  shlibpath_var=LD_LIBRARY_PATH
15864  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15865  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15866  # the default ld.so.conf also contains /usr/contrib/lib and
15867  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15868  # libtool to hard-code these into programs
15869  ;;
15870
15871cygwin* | mingw* | pw32*)
15872  version_type=windows
15873  shrext_cmds=".dll"
15874  need_version=no
15875  need_lib_prefix=no
15876
15877  case $GCC,$host_os in
15878  yes,cygwin* | yes,mingw* | yes,pw32*)
15879    library_names_spec='$libname.dll.a'
15880    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15881    postinstall_cmds='base_file=`basename \${file}`~
15882      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15883      dldir=$destdir/`dirname \$dlpath`~
15884      test -d \$dldir || mkdir -p \$dldir~
15885      $install_prog $dir/$dlname \$dldir/$dlname~
15886      chmod a+x \$dldir/$dlname'
15887    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15888      dlpath=$dir/\$dldll~
15889       $rm \$dlpath'
15890    shlibpath_overrides_runpath=yes
15891
15892    case $host_os in
15893    cygwin*)
15894      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15895      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15896      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15897      ;;
15898    mingw*)
15899      # MinGW DLLs use traditional 'lib' prefix
15900      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15901      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15902      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15903        # It is most probably a Windows format PATH printed by
15904        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15905        # path with ; separators, and with drive letters. We can handle the
15906        # drive letters (cygwin fileutils understands them), so leave them,
15907        # especially as we might pass files found there to a mingw objdump,
15908        # which wouldn't understand a cygwinified path. Ahh.
15909        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15910      else
15911        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15912      fi
15913      ;;
15914    pw32*)
15915      # pw32 DLLs use 'pw' prefix rather than 'lib'
15916      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15917      ;;
15918    esac
15919    ;;
15920
15921  *)
15922    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15923    ;;
15924  esac
15925  dynamic_linker='Win32 ld.exe'
15926  # FIXME: first we should search . and the directory the executable is in
15927  shlibpath_var=PATH
15928  ;;
15929
15930darwin* | rhapsody*)
15931  dynamic_linker="$host_os dyld"
15932  version_type=darwin
15933  need_lib_prefix=no
15934  need_version=no
15935  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15936  soname_spec='${libname}${release}${major}$shared_ext'
15937  shlibpath_overrides_runpath=yes
15938  shlibpath_var=DYLD_LIBRARY_PATH
15939  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15940
15941  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15942  ;;
15943
15944dgux*)
15945  version_type=linux
15946  need_lib_prefix=no
15947  need_version=no
15948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15949  soname_spec='${libname}${release}${shared_ext}$major'
15950  shlibpath_var=LD_LIBRARY_PATH
15951  ;;
15952
15953freebsd1*)
15954  dynamic_linker=no
15955  ;;
15956
15957freebsd* | dragonfly*)
15958  # DragonFly does not have aout.  When/if they implement a new
15959  # versioning mechanism, adjust this.
15960  if test -x /usr/bin/objformat; then
15961    objformat=`/usr/bin/objformat`
15962  else
15963    case $host_os in
15964    freebsd[123]*) objformat=aout ;;
15965    *) objformat=elf ;;
15966    esac
15967  fi
15968  version_type=freebsd-$objformat
15969  case $version_type in
15970    freebsd-elf*)
15971      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15972      need_version=no
15973      need_lib_prefix=no
15974      ;;
15975    freebsd-*)
15976      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15977      need_version=yes
15978      ;;
15979  esac
15980  shlibpath_var=LD_LIBRARY_PATH
15981  case $host_os in
15982  freebsd2*)
15983    shlibpath_overrides_runpath=yes
15984    ;;
15985  freebsd3.[01]* | freebsdelf3.[01]*)
15986    shlibpath_overrides_runpath=yes
15987    hardcode_into_libs=yes
15988    ;;
15989  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15990  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15991    shlibpath_overrides_runpath=no
15992    hardcode_into_libs=yes
15993    ;;
15994  *) # from 4.6 on, and DragonFly
15995    shlibpath_overrides_runpath=yes
15996    hardcode_into_libs=yes
15997    ;;
15998  esac
15999  ;;
16000
16001gnu*)
16002  version_type=linux
16003  need_lib_prefix=no
16004  need_version=no
16005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16006  soname_spec='${libname}${release}${shared_ext}$major'
16007  shlibpath_var=LD_LIBRARY_PATH
16008  hardcode_into_libs=yes
16009  ;;
16010
16011hpux9* | hpux10* | hpux11*)
16012  # Give a soname corresponding to the major version so that dld.sl refuses to
16013  # link against other versions.
16014  version_type=sunos
16015  need_lib_prefix=no
16016  need_version=no
16017  case $host_cpu in
16018  ia64*)
16019    shrext_cmds='.so'
16020    hardcode_into_libs=yes
16021    dynamic_linker="$host_os dld.so"
16022    shlibpath_var=LD_LIBRARY_PATH
16023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025    soname_spec='${libname}${release}${shared_ext}$major'
16026    if test "X$HPUX_IA64_MODE" = X32; then
16027      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16028    else
16029      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16030    fi
16031    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16032    ;;
16033   hppa*64*)
16034     shrext_cmds='.sl'
16035     hardcode_into_libs=yes
16036     dynamic_linker="$host_os dld.sl"
16037     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16038     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040     soname_spec='${libname}${release}${shared_ext}$major'
16041     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16043     ;;
16044   *)
16045    shrext_cmds='.sl'
16046    dynamic_linker="$host_os dld.sl"
16047    shlibpath_var=SHLIB_PATH
16048    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050    soname_spec='${libname}${release}${shared_ext}$major'
16051    ;;
16052  esac
16053  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16054  postinstall_cmds='chmod 555 $lib'
16055  ;;
16056
16057interix[3-9]*)
16058  version_type=linux
16059  need_lib_prefix=no
16060  need_version=no
16061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16062  soname_spec='${libname}${release}${shared_ext}$major'
16063  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16064  shlibpath_var=LD_LIBRARY_PATH
16065  shlibpath_overrides_runpath=no
16066  hardcode_into_libs=yes
16067  ;;
16068
16069irix5* | irix6* | nonstopux*)
16070  case $host_os in
16071    nonstopux*) version_type=nonstopux ;;
16072    *)
16073	if test "$lt_cv_prog_gnu_ld" = yes; then
16074		version_type=linux
16075	else
16076		version_type=irix
16077	fi ;;
16078  esac
16079  need_lib_prefix=no
16080  need_version=no
16081  soname_spec='${libname}${release}${shared_ext}$major'
16082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16083  case $host_os in
16084  irix5* | nonstopux*)
16085    libsuff= shlibsuff=
16086    ;;
16087  *)
16088    case $LD in # libtool.m4 will add one of these switches to LD
16089    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090      libsuff= shlibsuff= libmagic=32-bit;;
16091    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092      libsuff=32 shlibsuff=N32 libmagic=N32;;
16093    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095    *) libsuff= shlibsuff= libmagic=never-match;;
16096    esac
16097    ;;
16098  esac
16099  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100  shlibpath_overrides_runpath=no
16101  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103  hardcode_into_libs=yes
16104  ;;
16105
16106# No shared lib support for Linux oldld, aout, or coff.
16107linux*oldld* | linux*aout* | linux*coff*)
16108  dynamic_linker=no
16109  ;;
16110
16111# This must be Linux ELF.
16112linux* | k*bsd*-gnu)
16113  version_type=linux
16114  need_lib_prefix=no
16115  need_version=no
16116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117  soname_spec='${libname}${release}${shared_ext}$major'
16118  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119  shlibpath_var=LD_LIBRARY_PATH
16120  shlibpath_overrides_runpath=no
16121  # This implies no fast_install, which is unacceptable.
16122  # Some rework will be needed to allow for fast_install
16123  # before this can be enabled.
16124  hardcode_into_libs=yes
16125  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16126  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16127
16128  # Append ld.so.conf contents to the search path
16129  if test -f /etc/ld.so.conf; then
16130    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' ' '`
16131    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16132  fi
16133
16134  # We used to test for /lib/ld.so.1 and disable shared libraries on
16135  # powerpc, because MkLinux only supported shared libraries with the
16136  # GNU dynamic linker.  Since this was broken with cross compilers,
16137  # most powerpc-linux boxes support dynamic linking these days and
16138  # people can always --disable-shared, the test was removed, and we
16139  # assume the GNU/Linux dynamic linker is in use.
16140  dynamic_linker='GNU/Linux ld.so'
16141  ;;
16142
16143netbsd*)
16144  version_type=sunos
16145  need_lib_prefix=no
16146  need_version=no
16147  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16149    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16150    dynamic_linker='NetBSD (a.out) ld.so'
16151  else
16152    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16153    soname_spec='${libname}${release}${shared_ext}$major'
16154    dynamic_linker='NetBSD ld.elf_so'
16155  fi
16156  shlibpath_var=LD_LIBRARY_PATH
16157  shlibpath_overrides_runpath=yes
16158  hardcode_into_libs=yes
16159  ;;
16160
16161newsos6)
16162  version_type=linux
16163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164  shlibpath_var=LD_LIBRARY_PATH
16165  shlibpath_overrides_runpath=yes
16166  ;;
16167
16168nto-qnx*)
16169  version_type=linux
16170  need_lib_prefix=no
16171  need_version=no
16172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173  soname_spec='${libname}${release}${shared_ext}$major'
16174  shlibpath_var=LD_LIBRARY_PATH
16175  shlibpath_overrides_runpath=yes
16176  ;;
16177
16178openbsd*)
16179  version_type=sunos
16180  sys_lib_dlsearch_path_spec="/usr/lib"
16181  need_lib_prefix=no
16182  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16183  case $host_os in
16184    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16185    *)                         need_version=no  ;;
16186  esac
16187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16188  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16189  shlibpath_var=LD_LIBRARY_PATH
16190  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16191    case $host_os in
16192      openbsd2.[89] | openbsd2.[89].*)
16193	shlibpath_overrides_runpath=no
16194	;;
16195      *)
16196	shlibpath_overrides_runpath=yes
16197	;;
16198      esac
16199  else
16200    shlibpath_overrides_runpath=yes
16201  fi
16202  ;;
16203
16204os2*)
16205  libname_spec='$name'
16206  shrext_cmds=".dll"
16207  need_lib_prefix=no
16208  library_names_spec='$libname${shared_ext} $libname.a'
16209  dynamic_linker='OS/2 ld.exe'
16210  shlibpath_var=LIBPATH
16211  ;;
16212
16213osf3* | osf4* | osf5*)
16214  version_type=osf
16215  need_lib_prefix=no
16216  need_version=no
16217  soname_spec='${libname}${release}${shared_ext}$major'
16218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219  shlibpath_var=LD_LIBRARY_PATH
16220  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16221  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16222  ;;
16223
16224rdos*)
16225  dynamic_linker=no
16226  ;;
16227
16228solaris*)
16229  version_type=linux
16230  need_lib_prefix=no
16231  need_version=no
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233  soname_spec='${libname}${release}${shared_ext}$major'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  shlibpath_overrides_runpath=yes
16236  hardcode_into_libs=yes
16237  # ldd complains unless libraries are executable
16238  postinstall_cmds='chmod +x $lib'
16239  ;;
16240
16241sunos4*)
16242  version_type=sunos
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=yes
16247  if test "$with_gnu_ld" = yes; then
16248    need_lib_prefix=no
16249  fi
16250  need_version=yes
16251  ;;
16252
16253sysv4 | sysv4.3*)
16254  version_type=linux
16255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256  soname_spec='${libname}${release}${shared_ext}$major'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  case $host_vendor in
16259    sni)
16260      shlibpath_overrides_runpath=no
16261      need_lib_prefix=no
16262      export_dynamic_flag_spec='${wl}-Blargedynsym'
16263      runpath_var=LD_RUN_PATH
16264      ;;
16265    siemens)
16266      need_lib_prefix=no
16267      ;;
16268    motorola)
16269      need_lib_prefix=no
16270      need_version=no
16271      shlibpath_overrides_runpath=no
16272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16273      ;;
16274  esac
16275  ;;
16276
16277sysv4*MP*)
16278  if test -d /usr/nec ;then
16279    version_type=linux
16280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16281    soname_spec='$libname${shared_ext}.$major'
16282    shlibpath_var=LD_LIBRARY_PATH
16283  fi
16284  ;;
16285
16286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16287  version_type=freebsd-elf
16288  need_lib_prefix=no
16289  need_version=no
16290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16291  soname_spec='${libname}${release}${shared_ext}$major'
16292  shlibpath_var=LD_LIBRARY_PATH
16293  hardcode_into_libs=yes
16294  if test "$with_gnu_ld" = yes; then
16295    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16296    shlibpath_overrides_runpath=no
16297  else
16298    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16299    shlibpath_overrides_runpath=yes
16300    case $host_os in
16301      sco3.2v5*)
16302        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16303	;;
16304    esac
16305  fi
16306  sys_lib_dlsearch_path_spec='/usr/lib'
16307  ;;
16308
16309uts4*)
16310  version_type=linux
16311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312  soname_spec='${libname}${release}${shared_ext}$major'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  ;;
16315
16316*)
16317  dynamic_linker=no
16318  ;;
16319esac
16320{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16321$as_echo "$dynamic_linker" >&6; }
16322test "$dynamic_linker" = no && can_build_shared=no
16323
16324if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16325  $as_echo_n "(cached) " >&6
16326else
16327  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16328fi
16329
16330sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16331if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16332  $as_echo_n "(cached) " >&6
16333else
16334  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16335fi
16336
16337sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16338
16339variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16340if test "$GCC" = yes; then
16341  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16342fi
16343
16344{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16345$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16346hardcode_action_F77=
16347if test -n "$hardcode_libdir_flag_spec_F77" || \
16348   test -n "$runpath_var_F77" || \
16349   test "X$hardcode_automatic_F77" = "Xyes" ; then
16350
16351  # We can hardcode non-existant directories.
16352  if test "$hardcode_direct_F77" != no &&
16353     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16354     # have to relink, otherwise we might link with an installed library
16355     # when we should be linking with a yet-to-be-installed one
16356     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16357     test "$hardcode_minus_L_F77" != no; then
16358    # Linking always hardcodes the temporary library directory.
16359    hardcode_action_F77=relink
16360  else
16361    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16362    hardcode_action_F77=immediate
16363  fi
16364else
16365  # We cannot hardcode anything, or else we can only hardcode existing
16366  # directories.
16367  hardcode_action_F77=unsupported
16368fi
16369{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16370$as_echo "$hardcode_action_F77" >&6; }
16371
16372if test "$hardcode_action_F77" = relink; then
16373  # Fast installation is not supported
16374  enable_fast_install=no
16375elif test "$shlibpath_overrides_runpath" = yes ||
16376     test "$enable_shared" = no; then
16377  # Fast installation is not necessary
16378  enable_fast_install=needless
16379fi
16380
16381
16382# The else clause should only fire when bootstrapping the
16383# libtool distribution, otherwise you forgot to ship ltmain.sh
16384# with your package, and you will get complaints that there are
16385# no rules to generate ltmain.sh.
16386if test -f "$ltmain"; then
16387  # See if we are running on zsh, and set the options which allow our commands through
16388  # without removal of \ escapes.
16389  if test -n "${ZSH_VERSION+set}" ; then
16390    setopt NO_GLOB_SUBST
16391  fi
16392  # Now quote all the things that may contain metacharacters while being
16393  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16394  # variables and quote the copies for generation of the libtool script.
16395  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16396    SED SHELL STRIP \
16397    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16398    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16399    deplibs_check_method reload_flag reload_cmds need_locks \
16400    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16401    lt_cv_sys_global_symbol_to_c_name_address \
16402    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16403    old_postinstall_cmds old_postuninstall_cmds \
16404    compiler_F77 \
16405    CC_F77 \
16406    LD_F77 \
16407    lt_prog_compiler_wl_F77 \
16408    lt_prog_compiler_pic_F77 \
16409    lt_prog_compiler_static_F77 \
16410    lt_prog_compiler_no_builtin_flag_F77 \
16411    export_dynamic_flag_spec_F77 \
16412    thread_safe_flag_spec_F77 \
16413    whole_archive_flag_spec_F77 \
16414    enable_shared_with_static_runtimes_F77 \
16415    old_archive_cmds_F77 \
16416    old_archive_from_new_cmds_F77 \
16417    predep_objects_F77 \
16418    postdep_objects_F77 \
16419    predeps_F77 \
16420    postdeps_F77 \
16421    compiler_lib_search_path_F77 \
16422    compiler_lib_search_dirs_F77 \
16423    archive_cmds_F77 \
16424    archive_expsym_cmds_F77 \
16425    postinstall_cmds_F77 \
16426    postuninstall_cmds_F77 \
16427    old_archive_from_expsyms_cmds_F77 \
16428    allow_undefined_flag_F77 \
16429    no_undefined_flag_F77 \
16430    export_symbols_cmds_F77 \
16431    hardcode_libdir_flag_spec_F77 \
16432    hardcode_libdir_flag_spec_ld_F77 \
16433    hardcode_libdir_separator_F77 \
16434    hardcode_automatic_F77 \
16435    module_cmds_F77 \
16436    module_expsym_cmds_F77 \
16437    lt_cv_prog_compiler_c_o_F77 \
16438    fix_srcfile_path_F77 \
16439    exclude_expsyms_F77 \
16440    include_expsyms_F77; do
16441
16442    case $var in
16443    old_archive_cmds_F77 | \
16444    old_archive_from_new_cmds_F77 | \
16445    archive_cmds_F77 | \
16446    archive_expsym_cmds_F77 | \
16447    module_cmds_F77 | \
16448    module_expsym_cmds_F77 | \
16449    old_archive_from_expsyms_cmds_F77 | \
16450    export_symbols_cmds_F77 | \
16451    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16452    postinstall_cmds | postuninstall_cmds | \
16453    old_postinstall_cmds | old_postuninstall_cmds | \
16454    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16455      # Double-quote double-evaled strings.
16456      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16457      ;;
16458    *)
16459      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16460      ;;
16461    esac
16462  done
16463
16464  case $lt_echo in
16465  *'\$0 --fallback-echo"')
16466    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16467    ;;
16468  esac
16469
16470cfgfile="$ofile"
16471
16472  cat <<__EOF__ >> "$cfgfile"
16473# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16474
16475# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16476
16477# Shell to use when invoking shell scripts.
16478SHELL=$lt_SHELL
16479
16480# Whether or not to build shared libraries.
16481build_libtool_libs=$enable_shared
16482
16483# Whether or not to build static libraries.
16484build_old_libs=$enable_static
16485
16486# Whether or not to add -lc for building shared libraries.
16487build_libtool_need_lc=$archive_cmds_need_lc_F77
16488
16489# Whether or not to disallow shared libs when runtime libs are static
16490allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16491
16492# Whether or not to optimize for fast installation.
16493fast_install=$enable_fast_install
16494
16495# The host system.
16496host_alias=$host_alias
16497host=$host
16498host_os=$host_os
16499
16500# The build system.
16501build_alias=$build_alias
16502build=$build
16503build_os=$build_os
16504
16505# An echo program that does not interpret backslashes.
16506echo=$lt_echo
16507
16508# The archiver.
16509AR=$lt_AR
16510AR_FLAGS=$lt_AR_FLAGS
16511
16512# A C compiler.
16513LTCC=$lt_LTCC
16514
16515# LTCC compiler flags.
16516LTCFLAGS=$lt_LTCFLAGS
16517
16518# A language-specific compiler.
16519CC=$lt_compiler_F77
16520
16521# Is the compiler the GNU C compiler?
16522with_gcc=$GCC_F77
16523
16524# An ERE matcher.
16525EGREP=$lt_EGREP
16526
16527# The linker used to build libraries.
16528LD=$lt_LD_F77
16529
16530# Whether we need hard or soft links.
16531LN_S=$lt_LN_S
16532
16533# A BSD-compatible nm program.
16534NM=$lt_NM
16535
16536# A symbol stripping program
16537STRIP=$lt_STRIP
16538
16539# Used to examine libraries when file_magic_cmd begins "file"
16540MAGIC_CMD=$MAGIC_CMD
16541
16542# Used on cygwin: DLL creation program.
16543DLLTOOL="$DLLTOOL"
16544
16545# Used on cygwin: object dumper.
16546OBJDUMP="$OBJDUMP"
16547
16548# Used on cygwin: assembler.
16549AS="$AS"
16550
16551# The name of the directory that contains temporary libtool files.
16552objdir=$objdir
16553
16554# How to create reloadable object files.
16555reload_flag=$lt_reload_flag
16556reload_cmds=$lt_reload_cmds
16557
16558# How to pass a linker flag through the compiler.
16559wl=$lt_lt_prog_compiler_wl_F77
16560
16561# Object file suffix (normally "o").
16562objext="$ac_objext"
16563
16564# Old archive suffix (normally "a").
16565libext="$libext"
16566
16567# Shared library suffix (normally ".so").
16568shrext_cmds='$shrext_cmds'
16569
16570# Executable file suffix (normally "").
16571exeext="$exeext"
16572
16573# Additional compiler flags for building library objects.
16574pic_flag=$lt_lt_prog_compiler_pic_F77
16575pic_mode=$pic_mode
16576
16577# What is the maximum length of a command?
16578max_cmd_len=$lt_cv_sys_max_cmd_len
16579
16580# Does compiler simultaneously support -c and -o options?
16581compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16582
16583# Must we lock files when doing compilation?
16584need_locks=$lt_need_locks
16585
16586# Do we need the lib prefix for modules?
16587need_lib_prefix=$need_lib_prefix
16588
16589# Do we need a version for libraries?
16590need_version=$need_version
16591
16592# Whether dlopen is supported.
16593dlopen_support=$enable_dlopen
16594
16595# Whether dlopen of programs is supported.
16596dlopen_self=$enable_dlopen_self
16597
16598# Whether dlopen of statically linked programs is supported.
16599dlopen_self_static=$enable_dlopen_self_static
16600
16601# Compiler flag to prevent dynamic linking.
16602link_static_flag=$lt_lt_prog_compiler_static_F77
16603
16604# Compiler flag to turn off builtin functions.
16605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16606
16607# Compiler flag to allow reflexive dlopens.
16608export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16609
16610# Compiler flag to generate shared objects directly from archives.
16611whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16612
16613# Compiler flag to generate thread-safe objects.
16614thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16615
16616# Library versioning type.
16617version_type=$version_type
16618
16619# Format of library name prefix.
16620libname_spec=$lt_libname_spec
16621
16622# List of archive names.  First name is the real one, the rest are links.
16623# The last name is the one that the linker finds with -lNAME.
16624library_names_spec=$lt_library_names_spec
16625
16626# The coded name of the library, if different from the real name.
16627soname_spec=$lt_soname_spec
16628
16629# Commands used to build and install an old-style archive.
16630RANLIB=$lt_RANLIB
16631old_archive_cmds=$lt_old_archive_cmds_F77
16632old_postinstall_cmds=$lt_old_postinstall_cmds
16633old_postuninstall_cmds=$lt_old_postuninstall_cmds
16634
16635# Create an old-style archive from a shared archive.
16636old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16637
16638# Create a temporary old-style archive to link instead of a shared archive.
16639old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16640
16641# Commands used to build and install a shared archive.
16642archive_cmds=$lt_archive_cmds_F77
16643archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16644postinstall_cmds=$lt_postinstall_cmds
16645postuninstall_cmds=$lt_postuninstall_cmds
16646
16647# Commands used to build a loadable module (assumed same as above if empty)
16648module_cmds=$lt_module_cmds_F77
16649module_expsym_cmds=$lt_module_expsym_cmds_F77
16650
16651# Commands to strip libraries.
16652old_striplib=$lt_old_striplib
16653striplib=$lt_striplib
16654
16655# Dependencies to place before the objects being linked to create a
16656# shared library.
16657predep_objects=$lt_predep_objects_F77
16658
16659# Dependencies to place after the objects being linked to create a
16660# shared library.
16661postdep_objects=$lt_postdep_objects_F77
16662
16663# Dependencies to place before the objects being linked to create a
16664# shared library.
16665predeps=$lt_predeps_F77
16666
16667# Dependencies to place after the objects being linked to create a
16668# shared library.
16669postdeps=$lt_postdeps_F77
16670
16671# The directories searched by this compiler when creating a shared
16672# library
16673compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16674
16675# The library search path used internally by the compiler when linking
16676# a shared library.
16677compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16678
16679# Method to check whether dependent libraries are shared objects.
16680deplibs_check_method=$lt_deplibs_check_method
16681
16682# Command to use when deplibs_check_method == file_magic.
16683file_magic_cmd=$lt_file_magic_cmd
16684
16685# Flag that allows shared libraries with undefined symbols to be built.
16686allow_undefined_flag=$lt_allow_undefined_flag_F77
16687
16688# Flag that forces no undefined symbols.
16689no_undefined_flag=$lt_no_undefined_flag_F77
16690
16691# Commands used to finish a libtool library installation in a directory.
16692finish_cmds=$lt_finish_cmds
16693
16694# Same as above, but a single script fragment to be evaled but not shown.
16695finish_eval=$lt_finish_eval
16696
16697# Take the output of nm and produce a listing of raw symbols and C names.
16698global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16699
16700# Transform the output of nm in a proper C declaration
16701global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16702
16703# Transform the output of nm in a C name address pair
16704global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16705
16706# This is the shared library runtime path variable.
16707runpath_var=$runpath_var
16708
16709# This is the shared library path variable.
16710shlibpath_var=$shlibpath_var
16711
16712# Is shlibpath searched before the hard-coded library search path?
16713shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16714
16715# How to hardcode a shared library path into an executable.
16716hardcode_action=$hardcode_action_F77
16717
16718# Whether we should hardcode library paths into libraries.
16719hardcode_into_libs=$hardcode_into_libs
16720
16721# Flag to hardcode \$libdir into a binary during linking.
16722# This must work even if \$libdir does not exist.
16723hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16724
16725# If ld is used when linking, flag to hardcode \$libdir into
16726# a binary during linking. This must work even if \$libdir does
16727# not exist.
16728hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16729
16730# Whether we need a single -rpath flag with a separated argument.
16731hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16732
16733# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16734# resulting binary.
16735hardcode_direct=$hardcode_direct_F77
16736
16737# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16738# resulting binary.
16739hardcode_minus_L=$hardcode_minus_L_F77
16740
16741# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16742# the resulting binary.
16743hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16744
16745# Set to yes if building a shared library automatically hardcodes DIR into the library
16746# and all subsequent libraries and executables linked against it.
16747hardcode_automatic=$hardcode_automatic_F77
16748
16749# Variables whose values should be saved in libtool wrapper scripts and
16750# restored at relink time.
16751variables_saved_for_relink="$variables_saved_for_relink"
16752
16753# Whether libtool must link a program against all its dependency libraries.
16754link_all_deplibs=$link_all_deplibs_F77
16755
16756# Compile-time system search path for libraries
16757sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16758
16759# Run-time system search path for libraries
16760sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16761
16762# Fix the shell variable \$srcfile for the compiler.
16763fix_srcfile_path=$lt_fix_srcfile_path
16764
16765# Set to yes if exported symbols are required.
16766always_export_symbols=$always_export_symbols_F77
16767
16768# The commands to list exported symbols.
16769export_symbols_cmds=$lt_export_symbols_cmds_F77
16770
16771# The commands to extract the exported symbol list from a shared archive.
16772extract_expsyms_cmds=$lt_extract_expsyms_cmds
16773
16774# Symbols that should not be listed in the preloaded symbols.
16775exclude_expsyms=$lt_exclude_expsyms_F77
16776
16777# Symbols that must always be exported.
16778include_expsyms=$lt_include_expsyms_F77
16779
16780# ### END LIBTOOL TAG CONFIG: $tagname
16781
16782__EOF__
16783
16784
16785else
16786  # If there is no Makefile yet, we rely on a make rule to execute
16787  # `config.status --recheck' to rerun these tests and create the
16788  # libtool script then.
16789  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16790  if test -f "$ltmain_in"; then
16791    test -f Makefile && make "$ltmain"
16792  fi
16793fi
16794
16795
16796ac_ext=c
16797ac_cpp='$CPP $CPPFLAGS'
16798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16800ac_compiler_gnu=$ac_cv_c_compiler_gnu
16801
16802CC="$lt_save_CC"
16803
16804	else
16805	  tagname=""
16806	fi
16807	;;
16808
16809      GCJ)
16810	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16811
16812
16813# Source file extension for Java test sources.
16814ac_ext=java
16815
16816# Object file extension for compiled Java test sources.
16817objext=o
16818objext_GCJ=$objext
16819
16820# Code to be used in simple compile tests
16821lt_simple_compile_test_code="class foo {}"
16822
16823# Code to be used in simple link tests
16824lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16825
16826# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16827
16828# If no C compiler was specified, use CC.
16829LTCC=${LTCC-"$CC"}
16830
16831# If no C compiler flags were specified, use CFLAGS.
16832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16833
16834# Allow CC to be a program name with arguments.
16835compiler=$CC
16836
16837
16838# save warnings/boilerplate of simple test code
16839ac_outfile=conftest.$ac_objext
16840echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16841eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16842_lt_compiler_boilerplate=`cat conftest.err`
16843$rm conftest*
16844
16845ac_outfile=conftest.$ac_objext
16846echo "$lt_simple_link_test_code" >conftest.$ac_ext
16847eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16848_lt_linker_boilerplate=`cat conftest.err`
16849$rm -r conftest*
16850
16851
16852# Allow CC to be a program name with arguments.
16853lt_save_CC="$CC"
16854CC=${GCJ-"gcj"}
16855compiler=$CC
16856compiler_GCJ=$CC
16857for cc_temp in $compiler""; do
16858  case $cc_temp in
16859    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16860    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16861    \-*) ;;
16862    *) break;;
16863  esac
16864done
16865cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16866
16867
16868# GCJ did not exist at the time GCC didn't implicitly link libc in.
16869archive_cmds_need_lc_GCJ=no
16870
16871old_archive_cmds_GCJ=$old_archive_cmds
16872
16873
16874lt_prog_compiler_no_builtin_flag_GCJ=
16875
16876if test "$GCC" = yes; then
16877  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16878
16879
16880{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16881$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16882if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16883  $as_echo_n "(cached) " >&6
16884else
16885  lt_cv_prog_compiler_rtti_exceptions=no
16886  ac_outfile=conftest.$ac_objext
16887   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16888   lt_compiler_flag="-fno-rtti -fno-exceptions"
16889   # Insert the option either (1) after the last *FLAGS variable, or
16890   # (2) before a word containing "conftest.", or (3) at the end.
16891   # Note that $ac_compile itself does not contain backslashes and begins
16892   # with a dollar sign (not a hyphen), so the echo should work correctly.
16893   # The option is referenced via a variable to avoid confusing sed.
16894   lt_compile=`echo "$ac_compile" | $SED \
16895   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16896   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16897   -e 's:$: $lt_compiler_flag:'`
16898   (eval echo "\"\$as_me:16898: $lt_compile\"" >&5)
16899   (eval "$lt_compile" 2>conftest.err)
16900   ac_status=$?
16901   cat conftest.err >&5
16902   echo "$as_me:16902: \$? = $ac_status" >&5
16903   if (exit $ac_status) && test -s "$ac_outfile"; then
16904     # The compiler can only warn and ignore the option if not recognized
16905     # So say no if there are warnings other than the usual output.
16906     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16907     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16908     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16909       lt_cv_prog_compiler_rtti_exceptions=yes
16910     fi
16911   fi
16912   $rm conftest*
16913
16914fi
16915{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16916$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16917
16918if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16919    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16920else
16921    :
16922fi
16923
16924fi
16925
16926lt_prog_compiler_wl_GCJ=
16927lt_prog_compiler_pic_GCJ=
16928lt_prog_compiler_static_GCJ=
16929
16930{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16931$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16932
16933  if test "$GCC" = yes; then
16934    lt_prog_compiler_wl_GCJ='-Wl,'
16935    lt_prog_compiler_static_GCJ='-static'
16936
16937    case $host_os in
16938      aix*)
16939      # All AIX code is PIC.
16940      if test "$host_cpu" = ia64; then
16941	# AIX 5 now supports IA64 processor
16942	lt_prog_compiler_static_GCJ='-Bstatic'
16943      fi
16944      ;;
16945
16946    amigaos*)
16947      # FIXME: we need at least 68020 code to build shared libraries, but
16948      # adding the `-m68020' flag to GCC prevents building anything better,
16949      # like `-m68040'.
16950      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16951      ;;
16952
16953    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16954      # PIC is the default for these OSes.
16955      ;;
16956
16957    mingw* | cygwin* | pw32* | os2*)
16958      # This hack is so that the source file can tell whether it is being
16959      # built for inclusion in a dll (and should export symbols for example).
16960      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16961      # (--disable-auto-import) libraries
16962
16963      ;;
16964
16965    darwin* | rhapsody*)
16966      # PIC is the default on this platform
16967      # Common symbols not allowed in MH_DYLIB files
16968      lt_prog_compiler_pic_GCJ='-fno-common'
16969      ;;
16970
16971    interix[3-9]*)
16972      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16973      # Instead, we relocate shared libraries at runtime.
16974      ;;
16975
16976    msdosdjgpp*)
16977      # Just because we use GCC doesn't mean we suddenly get shared libraries
16978      # on systems that don't support them.
16979      lt_prog_compiler_can_build_shared_GCJ=no
16980      enable_shared=no
16981      ;;
16982
16983    sysv4*MP*)
16984      if test -d /usr/nec; then
16985	lt_prog_compiler_pic_GCJ=-Kconform_pic
16986      fi
16987      ;;
16988
16989    hpux*)
16990      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16991      # not for PA HP-UX.
16992      case $host_cpu in
16993      hppa*64*|ia64*)
16994	# +Z the default
16995	;;
16996      *)
16997	lt_prog_compiler_pic_GCJ='-fPIC'
16998	;;
16999      esac
17000      ;;
17001
17002    *)
17003      lt_prog_compiler_pic_GCJ='-fPIC'
17004      ;;
17005    esac
17006  else
17007    # PORTME Check for flag to pass linker flags through the system compiler.
17008    case $host_os in
17009    aix*)
17010      lt_prog_compiler_wl_GCJ='-Wl,'
17011      if test "$host_cpu" = ia64; then
17012	# AIX 5 now supports IA64 processor
17013	lt_prog_compiler_static_GCJ='-Bstatic'
17014      else
17015	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17016      fi
17017      ;;
17018      darwin*)
17019        # PIC is the default on this platform
17020        # Common symbols not allowed in MH_DYLIB files
17021       case $cc_basename in
17022         xlc*)
17023         lt_prog_compiler_pic_GCJ='-qnocommon'
17024         lt_prog_compiler_wl_GCJ='-Wl,'
17025         ;;
17026       esac
17027       ;;
17028
17029    mingw* | cygwin* | pw32* | os2*)
17030      # This hack is so that the source file can tell whether it is being
17031      # built for inclusion in a dll (and should export symbols for example).
17032
17033      ;;
17034
17035    hpux9* | hpux10* | hpux11*)
17036      lt_prog_compiler_wl_GCJ='-Wl,'
17037      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17038      # not for PA HP-UX.
17039      case $host_cpu in
17040      hppa*64*|ia64*)
17041	# +Z the default
17042	;;
17043      *)
17044	lt_prog_compiler_pic_GCJ='+Z'
17045	;;
17046      esac
17047      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17048      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17049      ;;
17050
17051    irix5* | irix6* | nonstopux*)
17052      lt_prog_compiler_wl_GCJ='-Wl,'
17053      # PIC (with -KPIC) is the default.
17054      lt_prog_compiler_static_GCJ='-non_shared'
17055      ;;
17056
17057    newsos6)
17058      lt_prog_compiler_pic_GCJ='-KPIC'
17059      lt_prog_compiler_static_GCJ='-Bstatic'
17060      ;;
17061
17062    linux* | k*bsd*-gnu)
17063      case $cc_basename in
17064      icc* | ecc*)
17065	lt_prog_compiler_wl_GCJ='-Wl,'
17066	lt_prog_compiler_pic_GCJ='-KPIC'
17067	lt_prog_compiler_static_GCJ='-static'
17068        ;;
17069      pgcc* | pgf77* | pgf90* | pgf95*)
17070        # Portland Group compilers (*not* the Pentium gcc compiler,
17071	# which looks to be a dead project)
17072	lt_prog_compiler_wl_GCJ='-Wl,'
17073	lt_prog_compiler_pic_GCJ='-fpic'
17074	lt_prog_compiler_static_GCJ='-Bstatic'
17075        ;;
17076      ccc*)
17077        lt_prog_compiler_wl_GCJ='-Wl,'
17078        # All Alpha code is PIC.
17079        lt_prog_compiler_static_GCJ='-non_shared'
17080        ;;
17081      *)
17082        case `$CC -V 2>&1 | sed 5q` in
17083	*Sun\ C*)
17084	  # Sun C 5.9
17085	  lt_prog_compiler_pic_GCJ='-KPIC'
17086	  lt_prog_compiler_static_GCJ='-Bstatic'
17087	  lt_prog_compiler_wl_GCJ='-Wl,'
17088	  ;;
17089	*Sun\ F*)
17090	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17091	  lt_prog_compiler_pic_GCJ='-KPIC'
17092	  lt_prog_compiler_static_GCJ='-Bstatic'
17093	  lt_prog_compiler_wl_GCJ=''
17094	  ;;
17095	esac
17096	;;
17097      esac
17098      ;;
17099
17100    osf3* | osf4* | osf5*)
17101      lt_prog_compiler_wl_GCJ='-Wl,'
17102      # All OSF/1 code is PIC.
17103      lt_prog_compiler_static_GCJ='-non_shared'
17104      ;;
17105
17106    rdos*)
17107      lt_prog_compiler_static_GCJ='-non_shared'
17108      ;;
17109
17110    solaris*)
17111      lt_prog_compiler_pic_GCJ='-KPIC'
17112      lt_prog_compiler_static_GCJ='-Bstatic'
17113      case $cc_basename in
17114      f77* | f90* | f95*)
17115	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17116      *)
17117	lt_prog_compiler_wl_GCJ='-Wl,';;
17118      esac
17119      ;;
17120
17121    sunos4*)
17122      lt_prog_compiler_wl_GCJ='-Qoption ld '
17123      lt_prog_compiler_pic_GCJ='-PIC'
17124      lt_prog_compiler_static_GCJ='-Bstatic'
17125      ;;
17126
17127    sysv4 | sysv4.2uw2* | sysv4.3*)
17128      lt_prog_compiler_wl_GCJ='-Wl,'
17129      lt_prog_compiler_pic_GCJ='-KPIC'
17130      lt_prog_compiler_static_GCJ='-Bstatic'
17131      ;;
17132
17133    sysv4*MP*)
17134      if test -d /usr/nec ;then
17135	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17136	lt_prog_compiler_static_GCJ='-Bstatic'
17137      fi
17138      ;;
17139
17140    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17141      lt_prog_compiler_wl_GCJ='-Wl,'
17142      lt_prog_compiler_pic_GCJ='-KPIC'
17143      lt_prog_compiler_static_GCJ='-Bstatic'
17144      ;;
17145
17146    unicos*)
17147      lt_prog_compiler_wl_GCJ='-Wl,'
17148      lt_prog_compiler_can_build_shared_GCJ=no
17149      ;;
17150
17151    uts4*)
17152      lt_prog_compiler_pic_GCJ='-pic'
17153      lt_prog_compiler_static_GCJ='-Bstatic'
17154      ;;
17155
17156    *)
17157      lt_prog_compiler_can_build_shared_GCJ=no
17158      ;;
17159    esac
17160  fi
17161
17162{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17163$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17164
17165#
17166# Check to make sure the PIC flag actually works.
17167#
17168if test -n "$lt_prog_compiler_pic_GCJ"; then
17169
17170{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17171$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17172if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17173  $as_echo_n "(cached) " >&6
17174else
17175  lt_cv_prog_compiler_pic_works_GCJ=no
17176  ac_outfile=conftest.$ac_objext
17177   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17178   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17179   # Insert the option either (1) after the last *FLAGS variable, or
17180   # (2) before a word containing "conftest.", or (3) at the end.
17181   # Note that $ac_compile itself does not contain backslashes and begins
17182   # with a dollar sign (not a hyphen), so the echo should work correctly.
17183   # The option is referenced via a variable to avoid confusing sed.
17184   lt_compile=`echo "$ac_compile" | $SED \
17185   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17187   -e 's:$: $lt_compiler_flag:'`
17188   (eval echo "\"\$as_me:17188: $lt_compile\"" >&5)
17189   (eval "$lt_compile" 2>conftest.err)
17190   ac_status=$?
17191   cat conftest.err >&5
17192   echo "$as_me:17192: \$? = $ac_status" >&5
17193   if (exit $ac_status) && test -s "$ac_outfile"; then
17194     # The compiler can only warn and ignore the option if not recognized
17195     # So say no if there are warnings other than the usual output.
17196     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17197     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17198     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17199       lt_cv_prog_compiler_pic_works_GCJ=yes
17200     fi
17201   fi
17202   $rm conftest*
17203
17204fi
17205{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17206$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17207
17208if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17209    case $lt_prog_compiler_pic_GCJ in
17210     "" | " "*) ;;
17211     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17212     esac
17213else
17214    lt_prog_compiler_pic_GCJ=
17215     lt_prog_compiler_can_build_shared_GCJ=no
17216fi
17217
17218fi
17219case $host_os in
17220  # For platforms which do not support PIC, -DPIC is meaningless:
17221  *djgpp*)
17222    lt_prog_compiler_pic_GCJ=
17223    ;;
17224  *)
17225    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17226    ;;
17227esac
17228
17229#
17230# Check to make sure the static flag actually works.
17231#
17232wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17233{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17235if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17236  $as_echo_n "(cached) " >&6
17237else
17238  lt_cv_prog_compiler_static_works_GCJ=no
17239   save_LDFLAGS="$LDFLAGS"
17240   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17241   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17242   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17243     # The linker can only warn and ignore the option if not recognized
17244     # So say no if there are warnings
17245     if test -s conftest.err; then
17246       # Append any errors to the config.log.
17247       cat conftest.err 1>&5
17248       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17249       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17250       if diff conftest.exp conftest.er2 >/dev/null; then
17251         lt_cv_prog_compiler_static_works_GCJ=yes
17252       fi
17253     else
17254       lt_cv_prog_compiler_static_works_GCJ=yes
17255     fi
17256   fi
17257   $rm -r conftest*
17258   LDFLAGS="$save_LDFLAGS"
17259
17260fi
17261{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17262$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17263
17264if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17265    :
17266else
17267    lt_prog_compiler_static_GCJ=
17268fi
17269
17270
17271{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17273if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17274  $as_echo_n "(cached) " >&6
17275else
17276  lt_cv_prog_compiler_c_o_GCJ=no
17277   $rm -r conftest 2>/dev/null
17278   mkdir conftest
17279   cd conftest
17280   mkdir out
17281   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17282
17283   lt_compiler_flag="-o out/conftest2.$ac_objext"
17284   # Insert the option either (1) after the last *FLAGS variable, or
17285   # (2) before a word containing "conftest.", or (3) at the end.
17286   # Note that $ac_compile itself does not contain backslashes and begins
17287   # with a dollar sign (not a hyphen), so the echo should work correctly.
17288   lt_compile=`echo "$ac_compile" | $SED \
17289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17291   -e 's:$: $lt_compiler_flag:'`
17292   (eval echo "\"\$as_me:17292: $lt_compile\"" >&5)
17293   (eval "$lt_compile" 2>out/conftest.err)
17294   ac_status=$?
17295   cat out/conftest.err >&5
17296   echo "$as_me:17296: \$? = $ac_status" >&5
17297   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17298   then
17299     # The compiler can only warn and ignore the option if not recognized
17300     # So say no if there are warnings
17301     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17302     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17303     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17304       lt_cv_prog_compiler_c_o_GCJ=yes
17305     fi
17306   fi
17307   chmod u+w . 2>&5
17308   $rm conftest*
17309   # SGI C++ compiler will create directory out/ii_files/ for
17310   # template instantiation
17311   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17312   $rm out/* && rmdir out
17313   cd ..
17314   rmdir conftest
17315   $rm conftest*
17316
17317fi
17318{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17319$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17320
17321
17322hard_links="nottested"
17323if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17324  # do not overwrite the value of need_locks provided by the user
17325  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17326$as_echo_n "checking if we can lock with hard links... " >&6; }
17327  hard_links=yes
17328  $rm conftest*
17329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17330  touch conftest.a
17331  ln conftest.a conftest.b 2>&5 || hard_links=no
17332  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17333  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17334$as_echo "$hard_links" >&6; }
17335  if test "$hard_links" = no; then
17336    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17337$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17338    need_locks=warn
17339  fi
17340else
17341  need_locks=no
17342fi
17343
17344{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17345$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17346
17347  runpath_var=
17348  allow_undefined_flag_GCJ=
17349  enable_shared_with_static_runtimes_GCJ=no
17350  archive_cmds_GCJ=
17351  archive_expsym_cmds_GCJ=
17352  old_archive_From_new_cmds_GCJ=
17353  old_archive_from_expsyms_cmds_GCJ=
17354  export_dynamic_flag_spec_GCJ=
17355  whole_archive_flag_spec_GCJ=
17356  thread_safe_flag_spec_GCJ=
17357  hardcode_libdir_flag_spec_GCJ=
17358  hardcode_libdir_flag_spec_ld_GCJ=
17359  hardcode_libdir_separator_GCJ=
17360  hardcode_direct_GCJ=no
17361  hardcode_minus_L_GCJ=no
17362  hardcode_shlibpath_var_GCJ=unsupported
17363  link_all_deplibs_GCJ=unknown
17364  hardcode_automatic_GCJ=no
17365  module_cmds_GCJ=
17366  module_expsym_cmds_GCJ=
17367  always_export_symbols_GCJ=no
17368  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17369  # include_expsyms should be a list of space-separated symbols to be *always*
17370  # included in the symbol list
17371  include_expsyms_GCJ=
17372  # exclude_expsyms can be an extended regexp of symbols to exclude
17373  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17374  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17375  # as well as any symbol that contains `d'.
17376  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17377  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17378  # platforms (ab)use it in PIC code, but their linkers get confused if
17379  # the symbol is explicitly referenced.  Since portable code cannot
17380  # rely on this symbol name, it's probably fine to never include it in
17381  # preloaded symbol tables.
17382  # Exclude shared library initialization/finalization symbols.
17383  extract_expsyms_cmds=
17384  # Just being paranoid about ensuring that cc_basename is set.
17385  for cc_temp in $compiler""; do
17386  case $cc_temp in
17387    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17388    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17389    \-*) ;;
17390    *) break;;
17391  esac
17392done
17393cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17394
17395  case $host_os in
17396  cygwin* | mingw* | pw32*)
17397    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17398    # When not using gcc, we currently assume that we are using
17399    # Microsoft Visual C++.
17400    if test "$GCC" != yes; then
17401      with_gnu_ld=no
17402    fi
17403    ;;
17404  interix*)
17405    # we just hope/assume this is gcc and not c89 (= MSVC++)
17406    with_gnu_ld=yes
17407    ;;
17408  openbsd*)
17409    with_gnu_ld=no
17410    ;;
17411  esac
17412
17413  ld_shlibs_GCJ=yes
17414  if test "$with_gnu_ld" = yes; then
17415    # If archive_cmds runs LD, not CC, wlarc should be empty
17416    wlarc='${wl}'
17417
17418    # Set some defaults for GNU ld with shared library support. These
17419    # are reset later if shared libraries are not supported. Putting them
17420    # here allows them to be overridden if necessary.
17421    runpath_var=LD_RUN_PATH
17422    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17423    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17424    # ancient GNU ld didn't support --whole-archive et. al.
17425    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17426	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17427      else
17428  	whole_archive_flag_spec_GCJ=
17429    fi
17430    supports_anon_versioning=no
17431    case `$LD -v 2>/dev/null` in
17432      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17433      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17434      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17435      *\ 2.11.*) ;; # other 2.11 versions
17436      *) supports_anon_versioning=yes ;;
17437    esac
17438
17439    # See if GNU ld supports shared libraries.
17440    case $host_os in
17441    aix[3-9]*)
17442      # On AIX/PPC, the GNU linker is very broken
17443      if test "$host_cpu" != ia64; then
17444	ld_shlibs_GCJ=no
17445	cat <<EOF 1>&2
17446
17447*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17448*** to be unable to reliably create shared libraries on AIX.
17449*** Therefore, libtool is disabling shared libraries support.  If you
17450*** really care for shared libraries, you may want to modify your PATH
17451*** so that a non-GNU linker is found, and then restart.
17452
17453EOF
17454      fi
17455      ;;
17456
17457    amigaos*)
17458      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)'
17459      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17460      hardcode_minus_L_GCJ=yes
17461
17462      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17463      # that the semantics of dynamic libraries on AmigaOS, at least up
17464      # to version 4, is to share data among multiple programs linked
17465      # with the same dynamic library.  Since this doesn't match the
17466      # behavior of shared libraries on other platforms, we can't use
17467      # them.
17468      ld_shlibs_GCJ=no
17469      ;;
17470
17471    beos*)
17472      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17473	allow_undefined_flag_GCJ=unsupported
17474	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17475	# support --undefined.  This deserves some investigation.  FIXME
17476	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17477      else
17478	ld_shlibs_GCJ=no
17479      fi
17480      ;;
17481
17482    cygwin* | mingw* | pw32*)
17483      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17484      # as there is no search path for DLLs.
17485      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17486      allow_undefined_flag_GCJ=unsupported
17487      always_export_symbols_GCJ=no
17488      enable_shared_with_static_runtimes_GCJ=yes
17489      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17490
17491      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17492        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17493	# If the export-symbols file already is a .def file (1st line
17494	# is EXPORTS), use it as is; otherwise, prepend...
17495	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17496	  cp $export_symbols $output_objdir/$soname.def;
17497	else
17498	  echo EXPORTS > $output_objdir/$soname.def;
17499	  cat $export_symbols >> $output_objdir/$soname.def;
17500	fi~
17501	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17502      else
17503	ld_shlibs_GCJ=no
17504      fi
17505      ;;
17506
17507    interix[3-9]*)
17508      hardcode_direct_GCJ=no
17509      hardcode_shlibpath_var_GCJ=no
17510      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17511      export_dynamic_flag_spec_GCJ='${wl}-E'
17512      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17513      # Instead, shared libraries are loaded at an image base (0x10000000 by
17514      # default) and relocated if they conflict, which is a slow very memory
17515      # consuming and fragmenting process.  To avoid this, we pick a random,
17516      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17517      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17518      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'
17519      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'
17520      ;;
17521
17522    gnu* | linux* | k*bsd*-gnu)
17523      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524	tmp_addflag=
17525	case $cc_basename,$host_cpu in
17526	pgcc*)				# Portland Group C compiler
17527	  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'
17528	  tmp_addflag=' $pic_flag'
17529	  ;;
17530	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17531	  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'
17532	  tmp_addflag=' $pic_flag -Mnomain' ;;
17533	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17534	  tmp_addflag=' -i_dynamic' ;;
17535	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17536	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17537	ifc* | ifort*)			# Intel Fortran compiler
17538	  tmp_addflag=' -nofor_main' ;;
17539	esac
17540	case `$CC -V 2>&1 | sed 5q` in
17541	*Sun\ C*)			# Sun C 5.9
17542	  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'
17543	  tmp_sharedflag='-G' ;;
17544	*Sun\ F*)			# Sun Fortran 8.3
17545	  tmp_sharedflag='-G' ;;
17546	*)
17547	  tmp_sharedflag='-shared' ;;
17548	esac
17549	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17550
17551	if test $supports_anon_versioning = yes; then
17552	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17553  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17554  $echo "local: *; };" >> $output_objdir/$libname.ver~
17555	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17556	fi
17557      else
17558	ld_shlibs_GCJ=no
17559      fi
17560      ;;
17561
17562    netbsd*)
17563      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17564	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17565	wlarc=
17566      else
17567	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17569      fi
17570      ;;
17571
17572    solaris*)
17573      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17574	ld_shlibs_GCJ=no
17575	cat <<EOF 1>&2
17576
17577*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17578*** create shared libraries on Solaris systems.  Therefore, libtool
17579*** is disabling shared libraries support.  We urge you to upgrade GNU
17580*** binutils to release 2.9.1 or newer.  Another option is to modify
17581*** your PATH or compiler configuration so that the native linker is
17582*** used, and then restart.
17583
17584EOF
17585      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17586	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17587	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17588      else
17589	ld_shlibs_GCJ=no
17590      fi
17591      ;;
17592
17593    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17594      case `$LD -v 2>&1` in
17595        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17596	ld_shlibs_GCJ=no
17597	cat <<_LT_EOF 1>&2
17598
17599*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17600*** reliably create shared libraries on SCO systems.  Therefore, libtool
17601*** is disabling shared libraries support.  We urge you to upgrade GNU
17602*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17603*** your PATH or compiler configuration so that the native linker is
17604*** used, and then restart.
17605
17606_LT_EOF
17607	;;
17608	*)
17609	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17610	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17611	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17612	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17613	  else
17614	    ld_shlibs_GCJ=no
17615	  fi
17616	;;
17617      esac
17618      ;;
17619
17620    sunos4*)
17621      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17622      wlarc=
17623      hardcode_direct_GCJ=yes
17624      hardcode_shlibpath_var_GCJ=no
17625      ;;
17626
17627    *)
17628      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17629	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17630	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17631      else
17632	ld_shlibs_GCJ=no
17633      fi
17634      ;;
17635    esac
17636
17637    if test "$ld_shlibs_GCJ" = no; then
17638      runpath_var=
17639      hardcode_libdir_flag_spec_GCJ=
17640      export_dynamic_flag_spec_GCJ=
17641      whole_archive_flag_spec_GCJ=
17642    fi
17643  else
17644    # PORTME fill in a description of your system's linker (not GNU ld)
17645    case $host_os in
17646    aix3*)
17647      allow_undefined_flag_GCJ=unsupported
17648      always_export_symbols_GCJ=yes
17649      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'
17650      # Note: this linker hardcodes the directories in LIBPATH if there
17651      # are no directories specified by -L.
17652      hardcode_minus_L_GCJ=yes
17653      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17654	# Neither direct hardcoding nor static linking is supported with a
17655	# broken collect2.
17656	hardcode_direct_GCJ=unsupported
17657      fi
17658      ;;
17659
17660    aix[4-9]*)
17661      if test "$host_cpu" = ia64; then
17662	# On IA64, the linker does run time linking by default, so we don't
17663	# have to do anything special.
17664	aix_use_runtimelinking=no
17665	exp_sym_flag='-Bexport'
17666	no_entry_flag=""
17667      else
17668	# If we're using GNU nm, then we don't want the "-C" option.
17669	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17670	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17671	  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'
17672	else
17673	  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'
17674	fi
17675	aix_use_runtimelinking=no
17676
17677	# Test if we are trying to use run time linking or normal
17678	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17679	# need to do runtime linking.
17680	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17681	  for ld_flag in $LDFLAGS; do
17682  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17683  	    aix_use_runtimelinking=yes
17684  	    break
17685  	  fi
17686	  done
17687	  ;;
17688	esac
17689
17690	exp_sym_flag='-bexport'
17691	no_entry_flag='-bnoentry'
17692      fi
17693
17694      # When large executables or shared objects are built, AIX ld can
17695      # have problems creating the table of contents.  If linking a library
17696      # or program results in "error TOC overflow" add -mminimal-toc to
17697      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17698      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17699
17700      archive_cmds_GCJ=''
17701      hardcode_direct_GCJ=yes
17702      hardcode_libdir_separator_GCJ=':'
17703      link_all_deplibs_GCJ=yes
17704
17705      if test "$GCC" = yes; then
17706	case $host_os in aix4.[012]|aix4.[012].*)
17707	# We only want to do this on AIX 4.2 and lower, the check
17708	# below for broken collect2 doesn't work under 4.3+
17709	  collect2name=`${CC} -print-prog-name=collect2`
17710	  if test -f "$collect2name" && \
17711  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17712	  then
17713  	  # We have reworked collect2
17714  	  :
17715	  else
17716  	  # We have old collect2
17717  	  hardcode_direct_GCJ=unsupported
17718  	  # It fails to find uninstalled libraries when the uninstalled
17719  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17720  	  # to unsupported forces relinking
17721  	  hardcode_minus_L_GCJ=yes
17722  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17723  	  hardcode_libdir_separator_GCJ=
17724	  fi
17725	  ;;
17726	esac
17727	shared_flag='-shared'
17728	if test "$aix_use_runtimelinking" = yes; then
17729	  shared_flag="$shared_flag "'${wl}-G'
17730	fi
17731      else
17732	# not using gcc
17733	if test "$host_cpu" = ia64; then
17734  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17735  	# chokes on -Wl,-G. The following line is correct:
17736	  shared_flag='-G'
17737	else
17738	  if test "$aix_use_runtimelinking" = yes; then
17739	    shared_flag='${wl}-G'
17740	  else
17741	    shared_flag='${wl}-bM:SRE'
17742	  fi
17743	fi
17744      fi
17745
17746      # It seems that -bexpall does not export symbols beginning with
17747      # underscore (_), so it is better to generate a list of symbols to export.
17748      always_export_symbols_GCJ=yes
17749      if test "$aix_use_runtimelinking" = yes; then
17750	# Warning - without using the other runtime loading flags (-brtl),
17751	# -berok will link without error, but may produce a broken library.
17752	allow_undefined_flag_GCJ='-berok'
17753       # Determine the default libpath from the value encoded in an empty executable.
17754       cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h.  */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h.  */
17760
17761int
17762main ()
17763{
17764
17765  ;
17766  return 0;
17767}
17768_ACEOF
17769rm -f conftest.$ac_objext conftest$ac_exeext
17770if { (ac_try="$ac_link"
17771case "(($ac_try" in
17772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773  *) ac_try_echo=$ac_try;;
17774esac
17775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17776$as_echo "$ac_try_echo") >&5
17777  (eval "$ac_link") 2>conftest.er1
17778  ac_status=$?
17779  grep -v '^ *+' conftest.er1 >conftest.err
17780  rm -f conftest.er1
17781  cat conftest.err >&5
17782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783  (exit $ac_status); } && {
17784	 test -z "$ac_c_werror_flag" ||
17785	 test ! -s conftest.err
17786       } && test -s conftest$ac_exeext && {
17787	 test "$cross_compiling" = yes ||
17788	 $as_test_x conftest$ac_exeext
17789       }; then
17790
17791lt_aix_libpath_sed='
17792    /Import File Strings/,/^$/ {
17793	/^0/ {
17794	    s/^0  *\(.*\)$/\1/
17795	    p
17796	}
17797    }'
17798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799# Check for a 64-bit object if we didn't find anything.
17800if test -z "$aix_libpath"; then
17801  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17802fi
17803else
17804  $as_echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807
17808fi
17809
17810rm -rf conftest.dSYM
17811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812      conftest$ac_exeext conftest.$ac_ext
17813if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17814
17815       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17816	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"
17817       else
17818	if test "$host_cpu" = ia64; then
17819	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17820	  allow_undefined_flag_GCJ="-z nodefs"
17821	  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"
17822	else
17823	 # Determine the default libpath from the value encoded in an empty executable.
17824	 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h.  */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h.  */
17830
17831int
17832main ()
17833{
17834
17835  ;
17836  return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext conftest$ac_exeext
17840if { (ac_try="$ac_link"
17841case "(($ac_try" in
17842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843  *) ac_try_echo=$ac_try;;
17844esac
17845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17846$as_echo "$ac_try_echo") >&5
17847  (eval "$ac_link") 2>conftest.er1
17848  ac_status=$?
17849  grep -v '^ *+' conftest.er1 >conftest.err
17850  rm -f conftest.er1
17851  cat conftest.err >&5
17852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853  (exit $ac_status); } && {
17854	 test -z "$ac_c_werror_flag" ||
17855	 test ! -s conftest.err
17856       } && test -s conftest$ac_exeext && {
17857	 test "$cross_compiling" = yes ||
17858	 $as_test_x conftest$ac_exeext
17859       }; then
17860
17861lt_aix_libpath_sed='
17862    /Import File Strings/,/^$/ {
17863	/^0/ {
17864	    s/^0  *\(.*\)$/\1/
17865	    p
17866	}
17867    }'
17868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17869# Check for a 64-bit object if we didn't find anything.
17870if test -z "$aix_libpath"; then
17871  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17872fi
17873else
17874  $as_echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877
17878fi
17879
17880rm -rf conftest.dSYM
17881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882      conftest$ac_exeext conftest.$ac_ext
17883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17884
17885	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17886	  # Warning - without using the other run time loading flags,
17887	  # -berok will link without error, but may produce a broken library.
17888	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17889	  allow_undefined_flag_GCJ=' ${wl}-berok'
17890	  # Exported symbols can be pulled into shared objects from archives
17891	  whole_archive_flag_spec_GCJ='$convenience'
17892	  archive_cmds_need_lc_GCJ=yes
17893	  # This is similar to how AIX traditionally builds its shared libraries.
17894	  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'
17895	fi
17896      fi
17897      ;;
17898
17899    amigaos*)
17900      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)'
17901      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17902      hardcode_minus_L_GCJ=yes
17903      # see comment about different semantics on the GNU ld section
17904      ld_shlibs_GCJ=no
17905      ;;
17906
17907    bsdi[45]*)
17908      export_dynamic_flag_spec_GCJ=-rdynamic
17909      ;;
17910
17911    cygwin* | mingw* | pw32*)
17912      # When not using gcc, we currently assume that we are using
17913      # Microsoft Visual C++.
17914      # hardcode_libdir_flag_spec is actually meaningless, as there is
17915      # no search path for DLLs.
17916      hardcode_libdir_flag_spec_GCJ=' '
17917      allow_undefined_flag_GCJ=unsupported
17918      # Tell ltmain to make .lib files, not .a files.
17919      libext=lib
17920      # Tell ltmain to make .dll files, not .so files.
17921      shrext_cmds=".dll"
17922      # FIXME: Setting linknames here is a bad hack.
17923      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17924      # The linker will automatically build a .lib file if we build a DLL.
17925      old_archive_From_new_cmds_GCJ='true'
17926      # FIXME: Should let the user specify the lib program.
17927      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17928      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17929      enable_shared_with_static_runtimes_GCJ=yes
17930      ;;
17931
17932    darwin* | rhapsody*)
17933      case $host_os in
17934        rhapsody* | darwin1.[012])
17935         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17936         ;;
17937       *) # Darwin 1.3 on
17938         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17939           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17940         else
17941           case ${MACOSX_DEPLOYMENT_TARGET} in
17942             10.[012])
17943               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17944               ;;
17945             10.*)
17946               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17947               ;;
17948           esac
17949         fi
17950         ;;
17951      esac
17952      archive_cmds_need_lc_GCJ=no
17953      hardcode_direct_GCJ=no
17954      hardcode_automatic_GCJ=yes
17955      hardcode_shlibpath_var_GCJ=unsupported
17956      whole_archive_flag_spec_GCJ=''
17957      link_all_deplibs_GCJ=yes
17958    if test "$GCC" = yes ; then
17959    	output_verbose_link_cmd='echo'
17960        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}"
17961        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17962        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}"
17963        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}"
17964    else
17965      case $cc_basename in
17966        xlc*)
17967         output_verbose_link_cmd='echo'
17968         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17969         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17970          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17971         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}'
17972          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}'
17973          ;;
17974       *)
17975         ld_shlibs_GCJ=no
17976          ;;
17977      esac
17978    fi
17979      ;;
17980
17981    dgux*)
17982      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984      hardcode_shlibpath_var_GCJ=no
17985      ;;
17986
17987    freebsd1*)
17988      ld_shlibs_GCJ=no
17989      ;;
17990
17991    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17992    # support.  Future versions do this automatically, but an explicit c++rt0.o
17993    # does not break anything, and helps significantly (at the cost of a little
17994    # extra space).
17995    freebsd2.2*)
17996      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17997      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998      hardcode_direct_GCJ=yes
17999      hardcode_shlibpath_var_GCJ=no
18000      ;;
18001
18002    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18003    freebsd2*)
18004      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18005      hardcode_direct_GCJ=yes
18006      hardcode_minus_L_GCJ=yes
18007      hardcode_shlibpath_var_GCJ=no
18008      ;;
18009
18010    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18011    freebsd* | dragonfly*)
18012      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18013      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014      hardcode_direct_GCJ=yes
18015      hardcode_shlibpath_var_GCJ=no
18016      ;;
18017
18018    hpux9*)
18019      if test "$GCC" = yes; then
18020	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'
18021      else
18022	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'
18023      fi
18024      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025      hardcode_libdir_separator_GCJ=:
18026      hardcode_direct_GCJ=yes
18027
18028      # hardcode_minus_L: Not really in the search PATH,
18029      # but as the default location of the library.
18030      hardcode_minus_L_GCJ=yes
18031      export_dynamic_flag_spec_GCJ='${wl}-E'
18032      ;;
18033
18034    hpux10*)
18035      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18036	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18037      else
18038	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18039      fi
18040      if test "$with_gnu_ld" = no; then
18041	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18042	hardcode_libdir_separator_GCJ=:
18043
18044	hardcode_direct_GCJ=yes
18045	export_dynamic_flag_spec_GCJ='${wl}-E'
18046
18047	# hardcode_minus_L: Not really in the search PATH,
18048	# but as the default location of the library.
18049	hardcode_minus_L_GCJ=yes
18050      fi
18051      ;;
18052
18053    hpux11*)
18054      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18055	case $host_cpu in
18056	hppa*64*)
18057	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058	  ;;
18059	ia64*)
18060	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18061	  ;;
18062	*)
18063	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18064	  ;;
18065	esac
18066      else
18067	case $host_cpu in
18068	hppa*64*)
18069	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070	  ;;
18071	ia64*)
18072	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18073	  ;;
18074	*)
18075	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	esac
18078      fi
18079      if test "$with_gnu_ld" = no; then
18080	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18081	hardcode_libdir_separator_GCJ=:
18082
18083	case $host_cpu in
18084	hppa*64*|ia64*)
18085	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18086	  hardcode_direct_GCJ=no
18087	  hardcode_shlibpath_var_GCJ=no
18088	  ;;
18089	*)
18090	  hardcode_direct_GCJ=yes
18091	  export_dynamic_flag_spec_GCJ='${wl}-E'
18092
18093	  # hardcode_minus_L: Not really in the search PATH,
18094	  # but as the default location of the library.
18095	  hardcode_minus_L_GCJ=yes
18096	  ;;
18097	esac
18098      fi
18099      ;;
18100
18101    irix5* | irix6* | nonstopux*)
18102      if test "$GCC" = yes; then
18103	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'
18104      else
18105	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'
18106	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18107      fi
18108      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18109      hardcode_libdir_separator_GCJ=:
18110      link_all_deplibs_GCJ=yes
18111      ;;
18112
18113    netbsd*)
18114      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18115	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18116      else
18117	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18118      fi
18119      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18120      hardcode_direct_GCJ=yes
18121      hardcode_shlibpath_var_GCJ=no
18122      ;;
18123
18124    newsos6)
18125      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18126      hardcode_direct_GCJ=yes
18127      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18128      hardcode_libdir_separator_GCJ=:
18129      hardcode_shlibpath_var_GCJ=no
18130      ;;
18131
18132    openbsd*)
18133      if test -f /usr/libexec/ld.so; then
18134	hardcode_direct_GCJ=yes
18135	hardcode_shlibpath_var_GCJ=no
18136	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18137	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18138	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18139	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18140	  export_dynamic_flag_spec_GCJ='${wl}-E'
18141	else
18142	  case $host_os in
18143	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18144	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18145	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18146	     ;;
18147	   *)
18148	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18149	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18150	     ;;
18151	  esac
18152        fi
18153      else
18154	ld_shlibs_GCJ=no
18155      fi
18156      ;;
18157
18158    os2*)
18159      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18160      hardcode_minus_L_GCJ=yes
18161      allow_undefined_flag_GCJ=unsupported
18162      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'
18163      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18164      ;;
18165
18166    osf3*)
18167      if test "$GCC" = yes; then
18168	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18169	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'
18170      else
18171	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18172	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'
18173      fi
18174      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175      hardcode_libdir_separator_GCJ=:
18176      ;;
18177
18178    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18179      if test "$GCC" = yes; then
18180	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18181	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'
18182	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183      else
18184	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18185	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'
18186	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~
18187	$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'
18188
18189	# Both c and cxx compiler support -rpath directly
18190	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18191      fi
18192      hardcode_libdir_separator_GCJ=:
18193      ;;
18194
18195    solaris*)
18196      no_undefined_flag_GCJ=' -z text'
18197      if test "$GCC" = yes; then
18198	wlarc='${wl}'
18199	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18200	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18201	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18202      else
18203	wlarc=''
18204	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18205	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18206  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18207      fi
18208      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18209      hardcode_shlibpath_var_GCJ=no
18210      case $host_os in
18211      solaris2.[0-5] | solaris2.[0-5].*) ;;
18212      *)
18213	# The compiler driver will combine and reorder linker options,
18214	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18215	# but is careful enough not to reorder.
18216 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18217	if test "$GCC" = yes; then
18218	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18219	else
18220	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18221	fi
18222	;;
18223      esac
18224      link_all_deplibs_GCJ=yes
18225      ;;
18226
18227    sunos4*)
18228      if test "x$host_vendor" = xsequent; then
18229	# Use $CC to link under sequent, because it throws in some extra .o
18230	# files that make .init and .fini sections work.
18231	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18232      else
18233	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18234      fi
18235      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18236      hardcode_direct_GCJ=yes
18237      hardcode_minus_L_GCJ=yes
18238      hardcode_shlibpath_var_GCJ=no
18239      ;;
18240
18241    sysv4)
18242      case $host_vendor in
18243	sni)
18244	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245	  hardcode_direct_GCJ=yes # is this really true???
18246	;;
18247	siemens)
18248	  ## LD is ld it makes a PLAMLIB
18249	  ## CC just makes a GrossModule.
18250	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18251	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18252	  hardcode_direct_GCJ=no
18253        ;;
18254	motorola)
18255	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18257	;;
18258      esac
18259      runpath_var='LD_RUN_PATH'
18260      hardcode_shlibpath_var_GCJ=no
18261      ;;
18262
18263    sysv4.3*)
18264      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18265      hardcode_shlibpath_var_GCJ=no
18266      export_dynamic_flag_spec_GCJ='-Bexport'
18267      ;;
18268
18269    sysv4*MP*)
18270      if test -d /usr/nec; then
18271	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272	hardcode_shlibpath_var_GCJ=no
18273	runpath_var=LD_RUN_PATH
18274	hardcode_runpath_var=yes
18275	ld_shlibs_GCJ=yes
18276      fi
18277      ;;
18278
18279    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18280      no_undefined_flag_GCJ='${wl}-z,text'
18281      archive_cmds_need_lc_GCJ=no
18282      hardcode_shlibpath_var_GCJ=no
18283      runpath_var='LD_RUN_PATH'
18284
18285      if test "$GCC" = yes; then
18286	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18287	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18288      else
18289	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18290	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291      fi
18292      ;;
18293
18294    sysv5* | sco3.2v5* | sco5v6*)
18295      # Note: We can NOT use -z defs as we might desire, because we do not
18296      # link with -lc, and that would cause any symbols used from libc to
18297      # always be unresolved, which means just about no library would
18298      # ever link correctly.  If we're not using GNU ld we use -z text
18299      # though, which does catch some bad symbols but isn't as heavy-handed
18300      # as -z defs.
18301      no_undefined_flag_GCJ='${wl}-z,text'
18302      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18303      archive_cmds_need_lc_GCJ=no
18304      hardcode_shlibpath_var_GCJ=no
18305      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18306      hardcode_libdir_separator_GCJ=':'
18307      link_all_deplibs_GCJ=yes
18308      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18309      runpath_var='LD_RUN_PATH'
18310
18311      if test "$GCC" = yes; then
18312	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18313	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18314      else
18315	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18317      fi
18318      ;;
18319
18320    uts4*)
18321      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18322      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18323      hardcode_shlibpath_var_GCJ=no
18324      ;;
18325
18326    *)
18327      ld_shlibs_GCJ=no
18328      ;;
18329    esac
18330  fi
18331
18332{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18333$as_echo "$ld_shlibs_GCJ" >&6; }
18334test "$ld_shlibs_GCJ" = no && can_build_shared=no
18335
18336#
18337# Do we need to explicitly link libc?
18338#
18339case "x$archive_cmds_need_lc_GCJ" in
18340x|xyes)
18341  # Assume -lc should be added
18342  archive_cmds_need_lc_GCJ=yes
18343
18344  if test "$enable_shared" = yes && test "$GCC" = yes; then
18345    case $archive_cmds_GCJ in
18346    *'~'*)
18347      # FIXME: we may have to deal with multi-command sequences.
18348      ;;
18349    '$CC '*)
18350      # Test whether the compiler implicitly links with -lc since on some
18351      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18352      # to ld, don't add -lc before -lgcc.
18353      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18354$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18355      $rm conftest*
18356      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18357
18358      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359  (eval $ac_compile) 2>&5
18360  ac_status=$?
18361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362  (exit $ac_status); } 2>conftest.err; then
18363        soname=conftest
18364        lib=conftest
18365        libobjs=conftest.$ac_objext
18366        deplibs=
18367        wl=$lt_prog_compiler_wl_GCJ
18368	pic_flag=$lt_prog_compiler_pic_GCJ
18369        compiler_flags=-v
18370        linker_flags=-v
18371        verstring=
18372        output_objdir=.
18373        libname=conftest
18374        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18375        allow_undefined_flag_GCJ=
18376        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18377  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18378  ac_status=$?
18379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380  (exit $ac_status); }
18381        then
18382	  archive_cmds_need_lc_GCJ=no
18383        else
18384	  archive_cmds_need_lc_GCJ=yes
18385        fi
18386        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18387      else
18388        cat conftest.err 1>&5
18389      fi
18390      $rm conftest*
18391      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18392$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18393      ;;
18394    esac
18395  fi
18396  ;;
18397esac
18398
18399{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18400$as_echo_n "checking dynamic linker characteristics... " >&6; }
18401library_names_spec=
18402libname_spec='lib$name'
18403soname_spec=
18404shrext_cmds=".so"
18405postinstall_cmds=
18406postuninstall_cmds=
18407finish_cmds=
18408finish_eval=
18409shlibpath_var=
18410shlibpath_overrides_runpath=unknown
18411version_type=none
18412dynamic_linker="$host_os ld.so"
18413sys_lib_dlsearch_path_spec="/lib /usr/lib"
18414
18415need_lib_prefix=unknown
18416hardcode_into_libs=no
18417
18418# when you set need_version to no, make sure it does not cause -set_version
18419# flags to be left without arguments
18420need_version=unknown
18421
18422case $host_os in
18423aix3*)
18424  version_type=linux
18425  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18426  shlibpath_var=LIBPATH
18427
18428  # AIX 3 has no versioning support, so we append a major version to the name.
18429  soname_spec='${libname}${release}${shared_ext}$major'
18430  ;;
18431
18432aix[4-9]*)
18433  version_type=linux
18434  need_lib_prefix=no
18435  need_version=no
18436  hardcode_into_libs=yes
18437  if test "$host_cpu" = ia64; then
18438    # AIX 5 supports IA64
18439    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18440    shlibpath_var=LD_LIBRARY_PATH
18441  else
18442    # With GCC up to 2.95.x, collect2 would create an import file
18443    # for dependence libraries.  The import file would start with
18444    # the line `#! .'.  This would cause the generated library to
18445    # depend on `.', always an invalid library.  This was fixed in
18446    # development snapshots of GCC prior to 3.0.
18447    case $host_os in
18448      aix4 | aix4.[01] | aix4.[01].*)
18449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18450	   echo ' yes '
18451	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18452	:
18453      else
18454	can_build_shared=no
18455      fi
18456      ;;
18457    esac
18458    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18459    # soname into executable. Probably we can add versioning support to
18460    # collect2, so additional links can be useful in future.
18461    if test "$aix_use_runtimelinking" = yes; then
18462      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18463      # instead of lib<name>.a to let people know that these are not
18464      # typical AIX shared libraries.
18465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466    else
18467      # We preserve .a as extension for shared libraries through AIX4.2
18468      # and later when we are not doing run time linking.
18469      library_names_spec='${libname}${release}.a $libname.a'
18470      soname_spec='${libname}${release}${shared_ext}$major'
18471    fi
18472    shlibpath_var=LIBPATH
18473  fi
18474  ;;
18475
18476amigaos*)
18477  library_names_spec='$libname.ixlibrary $libname.a'
18478  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18479  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'
18480  ;;
18481
18482beos*)
18483  library_names_spec='${libname}${shared_ext}'
18484  dynamic_linker="$host_os ld.so"
18485  shlibpath_var=LIBRARY_PATH
18486  ;;
18487
18488bsdi[45]*)
18489  version_type=linux
18490  need_version=no
18491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492  soname_spec='${libname}${release}${shared_ext}$major'
18493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18494  shlibpath_var=LD_LIBRARY_PATH
18495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18497  # the default ld.so.conf also contains /usr/contrib/lib and
18498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18499  # libtool to hard-code these into programs
18500  ;;
18501
18502cygwin* | mingw* | pw32*)
18503  version_type=windows
18504  shrext_cmds=".dll"
18505  need_version=no
18506  need_lib_prefix=no
18507
18508  case $GCC,$host_os in
18509  yes,cygwin* | yes,mingw* | yes,pw32*)
18510    library_names_spec='$libname.dll.a'
18511    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18512    postinstall_cmds='base_file=`basename \${file}`~
18513      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18514      dldir=$destdir/`dirname \$dlpath`~
18515      test -d \$dldir || mkdir -p \$dldir~
18516      $install_prog $dir/$dlname \$dldir/$dlname~
18517      chmod a+x \$dldir/$dlname'
18518    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18519      dlpath=$dir/\$dldll~
18520       $rm \$dlpath'
18521    shlibpath_overrides_runpath=yes
18522
18523    case $host_os in
18524    cygwin*)
18525      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18526      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18527      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18528      ;;
18529    mingw*)
18530      # MinGW DLLs use traditional 'lib' prefix
18531      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18532      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18533      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18534        # It is most probably a Windows format PATH printed by
18535        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18536        # path with ; separators, and with drive letters. We can handle the
18537        # drive letters (cygwin fileutils understands them), so leave them,
18538        # especially as we might pass files found there to a mingw objdump,
18539        # which wouldn't understand a cygwinified path. Ahh.
18540        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18541      else
18542        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18543      fi
18544      ;;
18545    pw32*)
18546      # pw32 DLLs use 'pw' prefix rather than 'lib'
18547      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18548      ;;
18549    esac
18550    ;;
18551
18552  *)
18553    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18554    ;;
18555  esac
18556  dynamic_linker='Win32 ld.exe'
18557  # FIXME: first we should search . and the directory the executable is in
18558  shlibpath_var=PATH
18559  ;;
18560
18561darwin* | rhapsody*)
18562  dynamic_linker="$host_os dyld"
18563  version_type=darwin
18564  need_lib_prefix=no
18565  need_version=no
18566  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18567  soname_spec='${libname}${release}${major}$shared_ext'
18568  shlibpath_overrides_runpath=yes
18569  shlibpath_var=DYLD_LIBRARY_PATH
18570  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18571
18572  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18573  ;;
18574
18575dgux*)
18576  version_type=linux
18577  need_lib_prefix=no
18578  need_version=no
18579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18580  soname_spec='${libname}${release}${shared_ext}$major'
18581  shlibpath_var=LD_LIBRARY_PATH
18582  ;;
18583
18584freebsd1*)
18585  dynamic_linker=no
18586  ;;
18587
18588freebsd* | dragonfly*)
18589  # DragonFly does not have aout.  When/if they implement a new
18590  # versioning mechanism, adjust this.
18591  if test -x /usr/bin/objformat; then
18592    objformat=`/usr/bin/objformat`
18593  else
18594    case $host_os in
18595    freebsd[123]*) objformat=aout ;;
18596    *) objformat=elf ;;
18597    esac
18598  fi
18599  version_type=freebsd-$objformat
18600  case $version_type in
18601    freebsd-elf*)
18602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18603      need_version=no
18604      need_lib_prefix=no
18605      ;;
18606    freebsd-*)
18607      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18608      need_version=yes
18609      ;;
18610  esac
18611  shlibpath_var=LD_LIBRARY_PATH
18612  case $host_os in
18613  freebsd2*)
18614    shlibpath_overrides_runpath=yes
18615    ;;
18616  freebsd3.[01]* | freebsdelf3.[01]*)
18617    shlibpath_overrides_runpath=yes
18618    hardcode_into_libs=yes
18619    ;;
18620  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18621  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18622    shlibpath_overrides_runpath=no
18623    hardcode_into_libs=yes
18624    ;;
18625  *) # from 4.6 on, and DragonFly
18626    shlibpath_overrides_runpath=yes
18627    hardcode_into_libs=yes
18628    ;;
18629  esac
18630  ;;
18631
18632gnu*)
18633  version_type=linux
18634  need_lib_prefix=no
18635  need_version=no
18636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18637  soname_spec='${libname}${release}${shared_ext}$major'
18638  shlibpath_var=LD_LIBRARY_PATH
18639  hardcode_into_libs=yes
18640  ;;
18641
18642hpux9* | hpux10* | hpux11*)
18643  # Give a soname corresponding to the major version so that dld.sl refuses to
18644  # link against other versions.
18645  version_type=sunos
18646  need_lib_prefix=no
18647  need_version=no
18648  case $host_cpu in
18649  ia64*)
18650    shrext_cmds='.so'
18651    hardcode_into_libs=yes
18652    dynamic_linker="$host_os dld.so"
18653    shlibpath_var=LD_LIBRARY_PATH
18654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656    soname_spec='${libname}${release}${shared_ext}$major'
18657    if test "X$HPUX_IA64_MODE" = X32; then
18658      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18659    else
18660      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18661    fi
18662    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663    ;;
18664   hppa*64*)
18665     shrext_cmds='.sl'
18666     hardcode_into_libs=yes
18667     dynamic_linker="$host_os dld.sl"
18668     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18669     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671     soname_spec='${libname}${release}${shared_ext}$major'
18672     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18673     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18674     ;;
18675   *)
18676    shrext_cmds='.sl'
18677    dynamic_linker="$host_os dld.sl"
18678    shlibpath_var=SHLIB_PATH
18679    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18681    soname_spec='${libname}${release}${shared_ext}$major'
18682    ;;
18683  esac
18684  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18685  postinstall_cmds='chmod 555 $lib'
18686  ;;
18687
18688interix[3-9]*)
18689  version_type=linux
18690  need_lib_prefix=no
18691  need_version=no
18692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18693  soname_spec='${libname}${release}${shared_ext}$major'
18694  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18695  shlibpath_var=LD_LIBRARY_PATH
18696  shlibpath_overrides_runpath=no
18697  hardcode_into_libs=yes
18698  ;;
18699
18700irix5* | irix6* | nonstopux*)
18701  case $host_os in
18702    nonstopux*) version_type=nonstopux ;;
18703    *)
18704	if test "$lt_cv_prog_gnu_ld" = yes; then
18705		version_type=linux
18706	else
18707		version_type=irix
18708	fi ;;
18709  esac
18710  need_lib_prefix=no
18711  need_version=no
18712  soname_spec='${libname}${release}${shared_ext}$major'
18713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18714  case $host_os in
18715  irix5* | nonstopux*)
18716    libsuff= shlibsuff=
18717    ;;
18718  *)
18719    case $LD in # libtool.m4 will add one of these switches to LD
18720    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18721      libsuff= shlibsuff= libmagic=32-bit;;
18722    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18723      libsuff=32 shlibsuff=N32 libmagic=N32;;
18724    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18725      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18726    *) libsuff= shlibsuff= libmagic=never-match;;
18727    esac
18728    ;;
18729  esac
18730  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18731  shlibpath_overrides_runpath=no
18732  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18733  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18734  hardcode_into_libs=yes
18735  ;;
18736
18737# No shared lib support for Linux oldld, aout, or coff.
18738linux*oldld* | linux*aout* | linux*coff*)
18739  dynamic_linker=no
18740  ;;
18741
18742# This must be Linux ELF.
18743linux* | k*bsd*-gnu)
18744  version_type=linux
18745  need_lib_prefix=no
18746  need_version=no
18747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748  soname_spec='${libname}${release}${shared_ext}$major'
18749  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18750  shlibpath_var=LD_LIBRARY_PATH
18751  shlibpath_overrides_runpath=no
18752  # This implies no fast_install, which is unacceptable.
18753  # Some rework will be needed to allow for fast_install
18754  # before this can be enabled.
18755  hardcode_into_libs=yes
18756  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18757  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18758
18759  # Append ld.so.conf contents to the search path
18760  if test -f /etc/ld.so.conf; then
18761    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' ' '`
18762    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18763  fi
18764
18765  # We used to test for /lib/ld.so.1 and disable shared libraries on
18766  # powerpc, because MkLinux only supported shared libraries with the
18767  # GNU dynamic linker.  Since this was broken with cross compilers,
18768  # most powerpc-linux boxes support dynamic linking these days and
18769  # people can always --disable-shared, the test was removed, and we
18770  # assume the GNU/Linux dynamic linker is in use.
18771  dynamic_linker='GNU/Linux ld.so'
18772  ;;
18773
18774netbsd*)
18775  version_type=sunos
18776  need_lib_prefix=no
18777  need_version=no
18778  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18780    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18781    dynamic_linker='NetBSD (a.out) ld.so'
18782  else
18783    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18784    soname_spec='${libname}${release}${shared_ext}$major'
18785    dynamic_linker='NetBSD ld.elf_so'
18786  fi
18787  shlibpath_var=LD_LIBRARY_PATH
18788  shlibpath_overrides_runpath=yes
18789  hardcode_into_libs=yes
18790  ;;
18791
18792newsos6)
18793  version_type=linux
18794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795  shlibpath_var=LD_LIBRARY_PATH
18796  shlibpath_overrides_runpath=yes
18797  ;;
18798
18799nto-qnx*)
18800  version_type=linux
18801  need_lib_prefix=no
18802  need_version=no
18803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804  soname_spec='${libname}${release}${shared_ext}$major'
18805  shlibpath_var=LD_LIBRARY_PATH
18806  shlibpath_overrides_runpath=yes
18807  ;;
18808
18809openbsd*)
18810  version_type=sunos
18811  sys_lib_dlsearch_path_spec="/usr/lib"
18812  need_lib_prefix=no
18813  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18814  case $host_os in
18815    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18816    *)                         need_version=no  ;;
18817  esac
18818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18820  shlibpath_var=LD_LIBRARY_PATH
18821  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18822    case $host_os in
18823      openbsd2.[89] | openbsd2.[89].*)
18824	shlibpath_overrides_runpath=no
18825	;;
18826      *)
18827	shlibpath_overrides_runpath=yes
18828	;;
18829      esac
18830  else
18831    shlibpath_overrides_runpath=yes
18832  fi
18833  ;;
18834
18835os2*)
18836  libname_spec='$name'
18837  shrext_cmds=".dll"
18838  need_lib_prefix=no
18839  library_names_spec='$libname${shared_ext} $libname.a'
18840  dynamic_linker='OS/2 ld.exe'
18841  shlibpath_var=LIBPATH
18842  ;;
18843
18844osf3* | osf4* | osf5*)
18845  version_type=osf
18846  need_lib_prefix=no
18847  need_version=no
18848  soname_spec='${libname}${release}${shared_ext}$major'
18849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850  shlibpath_var=LD_LIBRARY_PATH
18851  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18852  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18853  ;;
18854
18855rdos*)
18856  dynamic_linker=no
18857  ;;
18858
18859solaris*)
18860  version_type=linux
18861  need_lib_prefix=no
18862  need_version=no
18863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18864  soname_spec='${libname}${release}${shared_ext}$major'
18865  shlibpath_var=LD_LIBRARY_PATH
18866  shlibpath_overrides_runpath=yes
18867  hardcode_into_libs=yes
18868  # ldd complains unless libraries are executable
18869  postinstall_cmds='chmod +x $lib'
18870  ;;
18871
18872sunos4*)
18873  version_type=sunos
18874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18875  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18876  shlibpath_var=LD_LIBRARY_PATH
18877  shlibpath_overrides_runpath=yes
18878  if test "$with_gnu_ld" = yes; then
18879    need_lib_prefix=no
18880  fi
18881  need_version=yes
18882  ;;
18883
18884sysv4 | sysv4.3*)
18885  version_type=linux
18886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887  soname_spec='${libname}${release}${shared_ext}$major'
18888  shlibpath_var=LD_LIBRARY_PATH
18889  case $host_vendor in
18890    sni)
18891      shlibpath_overrides_runpath=no
18892      need_lib_prefix=no
18893      export_dynamic_flag_spec='${wl}-Blargedynsym'
18894      runpath_var=LD_RUN_PATH
18895      ;;
18896    siemens)
18897      need_lib_prefix=no
18898      ;;
18899    motorola)
18900      need_lib_prefix=no
18901      need_version=no
18902      shlibpath_overrides_runpath=no
18903      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18904      ;;
18905  esac
18906  ;;
18907
18908sysv4*MP*)
18909  if test -d /usr/nec ;then
18910    version_type=linux
18911    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18912    soname_spec='$libname${shared_ext}.$major'
18913    shlibpath_var=LD_LIBRARY_PATH
18914  fi
18915  ;;
18916
18917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18918  version_type=freebsd-elf
18919  need_lib_prefix=no
18920  need_version=no
18921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18922  soname_spec='${libname}${release}${shared_ext}$major'
18923  shlibpath_var=LD_LIBRARY_PATH
18924  hardcode_into_libs=yes
18925  if test "$with_gnu_ld" = yes; then
18926    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18927    shlibpath_overrides_runpath=no
18928  else
18929    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18930    shlibpath_overrides_runpath=yes
18931    case $host_os in
18932      sco3.2v5*)
18933        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18934	;;
18935    esac
18936  fi
18937  sys_lib_dlsearch_path_spec='/usr/lib'
18938  ;;
18939
18940uts4*)
18941  version_type=linux
18942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943  soname_spec='${libname}${release}${shared_ext}$major'
18944  shlibpath_var=LD_LIBRARY_PATH
18945  ;;
18946
18947*)
18948  dynamic_linker=no
18949  ;;
18950esac
18951{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18952$as_echo "$dynamic_linker" >&6; }
18953test "$dynamic_linker" = no && can_build_shared=no
18954
18955if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18956  $as_echo_n "(cached) " >&6
18957else
18958  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18959fi
18960
18961sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18962if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18963  $as_echo_n "(cached) " >&6
18964else
18965  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18966fi
18967
18968sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18969
18970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18971if test "$GCC" = yes; then
18972  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18973fi
18974
18975{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18976$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18977hardcode_action_GCJ=
18978if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18979   test -n "$runpath_var_GCJ" || \
18980   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18981
18982  # We can hardcode non-existant directories.
18983  if test "$hardcode_direct_GCJ" != no &&
18984     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18985     # have to relink, otherwise we might link with an installed library
18986     # when we should be linking with a yet-to-be-installed one
18987     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18988     test "$hardcode_minus_L_GCJ" != no; then
18989    # Linking always hardcodes the temporary library directory.
18990    hardcode_action_GCJ=relink
18991  else
18992    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18993    hardcode_action_GCJ=immediate
18994  fi
18995else
18996  # We cannot hardcode anything, or else we can only hardcode existing
18997  # directories.
18998  hardcode_action_GCJ=unsupported
18999fi
19000{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19001$as_echo "$hardcode_action_GCJ" >&6; }
19002
19003if test "$hardcode_action_GCJ" = relink; then
19004  # Fast installation is not supported
19005  enable_fast_install=no
19006elif test "$shlibpath_overrides_runpath" = yes ||
19007     test "$enable_shared" = no; then
19008  # Fast installation is not necessary
19009  enable_fast_install=needless
19010fi
19011
19012
19013# The else clause should only fire when bootstrapping the
19014# libtool distribution, otherwise you forgot to ship ltmain.sh
19015# with your package, and you will get complaints that there are
19016# no rules to generate ltmain.sh.
19017if test -f "$ltmain"; then
19018  # See if we are running on zsh, and set the options which allow our commands through
19019  # without removal of \ escapes.
19020  if test -n "${ZSH_VERSION+set}" ; then
19021    setopt NO_GLOB_SUBST
19022  fi
19023  # Now quote all the things that may contain metacharacters while being
19024  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19025  # variables and quote the copies for generation of the libtool script.
19026  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19027    SED SHELL STRIP \
19028    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19029    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19030    deplibs_check_method reload_flag reload_cmds need_locks \
19031    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19032    lt_cv_sys_global_symbol_to_c_name_address \
19033    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19034    old_postinstall_cmds old_postuninstall_cmds \
19035    compiler_GCJ \
19036    CC_GCJ \
19037    LD_GCJ \
19038    lt_prog_compiler_wl_GCJ \
19039    lt_prog_compiler_pic_GCJ \
19040    lt_prog_compiler_static_GCJ \
19041    lt_prog_compiler_no_builtin_flag_GCJ \
19042    export_dynamic_flag_spec_GCJ \
19043    thread_safe_flag_spec_GCJ \
19044    whole_archive_flag_spec_GCJ \
19045    enable_shared_with_static_runtimes_GCJ \
19046    old_archive_cmds_GCJ \
19047    old_archive_from_new_cmds_GCJ \
19048    predep_objects_GCJ \
19049    postdep_objects_GCJ \
19050    predeps_GCJ \
19051    postdeps_GCJ \
19052    compiler_lib_search_path_GCJ \
19053    compiler_lib_search_dirs_GCJ \
19054    archive_cmds_GCJ \
19055    archive_expsym_cmds_GCJ \
19056    postinstall_cmds_GCJ \
19057    postuninstall_cmds_GCJ \
19058    old_archive_from_expsyms_cmds_GCJ \
19059    allow_undefined_flag_GCJ \
19060    no_undefined_flag_GCJ \
19061    export_symbols_cmds_GCJ \
19062    hardcode_libdir_flag_spec_GCJ \
19063    hardcode_libdir_flag_spec_ld_GCJ \
19064    hardcode_libdir_separator_GCJ \
19065    hardcode_automatic_GCJ \
19066    module_cmds_GCJ \
19067    module_expsym_cmds_GCJ \
19068    lt_cv_prog_compiler_c_o_GCJ \
19069    fix_srcfile_path_GCJ \
19070    exclude_expsyms_GCJ \
19071    include_expsyms_GCJ; do
19072
19073    case $var in
19074    old_archive_cmds_GCJ | \
19075    old_archive_from_new_cmds_GCJ | \
19076    archive_cmds_GCJ | \
19077    archive_expsym_cmds_GCJ | \
19078    module_cmds_GCJ | \
19079    module_expsym_cmds_GCJ | \
19080    old_archive_from_expsyms_cmds_GCJ | \
19081    export_symbols_cmds_GCJ | \
19082    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19083    postinstall_cmds | postuninstall_cmds | \
19084    old_postinstall_cmds | old_postuninstall_cmds | \
19085    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19086      # Double-quote double-evaled strings.
19087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19088      ;;
19089    *)
19090      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19091      ;;
19092    esac
19093  done
19094
19095  case $lt_echo in
19096  *'\$0 --fallback-echo"')
19097    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19098    ;;
19099  esac
19100
19101cfgfile="$ofile"
19102
19103  cat <<__EOF__ >> "$cfgfile"
19104# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19105
19106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19107
19108# Shell to use when invoking shell scripts.
19109SHELL=$lt_SHELL
19110
19111# Whether or not to build shared libraries.
19112build_libtool_libs=$enable_shared
19113
19114# Whether or not to build static libraries.
19115build_old_libs=$enable_static
19116
19117# Whether or not to add -lc for building shared libraries.
19118build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19119
19120# Whether or not to disallow shared libs when runtime libs are static
19121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19122
19123# Whether or not to optimize for fast installation.
19124fast_install=$enable_fast_install
19125
19126# The host system.
19127host_alias=$host_alias
19128host=$host
19129host_os=$host_os
19130
19131# The build system.
19132build_alias=$build_alias
19133build=$build
19134build_os=$build_os
19135
19136# An echo program that does not interpret backslashes.
19137echo=$lt_echo
19138
19139# The archiver.
19140AR=$lt_AR
19141AR_FLAGS=$lt_AR_FLAGS
19142
19143# A C compiler.
19144LTCC=$lt_LTCC
19145
19146# LTCC compiler flags.
19147LTCFLAGS=$lt_LTCFLAGS
19148
19149# A language-specific compiler.
19150CC=$lt_compiler_GCJ
19151
19152# Is the compiler the GNU C compiler?
19153with_gcc=$GCC_GCJ
19154
19155# An ERE matcher.
19156EGREP=$lt_EGREP
19157
19158# The linker used to build libraries.
19159LD=$lt_LD_GCJ
19160
19161# Whether we need hard or soft links.
19162LN_S=$lt_LN_S
19163
19164# A BSD-compatible nm program.
19165NM=$lt_NM
19166
19167# A symbol stripping program
19168STRIP=$lt_STRIP
19169
19170# Used to examine libraries when file_magic_cmd begins "file"
19171MAGIC_CMD=$MAGIC_CMD
19172
19173# Used on cygwin: DLL creation program.
19174DLLTOOL="$DLLTOOL"
19175
19176# Used on cygwin: object dumper.
19177OBJDUMP="$OBJDUMP"
19178
19179# Used on cygwin: assembler.
19180AS="$AS"
19181
19182# The name of the directory that contains temporary libtool files.
19183objdir=$objdir
19184
19185# How to create reloadable object files.
19186reload_flag=$lt_reload_flag
19187reload_cmds=$lt_reload_cmds
19188
19189# How to pass a linker flag through the compiler.
19190wl=$lt_lt_prog_compiler_wl_GCJ
19191
19192# Object file suffix (normally "o").
19193objext="$ac_objext"
19194
19195# Old archive suffix (normally "a").
19196libext="$libext"
19197
19198# Shared library suffix (normally ".so").
19199shrext_cmds='$shrext_cmds'
19200
19201# Executable file suffix (normally "").
19202exeext="$exeext"
19203
19204# Additional compiler flags for building library objects.
19205pic_flag=$lt_lt_prog_compiler_pic_GCJ
19206pic_mode=$pic_mode
19207
19208# What is the maximum length of a command?
19209max_cmd_len=$lt_cv_sys_max_cmd_len
19210
19211# Does compiler simultaneously support -c and -o options?
19212compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19213
19214# Must we lock files when doing compilation?
19215need_locks=$lt_need_locks
19216
19217# Do we need the lib prefix for modules?
19218need_lib_prefix=$need_lib_prefix
19219
19220# Do we need a version for libraries?
19221need_version=$need_version
19222
19223# Whether dlopen is supported.
19224dlopen_support=$enable_dlopen
19225
19226# Whether dlopen of programs is supported.
19227dlopen_self=$enable_dlopen_self
19228
19229# Whether dlopen of statically linked programs is supported.
19230dlopen_self_static=$enable_dlopen_self_static
19231
19232# Compiler flag to prevent dynamic linking.
19233link_static_flag=$lt_lt_prog_compiler_static_GCJ
19234
19235# Compiler flag to turn off builtin functions.
19236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19237
19238# Compiler flag to allow reflexive dlopens.
19239export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19240
19241# Compiler flag to generate shared objects directly from archives.
19242whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19243
19244# Compiler flag to generate thread-safe objects.
19245thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19246
19247# Library versioning type.
19248version_type=$version_type
19249
19250# Format of library name prefix.
19251libname_spec=$lt_libname_spec
19252
19253# List of archive names.  First name is the real one, the rest are links.
19254# The last name is the one that the linker finds with -lNAME.
19255library_names_spec=$lt_library_names_spec
19256
19257# The coded name of the library, if different from the real name.
19258soname_spec=$lt_soname_spec
19259
19260# Commands used to build and install an old-style archive.
19261RANLIB=$lt_RANLIB
19262old_archive_cmds=$lt_old_archive_cmds_GCJ
19263old_postinstall_cmds=$lt_old_postinstall_cmds
19264old_postuninstall_cmds=$lt_old_postuninstall_cmds
19265
19266# Create an old-style archive from a shared archive.
19267old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19268
19269# Create a temporary old-style archive to link instead of a shared archive.
19270old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19271
19272# Commands used to build and install a shared archive.
19273archive_cmds=$lt_archive_cmds_GCJ
19274archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19275postinstall_cmds=$lt_postinstall_cmds
19276postuninstall_cmds=$lt_postuninstall_cmds
19277
19278# Commands used to build a loadable module (assumed same as above if empty)
19279module_cmds=$lt_module_cmds_GCJ
19280module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19281
19282# Commands to strip libraries.
19283old_striplib=$lt_old_striplib
19284striplib=$lt_striplib
19285
19286# Dependencies to place before the objects being linked to create a
19287# shared library.
19288predep_objects=$lt_predep_objects_GCJ
19289
19290# Dependencies to place after the objects being linked to create a
19291# shared library.
19292postdep_objects=$lt_postdep_objects_GCJ
19293
19294# Dependencies to place before the objects being linked to create a
19295# shared library.
19296predeps=$lt_predeps_GCJ
19297
19298# Dependencies to place after the objects being linked to create a
19299# shared library.
19300postdeps=$lt_postdeps_GCJ
19301
19302# The directories searched by this compiler when creating a shared
19303# library
19304compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19305
19306# The library search path used internally by the compiler when linking
19307# a shared library.
19308compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19309
19310# Method to check whether dependent libraries are shared objects.
19311deplibs_check_method=$lt_deplibs_check_method
19312
19313# Command to use when deplibs_check_method == file_magic.
19314file_magic_cmd=$lt_file_magic_cmd
19315
19316# Flag that allows shared libraries with undefined symbols to be built.
19317allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19318
19319# Flag that forces no undefined symbols.
19320no_undefined_flag=$lt_no_undefined_flag_GCJ
19321
19322# Commands used to finish a libtool library installation in a directory.
19323finish_cmds=$lt_finish_cmds
19324
19325# Same as above, but a single script fragment to be evaled but not shown.
19326finish_eval=$lt_finish_eval
19327
19328# Take the output of nm and produce a listing of raw symbols and C names.
19329global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19330
19331# Transform the output of nm in a proper C declaration
19332global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19333
19334# Transform the output of nm in a C name address pair
19335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19336
19337# This is the shared library runtime path variable.
19338runpath_var=$runpath_var
19339
19340# This is the shared library path variable.
19341shlibpath_var=$shlibpath_var
19342
19343# Is shlibpath searched before the hard-coded library search path?
19344shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19345
19346# How to hardcode a shared library path into an executable.
19347hardcode_action=$hardcode_action_GCJ
19348
19349# Whether we should hardcode library paths into libraries.
19350hardcode_into_libs=$hardcode_into_libs
19351
19352# Flag to hardcode \$libdir into a binary during linking.
19353# This must work even if \$libdir does not exist.
19354hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19355
19356# If ld is used when linking, flag to hardcode \$libdir into
19357# a binary during linking. This must work even if \$libdir does
19358# not exist.
19359hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19360
19361# Whether we need a single -rpath flag with a separated argument.
19362hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19363
19364# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19365# resulting binary.
19366hardcode_direct=$hardcode_direct_GCJ
19367
19368# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19369# resulting binary.
19370hardcode_minus_L=$hardcode_minus_L_GCJ
19371
19372# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19373# the resulting binary.
19374hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19375
19376# Set to yes if building a shared library automatically hardcodes DIR into the library
19377# and all subsequent libraries and executables linked against it.
19378hardcode_automatic=$hardcode_automatic_GCJ
19379
19380# Variables whose values should be saved in libtool wrapper scripts and
19381# restored at relink time.
19382variables_saved_for_relink="$variables_saved_for_relink"
19383
19384# Whether libtool must link a program against all its dependency libraries.
19385link_all_deplibs=$link_all_deplibs_GCJ
19386
19387# Compile-time system search path for libraries
19388sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19389
19390# Run-time system search path for libraries
19391sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19392
19393# Fix the shell variable \$srcfile for the compiler.
19394fix_srcfile_path=$lt_fix_srcfile_path
19395
19396# Set to yes if exported symbols are required.
19397always_export_symbols=$always_export_symbols_GCJ
19398
19399# The commands to list exported symbols.
19400export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19401
19402# The commands to extract the exported symbol list from a shared archive.
19403extract_expsyms_cmds=$lt_extract_expsyms_cmds
19404
19405# Symbols that should not be listed in the preloaded symbols.
19406exclude_expsyms=$lt_exclude_expsyms_GCJ
19407
19408# Symbols that must always be exported.
19409include_expsyms=$lt_include_expsyms_GCJ
19410
19411# ### END LIBTOOL TAG CONFIG: $tagname
19412
19413__EOF__
19414
19415
19416else
19417  # If there is no Makefile yet, we rely on a make rule to execute
19418  # `config.status --recheck' to rerun these tests and create the
19419  # libtool script then.
19420  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19421  if test -f "$ltmain_in"; then
19422    test -f Makefile && make "$ltmain"
19423  fi
19424fi
19425
19426
19427ac_ext=c
19428ac_cpp='$CPP $CPPFLAGS'
19429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431ac_compiler_gnu=$ac_cv_c_compiler_gnu
19432
19433CC="$lt_save_CC"
19434
19435	else
19436	  tagname=""
19437	fi
19438	;;
19439
19440      RC)
19441
19442
19443# Source file extension for RC test sources.
19444ac_ext=rc
19445
19446# Object file extension for compiled RC test sources.
19447objext=o
19448objext_RC=$objext
19449
19450# Code to be used in simple compile tests
19451lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19452
19453# Code to be used in simple link tests
19454lt_simple_link_test_code="$lt_simple_compile_test_code"
19455
19456# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19457
19458# If no C compiler was specified, use CC.
19459LTCC=${LTCC-"$CC"}
19460
19461# If no C compiler flags were specified, use CFLAGS.
19462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19463
19464# Allow CC to be a program name with arguments.
19465compiler=$CC
19466
19467
19468# save warnings/boilerplate of simple test code
19469ac_outfile=conftest.$ac_objext
19470echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19472_lt_compiler_boilerplate=`cat conftest.err`
19473$rm conftest*
19474
19475ac_outfile=conftest.$ac_objext
19476echo "$lt_simple_link_test_code" >conftest.$ac_ext
19477eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19478_lt_linker_boilerplate=`cat conftest.err`
19479$rm -r conftest*
19480
19481
19482# Allow CC to be a program name with arguments.
19483lt_save_CC="$CC"
19484CC=${RC-"windres"}
19485compiler=$CC
19486compiler_RC=$CC
19487for cc_temp in $compiler""; do
19488  case $cc_temp in
19489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19491    \-*) ;;
19492    *) break;;
19493  esac
19494done
19495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19496
19497lt_cv_prog_compiler_c_o_RC=yes
19498
19499# The else clause should only fire when bootstrapping the
19500# libtool distribution, otherwise you forgot to ship ltmain.sh
19501# with your package, and you will get complaints that there are
19502# no rules to generate ltmain.sh.
19503if test -f "$ltmain"; then
19504  # See if we are running on zsh, and set the options which allow our commands through
19505  # without removal of \ escapes.
19506  if test -n "${ZSH_VERSION+set}" ; then
19507    setopt NO_GLOB_SUBST
19508  fi
19509  # Now quote all the things that may contain metacharacters while being
19510  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19511  # variables and quote the copies for generation of the libtool script.
19512  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19513    SED SHELL STRIP \
19514    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19515    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19516    deplibs_check_method reload_flag reload_cmds need_locks \
19517    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19518    lt_cv_sys_global_symbol_to_c_name_address \
19519    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19520    old_postinstall_cmds old_postuninstall_cmds \
19521    compiler_RC \
19522    CC_RC \
19523    LD_RC \
19524    lt_prog_compiler_wl_RC \
19525    lt_prog_compiler_pic_RC \
19526    lt_prog_compiler_static_RC \
19527    lt_prog_compiler_no_builtin_flag_RC \
19528    export_dynamic_flag_spec_RC \
19529    thread_safe_flag_spec_RC \
19530    whole_archive_flag_spec_RC \
19531    enable_shared_with_static_runtimes_RC \
19532    old_archive_cmds_RC \
19533    old_archive_from_new_cmds_RC \
19534    predep_objects_RC \
19535    postdep_objects_RC \
19536    predeps_RC \
19537    postdeps_RC \
19538    compiler_lib_search_path_RC \
19539    compiler_lib_search_dirs_RC \
19540    archive_cmds_RC \
19541    archive_expsym_cmds_RC \
19542    postinstall_cmds_RC \
19543    postuninstall_cmds_RC \
19544    old_archive_from_expsyms_cmds_RC \
19545    allow_undefined_flag_RC \
19546    no_undefined_flag_RC \
19547    export_symbols_cmds_RC \
19548    hardcode_libdir_flag_spec_RC \
19549    hardcode_libdir_flag_spec_ld_RC \
19550    hardcode_libdir_separator_RC \
19551    hardcode_automatic_RC \
19552    module_cmds_RC \
19553    module_expsym_cmds_RC \
19554    lt_cv_prog_compiler_c_o_RC \
19555    fix_srcfile_path_RC \
19556    exclude_expsyms_RC \
19557    include_expsyms_RC; do
19558
19559    case $var in
19560    old_archive_cmds_RC | \
19561    old_archive_from_new_cmds_RC | \
19562    archive_cmds_RC | \
19563    archive_expsym_cmds_RC | \
19564    module_cmds_RC | \
19565    module_expsym_cmds_RC | \
19566    old_archive_from_expsyms_cmds_RC | \
19567    export_symbols_cmds_RC | \
19568    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19569    postinstall_cmds | postuninstall_cmds | \
19570    old_postinstall_cmds | old_postuninstall_cmds | \
19571    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19572      # Double-quote double-evaled strings.
19573      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19574      ;;
19575    *)
19576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19577      ;;
19578    esac
19579  done
19580
19581  case $lt_echo in
19582  *'\$0 --fallback-echo"')
19583    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19584    ;;
19585  esac
19586
19587cfgfile="$ofile"
19588
19589  cat <<__EOF__ >> "$cfgfile"
19590# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19591
19592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19593
19594# Shell to use when invoking shell scripts.
19595SHELL=$lt_SHELL
19596
19597# Whether or not to build shared libraries.
19598build_libtool_libs=$enable_shared
19599
19600# Whether or not to build static libraries.
19601build_old_libs=$enable_static
19602
19603# Whether or not to add -lc for building shared libraries.
19604build_libtool_need_lc=$archive_cmds_need_lc_RC
19605
19606# Whether or not to disallow shared libs when runtime libs are static
19607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19608
19609# Whether or not to optimize for fast installation.
19610fast_install=$enable_fast_install
19611
19612# The host system.
19613host_alias=$host_alias
19614host=$host
19615host_os=$host_os
19616
19617# The build system.
19618build_alias=$build_alias
19619build=$build
19620build_os=$build_os
19621
19622# An echo program that does not interpret backslashes.
19623echo=$lt_echo
19624
19625# The archiver.
19626AR=$lt_AR
19627AR_FLAGS=$lt_AR_FLAGS
19628
19629# A C compiler.
19630LTCC=$lt_LTCC
19631
19632# LTCC compiler flags.
19633LTCFLAGS=$lt_LTCFLAGS
19634
19635# A language-specific compiler.
19636CC=$lt_compiler_RC
19637
19638# Is the compiler the GNU C compiler?
19639with_gcc=$GCC_RC
19640
19641# An ERE matcher.
19642EGREP=$lt_EGREP
19643
19644# The linker used to build libraries.
19645LD=$lt_LD_RC
19646
19647# Whether we need hard or soft links.
19648LN_S=$lt_LN_S
19649
19650# A BSD-compatible nm program.
19651NM=$lt_NM
19652
19653# A symbol stripping program
19654STRIP=$lt_STRIP
19655
19656# Used to examine libraries when file_magic_cmd begins "file"
19657MAGIC_CMD=$MAGIC_CMD
19658
19659# Used on cygwin: DLL creation program.
19660DLLTOOL="$DLLTOOL"
19661
19662# Used on cygwin: object dumper.
19663OBJDUMP="$OBJDUMP"
19664
19665# Used on cygwin: assembler.
19666AS="$AS"
19667
19668# The name of the directory that contains temporary libtool files.
19669objdir=$objdir
19670
19671# How to create reloadable object files.
19672reload_flag=$lt_reload_flag
19673reload_cmds=$lt_reload_cmds
19674
19675# How to pass a linker flag through the compiler.
19676wl=$lt_lt_prog_compiler_wl_RC
19677
19678# Object file suffix (normally "o").
19679objext="$ac_objext"
19680
19681# Old archive suffix (normally "a").
19682libext="$libext"
19683
19684# Shared library suffix (normally ".so").
19685shrext_cmds='$shrext_cmds'
19686
19687# Executable file suffix (normally "").
19688exeext="$exeext"
19689
19690# Additional compiler flags for building library objects.
19691pic_flag=$lt_lt_prog_compiler_pic_RC
19692pic_mode=$pic_mode
19693
19694# What is the maximum length of a command?
19695max_cmd_len=$lt_cv_sys_max_cmd_len
19696
19697# Does compiler simultaneously support -c and -o options?
19698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19699
19700# Must we lock files when doing compilation?
19701need_locks=$lt_need_locks
19702
19703# Do we need the lib prefix for modules?
19704need_lib_prefix=$need_lib_prefix
19705
19706# Do we need a version for libraries?
19707need_version=$need_version
19708
19709# Whether dlopen is supported.
19710dlopen_support=$enable_dlopen
19711
19712# Whether dlopen of programs is supported.
19713dlopen_self=$enable_dlopen_self
19714
19715# Whether dlopen of statically linked programs is supported.
19716dlopen_self_static=$enable_dlopen_self_static
19717
19718# Compiler flag to prevent dynamic linking.
19719link_static_flag=$lt_lt_prog_compiler_static_RC
19720
19721# Compiler flag to turn off builtin functions.
19722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19723
19724# Compiler flag to allow reflexive dlopens.
19725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19726
19727# Compiler flag to generate shared objects directly from archives.
19728whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19729
19730# Compiler flag to generate thread-safe objects.
19731thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19732
19733# Library versioning type.
19734version_type=$version_type
19735
19736# Format of library name prefix.
19737libname_spec=$lt_libname_spec
19738
19739# List of archive names.  First name is the real one, the rest are links.
19740# The last name is the one that the linker finds with -lNAME.
19741library_names_spec=$lt_library_names_spec
19742
19743# The coded name of the library, if different from the real name.
19744soname_spec=$lt_soname_spec
19745
19746# Commands used to build and install an old-style archive.
19747RANLIB=$lt_RANLIB
19748old_archive_cmds=$lt_old_archive_cmds_RC
19749old_postinstall_cmds=$lt_old_postinstall_cmds
19750old_postuninstall_cmds=$lt_old_postuninstall_cmds
19751
19752# Create an old-style archive from a shared archive.
19753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19754
19755# Create a temporary old-style archive to link instead of a shared archive.
19756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19757
19758# Commands used to build and install a shared archive.
19759archive_cmds=$lt_archive_cmds_RC
19760archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19761postinstall_cmds=$lt_postinstall_cmds
19762postuninstall_cmds=$lt_postuninstall_cmds
19763
19764# Commands used to build a loadable module (assumed same as above if empty)
19765module_cmds=$lt_module_cmds_RC
19766module_expsym_cmds=$lt_module_expsym_cmds_RC
19767
19768# Commands to strip libraries.
19769old_striplib=$lt_old_striplib
19770striplib=$lt_striplib
19771
19772# Dependencies to place before the objects being linked to create a
19773# shared library.
19774predep_objects=$lt_predep_objects_RC
19775
19776# Dependencies to place after the objects being linked to create a
19777# shared library.
19778postdep_objects=$lt_postdep_objects_RC
19779
19780# Dependencies to place before the objects being linked to create a
19781# shared library.
19782predeps=$lt_predeps_RC
19783
19784# Dependencies to place after the objects being linked to create a
19785# shared library.
19786postdeps=$lt_postdeps_RC
19787
19788# The directories searched by this compiler when creating a shared
19789# library
19790compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19791
19792# The library search path used internally by the compiler when linking
19793# a shared library.
19794compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19795
19796# Method to check whether dependent libraries are shared objects.
19797deplibs_check_method=$lt_deplibs_check_method
19798
19799# Command to use when deplibs_check_method == file_magic.
19800file_magic_cmd=$lt_file_magic_cmd
19801
19802# Flag that allows shared libraries with undefined symbols to be built.
19803allow_undefined_flag=$lt_allow_undefined_flag_RC
19804
19805# Flag that forces no undefined symbols.
19806no_undefined_flag=$lt_no_undefined_flag_RC
19807
19808# Commands used to finish a libtool library installation in a directory.
19809finish_cmds=$lt_finish_cmds
19810
19811# Same as above, but a single script fragment to be evaled but not shown.
19812finish_eval=$lt_finish_eval
19813
19814# Take the output of nm and produce a listing of raw symbols and C names.
19815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19816
19817# Transform the output of nm in a proper C declaration
19818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19819
19820# Transform the output of nm in a C name address pair
19821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19822
19823# This is the shared library runtime path variable.
19824runpath_var=$runpath_var
19825
19826# This is the shared library path variable.
19827shlibpath_var=$shlibpath_var
19828
19829# Is shlibpath searched before the hard-coded library search path?
19830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19831
19832# How to hardcode a shared library path into an executable.
19833hardcode_action=$hardcode_action_RC
19834
19835# Whether we should hardcode library paths into libraries.
19836hardcode_into_libs=$hardcode_into_libs
19837
19838# Flag to hardcode \$libdir into a binary during linking.
19839# This must work even if \$libdir does not exist.
19840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19841
19842# If ld is used when linking, flag to hardcode \$libdir into
19843# a binary during linking. This must work even if \$libdir does
19844# not exist.
19845hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19846
19847# Whether we need a single -rpath flag with a separated argument.
19848hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19849
19850# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19851# resulting binary.
19852hardcode_direct=$hardcode_direct_RC
19853
19854# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19855# resulting binary.
19856hardcode_minus_L=$hardcode_minus_L_RC
19857
19858# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19859# the resulting binary.
19860hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19861
19862# Set to yes if building a shared library automatically hardcodes DIR into the library
19863# and all subsequent libraries and executables linked against it.
19864hardcode_automatic=$hardcode_automatic_RC
19865
19866# Variables whose values should be saved in libtool wrapper scripts and
19867# restored at relink time.
19868variables_saved_for_relink="$variables_saved_for_relink"
19869
19870# Whether libtool must link a program against all its dependency libraries.
19871link_all_deplibs=$link_all_deplibs_RC
19872
19873# Compile-time system search path for libraries
19874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19875
19876# Run-time system search path for libraries
19877sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19878
19879# Fix the shell variable \$srcfile for the compiler.
19880fix_srcfile_path=$lt_fix_srcfile_path
19881
19882# Set to yes if exported symbols are required.
19883always_export_symbols=$always_export_symbols_RC
19884
19885# The commands to list exported symbols.
19886export_symbols_cmds=$lt_export_symbols_cmds_RC
19887
19888# The commands to extract the exported symbol list from a shared archive.
19889extract_expsyms_cmds=$lt_extract_expsyms_cmds
19890
19891# Symbols that should not be listed in the preloaded symbols.
19892exclude_expsyms=$lt_exclude_expsyms_RC
19893
19894# Symbols that must always be exported.
19895include_expsyms=$lt_include_expsyms_RC
19896
19897# ### END LIBTOOL TAG CONFIG: $tagname
19898
19899__EOF__
19900
19901
19902else
19903  # If there is no Makefile yet, we rely on a make rule to execute
19904  # `config.status --recheck' to rerun these tests and create the
19905  # libtool script then.
19906  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19907  if test -f "$ltmain_in"; then
19908    test -f Makefile && make "$ltmain"
19909  fi
19910fi
19911
19912
19913ac_ext=c
19914ac_cpp='$CPP $CPPFLAGS'
19915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918
19919CC="$lt_save_CC"
19920
19921	;;
19922
19923      *)
19924	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19925$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19926   { (exit 1); exit 1; }; }
19927	;;
19928      esac
19929
19930      # Append the new tag name to the list of available tags.
19931      if test -n "$tagname" ; then
19932      available_tags="$available_tags $tagname"
19933    fi
19934    fi
19935  done
19936  IFS="$lt_save_ifs"
19937
19938  # Now substitute the updated list of available tags.
19939  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19940    mv "${ofile}T" "$ofile"
19941    chmod +x "$ofile"
19942  else
19943    rm -f "${ofile}T"
19944    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19945$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19946   { (exit 1); exit 1; }; }
19947  fi
19948fi
19949
19950
19951
19952# This can be used to rebuild libtool when needed
19953LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19954
19955# Always use our own libtool.
19956LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19957
19958# Prevent multiple expansion
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979ac_ext=c
19980ac_cpp='$CPP $CPPFLAGS'
19981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984if test -n "$ac_tool_prefix"; then
19985  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19986set dummy ${ac_tool_prefix}gcc; ac_word=$2
19987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19988$as_echo_n "checking for $ac_word... " >&6; }
19989if test "${ac_cv_prog_CC+set}" = set; then
19990  $as_echo_n "(cached) " >&6
19991else
19992  if test -n "$CC"; then
19993  ac_cv_prog_CC="$CC" # Let the user override the test.
19994else
19995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996for as_dir in $PATH
19997do
19998  IFS=$as_save_IFS
19999  test -z "$as_dir" && as_dir=.
20000  for ac_exec_ext in '' $ac_executable_extensions; do
20001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20002    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20003    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20004    break 2
20005  fi
20006done
20007done
20008IFS=$as_save_IFS
20009
20010fi
20011fi
20012CC=$ac_cv_prog_CC
20013if test -n "$CC"; then
20014  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20015$as_echo "$CC" >&6; }
20016else
20017  { $as_echo "$as_me:$LINENO: result: no" >&5
20018$as_echo "no" >&6; }
20019fi
20020
20021
20022fi
20023if test -z "$ac_cv_prog_CC"; then
20024  ac_ct_CC=$CC
20025  # Extract the first word of "gcc", so it can be a program name with args.
20026set dummy gcc; ac_word=$2
20027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20028$as_echo_n "checking for $ac_word... " >&6; }
20029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20030  $as_echo_n "(cached) " >&6
20031else
20032  if test -n "$ac_ct_CC"; then
20033  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20034else
20035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20036for as_dir in $PATH
20037do
20038  IFS=$as_save_IFS
20039  test -z "$as_dir" && as_dir=.
20040  for ac_exec_ext in '' $ac_executable_extensions; do
20041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20042    ac_cv_prog_ac_ct_CC="gcc"
20043    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20044    break 2
20045  fi
20046done
20047done
20048IFS=$as_save_IFS
20049
20050fi
20051fi
20052ac_ct_CC=$ac_cv_prog_ac_ct_CC
20053if test -n "$ac_ct_CC"; then
20054  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20055$as_echo "$ac_ct_CC" >&6; }
20056else
20057  { $as_echo "$as_me:$LINENO: result: no" >&5
20058$as_echo "no" >&6; }
20059fi
20060
20061  if test "x$ac_ct_CC" = x; then
20062    CC=""
20063  else
20064    case $cross_compiling:$ac_tool_warned in
20065yes:)
20066{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20068ac_tool_warned=yes ;;
20069esac
20070    CC=$ac_ct_CC
20071  fi
20072else
20073  CC="$ac_cv_prog_CC"
20074fi
20075
20076if test -z "$CC"; then
20077          if test -n "$ac_tool_prefix"; then
20078    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20079set dummy ${ac_tool_prefix}cc; ac_word=$2
20080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20081$as_echo_n "checking for $ac_word... " >&6; }
20082if test "${ac_cv_prog_CC+set}" = set; then
20083  $as_echo_n "(cached) " >&6
20084else
20085  if test -n "$CC"; then
20086  ac_cv_prog_CC="$CC" # Let the user override the test.
20087else
20088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20089for as_dir in $PATH
20090do
20091  IFS=$as_save_IFS
20092  test -z "$as_dir" && as_dir=.
20093  for ac_exec_ext in '' $ac_executable_extensions; do
20094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20095    ac_cv_prog_CC="${ac_tool_prefix}cc"
20096    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20097    break 2
20098  fi
20099done
20100done
20101IFS=$as_save_IFS
20102
20103fi
20104fi
20105CC=$ac_cv_prog_CC
20106if test -n "$CC"; then
20107  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20108$as_echo "$CC" >&6; }
20109else
20110  { $as_echo "$as_me:$LINENO: result: no" >&5
20111$as_echo "no" >&6; }
20112fi
20113
20114
20115  fi
20116fi
20117if test -z "$CC"; then
20118  # Extract the first word of "cc", so it can be a program name with args.
20119set dummy cc; ac_word=$2
20120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20121$as_echo_n "checking for $ac_word... " >&6; }
20122if test "${ac_cv_prog_CC+set}" = set; then
20123  $as_echo_n "(cached) " >&6
20124else
20125  if test -n "$CC"; then
20126  ac_cv_prog_CC="$CC" # Let the user override the test.
20127else
20128  ac_prog_rejected=no
20129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130for as_dir in $PATH
20131do
20132  IFS=$as_save_IFS
20133  test -z "$as_dir" && as_dir=.
20134  for ac_exec_ext in '' $ac_executable_extensions; do
20135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20136    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20137       ac_prog_rejected=yes
20138       continue
20139     fi
20140    ac_cv_prog_CC="cc"
20141    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20142    break 2
20143  fi
20144done
20145done
20146IFS=$as_save_IFS
20147
20148if test $ac_prog_rejected = yes; then
20149  # We found a bogon in the path, so make sure we never use it.
20150  set dummy $ac_cv_prog_CC
20151  shift
20152  if test $# != 0; then
20153    # We chose a different compiler from the bogus one.
20154    # However, it has the same basename, so the bogon will be chosen
20155    # first if we set CC to just the basename; use the full file name.
20156    shift
20157    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20158  fi
20159fi
20160fi
20161fi
20162CC=$ac_cv_prog_CC
20163if test -n "$CC"; then
20164  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20165$as_echo "$CC" >&6; }
20166else
20167  { $as_echo "$as_me:$LINENO: result: no" >&5
20168$as_echo "no" >&6; }
20169fi
20170
20171
20172fi
20173if test -z "$CC"; then
20174  if test -n "$ac_tool_prefix"; then
20175  for ac_prog in cl.exe
20176  do
20177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20180$as_echo_n "checking for $ac_word... " >&6; }
20181if test "${ac_cv_prog_CC+set}" = set; then
20182  $as_echo_n "(cached) " >&6
20183else
20184  if test -n "$CC"; then
20185  ac_cv_prog_CC="$CC" # Let the user override the test.
20186else
20187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20188for as_dir in $PATH
20189do
20190  IFS=$as_save_IFS
20191  test -z "$as_dir" && as_dir=.
20192  for ac_exec_ext in '' $ac_executable_extensions; do
20193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20194    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20195    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20196    break 2
20197  fi
20198done
20199done
20200IFS=$as_save_IFS
20201
20202fi
20203fi
20204CC=$ac_cv_prog_CC
20205if test -n "$CC"; then
20206  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20207$as_echo "$CC" >&6; }
20208else
20209  { $as_echo "$as_me:$LINENO: result: no" >&5
20210$as_echo "no" >&6; }
20211fi
20212
20213
20214    test -n "$CC" && break
20215  done
20216fi
20217if test -z "$CC"; then
20218  ac_ct_CC=$CC
20219  for ac_prog in cl.exe
20220do
20221  # Extract the first word of "$ac_prog", so it can be a program name with args.
20222set dummy $ac_prog; ac_word=$2
20223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20224$as_echo_n "checking for $ac_word... " >&6; }
20225if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20226  $as_echo_n "(cached) " >&6
20227else
20228  if test -n "$ac_ct_CC"; then
20229  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20230else
20231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20232for as_dir in $PATH
20233do
20234  IFS=$as_save_IFS
20235  test -z "$as_dir" && as_dir=.
20236  for ac_exec_ext in '' $ac_executable_extensions; do
20237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20238    ac_cv_prog_ac_ct_CC="$ac_prog"
20239    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20240    break 2
20241  fi
20242done
20243done
20244IFS=$as_save_IFS
20245
20246fi
20247fi
20248ac_ct_CC=$ac_cv_prog_ac_ct_CC
20249if test -n "$ac_ct_CC"; then
20250  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20251$as_echo "$ac_ct_CC" >&6; }
20252else
20253  { $as_echo "$as_me:$LINENO: result: no" >&5
20254$as_echo "no" >&6; }
20255fi
20256
20257
20258  test -n "$ac_ct_CC" && break
20259done
20260
20261  if test "x$ac_ct_CC" = x; then
20262    CC=""
20263  else
20264    case $cross_compiling:$ac_tool_warned in
20265yes:)
20266{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20268ac_tool_warned=yes ;;
20269esac
20270    CC=$ac_ct_CC
20271  fi
20272fi
20273
20274fi
20275
20276
20277test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20279{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20280See \`config.log' for more details." >&5
20281$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20282See \`config.log' for more details." >&2;}
20283   { (exit 1); exit 1; }; }; }
20284
20285# Provide some information about the compiler.
20286$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20287set X $ac_compile
20288ac_compiler=$2
20289{ (ac_try="$ac_compiler --version >&5"
20290case "(($ac_try" in
20291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292  *) ac_try_echo=$ac_try;;
20293esac
20294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20295$as_echo "$ac_try_echo") >&5
20296  (eval "$ac_compiler --version >&5") 2>&5
20297  ac_status=$?
20298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); }
20300{ (ac_try="$ac_compiler -v >&5"
20301case "(($ac_try" in
20302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303  *) ac_try_echo=$ac_try;;
20304esac
20305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306$as_echo "$ac_try_echo") >&5
20307  (eval "$ac_compiler -v >&5") 2>&5
20308  ac_status=$?
20309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310  (exit $ac_status); }
20311{ (ac_try="$ac_compiler -V >&5"
20312case "(($ac_try" in
20313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314  *) ac_try_echo=$ac_try;;
20315esac
20316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20317$as_echo "$ac_try_echo") >&5
20318  (eval "$ac_compiler -V >&5") 2>&5
20319  ac_status=$?
20320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321  (exit $ac_status); }
20322
20323{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20324$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20325if test "${ac_cv_c_compiler_gnu+set}" = set; then
20326  $as_echo_n "(cached) " >&6
20327else
20328  cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h.  */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h.  */
20334
20335int
20336main ()
20337{
20338#ifndef __GNUC__
20339       choke me
20340#endif
20341
20342  ;
20343  return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext
20347if { (ac_try="$ac_compile"
20348case "(($ac_try" in
20349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350  *) ac_try_echo=$ac_try;;
20351esac
20352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20353$as_echo "$ac_try_echo") >&5
20354  (eval "$ac_compile") 2>conftest.er1
20355  ac_status=$?
20356  grep -v '^ *+' conftest.er1 >conftest.err
20357  rm -f conftest.er1
20358  cat conftest.err >&5
20359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); } && {
20361	 test -z "$ac_c_werror_flag" ||
20362	 test ! -s conftest.err
20363       } && test -s conftest.$ac_objext; then
20364  ac_compiler_gnu=yes
20365else
20366  $as_echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369	ac_compiler_gnu=no
20370fi
20371
20372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20373ac_cv_c_compiler_gnu=$ac_compiler_gnu
20374
20375fi
20376{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20377$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20378if test $ac_compiler_gnu = yes; then
20379  GCC=yes
20380else
20381  GCC=
20382fi
20383ac_test_CFLAGS=${CFLAGS+set}
20384ac_save_CFLAGS=$CFLAGS
20385{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20386$as_echo_n "checking whether $CC accepts -g... " >&6; }
20387if test "${ac_cv_prog_cc_g+set}" = set; then
20388  $as_echo_n "(cached) " >&6
20389else
20390  ac_save_c_werror_flag=$ac_c_werror_flag
20391   ac_c_werror_flag=yes
20392   ac_cv_prog_cc_g=no
20393   CFLAGS="-g"
20394   cat >conftest.$ac_ext <<_ACEOF
20395/* confdefs.h.  */
20396_ACEOF
20397cat confdefs.h >>conftest.$ac_ext
20398cat >>conftest.$ac_ext <<_ACEOF
20399/* end confdefs.h.  */
20400
20401int
20402main ()
20403{
20404
20405  ;
20406  return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (ac_try="$ac_compile"
20411case "(($ac_try" in
20412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413  *) ac_try_echo=$ac_try;;
20414esac
20415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20416$as_echo "$ac_try_echo") >&5
20417  (eval "$ac_compile") 2>conftest.er1
20418  ac_status=$?
20419  grep -v '^ *+' conftest.er1 >conftest.err
20420  rm -f conftest.er1
20421  cat conftest.err >&5
20422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423  (exit $ac_status); } && {
20424	 test -z "$ac_c_werror_flag" ||
20425	 test ! -s conftest.err
20426       } && test -s conftest.$ac_objext; then
20427  ac_cv_prog_cc_g=yes
20428else
20429  $as_echo "$as_me: failed program was:" >&5
20430sed 's/^/| /' conftest.$ac_ext >&5
20431
20432	CFLAGS=""
20433      cat >conftest.$ac_ext <<_ACEOF
20434/* confdefs.h.  */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h.  */
20439
20440int
20441main ()
20442{
20443
20444  ;
20445  return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext
20449if { (ac_try="$ac_compile"
20450case "(($ac_try" in
20451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452  *) ac_try_echo=$ac_try;;
20453esac
20454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20455$as_echo "$ac_try_echo") >&5
20456  (eval "$ac_compile") 2>conftest.er1
20457  ac_status=$?
20458  grep -v '^ *+' conftest.er1 >conftest.err
20459  rm -f conftest.er1
20460  cat conftest.err >&5
20461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462  (exit $ac_status); } && {
20463	 test -z "$ac_c_werror_flag" ||
20464	 test ! -s conftest.err
20465       } && test -s conftest.$ac_objext; then
20466  :
20467else
20468  $as_echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471	ac_c_werror_flag=$ac_save_c_werror_flag
20472	 CFLAGS="-g"
20473	 cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h.  */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h.  */
20479
20480int
20481main ()
20482{
20483
20484  ;
20485  return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext
20489if { (ac_try="$ac_compile"
20490case "(($ac_try" in
20491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492  *) ac_try_echo=$ac_try;;
20493esac
20494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20495$as_echo "$ac_try_echo") >&5
20496  (eval "$ac_compile") 2>conftest.er1
20497  ac_status=$?
20498  grep -v '^ *+' conftest.er1 >conftest.err
20499  rm -f conftest.er1
20500  cat conftest.err >&5
20501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502  (exit $ac_status); } && {
20503	 test -z "$ac_c_werror_flag" ||
20504	 test ! -s conftest.err
20505       } && test -s conftest.$ac_objext; then
20506  ac_cv_prog_cc_g=yes
20507else
20508  $as_echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511
20512fi
20513
20514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518fi
20519
20520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521   ac_c_werror_flag=$ac_save_c_werror_flag
20522fi
20523{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20524$as_echo "$ac_cv_prog_cc_g" >&6; }
20525if test "$ac_test_CFLAGS" = set; then
20526  CFLAGS=$ac_save_CFLAGS
20527elif test $ac_cv_prog_cc_g = yes; then
20528  if test "$GCC" = yes; then
20529    CFLAGS="-g -O2"
20530  else
20531    CFLAGS="-g"
20532  fi
20533else
20534  if test "$GCC" = yes; then
20535    CFLAGS="-O2"
20536  else
20537    CFLAGS=
20538  fi
20539fi
20540{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20541$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20542if test "${ac_cv_prog_cc_c89+set}" = set; then
20543  $as_echo_n "(cached) " >&6
20544else
20545  ac_cv_prog_cc_c89=no
20546ac_save_CC=$CC
20547cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h.  */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h.  */
20553#include <stdarg.h>
20554#include <stdio.h>
20555#include <sys/types.h>
20556#include <sys/stat.h>
20557/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20558struct buf { int x; };
20559FILE * (*rcsopen) (struct buf *, struct stat *, int);
20560static char *e (p, i)
20561     char **p;
20562     int i;
20563{
20564  return p[i];
20565}
20566static char *f (char * (*g) (char **, int), char **p, ...)
20567{
20568  char *s;
20569  va_list v;
20570  va_start (v,p);
20571  s = g (p, va_arg (v,int));
20572  va_end (v);
20573  return s;
20574}
20575
20576/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20577   function prototypes and stuff, but not '\xHH' hex character constants.
20578   These don't provoke an error unfortunately, instead are silently treated
20579   as 'x'.  The following induces an error, until -std is added to get
20580   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20581   array size at least.  It's necessary to write '\x00'==0 to get something
20582   that's true only with -std.  */
20583int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20584
20585/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20586   inside strings and character constants.  */
20587#define FOO(x) 'x'
20588int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20589
20590int test (int i, double x);
20591struct s1 {int (*f) (int a);};
20592struct s2 {int (*f) (double a);};
20593int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20594int argc;
20595char **argv;
20596int
20597main ()
20598{
20599return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20600  ;
20601  return 0;
20602}
20603_ACEOF
20604for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20605	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20606do
20607  CC="$ac_save_CC $ac_arg"
20608  rm -f conftest.$ac_objext
20609if { (ac_try="$ac_compile"
20610case "(($ac_try" in
20611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612  *) ac_try_echo=$ac_try;;
20613esac
20614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20615$as_echo "$ac_try_echo") >&5
20616  (eval "$ac_compile") 2>conftest.er1
20617  ac_status=$?
20618  grep -v '^ *+' conftest.er1 >conftest.err
20619  rm -f conftest.er1
20620  cat conftest.err >&5
20621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622  (exit $ac_status); } && {
20623	 test -z "$ac_c_werror_flag" ||
20624	 test ! -s conftest.err
20625       } && test -s conftest.$ac_objext; then
20626  ac_cv_prog_cc_c89=$ac_arg
20627else
20628  $as_echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631
20632fi
20633
20634rm -f core conftest.err conftest.$ac_objext
20635  test "x$ac_cv_prog_cc_c89" != "xno" && break
20636done
20637rm -f conftest.$ac_ext
20638CC=$ac_save_CC
20639
20640fi
20641# AC_CACHE_VAL
20642case "x$ac_cv_prog_cc_c89" in
20643  x)
20644    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20645$as_echo "none needed" >&6; } ;;
20646  xno)
20647    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20648$as_echo "unsupported" >&6; } ;;
20649  *)
20650    CC="$CC $ac_cv_prog_cc_c89"
20651    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20652$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20653esac
20654
20655
20656ac_ext=c
20657ac_cpp='$CPP $CPPFLAGS'
20658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661
20662depcc="$CC"   am_compiler_list=
20663
20664{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20665$as_echo_n "checking dependency style of $depcc... " >&6; }
20666if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20667  $as_echo_n "(cached) " >&6
20668else
20669  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20670  # We make a subdir and do the tests there.  Otherwise we can end up
20671  # making bogus files that we don't know about and never remove.  For
20672  # instance it was reported that on HP-UX the gcc test will end up
20673  # making a dummy file named `D' -- because `-MD' means `put the output
20674  # in D'.
20675  mkdir conftest.dir
20676  # Copy depcomp to subdir because otherwise we won't find it if we're
20677  # using a relative directory.
20678  cp "$am_depcomp" conftest.dir
20679  cd conftest.dir
20680  # We will build objects and dependencies in a subdirectory because
20681  # it helps to detect inapplicable dependency modes.  For instance
20682  # both Tru64's cc and ICC support -MD to output dependencies as a
20683  # side effect of compilation, but ICC will put the dependencies in
20684  # the current directory while Tru64 will put them in the object
20685  # directory.
20686  mkdir sub
20687
20688  am_cv_CC_dependencies_compiler_type=none
20689  if test "$am_compiler_list" = ""; then
20690     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20691  fi
20692  for depmode in $am_compiler_list; do
20693    # Setup a source with many dependencies, because some compilers
20694    # like to wrap large dependency lists on column 80 (with \), and
20695    # we should not choose a depcomp mode which is confused by this.
20696    #
20697    # We need to recreate these files for each test, as the compiler may
20698    # overwrite some of them when testing with obscure command lines.
20699    # This happens at least with the AIX C compiler.
20700    : > sub/conftest.c
20701    for i in 1 2 3 4 5 6; do
20702      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20703      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20704      # Solaris 8's {/usr,}/bin/sh.
20705      touch sub/conftst$i.h
20706    done
20707    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20708
20709    case $depmode in
20710    nosideeffect)
20711      # after this tag, mechanisms are not by side-effect, so they'll
20712      # only be used when explicitly requested
20713      if test "x$enable_dependency_tracking" = xyes; then
20714	continue
20715      else
20716	break
20717      fi
20718      ;;
20719    none) break ;;
20720    esac
20721    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20722    # mode.  It turns out that the SunPro C++ compiler does not properly
20723    # handle `-M -o', and we need to detect this.
20724    if depmode=$depmode \
20725       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20727       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20728         >/dev/null 2>conftest.err &&
20729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20731       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20733      # icc doesn't choke on unknown options, it will just issue warnings
20734      # or remarks (even with -Werror).  So we grep stderr for any message
20735      # that says an option was ignored or not supported.
20736      # When given -MP, icc 7.0 and 7.1 complain thusly:
20737      #   icc: Command line warning: ignoring option '-M'; no argument required
20738      # The diagnosis changed in icc 8.0:
20739      #   icc: Command line remark: option '-MP' not supported
20740      if (grep 'ignoring option' conftest.err ||
20741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20742        am_cv_CC_dependencies_compiler_type=$depmode
20743        break
20744      fi
20745    fi
20746  done
20747
20748  cd ..
20749  rm -rf conftest.dir
20750else
20751  am_cv_CC_dependencies_compiler_type=none
20752fi
20753
20754fi
20755{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20758
20759 if
20760  test "x$enable_dependency_tracking" != xno \
20761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20762  am__fastdepCC_TRUE=
20763  am__fastdepCC_FALSE='#'
20764else
20765  am__fastdepCC_TRUE='#'
20766  am__fastdepCC_FALSE=
20767fi
20768
20769
20770
20771
20772
20773
20774
20775# Check whether --with-xorg-module-dir was given.
20776if test "${with_xorg_module_dir+set}" = set; then
20777  withval=$with_xorg_module_dir; moduledir="$withval"
20778else
20779  moduledir="$libdir/xorg/modules"
20780fi
20781
20782
20783# Check whether --enable-dri was given.
20784if test "${enable_dri+set}" = set; then
20785  enableval=$enable_dri; DRI="$enableval"
20786else
20787  DRI=auto
20788fi
20789
20790
20791# Checks for extensions
20792
20793	SAVE_CFLAGS="$CFLAGS"
20794	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20795	cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h.  */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h.  */
20801
20802#include "xorg-server.h"
20803#if !defined RANDR
20804#error RANDR not defined
20805#endif
20806
20807int
20808main ()
20809{
20810
20811  ;
20812  return 0;
20813}
20814_ACEOF
20815rm -f conftest.$ac_objext
20816if { (ac_try="$ac_compile"
20817case "(($ac_try" in
20818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819  *) ac_try_echo=$ac_try;;
20820esac
20821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20822$as_echo "$ac_try_echo") >&5
20823  (eval "$ac_compile") 2>conftest.er1
20824  ac_status=$?
20825  grep -v '^ *+' conftest.er1 >conftest.err
20826  rm -f conftest.er1
20827  cat conftest.err >&5
20828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); } && {
20830	 test -z "$ac_c_werror_flag" ||
20831	 test ! -s conftest.err
20832       } && test -s conftest.$ac_objext; then
20833  _EXT_CHECK=yes
20834else
20835  $as_echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838	_EXT_CHECK=no
20839fi
20840
20841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842	CFLAGS="$SAVE_CFLAGS"
20843	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20844$as_echo_n "checking if RANDR is defined... " >&6; }
20845	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20846$as_echo "$_EXT_CHECK" >&6; }
20847	if test "$_EXT_CHECK" != no; then
20848		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20849	fi
20850
20851
20852	SAVE_CFLAGS="$CFLAGS"
20853	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20854	cat >conftest.$ac_ext <<_ACEOF
20855/* confdefs.h.  */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h.  */
20860
20861#include "xorg-server.h"
20862#if !defined RENDER
20863#error RENDER not defined
20864#endif
20865
20866int
20867main ()
20868{
20869
20870  ;
20871  return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (ac_try="$ac_compile"
20876case "(($ac_try" in
20877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878  *) ac_try_echo=$ac_try;;
20879esac
20880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20881$as_echo "$ac_try_echo") >&5
20882  (eval "$ac_compile") 2>conftest.er1
20883  ac_status=$?
20884  grep -v '^ *+' conftest.er1 >conftest.err
20885  rm -f conftest.er1
20886  cat conftest.err >&5
20887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888  (exit $ac_status); } && {
20889	 test -z "$ac_c_werror_flag" ||
20890	 test ! -s conftest.err
20891       } && test -s conftest.$ac_objext; then
20892  _EXT_CHECK=yes
20893else
20894  $as_echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897	_EXT_CHECK=no
20898fi
20899
20900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901	CFLAGS="$SAVE_CFLAGS"
20902	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20903$as_echo_n "checking if RENDER is defined... " >&6; }
20904	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20905$as_echo "$_EXT_CHECK" >&6; }
20906	if test "$_EXT_CHECK" != no; then
20907		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20908	fi
20909
20910
20911	SAVE_CFLAGS="$CFLAGS"
20912	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20913	cat >conftest.$ac_ext <<_ACEOF
20914/* confdefs.h.  */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h.  */
20919
20920#include "xorg-server.h"
20921#if !defined XV
20922#error XV not defined
20923#endif
20924
20925int
20926main ()
20927{
20928
20929  ;
20930  return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext
20934if { (ac_try="$ac_compile"
20935case "(($ac_try" in
20936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937  *) ac_try_echo=$ac_try;;
20938esac
20939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20940$as_echo "$ac_try_echo") >&5
20941  (eval "$ac_compile") 2>conftest.er1
20942  ac_status=$?
20943  grep -v '^ *+' conftest.er1 >conftest.err
20944  rm -f conftest.er1
20945  cat conftest.err >&5
20946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947  (exit $ac_status); } && {
20948	 test -z "$ac_c_werror_flag" ||
20949	 test ! -s conftest.err
20950       } && test -s conftest.$ac_objext; then
20951  _EXT_CHECK=yes
20952else
20953  $as_echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
20956	_EXT_CHECK=no
20957fi
20958
20959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960	CFLAGS="$SAVE_CFLAGS"
20961	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
20962$as_echo_n "checking if XV is defined... " >&6; }
20963	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20964$as_echo "$_EXT_CHECK" >&6; }
20965	if test "$_EXT_CHECK" != no; then
20966		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20967	fi
20968
20969
20970	SAVE_CFLAGS="$CFLAGS"
20971	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20972	cat >conftest.$ac_ext <<_ACEOF
20973/* confdefs.h.  */
20974_ACEOF
20975cat confdefs.h >>conftest.$ac_ext
20976cat >>conftest.$ac_ext <<_ACEOF
20977/* end confdefs.h.  */
20978
20979#include "xorg-server.h"
20980#if !defined DPMSExtension
20981#error DPMSExtension not defined
20982#endif
20983
20984int
20985main ()
20986{
20987
20988  ;
20989  return 0;
20990}
20991_ACEOF
20992rm -f conftest.$ac_objext
20993if { (ac_try="$ac_compile"
20994case "(($ac_try" in
20995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996  *) ac_try_echo=$ac_try;;
20997esac
20998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20999$as_echo "$ac_try_echo") >&5
21000  (eval "$ac_compile") 2>conftest.er1
21001  ac_status=$?
21002  grep -v '^ *+' conftest.er1 >conftest.err
21003  rm -f conftest.er1
21004  cat conftest.err >&5
21005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006  (exit $ac_status); } && {
21007	 test -z "$ac_c_werror_flag" ||
21008	 test ! -s conftest.err
21009       } && test -s conftest.$ac_objext; then
21010  _EXT_CHECK=yes
21011else
21012  $as_echo "$as_me: failed program was:" >&5
21013sed 's/^/| /' conftest.$ac_ext >&5
21014
21015	_EXT_CHECK=no
21016fi
21017
21018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019	CFLAGS="$SAVE_CFLAGS"
21020	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21021$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21022	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21023$as_echo "$_EXT_CHECK" >&6; }
21024	if test "$_EXT_CHECK" != no; then
21025		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21026	fi
21027
21028
21029# Checks for pkg-config packages
21030
21031
21032if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21033	if test -n "$ac_tool_prefix"; then
21034  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21035set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21037$as_echo_n "checking for $ac_word... " >&6; }
21038if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21039  $as_echo_n "(cached) " >&6
21040else
21041  case $PKG_CONFIG in
21042  [\\/]* | ?:[\\/]*)
21043  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21044  ;;
21045  *)
21046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21047for as_dir in $PATH
21048do
21049  IFS=$as_save_IFS
21050  test -z "$as_dir" && as_dir=.
21051  for ac_exec_ext in '' $ac_executable_extensions; do
21052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21053    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21054    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21055    break 2
21056  fi
21057done
21058done
21059IFS=$as_save_IFS
21060
21061  ;;
21062esac
21063fi
21064PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21065if test -n "$PKG_CONFIG"; then
21066  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21067$as_echo "$PKG_CONFIG" >&6; }
21068else
21069  { $as_echo "$as_me:$LINENO: result: no" >&5
21070$as_echo "no" >&6; }
21071fi
21072
21073
21074fi
21075if test -z "$ac_cv_path_PKG_CONFIG"; then
21076  ac_pt_PKG_CONFIG=$PKG_CONFIG
21077  # Extract the first word of "pkg-config", so it can be a program name with args.
21078set dummy pkg-config; ac_word=$2
21079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21080$as_echo_n "checking for $ac_word... " >&6; }
21081if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21082  $as_echo_n "(cached) " >&6
21083else
21084  case $ac_pt_PKG_CONFIG in
21085  [\\/]* | ?:[\\/]*)
21086  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21087  ;;
21088  *)
21089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21090for as_dir in $PATH
21091do
21092  IFS=$as_save_IFS
21093  test -z "$as_dir" && as_dir=.
21094  for ac_exec_ext in '' $ac_executable_extensions; do
21095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21096    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21097    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21098    break 2
21099  fi
21100done
21101done
21102IFS=$as_save_IFS
21103
21104  ;;
21105esac
21106fi
21107ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21108if test -n "$ac_pt_PKG_CONFIG"; then
21109  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21110$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21111else
21112  { $as_echo "$as_me:$LINENO: result: no" >&5
21113$as_echo "no" >&6; }
21114fi
21115
21116  if test "x$ac_pt_PKG_CONFIG" = x; then
21117    PKG_CONFIG=""
21118  else
21119    case $cross_compiling:$ac_tool_warned in
21120yes:)
21121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21123ac_tool_warned=yes ;;
21124esac
21125    PKG_CONFIG=$ac_pt_PKG_CONFIG
21126  fi
21127else
21128  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21129fi
21130
21131fi
21132if test -n "$PKG_CONFIG"; then
21133	_pkg_min_version=0.9.0
21134	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21135$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21136	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21137		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21138$as_echo "yes" >&6; }
21139	else
21140		{ $as_echo "$as_me:$LINENO: result: no" >&5
21141$as_echo "no" >&6; }
21142		PKG_CONFIG=""
21143	fi
21144
21145fi
21146
21147pkg_failed=no
21148{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21149$as_echo_n "checking for XORG... " >&6; }
21150
21151if test -n "$XORG_CFLAGS"; then
21152    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21153 elif test -n "$PKG_CONFIG"; then
21154    if test -n "$PKG_CONFIG" && \
21155    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21156  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21157  ac_status=$?
21158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159  (exit $ac_status); }; then
21160  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21161else
21162  pkg_failed=yes
21163fi
21164 else
21165    pkg_failed=untried
21166fi
21167if test -n "$XORG_LIBS"; then
21168    pkg_cv_XORG_LIBS="$XORG_LIBS"
21169 elif test -n "$PKG_CONFIG"; then
21170    if test -n "$PKG_CONFIG" && \
21171    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21172  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21173  ac_status=$?
21174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175  (exit $ac_status); }; then
21176  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21177else
21178  pkg_failed=yes
21179fi
21180 else
21181    pkg_failed=untried
21182fi
21183
21184
21185
21186if test $pkg_failed = yes; then
21187
21188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21189        _pkg_short_errors_supported=yes
21190else
21191        _pkg_short_errors_supported=no
21192fi
21193        if test $_pkg_short_errors_supported = yes; then
21194	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21195        else
21196	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21197        fi
21198	# Put the nasty error message in config.log where it belongs
21199	echo "$XORG_PKG_ERRORS" >&5
21200
21201	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21202
21203$XORG_PKG_ERRORS
21204
21205Consider adjusting the PKG_CONFIG_PATH environment variable if you
21206installed software in a non-standard prefix.
21207
21208Alternatively, you may set the environment variables XORG_CFLAGS
21209and XORG_LIBS to avoid the need to call pkg-config.
21210See the pkg-config man page for more details.
21211" >&5
21212$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21213
21214$XORG_PKG_ERRORS
21215
21216Consider adjusting the PKG_CONFIG_PATH environment variable if you
21217installed software in a non-standard prefix.
21218
21219Alternatively, you may set the environment variables XORG_CFLAGS
21220and XORG_LIBS to avoid the need to call pkg-config.
21221See the pkg-config man page for more details.
21222" >&2;}
21223   { (exit 1); exit 1; }; }
21224elif test $pkg_failed = untried; then
21225	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21227{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21228is in your PATH or set the PKG_CONFIG environment variable to the full
21229path to pkg-config.
21230
21231Alternatively, you may set the environment variables XORG_CFLAGS
21232and XORG_LIBS to avoid the need to call pkg-config.
21233See the pkg-config man page for more details.
21234
21235To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21236See \`config.log' for more details." >&5
21237$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21238is in your PATH or set the PKG_CONFIG environment variable to the full
21239path to pkg-config.
21240
21241Alternatively, you may set the environment variables XORG_CFLAGS
21242and XORG_LIBS to avoid the need to call pkg-config.
21243See the pkg-config man page for more details.
21244
21245To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21246See \`config.log' for more details." >&2;}
21247   { (exit 1); exit 1; }; }; }
21248else
21249	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21250	XORG_LIBS=$pkg_cv_XORG_LIBS
21251        { $as_echo "$as_me:$LINENO: result: yes" >&5
21252$as_echo "yes" >&6; }
21253	:
21254fi
21255sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21256
21257# Checks for libraries.
21258SAVE_CPPFLAGS="$CPPFLAGS"
21259CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21260{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21261$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21262if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21263  $as_echo_n "(cached) " >&6
21264else
21265  cat >conftest.$ac_ext <<_ACEOF
21266/* confdefs.h.  */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h.  */
21271#include "xorg-server.h"
21272
21273int
21274main ()
21275{
21276#ifndef XSERVER_LIBPCIACCESS
21277  (void) XSERVER_LIBPCIACCESS;
21278#endif
21279
21280  ;
21281  return 0;
21282}
21283_ACEOF
21284rm -f conftest.$ac_objext
21285if { (ac_try="$ac_compile"
21286case "(($ac_try" in
21287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288  *) ac_try_echo=$ac_try;;
21289esac
21290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291$as_echo "$ac_try_echo") >&5
21292  (eval "$ac_compile") 2>conftest.er1
21293  ac_status=$?
21294  grep -v '^ *+' conftest.er1 >conftest.err
21295  rm -f conftest.er1
21296  cat conftest.err >&5
21297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298  (exit $ac_status); } && {
21299	 test -z "$ac_c_werror_flag" ||
21300	 test ! -s conftest.err
21301       } && test -s conftest.$ac_objext; then
21302  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21303else
21304  $as_echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21308fi
21309
21310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311fi
21312{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21313$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21314if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21315  XSERVER_LIBPCIACCESS=yes
21316else
21317  XSERVER_LIBPCIACCESS=no
21318fi
21319
21320CPPFLAGS="$SAVE_CPPFLAGS"
21321
21322# Checks for header files.
21323{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21324$as_echo_n "checking for ANSI C header files... " >&6; }
21325if test "${ac_cv_header_stdc+set}" = set; then
21326  $as_echo_n "(cached) " >&6
21327else
21328  cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h.  */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h.  */
21334#include <stdlib.h>
21335#include <stdarg.h>
21336#include <string.h>
21337#include <float.h>
21338
21339int
21340main ()
21341{
21342
21343  ;
21344  return 0;
21345}
21346_ACEOF
21347rm -f conftest.$ac_objext
21348if { (ac_try="$ac_compile"
21349case "(($ac_try" in
21350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351  *) ac_try_echo=$ac_try;;
21352esac
21353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21354$as_echo "$ac_try_echo") >&5
21355  (eval "$ac_compile") 2>conftest.er1
21356  ac_status=$?
21357  grep -v '^ *+' conftest.er1 >conftest.err
21358  rm -f conftest.er1
21359  cat conftest.err >&5
21360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361  (exit $ac_status); } && {
21362	 test -z "$ac_c_werror_flag" ||
21363	 test ! -s conftest.err
21364       } && test -s conftest.$ac_objext; then
21365  ac_cv_header_stdc=yes
21366else
21367  $as_echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370	ac_cv_header_stdc=no
21371fi
21372
21373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374
21375if test $ac_cv_header_stdc = yes; then
21376  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21377  cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h.  */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h.  */
21383#include <string.h>
21384
21385_ACEOF
21386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21387  $EGREP "memchr" >/dev/null 2>&1; then
21388  :
21389else
21390  ac_cv_header_stdc=no
21391fi
21392rm -f conftest*
21393
21394fi
21395
21396if test $ac_cv_header_stdc = yes; then
21397  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21398  cat >conftest.$ac_ext <<_ACEOF
21399/* confdefs.h.  */
21400_ACEOF
21401cat confdefs.h >>conftest.$ac_ext
21402cat >>conftest.$ac_ext <<_ACEOF
21403/* end confdefs.h.  */
21404#include <stdlib.h>
21405
21406_ACEOF
21407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21408  $EGREP "free" >/dev/null 2>&1; then
21409  :
21410else
21411  ac_cv_header_stdc=no
21412fi
21413rm -f conftest*
21414
21415fi
21416
21417if test $ac_cv_header_stdc = yes; then
21418  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21419  if test "$cross_compiling" = yes; then
21420  :
21421else
21422  cat >conftest.$ac_ext <<_ACEOF
21423/* confdefs.h.  */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h.  */
21428#include <ctype.h>
21429#include <stdlib.h>
21430#if ((' ' & 0x0FF) == 0x020)
21431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21433#else
21434# define ISLOWER(c) \
21435		   (('a' <= (c) && (c) <= 'i') \
21436		     || ('j' <= (c) && (c) <= 'r') \
21437		     || ('s' <= (c) && (c) <= 'z'))
21438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21439#endif
21440
21441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21442int
21443main ()
21444{
21445  int i;
21446  for (i = 0; i < 256; i++)
21447    if (XOR (islower (i), ISLOWER (i))
21448	|| toupper (i) != TOUPPER (i))
21449      return 2;
21450  return 0;
21451}
21452_ACEOF
21453rm -f conftest$ac_exeext
21454if { (ac_try="$ac_link"
21455case "(($ac_try" in
21456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457  *) ac_try_echo=$ac_try;;
21458esac
21459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21460$as_echo "$ac_try_echo") >&5
21461  (eval "$ac_link") 2>&5
21462  ac_status=$?
21463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21465  { (case "(($ac_try" in
21466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467  *) ac_try_echo=$ac_try;;
21468esac
21469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21470$as_echo "$ac_try_echo") >&5
21471  (eval "$ac_try") 2>&5
21472  ac_status=$?
21473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474  (exit $ac_status); }; }; then
21475  :
21476else
21477  $as_echo "$as_me: program exited with status $ac_status" >&5
21478$as_echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481( exit $ac_status )
21482ac_cv_header_stdc=no
21483fi
21484rm -rf conftest.dSYM
21485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21486fi
21487
21488
21489fi
21490fi
21491{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21492$as_echo "$ac_cv_header_stdc" >&6; }
21493if test $ac_cv_header_stdc = yes; then
21494
21495cat >>confdefs.h <<\_ACEOF
21496#define STDC_HEADERS 1
21497_ACEOF
21498
21499fi
21500
21501
21502if test "$DRI" != no; then
21503        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21504{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21505$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21506if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21507  $as_echo_n "(cached) " >&6
21508else
21509  test "$cross_compiling" = yes &&
21510  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21511$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21512   { (exit 1); exit 1; }; }
21513if test -r "${sdkdir}/dri.h"; then
21514  eval "$as_ac_File=yes"
21515else
21516  eval "$as_ac_File=no"
21517fi
21518fi
21519ac_res=`eval 'as_val=${'$as_ac_File'}
21520		 $as_echo "$as_val"'`
21521	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21522$as_echo "$ac_res" >&6; }
21523as_val=`eval 'as_val=${'$as_ac_File'}
21524		 $as_echo "$as_val"'`
21525   if test "x$as_val" = x""yes; then
21526  have_dri_h="yes"
21527else
21528  have_dri_h="no"
21529fi
21530
21531        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21532{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21533$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21534if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21535  $as_echo_n "(cached) " >&6
21536else
21537  test "$cross_compiling" = yes &&
21538  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21539$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21540   { (exit 1); exit 1; }; }
21541if test -r "${sdkdir}/sarea.h"; then
21542  eval "$as_ac_File=yes"
21543else
21544  eval "$as_ac_File=no"
21545fi
21546fi
21547ac_res=`eval 'as_val=${'$as_ac_File'}
21548		 $as_echo "$as_val"'`
21549	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21550$as_echo "$ac_res" >&6; }
21551as_val=`eval 'as_val=${'$as_ac_File'}
21552		 $as_echo "$as_val"'`
21553   if test "x$as_val" = x""yes; then
21554  have_sarea_h="yes"
21555else
21556  have_sarea_h="no"
21557fi
21558
21559        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21560{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21561$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21562if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21563  $as_echo_n "(cached) " >&6
21564else
21565  test "$cross_compiling" = yes &&
21566  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21567$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21568   { (exit 1); exit 1; }; }
21569if test -r "${sdkdir}/dristruct.h"; then
21570  eval "$as_ac_File=yes"
21571else
21572  eval "$as_ac_File=no"
21573fi
21574fi
21575ac_res=`eval 'as_val=${'$as_ac_File'}
21576		 $as_echo "$as_val"'`
21577	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21578$as_echo "$ac_res" >&6; }
21579as_val=`eval 'as_val=${'$as_ac_File'}
21580		 $as_echo "$as_val"'`
21581   if test "x$as_val" = x""yes; then
21582  have_dristruct_h="yes"
21583else
21584  have_dristruct_h="no"
21585fi
21586
21587fi
21588
21589{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21590$as_echo_n "checking whether to include DRI support... " >&6; }
21591if test x$DRI = xauto; then
21592        if test "$have_dri_h" = yes -a \
21593                "$have_sarea_h" = yes -a \
21594                "$have_dristruct_h" = yes; then
21595                DRI="yes"
21596        else
21597                DRI="no"
21598        fi
21599fi
21600{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
21601$as_echo "$DRI" >&6; }
21602
21603 if test x$DRI = xyes; then
21604  DRI_TRUE=
21605  DRI_FALSE='#'
21606else
21607  DRI_TRUE='#'
21608  DRI_FALSE=
21609fi
21610
21611if test "$DRI" = yes; then
21612
21613pkg_failed=no
21614{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
21615$as_echo_n "checking for DRI... " >&6; }
21616
21617if test -n "$DRI_CFLAGS"; then
21618    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21619 elif test -n "$PKG_CONFIG"; then
21620    if test -n "$PKG_CONFIG" && \
21621    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21622  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21623  ac_status=$?
21624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625  (exit $ac_status); }; then
21626  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21627else
21628  pkg_failed=yes
21629fi
21630 else
21631    pkg_failed=untried
21632fi
21633if test -n "$DRI_LIBS"; then
21634    pkg_cv_DRI_LIBS="$DRI_LIBS"
21635 elif test -n "$PKG_CONFIG"; then
21636    if test -n "$PKG_CONFIG" && \
21637    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21638  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21639  ac_status=$?
21640  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641  (exit $ac_status); }; then
21642  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21643else
21644  pkg_failed=yes
21645fi
21646 else
21647    pkg_failed=untried
21648fi
21649
21650
21651
21652if test $pkg_failed = yes; then
21653
21654if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21655        _pkg_short_errors_supported=yes
21656else
21657        _pkg_short_errors_supported=no
21658fi
21659        if test $_pkg_short_errors_supported = yes; then
21660	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21661        else
21662	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21663        fi
21664	# Put the nasty error message in config.log where it belongs
21665	echo "$DRI_PKG_ERRORS" >&5
21666
21667	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21668
21669$DRI_PKG_ERRORS
21670
21671Consider adjusting the PKG_CONFIG_PATH environment variable if you
21672installed software in a non-standard prefix.
21673
21674Alternatively, you may set the environment variables DRI_CFLAGS
21675and DRI_LIBS to avoid the need to call pkg-config.
21676See the pkg-config man page for more details.
21677" >&5
21678$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21679
21680$DRI_PKG_ERRORS
21681
21682Consider adjusting the PKG_CONFIG_PATH environment variable if you
21683installed software in a non-standard prefix.
21684
21685Alternatively, you may set the environment variables DRI_CFLAGS
21686and DRI_LIBS to avoid the need to call pkg-config.
21687See the pkg-config man page for more details.
21688" >&2;}
21689   { (exit 1); exit 1; }; }
21690elif test $pkg_failed = untried; then
21691	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21693{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21694is in your PATH or set the PKG_CONFIG environment variable to the full
21695path to pkg-config.
21696
21697Alternatively, you may set the environment variables DRI_CFLAGS
21698and DRI_LIBS to avoid the need to call pkg-config.
21699See the pkg-config man page for more details.
21700
21701To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21702See \`config.log' for more details." >&5
21703$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21704is in your PATH or set the PKG_CONFIG environment variable to the full
21705path to pkg-config.
21706
21707Alternatively, you may set the environment variables DRI_CFLAGS
21708and DRI_LIBS to avoid the need to call pkg-config.
21709See the pkg-config man page for more details.
21710
21711To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21712See \`config.log' for more details." >&2;}
21713   { (exit 1); exit 1; }; }; }
21714else
21715	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21716	DRI_LIBS=$pkg_cv_DRI_LIBS
21717        { $as_echo "$as_me:$LINENO: result: yes" >&5
21718$as_echo "yes" >&6; }
21719	:
21720fi
21721
21722cat >>confdefs.h <<\_ACEOF
21723#define XF86DRI 1
21724_ACEOF
21725
21726
21727cat >>confdefs.h <<\_ACEOF
21728#define XF86DRI_DEVEL 1
21729_ACEOF
21730
21731fi
21732
21733if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21734
21735pkg_failed=no
21736{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21737$as_echo_n "checking for PCIACCESS... " >&6; }
21738
21739if test -n "$PCIACCESS_CFLAGS"; then
21740    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21741 elif test -n "$PKG_CONFIG"; then
21742    if test -n "$PKG_CONFIG" && \
21743    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21744  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21745  ac_status=$?
21746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747  (exit $ac_status); }; then
21748  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21749else
21750  pkg_failed=yes
21751fi
21752 else
21753    pkg_failed=untried
21754fi
21755if test -n "$PCIACCESS_LIBS"; then
21756    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21757 elif test -n "$PKG_CONFIG"; then
21758    if test -n "$PKG_CONFIG" && \
21759    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21760  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21761  ac_status=$?
21762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); }; then
21764  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21765else
21766  pkg_failed=yes
21767fi
21768 else
21769    pkg_failed=untried
21770fi
21771
21772
21773
21774if test $pkg_failed = yes; then
21775
21776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21777        _pkg_short_errors_supported=yes
21778else
21779        _pkg_short_errors_supported=no
21780fi
21781        if test $_pkg_short_errors_supported = yes; then
21782	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21783        else
21784	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21785        fi
21786	# Put the nasty error message in config.log where it belongs
21787	echo "$PCIACCESS_PKG_ERRORS" >&5
21788
21789	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21790
21791$PCIACCESS_PKG_ERRORS
21792
21793Consider adjusting the PKG_CONFIG_PATH environment variable if you
21794installed software in a non-standard prefix.
21795
21796Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21797and PCIACCESS_LIBS to avoid the need to call pkg-config.
21798See the pkg-config man page for more details.
21799" >&5
21800$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21801
21802$PCIACCESS_PKG_ERRORS
21803
21804Consider adjusting the PKG_CONFIG_PATH environment variable if you
21805installed software in a non-standard prefix.
21806
21807Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21808and PCIACCESS_LIBS to avoid the need to call pkg-config.
21809See the pkg-config man page for more details.
21810" >&2;}
21811   { (exit 1); exit 1; }; }
21812elif test $pkg_failed = untried; then
21813	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21815{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21816is in your PATH or set the PKG_CONFIG environment variable to the full
21817path to pkg-config.
21818
21819Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21820and PCIACCESS_LIBS to avoid the need to call pkg-config.
21821See the pkg-config man page for more details.
21822
21823To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21824See \`config.log' for more details." >&5
21825$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21826is in your PATH or set the PKG_CONFIG environment variable to the full
21827path to pkg-config.
21828
21829Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21830and PCIACCESS_LIBS to avoid the need to call pkg-config.
21831See the pkg-config man page for more details.
21832
21833To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21834See \`config.log' for more details." >&2;}
21835   { (exit 1); exit 1; }; }; }
21836else
21837	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21838	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21839        { $as_echo "$as_me:$LINENO: result: yes" >&5
21840$as_echo "yes" >&6; }
21841	:
21842fi
21843    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21844fi
21845 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21846  XSERVER_LIBPCIACCESS_TRUE=
21847  XSERVER_LIBPCIACCESS_FALSE='#'
21848else
21849  XSERVER_LIBPCIACCESS_TRUE='#'
21850  XSERVER_LIBPCIACCESS_FALSE=
21851fi
21852
21853
21854
21855
21856
21857
21858DRIVER_NAME=tdfx
21859
21860
21861
21862
21863
21864if test x$APP_MAN_SUFFIX = x    ; then
21865    APP_MAN_SUFFIX=1
21866fi
21867if test x$APP_MAN_DIR = x    ; then
21868    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21869fi
21870
21871if test x$LIB_MAN_SUFFIX = x    ; then
21872    LIB_MAN_SUFFIX=3
21873fi
21874if test x$LIB_MAN_DIR = x    ; then
21875    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21876fi
21877
21878if test x$FILE_MAN_SUFFIX = x    ; then
21879    case $host_os in
21880	solaris*)	FILE_MAN_SUFFIX=4  ;;
21881	*)		FILE_MAN_SUFFIX=5  ;;
21882    esac
21883fi
21884if test x$FILE_MAN_DIR = x    ; then
21885    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21886fi
21887
21888if test x$MISC_MAN_SUFFIX = x    ; then
21889    case $host_os in
21890	solaris*)	MISC_MAN_SUFFIX=5  ;;
21891	*)		MISC_MAN_SUFFIX=7  ;;
21892    esac
21893fi
21894if test x$MISC_MAN_DIR = x    ; then
21895    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21896fi
21897
21898if test x$DRIVER_MAN_SUFFIX = x    ; then
21899    case $host_os in
21900	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21901	*)		DRIVER_MAN_SUFFIX=4  ;;
21902    esac
21903fi
21904if test x$DRIVER_MAN_DIR = x    ; then
21905    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21906fi
21907
21908if test x$ADMIN_MAN_SUFFIX = x    ; then
21909    case $host_os in
21910	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21911	*)		ADMIN_MAN_SUFFIX=8  ;;
21912    esac
21913fi
21914if test x$ADMIN_MAN_DIR = x    ; then
21915    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21916fi
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934# Check whether --with-release-version was given.
21935if test "${with_release_version+set}" = set; then
21936  withval=$with_release_version; RELEASE_VERSION="$withval"
21937else
21938  RELEASE_VERSION=""
21939fi
21940
21941	if test "x$RELEASE_VERSION" != "x"; then
21942		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21943		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21944		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21945$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21946	fi
21947
21948cat >>confdefs.h <<_ACEOF
21949#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21950_ACEOF
21951
21952	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21953	if test "x$PVM" = "x"; then
21954		PVM="0"
21955	fi
21956
21957cat >>confdefs.h <<_ACEOF
21958#define PACKAGE_VERSION_MINOR $PVM
21959_ACEOF
21960
21961	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21962	if test "x$PVP" = "x"; then
21963		PVP="0"
21964	fi
21965
21966cat >>confdefs.h <<_ACEOF
21967#define PACKAGE_VERSION_PATCHLEVEL $PVP
21968_ACEOF
21969
21970
21971
21972ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21973
21974cat >confcache <<\_ACEOF
21975# This file is a shell script that caches the results of configure
21976# tests run on this system so they can be shared between configure
21977# scripts and configure runs, see configure's option --config-cache.
21978# It is not useful on other systems.  If it contains results you don't
21979# want to keep, you may remove or edit it.
21980#
21981# config.status only pays attention to the cache file if you give it
21982# the --recheck option to rerun configure.
21983#
21984# `ac_cv_env_foo' variables (set or unset) will be overridden when
21985# loading this file, other *unset* `ac_cv_foo' will be assigned the
21986# following values.
21987
21988_ACEOF
21989
21990# The following way of writing the cache mishandles newlines in values,
21991# but we know of no workaround that is simple, portable, and efficient.
21992# So, we kill variables containing newlines.
21993# Ultrix sh set writes to stderr and can't be redirected directly,
21994# and sets the high bit in the cache file unless we assign to the vars.
21995(
21996  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21997    eval ac_val=\$$ac_var
21998    case $ac_val in #(
21999    *${as_nl}*)
22000      case $ac_var in #(
22001      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22003      esac
22004      case $ac_var in #(
22005      _ | IFS | as_nl) ;; #(
22006      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22007      *) $as_unset $ac_var ;;
22008      esac ;;
22009    esac
22010  done
22011
22012  (set) 2>&1 |
22013    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22014    *${as_nl}ac_space=\ *)
22015      # `set' does not quote correctly, so add quotes (double-quote
22016      # substitution turns \\\\ into \\, and sed turns \\ into \).
22017      sed -n \
22018	"s/'/'\\\\''/g;
22019	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22020      ;; #(
22021    *)
22022      # `set' quotes correctly as required by POSIX, so do not add quotes.
22023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22024      ;;
22025    esac |
22026    sort
22027) |
22028  sed '
22029     /^ac_cv_env_/b end
22030     t clear
22031     :clear
22032     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22033     t end
22034     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22035     :end' >>confcache
22036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22037  if test -w "$cache_file"; then
22038    test "x$cache_file" != "x/dev/null" &&
22039      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22040$as_echo "$as_me: updating cache $cache_file" >&6;}
22041    cat confcache >$cache_file
22042  else
22043    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22044$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22045  fi
22046fi
22047rm -f confcache
22048
22049test "x$prefix" = xNONE && prefix=$ac_default_prefix
22050# Let make expand exec_prefix.
22051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22052
22053DEFS=-DHAVE_CONFIG_H
22054
22055ac_libobjs=
22056ac_ltlibobjs=
22057for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22058  # 1. Remove the extension, and $U if already installed.
22059  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22060  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22061  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22062  #    will be set to the directory where LIBOBJS objects are built.
22063  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22064  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22065done
22066LIBOBJS=$ac_libobjs
22067
22068LTLIBOBJS=$ac_ltlibobjs
22069
22070
22071if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22072  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22073Usually this means the macro was only invoked conditionally." >&5
22074$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22075Usually this means the macro was only invoked conditionally." >&2;}
22076   { (exit 1); exit 1; }; }
22077fi
22078if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22079  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22080Usually this means the macro was only invoked conditionally." >&5
22081$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22082Usually this means the macro was only invoked conditionally." >&2;}
22083   { (exit 1); exit 1; }; }
22084fi
22085if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22086  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22087Usually this means the macro was only invoked conditionally." >&5
22088$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22089Usually this means the macro was only invoked conditionally." >&2;}
22090   { (exit 1); exit 1; }; }
22091fi
22092if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22093  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22094Usually this means the macro was only invoked conditionally." >&5
22095$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22096Usually this means the macro was only invoked conditionally." >&2;}
22097   { (exit 1); exit 1; }; }
22098fi
22099if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22100  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22101Usually this means the macro was only invoked conditionally." >&5
22102$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22103Usually this means the macro was only invoked conditionally." >&2;}
22104   { (exit 1); exit 1; }; }
22105fi
22106if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22107  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22108Usually this means the macro was only invoked conditionally." >&5
22109$as_echo "$as_me: error: conditional \"DRI\" was never defined.
22110Usually this means the macro was only invoked conditionally." >&2;}
22111   { (exit 1); exit 1; }; }
22112fi
22113if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22114  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22115Usually this means the macro was only invoked conditionally." >&5
22116$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22117Usually this means the macro was only invoked conditionally." >&2;}
22118   { (exit 1); exit 1; }; }
22119fi
22120
22121: ${CONFIG_STATUS=./config.status}
22122ac_write_fail=0
22123ac_clean_files_save=$ac_clean_files
22124ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22125{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22126$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22127cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22128#! $SHELL
22129# Generated by $as_me.
22130# Run this file to recreate the current configuration.
22131# Compiler output produced by configure, useful for debugging
22132# configure, is in config.log if it exists.
22133
22134debug=false
22135ac_cs_recheck=false
22136ac_cs_silent=false
22137SHELL=\${CONFIG_SHELL-$SHELL}
22138_ACEOF
22139
22140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22141## --------------------- ##
22142## M4sh Initialization.  ##
22143## --------------------- ##
22144
22145# Be more Bourne compatible
22146DUALCASE=1; export DUALCASE # for MKS sh
22147if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22148  emulate sh
22149  NULLCMD=:
22150  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22151  # is contrary to our usage.  Disable this feature.
22152  alias -g '${1+"$@"}'='"$@"'
22153  setopt NO_GLOB_SUBST
22154else
22155  case `(set -o) 2>/dev/null` in
22156  *posix*) set -o posix ;;
22157esac
22158
22159fi
22160
22161
22162
22163
22164# PATH needs CR
22165# Avoid depending upon Character Ranges.
22166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22169as_cr_digits='0123456789'
22170as_cr_alnum=$as_cr_Letters$as_cr_digits
22171
22172as_nl='
22173'
22174export as_nl
22175# Printing a long string crashes Solaris 7 /usr/bin/printf.
22176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22179if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22180  as_echo='printf %s\n'
22181  as_echo_n='printf %s'
22182else
22183  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22184    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22185    as_echo_n='/usr/ucb/echo -n'
22186  else
22187    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22188    as_echo_n_body='eval
22189      arg=$1;
22190      case $arg in
22191      *"$as_nl"*)
22192	expr "X$arg" : "X\\(.*\\)$as_nl";
22193	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22194      esac;
22195      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22196    '
22197    export as_echo_n_body
22198    as_echo_n='sh -c $as_echo_n_body as_echo'
22199  fi
22200  export as_echo_body
22201  as_echo='sh -c $as_echo_body as_echo'
22202fi
22203
22204# The user is always right.
22205if test "${PATH_SEPARATOR+set}" != set; then
22206  PATH_SEPARATOR=:
22207  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22208    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22209      PATH_SEPARATOR=';'
22210  }
22211fi
22212
22213# Support unset when possible.
22214if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22215  as_unset=unset
22216else
22217  as_unset=false
22218fi
22219
22220
22221# IFS
22222# We need space, tab and new line, in precisely that order.  Quoting is
22223# there to prevent editors from complaining about space-tab.
22224# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22225# splitting by setting IFS to empty value.)
22226IFS=" ""	$as_nl"
22227
22228# Find who we are.  Look in the path if we contain no directory separator.
22229case $0 in
22230  *[\\/]* ) as_myself=$0 ;;
22231  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232for as_dir in $PATH
22233do
22234  IFS=$as_save_IFS
22235  test -z "$as_dir" && as_dir=.
22236  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22237done
22238IFS=$as_save_IFS
22239
22240     ;;
22241esac
22242# We did not find ourselves, most probably we were run as `sh COMMAND'
22243# in which case we are not to be found in the path.
22244if test "x$as_myself" = x; then
22245  as_myself=$0
22246fi
22247if test ! -f "$as_myself"; then
22248  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22249  { (exit 1); exit 1; }
22250fi
22251
22252# Work around bugs in pre-3.0 UWIN ksh.
22253for as_var in ENV MAIL MAILPATH
22254do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22255done
22256PS1='$ '
22257PS2='> '
22258PS4='+ '
22259
22260# NLS nuisances.
22261LC_ALL=C
22262export LC_ALL
22263LANGUAGE=C
22264export LANGUAGE
22265
22266# Required to use basename.
22267if expr a : '\(a\)' >/dev/null 2>&1 &&
22268   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22269  as_expr=expr
22270else
22271  as_expr=false
22272fi
22273
22274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22275  as_basename=basename
22276else
22277  as_basename=false
22278fi
22279
22280
22281# Name of the executable.
22282as_me=`$as_basename -- "$0" ||
22283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22284	 X"$0" : 'X\(//\)$' \| \
22285	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22286$as_echo X/"$0" |
22287    sed '/^.*\/\([^/][^/]*\)\/*$/{
22288	    s//\1/
22289	    q
22290	  }
22291	  /^X\/\(\/\/\)$/{
22292	    s//\1/
22293	    q
22294	  }
22295	  /^X\/\(\/\).*/{
22296	    s//\1/
22297	    q
22298	  }
22299	  s/.*/./; q'`
22300
22301# CDPATH.
22302$as_unset CDPATH
22303
22304
22305
22306  as_lineno_1=$LINENO
22307  as_lineno_2=$LINENO
22308  test "x$as_lineno_1" != "x$as_lineno_2" &&
22309  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22310
22311  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22312  # uniformly replaced by the line number.  The first 'sed' inserts a
22313  # line-number line after each line using $LINENO; the second 'sed'
22314  # does the real work.  The second script uses 'N' to pair each
22315  # line-number line with the line containing $LINENO, and appends
22316  # trailing '-' during substitution so that $LINENO is not a special
22317  # case at line end.
22318  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22319  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22320  # E. McMahon (1931-1989) for sed's syntax.  :-)
22321  sed -n '
22322    p
22323    /[$]LINENO/=
22324  ' <$as_myself |
22325    sed '
22326      s/[$]LINENO.*/&-/
22327      t lineno
22328      b
22329      :lineno
22330      N
22331      :loop
22332      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22333      t loop
22334      s/-\n.*//
22335    ' >$as_me.lineno &&
22336  chmod +x "$as_me.lineno" ||
22337    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22338   { (exit 1); exit 1; }; }
22339
22340  # Don't try to exec as it changes $[0], causing all sort of problems
22341  # (the dirname of $[0] is not the place where we might find the
22342  # original and so on.  Autoconf is especially sensitive to this).
22343  . "./$as_me.lineno"
22344  # Exit status is that of the last command.
22345  exit
22346}
22347
22348
22349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22350  as_dirname=dirname
22351else
22352  as_dirname=false
22353fi
22354
22355ECHO_C= ECHO_N= ECHO_T=
22356case `echo -n x` in
22357-n*)
22358  case `echo 'x\c'` in
22359  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22360  *)   ECHO_C='\c';;
22361  esac;;
22362*)
22363  ECHO_N='-n';;
22364esac
22365if expr a : '\(a\)' >/dev/null 2>&1 &&
22366   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22367  as_expr=expr
22368else
22369  as_expr=false
22370fi
22371
22372rm -f conf$$ conf$$.exe conf$$.file
22373if test -d conf$$.dir; then
22374  rm -f conf$$.dir/conf$$.file
22375else
22376  rm -f conf$$.dir
22377  mkdir conf$$.dir 2>/dev/null
22378fi
22379if (echo >conf$$.file) 2>/dev/null; then
22380  if ln -s conf$$.file conf$$ 2>/dev/null; then
22381    as_ln_s='ln -s'
22382    # ... but there are two gotchas:
22383    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22384    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22385    # In both cases, we have to default to `cp -p'.
22386    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22387      as_ln_s='cp -p'
22388  elif ln conf$$.file conf$$ 2>/dev/null; then
22389    as_ln_s=ln
22390  else
22391    as_ln_s='cp -p'
22392  fi
22393else
22394  as_ln_s='cp -p'
22395fi
22396rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22397rmdir conf$$.dir 2>/dev/null
22398
22399if mkdir -p . 2>/dev/null; then
22400  as_mkdir_p=:
22401else
22402  test -d ./-p && rmdir ./-p
22403  as_mkdir_p=false
22404fi
22405
22406if test -x / >/dev/null 2>&1; then
22407  as_test_x='test -x'
22408else
22409  if ls -dL / >/dev/null 2>&1; then
22410    as_ls_L_option=L
22411  else
22412    as_ls_L_option=
22413  fi
22414  as_test_x='
22415    eval sh -c '\''
22416      if test -d "$1"; then
22417	test -d "$1/.";
22418      else
22419	case $1 in
22420	-*)set "./$1";;
22421	esac;
22422	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22423	???[sx]*):;;*)false;;esac;fi
22424    '\'' sh
22425  '
22426fi
22427as_executable_p=$as_test_x
22428
22429# Sed expression to map a string onto a valid CPP name.
22430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22431
22432# Sed expression to map a string onto a valid variable name.
22433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22434
22435
22436exec 6>&1
22437
22438# Save the log message, to keep $[0] and so on meaningful, and to
22439# report actual input values of CONFIG_FILES etc. instead of their
22440# values after options handling.
22441ac_log="
22442This file was extended by xf86-video-tdfx $as_me 1.4.1, which was
22443generated by GNU Autoconf 2.63.  Invocation command line was
22444
22445  CONFIG_FILES    = $CONFIG_FILES
22446  CONFIG_HEADERS  = $CONFIG_HEADERS
22447  CONFIG_LINKS    = $CONFIG_LINKS
22448  CONFIG_COMMANDS = $CONFIG_COMMANDS
22449  $ $0 $@
22450
22451on `(hostname || uname -n) 2>/dev/null | sed 1q`
22452"
22453
22454_ACEOF
22455
22456case $ac_config_files in *"
22457"*) set x $ac_config_files; shift; ac_config_files=$*;;
22458esac
22459
22460case $ac_config_headers in *"
22461"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22462esac
22463
22464
22465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22466# Files that config.status was made for.
22467config_files="$ac_config_files"
22468config_headers="$ac_config_headers"
22469config_commands="$ac_config_commands"
22470
22471_ACEOF
22472
22473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22474ac_cs_usage="\
22475\`$as_me' instantiates files from templates according to the
22476current configuration.
22477
22478Usage: $0 [OPTION]... [FILE]...
22479
22480  -h, --help       print this help, then exit
22481  -V, --version    print version number and configuration settings, then exit
22482  -q, --quiet, --silent
22483                   do not print progress messages
22484  -d, --debug      don't remove temporary files
22485      --recheck    update $as_me by reconfiguring in the same conditions
22486      --file=FILE[:TEMPLATE]
22487                   instantiate the configuration file FILE
22488      --header=FILE[:TEMPLATE]
22489                   instantiate the configuration header FILE
22490
22491Configuration files:
22492$config_files
22493
22494Configuration headers:
22495$config_headers
22496
22497Configuration commands:
22498$config_commands
22499
22500Report bugs to <bug-autoconf@gnu.org>."
22501
22502_ACEOF
22503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22504ac_cs_version="\\
22505xf86-video-tdfx config.status 1.4.1
22506configured by $0, generated by GNU Autoconf 2.63,
22507  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22508
22509Copyright (C) 2008 Free Software Foundation, Inc.
22510This config.status script is free software; the Free Software Foundation
22511gives unlimited permission to copy, distribute and modify it."
22512
22513ac_pwd='$ac_pwd'
22514srcdir='$srcdir'
22515INSTALL='$INSTALL'
22516MKDIR_P='$MKDIR_P'
22517AWK='$AWK'
22518test -n "\$AWK" || AWK=awk
22519_ACEOF
22520
22521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22522# The default lists apply if the user does not specify any file.
22523ac_need_defaults=:
22524while test $# != 0
22525do
22526  case $1 in
22527  --*=*)
22528    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22529    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22530    ac_shift=:
22531    ;;
22532  *)
22533    ac_option=$1
22534    ac_optarg=$2
22535    ac_shift=shift
22536    ;;
22537  esac
22538
22539  case $ac_option in
22540  # Handling of the options.
22541  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22542    ac_cs_recheck=: ;;
22543  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22544    $as_echo "$ac_cs_version"; exit ;;
22545  --debug | --debu | --deb | --de | --d | -d )
22546    debug=: ;;
22547  --file | --fil | --fi | --f )
22548    $ac_shift
22549    case $ac_optarg in
22550    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22551    esac
22552    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22553    ac_need_defaults=false;;
22554  --header | --heade | --head | --hea )
22555    $ac_shift
22556    case $ac_optarg in
22557    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22558    esac
22559    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22560    ac_need_defaults=false;;
22561  --he | --h)
22562    # Conflict between --help and --header
22563    { $as_echo "$as_me: error: ambiguous option: $1
22564Try \`$0 --help' for more information." >&2
22565   { (exit 1); exit 1; }; };;
22566  --help | --hel | -h )
22567    $as_echo "$ac_cs_usage"; exit ;;
22568  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22569  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22570    ac_cs_silent=: ;;
22571
22572  # This is an error.
22573  -*) { $as_echo "$as_me: error: unrecognized option: $1
22574Try \`$0 --help' for more information." >&2
22575   { (exit 1); exit 1; }; } ;;
22576
22577  *) ac_config_targets="$ac_config_targets $1"
22578     ac_need_defaults=false ;;
22579
22580  esac
22581  shift
22582done
22583
22584ac_configure_extra_args=
22585
22586if $ac_cs_silent; then
22587  exec 6>/dev/null
22588  ac_configure_extra_args="$ac_configure_extra_args --silent"
22589fi
22590
22591_ACEOF
22592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22593if \$ac_cs_recheck; then
22594  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22595  shift
22596  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22597  CONFIG_SHELL='$SHELL'
22598  export CONFIG_SHELL
22599  exec "\$@"
22600fi
22601
22602_ACEOF
22603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22604exec 5>>config.log
22605{
22606  echo
22607  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22608## Running $as_me. ##
22609_ASBOX
22610  $as_echo "$ac_log"
22611} >&5
22612
22613_ACEOF
22614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22615#
22616# INIT-COMMANDS
22617#
22618AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22619
22620_ACEOF
22621
22622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22623
22624# Handling of arguments.
22625for ac_config_target in $ac_config_targets
22626do
22627  case $ac_config_target in
22628    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22629    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22630    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22631    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22632    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22633
22634  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22635$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22636   { (exit 1); exit 1; }; };;
22637  esac
22638done
22639
22640
22641# If the user did not use the arguments to specify the items to instantiate,
22642# then the envvar interface is used.  Set only those that are not.
22643# We use the long form for the default assignment because of an extremely
22644# bizarre bug on SunOS 4.1.3.
22645if $ac_need_defaults; then
22646  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22647  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22648  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22649fi
22650
22651# Have a temporary directory for convenience.  Make it in the build tree
22652# simply because there is no reason against having it here, and in addition,
22653# creating and moving files from /tmp can sometimes cause problems.
22654# Hook for its removal unless debugging.
22655# Note that there is a small window in which the directory will not be cleaned:
22656# after its creation but before its name has been assigned to `$tmp'.
22657$debug ||
22658{
22659  tmp=
22660  trap 'exit_status=$?
22661  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22662' 0
22663  trap '{ (exit 1); exit 1; }' 1 2 13 15
22664}
22665# Create a (secure) tmp directory for tmp files.
22666
22667{
22668  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22669  test -n "$tmp" && test -d "$tmp"
22670}  ||
22671{
22672  tmp=./conf$$-$RANDOM
22673  (umask 077 && mkdir "$tmp")
22674} ||
22675{
22676   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22677   { (exit 1); exit 1; }
22678}
22679
22680# Set up the scripts for CONFIG_FILES section.
22681# No need to generate them if there are no CONFIG_FILES.
22682# This happens for instance with `./config.status config.h'.
22683if test -n "$CONFIG_FILES"; then
22684
22685
22686ac_cr='
22687'
22688ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22689if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22690  ac_cs_awk_cr='\\r'
22691else
22692  ac_cs_awk_cr=$ac_cr
22693fi
22694
22695echo 'BEGIN {' >"$tmp/subs1.awk" &&
22696_ACEOF
22697
22698
22699{
22700  echo "cat >conf$$subs.awk <<_ACEOF" &&
22701  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22702  echo "_ACEOF"
22703} >conf$$subs.sh ||
22704  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22705$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22706   { (exit 1); exit 1; }; }
22707ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22708ac_delim='%!_!# '
22709for ac_last_try in false false false false false :; do
22710  . ./conf$$subs.sh ||
22711    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22712$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22713   { (exit 1); exit 1; }; }
22714
22715  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22716  if test $ac_delim_n = $ac_delim_num; then
22717    break
22718  elif $ac_last_try; then
22719    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22720$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22721   { (exit 1); exit 1; }; }
22722  else
22723    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22724  fi
22725done
22726rm -f conf$$subs.sh
22727
22728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22729cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22730_ACEOF
22731sed -n '
22732h
22733s/^/S["/; s/!.*/"]=/
22734p
22735g
22736s/^[^!]*!//
22737:repl
22738t repl
22739s/'"$ac_delim"'$//
22740t delim
22741:nl
22742h
22743s/\(.\{148\}\).*/\1/
22744t more1
22745s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22746p
22747n
22748b repl
22749:more1
22750s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22751p
22752g
22753s/.\{148\}//
22754t nl
22755:delim
22756h
22757s/\(.\{148\}\).*/\1/
22758t more2
22759s/["\\]/\\&/g; s/^/"/; s/$/"/
22760p
22761b
22762:more2
22763s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22764p
22765g
22766s/.\{148\}//
22767t delim
22768' <conf$$subs.awk | sed '
22769/^[^""]/{
22770  N
22771  s/\n//
22772}
22773' >>$CONFIG_STATUS || ac_write_fail=1
22774rm -f conf$$subs.awk
22775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22776_ACAWK
22777cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22778  for (key in S) S_is_set[key] = 1
22779  FS = ""
22780
22781}
22782{
22783  line = $ 0
22784  nfields = split(line, field, "@")
22785  substed = 0
22786  len = length(field[1])
22787  for (i = 2; i < nfields; i++) {
22788    key = field[i]
22789    keylen = length(key)
22790    if (S_is_set[key]) {
22791      value = S[key]
22792      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22793      len += length(value) + length(field[++i])
22794      substed = 1
22795    } else
22796      len += 1 + keylen
22797  }
22798
22799  print line
22800}
22801
22802_ACAWK
22803_ACEOF
22804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22805if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22806  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22807else
22808  cat
22809fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22810  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22811$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22812   { (exit 1); exit 1; }; }
22813_ACEOF
22814
22815# VPATH may cause trouble with some makes, so we remove $(srcdir),
22816# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22817# trailing colons and then remove the whole line if VPATH becomes empty
22818# (actually we leave an empty line to preserve line numbers).
22819if test "x$srcdir" = x.; then
22820  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22821s/:*\$(srcdir):*/:/
22822s/:*\${srcdir}:*/:/
22823s/:*@srcdir@:*/:/
22824s/^\([^=]*=[	 ]*\):*/\1/
22825s/:*$//
22826s/^[^=]*=[	 ]*$//
22827}'
22828fi
22829
22830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22831fi # test -n "$CONFIG_FILES"
22832
22833# Set up the scripts for CONFIG_HEADERS section.
22834# No need to generate them if there are no CONFIG_HEADERS.
22835# This happens for instance with `./config.status Makefile'.
22836if test -n "$CONFIG_HEADERS"; then
22837cat >"$tmp/defines.awk" <<\_ACAWK ||
22838BEGIN {
22839_ACEOF
22840
22841# Transform confdefs.h into an awk script `defines.awk', embedded as
22842# here-document in config.status, that substitutes the proper values into
22843# config.h.in to produce config.h.
22844
22845# Create a delimiter string that does not exist in confdefs.h, to ease
22846# handling of long lines.
22847ac_delim='%!_!# '
22848for ac_last_try in false false :; do
22849  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22850  if test -z "$ac_t"; then
22851    break
22852  elif $ac_last_try; then
22853    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22854$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22855   { (exit 1); exit 1; }; }
22856  else
22857    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22858  fi
22859done
22860
22861# For the awk script, D is an array of macro values keyed by name,
22862# likewise P contains macro parameters if any.  Preserve backslash
22863# newline sequences.
22864
22865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22866sed -n '
22867s/.\{148\}/&'"$ac_delim"'/g
22868t rset
22869:rset
22870s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22871t def
22872d
22873:def
22874s/\\$//
22875t bsnl
22876s/["\\]/\\&/g
22877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22878D["\1"]=" \3"/p
22879s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22880d
22881:bsnl
22882s/["\\]/\\&/g
22883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22884D["\1"]=" \3\\\\\\n"\\/p
22885t cont
22886s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22887t cont
22888d
22889:cont
22890n
22891s/.\{148\}/&'"$ac_delim"'/g
22892t clear
22893:clear
22894s/\\$//
22895t bsnlc
22896s/["\\]/\\&/g; s/^/"/; s/$/"/p
22897d
22898:bsnlc
22899s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22900b cont
22901' <confdefs.h | sed '
22902s/'"$ac_delim"'/"\\\
22903"/g' >>$CONFIG_STATUS || ac_write_fail=1
22904
22905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22906  for (key in D) D_is_set[key] = 1
22907  FS = ""
22908}
22909/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22910  line = \$ 0
22911  split(line, arg, " ")
22912  if (arg[1] == "#") {
22913    defundef = arg[2]
22914    mac1 = arg[3]
22915  } else {
22916    defundef = substr(arg[1], 2)
22917    mac1 = arg[2]
22918  }
22919  split(mac1, mac2, "(") #)
22920  macro = mac2[1]
22921  prefix = substr(line, 1, index(line, defundef) - 1)
22922  if (D_is_set[macro]) {
22923    # Preserve the white space surrounding the "#".
22924    print prefix "define", macro P[macro] D[macro]
22925    next
22926  } else {
22927    # Replace #undef with comments.  This is necessary, for example,
22928    # in the case of _POSIX_SOURCE, which is predefined and required
22929    # on some systems where configure will not decide to define it.
22930    if (defundef == "undef") {
22931      print "/*", prefix defundef, macro, "*/"
22932      next
22933    }
22934  }
22935}
22936{ print }
22937_ACAWK
22938_ACEOF
22939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22940  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22941$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22942   { (exit 1); exit 1; }; }
22943fi # test -n "$CONFIG_HEADERS"
22944
22945
22946eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22947shift
22948for ac_tag
22949do
22950  case $ac_tag in
22951  :[FHLC]) ac_mode=$ac_tag; continue;;
22952  esac
22953  case $ac_mode$ac_tag in
22954  :[FHL]*:*);;
22955  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22956$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22957   { (exit 1); exit 1; }; };;
22958  :[FH]-) ac_tag=-:-;;
22959  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22960  esac
22961  ac_save_IFS=$IFS
22962  IFS=:
22963  set x $ac_tag
22964  IFS=$ac_save_IFS
22965  shift
22966  ac_file=$1
22967  shift
22968
22969  case $ac_mode in
22970  :L) ac_source=$1;;
22971  :[FH])
22972    ac_file_inputs=
22973    for ac_f
22974    do
22975      case $ac_f in
22976      -) ac_f="$tmp/stdin";;
22977      *) # Look for the file first in the build tree, then in the source tree
22978	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22979	 # because $ac_f cannot contain `:'.
22980	 test -f "$ac_f" ||
22981	   case $ac_f in
22982	   [\\/$]*) false;;
22983	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22984	   esac ||
22985	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22986$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22987   { (exit 1); exit 1; }; };;
22988      esac
22989      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22990      ac_file_inputs="$ac_file_inputs '$ac_f'"
22991    done
22992
22993    # Let's still pretend it is `configure' which instantiates (i.e., don't
22994    # use $as_me), people would be surprised to read:
22995    #    /* config.h.  Generated by config.status.  */
22996    configure_input='Generated from '`
22997	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22998	`' by configure.'
22999    if test x"$ac_file" != x-; then
23000      configure_input="$ac_file.  $configure_input"
23001      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23002$as_echo "$as_me: creating $ac_file" >&6;}
23003    fi
23004    # Neutralize special characters interpreted by sed in replacement strings.
23005    case $configure_input in #(
23006    *\&* | *\|* | *\\* )
23007       ac_sed_conf_input=`$as_echo "$configure_input" |
23008       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23009    *) ac_sed_conf_input=$configure_input;;
23010    esac
23011
23012    case $ac_tag in
23013    *:-:* | *:-) cat >"$tmp/stdin" \
23014      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23015$as_echo "$as_me: error: could not create $ac_file" >&2;}
23016   { (exit 1); exit 1; }; } ;;
23017    esac
23018    ;;
23019  esac
23020
23021  ac_dir=`$as_dirname -- "$ac_file" ||
23022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023	 X"$ac_file" : 'X\(//\)[^/]' \| \
23024	 X"$ac_file" : 'X\(//\)$' \| \
23025	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23026$as_echo X"$ac_file" |
23027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23028	    s//\1/
23029	    q
23030	  }
23031	  /^X\(\/\/\)[^/].*/{
23032	    s//\1/
23033	    q
23034	  }
23035	  /^X\(\/\/\)$/{
23036	    s//\1/
23037	    q
23038	  }
23039	  /^X\(\/\).*/{
23040	    s//\1/
23041	    q
23042	  }
23043	  s/.*/./; q'`
23044  { as_dir="$ac_dir"
23045  case $as_dir in #(
23046  -*) as_dir=./$as_dir;;
23047  esac
23048  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23049    as_dirs=
23050    while :; do
23051      case $as_dir in #(
23052      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23053      *) as_qdir=$as_dir;;
23054      esac
23055      as_dirs="'$as_qdir' $as_dirs"
23056      as_dir=`$as_dirname -- "$as_dir" ||
23057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058	 X"$as_dir" : 'X\(//\)[^/]' \| \
23059	 X"$as_dir" : 'X\(//\)$' \| \
23060	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23061$as_echo X"$as_dir" |
23062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23063	    s//\1/
23064	    q
23065	  }
23066	  /^X\(\/\/\)[^/].*/{
23067	    s//\1/
23068	    q
23069	  }
23070	  /^X\(\/\/\)$/{
23071	    s//\1/
23072	    q
23073	  }
23074	  /^X\(\/\).*/{
23075	    s//\1/
23076	    q
23077	  }
23078	  s/.*/./; q'`
23079      test -d "$as_dir" && break
23080    done
23081    test -z "$as_dirs" || eval "mkdir $as_dirs"
23082  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23083$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23084   { (exit 1); exit 1; }; }; }
23085  ac_builddir=.
23086
23087case "$ac_dir" in
23088.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23089*)
23090  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23091  # A ".." for each directory in $ac_dir_suffix.
23092  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23093  case $ac_top_builddir_sub in
23094  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23095  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23096  esac ;;
23097esac
23098ac_abs_top_builddir=$ac_pwd
23099ac_abs_builddir=$ac_pwd$ac_dir_suffix
23100# for backward compatibility:
23101ac_top_builddir=$ac_top_build_prefix
23102
23103case $srcdir in
23104  .)  # We are building in place.
23105    ac_srcdir=.
23106    ac_top_srcdir=$ac_top_builddir_sub
23107    ac_abs_top_srcdir=$ac_pwd ;;
23108  [\\/]* | ?:[\\/]* )  # Absolute name.
23109    ac_srcdir=$srcdir$ac_dir_suffix;
23110    ac_top_srcdir=$srcdir
23111    ac_abs_top_srcdir=$srcdir ;;
23112  *) # Relative name.
23113    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23114    ac_top_srcdir=$ac_top_build_prefix$srcdir
23115    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23116esac
23117ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23118
23119
23120  case $ac_mode in
23121  :F)
23122  #
23123  # CONFIG_FILE
23124  #
23125
23126  case $INSTALL in
23127  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23128  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23129  esac
23130  ac_MKDIR_P=$MKDIR_P
23131  case $MKDIR_P in
23132  [\\/$]* | ?:[\\/]* ) ;;
23133  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23134  esac
23135_ACEOF
23136
23137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23138# If the template does not know about datarootdir, expand it.
23139# FIXME: This hack should be removed a few years after 2.60.
23140ac_datarootdir_hack=; ac_datarootdir_seen=
23141
23142ac_sed_dataroot='
23143/datarootdir/ {
23144  p
23145  q
23146}
23147/@datadir@/p
23148/@docdir@/p
23149/@infodir@/p
23150/@localedir@/p
23151/@mandir@/p
23152'
23153case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23154*datarootdir*) ac_datarootdir_seen=yes;;
23155*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23156  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23157$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23158_ACEOF
23159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23160  ac_datarootdir_hack='
23161  s&@datadir@&$datadir&g
23162  s&@docdir@&$docdir&g
23163  s&@infodir@&$infodir&g
23164  s&@localedir@&$localedir&g
23165  s&@mandir@&$mandir&g
23166    s&\\\${datarootdir}&$datarootdir&g' ;;
23167esac
23168_ACEOF
23169
23170# Neutralize VPATH when `$srcdir' = `.'.
23171# Shell code in configure.ac might set extrasub.
23172# FIXME: do we really want to maintain this feature?
23173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23174ac_sed_extra="$ac_vpsub
23175$extrasub
23176_ACEOF
23177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23178:t
23179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23180s|@configure_input@|$ac_sed_conf_input|;t t
23181s&@top_builddir@&$ac_top_builddir_sub&;t t
23182s&@top_build_prefix@&$ac_top_build_prefix&;t t
23183s&@srcdir@&$ac_srcdir&;t t
23184s&@abs_srcdir@&$ac_abs_srcdir&;t t
23185s&@top_srcdir@&$ac_top_srcdir&;t t
23186s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23187s&@builddir@&$ac_builddir&;t t
23188s&@abs_builddir@&$ac_abs_builddir&;t t
23189s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23190s&@INSTALL@&$ac_INSTALL&;t t
23191s&@MKDIR_P@&$ac_MKDIR_P&;t t
23192$ac_datarootdir_hack
23193"
23194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23195  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23196$as_echo "$as_me: error: could not create $ac_file" >&2;}
23197   { (exit 1); exit 1; }; }
23198
23199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23200  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23201  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23202  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23203which seems to be undefined.  Please make sure it is defined." >&5
23204$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23205which seems to be undefined.  Please make sure it is defined." >&2;}
23206
23207  rm -f "$tmp/stdin"
23208  case $ac_file in
23209  -) cat "$tmp/out" && rm -f "$tmp/out";;
23210  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23211  esac \
23212  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23213$as_echo "$as_me: error: could not create $ac_file" >&2;}
23214   { (exit 1); exit 1; }; }
23215 ;;
23216  :H)
23217  #
23218  # CONFIG_HEADER
23219  #
23220  if test x"$ac_file" != x-; then
23221    {
23222      $as_echo "/* $configure_input  */" \
23223      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23224    } >"$tmp/config.h" \
23225      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23226$as_echo "$as_me: error: could not create $ac_file" >&2;}
23227   { (exit 1); exit 1; }; }
23228    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23229      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23230$as_echo "$as_me: $ac_file is unchanged" >&6;}
23231    else
23232      rm -f "$ac_file"
23233      mv "$tmp/config.h" "$ac_file" \
23234	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23235$as_echo "$as_me: error: could not create $ac_file" >&2;}
23236   { (exit 1); exit 1; }; }
23237    fi
23238  else
23239    $as_echo "/* $configure_input  */" \
23240      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23241      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23242$as_echo "$as_me: error: could not create -" >&2;}
23243   { (exit 1); exit 1; }; }
23244  fi
23245# Compute "$ac_file"'s index in $config_headers.
23246_am_arg="$ac_file"
23247_am_stamp_count=1
23248for _am_header in $config_headers :; do
23249  case $_am_header in
23250    $_am_arg | $_am_arg:* )
23251      break ;;
23252    * )
23253      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23254  esac
23255done
23256echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23257$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23258	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23259	 X"$_am_arg" : 'X\(//\)$' \| \
23260	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23261$as_echo X"$_am_arg" |
23262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23263	    s//\1/
23264	    q
23265	  }
23266	  /^X\(\/\/\)[^/].*/{
23267	    s//\1/
23268	    q
23269	  }
23270	  /^X\(\/\/\)$/{
23271	    s//\1/
23272	    q
23273	  }
23274	  /^X\(\/\).*/{
23275	    s//\1/
23276	    q
23277	  }
23278	  s/.*/./; q'`/stamp-h$_am_stamp_count
23279 ;;
23280
23281  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23282$as_echo "$as_me: executing $ac_file commands" >&6;}
23283 ;;
23284  esac
23285
23286
23287  case $ac_file$ac_mode in
23288    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23289  # Strip MF so we end up with the name of the file.
23290  mf=`echo "$mf" | sed -e 's/:.*$//'`
23291  # Check whether this is an Automake generated Makefile or not.
23292  # We used to match only the files named `Makefile.in', but
23293  # some people rename them; so instead we look at the file content.
23294  # Grep'ing the first line is not enough: some people post-process
23295  # each Makefile.in and add a new line on top of each file to say so.
23296  # Grep'ing the whole file is not good either: AIX grep has a line
23297  # limit of 2048, but all sed's we know have understand at least 4000.
23298  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23299    dirpart=`$as_dirname -- "$mf" ||
23300$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23301	 X"$mf" : 'X\(//\)[^/]' \| \
23302	 X"$mf" : 'X\(//\)$' \| \
23303	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23304$as_echo X"$mf" |
23305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23306	    s//\1/
23307	    q
23308	  }
23309	  /^X\(\/\/\)[^/].*/{
23310	    s//\1/
23311	    q
23312	  }
23313	  /^X\(\/\/\)$/{
23314	    s//\1/
23315	    q
23316	  }
23317	  /^X\(\/\).*/{
23318	    s//\1/
23319	    q
23320	  }
23321	  s/.*/./; q'`
23322  else
23323    continue
23324  fi
23325  # Extract the definition of DEPDIR, am__include, and am__quote
23326  # from the Makefile without running `make'.
23327  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23328  test -z "$DEPDIR" && continue
23329  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23330  test -z "am__include" && continue
23331  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23332  # When using ansi2knr, U may be empty or an underscore; expand it
23333  U=`sed -n 's/^U = //p' < "$mf"`
23334  # Find all dependency output files, they are included files with
23335  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23336  # simplest approach to changing $(DEPDIR) to its actual value in the
23337  # expansion.
23338  for file in `sed -n "
23339    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23340       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23341    # Make sure the directory exists.
23342    test -f "$dirpart/$file" && continue
23343    fdir=`$as_dirname -- "$file" ||
23344$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23345	 X"$file" : 'X\(//\)[^/]' \| \
23346	 X"$file" : 'X\(//\)$' \| \
23347	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23348$as_echo X"$file" |
23349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23350	    s//\1/
23351	    q
23352	  }
23353	  /^X\(\/\/\)[^/].*/{
23354	    s//\1/
23355	    q
23356	  }
23357	  /^X\(\/\/\)$/{
23358	    s//\1/
23359	    q
23360	  }
23361	  /^X\(\/\).*/{
23362	    s//\1/
23363	    q
23364	  }
23365	  s/.*/./; q'`
23366    { as_dir=$dirpart/$fdir
23367  case $as_dir in #(
23368  -*) as_dir=./$as_dir;;
23369  esac
23370  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23371    as_dirs=
23372    while :; do
23373      case $as_dir in #(
23374      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23375      *) as_qdir=$as_dir;;
23376      esac
23377      as_dirs="'$as_qdir' $as_dirs"
23378      as_dir=`$as_dirname -- "$as_dir" ||
23379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23380	 X"$as_dir" : 'X\(//\)[^/]' \| \
23381	 X"$as_dir" : 'X\(//\)$' \| \
23382	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23383$as_echo X"$as_dir" |
23384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23385	    s//\1/
23386	    q
23387	  }
23388	  /^X\(\/\/\)[^/].*/{
23389	    s//\1/
23390	    q
23391	  }
23392	  /^X\(\/\/\)$/{
23393	    s//\1/
23394	    q
23395	  }
23396	  /^X\(\/\).*/{
23397	    s//\1/
23398	    q
23399	  }
23400	  s/.*/./; q'`
23401      test -d "$as_dir" && break
23402    done
23403    test -z "$as_dirs" || eval "mkdir $as_dirs"
23404  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23405$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23406   { (exit 1); exit 1; }; }; }
23407    # echo "creating $dirpart/$file"
23408    echo '# dummy' > "$dirpart/$file"
23409  done
23410done
23411 ;;
23412
23413  esac
23414done # for ac_tag
23415
23416
23417{ (exit 0); exit 0; }
23418_ACEOF
23419chmod +x $CONFIG_STATUS
23420ac_clean_files=$ac_clean_files_save
23421
23422test $ac_write_fail = 0 ||
23423  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23424$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23425   { (exit 1); exit 1; }; }
23426
23427
23428# configure is writing to config.log, and then calls config.status.
23429# config.status does its own redirection, appending to config.log.
23430# Unfortunately, on DOS this fails, as config.log is still kept open
23431# by configure, so config.status won't be able to write to it; its
23432# output is simply discarded.  So we exec the FD to /dev/null,
23433# effectively closing config.log, so it can be properly (re)opened and
23434# appended to by config.status.  When coming back to configure, we
23435# need to make the FD available again.
23436if test "$no_create" != yes; then
23437  ac_cs_success=:
23438  ac_config_status_args=
23439  test "$silent" = yes &&
23440    ac_config_status_args="$ac_config_status_args --quiet"
23441  exec 5>/dev/null
23442  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23443  exec 5>>config.log
23444  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23445  # would make configure fail if this is the last instruction.
23446  $ac_cs_success || { (exit 1); exit 1; }
23447fi
23448if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23449  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23450$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23451fi
23452
23453