configure revision 9f4658d1
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-chips 1.2.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-chips'
752PACKAGE_TARNAME='xf86-video-chips'
753PACKAGE_VERSION='1.2.1'
754PACKAGE_STRING='xf86-video-chips 1.2.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
796MAKE_HTML
797MAKE_PDF
798MAKE_PS
799MAKE_TEXT
800BUILD_PDFDOC_FALSE
801BUILD_PDFDOC_TRUE
802BUILD_LINUXDOC_FALSE
803BUILD_LINUXDOC_TRUE
804PS2PDF
805LINUXDOC
806ADMIN_MAN_DIR
807DRIVER_MAN_DIR
808MISC_MAN_DIR
809FILE_MAN_DIR
810LIB_MAN_DIR
811APP_MAN_DIR
812ADMIN_MAN_SUFFIX
813DRIVER_MAN_SUFFIX
814MISC_MAN_SUFFIX
815FILE_MAN_SUFFIX
816LIB_MAN_SUFFIX
817APP_MAN_SUFFIX
818DRIVER_NAME
819moduledir
820BUILD_UTILS_FALSE
821BUILD_UTILS_TRUE
822XSERVER_LIBPCIACCESS_FALSE
823XSERVER_LIBPCIACCESS_TRUE
824PCIACCESS_LIBS
825PCIACCESS_CFLAGS
826XORG_LIBS
827XORG_CFLAGS
828PKG_CONFIG
829LIBTOOL
830ac_ct_F77
831FFLAGS
832F77
833CXXCPP
834am__fastdepCXX_FALSE
835am__fastdepCXX_TRUE
836CXXDEPMODE
837ac_ct_CXX
838CXXFLAGS
839CXX
840CPP
841NMEDIT
842DSYMUTIL
843RANLIB
844AR
845ECHO
846LN_S
847EGREP
848GREP
849SED
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853AMDEPBACKSLASH
854AMDEP_FALSE
855AMDEP_TRUE
856am__quote
857am__include
858DEPDIR
859OBJEXT
860EXEEXT
861ac_ct_CC
862CPPFLAGS
863LDFLAGS
864CFLAGS
865CC
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874MAINT
875MAINTAINER_MODE_FALSE
876MAINTAINER_MODE_TRUE
877am__untar
878am__tar
879AMTAR
880am__leading_dot
881SET_MAKE
882AWK
883mkdir_p
884MKDIR_P
885INSTALL_STRIP_PROGRAM
886STRIP
887install_sh
888MAKEINFO
889AUTOHEADER
890AUTOMAKE
891AUTOCONF
892ACLOCAL
893VERSION
894PACKAGE
895CYGPATH_W
896am__isrc
897INSTALL_DATA
898INSTALL_SCRIPT
899INSTALL_PROGRAM
900target_alias
901host_alias
902build_alias
903LIBS
904ECHO_T
905ECHO_N
906ECHO_C
907DEFS
908mandir
909localedir
910libdir
911psdir
912pdfdir
913dvidir
914htmldir
915infodir
916docdir
917oldincludedir
918includedir
919localstatedir
920sharedstatedir
921sysconfdir
922datadir
923datarootdir
924libexecdir
925sbindir
926bindir
927program_transform_name
928prefix
929exec_prefix
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL'
937ac_subst_files=''
938ac_user_opts='
939enable_option_checking
940enable_maintainer_mode
941enable_static
942enable_shared
943enable_fast_install
944enable_dependency_tracking
945with_gnu_ld
946enable_libtool_lock
947with_pic
948with_tags
949with_xorg_module_dir
950with_release_version
951'
952      ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958LIBS
959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
964CXXCPP
965F77
966FFLAGS
967PKG_CONFIG
968XORG_CFLAGS
969XORG_LIBS
970PCIACCESS_CFLAGS
971PCIACCESS_LIBS'
972
973
974# Initialize some variables set by options.
975ac_init_help=
976ac_init_version=false
977ac_unrecognized_opts=
978ac_unrecognized_sep=
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026  # If the previous option needs an argument, assign it.
1027  if test -n "$ac_prev"; then
1028    eval $ac_prev=\$ac_option
1029    ac_prev=
1030    continue
1031  fi
1032
1033  case $ac_option in
1034  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035  *)	ac_optarg=yes ;;
1036  esac
1037
1038  # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040  case $ac_dashdash$ac_option in
1041  --)
1042    ac_dashdash=yes ;;
1043
1044  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045    ac_prev=bindir ;;
1046  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047    bindir=$ac_optarg ;;
1048
1049  -build | --build | --buil | --bui | --bu)
1050    ac_prev=build_alias ;;
1051  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052    build_alias=$ac_optarg ;;
1053
1054  -cache-file | --cache-file | --cache-fil | --cache-fi \
1055  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056    ac_prev=cache_file ;;
1057  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059    cache_file=$ac_optarg ;;
1060
1061  --config-cache | -C)
1062    cache_file=config.cache ;;
1063
1064  -datadir | --datadir | --datadi | --datad)
1065    ac_prev=datadir ;;
1066  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067    datadir=$ac_optarg ;;
1068
1069  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070  | --dataroo | --dataro | --datar)
1071    ac_prev=datarootdir ;;
1072  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074    datarootdir=$ac_optarg ;;
1075
1076  -disable-* | --disable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1081   { (exit 1); exit 1; }; }
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"enable_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval enable_$ac_useropt=no ;;
1092
1093  -docdir | --docdir | --docdi | --doc | --do)
1094    ac_prev=docdir ;;
1095  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096    docdir=$ac_optarg ;;
1097
1098  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099    ac_prev=dvidir ;;
1100  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101    dvidir=$ac_optarg ;;
1102
1103  -enable-* | --enable-*)
1104    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1108   { (exit 1); exit 1; }; }
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"enable_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval enable_$ac_useropt=\$ac_optarg ;;
1119
1120  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122  | --exec | --exe | --ex)
1123    ac_prev=exec_prefix ;;
1124  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126  | --exec=* | --exe=* | --ex=*)
1127    exec_prefix=$ac_optarg ;;
1128
1129  -gas | --gas | --ga | --g)
1130    # Obsolete; use --with-gas.
1131    with_gas=yes ;;
1132
1133  -help | --help | --hel | --he | -h)
1134    ac_init_help=long ;;
1135  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136    ac_init_help=recursive ;;
1137  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138    ac_init_help=short ;;
1139
1140  -host | --host | --hos | --ho)
1141    ac_prev=host_alias ;;
1142  -host=* | --host=* | --hos=* | --ho=*)
1143    host_alias=$ac_optarg ;;
1144
1145  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146    ac_prev=htmldir ;;
1147  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148  | --ht=*)
1149    htmldir=$ac_optarg ;;
1150
1151  -includedir | --includedir | --includedi | --included | --include \
1152  | --includ | --inclu | --incl | --inc)
1153    ac_prev=includedir ;;
1154  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155  | --includ=* | --inclu=* | --incl=* | --inc=*)
1156    includedir=$ac_optarg ;;
1157
1158  -infodir | --infodir | --infodi | --infod | --info | --inf)
1159    ac_prev=infodir ;;
1160  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161    infodir=$ac_optarg ;;
1162
1163  -libdir | --libdir | --libdi | --libd)
1164    ac_prev=libdir ;;
1165  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166    libdir=$ac_optarg ;;
1167
1168  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169  | --libexe | --libex | --libe)
1170    ac_prev=libexecdir ;;
1171  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172  | --libexe=* | --libex=* | --libe=*)
1173    libexecdir=$ac_optarg ;;
1174
1175  -localedir | --localedir | --localedi | --localed | --locale)
1176    ac_prev=localedir ;;
1177  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178    localedir=$ac_optarg ;;
1179
1180  -localstatedir | --localstatedir | --localstatedi | --localstated \
1181  | --localstate | --localstat | --localsta | --localst | --locals)
1182    ac_prev=localstatedir ;;
1183  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185    localstatedir=$ac_optarg ;;
1186
1187  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188    ac_prev=mandir ;;
1189  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190    mandir=$ac_optarg ;;
1191
1192  -nfp | --nfp | --nf)
1193    # Obsolete; use --without-fp.
1194    with_fp=no ;;
1195
1196  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197  | --no-cr | --no-c | -n)
1198    no_create=yes ;;
1199
1200  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202    no_recursion=yes ;;
1203
1204  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206  | --oldin | --oldi | --old | --ol | --o)
1207    ac_prev=oldincludedir ;;
1208  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211    oldincludedir=$ac_optarg ;;
1212
1213  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214    ac_prev=prefix ;;
1215  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216    prefix=$ac_optarg ;;
1217
1218  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219  | --program-pre | --program-pr | --program-p)
1220    ac_prev=program_prefix ;;
1221  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223    program_prefix=$ac_optarg ;;
1224
1225  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226  | --program-suf | --program-su | --program-s)
1227    ac_prev=program_suffix ;;
1228  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230    program_suffix=$ac_optarg ;;
1231
1232  -program-transform-name | --program-transform-name \
1233  | --program-transform-nam | --program-transform-na \
1234  | --program-transform-n | --program-transform- \
1235  | --program-transform | --program-transfor \
1236  | --program-transfo | --program-transf \
1237  | --program-trans | --program-tran \
1238  | --progr-tra | --program-tr | --program-t)
1239    ac_prev=program_transform_name ;;
1240  -program-transform-name=* | --program-transform-name=* \
1241  | --program-transform-nam=* | --program-transform-na=* \
1242  | --program-transform-n=* | --program-transform-=* \
1243  | --program-transform=* | --program-transfor=* \
1244  | --program-transfo=* | --program-transf=* \
1245  | --program-trans=* | --program-tran=* \
1246  | --progr-tra=* | --program-tr=* | --program-t=*)
1247    program_transform_name=$ac_optarg ;;
1248
1249  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250    ac_prev=pdfdir ;;
1251  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252    pdfdir=$ac_optarg ;;
1253
1254  -psdir | --psdir | --psdi | --psd | --ps)
1255    ac_prev=psdir ;;
1256  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257    psdir=$ac_optarg ;;
1258
1259  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260  | -silent | --silent | --silen | --sile | --sil)
1261    silent=yes ;;
1262
1263  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264    ac_prev=sbindir ;;
1265  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266  | --sbi=* | --sb=*)
1267    sbindir=$ac_optarg ;;
1268
1269  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271  | --sharedst | --shareds | --shared | --share | --shar \
1272  | --sha | --sh)
1273    ac_prev=sharedstatedir ;;
1274  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277  | --sha=* | --sh=*)
1278    sharedstatedir=$ac_optarg ;;
1279
1280  -site | --site | --sit)
1281    ac_prev=site ;;
1282  -site=* | --site=* | --sit=*)
1283    site=$ac_optarg ;;
1284
1285  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286    ac_prev=srcdir ;;
1287  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288    srcdir=$ac_optarg ;;
1289
1290  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291  | --syscon | --sysco | --sysc | --sys | --sy)
1292    ac_prev=sysconfdir ;;
1293  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295    sysconfdir=$ac_optarg ;;
1296
1297  -target | --target | --targe | --targ | --tar | --ta | --t)
1298    ac_prev=target_alias ;;
1299  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300    target_alias=$ac_optarg ;;
1301
1302  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303    verbose=yes ;;
1304
1305  -version | --version | --versio | --versi | --vers | -V)
1306    ac_init_version=: ;;
1307
1308  -with-* | --with-*)
1309    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310    # Reject names that are not valid shell variable names.
1311    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1313   { (exit 1); exit 1; }; }
1314    ac_useropt_orig=$ac_useropt
1315    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316    case $ac_user_opts in
1317      *"
1318"with_$ac_useropt"
1319"*) ;;
1320      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321	 ac_unrecognized_sep=', ';;
1322    esac
1323    eval with_$ac_useropt=\$ac_optarg ;;
1324
1325  -without-* | --without-*)
1326    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1330   { (exit 1); exit 1; }; }
1331    ac_useropt_orig=$ac_useropt
1332    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333    case $ac_user_opts in
1334      *"
1335"with_$ac_useropt"
1336"*) ;;
1337      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338	 ac_unrecognized_sep=', ';;
1339    esac
1340    eval with_$ac_useropt=no ;;
1341
1342  --x)
1343    # Obsolete; use --with-x.
1344    with_x=yes ;;
1345
1346  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347  | --x-incl | --x-inc | --x-in | --x-i)
1348    ac_prev=x_includes ;;
1349  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351    x_includes=$ac_optarg ;;
1352
1353  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355    ac_prev=x_libraries ;;
1356  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358    x_libraries=$ac_optarg ;;
1359
1360  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1361Try \`$0 --help' for more information." >&2
1362   { (exit 1); exit 1; }; }
1363    ;;
1364
1365  *=*)
1366    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1369      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1370   { (exit 1); exit 1; }; }
1371    eval $ac_envvar=\$ac_optarg
1372    export $ac_envvar ;;
1373
1374  *)
1375    # FIXME: should be removed in autoconf 3.0.
1376    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380    ;;
1381
1382  esac
1383done
1384
1385if test -n "$ac_prev"; then
1386  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1388   { (exit 1); exit 1; }; }
1389fi
1390
1391if test -n "$ac_unrecognized_opts"; then
1392  case $enable_option_checking in
1393    no) ;;
1394    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1395   { (exit 1); exit 1; }; } ;;
1396    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397  esac
1398fi
1399
1400# Check all directory arguments for consistency.
1401for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402		datadir sysconfdir sharedstatedir localstatedir includedir \
1403		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404		libdir localedir mandir
1405do
1406  eval ac_val=\$$ac_var
1407  # Remove trailing slashes.
1408  case $ac_val in
1409    */ )
1410      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411      eval $ac_var=\$ac_val;;
1412  esac
1413  # Be sure to have absolute directory names.
1414  case $ac_val in
1415    [\\/$]* | ?:[\\/]* )  continue;;
1416    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417  esac
1418  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1419   { (exit 1); exit 1; }; }
1420done
1421
1422# There might be people who depend on the old broken behavior: `$host'
1423# used to hold the argument of --host etc.
1424# FIXME: To remove some day.
1425build=$build_alias
1426host=$host_alias
1427target=$target_alias
1428
1429# FIXME: To remove some day.
1430if test "x$host_alias" != x; then
1431  if test "x$build_alias" = x; then
1432    cross_compiling=maybe
1433    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1434    If a cross compiler is detected then cross compile mode will be used." >&2
1435  elif test "x$build_alias" != "x$host_alias"; then
1436    cross_compiling=yes
1437  fi
1438fi
1439
1440ac_tool_prefix=
1441test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442
1443test "$silent" = yes && exec 6>/dev/null
1444
1445
1446ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447ac_ls_di=`ls -di .` &&
1448ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1450   { (exit 1); exit 1; }; }
1451test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1453   { (exit 1); exit 1; }; }
1454
1455
1456# Find the source files, if location was not specified.
1457if test -z "$srcdir"; then
1458  ac_srcdir_defaulted=yes
1459  # Try the directory containing this script, then the parent directory.
1460  ac_confdir=`$as_dirname -- "$as_myself" ||
1461$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1462	 X"$as_myself" : 'X\(//\)[^/]' \| \
1463	 X"$as_myself" : 'X\(//\)$' \| \
1464	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1465$as_echo X"$as_myself" |
1466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\/\)[^/].*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)$/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\).*/{
1479	    s//\1/
1480	    q
1481	  }
1482	  s/.*/./; q'`
1483  srcdir=$ac_confdir
1484  if test ! -r "$srcdir/$ac_unique_file"; then
1485    srcdir=..
1486  fi
1487else
1488  ac_srcdir_defaulted=no
1489fi
1490if test ! -r "$srcdir/$ac_unique_file"; then
1491  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1492  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1493   { (exit 1); exit 1; }; }
1494fi
1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496ac_abs_confdir=`(
1497	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1498   { (exit 1); exit 1; }; }
1499	pwd)`
1500# When building in place, set srcdir=.
1501if test "$ac_abs_confdir" = "$ac_pwd"; then
1502  srcdir=.
1503fi
1504# Remove unnecessary trailing slashes from srcdir.
1505# Double slashes in file names in object file debugging info
1506# mess up M-x gdb in Emacs.
1507case $srcdir in
1508*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509esac
1510for ac_var in $ac_precious_vars; do
1511  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512  eval ac_env_${ac_var}_value=\$${ac_var}
1513  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515done
1516
1517#
1518# Report the --help message.
1519#
1520if test "$ac_init_help" = "long"; then
1521  # Omit some internal or obsolete options to make the list less imposing.
1522  # This message is too long to be a string in the A/UX 3.1 sh.
1523  cat <<_ACEOF
1524\`configure' configures xf86-video-chips 1.2.1 to adapt to many kinds of systems.
1525
1526Usage: $0 [OPTION]... [VAR=VALUE]...
1527
1528To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529VAR=VALUE.  See below for descriptions of some of the useful variables.
1530
1531Defaults for the options are specified in brackets.
1532
1533Configuration:
1534  -h, --help              display this help and exit
1535      --help=short        display options specific to this package
1536      --help=recursive    display the short help of all the included packages
1537  -V, --version           display version information and exit
1538  -q, --quiet, --silent   do not print \`checking...' messages
1539      --cache-file=FILE   cache test results in FILE [disabled]
1540  -C, --config-cache      alias for \`--cache-file=config.cache'
1541  -n, --no-create         do not create output files
1542      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1543
1544Installation directories:
1545  --prefix=PREFIX         install architecture-independent files in PREFIX
1546                          [$ac_default_prefix]
1547  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1548                          [PREFIX]
1549
1550By default, \`make install' will install all the files in
1551\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1552an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553for instance \`--prefix=\$HOME'.
1554
1555For better control, use the options below.
1556
1557Fine tuning of the installation directories:
1558  --bindir=DIR            user executables [EPREFIX/bin]
1559  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1560  --libexecdir=DIR        program executables [EPREFIX/libexec]
1561  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1562  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1563  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1564  --libdir=DIR            object code libraries [EPREFIX/lib]
1565  --includedir=DIR        C header files [PREFIX/include]
1566  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1567  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1568  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1569  --infodir=DIR           info documentation [DATAROOTDIR/info]
1570  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1571  --mandir=DIR            man documentation [DATAROOTDIR/man]
1572  --docdir=DIR            documentation root
1573                          [DATAROOTDIR/doc/xf86-video-chips]
1574  --htmldir=DIR           html documentation [DOCDIR]
1575  --dvidir=DIR            dvi documentation [DOCDIR]
1576  --pdfdir=DIR            pdf documentation [DOCDIR]
1577  --psdir=DIR             ps documentation [DOCDIR]
1578_ACEOF
1579
1580  cat <<\_ACEOF
1581
1582Program names:
1583  --program-prefix=PREFIX            prepend PREFIX to installed program names
1584  --program-suffix=SUFFIX            append SUFFIX to installed program names
1585  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1586
1587System types:
1588  --build=BUILD     configure for building on BUILD [guessed]
1589  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1590_ACEOF
1591fi
1592
1593if test -n "$ac_init_help"; then
1594  case $ac_init_help in
1595     short | recursive ) echo "Configuration of xf86-video-chips 1.2.1:";;
1596   esac
1597  cat <<\_ACEOF
1598
1599Optional Features:
1600  --disable-option-checking  ignore unrecognized --enable/--with options
1601  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1602  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1603  --enable-maintainer-mode  enable make rules and dependencies not useful
1604			  (and sometimes confusing) to the casual installer
1605  --enable-static[=PKGS]  build static libraries [default=no]
1606  --enable-shared[=PKGS]  build shared libraries [default=yes]
1607  --enable-fast-install[=PKGS]
1608                          optimize for fast installation [default=yes]
1609  --disable-dependency-tracking  speeds up one-time build
1610  --enable-dependency-tracking   do not reject slow dependency extractors
1611  --disable-libtool-lock  avoid locking (might break parallel builds)
1612
1613Optional Packages:
1614  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1615  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1616  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1617  --with-pic              try to use only PIC/non-PIC objects [default=use
1618                          both]
1619  --with-tags[=TAGS]      include additional configurations [automatic]
1620  --with-xorg-module-dir=DIR
1621                          Default xorg module directory
1622                          [default=$libdir/xorg/modules]
1623  --with-release-version=STRING
1624                          Use release version string in package name
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CPP         C preprocessor
1635  CXX         C++ compiler command
1636  CXXFLAGS    C++ compiler flags
1637  CXXCPP      C++ preprocessor
1638  F77         Fortran 77 compiler command
1639  FFLAGS      Fortran 77 compiler flags
1640  PKG_CONFIG  path to pkg-config utility
1641  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1642  XORG_LIBS   linker flags for XORG, overriding pkg-config
1643  PCIACCESS_CFLAGS
1644              C compiler flags for PCIACCESS, overriding pkg-config
1645  PCIACCESS_LIBS
1646              linker flags for PCIACCESS, overriding pkg-config
1647
1648Use these variables to override the choices made by `configure' or to help
1649it to find libraries and programs with nonstandard names/locations.
1650
1651Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1652_ACEOF
1653ac_status=$?
1654fi
1655
1656if test "$ac_init_help" = "recursive"; then
1657  # If there are subdirs, report their specific --help.
1658  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659    test -d "$ac_dir" ||
1660      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1661      continue
1662    ac_builddir=.
1663
1664case "$ac_dir" in
1665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666*)
1667  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1668  # A ".." for each directory in $ac_dir_suffix.
1669  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1670  case $ac_top_builddir_sub in
1671  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1673  esac ;;
1674esac
1675ac_abs_top_builddir=$ac_pwd
1676ac_abs_builddir=$ac_pwd$ac_dir_suffix
1677# for backward compatibility:
1678ac_top_builddir=$ac_top_build_prefix
1679
1680case $srcdir in
1681  .)  # We are building in place.
1682    ac_srcdir=.
1683    ac_top_srcdir=$ac_top_builddir_sub
1684    ac_abs_top_srcdir=$ac_pwd ;;
1685  [\\/]* | ?:[\\/]* )  # Absolute name.
1686    ac_srcdir=$srcdir$ac_dir_suffix;
1687    ac_top_srcdir=$srcdir
1688    ac_abs_top_srcdir=$srcdir ;;
1689  *) # Relative name.
1690    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1691    ac_top_srcdir=$ac_top_build_prefix$srcdir
1692    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1693esac
1694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1695
1696    cd "$ac_dir" || { ac_status=$?; continue; }
1697    # Check for guested configure.
1698    if test -f "$ac_srcdir/configure.gnu"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1701    elif test -f "$ac_srcdir/configure"; then
1702      echo &&
1703      $SHELL "$ac_srcdir/configure" --help=recursive
1704    else
1705      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1706    fi || ac_status=$?
1707    cd "$ac_pwd" || { ac_status=$?; break; }
1708  done
1709fi
1710
1711test -n "$ac_init_help" && exit $ac_status
1712if $ac_init_version; then
1713  cat <<\_ACEOF
1714xf86-video-chips configure 1.2.1
1715generated by GNU Autoconf 2.63
1716
1717Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17182002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1719This configure script is free software; the Free Software Foundation
1720gives unlimited permission to copy, distribute and modify it.
1721_ACEOF
1722  exit
1723fi
1724cat >config.log <<_ACEOF
1725This file contains any messages produced by compilers while
1726running configure, to aid debugging if configure makes a mistake.
1727
1728It was created by xf86-video-chips $as_me 1.2.1, which was
1729generated by GNU Autoconf 2.63.  Invocation command line was
1730
1731  $ $0 $@
1732
1733_ACEOF
1734exec 5>>config.log
1735{
1736cat <<_ASUNAME
1737## --------- ##
1738## Platform. ##
1739## --------- ##
1740
1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758_ASUNAME
1759
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  test -z "$as_dir" && as_dir=.
1765  $as_echo "PATH: $as_dir"
1766done
1767IFS=$as_save_IFS
1768
1769} >&5
1770
1771cat >&5 <<_ACEOF
1772
1773
1774## ----------- ##
1775## Core tests. ##
1776## ----------- ##
1777
1778_ACEOF
1779
1780
1781# Keep a trace of the command line.
1782# Strip out --no-create and --no-recursion so they do not pile up.
1783# Strip out --silent because we don't want to record it for future runs.
1784# Also quote any args containing shell meta-characters.
1785# Make two passes to allow for proper duplicate-argument suppression.
1786ac_configure_args=
1787ac_configure_args0=
1788ac_configure_args1=
1789ac_must_keep_next=false
1790for ac_pass in 1 2
1791do
1792  for ac_arg
1793  do
1794    case $ac_arg in
1795    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797    | -silent | --silent | --silen | --sile | --sil)
1798      continue ;;
1799    *\'*)
1800      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801    esac
1802    case $ac_pass in
1803    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804    2)
1805      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806      if test $ac_must_keep_next = true; then
1807	ac_must_keep_next=false # Got value, back to normal.
1808      else
1809	case $ac_arg in
1810	  *=* | --config-cache | -C | -disable-* | --disable-* \
1811	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813	  | -with-* | --with-* | -without-* | --without-* | --x)
1814	    case "$ac_configure_args0 " in
1815	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816	    esac
1817	    ;;
1818	  -* ) ac_must_keep_next=true ;;
1819	esac
1820      fi
1821      ac_configure_args="$ac_configure_args '$ac_arg'"
1822      ;;
1823    esac
1824  done
1825done
1826$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828
1829# When interrupted or exit'd, cleanup temporary files, and complete
1830# config.log.  We remove comments because anyway the quotes in there
1831# would cause problems or look ugly.
1832# WARNING: Use '\'' to represent an apostrophe within the trap.
1833# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834trap 'exit_status=$?
1835  # Save into config.log some information that might help in debugging.
1836  {
1837    echo
1838
1839    cat <<\_ASBOX
1840## ---------------- ##
1841## Cache variables. ##
1842## ---------------- ##
1843_ASBOX
1844    echo
1845    # The following way of writing the cache mishandles newlines in values,
1846(
1847  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848    eval ac_val=\$$ac_var
1849    case $ac_val in #(
1850    *${as_nl}*)
1851      case $ac_var in #(
1852      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1853$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1854      esac
1855      case $ac_var in #(
1856      _ | IFS | as_nl) ;; #(
1857      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1858      *) $as_unset $ac_var ;;
1859      esac ;;
1860    esac
1861  done
1862  (set) 2>&1 |
1863    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1864    *${as_nl}ac_space=\ *)
1865      sed -n \
1866	"s/'\''/'\''\\\\'\'''\''/g;
1867	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1868      ;; #(
1869    *)
1870      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1871      ;;
1872    esac |
1873    sort
1874)
1875    echo
1876
1877    cat <<\_ASBOX
1878## ----------------- ##
1879## Output variables. ##
1880## ----------------- ##
1881_ASBOX
1882    echo
1883    for ac_var in $ac_subst_vars
1884    do
1885      eval ac_val=\$$ac_var
1886      case $ac_val in
1887      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888      esac
1889      $as_echo "$ac_var='\''$ac_val'\''"
1890    done | sort
1891    echo
1892
1893    if test -n "$ac_subst_files"; then
1894      cat <<\_ASBOX
1895## ------------------- ##
1896## File substitutions. ##
1897## ------------------- ##
1898_ASBOX
1899      echo
1900      for ac_var in $ac_subst_files
1901      do
1902	eval ac_val=\$$ac_var
1903	case $ac_val in
1904	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905	esac
1906	$as_echo "$ac_var='\''$ac_val'\''"
1907      done | sort
1908      echo
1909    fi
1910
1911    if test -s confdefs.h; then
1912      cat <<\_ASBOX
1913## ----------- ##
1914## confdefs.h. ##
1915## ----------- ##
1916_ASBOX
1917      echo
1918      cat confdefs.h
1919      echo
1920    fi
1921    test "$ac_signal" != 0 &&
1922      $as_echo "$as_me: caught signal $ac_signal"
1923    $as_echo "$as_me: exit $exit_status"
1924  } >&5
1925  rm -f core *.core core.conftest.* &&
1926    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1927    exit $exit_status
1928' 0
1929for ac_signal in 1 2 13 15; do
1930  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1931done
1932ac_signal=0
1933
1934# confdefs.h avoids OS command line length limits that DEFS can exceed.
1935rm -f -r conftest* confdefs.h
1936
1937# Predefined preprocessor variables.
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_NAME "$PACKAGE_NAME"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_VERSION "$PACKAGE_VERSION"
1951_ACEOF
1952
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_STRING "$PACKAGE_STRING"
1956_ACEOF
1957
1958
1959cat >>confdefs.h <<_ACEOF
1960#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961_ACEOF
1962
1963
1964# Let the site file select an alternate cache file if it wants to.
1965# Prefer an explicitly selected file to automatically selected ones.
1966ac_site_file1=NONE
1967ac_site_file2=NONE
1968if test -n "$CONFIG_SITE"; then
1969  ac_site_file1=$CONFIG_SITE
1970elif test "x$prefix" != xNONE; then
1971  ac_site_file1=$prefix/share/config.site
1972  ac_site_file2=$prefix/etc/config.site
1973else
1974  ac_site_file1=$ac_default_prefix/share/config.site
1975  ac_site_file2=$ac_default_prefix/etc/config.site
1976fi
1977for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1978do
1979  test "x$ac_site_file" = xNONE && continue
1980  if test -r "$ac_site_file"; then
1981    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1982$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1983    sed 's/^/| /' "$ac_site_file" >&5
1984    . "$ac_site_file"
1985  fi
1986done
1987
1988if test -r "$cache_file"; then
1989  # Some versions of bash will fail to source /dev/null (special
1990  # files actually), so we avoid doing that.
1991  if test -f "$cache_file"; then
1992    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1993$as_echo "$as_me: loading cache $cache_file" >&6;}
1994    case $cache_file in
1995      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1996      *)                      . "./$cache_file";;
1997    esac
1998  fi
1999else
2000  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2001$as_echo "$as_me: creating cache $cache_file" >&6;}
2002  >$cache_file
2003fi
2004
2005# Check that the precious variables saved in the cache have kept the same
2006# value.
2007ac_cache_corrupted=false
2008for ac_var in $ac_precious_vars; do
2009  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2010  eval ac_new_set=\$ac_env_${ac_var}_set
2011  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2012  eval ac_new_val=\$ac_env_${ac_var}_value
2013  case $ac_old_set,$ac_new_set in
2014    set,)
2015      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2016$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2017      ac_cache_corrupted=: ;;
2018    ,set)
2019      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2020$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2021      ac_cache_corrupted=: ;;
2022    ,);;
2023    *)
2024      if test "x$ac_old_val" != "x$ac_new_val"; then
2025	# differences in whitespace do not lead to failure.
2026	ac_old_val_w=`echo x $ac_old_val`
2027	ac_new_val_w=`echo x $ac_new_val`
2028	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2029	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2030$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2031	  ac_cache_corrupted=:
2032	else
2033	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2034$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2035	  eval $ac_var=\$ac_old_val
2036	fi
2037	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2038$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2039	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2040$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2041      fi;;
2042  esac
2043  # Pass precious variables to config.status.
2044  if test "$ac_new_set" = set; then
2045    case $ac_new_val in
2046    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2047    *) ac_arg=$ac_var=$ac_new_val ;;
2048    esac
2049    case " $ac_configure_args " in
2050      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2051      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052    esac
2053  fi
2054done
2055if $ac_cache_corrupted; then
2056  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2058  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2059$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2060  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2061$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2062   { (exit 1); exit 1; }; }
2063fi
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089ac_ext=c
2090ac_cpp='$CPP $CPPFLAGS'
2091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094
2095
2096
2097
2098ac_config_headers="$ac_config_headers config.h"
2099
2100ac_aux_dir=
2101for ac_dir in . "$srcdir"/.; do
2102  if test -f "$ac_dir/install-sh"; then
2103    ac_aux_dir=$ac_dir
2104    ac_install_sh="$ac_aux_dir/install-sh -c"
2105    break
2106  elif test -f "$ac_dir/install.sh"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/install.sh -c"
2109    break
2110  elif test -f "$ac_dir/shtool"; then
2111    ac_aux_dir=$ac_dir
2112    ac_install_sh="$ac_aux_dir/shtool install -c"
2113    break
2114  fi
2115done
2116if test -z "$ac_aux_dir"; then
2117  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2118$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2119   { (exit 1); exit 1; }; }
2120fi
2121
2122# These three variables are undocumented and unsupported,
2123# and are intended to be withdrawn in a future Autoconf release.
2124# They can cause serious problems if a builder's source tree is in a directory
2125# whose full name contains unusual characters.
2126ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2127ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2128ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2129
2130
2131
2132am__api_version='1.10'
2133
2134# Find a good install program.  We prefer a C program (faster),
2135# so one script is as good as another.  But avoid the broken or
2136# incompatible versions:
2137# SysV /etc/install, /usr/sbin/install
2138# SunOS /usr/etc/install
2139# IRIX /sbin/install
2140# AIX /bin/install
2141# AmigaOS /C/install, which installs bootblocks on floppy discs
2142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2143# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2145# OS/2's system install, which has a completely different semantic
2146# ./install, which can be erroneously created by make from ./install.sh.
2147# Reject install programs that cannot install multiple files.
2148{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2149$as_echo_n "checking for a BSD-compatible install... " >&6; }
2150if test -z "$INSTALL"; then
2151if test "${ac_cv_path_install+set}" = set; then
2152  $as_echo_n "(cached) " >&6
2153else
2154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  # Account for people who put trailing slashes in PATH elements.
2160case $as_dir/ in
2161  ./ | .// | /cC/* | \
2162  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2163  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2164  /usr/ucb/* ) ;;
2165  *)
2166    # OSF1 and SCO ODT 3.0 have their own names for install.
2167    # Don't use installbsd from OSF since it installs stuff as root
2168    # by default.
2169    for ac_prog in ginstall scoinst install; do
2170      for ac_exec_ext in '' $ac_executable_extensions; do
2171	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2172	  if test $ac_prog = install &&
2173	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174	    # AIX install.  It has an incompatible calling convention.
2175	    :
2176	  elif test $ac_prog = install &&
2177	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2178	    # program-specific install script used by HP pwplus--don't use.
2179	    :
2180	  else
2181	    rm -rf conftest.one conftest.two conftest.dir
2182	    echo one > conftest.one
2183	    echo two > conftest.two
2184	    mkdir conftest.dir
2185	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2186	      test -s conftest.one && test -s conftest.two &&
2187	      test -s conftest.dir/conftest.one &&
2188	      test -s conftest.dir/conftest.two
2189	    then
2190	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2191	      break 3
2192	    fi
2193	  fi
2194	fi
2195      done
2196    done
2197    ;;
2198esac
2199
2200done
2201IFS=$as_save_IFS
2202
2203rm -rf conftest.one conftest.two conftest.dir
2204
2205fi
2206  if test "${ac_cv_path_install+set}" = set; then
2207    INSTALL=$ac_cv_path_install
2208  else
2209    # As a last resort, use the slow shell script.  Don't cache a
2210    # value for INSTALL within a source directory, because that will
2211    # break other packages using the cache if that directory is
2212    # removed, or if the value is a relative name.
2213    INSTALL=$ac_install_sh
2214  fi
2215fi
2216{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2217$as_echo "$INSTALL" >&6; }
2218
2219# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2220# It thinks the first close brace ends the variable substitution.
2221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2222
2223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2224
2225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2226
2227{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2228$as_echo_n "checking whether build environment is sane... " >&6; }
2229# Just in case
2230sleep 1
2231echo timestamp > conftest.file
2232# Do `set' in a subshell so we don't clobber the current shell's
2233# arguments.  Must try -L first in case configure is actually a
2234# symlink; some systems play weird games with the mod time of symlinks
2235# (eg FreeBSD returns the mod time of the symlink's containing
2236# directory).
2237if (
2238   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2239   if test "$*" = "X"; then
2240      # -L didn't work.
2241      set X `ls -t $srcdir/configure conftest.file`
2242   fi
2243   rm -f conftest.file
2244   if test "$*" != "X $srcdir/configure conftest.file" \
2245      && test "$*" != "X conftest.file $srcdir/configure"; then
2246
2247      # If neither matched, then we have a broken ls.  This can happen
2248      # if, for instance, CONFIG_SHELL is bash and it inherits a
2249      # broken ls alias from the environment.  This has actually
2250      # happened.  Such a system could not be considered "sane".
2251      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2252alias in your environment" >&5
2253$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2254alias in your environment" >&2;}
2255   { (exit 1); exit 1; }; }
2256   fi
2257
2258   test "$2" = conftest.file
2259   )
2260then
2261   # Ok.
2262   :
2263else
2264   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2265Check your system clock" >&5
2266$as_echo "$as_me: error: newly created file is older than distributed files!
2267Check your system clock" >&2;}
2268   { (exit 1); exit 1; }; }
2269fi
2270{ $as_echo "$as_me:$LINENO: result: yes" >&5
2271$as_echo "yes" >&6; }
2272test "$program_prefix" != NONE &&
2273  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2274# Use a double $ so make ignores it.
2275test "$program_suffix" != NONE &&
2276  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2277# Double any \ or $.
2278# By default was `s,x,x', remove it if useless.
2279ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2280program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2281
2282# expand $ac_aux_dir to an absolute path
2283am_aux_dir=`cd $ac_aux_dir && pwd`
2284
2285test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2286# Use eval to expand $SHELL
2287if eval "$MISSING --run true"; then
2288  am_missing_run="$MISSING --run "
2289else
2290  am_missing_run=
2291  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2292$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2293fi
2294
2295{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2296$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2297if test -z "$MKDIR_P"; then
2298  if test "${ac_cv_path_mkdir+set}" = set; then
2299  $as_echo_n "(cached) " >&6
2300else
2301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306  for ac_prog in mkdir gmkdir; do
2307	 for ac_exec_ext in '' $ac_executable_extensions; do
2308	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2309	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2310	     'mkdir (GNU coreutils) '* | \
2311	     'mkdir (coreutils) '* | \
2312	     'mkdir (fileutils) '4.1*)
2313	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2314	       break 3;;
2315	   esac
2316	 done
2317       done
2318done
2319IFS=$as_save_IFS
2320
2321fi
2322
2323  if test "${ac_cv_path_mkdir+set}" = set; then
2324    MKDIR_P="$ac_cv_path_mkdir -p"
2325  else
2326    # As a last resort, use the slow shell script.  Don't cache a
2327    # value for MKDIR_P within a source directory, because that will
2328    # break other packages using the cache if that directory is
2329    # removed, or if the value is a relative name.
2330    test -d ./--version && rmdir ./--version
2331    MKDIR_P="$ac_install_sh -d"
2332  fi
2333fi
2334{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2335$as_echo "$MKDIR_P" >&6; }
2336
2337mkdir_p="$MKDIR_P"
2338case $mkdir_p in
2339  [\\/$]* | ?:[\\/]*) ;;
2340  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2341esac
2342
2343for ac_prog in gawk mawk nawk awk
2344do
2345  # Extract the first word of "$ac_prog", so it can be a program name with args.
2346set dummy $ac_prog; ac_word=$2
2347{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348$as_echo_n "checking for $ac_word... " >&6; }
2349if test "${ac_cv_prog_AWK+set}" = set; then
2350  $as_echo_n "(cached) " >&6
2351else
2352  if test -n "$AWK"; then
2353  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358  IFS=$as_save_IFS
2359  test -z "$as_dir" && as_dir=.
2360  for ac_exec_ext in '' $ac_executable_extensions; do
2361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362    ac_cv_prog_AWK="$ac_prog"
2363    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364    break 2
2365  fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372AWK=$ac_cv_prog_AWK
2373if test -n "$AWK"; then
2374  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2375$as_echo "$AWK" >&6; }
2376else
2377  { $as_echo "$as_me:$LINENO: result: no" >&5
2378$as_echo "no" >&6; }
2379fi
2380
2381
2382  test -n "$AWK" && break
2383done
2384
2385{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2386$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2387set x ${MAKE-make}
2388ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2389if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2390  $as_echo_n "(cached) " >&6
2391else
2392  cat >conftest.make <<\_ACEOF
2393SHELL = /bin/sh
2394all:
2395	@echo '@@@%%%=$(MAKE)=@@@%%%'
2396_ACEOF
2397# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2398case `${MAKE-make} -f conftest.make 2>/dev/null` in
2399  *@@@%%%=?*=@@@%%%*)
2400    eval ac_cv_prog_make_${ac_make}_set=yes;;
2401  *)
2402    eval ac_cv_prog_make_${ac_make}_set=no;;
2403esac
2404rm -f conftest.make
2405fi
2406if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2407  { $as_echo "$as_me:$LINENO: result: yes" >&5
2408$as_echo "yes" >&6; }
2409  SET_MAKE=
2410else
2411  { $as_echo "$as_me:$LINENO: result: no" >&5
2412$as_echo "no" >&6; }
2413  SET_MAKE="MAKE=${MAKE-make}"
2414fi
2415
2416rm -rf .tst 2>/dev/null
2417mkdir .tst 2>/dev/null
2418if test -d .tst; then
2419  am__leading_dot=.
2420else
2421  am__leading_dot=_
2422fi
2423rmdir .tst 2>/dev/null
2424
2425if test "`cd $srcdir && pwd`" != "`pwd`"; then
2426  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2427  # is not polluted with repeated "-I."
2428  am__isrc=' -I$(srcdir)'
2429  # test to see if srcdir already configured
2430  if test -f $srcdir/config.status; then
2431    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2432$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2433   { (exit 1); exit 1; }; }
2434  fi
2435fi
2436
2437# test whether we have cygpath
2438if test -z "$CYGPATH_W"; then
2439  if (cygpath --version) >/dev/null 2>/dev/null; then
2440    CYGPATH_W='cygpath -w'
2441  else
2442    CYGPATH_W=echo
2443  fi
2444fi
2445
2446
2447# Define the identity of the package.
2448 PACKAGE='xf86-video-chips'
2449 VERSION='1.2.1'
2450
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE "$PACKAGE"
2454_ACEOF
2455
2456
2457cat >>confdefs.h <<_ACEOF
2458#define VERSION "$VERSION"
2459_ACEOF
2460
2461# Some tools Automake needs.
2462
2463ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2464
2465
2466AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2467
2468
2469AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2470
2471
2472AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2473
2474
2475MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2476
2477install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2478
2479# Installed binaries are usually stripped using `strip' when the user
2480# run `make install-strip'.  However `strip' might not be the right
2481# tool to use in cross-compilation environments, therefore Automake
2482# will honor the `STRIP' environment variable to overrule this program.
2483if test "$cross_compiling" != no; then
2484  if test -n "$ac_tool_prefix"; then
2485  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486set dummy ${ac_tool_prefix}strip; ac_word=$2
2487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if test "${ac_cv_prog_STRIP+set}" = set; then
2490  $as_echo_n "(cached) " >&6
2491else
2492  if test -n "$STRIP"; then
2493  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500  for ac_exec_ext in '' $ac_executable_extensions; do
2501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504    break 2
2505  fi
2506done
2507done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
2512STRIP=$ac_cv_prog_STRIP
2513if test -n "$STRIP"; then
2514  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2515$as_echo "$STRIP" >&6; }
2516else
2517  { $as_echo "$as_me:$LINENO: result: no" >&5
2518$as_echo "no" >&6; }
2519fi
2520
2521
2522fi
2523if test -z "$ac_cv_prog_STRIP"; then
2524  ac_ct_STRIP=$STRIP
2525  # Extract the first word of "strip", so it can be a program name with args.
2526set dummy strip; ac_word=$2
2527{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2530  $as_echo_n "(cached) " >&6
2531else
2532  if test -n "$ac_ct_STRIP"; then
2533  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542    ac_cv_prog_ac_ct_STRIP="strip"
2543    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548IFS=$as_save_IFS
2549
2550fi
2551fi
2552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553if test -n "$ac_ct_STRIP"; then
2554  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2555$as_echo "$ac_ct_STRIP" >&6; }
2556else
2557  { $as_echo "$as_me:$LINENO: result: no" >&5
2558$as_echo "no" >&6; }
2559fi
2560
2561  if test "x$ac_ct_STRIP" = x; then
2562    STRIP=":"
2563  else
2564    case $cross_compiling:$ac_tool_warned in
2565yes:)
2566{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568ac_tool_warned=yes ;;
2569esac
2570    STRIP=$ac_ct_STRIP
2571  fi
2572else
2573  STRIP="$ac_cv_prog_STRIP"
2574fi
2575
2576fi
2577INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578
2579# We need awk for the "check" target.  The system "awk" is bad on
2580# some platforms.
2581# Always define AMTAR for backward compatibility.
2582
2583AMTAR=${AMTAR-"${am_missing_run}tar"}
2584
2585am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2586
2587
2588
2589
2590
2591
2592{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2594    # Check whether --enable-maintainer-mode was given.
2595if test "${enable_maintainer_mode+set}" = set; then
2596  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2597else
2598  USE_MAINTAINER_MODE=no
2599fi
2600
2601  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2602$as_echo "$USE_MAINTAINER_MODE" >&6; }
2603   if test $USE_MAINTAINER_MODE = yes; then
2604  MAINTAINER_MODE_TRUE=
2605  MAINTAINER_MODE_FALSE='#'
2606else
2607  MAINTAINER_MODE_TRUE='#'
2608  MAINTAINER_MODE_FALSE=
2609fi
2610
2611  MAINT=$MAINTAINER_MODE_TRUE
2612
2613
2614
2615# Checks for programs.
2616# Check whether --enable-static was given.
2617if test "${enable_static+set}" = set; then
2618  enableval=$enable_static; p=${PACKAGE-default}
2619    case $enableval in
2620    yes) enable_static=yes ;;
2621    no) enable_static=no ;;
2622    *)
2623     enable_static=no
2624      # Look at the argument we got.  We use all the common list separators.
2625      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2626      for pkg in $enableval; do
2627	IFS="$lt_save_ifs"
2628	if test "X$pkg" = "X$p"; then
2629	  enable_static=yes
2630	fi
2631      done
2632      IFS="$lt_save_ifs"
2633      ;;
2634    esac
2635else
2636  enable_static=no
2637fi
2638
2639
2640
2641# Check whether --enable-shared was given.
2642if test "${enable_shared+set}" = set; then
2643  enableval=$enable_shared; p=${PACKAGE-default}
2644    case $enableval in
2645    yes) enable_shared=yes ;;
2646    no) enable_shared=no ;;
2647    *)
2648      enable_shared=no
2649      # Look at the argument we got.  We use all the common list separators.
2650      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2651      for pkg in $enableval; do
2652	IFS="$lt_save_ifs"
2653	if test "X$pkg" = "X$p"; then
2654	  enable_shared=yes
2655	fi
2656      done
2657      IFS="$lt_save_ifs"
2658      ;;
2659    esac
2660else
2661  enable_shared=yes
2662fi
2663
2664
2665# Check whether --enable-fast-install was given.
2666if test "${enable_fast_install+set}" = set; then
2667  enableval=$enable_fast_install; p=${PACKAGE-default}
2668    case $enableval in
2669    yes) enable_fast_install=yes ;;
2670    no) enable_fast_install=no ;;
2671    *)
2672      enable_fast_install=no
2673      # Look at the argument we got.  We use all the common list separators.
2674      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2675      for pkg in $enableval; do
2676	IFS="$lt_save_ifs"
2677	if test "X$pkg" = "X$p"; then
2678	  enable_fast_install=yes
2679	fi
2680      done
2681      IFS="$lt_save_ifs"
2682      ;;
2683    esac
2684else
2685  enable_fast_install=yes
2686fi
2687
2688
2689# Make sure we can run config.sub.
2690$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2692$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2693   { (exit 1); exit 1; }; }
2694
2695{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2696$as_echo_n "checking build system type... " >&6; }
2697if test "${ac_cv_build+set}" = set; then
2698  $as_echo_n "(cached) " >&6
2699else
2700  ac_build_alias=$build_alias
2701test "x$ac_build_alias" = x &&
2702  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2703test "x$ac_build_alias" = x &&
2704  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2705$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2706   { (exit 1); exit 1; }; }
2707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2708  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2709$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2710   { (exit 1); exit 1; }; }
2711
2712fi
2713{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2714$as_echo "$ac_cv_build" >&6; }
2715case $ac_cv_build in
2716*-*-*) ;;
2717*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2718$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2719   { (exit 1); exit 1; }; };;
2720esac
2721build=$ac_cv_build
2722ac_save_IFS=$IFS; IFS='-'
2723set x $ac_cv_build
2724shift
2725build_cpu=$1
2726build_vendor=$2
2727shift; shift
2728# Remember, the first character of IFS is used to create $*,
2729# except with old shells:
2730build_os=$*
2731IFS=$ac_save_IFS
2732case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2733
2734
2735{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2736$as_echo_n "checking host system type... " >&6; }
2737if test "${ac_cv_host+set}" = set; then
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test "x$host_alias" = x; then
2741  ac_cv_host=$ac_cv_build
2742else
2743  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2744    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2745$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2746   { (exit 1); exit 1; }; }
2747fi
2748
2749fi
2750{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2751$as_echo "$ac_cv_host" >&6; }
2752case $ac_cv_host in
2753*-*-*) ;;
2754*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2755$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2756   { (exit 1); exit 1; }; };;
2757esac
2758host=$ac_cv_host
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_host
2761shift
2762host_cpu=$1
2763host_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767host_os=$*
2768IFS=$ac_save_IFS
2769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2770
2771
2772DEPDIR="${am__leading_dot}deps"
2773
2774ac_config_commands="$ac_config_commands depfiles"
2775
2776
2777am_make=${MAKE-make}
2778cat > confinc << 'END'
2779am__doit:
2780	@echo done
2781.PHONY: am__doit
2782END
2783# If we don't find an include directive, just comment out the code.
2784{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2785$as_echo_n "checking for style of include used by $am_make... " >&6; }
2786am__include="#"
2787am__quote=
2788_am_result=none
2789# First try GNU make style include.
2790echo "include confinc" > confmf
2791# We grep out `Entering directory' and `Leaving directory'
2792# messages which can occur if `w' ends up in MAKEFLAGS.
2793# In particular we don't look at `^make:' because GNU make might
2794# be invoked under some other name (usually "gmake"), in which
2795# case it prints its new name instead of `make'.
2796if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2797   am__include=include
2798   am__quote=
2799   _am_result=GNU
2800fi
2801# Now try BSD make style include.
2802if test "$am__include" = "#"; then
2803   echo '.include "confinc"' > confmf
2804   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2805      am__include=.include
2806      am__quote="\""
2807      _am_result=BSD
2808   fi
2809fi
2810
2811
2812{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2813$as_echo "$_am_result" >&6; }
2814rm -f confinc confmf
2815
2816# Check whether --enable-dependency-tracking was given.
2817if test "${enable_dependency_tracking+set}" = set; then
2818  enableval=$enable_dependency_tracking;
2819fi
2820
2821if test "x$enable_dependency_tracking" != xno; then
2822  am_depcomp="$ac_aux_dir/depcomp"
2823  AMDEPBACKSLASH='\'
2824fi
2825 if test "x$enable_dependency_tracking" != xno; then
2826  AMDEP_TRUE=
2827  AMDEP_FALSE='#'
2828else
2829  AMDEP_TRUE='#'
2830  AMDEP_FALSE=
2831fi
2832
2833
2834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839if test -n "$ac_tool_prefix"; then
2840  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2841set dummy ${ac_tool_prefix}gcc; ac_word=$2
2842{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if test "${ac_cv_prog_CC+set}" = set; then
2845  $as_echo_n "(cached) " >&6
2846else
2847  if test -n "$CC"; then
2848  ac_cv_prog_CC="$CC" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2858    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867CC=$ac_cv_prog_CC
2868if test -n "$CC"; then
2869  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2870$as_echo "$CC" >&6; }
2871else
2872  { $as_echo "$as_me:$LINENO: result: no" >&5
2873$as_echo "no" >&6; }
2874fi
2875
2876
2877fi
2878if test -z "$ac_cv_prog_CC"; then
2879  ac_ct_CC=$CC
2880  # Extract the first word of "gcc", so it can be a program name with args.
2881set dummy gcc; ac_word=$2
2882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885  $as_echo_n "(cached) " >&6
2886else
2887  if test -n "$ac_ct_CC"; then
2888  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895  for ac_exec_ext in '' $ac_executable_extensions; do
2896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897    ac_cv_prog_ac_ct_CC="gcc"
2898    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899    break 2
2900  fi
2901done
2902done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908if test -n "$ac_ct_CC"; then
2909  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2910$as_echo "$ac_ct_CC" >&6; }
2911else
2912  { $as_echo "$as_me:$LINENO: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916  if test "x$ac_ct_CC" = x; then
2917    CC=""
2918  else
2919    case $cross_compiling:$ac_tool_warned in
2920yes:)
2921{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923ac_tool_warned=yes ;;
2924esac
2925    CC=$ac_ct_CC
2926  fi
2927else
2928  CC="$ac_cv_prog_CC"
2929fi
2930
2931if test -z "$CC"; then
2932          if test -n "$ac_tool_prefix"; then
2933    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2934set dummy ${ac_tool_prefix}cc; ac_word=$2
2935{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2936$as_echo_n "checking for $ac_word... " >&6; }
2937if test "${ac_cv_prog_CC+set}" = set; then
2938  $as_echo_n "(cached) " >&6
2939else
2940  if test -n "$CC"; then
2941  ac_cv_prog_CC="$CC" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948  for ac_exec_ext in '' $ac_executable_extensions; do
2949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950    ac_cv_prog_CC="${ac_tool_prefix}cc"
2951    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955done
2956IFS=$as_save_IFS
2957
2958fi
2959fi
2960CC=$ac_cv_prog_CC
2961if test -n "$CC"; then
2962  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2963$as_echo "$CC" >&6; }
2964else
2965  { $as_echo "$as_me:$LINENO: result: no" >&5
2966$as_echo "no" >&6; }
2967fi
2968
2969
2970  fi
2971fi
2972if test -z "$CC"; then
2973  # Extract the first word of "cc", so it can be a program name with args.
2974set dummy cc; ac_word=$2
2975{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2976$as_echo_n "checking for $ac_word... " >&6; }
2977if test "${ac_cv_prog_CC+set}" = set; then
2978  $as_echo_n "(cached) " >&6
2979else
2980  if test -n "$CC"; then
2981  ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
2983  ac_prog_rejected=no
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989  for ac_exec_ext in '' $ac_executable_extensions; do
2990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992       ac_prog_rejected=yes
2993       continue
2994     fi
2995    ac_cv_prog_CC="cc"
2996    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997    break 2
2998  fi
2999done
3000done
3001IFS=$as_save_IFS
3002
3003if test $ac_prog_rejected = yes; then
3004  # We found a bogon in the path, so make sure we never use it.
3005  set dummy $ac_cv_prog_CC
3006  shift
3007  if test $# != 0; then
3008    # We chose a different compiler from the bogus one.
3009    # However, it has the same basename, so the bogon will be chosen
3010    # first if we set CC to just the basename; use the full file name.
3011    shift
3012    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3013  fi
3014fi
3015fi
3016fi
3017CC=$ac_cv_prog_CC
3018if test -n "$CC"; then
3019  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3020$as_echo "$CC" >&6; }
3021else
3022  { $as_echo "$as_me:$LINENO: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027fi
3028if test -z "$CC"; then
3029  if test -n "$ac_tool_prefix"; then
3030  for ac_prog in cl.exe
3031  do
3032    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_CC+set}" = set; then
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$CC"; then
3040  ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047  for ac_exec_ext in '' $ac_executable_extensions; do
3048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064  { $as_echo "$as_me:$LINENO: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069    test -n "$CC" && break
3070  done
3071fi
3072if test -z "$CC"; then
3073  ac_ct_CC=$CC
3074  for ac_prog in cl.exe
3075do
3076  # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CC"; then
3084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091  for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_ac_ct_CC="$ac_prog"
3094    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104if test -n "$ac_ct_CC"; then
3105  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106$as_echo "$ac_ct_CC" >&6; }
3107else
3108  { $as_echo "$as_me:$LINENO: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113  test -n "$ac_ct_CC" && break
3114done
3115
3116  if test "x$ac_ct_CC" = x; then
3117    CC=""
3118  else
3119    case $cross_compiling:$ac_tool_warned in
3120yes:)
3121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123ac_tool_warned=yes ;;
3124esac
3125    CC=$ac_ct_CC
3126  fi
3127fi
3128
3129fi
3130
3131
3132test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3135See \`config.log' for more details." >&5
3136$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3137See \`config.log' for more details." >&2;}
3138   { (exit 1); exit 1; }; }; }
3139
3140# Provide some information about the compiler.
3141$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3142set X $ac_compile
3143ac_compiler=$2
3144{ (ac_try="$ac_compiler --version >&5"
3145case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150$as_echo "$ac_try_echo") >&5
3151  (eval "$ac_compiler --version >&5") 2>&5
3152  ac_status=$?
3153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }
3155{ (ac_try="$ac_compiler -v >&5"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161$as_echo "$ac_try_echo") >&5
3162  (eval "$ac_compiler -v >&5") 2>&5
3163  ac_status=$?
3164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }
3166{ (ac_try="$ac_compiler -V >&5"
3167case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3172$as_echo "$ac_try_echo") >&5
3173  (eval "$ac_compiler -V >&5") 2>&5
3174  ac_status=$?
3175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }
3177
3178cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h.  */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193ac_clean_files_save=$ac_clean_files
3194ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3195# Try to create an executable without -o first, disregard a.out.
3196# It will help us diagnose broken compilers, and finding out an intuition
3197# of exeext.
3198{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3199$as_echo_n "checking for C compiler default output file name... " >&6; }
3200ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201
3202# The possible output files:
3203ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3204
3205ac_rmfiles=
3206for ac_file in $ac_files
3207do
3208  case $ac_file in
3209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3211  esac
3212done
3213rm -f $ac_rmfiles
3214
3215if { (ac_try="$ac_link_default"
3216case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221$as_echo "$ac_try_echo") >&5
3222  (eval "$ac_link_default") 2>&5
3223  ac_status=$?
3224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; then
3226  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3227# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3228# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3229# so that the user can short-circuit this test for compilers unknown to
3230# Autoconf.
3231for ac_file in $ac_files ''
3232do
3233  test -f "$ac_file" || continue
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3236	;;
3237    [ab].out )
3238	# We found the default executable, but exeext='' is most
3239	# certainly right.
3240	break;;
3241    *.* )
3242        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3243	then :; else
3244	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245	fi
3246	# We set ac_cv_exeext here because the later test for it is not
3247	# safe: cross compilers may not add the suffix if given an `-o'
3248	# argument, so we may need to know it at that point already.
3249	# Even if this section looks crufty: it has the advantage of
3250	# actually working.
3251	break;;
3252    * )
3253	break;;
3254  esac
3255done
3256test "$ac_cv_exeext" = no && ac_cv_exeext=
3257
3258else
3259  ac_file=''
3260fi
3261
3262{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3263$as_echo "$ac_file" >&6; }
3264if test -z "$ac_file"; then
3265  $as_echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3271See \`config.log' for more details." >&5
3272$as_echo "$as_me: error: C compiler cannot create executables
3273See \`config.log' for more details." >&2;}
3274   { (exit 77); exit 77; }; }; }
3275fi
3276
3277ac_exeext=$ac_cv_exeext
3278
3279# Check that the compiler produces executables we can run.  If not, either
3280# the compiler is broken, or we cross compile.
3281{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3282$as_echo_n "checking whether the C compiler works... " >&6; }
3283# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3284# If not cross compiling, check that we can run a simple program.
3285if test "$cross_compiling" != yes; then
3286  if { ac_try='./$ac_file'
3287  { (case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292$as_echo "$ac_try_echo") >&5
3293  (eval "$ac_try") 2>&5
3294  ac_status=$?
3295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; }; then
3297    cross_compiling=no
3298  else
3299    if test "$cross_compiling" = maybe; then
3300	cross_compiling=yes
3301    else
3302	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3305If you meant to cross compile, use \`--host'.
3306See \`config.log' for more details." >&5
3307$as_echo "$as_me: error: cannot run C compiled programs.
3308If you meant to cross compile, use \`--host'.
3309See \`config.log' for more details." >&2;}
3310   { (exit 1); exit 1; }; }; }
3311    fi
3312  fi
3313fi
3314{ $as_echo "$as_me:$LINENO: result: yes" >&5
3315$as_echo "yes" >&6; }
3316
3317rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3318ac_clean_files=$ac_clean_files_save
3319# Check that the compiler produces executables we can run.  If not, either
3320# the compiler is broken, or we cross compile.
3321{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3322$as_echo_n "checking whether we are cross compiling... " >&6; }
3323{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3324$as_echo "$cross_compiling" >&6; }
3325
3326{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3327$as_echo_n "checking for suffix of executables... " >&6; }
3328if { (ac_try="$ac_link"
3329case "(($ac_try" in
3330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331  *) ac_try_echo=$ac_try;;
3332esac
3333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334$as_echo "$ac_try_echo") >&5
3335  (eval "$ac_link") 2>&5
3336  ac_status=$?
3337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; then
3339  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3341# work properly (i.e., refer to `conftest.exe'), while it won't with
3342# `rm'.
3343for ac_file in conftest.exe conftest conftest.*; do
3344  test -f "$ac_file" || continue
3345  case $ac_file in
3346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348	  break;;
3349    * ) break;;
3350  esac
3351done
3352else
3353  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3356See \`config.log' for more details." >&5
3357$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3358See \`config.log' for more details." >&2;}
3359   { (exit 1); exit 1; }; }; }
3360fi
3361
3362rm -f conftest$ac_cv_exeext
3363{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3364$as_echo "$ac_cv_exeext" >&6; }
3365
3366rm -f conftest.$ac_ext
3367EXEEXT=$ac_cv_exeext
3368ac_exeext=$EXEEXT
3369{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3370$as_echo_n "checking for suffix of object files... " >&6; }
3371if test "${ac_cv_objext+set}" = set; then
3372  $as_echo_n "(cached) " >&6
3373else
3374  cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389rm -f conftest.o conftest.obj
3390if { (ac_try="$ac_compile"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396$as_echo "$ac_try_echo") >&5
3397  (eval "$ac_compile") 2>&5
3398  ac_status=$?
3399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; then
3401  for ac_file in conftest.o conftest.obj conftest.*; do
3402  test -f "$ac_file" || continue;
3403  case $ac_file in
3404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3405    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406       break;;
3407  esac
3408done
3409else
3410  $as_echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3416See \`config.log' for more details." >&5
3417$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3418See \`config.log' for more details." >&2;}
3419   { (exit 1); exit 1; }; }; }
3420fi
3421
3422rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423fi
3424{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3425$as_echo "$ac_cv_objext" >&6; }
3426OBJEXT=$ac_cv_objext
3427ac_objext=$OBJEXT
3428{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3429$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3430if test "${ac_cv_c_compiler_gnu+set}" = set; then
3431  $as_echo_n "(cached) " >&6
3432else
3433  cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439
3440int
3441main ()
3442{
3443#ifndef __GNUC__
3444       choke me
3445#endif
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext
3452if { (ac_try="$ac_compile"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458$as_echo "$ac_try_echo") >&5
3459  (eval "$ac_compile") 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } && {
3466	 test -z "$ac_c_werror_flag" ||
3467	 test ! -s conftest.err
3468       } && test -s conftest.$ac_objext; then
3469  ac_compiler_gnu=yes
3470else
3471  $as_echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474	ac_compiler_gnu=no
3475fi
3476
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480fi
3481{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3482$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483if test $ac_compiler_gnu = yes; then
3484  GCC=yes
3485else
3486  GCC=
3487fi
3488ac_test_CFLAGS=${CFLAGS+set}
3489ac_save_CFLAGS=$CFLAGS
3490{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3491$as_echo_n "checking whether $CC accepts -g... " >&6; }
3492if test "${ac_cv_prog_cc_g+set}" = set; then
3493  $as_echo_n "(cached) " >&6
3494else
3495  ac_save_c_werror_flag=$ac_c_werror_flag
3496   ac_c_werror_flag=yes
3497   ac_cv_prog_cc_g=no
3498   CFLAGS="-g"
3499   cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h.  */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext
3515if { (ac_try="$ac_compile"
3516case "(($ac_try" in
3517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518  *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521$as_echo "$ac_try_echo") >&5
3522  (eval "$ac_compile") 2>conftest.er1
3523  ac_status=$?
3524  grep -v '^ *+' conftest.er1 >conftest.err
3525  rm -f conftest.er1
3526  cat conftest.err >&5
3527  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); } && {
3529	 test -z "$ac_c_werror_flag" ||
3530	 test ! -s conftest.err
3531       } && test -s conftest.$ac_objext; then
3532  ac_cv_prog_cc_g=yes
3533else
3534  $as_echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537	CFLAGS=""
3538      cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3560$as_echo "$ac_try_echo") >&5
3561  (eval "$ac_compile") 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } && {
3568	 test -z "$ac_c_werror_flag" ||
3569	 test ! -s conftest.err
3570       } && test -s conftest.$ac_objext; then
3571  :
3572else
3573  $as_echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576	ac_c_werror_flag=$ac_save_c_werror_flag
3577	 CFLAGS="-g"
3578	 cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h.  */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h.  */
3584
3585int
3586main ()
3587{
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (ac_try="$ac_compile"
3595case "(($ac_try" in
3596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597  *) ac_try_echo=$ac_try;;
3598esac
3599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600$as_echo "$ac_try_echo") >&5
3601  (eval "$ac_compile") 2>conftest.er1
3602  ac_status=$?
3603  grep -v '^ *+' conftest.er1 >conftest.err
3604  rm -f conftest.er1
3605  cat conftest.err >&5
3606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); } && {
3608	 test -z "$ac_c_werror_flag" ||
3609	 test ! -s conftest.err
3610       } && test -s conftest.$ac_objext; then
3611  ac_cv_prog_cc_g=yes
3612else
3613  $as_echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616
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
3623fi
3624
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626   ac_c_werror_flag=$ac_save_c_werror_flag
3627fi
3628{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3629$as_echo "$ac_cv_prog_cc_g" >&6; }
3630if test "$ac_test_CFLAGS" = set; then
3631  CFLAGS=$ac_save_CFLAGS
3632elif test $ac_cv_prog_cc_g = yes; then
3633  if test "$GCC" = yes; then
3634    CFLAGS="-g -O2"
3635  else
3636    CFLAGS="-g"
3637  fi
3638else
3639  if test "$GCC" = yes; then
3640    CFLAGS="-O2"
3641  else
3642    CFLAGS=
3643  fi
3644fi
3645{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3646$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647if test "${ac_cv_prog_cc_c89+set}" = set; then
3648  $as_echo_n "(cached) " >&6
3649else
3650  ac_cv_prog_cc_c89=no
3651ac_save_CC=$CC
3652cat >conftest.$ac_ext <<_ACEOF
3653/* confdefs.h.  */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h.  */
3658#include <stdarg.h>
3659#include <stdio.h>
3660#include <sys/types.h>
3661#include <sys/stat.h>
3662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663struct buf { int x; };
3664FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665static char *e (p, i)
3666     char **p;
3667     int i;
3668{
3669  return p[i];
3670}
3671static char *f (char * (*g) (char **, int), char **p, ...)
3672{
3673  char *s;
3674  va_list v;
3675  va_start (v,p);
3676  s = g (p, va_arg (v,int));
3677  va_end (v);
3678  return s;
3679}
3680
3681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682   function prototypes and stuff, but not '\xHH' hex character constants.
3683   These don't provoke an error unfortunately, instead are silently treated
3684   as 'x'.  The following induces an error, until -std is added to get
3685   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686   array size at least.  It's necessary to write '\x00'==0 to get something
3687   that's true only with -std.  */
3688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691   inside strings and character constants.  */
3692#define FOO(x) 'x'
3693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695int test (int i, double x);
3696struct s1 {int (*f) (int a);};
3697struct s2 {int (*f) (double a);};
3698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699int argc;
3700char **argv;
3701int
3702main ()
3703{
3704return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  rm -f conftest.$ac_objext
3714if { (ac_try="$ac_compile"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720$as_echo "$ac_try_echo") >&5
3721  (eval "$ac_compile") 2>conftest.er1
3722  ac_status=$?
3723  grep -v '^ *+' conftest.er1 >conftest.err
3724  rm -f conftest.er1
3725  cat conftest.err >&5
3726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); } && {
3728	 test -z "$ac_c_werror_flag" ||
3729	 test ! -s conftest.err
3730       } && test -s conftest.$ac_objext; then
3731  ac_cv_prog_cc_c89=$ac_arg
3732else
3733  $as_echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736
3737fi
3738
3739rm -f core conftest.err conftest.$ac_objext
3740  test "x$ac_cv_prog_cc_c89" != "xno" && break
3741done
3742rm -f conftest.$ac_ext
3743CC=$ac_save_CC
3744
3745fi
3746# AC_CACHE_VAL
3747case "x$ac_cv_prog_cc_c89" in
3748  x)
3749    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3750$as_echo "none needed" >&6; } ;;
3751  xno)
3752    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3753$as_echo "unsupported" >&6; } ;;
3754  *)
3755    CC="$CC $ac_cv_prog_cc_c89"
3756    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3757$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758esac
3759
3760
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767depcc="$CC"   am_compiler_list=
3768
3769{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3770$as_echo_n "checking dependency style of $depcc... " >&6; }
3771if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3772  $as_echo_n "(cached) " >&6
3773else
3774  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775  # We make a subdir and do the tests there.  Otherwise we can end up
3776  # making bogus files that we don't know about and never remove.  For
3777  # instance it was reported that on HP-UX the gcc test will end up
3778  # making a dummy file named `D' -- because `-MD' means `put the output
3779  # in D'.
3780  mkdir conftest.dir
3781  # Copy depcomp to subdir because otherwise we won't find it if we're
3782  # using a relative directory.
3783  cp "$am_depcomp" conftest.dir
3784  cd conftest.dir
3785  # We will build objects and dependencies in a subdirectory because
3786  # it helps to detect inapplicable dependency modes.  For instance
3787  # both Tru64's cc and ICC support -MD to output dependencies as a
3788  # side effect of compilation, but ICC will put the dependencies in
3789  # the current directory while Tru64 will put them in the object
3790  # directory.
3791  mkdir sub
3792
3793  am_cv_CC_dependencies_compiler_type=none
3794  if test "$am_compiler_list" = ""; then
3795     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796  fi
3797  for depmode in $am_compiler_list; do
3798    # Setup a source with many dependencies, because some compilers
3799    # like to wrap large dependency lists on column 80 (with \), and
3800    # we should not choose a depcomp mode which is confused by this.
3801    #
3802    # We need to recreate these files for each test, as the compiler may
3803    # overwrite some of them when testing with obscure command lines.
3804    # This happens at least with the AIX C compiler.
3805    : > sub/conftest.c
3806    for i in 1 2 3 4 5 6; do
3807      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3808      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3809      # Solaris 8's {/usr,}/bin/sh.
3810      touch sub/conftst$i.h
3811    done
3812    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3813
3814    case $depmode in
3815    nosideeffect)
3816      # after this tag, mechanisms are not by side-effect, so they'll
3817      # only be used when explicitly requested
3818      if test "x$enable_dependency_tracking" = xyes; then
3819	continue
3820      else
3821	break
3822      fi
3823      ;;
3824    none) break ;;
3825    esac
3826    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827    # mode.  It turns out that the SunPro C++ compiler does not properly
3828    # handle `-M -o', and we need to detect this.
3829    if depmode=$depmode \
3830       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3833         >/dev/null 2>conftest.err &&
3834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838      # icc doesn't choke on unknown options, it will just issue warnings
3839      # or remarks (even with -Werror).  So we grep stderr for any message
3840      # that says an option was ignored or not supported.
3841      # When given -MP, icc 7.0 and 7.1 complain thusly:
3842      #   icc: Command line warning: ignoring option '-M'; no argument required
3843      # The diagnosis changed in icc 8.0:
3844      #   icc: Command line remark: option '-MP' not supported
3845      if (grep 'ignoring option' conftest.err ||
3846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847        am_cv_CC_dependencies_compiler_type=$depmode
3848        break
3849      fi
3850    fi
3851  done
3852
3853  cd ..
3854  rm -rf conftest.dir
3855else
3856  am_cv_CC_dependencies_compiler_type=none
3857fi
3858
3859fi
3860{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3861$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863
3864 if
3865  test "x$enable_dependency_tracking" != xno \
3866  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867  am__fastdepCC_TRUE=
3868  am__fastdepCC_FALSE='#'
3869else
3870  am__fastdepCC_TRUE='#'
3871  am__fastdepCC_FALSE=
3872fi
3873
3874
3875{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3876$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3877if test "${lt_cv_path_SED+set}" = set; then
3878  $as_echo_n "(cached) " >&6
3879else
3880  # Loop through the user's path and test for sed and gsed.
3881# Then use that list of sed's as ones to test for truncation.
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885  IFS=$as_save_IFS
3886  test -z "$as_dir" && as_dir=.
3887  for lt_ac_prog in sed gsed; do
3888    for ac_exec_ext in '' $ac_executable_extensions; do
3889      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3890        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3891      fi
3892    done
3893  done
3894done
3895IFS=$as_save_IFS
3896lt_ac_max=0
3897lt_ac_count=0
3898# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3899# along with /bin/sed that truncates output.
3900for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3901  test ! -f $lt_ac_sed && continue
3902  cat /dev/null > conftest.in
3903  lt_ac_count=0
3904  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3905  # Check for GNU sed and select it if it is found.
3906  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3907    lt_cv_path_SED=$lt_ac_sed
3908    break
3909  fi
3910  while true; do
3911    cat conftest.in conftest.in >conftest.tmp
3912    mv conftest.tmp conftest.in
3913    cp conftest.in conftest.nl
3914    echo >>conftest.nl
3915    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3916    cmp -s conftest.out conftest.nl || break
3917    # 10000 chars as input seems more than enough
3918    test $lt_ac_count -gt 10 && break
3919    lt_ac_count=`expr $lt_ac_count + 1`
3920    if test $lt_ac_count -gt $lt_ac_max; then
3921      lt_ac_max=$lt_ac_count
3922      lt_cv_path_SED=$lt_ac_sed
3923    fi
3924  done
3925done
3926
3927fi
3928
3929SED=$lt_cv_path_SED
3930
3931{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3932$as_echo "$SED" >&6; }
3933
3934{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3935$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3936if test "${ac_cv_path_GREP+set}" = set; then
3937  $as_echo_n "(cached) " >&6
3938else
3939  if test -z "$GREP"; then
3940  ac_path_GREP_found=false
3941  # Loop through the user's path and test for each of PROGNAME-LIST
3942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944do
3945  IFS=$as_save_IFS
3946  test -z "$as_dir" && as_dir=.
3947  for ac_prog in grep ggrep; do
3948    for ac_exec_ext in '' $ac_executable_extensions; do
3949      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3951# Check for GNU ac_path_GREP and select it if it is found.
3952  # Check for GNU $ac_path_GREP
3953case `"$ac_path_GREP" --version 2>&1` in
3954*GNU*)
3955  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956*)
3957  ac_count=0
3958  $as_echo_n 0123456789 >"conftest.in"
3959  while :
3960  do
3961    cat "conftest.in" "conftest.in" >"conftest.tmp"
3962    mv "conftest.tmp" "conftest.in"
3963    cp "conftest.in" "conftest.nl"
3964    $as_echo 'GREP' >> "conftest.nl"
3965    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967    ac_count=`expr $ac_count + 1`
3968    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969      # Best one so far, save it but keep looking for a better one
3970      ac_cv_path_GREP="$ac_path_GREP"
3971      ac_path_GREP_max=$ac_count
3972    fi
3973    # 10*(2^10) chars as input seems more than enough
3974    test $ac_count -gt 10 && break
3975  done
3976  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977esac
3978
3979      $ac_path_GREP_found && break 3
3980    done
3981  done
3982done
3983IFS=$as_save_IFS
3984  if test -z "$ac_cv_path_GREP"; then
3985    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3986$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3987   { (exit 1); exit 1; }; }
3988  fi
3989else
3990  ac_cv_path_GREP=$GREP
3991fi
3992
3993fi
3994{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3995$as_echo "$ac_cv_path_GREP" >&6; }
3996 GREP="$ac_cv_path_GREP"
3997
3998
3999{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4000$as_echo_n "checking for egrep... " >&6; }
4001if test "${ac_cv_path_EGREP+set}" = set; then
4002  $as_echo_n "(cached) " >&6
4003else
4004  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005   then ac_cv_path_EGREP="$GREP -E"
4006   else
4007     if test -z "$EGREP"; then
4008  ac_path_EGREP_found=false
4009  # Loop through the user's path and test for each of PROGNAME-LIST
4010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012do
4013  IFS=$as_save_IFS
4014  test -z "$as_dir" && as_dir=.
4015  for ac_prog in egrep; do
4016    for ac_exec_ext in '' $ac_executable_extensions; do
4017      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4019# Check for GNU ac_path_EGREP and select it if it is found.
4020  # Check for GNU $ac_path_EGREP
4021case `"$ac_path_EGREP" --version 2>&1` in
4022*GNU*)
4023  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4024*)
4025  ac_count=0
4026  $as_echo_n 0123456789 >"conftest.in"
4027  while :
4028  do
4029    cat "conftest.in" "conftest.in" >"conftest.tmp"
4030    mv "conftest.tmp" "conftest.in"
4031    cp "conftest.in" "conftest.nl"
4032    $as_echo 'EGREP' >> "conftest.nl"
4033    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035    ac_count=`expr $ac_count + 1`
4036    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037      # Best one so far, save it but keep looking for a better one
4038      ac_cv_path_EGREP="$ac_path_EGREP"
4039      ac_path_EGREP_max=$ac_count
4040    fi
4041    # 10*(2^10) chars as input seems more than enough
4042    test $ac_count -gt 10 && break
4043  done
4044  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
4047      $ac_path_EGREP_found && break 3
4048    done
4049  done
4050done
4051IFS=$as_save_IFS
4052  if test -z "$ac_cv_path_EGREP"; then
4053    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055   { (exit 1); exit 1; }; }
4056  fi
4057else
4058  ac_cv_path_EGREP=$EGREP
4059fi
4060
4061   fi
4062fi
4063{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064$as_echo "$ac_cv_path_EGREP" >&6; }
4065 EGREP="$ac_cv_path_EGREP"
4066
4067
4068
4069# Check whether --with-gnu-ld was given.
4070if test "${with_gnu_ld+set}" = set; then
4071  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4072else
4073  with_gnu_ld=no
4074fi
4075
4076ac_prog=ld
4077if test "$GCC" = yes; then
4078  # Check if gcc -print-prog-name=ld gives a path.
4079  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4080$as_echo_n "checking for ld used by $CC... " >&6; }
4081  case $host in
4082  *-*-mingw*)
4083    # gcc leaves a trailing carriage return which upsets mingw
4084    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4085  *)
4086    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4087  esac
4088  case $ac_prog in
4089    # Accept absolute paths.
4090    [\\/]* | ?:[\\/]*)
4091      re_direlt='/[^/][^/]*/\.\./'
4092      # Canonicalize the pathname of ld
4093      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4094      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4095	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4096      done
4097      test -z "$LD" && LD="$ac_prog"
4098      ;;
4099  "")
4100    # If it fails, then pretend we aren't using GCC.
4101    ac_prog=ld
4102    ;;
4103  *)
4104    # If it is relative, then search for the first ld in PATH.
4105    with_gnu_ld=unknown
4106    ;;
4107  esac
4108elif test "$with_gnu_ld" = yes; then
4109  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4110$as_echo_n "checking for GNU ld... " >&6; }
4111else
4112  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4113$as_echo_n "checking for non-GNU ld... " >&6; }
4114fi
4115if test "${lt_cv_path_LD+set}" = set; then
4116  $as_echo_n "(cached) " >&6
4117else
4118  if test -z "$LD"; then
4119  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120  for ac_dir in $PATH; do
4121    IFS="$lt_save_ifs"
4122    test -z "$ac_dir" && ac_dir=.
4123    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4124      lt_cv_path_LD="$ac_dir/$ac_prog"
4125      # Check to see if the program is GNU ld.  I'd rather use --version,
4126      # but apparently some variants of GNU ld only accept -v.
4127      # Break only if it was the GNU/non-GNU ld that we prefer.
4128      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4129      *GNU* | *'with BFD'*)
4130	test "$with_gnu_ld" != no && break
4131	;;
4132      *)
4133	test "$with_gnu_ld" != yes && break
4134	;;
4135      esac
4136    fi
4137  done
4138  IFS="$lt_save_ifs"
4139else
4140  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4141fi
4142fi
4143
4144LD="$lt_cv_path_LD"
4145if test -n "$LD"; then
4146  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4147$as_echo "$LD" >&6; }
4148else
4149  { $as_echo "$as_me:$LINENO: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4153$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4154   { (exit 1); exit 1; }; }
4155{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4156$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4157if test "${lt_cv_prog_gnu_ld+set}" = set; then
4158  $as_echo_n "(cached) " >&6
4159else
4160  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4161case `$LD -v 2>&1 </dev/null` in
4162*GNU* | *'with BFD'*)
4163  lt_cv_prog_gnu_ld=yes
4164  ;;
4165*)
4166  lt_cv_prog_gnu_ld=no
4167  ;;
4168esac
4169fi
4170{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4171$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4172with_gnu_ld=$lt_cv_prog_gnu_ld
4173
4174
4175{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4176$as_echo_n "checking for $LD option to reload object files... " >&6; }
4177if test "${lt_cv_ld_reload_flag+set}" = set; then
4178  $as_echo_n "(cached) " >&6
4179else
4180  lt_cv_ld_reload_flag='-r'
4181fi
4182{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4183$as_echo "$lt_cv_ld_reload_flag" >&6; }
4184reload_flag=$lt_cv_ld_reload_flag
4185case $reload_flag in
4186"" | " "*) ;;
4187*) reload_flag=" $reload_flag" ;;
4188esac
4189reload_cmds='$LD$reload_flag -o $output$reload_objs'
4190case $host_os in
4191  darwin*)
4192    if test "$GCC" = yes; then
4193      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4194    else
4195      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4196    fi
4197    ;;
4198esac
4199
4200{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4201$as_echo_n "checking for BSD-compatible nm... " >&6; }
4202if test "${lt_cv_path_NM+set}" = set; then
4203  $as_echo_n "(cached) " >&6
4204else
4205  if test -n "$NM"; then
4206  # Let the user override the test.
4207  lt_cv_path_NM="$NM"
4208else
4209  lt_nm_to_check="${ac_tool_prefix}nm"
4210  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4211    lt_nm_to_check="$lt_nm_to_check nm"
4212  fi
4213  for lt_tmp_nm in $lt_nm_to_check; do
4214    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4215    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4216      IFS="$lt_save_ifs"
4217      test -z "$ac_dir" && ac_dir=.
4218      tmp_nm="$ac_dir/$lt_tmp_nm"
4219      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4220	# Check to see if the nm accepts a BSD-compat flag.
4221	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4222	#   nm: unknown option "B" ignored
4223	# Tru64's nm complains that /dev/null is an invalid object file
4224	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4225	*/dev/null* | *'Invalid file or object type'*)
4226	  lt_cv_path_NM="$tmp_nm -B"
4227	  break
4228	  ;;
4229	*)
4230	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4231	  */dev/null*)
4232	    lt_cv_path_NM="$tmp_nm -p"
4233	    break
4234	    ;;
4235	  *)
4236	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4237	    continue # so that we can try to find one that supports BSD flags
4238	    ;;
4239	  esac
4240	  ;;
4241	esac
4242      fi
4243    done
4244    IFS="$lt_save_ifs"
4245  done
4246  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4247fi
4248fi
4249{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4250$as_echo "$lt_cv_path_NM" >&6; }
4251NM="$lt_cv_path_NM"
4252
4253{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4254$as_echo_n "checking whether ln -s works... " >&6; }
4255LN_S=$as_ln_s
4256if test "$LN_S" = "ln -s"; then
4257  { $as_echo "$as_me:$LINENO: result: yes" >&5
4258$as_echo "yes" >&6; }
4259else
4260  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4261$as_echo "no, using $LN_S" >&6; }
4262fi
4263
4264{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4265$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4266if test "${lt_cv_deplibs_check_method+set}" = set; then
4267  $as_echo_n "(cached) " >&6
4268else
4269  lt_cv_file_magic_cmd='$MAGIC_CMD'
4270lt_cv_file_magic_test_file=
4271lt_cv_deplibs_check_method='unknown'
4272# Need to set the preceding variable on all platforms that support
4273# interlibrary dependencies.
4274# 'none' -- dependencies not supported.
4275# `unknown' -- same as none, but documents that we really don't know.
4276# 'pass_all' -- all dependencies passed with no checks.
4277# 'test_compile' -- check by making test program.
4278# 'file_magic [[regex]]' -- check by looking for files in library path
4279# which responds to the $file_magic_cmd with a given extended regex.
4280# If you have `file' or equivalent on your system and you're not sure
4281# whether `pass_all' will *always* work, you probably want this one.
4282
4283case $host_os in
4284aix[4-9]*)
4285  lt_cv_deplibs_check_method=pass_all
4286  ;;
4287
4288beos*)
4289  lt_cv_deplibs_check_method=pass_all
4290  ;;
4291
4292bsdi[45]*)
4293  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4294  lt_cv_file_magic_cmd='/usr/bin/file -L'
4295  lt_cv_file_magic_test_file=/shlib/libc.so
4296  ;;
4297
4298cygwin*)
4299  # func_win32_libid is a shell function defined in ltmain.sh
4300  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4301  lt_cv_file_magic_cmd='func_win32_libid'
4302  ;;
4303
4304mingw* | pw32*)
4305  # Base MSYS/MinGW do not provide the 'file' command needed by
4306  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4307  # unless we find 'file', for example because we are cross-compiling.
4308  if ( file / ) >/dev/null 2>&1; then
4309    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4310    lt_cv_file_magic_cmd='func_win32_libid'
4311  else
4312    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4313    lt_cv_file_magic_cmd='$OBJDUMP -f'
4314  fi
4315  ;;
4316
4317darwin* | rhapsody*)
4318  lt_cv_deplibs_check_method=pass_all
4319  ;;
4320
4321freebsd* | dragonfly*)
4322  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323    case $host_cpu in
4324    i*86 )
4325      # Not sure whether the presence of OpenBSD here was a mistake.
4326      # Let's accept both of them until this is cleared up.
4327      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4328      lt_cv_file_magic_cmd=/usr/bin/file
4329      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4330      ;;
4331    esac
4332  else
4333    lt_cv_deplibs_check_method=pass_all
4334  fi
4335  ;;
4336
4337gnu*)
4338  lt_cv_deplibs_check_method=pass_all
4339  ;;
4340
4341hpux10.20* | hpux11*)
4342  lt_cv_file_magic_cmd=/usr/bin/file
4343  case $host_cpu in
4344  ia64*)
4345    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4346    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4347    ;;
4348  hppa*64*)
4349    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]'
4350    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4351    ;;
4352  *)
4353    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4354    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4355    ;;
4356  esac
4357  ;;
4358
4359interix[3-9]*)
4360  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4361  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4362  ;;
4363
4364irix5* | irix6* | nonstopux*)
4365  case $LD in
4366  *-32|*"-32 ") libmagic=32-bit;;
4367  *-n32|*"-n32 ") libmagic=N32;;
4368  *-64|*"-64 ") libmagic=64-bit;;
4369  *) libmagic=never-match;;
4370  esac
4371  lt_cv_deplibs_check_method=pass_all
4372  ;;
4373
4374# This must be Linux ELF.
4375linux* | k*bsd*-gnu)
4376  lt_cv_deplibs_check_method=pass_all
4377  ;;
4378
4379netbsd*)
4380  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4381    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4382  else
4383    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4384  fi
4385  ;;
4386
4387newos6*)
4388  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4389  lt_cv_file_magic_cmd=/usr/bin/file
4390  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4391  ;;
4392
4393nto-qnx*)
4394  lt_cv_deplibs_check_method=unknown
4395  ;;
4396
4397openbsd*)
4398  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4400  else
4401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402  fi
4403  ;;
4404
4405osf3* | osf4* | osf5*)
4406  lt_cv_deplibs_check_method=pass_all
4407  ;;
4408
4409rdos*)
4410  lt_cv_deplibs_check_method=pass_all
4411  ;;
4412
4413solaris*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417sysv4 | sysv4.3*)
4418  case $host_vendor in
4419  motorola)
4420    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]'
4421    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422    ;;
4423  ncr)
4424    lt_cv_deplibs_check_method=pass_all
4425    ;;
4426  sequent)
4427    lt_cv_file_magic_cmd='/bin/file'
4428    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4429    ;;
4430  sni)
4431    lt_cv_file_magic_cmd='/bin/file'
4432    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4433    lt_cv_file_magic_test_file=/lib/libc.so
4434    ;;
4435  siemens)
4436    lt_cv_deplibs_check_method=pass_all
4437    ;;
4438  pc)
4439    lt_cv_deplibs_check_method=pass_all
4440    ;;
4441  esac
4442  ;;
4443
4444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4445  lt_cv_deplibs_check_method=pass_all
4446  ;;
4447esac
4448
4449fi
4450{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4451$as_echo "$lt_cv_deplibs_check_method" >&6; }
4452file_magic_cmd=$lt_cv_file_magic_cmd
4453deplibs_check_method=$lt_cv_deplibs_check_method
4454test -z "$deplibs_check_method" && deplibs_check_method=unknown
4455
4456
4457
4458
4459# If no C compiler was specified, use CC.
4460LTCC=${LTCC-"$CC"}
4461
4462# If no C compiler flags were specified, use CFLAGS.
4463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4464
4465# Allow CC to be a program name with arguments.
4466compiler=$CC
4467
4468
4469# Check whether --enable-libtool-lock was given.
4470if test "${enable_libtool_lock+set}" = set; then
4471  enableval=$enable_libtool_lock;
4472fi
4473
4474test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4475
4476# Some flags need to be propagated to the compiler or linker for good
4477# libtool support.
4478case $host in
4479ia64-*-hpux*)
4480  # Find out which ABI we are using.
4481  echo 'int i;' > conftest.$ac_ext
4482  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483  (eval $ac_compile) 2>&5
4484  ac_status=$?
4485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; then
4487    case `/usr/bin/file conftest.$ac_objext` in
4488    *ELF-32*)
4489      HPUX_IA64_MODE="32"
4490      ;;
4491    *ELF-64*)
4492      HPUX_IA64_MODE="64"
4493      ;;
4494    esac
4495  fi
4496  rm -rf conftest*
4497  ;;
4498*-*-irix6*)
4499  # Find out which ABI we are using.
4500  echo '#line 4500 "configure"' > conftest.$ac_ext
4501  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502  (eval $ac_compile) 2>&5
4503  ac_status=$?
4504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; then
4506   if test "$lt_cv_prog_gnu_ld" = yes; then
4507    case `/usr/bin/file conftest.$ac_objext` in
4508    *32-bit*)
4509      LD="${LD-ld} -melf32bsmip"
4510      ;;
4511    *N32*)
4512      LD="${LD-ld} -melf32bmipn32"
4513      ;;
4514    *64-bit*)
4515      LD="${LD-ld} -melf64bmip"
4516      ;;
4517    esac
4518   else
4519    case `/usr/bin/file conftest.$ac_objext` in
4520    *32-bit*)
4521      LD="${LD-ld} -32"
4522      ;;
4523    *N32*)
4524      LD="${LD-ld} -n32"
4525      ;;
4526    *64-bit*)
4527      LD="${LD-ld} -64"
4528      ;;
4529    esac
4530   fi
4531  fi
4532  rm -rf conftest*
4533  ;;
4534
4535x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4536s390*-*linux*|sparc*-*linux*)
4537  # Find out which ABI we are using.
4538  echo 'int i;' > conftest.$ac_ext
4539  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540  (eval $ac_compile) 2>&5
4541  ac_status=$?
4542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); }; then
4544    case `/usr/bin/file conftest.o` in
4545    *32-bit*)
4546      case $host in
4547        x86_64-*kfreebsd*-gnu)
4548          LD="${LD-ld} -m elf_i386_fbsd"
4549          ;;
4550        x86_64-*linux*)
4551          LD="${LD-ld} -m elf_i386"
4552          ;;
4553        ppc64-*linux*|powerpc64-*linux*)
4554          LD="${LD-ld} -m elf32ppclinux"
4555          ;;
4556        s390x-*linux*)
4557          LD="${LD-ld} -m elf_s390"
4558          ;;
4559        sparc64-*linux*)
4560          LD="${LD-ld} -m elf32_sparc"
4561          ;;
4562      esac
4563      ;;
4564    *64-bit*)
4565      libsuff=64
4566      case $host in
4567        x86_64-*kfreebsd*-gnu)
4568          LD="${LD-ld} -m elf_x86_64_fbsd"
4569          ;;
4570        x86_64-*linux*)
4571          LD="${LD-ld} -m elf_x86_64"
4572          ;;
4573        ppc*-*linux*|powerpc*-*linux*)
4574          LD="${LD-ld} -m elf64ppc"
4575          ;;
4576        s390*-*linux*)
4577          LD="${LD-ld} -m elf64_s390"
4578          ;;
4579        sparc*-*linux*)
4580          LD="${LD-ld} -m elf64_sparc"
4581          ;;
4582      esac
4583      ;;
4584    esac
4585  fi
4586  rm -rf conftest*
4587  ;;
4588
4589*-*-sco3.2v5*)
4590  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4591  SAVE_CFLAGS="$CFLAGS"
4592  CFLAGS="$CFLAGS -belf"
4593  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4594$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4595if test "${lt_cv_cc_needs_belf+set}" = set; then
4596  $as_echo_n "(cached) " >&6
4597else
4598  ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604     cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h.  */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h.  */
4610
4611int
4612main ()
4613{
4614
4615  ;
4616  return 0;
4617}
4618_ACEOF
4619rm -f conftest.$ac_objext conftest$ac_exeext
4620if { (ac_try="$ac_link"
4621case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4626$as_echo "$ac_try_echo") >&5
4627  (eval "$ac_link") 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } && {
4634	 test -z "$ac_c_werror_flag" ||
4635	 test ! -s conftest.err
4636       } && test -s conftest$ac_exeext && {
4637	 test "$cross_compiling" = yes ||
4638	 $as_test_x conftest$ac_exeext
4639       }; then
4640  lt_cv_cc_needs_belf=yes
4641else
4642  $as_echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645	lt_cv_cc_needs_belf=no
4646fi
4647
4648rm -rf conftest.dSYM
4649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4650      conftest$ac_exeext conftest.$ac_ext
4651     ac_ext=c
4652ac_cpp='$CPP $CPPFLAGS'
4653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657fi
4658{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4659$as_echo "$lt_cv_cc_needs_belf" >&6; }
4660  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4661    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4662    CFLAGS="$SAVE_CFLAGS"
4663  fi
4664  ;;
4665sparc*-*solaris*)
4666  # Find out which ABI we are using.
4667  echo 'int i;' > conftest.$ac_ext
4668  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669  (eval $ac_compile) 2>&5
4670  ac_status=$?
4671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; then
4673    case `/usr/bin/file conftest.o` in
4674    *64-bit*)
4675      case $lt_cv_prog_gnu_ld in
4676      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4677      *)
4678        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4679	  LD="${LD-ld} -64"
4680	fi
4681	;;
4682      esac
4683      ;;
4684    esac
4685  fi
4686  rm -rf conftest*
4687  ;;
4688
4689
4690esac
4691
4692need_locks="$enable_libtool_lock"
4693
4694
4695ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4701$as_echo_n "checking how to run the C preprocessor... " >&6; }
4702# On Suns, sometimes $CPP names a directory.
4703if test -n "$CPP" && test -d "$CPP"; then
4704  CPP=
4705fi
4706if test -z "$CPP"; then
4707  if test "${ac_cv_prog_CPP+set}" = set; then
4708  $as_echo_n "(cached) " >&6
4709else
4710      # Double quotes because CPP needs to be expanded
4711    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4712    do
4713      ac_preproc_ok=false
4714for ac_c_preproc_warn_flag in '' yes
4715do
4716  # Use a header file that comes with gcc, so configuring glibc
4717  # with a fresh cross-compiler works.
4718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4719  # <limits.h> exists even on freestanding compilers.
4720  # On the NeXT, cc -E runs the code through the compiler's parser,
4721  # not just through cpp. "Syntax error" is here to catch this case.
4722  cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
4728#ifdef __STDC__
4729# include <limits.h>
4730#else
4731# include <assert.h>
4732#endif
4733		     Syntax error
4734_ACEOF
4735if { (ac_try="$ac_cpp conftest.$ac_ext"
4736case "(($ac_try" in
4737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738  *) ac_try_echo=$ac_try;;
4739esac
4740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741$as_echo "$ac_try_echo") >&5
4742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743  ac_status=$?
4744  grep -v '^ *+' conftest.er1 >conftest.err
4745  rm -f conftest.er1
4746  cat conftest.err >&5
4747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } >/dev/null && {
4749	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750	 test ! -s conftest.err
4751       }; then
4752  :
4753else
4754  $as_echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757  # Broken: fails on valid input.
4758continue
4759fi
4760
4761rm -f conftest.err conftest.$ac_ext
4762
4763  # OK, works on sane cases.  Now check whether nonexistent headers
4764  # can be detected and how.
4765  cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h.  */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h.  */
4771#include <ac_nonexistent.h>
4772_ACEOF
4773if { (ac_try="$ac_cpp conftest.$ac_ext"
4774case "(($ac_try" in
4775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776  *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779$as_echo "$ac_try_echo") >&5
4780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781  ac_status=$?
4782  grep -v '^ *+' conftest.er1 >conftest.err
4783  rm -f conftest.er1
4784  cat conftest.err >&5
4785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); } >/dev/null && {
4787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788	 test ! -s conftest.err
4789       }; then
4790  # Broken: success on invalid input.
4791continue
4792else
4793  $as_echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796  # Passes both tests.
4797ac_preproc_ok=:
4798break
4799fi
4800
4801rm -f conftest.err conftest.$ac_ext
4802
4803done
4804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4805rm -f conftest.err conftest.$ac_ext
4806if $ac_preproc_ok; then
4807  break
4808fi
4809
4810    done
4811    ac_cv_prog_CPP=$CPP
4812
4813fi
4814  CPP=$ac_cv_prog_CPP
4815else
4816  ac_cv_prog_CPP=$CPP
4817fi
4818{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4819$as_echo "$CPP" >&6; }
4820ac_preproc_ok=false
4821for ac_c_preproc_warn_flag in '' yes
4822do
4823  # Use a header file that comes with gcc, so configuring glibc
4824  # with a fresh cross-compiler works.
4825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826  # <limits.h> exists even on freestanding compilers.
4827  # On the NeXT, cc -E runs the code through the compiler's parser,
4828  # not just through cpp. "Syntax error" is here to catch this case.
4829  cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835#ifdef __STDC__
4836# include <limits.h>
4837#else
4838# include <assert.h>
4839#endif
4840		     Syntax error
4841_ACEOF
4842if { (ac_try="$ac_cpp conftest.$ac_ext"
4843case "(($ac_try" in
4844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845  *) ac_try_echo=$ac_try;;
4846esac
4847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4848$as_echo "$ac_try_echo") >&5
4849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850  ac_status=$?
4851  grep -v '^ *+' conftest.er1 >conftest.err
4852  rm -f conftest.er1
4853  cat conftest.err >&5
4854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); } >/dev/null && {
4856	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857	 test ! -s conftest.err
4858       }; then
4859  :
4860else
4861  $as_echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864  # Broken: fails on valid input.
4865continue
4866fi
4867
4868rm -f conftest.err conftest.$ac_ext
4869
4870  # OK, works on sane cases.  Now check whether nonexistent headers
4871  # can be detected and how.
4872  cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (ac_try="$ac_cpp conftest.$ac_ext"
4881case "(($ac_try" in
4882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883  *) ac_try_echo=$ac_try;;
4884esac
4885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4886$as_echo "$ac_try_echo") >&5
4887  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888  ac_status=$?
4889  grep -v '^ *+' conftest.er1 >conftest.err
4890  rm -f conftest.er1
4891  cat conftest.err >&5
4892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); } >/dev/null && {
4894	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4895	 test ! -s conftest.err
4896       }; then
4897  # Broken: success on invalid input.
4898continue
4899else
4900  $as_echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903  # Passes both tests.
4904ac_preproc_ok=:
4905break
4906fi
4907
4908rm -f conftest.err conftest.$ac_ext
4909
4910done
4911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912rm -f conftest.err conftest.$ac_ext
4913if $ac_preproc_ok; then
4914  :
4915else
4916  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4918{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919See \`config.log' for more details." >&5
4920$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921See \`config.log' for more details." >&2;}
4922   { (exit 1); exit 1; }; }; }
4923fi
4924
4925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4933$as_echo_n "checking for ANSI C header files... " >&6; }
4934if test "${ac_cv_header_stdc+set}" = set; then
4935  $as_echo_n "(cached) " >&6
4936else
4937  cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943#include <stdlib.h>
4944#include <stdarg.h>
4945#include <string.h>
4946#include <float.h>
4947
4948int
4949main ()
4950{
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (ac_try="$ac_compile"
4958case "(($ac_try" in
4959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960  *) ac_try_echo=$ac_try;;
4961esac
4962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963$as_echo "$ac_try_echo") >&5
4964  (eval "$ac_compile") 2>conftest.er1
4965  ac_status=$?
4966  grep -v '^ *+' conftest.er1 >conftest.err
4967  rm -f conftest.er1
4968  cat conftest.err >&5
4969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } && {
4971	 test -z "$ac_c_werror_flag" ||
4972	 test ! -s conftest.err
4973       } && test -s conftest.$ac_objext; then
4974  ac_cv_header_stdc=yes
4975else
4976  $as_echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979	ac_cv_header_stdc=no
4980fi
4981
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983
4984if test $ac_cv_header_stdc = yes; then
4985  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4986  cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992#include <string.h>
4993
4994_ACEOF
4995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996  $EGREP "memchr" >/dev/null 2>&1; then
4997  :
4998else
4999  ac_cv_header_stdc=no
5000fi
5001rm -f conftest*
5002
5003fi
5004
5005if test $ac_cv_header_stdc = yes; then
5006  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013#include <stdlib.h>
5014
5015_ACEOF
5016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017  $EGREP "free" >/dev/null 2>&1; then
5018  :
5019else
5020  ac_cv_header_stdc=no
5021fi
5022rm -f conftest*
5023
5024fi
5025
5026if test $ac_cv_header_stdc = yes; then
5027  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5028  if test "$cross_compiling" = yes; then
5029  :
5030else
5031  cat >conftest.$ac_ext <<_ACEOF
5032/* confdefs.h.  */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h.  */
5037#include <ctype.h>
5038#include <stdlib.h>
5039#if ((' ' & 0x0FF) == 0x020)
5040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5042#else
5043# define ISLOWER(c) \
5044		   (('a' <= (c) && (c) <= 'i') \
5045		     || ('j' <= (c) && (c) <= 'r') \
5046		     || ('s' <= (c) && (c) <= 'z'))
5047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5048#endif
5049
5050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5051int
5052main ()
5053{
5054  int i;
5055  for (i = 0; i < 256; i++)
5056    if (XOR (islower (i), ISLOWER (i))
5057	|| toupper (i) != TOUPPER (i))
5058      return 2;
5059  return 0;
5060}
5061_ACEOF
5062rm -f conftest$ac_exeext
5063if { (ac_try="$ac_link"
5064case "(($ac_try" in
5065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066  *) ac_try_echo=$ac_try;;
5067esac
5068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069$as_echo "$ac_try_echo") >&5
5070  (eval "$ac_link") 2>&5
5071  ac_status=$?
5072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5074  { (case "(($ac_try" in
5075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076  *) ac_try_echo=$ac_try;;
5077esac
5078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5079$as_echo "$ac_try_echo") >&5
5080  (eval "$ac_try") 2>&5
5081  ac_status=$?
5082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); }; }; then
5084  :
5085else
5086  $as_echo "$as_me: program exited with status $ac_status" >&5
5087$as_echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090( exit $ac_status )
5091ac_cv_header_stdc=no
5092fi
5093rm -rf conftest.dSYM
5094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5095fi
5096
5097
5098fi
5099fi
5100{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5101$as_echo "$ac_cv_header_stdc" >&6; }
5102if test $ac_cv_header_stdc = yes; then
5103
5104cat >>confdefs.h <<\_ACEOF
5105#define STDC_HEADERS 1
5106_ACEOF
5107
5108fi
5109
5110# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5121		  inttypes.h stdint.h unistd.h
5122do
5123as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5125$as_echo_n "checking for $ac_header... " >&6; }
5126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127  $as_echo_n "(cached) " >&6
5128else
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135$ac_includes_default
5136
5137#include <$ac_header>
5138_ACEOF
5139rm -f conftest.$ac_objext
5140if { (ac_try="$ac_compile"
5141case "(($ac_try" in
5142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143  *) ac_try_echo=$ac_try;;
5144esac
5145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5146$as_echo "$ac_try_echo") >&5
5147  (eval "$ac_compile") 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } && {
5154	 test -z "$ac_c_werror_flag" ||
5155	 test ! -s conftest.err
5156       } && test -s conftest.$ac_objext; then
5157  eval "$as_ac_Header=yes"
5158else
5159  $as_echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162	eval "$as_ac_Header=no"
5163fi
5164
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
5167ac_res=`eval 'as_val=${'$as_ac_Header'}
5168		 $as_echo "$as_val"'`
5169	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5170$as_echo "$ac_res" >&6; }
5171as_val=`eval 'as_val=${'$as_ac_Header'}
5172		 $as_echo "$as_val"'`
5173   if test "x$as_val" = x""yes; then
5174  cat >>confdefs.h <<_ACEOF
5175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176_ACEOF
5177
5178fi
5179
5180done
5181
5182
5183
5184for ac_header in dlfcn.h
5185do
5186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5188  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5189$as_echo_n "checking for $ac_header... " >&6; }
5190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5191  $as_echo_n "(cached) " >&6
5192fi
5193ac_res=`eval 'as_val=${'$as_ac_Header'}
5194		 $as_echo "$as_val"'`
5195	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5196$as_echo "$ac_res" >&6; }
5197else
5198  # Is the header compilable?
5199{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5200$as_echo_n "checking $ac_header usability... " >&6; }
5201cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h.  */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h.  */
5207$ac_includes_default
5208#include <$ac_header>
5209_ACEOF
5210rm -f conftest.$ac_objext
5211if { (ac_try="$ac_compile"
5212case "(($ac_try" in
5213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214  *) ac_try_echo=$ac_try;;
5215esac
5216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217$as_echo "$ac_try_echo") >&5
5218  (eval "$ac_compile") 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } && {
5225	 test -z "$ac_c_werror_flag" ||
5226	 test ! -s conftest.err
5227       } && test -s conftest.$ac_objext; then
5228  ac_header_compiler=yes
5229else
5230  $as_echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233	ac_header_compiler=no
5234fi
5235
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238$as_echo "$ac_header_compiler" >&6; }
5239
5240# Is the header present?
5241{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5242$as_echo_n "checking $ac_header presence... " >&6; }
5243cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h.  */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h.  */
5249#include <$ac_header>
5250_ACEOF
5251if { (ac_try="$ac_cpp conftest.$ac_ext"
5252case "(($ac_try" in
5253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254  *) ac_try_echo=$ac_try;;
5255esac
5256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5257$as_echo "$ac_try_echo") >&5
5258  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259  ac_status=$?
5260  grep -v '^ *+' conftest.er1 >conftest.err
5261  rm -f conftest.er1
5262  cat conftest.err >&5
5263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264  (exit $ac_status); } >/dev/null && {
5265	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5266	 test ! -s conftest.err
5267       }; then
5268  ac_header_preproc=yes
5269else
5270  $as_echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273  ac_header_preproc=no
5274fi
5275
5276rm -f conftest.err conftest.$ac_ext
5277{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278$as_echo "$ac_header_preproc" >&6; }
5279
5280# So?  What about this header?
5281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5282  yes:no: )
5283    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5284$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5286$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5287    ac_header_preproc=yes
5288    ;;
5289  no:yes:* )
5290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5291$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5293$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5295$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5297$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5299$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5301$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5302    ( cat <<\_ASBOX
5303## ---------------------------------------------------------------------- ##
5304## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5305## ---------------------------------------------------------------------- ##
5306_ASBOX
5307     ) | sed "s/^/$as_me: WARNING:     /" >&2
5308    ;;
5309esac
5310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5311$as_echo_n "checking for $ac_header... " >&6; }
5312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313  $as_echo_n "(cached) " >&6
5314else
5315  eval "$as_ac_Header=\$ac_header_preproc"
5316fi
5317ac_res=`eval 'as_val=${'$as_ac_Header'}
5318		 $as_echo "$as_val"'`
5319	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5320$as_echo "$ac_res" >&6; }
5321
5322fi
5323as_val=`eval 'as_val=${'$as_ac_Header'}
5324		 $as_echo "$as_val"'`
5325   if test "x$as_val" = x""yes; then
5326  cat >>confdefs.h <<_ACEOF
5327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328_ACEOF
5329
5330fi
5331
5332done
5333
5334ac_ext=cpp
5335ac_cpp='$CXXCPP $CPPFLAGS'
5336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339if test -z "$CXX"; then
5340  if test -n "$CCC"; then
5341    CXX=$CCC
5342  else
5343    if test -n "$ac_tool_prefix"; then
5344  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5345  do
5346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if test "${ac_cv_prog_CXX+set}" = set; then
5351  $as_echo_n "(cached) " >&6
5352else
5353  if test -n "$CXX"; then
5354  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361  for ac_exec_ext in '' $ac_executable_extensions; do
5362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5364    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365    break 2
5366  fi
5367done
5368done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373CXX=$ac_cv_prog_CXX
5374if test -n "$CXX"; then
5375  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5376$as_echo "$CXX" >&6; }
5377else
5378  { $as_echo "$as_me:$LINENO: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383    test -n "$CXX" && break
5384  done
5385fi
5386if test -z "$CXX"; then
5387  ac_ct_CXX=$CXX
5388  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5389do
5390  # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -n "$ac_ct_CXX"; then
5398  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407    ac_cv_prog_ac_ct_CXX="$ac_prog"
5408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5418if test -n "$ac_ct_CXX"; then
5419  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5420$as_echo "$ac_ct_CXX" >&6; }
5421else
5422  { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427  test -n "$ac_ct_CXX" && break
5428done
5429
5430  if test "x$ac_ct_CXX" = x; then
5431    CXX="g++"
5432  else
5433    case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439    CXX=$ac_ct_CXX
5440  fi
5441fi
5442
5443  fi
5444fi
5445# Provide some information about the compiler.
5446$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5447set X $ac_compile
5448ac_compiler=$2
5449{ (ac_try="$ac_compiler --version >&5"
5450case "(($ac_try" in
5451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452  *) ac_try_echo=$ac_try;;
5453esac
5454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455$as_echo "$ac_try_echo") >&5
5456  (eval "$ac_compiler --version >&5") 2>&5
5457  ac_status=$?
5458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }
5460{ (ac_try="$ac_compiler -v >&5"
5461case "(($ac_try" in
5462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463  *) ac_try_echo=$ac_try;;
5464esac
5465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466$as_echo "$ac_try_echo") >&5
5467  (eval "$ac_compiler -v >&5") 2>&5
5468  ac_status=$?
5469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }
5471{ (ac_try="$ac_compiler -V >&5"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477$as_echo "$ac_try_echo") >&5
5478  (eval "$ac_compiler -V >&5") 2>&5
5479  ac_status=$?
5480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }
5482
5483{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5484$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5485if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5486  $as_echo_n "(cached) " >&6
5487else
5488  cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h.  */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h.  */
5494
5495int
5496main ()
5497{
5498#ifndef __GNUC__
5499       choke me
5500#endif
5501
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506rm -f conftest.$ac_objext
5507if { (ac_try="$ac_compile"
5508case "(($ac_try" in
5509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510  *) ac_try_echo=$ac_try;;
5511esac
5512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5513$as_echo "$ac_try_echo") >&5
5514  (eval "$ac_compile") 2>conftest.er1
5515  ac_status=$?
5516  grep -v '^ *+' conftest.er1 >conftest.err
5517  rm -f conftest.er1
5518  cat conftest.err >&5
5519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); } && {
5521	 test -z "$ac_cxx_werror_flag" ||
5522	 test ! -s conftest.err
5523       } && test -s conftest.$ac_objext; then
5524  ac_compiler_gnu=yes
5525else
5526  $as_echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529	ac_compiler_gnu=no
5530fi
5531
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5534
5535fi
5536{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5537$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5538if test $ac_compiler_gnu = yes; then
5539  GXX=yes
5540else
5541  GXX=
5542fi
5543ac_test_CXXFLAGS=${CXXFLAGS+set}
5544ac_save_CXXFLAGS=$CXXFLAGS
5545{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5546$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5547if test "${ac_cv_prog_cxx_g+set}" = set; then
5548  $as_echo_n "(cached) " >&6
5549else
5550  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5551   ac_cxx_werror_flag=yes
5552   ac_cv_prog_cxx_g=no
5553   CXXFLAGS="-g"
5554   cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h.  */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h.  */
5560
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573  *) ac_try_echo=$ac_try;;
5574esac
5575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576$as_echo "$ac_try_echo") >&5
5577  (eval "$ac_compile") 2>conftest.er1
5578  ac_status=$?
5579  grep -v '^ *+' conftest.er1 >conftest.err
5580  rm -f conftest.er1
5581  cat conftest.err >&5
5582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } && {
5584	 test -z "$ac_cxx_werror_flag" ||
5585	 test ! -s conftest.err
5586       } && test -s conftest.$ac_objext; then
5587  ac_cv_prog_cxx_g=yes
5588else
5589  $as_echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592	CXXFLAGS=""
5593      cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612  *) ac_try_echo=$ac_try;;
5613esac
5614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615$as_echo "$ac_try_echo") >&5
5616  (eval "$ac_compile") 2>conftest.er1
5617  ac_status=$?
5618  grep -v '^ *+' conftest.er1 >conftest.err
5619  rm -f conftest.er1
5620  cat conftest.err >&5
5621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); } && {
5623	 test -z "$ac_cxx_werror_flag" ||
5624	 test ! -s conftest.err
5625       } && test -s conftest.$ac_objext; then
5626  :
5627else
5628  $as_echo "$as_me: failed program was:" >&5
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5632	 CXXFLAGS="-g"
5633	 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639
5640int
5641main ()
5642{
5643
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (ac_try="$ac_compile"
5650case "(($ac_try" in
5651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652  *) ac_try_echo=$ac_try;;
5653esac
5654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5655$as_echo "$ac_try_echo") >&5
5656  (eval "$ac_compile") 2>conftest.er1
5657  ac_status=$?
5658  grep -v '^ *+' conftest.er1 >conftest.err
5659  rm -f conftest.er1
5660  cat conftest.err >&5
5661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } && {
5663	 test -z "$ac_cxx_werror_flag" ||
5664	 test ! -s conftest.err
5665       } && test -s conftest.$ac_objext; then
5666  ac_cv_prog_cxx_g=yes
5667else
5668  $as_echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671
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
5678fi
5679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5682fi
5683{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5684$as_echo "$ac_cv_prog_cxx_g" >&6; }
5685if test "$ac_test_CXXFLAGS" = set; then
5686  CXXFLAGS=$ac_save_CXXFLAGS
5687elif test $ac_cv_prog_cxx_g = yes; then
5688  if test "$GXX" = yes; then
5689    CXXFLAGS="-g -O2"
5690  else
5691    CXXFLAGS="-g"
5692  fi
5693else
5694  if test "$GXX" = yes; then
5695    CXXFLAGS="-O2"
5696  else
5697    CXXFLAGS=
5698  fi
5699fi
5700ac_ext=cpp
5701ac_cpp='$CXXCPP $CPPFLAGS'
5702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5705
5706depcc="$CXX"  am_compiler_list=
5707
5708{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5709$as_echo_n "checking dependency style of $depcc... " >&6; }
5710if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5711  $as_echo_n "(cached) " >&6
5712else
5713  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5714  # We make a subdir and do the tests there.  Otherwise we can end up
5715  # making bogus files that we don't know about and never remove.  For
5716  # instance it was reported that on HP-UX the gcc test will end up
5717  # making a dummy file named `D' -- because `-MD' means `put the output
5718  # in D'.
5719  mkdir conftest.dir
5720  # Copy depcomp to subdir because otherwise we won't find it if we're
5721  # using a relative directory.
5722  cp "$am_depcomp" conftest.dir
5723  cd conftest.dir
5724  # We will build objects and dependencies in a subdirectory because
5725  # it helps to detect inapplicable dependency modes.  For instance
5726  # both Tru64's cc and ICC support -MD to output dependencies as a
5727  # side effect of compilation, but ICC will put the dependencies in
5728  # the current directory while Tru64 will put them in the object
5729  # directory.
5730  mkdir sub
5731
5732  am_cv_CXX_dependencies_compiler_type=none
5733  if test "$am_compiler_list" = ""; then
5734     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5735  fi
5736  for depmode in $am_compiler_list; do
5737    # Setup a source with many dependencies, because some compilers
5738    # like to wrap large dependency lists on column 80 (with \), and
5739    # we should not choose a depcomp mode which is confused by this.
5740    #
5741    # We need to recreate these files for each test, as the compiler may
5742    # overwrite some of them when testing with obscure command lines.
5743    # This happens at least with the AIX C compiler.
5744    : > sub/conftest.c
5745    for i in 1 2 3 4 5 6; do
5746      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5747      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5748      # Solaris 8's {/usr,}/bin/sh.
5749      touch sub/conftst$i.h
5750    done
5751    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5752
5753    case $depmode in
5754    nosideeffect)
5755      # after this tag, mechanisms are not by side-effect, so they'll
5756      # only be used when explicitly requested
5757      if test "x$enable_dependency_tracking" = xyes; then
5758	continue
5759      else
5760	break
5761      fi
5762      ;;
5763    none) break ;;
5764    esac
5765    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5766    # mode.  It turns out that the SunPro C++ compiler does not properly
5767    # handle `-M -o', and we need to detect this.
5768    if depmode=$depmode \
5769       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5770       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5771       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5772         >/dev/null 2>conftest.err &&
5773       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5774       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5775       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5776       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5777      # icc doesn't choke on unknown options, it will just issue warnings
5778      # or remarks (even with -Werror).  So we grep stderr for any message
5779      # that says an option was ignored or not supported.
5780      # When given -MP, icc 7.0 and 7.1 complain thusly:
5781      #   icc: Command line warning: ignoring option '-M'; no argument required
5782      # The diagnosis changed in icc 8.0:
5783      #   icc: Command line remark: option '-MP' not supported
5784      if (grep 'ignoring option' conftest.err ||
5785          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5786        am_cv_CXX_dependencies_compiler_type=$depmode
5787        break
5788      fi
5789    fi
5790  done
5791
5792  cd ..
5793  rm -rf conftest.dir
5794else
5795  am_cv_CXX_dependencies_compiler_type=none
5796fi
5797
5798fi
5799{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5800$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5801CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5802
5803 if
5804  test "x$enable_dependency_tracking" != xno \
5805  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5806  am__fastdepCXX_TRUE=
5807  am__fastdepCXX_FALSE='#'
5808else
5809  am__fastdepCXX_TRUE='#'
5810  am__fastdepCXX_FALSE=
5811fi
5812
5813
5814
5815
5816if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5817    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5818    (test "X$CXX" != "Xg++"))) ; then
5819  ac_ext=cpp
5820ac_cpp='$CXXCPP $CPPFLAGS'
5821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5824{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5825$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5826if test -z "$CXXCPP"; then
5827  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5828  $as_echo_n "(cached) " >&6
5829else
5830      # Double quotes because CXXCPP needs to be expanded
5831    for CXXCPP in "$CXX -E" "/lib/cpp"
5832    do
5833      ac_preproc_ok=false
5834for ac_cxx_preproc_warn_flag in '' yes
5835do
5836  # Use a header file that comes with gcc, so configuring glibc
5837  # with a fresh cross-compiler works.
5838  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5839  # <limits.h> exists even on freestanding compilers.
5840  # On the NeXT, cc -E runs the code through the compiler's parser,
5841  # not just through cpp. "Syntax error" is here to catch this case.
5842  cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h.  */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h.  */
5848#ifdef __STDC__
5849# include <limits.h>
5850#else
5851# include <assert.h>
5852#endif
5853		     Syntax error
5854_ACEOF
5855if { (ac_try="$ac_cpp conftest.$ac_ext"
5856case "(($ac_try" in
5857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858  *) ac_try_echo=$ac_try;;
5859esac
5860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5861$as_echo "$ac_try_echo") >&5
5862  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5863  ac_status=$?
5864  grep -v '^ *+' conftest.er1 >conftest.err
5865  rm -f conftest.er1
5866  cat conftest.err >&5
5867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); } >/dev/null && {
5869	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5870	 test ! -s conftest.err
5871       }; then
5872  :
5873else
5874  $as_echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877  # Broken: fails on valid input.
5878continue
5879fi
5880
5881rm -f conftest.err conftest.$ac_ext
5882
5883  # OK, works on sane cases.  Now check whether nonexistent headers
5884  # can be detected and how.
5885  cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h.  */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h.  */
5891#include <ac_nonexistent.h>
5892_ACEOF
5893if { (ac_try="$ac_cpp conftest.$ac_ext"
5894case "(($ac_try" in
5895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896  *) ac_try_echo=$ac_try;;
5897esac
5898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5899$as_echo "$ac_try_echo") >&5
5900  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5901  ac_status=$?
5902  grep -v '^ *+' conftest.er1 >conftest.err
5903  rm -f conftest.er1
5904  cat conftest.err >&5
5905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906  (exit $ac_status); } >/dev/null && {
5907	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5908	 test ! -s conftest.err
5909       }; then
5910  # Broken: success on invalid input.
5911continue
5912else
5913  $as_echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916  # Passes both tests.
5917ac_preproc_ok=:
5918break
5919fi
5920
5921rm -f conftest.err conftest.$ac_ext
5922
5923done
5924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5925rm -f conftest.err conftest.$ac_ext
5926if $ac_preproc_ok; then
5927  break
5928fi
5929
5930    done
5931    ac_cv_prog_CXXCPP=$CXXCPP
5932
5933fi
5934  CXXCPP=$ac_cv_prog_CXXCPP
5935else
5936  ac_cv_prog_CXXCPP=$CXXCPP
5937fi
5938{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5939$as_echo "$CXXCPP" >&6; }
5940ac_preproc_ok=false
5941for ac_cxx_preproc_warn_flag in '' yes
5942do
5943  # Use a header file that comes with gcc, so configuring glibc
5944  # with a fresh cross-compiler works.
5945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5946  # <limits.h> exists even on freestanding compilers.
5947  # On the NeXT, cc -E runs the code through the compiler's parser,
5948  # not just through cpp. "Syntax error" is here to catch this case.
5949  cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h.  */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h.  */
5955#ifdef __STDC__
5956# include <limits.h>
5957#else
5958# include <assert.h>
5959#endif
5960		     Syntax error
5961_ACEOF
5962if { (ac_try="$ac_cpp conftest.$ac_ext"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968$as_echo "$ac_try_echo") >&5
5969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970  ac_status=$?
5971  grep -v '^ *+' conftest.er1 >conftest.err
5972  rm -f conftest.er1
5973  cat conftest.err >&5
5974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); } >/dev/null && {
5976	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977	 test ! -s conftest.err
5978       }; then
5979  :
5980else
5981  $as_echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984  # Broken: fails on valid input.
5985continue
5986fi
5987
5988rm -f conftest.err conftest.$ac_ext
5989
5990  # OK, works on sane cases.  Now check whether nonexistent headers
5991  # can be detected and how.
5992  cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h.  */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h.  */
5998#include <ac_nonexistent.h>
5999_ACEOF
6000if { (ac_try="$ac_cpp conftest.$ac_ext"
6001case "(($ac_try" in
6002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003  *) ac_try_echo=$ac_try;;
6004esac
6005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006$as_echo "$ac_try_echo") >&5
6007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } >/dev/null && {
6014	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6015	 test ! -s conftest.err
6016       }; then
6017  # Broken: success on invalid input.
6018continue
6019else
6020  $as_echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023  # Passes both tests.
6024ac_preproc_ok=:
6025break
6026fi
6027
6028rm -f conftest.err conftest.$ac_ext
6029
6030done
6031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6032rm -f conftest.err conftest.$ac_ext
6033if $ac_preproc_ok; then
6034  :
6035else
6036  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6039See \`config.log' for more details." >&5
6040$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6041See \`config.log' for more details." >&2;}
6042   { (exit 1); exit 1; }; }; }
6043fi
6044
6045ac_ext=cpp
6046ac_cpp='$CXXCPP $CPPFLAGS'
6047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6050
6051fi
6052
6053
6054ac_ext=f
6055ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6056ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6058if test -n "$ac_tool_prefix"; then
6059  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
6060  do
6061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if test "${ac_cv_prog_F77+set}" = set; then
6066  $as_echo_n "(cached) " >&6
6067else
6068  if test -n "$F77"; then
6069  ac_cv_prog_F77="$F77" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076  for ac_exec_ext in '' $ac_executable_extensions; do
6077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6079    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088F77=$ac_cv_prog_F77
6089if test -n "$F77"; then
6090  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6091$as_echo "$F77" >&6; }
6092else
6093  { $as_echo "$as_me:$LINENO: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097
6098    test -n "$F77" && break
6099  done
6100fi
6101if test -z "$F77"; then
6102  ac_ct_F77=$F77
6103  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
6104do
6105  # Extract the first word of "$ac_prog", so it can be a program name with args.
6106set dummy $ac_prog; ac_word=$2
6107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6110  $as_echo_n "(cached) " >&6
6111else
6112  if test -n "$ac_ct_F77"; then
6113  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120  for ac_exec_ext in '' $ac_executable_extensions; do
6121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122    ac_cv_prog_ac_ct_F77="$ac_prog"
6123    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132ac_ct_F77=$ac_cv_prog_ac_ct_F77
6133if test -n "$ac_ct_F77"; then
6134  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6135$as_echo "$ac_ct_F77" >&6; }
6136else
6137  { $as_echo "$as_me:$LINENO: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142  test -n "$ac_ct_F77" && break
6143done
6144
6145  if test "x$ac_ct_F77" = x; then
6146    F77=""
6147  else
6148    case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154    F77=$ac_ct_F77
6155  fi
6156fi
6157
6158
6159# Provide some information about the compiler.
6160$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6161set X $ac_compile
6162ac_compiler=$2
6163{ (ac_try="$ac_compiler --version >&5"
6164case "(($ac_try" in
6165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166  *) ac_try_echo=$ac_try;;
6167esac
6168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169$as_echo "$ac_try_echo") >&5
6170  (eval "$ac_compiler --version >&5") 2>&5
6171  ac_status=$?
6172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); }
6174{ (ac_try="$ac_compiler -v >&5"
6175case "(($ac_try" in
6176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177  *) ac_try_echo=$ac_try;;
6178esac
6179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180$as_echo "$ac_try_echo") >&5
6181  (eval "$ac_compiler -v >&5") 2>&5
6182  ac_status=$?
6183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }
6185{ (ac_try="$ac_compiler -V >&5"
6186case "(($ac_try" in
6187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188  *) ac_try_echo=$ac_try;;
6189esac
6190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191$as_echo "$ac_try_echo") >&5
6192  (eval "$ac_compiler -V >&5") 2>&5
6193  ac_status=$?
6194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }
6196rm -f a.out
6197
6198# If we don't use `.F' as extension, the preprocessor is not run on the
6199# input file.  (Note that this only needs to work for GNU compilers.)
6200ac_save_ext=$ac_ext
6201ac_ext=F
6202{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6203$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6204if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6205  $as_echo_n "(cached) " >&6
6206else
6207  cat >conftest.$ac_ext <<_ACEOF
6208      program main
6209#ifndef __GNUC__
6210       choke me
6211#endif
6212
6213      end
6214_ACEOF
6215rm -f conftest.$ac_objext
6216if { (ac_try="$ac_compile"
6217case "(($ac_try" in
6218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219  *) ac_try_echo=$ac_try;;
6220esac
6221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222$as_echo "$ac_try_echo") >&5
6223  (eval "$ac_compile") 2>conftest.er1
6224  ac_status=$?
6225  grep -v '^ *+' conftest.er1 >conftest.err
6226  rm -f conftest.er1
6227  cat conftest.err >&5
6228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); } && {
6230	 test -z "$ac_f77_werror_flag" ||
6231	 test ! -s conftest.err
6232       } && test -s conftest.$ac_objext; then
6233  ac_compiler_gnu=yes
6234else
6235  $as_echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238	ac_compiler_gnu=no
6239fi
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6243
6244fi
6245{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6246$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6247ac_ext=$ac_save_ext
6248ac_test_FFLAGS=${FFLAGS+set}
6249ac_save_FFLAGS=$FFLAGS
6250FFLAGS=
6251{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6252$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6253if test "${ac_cv_prog_f77_g+set}" = set; then
6254  $as_echo_n "(cached) " >&6
6255else
6256  FFLAGS=-g
6257cat >conftest.$ac_ext <<_ACEOF
6258      program main
6259
6260      end
6261_ACEOF
6262rm -f conftest.$ac_objext
6263if { (ac_try="$ac_compile"
6264case "(($ac_try" in
6265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266  *) ac_try_echo=$ac_try;;
6267esac
6268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6269$as_echo "$ac_try_echo") >&5
6270  (eval "$ac_compile") 2>conftest.er1
6271  ac_status=$?
6272  grep -v '^ *+' conftest.er1 >conftest.err
6273  rm -f conftest.er1
6274  cat conftest.err >&5
6275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); } && {
6277	 test -z "$ac_f77_werror_flag" ||
6278	 test ! -s conftest.err
6279       } && test -s conftest.$ac_objext; then
6280  ac_cv_prog_f77_g=yes
6281else
6282  $as_echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285	ac_cv_prog_f77_g=no
6286fi
6287
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289
6290fi
6291{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6292$as_echo "$ac_cv_prog_f77_g" >&6; }
6293if test "$ac_test_FFLAGS" = set; then
6294  FFLAGS=$ac_save_FFLAGS
6295elif test $ac_cv_prog_f77_g = yes; then
6296  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6297    FFLAGS="-g -O2"
6298  else
6299    FFLAGS="-g"
6300  fi
6301else
6302  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6303    FFLAGS="-O2"
6304  else
6305    FFLAGS=
6306  fi
6307fi
6308
6309if test $ac_compiler_gnu = yes; then
6310  G77=yes
6311else
6312  G77=
6313fi
6314ac_ext=c
6315ac_cpp='$CPP $CPPFLAGS'
6316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318ac_compiler_gnu=$ac_cv_c_compiler_gnu
6319
6320
6321
6322# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6323# find the maximum length of command line arguments
6324{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6325$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6326if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6327  $as_echo_n "(cached) " >&6
6328else
6329    i=0
6330  teststring="ABCD"
6331
6332  case $build_os in
6333  msdosdjgpp*)
6334    # On DJGPP, this test can blow up pretty badly due to problems in libc
6335    # (any single argument exceeding 2000 bytes causes a buffer overrun
6336    # during glob expansion).  Even if it were fixed, the result of this
6337    # check would be larger than it should be.
6338    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6339    ;;
6340
6341  gnu*)
6342    # Under GNU Hurd, this test is not required because there is
6343    # no limit to the length of command line arguments.
6344    # Libtool will interpret -1 as no limit whatsoever
6345    lt_cv_sys_max_cmd_len=-1;
6346    ;;
6347
6348  cygwin* | mingw*)
6349    # On Win9x/ME, this test blows up -- it succeeds, but takes
6350    # about 5 minutes as the teststring grows exponentially.
6351    # Worse, since 9x/ME are not pre-emptively multitasking,
6352    # you end up with a "frozen" computer, even though with patience
6353    # the test eventually succeeds (with a max line length of 256k).
6354    # Instead, let's just punt: use the minimum linelength reported by
6355    # all of the supported platforms: 8192 (on NT/2K/XP).
6356    lt_cv_sys_max_cmd_len=8192;
6357    ;;
6358
6359  amigaos*)
6360    # On AmigaOS with pdksh, this test takes hours, literally.
6361    # So we just punt and use a minimum line length of 8192.
6362    lt_cv_sys_max_cmd_len=8192;
6363    ;;
6364
6365  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6366    # This has been around since 386BSD, at least.  Likely further.
6367    if test -x /sbin/sysctl; then
6368      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6369    elif test -x /usr/sbin/sysctl; then
6370      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6371    else
6372      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6373    fi
6374    # And add a safety zone
6375    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377    ;;
6378
6379  interix*)
6380    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6381    lt_cv_sys_max_cmd_len=196608
6382    ;;
6383
6384  osf*)
6385    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6386    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6387    # nice to cause kernel panics so lets avoid the loop below.
6388    # First set a reasonable default.
6389    lt_cv_sys_max_cmd_len=16384
6390    #
6391    if test -x /sbin/sysconfig; then
6392      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6393        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6394      esac
6395    fi
6396    ;;
6397  sco3.2v5*)
6398    lt_cv_sys_max_cmd_len=102400
6399    ;;
6400  sysv5* | sco5v6* | sysv4.2uw2*)
6401    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6402    if test -n "$kargmax"; then
6403      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6404    else
6405      lt_cv_sys_max_cmd_len=32768
6406    fi
6407    ;;
6408  *)
6409    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6410    if test -n "$lt_cv_sys_max_cmd_len"; then
6411      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6412      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6413    else
6414      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6415      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6416	       = "XX$teststring") >/dev/null 2>&1 &&
6417	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6418	      lt_cv_sys_max_cmd_len=$new_result &&
6419	      test $i != 17 # 1/2 MB should be enough
6420      do
6421        i=`expr $i + 1`
6422        teststring=$teststring$teststring
6423      done
6424      teststring=
6425      # Add a significant safety factor because C++ compilers can tack on massive
6426      # amounts of additional arguments before passing them to the linker.
6427      # It appears as though 1/2 is a usable value.
6428      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6429    fi
6430    ;;
6431  esac
6432
6433fi
6434
6435if test -n $lt_cv_sys_max_cmd_len ; then
6436  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6437$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6438else
6439  { $as_echo "$as_me:$LINENO: result: none" >&5
6440$as_echo "none" >&6; }
6441fi
6442
6443
6444
6445
6446
6447# Check for command to grab the raw symbol name followed by C symbol from nm.
6448{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6449$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6450if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6451  $as_echo_n "(cached) " >&6
6452else
6453
6454# These are sane defaults that work on at least a few old systems.
6455# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6456
6457# Character class describing NM global symbol codes.
6458symcode='[BCDEGRST]'
6459
6460# Regexp to match symbols that can be accessed directly from C.
6461sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6462
6463# Transform an extracted symbol line into a proper C declaration
6464lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6465
6466# Transform an extracted symbol line into symbol name and symbol address
6467lt_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'"
6468
6469# Define system-specific variables.
6470case $host_os in
6471aix*)
6472  symcode='[BCDT]'
6473  ;;
6474cygwin* | mingw* | pw32*)
6475  symcode='[ABCDGISTW]'
6476  ;;
6477hpux*) # Its linker distinguishes data from code symbols
6478  if test "$host_cpu" = ia64; then
6479    symcode='[ABCDEGRST]'
6480  fi
6481  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482  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'"
6483  ;;
6484linux* | k*bsd*-gnu)
6485  if test "$host_cpu" = ia64; then
6486    symcode='[ABCDGIRSTW]'
6487    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6488    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'"
6489  fi
6490  ;;
6491irix* | nonstopux*)
6492  symcode='[BCDEGRST]'
6493  ;;
6494osf*)
6495  symcode='[BCDEGQRST]'
6496  ;;
6497solaris*)
6498  symcode='[BDRT]'
6499  ;;
6500sco3.2v5*)
6501  symcode='[DT]'
6502  ;;
6503sysv4.2uw2*)
6504  symcode='[DT]'
6505  ;;
6506sysv5* | sco5v6* | unixware* | OpenUNIX*)
6507  symcode='[ABDT]'
6508  ;;
6509sysv4)
6510  symcode='[DFNSTU]'
6511  ;;
6512esac
6513
6514# Handle CRLF in mingw tool chain
6515opt_cr=
6516case $build_os in
6517mingw*)
6518  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6519  ;;
6520esac
6521
6522# If we're using GNU nm, then use its standard symbol codes.
6523case `$NM -V 2>&1` in
6524*GNU* | *'with BFD'*)
6525  symcode='[ABCDGIRSTW]' ;;
6526esac
6527
6528# Try without a prefix undercore, then with it.
6529for ac_symprfx in "" "_"; do
6530
6531  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6532  symxfrm="\\1 $ac_symprfx\\2 \\2"
6533
6534  # Write the raw and C identifiers.
6535  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6536
6537  # Check to see that the pipe works correctly.
6538  pipe_works=no
6539
6540  rm -f conftest*
6541  cat > conftest.$ac_ext <<EOF
6542#ifdef __cplusplus
6543extern "C" {
6544#endif
6545char nm_test_var;
6546void nm_test_func(){}
6547#ifdef __cplusplus
6548}
6549#endif
6550int main(){nm_test_var='a';nm_test_func();return(0);}
6551EOF
6552
6553  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554  (eval $ac_compile) 2>&5
6555  ac_status=$?
6556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557  (exit $ac_status); }; then
6558    # Now try to grab the symbols.
6559    nlist=conftest.nm
6560    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6561  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6562  ac_status=$?
6563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); } && test -s "$nlist"; then
6565      # Try sorting and uniquifying the output.
6566      if sort "$nlist" | uniq > "$nlist"T; then
6567	mv -f "$nlist"T "$nlist"
6568      else
6569	rm -f "$nlist"T
6570      fi
6571
6572      # Make sure that we snagged all the symbols we need.
6573      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6574	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6575	  cat <<EOF > conftest.$ac_ext
6576#ifdef __cplusplus
6577extern "C" {
6578#endif
6579
6580EOF
6581	  # Now generate the symbol file.
6582	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6583
6584	  cat <<EOF >> conftest.$ac_ext
6585#if defined (__STDC__) && __STDC__
6586# define lt_ptr_t void *
6587#else
6588# define lt_ptr_t char *
6589# define const
6590#endif
6591
6592/* The mapping between symbol names and symbols. */
6593const struct {
6594  const char *name;
6595  lt_ptr_t address;
6596}
6597lt_preloaded_symbols[] =
6598{
6599EOF
6600	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6601	  cat <<\EOF >> conftest.$ac_ext
6602  {0, (lt_ptr_t) 0}
6603};
6604
6605#ifdef __cplusplus
6606}
6607#endif
6608EOF
6609	  # Now try linking the two files.
6610	  mv conftest.$ac_objext conftstm.$ac_objext
6611	  lt_save_LIBS="$LIBS"
6612	  lt_save_CFLAGS="$CFLAGS"
6613	  LIBS="conftstm.$ac_objext"
6614	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6615	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616  (eval $ac_link) 2>&5
6617  ac_status=$?
6618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6620	    pipe_works=yes
6621	  fi
6622	  LIBS="$lt_save_LIBS"
6623	  CFLAGS="$lt_save_CFLAGS"
6624	else
6625	  echo "cannot find nm_test_func in $nlist" >&5
6626	fi
6627      else
6628	echo "cannot find nm_test_var in $nlist" >&5
6629      fi
6630    else
6631      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6632    fi
6633  else
6634    echo "$progname: failed program was:" >&5
6635    cat conftest.$ac_ext >&5
6636  fi
6637  rm -rf conftest* conftst*
6638
6639  # Do not use the global_symbol_pipe unless it works.
6640  if test "$pipe_works" = yes; then
6641    break
6642  else
6643    lt_cv_sys_global_symbol_pipe=
6644  fi
6645done
6646
6647fi
6648
6649if test -z "$lt_cv_sys_global_symbol_pipe"; then
6650  lt_cv_sys_global_symbol_to_cdecl=
6651fi
6652if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6653  { $as_echo "$as_me:$LINENO: result: failed" >&5
6654$as_echo "failed" >&6; }
6655else
6656  { $as_echo "$as_me:$LINENO: result: ok" >&5
6657$as_echo "ok" >&6; }
6658fi
6659
6660{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6661$as_echo_n "checking for objdir... " >&6; }
6662if test "${lt_cv_objdir+set}" = set; then
6663  $as_echo_n "(cached) " >&6
6664else
6665  rm -f .libs 2>/dev/null
6666mkdir .libs 2>/dev/null
6667if test -d .libs; then
6668  lt_cv_objdir=.libs
6669else
6670  # MS-DOS does not allow filenames that begin with a dot.
6671  lt_cv_objdir=_libs
6672fi
6673rmdir .libs 2>/dev/null
6674fi
6675{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6676$as_echo "$lt_cv_objdir" >&6; }
6677objdir=$lt_cv_objdir
6678
6679
6680
6681
6682
6683case $host_os in
6684aix3*)
6685  # AIX sometimes has problems with the GCC collect2 program.  For some
6686  # reason, if we set the COLLECT_NAMES environment variable, the problems
6687  # vanish in a puff of smoke.
6688  if test "X${COLLECT_NAMES+set}" != Xset; then
6689    COLLECT_NAMES=
6690    export COLLECT_NAMES
6691  fi
6692  ;;
6693esac
6694
6695# Sed substitution that helps us do robust quoting.  It backslashifies
6696# metacharacters that are still active within double-quoted strings.
6697Xsed='sed -e 1s/^X//'
6698sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6699
6700# Same as above, but do not quote variable references.
6701double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6702
6703# Sed substitution to delay expansion of an escaped shell variable in a
6704# double_quote_subst'ed string.
6705delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6706
6707# Sed substitution to avoid accidental globbing in evaled expressions
6708no_glob_subst='s/\*/\\\*/g'
6709
6710# Constants:
6711rm="rm -f"
6712
6713# Global variables:
6714default_ofile=libtool
6715can_build_shared=yes
6716
6717# All known linkers require a `.a' archive for static linking (except MSVC,
6718# which needs '.lib').
6719libext=a
6720ltmain="$ac_aux_dir/ltmain.sh"
6721ofile="$default_ofile"
6722with_gnu_ld="$lt_cv_prog_gnu_ld"
6723
6724if test -n "$ac_tool_prefix"; then
6725  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}ar; ac_word=$2
6727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if test "${ac_cv_prog_AR+set}" = set; then
6730  $as_echo_n "(cached) " >&6
6731else
6732  if test -n "$AR"; then
6733  ac_cv_prog_AR="$AR" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738  IFS=$as_save_IFS
6739  test -z "$as_dir" && as_dir=.
6740  for ac_exec_ext in '' $ac_executable_extensions; do
6741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742    ac_cv_prog_AR="${ac_tool_prefix}ar"
6743    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744    break 2
6745  fi
6746done
6747done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752AR=$ac_cv_prog_AR
6753if test -n "$AR"; then
6754  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6755$as_echo "$AR" >&6; }
6756else
6757  { $as_echo "$as_me:$LINENO: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761
6762fi
6763if test -z "$ac_cv_prog_AR"; then
6764  ac_ct_AR=$AR
6765  # Extract the first word of "ar", so it can be a program name with args.
6766set dummy ar; ac_word=$2
6767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$ac_ct_AR"; then
6773  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780  for ac_exec_ext in '' $ac_executable_extensions; do
6781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782    ac_cv_prog_ac_ct_AR="ar"
6783    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_AR=$ac_cv_prog_ac_ct_AR
6793if test -n "$ac_ct_AR"; then
6794  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6795$as_echo "$ac_ct_AR" >&6; }
6796else
6797  { $as_echo "$as_me:$LINENO: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801  if test "x$ac_ct_AR" = x; then
6802    AR="false"
6803  else
6804    case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810    AR=$ac_ct_AR
6811  fi
6812else
6813  AR="$ac_cv_prog_AR"
6814fi
6815
6816if test -n "$ac_tool_prefix"; then
6817  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_RANLIB+set}" = set; then
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$RANLIB"; then
6825  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832  for ac_exec_ext in '' $ac_executable_extensions; do
6833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6835    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844RANLIB=$ac_cv_prog_RANLIB
6845if test -n "$RANLIB"; then
6846  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6847$as_echo "$RANLIB" >&6; }
6848else
6849  { $as_echo "$as_me:$LINENO: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_RANLIB"; then
6856  ac_ct_RANLIB=$RANLIB
6857  # Extract the first word of "ranlib", so it can be a program name with args.
6858set dummy ranlib; ac_word=$2
6859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$ac_ct_RANLIB"; then
6865  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872  for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_ac_ct_RANLIB="ranlib"
6875    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6885if test -n "$ac_ct_RANLIB"; then
6886  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6887$as_echo "$ac_ct_RANLIB" >&6; }
6888else
6889  { $as_echo "$as_me:$LINENO: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893  if test "x$ac_ct_RANLIB" = x; then
6894    RANLIB=":"
6895  else
6896    case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902    RANLIB=$ac_ct_RANLIB
6903  fi
6904else
6905  RANLIB="$ac_cv_prog_RANLIB"
6906fi
6907
6908if test -n "$ac_tool_prefix"; then
6909  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6910set dummy ${ac_tool_prefix}strip; ac_word=$2
6911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
6913if test "${ac_cv_prog_STRIP+set}" = set; then
6914  $as_echo_n "(cached) " >&6
6915else
6916  if test -n "$STRIP"; then
6917  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924  for ac_exec_ext in '' $ac_executable_extensions; do
6925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6927    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928    break 2
6929  fi
6930done
6931done
6932IFS=$as_save_IFS
6933
6934fi
6935fi
6936STRIP=$ac_cv_prog_STRIP
6937if test -n "$STRIP"; then
6938  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6939$as_echo "$STRIP" >&6; }
6940else
6941  { $as_echo "$as_me:$LINENO: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945
6946fi
6947if test -z "$ac_cv_prog_STRIP"; then
6948  ac_ct_STRIP=$STRIP
6949  # Extract the first word of "strip", so it can be a program name with args.
6950set dummy strip; ac_word=$2
6951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6954  $as_echo_n "(cached) " >&6
6955else
6956  if test -n "$ac_ct_STRIP"; then
6957  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964  for ac_exec_ext in '' $ac_executable_extensions; do
6965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966    ac_cv_prog_ac_ct_STRIP="strip"
6967    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6977if test -n "$ac_ct_STRIP"; then
6978  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6979$as_echo "$ac_ct_STRIP" >&6; }
6980else
6981  { $as_echo "$as_me:$LINENO: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985  if test "x$ac_ct_STRIP" = x; then
6986    STRIP=":"
6987  else
6988    case $cross_compiling:$ac_tool_warned in
6989yes:)
6990{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992ac_tool_warned=yes ;;
6993esac
6994    STRIP=$ac_ct_STRIP
6995  fi
6996else
6997  STRIP="$ac_cv_prog_STRIP"
6998fi
6999
7000
7001old_CC="$CC"
7002old_CFLAGS="$CFLAGS"
7003
7004# Set sane defaults for various variables
7005test -z "$AR" && AR=ar
7006test -z "$AR_FLAGS" && AR_FLAGS=cru
7007test -z "$AS" && AS=as
7008test -z "$CC" && CC=cc
7009test -z "$LTCC" && LTCC=$CC
7010test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7011test -z "$DLLTOOL" && DLLTOOL=dlltool
7012test -z "$LD" && LD=ld
7013test -z "$LN_S" && LN_S="ln -s"
7014test -z "$MAGIC_CMD" && MAGIC_CMD=file
7015test -z "$NM" && NM=nm
7016test -z "$SED" && SED=sed
7017test -z "$OBJDUMP" && OBJDUMP=objdump
7018test -z "$RANLIB" && RANLIB=:
7019test -z "$STRIP" && STRIP=:
7020test -z "$ac_objext" && ac_objext=o
7021
7022# Determine commands to create old-style static archives.
7023old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7024old_postinstall_cmds='chmod 644 $oldlib'
7025old_postuninstall_cmds=
7026
7027if test -n "$RANLIB"; then
7028  case $host_os in
7029  openbsd*)
7030    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7031    ;;
7032  *)
7033    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7034    ;;
7035  esac
7036  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7037fi
7038
7039for cc_temp in $compiler""; do
7040  case $cc_temp in
7041    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7042    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7043    \-*) ;;
7044    *) break;;
7045  esac
7046done
7047cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7048
7049
7050# Only perform the check for file, if the check method requires it
7051case $deplibs_check_method in
7052file_magic*)
7053  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7054    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7055$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7056if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7057  $as_echo_n "(cached) " >&6
7058else
7059  case $MAGIC_CMD in
7060[\\/*] |  ?:[\\/]*)
7061  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7062  ;;
7063*)
7064  lt_save_MAGIC_CMD="$MAGIC_CMD"
7065  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7066  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7067  for ac_dir in $ac_dummy; do
7068    IFS="$lt_save_ifs"
7069    test -z "$ac_dir" && ac_dir=.
7070    if test -f $ac_dir/${ac_tool_prefix}file; then
7071      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7072      if test -n "$file_magic_test_file"; then
7073	case $deplibs_check_method in
7074	"file_magic "*)
7075	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7076	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7078	    $EGREP "$file_magic_regex" > /dev/null; then
7079	    :
7080	  else
7081	    cat <<EOF 1>&2
7082
7083*** Warning: the command libtool uses to detect shared libraries,
7084*** $file_magic_cmd, produces output that libtool cannot recognize.
7085*** The result is that libtool may fail to recognize shared libraries
7086*** as such.  This will affect the creation of libtool libraries that
7087*** depend on shared libraries, but programs linked with such libtool
7088*** libraries will work regardless of this problem.  Nevertheless, you
7089*** may want to report the problem to your system manager and/or to
7090*** bug-libtool@gnu.org
7091
7092EOF
7093	  fi ;;
7094	esac
7095      fi
7096      break
7097    fi
7098  done
7099  IFS="$lt_save_ifs"
7100  MAGIC_CMD="$lt_save_MAGIC_CMD"
7101  ;;
7102esac
7103fi
7104
7105MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7106if test -n "$MAGIC_CMD"; then
7107  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7108$as_echo "$MAGIC_CMD" >&6; }
7109else
7110  { $as_echo "$as_me:$LINENO: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114if test -z "$lt_cv_path_MAGIC_CMD"; then
7115  if test -n "$ac_tool_prefix"; then
7116    { $as_echo "$as_me:$LINENO: checking for file" >&5
7117$as_echo_n "checking for file... " >&6; }
7118if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7119  $as_echo_n "(cached) " >&6
7120else
7121  case $MAGIC_CMD in
7122[\\/*] |  ?:[\\/]*)
7123  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7124  ;;
7125*)
7126  lt_save_MAGIC_CMD="$MAGIC_CMD"
7127  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7128  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7129  for ac_dir in $ac_dummy; do
7130    IFS="$lt_save_ifs"
7131    test -z "$ac_dir" && ac_dir=.
7132    if test -f $ac_dir/file; then
7133      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7134      if test -n "$file_magic_test_file"; then
7135	case $deplibs_check_method in
7136	"file_magic "*)
7137	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7138	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7140	    $EGREP "$file_magic_regex" > /dev/null; then
7141	    :
7142	  else
7143	    cat <<EOF 1>&2
7144
7145*** Warning: the command libtool uses to detect shared libraries,
7146*** $file_magic_cmd, produces output that libtool cannot recognize.
7147*** The result is that libtool may fail to recognize shared libraries
7148*** as such.  This will affect the creation of libtool libraries that
7149*** depend on shared libraries, but programs linked with such libtool
7150*** libraries will work regardless of this problem.  Nevertheless, you
7151*** may want to report the problem to your system manager and/or to
7152*** bug-libtool@gnu.org
7153
7154EOF
7155	  fi ;;
7156	esac
7157      fi
7158      break
7159    fi
7160  done
7161  IFS="$lt_save_ifs"
7162  MAGIC_CMD="$lt_save_MAGIC_CMD"
7163  ;;
7164esac
7165fi
7166
7167MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168if test -n "$MAGIC_CMD"; then
7169  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7170$as_echo "$MAGIC_CMD" >&6; }
7171else
7172  { $as_echo "$as_me:$LINENO: result: no" >&5
7173$as_echo "no" >&6; }
7174fi
7175
7176  else
7177    MAGIC_CMD=:
7178  fi
7179fi
7180
7181  fi
7182  ;;
7183esac
7184
7185
7186  case $host_os in
7187    rhapsody* | darwin*)
7188    if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$DSYMUTIL"; then
7197  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204  for ac_exec_ext in '' $ac_executable_extensions; do
7205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7207    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217if test -n "$DSYMUTIL"; then
7218  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7219$as_echo "$DSYMUTIL" >&6; }
7220else
7221  { $as_echo "$as_me:$LINENO: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_DSYMUTIL"; then
7228  ac_ct_DSYMUTIL=$DSYMUTIL
7229  # Extract the first word of "dsymutil", so it can be a program name with args.
7230set dummy dsymutil; ac_word=$2
7231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$ac_ct_DSYMUTIL"; then
7237  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244  for ac_exec_ext in '' $ac_executable_extensions; do
7245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7247    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257if test -n "$ac_ct_DSYMUTIL"; then
7258  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7259$as_echo "$ac_ct_DSYMUTIL" >&6; }
7260else
7261  { $as_echo "$as_me:$LINENO: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_DSYMUTIL" = x; then
7266    DSYMUTIL=":"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274    DSYMUTIL=$ac_ct_DSYMUTIL
7275  fi
7276else
7277  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7278fi
7279
7280    if test -n "$ac_tool_prefix"; then
7281  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7282set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if test "${ac_cv_prog_NMEDIT+set}" = set; then
7286  $as_echo_n "(cached) " >&6
7287else
7288  if test -n "$NMEDIT"; then
7289  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296  for ac_exec_ext in '' $ac_executable_extensions; do
7297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7299    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308NMEDIT=$ac_cv_prog_NMEDIT
7309if test -n "$NMEDIT"; then
7310  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7311$as_echo "$NMEDIT" >&6; }
7312else
7313  { $as_echo "$as_me:$LINENO: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318fi
7319if test -z "$ac_cv_prog_NMEDIT"; then
7320  ac_ct_NMEDIT=$NMEDIT
7321  # Extract the first word of "nmedit", so it can be a program name with args.
7322set dummy nmedit; ac_word=$2
7323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7326  $as_echo_n "(cached) " >&6
7327else
7328  if test -n "$ac_ct_NMEDIT"; then
7329  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346fi
7347fi
7348ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7349if test -n "$ac_ct_NMEDIT"; then
7350  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7351$as_echo "$ac_ct_NMEDIT" >&6; }
7352else
7353  { $as_echo "$as_me:$LINENO: result: no" >&5
7354$as_echo "no" >&6; }
7355fi
7356
7357  if test "x$ac_ct_NMEDIT" = x; then
7358    NMEDIT=":"
7359  else
7360    case $cross_compiling:$ac_tool_warned in
7361yes:)
7362{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364ac_tool_warned=yes ;;
7365esac
7366    NMEDIT=$ac_ct_NMEDIT
7367  fi
7368else
7369  NMEDIT="$ac_cv_prog_NMEDIT"
7370fi
7371
7372
7373    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7376  $as_echo_n "(cached) " >&6
7377else
7378  lt_cv_apple_cc_single_mod=no
7379      if test -z "${LT_MULTI_MODULE}"; then
7380   # By default we will add the -single_module flag. You can override
7381   # by either setting the environment variable LT_MULTI_MODULE
7382   # non-empty at configure time, or by adding -multi_module to the
7383   # link flags.
7384   echo "int foo(void){return 1;}" > conftest.c
7385   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7386     -dynamiclib ${wl}-single_module conftest.c
7387   if test -f libconftest.dylib; then
7388     lt_cv_apple_cc_single_mod=yes
7389     rm -rf libconftest.dylib*
7390   fi
7391   rm conftest.c
7392      fi
7393fi
7394{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7395$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7396    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7397$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7398if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7399  $as_echo_n "(cached) " >&6
7400else
7401  lt_cv_ld_exported_symbols_list=no
7402      save_LDFLAGS=$LDFLAGS
7403      echo "_main" > conftest.sym
7404      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7405      cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411
7412int
7413main ()
7414{
7415
7416  ;
7417  return 0;
7418}
7419_ACEOF
7420rm -f conftest.$ac_objext conftest$ac_exeext
7421if { (ac_try="$ac_link"
7422case "(($ac_try" in
7423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424  *) ac_try_echo=$ac_try;;
7425esac
7426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7427$as_echo "$ac_try_echo") >&5
7428  (eval "$ac_link") 2>conftest.er1
7429  ac_status=$?
7430  grep -v '^ *+' conftest.er1 >conftest.err
7431  rm -f conftest.er1
7432  cat conftest.err >&5
7433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434  (exit $ac_status); } && {
7435	 test -z "$ac_c_werror_flag" ||
7436	 test ! -s conftest.err
7437       } && test -s conftest$ac_exeext && {
7438	 test "$cross_compiling" = yes ||
7439	 $as_test_x conftest$ac_exeext
7440       }; then
7441  lt_cv_ld_exported_symbols_list=yes
7442else
7443  $as_echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446	lt_cv_ld_exported_symbols_list=no
7447fi
7448
7449rm -rf conftest.dSYM
7450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7451      conftest$ac_exeext conftest.$ac_ext
7452   LDFLAGS="$save_LDFLAGS"
7453
7454fi
7455{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7456$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7457    case $host_os in
7458    rhapsody* | darwin1.[0123])
7459      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7460    darwin1.*)
7461     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7462    darwin*)
7463      # if running on 10.5 or later, the deployment target defaults
7464      # to the OS version, if on x86, and 10.4, the deployment
7465      # target defaults to 10.4. Don't you love it?
7466      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7467   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7468     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7469   10.[012]*)
7470     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7471   10.*)
7472     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7473      esac
7474    ;;
7475  esac
7476    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7477      _lt_dar_single_mod='$single_module'
7478    fi
7479    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7480      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7481    else
7482      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7483    fi
7484    if test "$DSYMUTIL" != ":"; then
7485      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7486    else
7487      _lt_dsymutil=
7488    fi
7489    ;;
7490  esac
7491
7492
7493enable_dlopen=no
7494enable_win32_dll=no
7495
7496# Check whether --enable-libtool-lock was given.
7497if test "${enable_libtool_lock+set}" = set; then
7498  enableval=$enable_libtool_lock;
7499fi
7500
7501test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7502
7503
7504# Check whether --with-pic was given.
7505if test "${with_pic+set}" = set; then
7506  withval=$with_pic; pic_mode="$withval"
7507else
7508  pic_mode=default
7509fi
7510
7511test -z "$pic_mode" && pic_mode=default
7512
7513# Use C for the default configuration in the libtool script
7514tagname=
7515lt_save_CC="$CC"
7516ac_ext=c
7517ac_cpp='$CPP $CPPFLAGS'
7518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522
7523# Source file extension for C test sources.
7524ac_ext=c
7525
7526# Object file extension for compiled C test sources.
7527objext=o
7528objext=$objext
7529
7530# Code to be used in simple compile tests
7531lt_simple_compile_test_code="int some_variable = 0;"
7532
7533# Code to be used in simple link tests
7534lt_simple_link_test_code='int main(){return(0);}'
7535
7536
7537# If no C compiler was specified, use CC.
7538LTCC=${LTCC-"$CC"}
7539
7540# If no C compiler flags were specified, use CFLAGS.
7541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542
7543# Allow CC to be a program name with arguments.
7544compiler=$CC
7545
7546
7547# save warnings/boilerplate of simple test code
7548ac_outfile=conftest.$ac_objext
7549echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551_lt_compiler_boilerplate=`cat conftest.err`
7552$rm conftest*
7553
7554ac_outfile=conftest.$ac_objext
7555echo "$lt_simple_link_test_code" >conftest.$ac_ext
7556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7557_lt_linker_boilerplate=`cat conftest.err`
7558$rm -r conftest*
7559
7560
7561
7562lt_prog_compiler_no_builtin_flag=
7563
7564if test "$GCC" = yes; then
7565  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7566
7567
7568{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7569$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7570if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7571  $as_echo_n "(cached) " >&6
7572else
7573  lt_cv_prog_compiler_rtti_exceptions=no
7574  ac_outfile=conftest.$ac_objext
7575   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576   lt_compiler_flag="-fno-rtti -fno-exceptions"
7577   # Insert the option either (1) after the last *FLAGS variable, or
7578   # (2) before a word containing "conftest.", or (3) at the end.
7579   # Note that $ac_compile itself does not contain backslashes and begins
7580   # with a dollar sign (not a hyphen), so the echo should work correctly.
7581   # The option is referenced via a variable to avoid confusing sed.
7582   lt_compile=`echo "$ac_compile" | $SED \
7583   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585   -e 's:$: $lt_compiler_flag:'`
7586   (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
7587   (eval "$lt_compile" 2>conftest.err)
7588   ac_status=$?
7589   cat conftest.err >&5
7590   echo "$as_me:7590: \$? = $ac_status" >&5
7591   if (exit $ac_status) && test -s "$ac_outfile"; then
7592     # The compiler can only warn and ignore the option if not recognized
7593     # So say no if there are warnings other than the usual output.
7594     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7595     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7596     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7597       lt_cv_prog_compiler_rtti_exceptions=yes
7598     fi
7599   fi
7600   $rm conftest*
7601
7602fi
7603{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7604$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7605
7606if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7607    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7608else
7609    :
7610fi
7611
7612fi
7613
7614lt_prog_compiler_wl=
7615lt_prog_compiler_pic=
7616lt_prog_compiler_static=
7617
7618{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7619$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7620
7621  if test "$GCC" = yes; then
7622    lt_prog_compiler_wl='-Wl,'
7623    lt_prog_compiler_static='-static'
7624
7625    case $host_os in
7626      aix*)
7627      # All AIX code is PIC.
7628      if test "$host_cpu" = ia64; then
7629	# AIX 5 now supports IA64 processor
7630	lt_prog_compiler_static='-Bstatic'
7631      fi
7632      ;;
7633
7634    amigaos*)
7635      # FIXME: we need at least 68020 code to build shared libraries, but
7636      # adding the `-m68020' flag to GCC prevents building anything better,
7637      # like `-m68040'.
7638      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7639      ;;
7640
7641    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7642      # PIC is the default for these OSes.
7643      ;;
7644
7645    mingw* | cygwin* | pw32* | os2*)
7646      # This hack is so that the source file can tell whether it is being
7647      # built for inclusion in a dll (and should export symbols for example).
7648      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7649      # (--disable-auto-import) libraries
7650      lt_prog_compiler_pic='-DDLL_EXPORT'
7651      ;;
7652
7653    darwin* | rhapsody*)
7654      # PIC is the default on this platform
7655      # Common symbols not allowed in MH_DYLIB files
7656      lt_prog_compiler_pic='-fno-common'
7657      ;;
7658
7659    interix[3-9]*)
7660      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7661      # Instead, we relocate shared libraries at runtime.
7662      ;;
7663
7664    msdosdjgpp*)
7665      # Just because we use GCC doesn't mean we suddenly get shared libraries
7666      # on systems that don't support them.
7667      lt_prog_compiler_can_build_shared=no
7668      enable_shared=no
7669      ;;
7670
7671    sysv4*MP*)
7672      if test -d /usr/nec; then
7673	lt_prog_compiler_pic=-Kconform_pic
7674      fi
7675      ;;
7676
7677    hpux*)
7678      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679      # not for PA HP-UX.
7680      case $host_cpu in
7681      hppa*64*|ia64*)
7682	# +Z the default
7683	;;
7684      *)
7685	lt_prog_compiler_pic='-fPIC'
7686	;;
7687      esac
7688      ;;
7689
7690    *)
7691      lt_prog_compiler_pic='-fPIC'
7692      ;;
7693    esac
7694  else
7695    # PORTME Check for flag to pass linker flags through the system compiler.
7696    case $host_os in
7697    aix*)
7698      lt_prog_compiler_wl='-Wl,'
7699      if test "$host_cpu" = ia64; then
7700	# AIX 5 now supports IA64 processor
7701	lt_prog_compiler_static='-Bstatic'
7702      else
7703	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704      fi
7705      ;;
7706      darwin*)
7707        # PIC is the default on this platform
7708        # Common symbols not allowed in MH_DYLIB files
7709       case $cc_basename in
7710         xlc*)
7711         lt_prog_compiler_pic='-qnocommon'
7712         lt_prog_compiler_wl='-Wl,'
7713         ;;
7714       esac
7715       ;;
7716
7717    mingw* | cygwin* | pw32* | os2*)
7718      # This hack is so that the source file can tell whether it is being
7719      # built for inclusion in a dll (and should export symbols for example).
7720      lt_prog_compiler_pic='-DDLL_EXPORT'
7721      ;;
7722
7723    hpux9* | hpux10* | hpux11*)
7724      lt_prog_compiler_wl='-Wl,'
7725      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7726      # not for PA HP-UX.
7727      case $host_cpu in
7728      hppa*64*|ia64*)
7729	# +Z the default
7730	;;
7731      *)
7732	lt_prog_compiler_pic='+Z'
7733	;;
7734      esac
7735      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7736      lt_prog_compiler_static='${wl}-a ${wl}archive'
7737      ;;
7738
7739    irix5* | irix6* | nonstopux*)
7740      lt_prog_compiler_wl='-Wl,'
7741      # PIC (with -KPIC) is the default.
7742      lt_prog_compiler_static='-non_shared'
7743      ;;
7744
7745    newsos6)
7746      lt_prog_compiler_pic='-KPIC'
7747      lt_prog_compiler_static='-Bstatic'
7748      ;;
7749
7750    linux* | k*bsd*-gnu)
7751      case $cc_basename in
7752      icc* | ecc*)
7753	lt_prog_compiler_wl='-Wl,'
7754	lt_prog_compiler_pic='-KPIC'
7755	lt_prog_compiler_static='-static'
7756        ;;
7757      pgcc* | pgf77* | pgf90* | pgf95*)
7758        # Portland Group compilers (*not* the Pentium gcc compiler,
7759	# which looks to be a dead project)
7760	lt_prog_compiler_wl='-Wl,'
7761	lt_prog_compiler_pic='-fpic'
7762	lt_prog_compiler_static='-Bstatic'
7763        ;;
7764      ccc*)
7765        lt_prog_compiler_wl='-Wl,'
7766        # All Alpha code is PIC.
7767        lt_prog_compiler_static='-non_shared'
7768        ;;
7769      *)
7770        case `$CC -V 2>&1 | sed 5q` in
7771	*Sun\ C*)
7772	  # Sun C 5.9
7773	  lt_prog_compiler_pic='-KPIC'
7774	  lt_prog_compiler_static='-Bstatic'
7775	  lt_prog_compiler_wl='-Wl,'
7776	  ;;
7777	*Sun\ F*)
7778	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7779	  lt_prog_compiler_pic='-KPIC'
7780	  lt_prog_compiler_static='-Bstatic'
7781	  lt_prog_compiler_wl=''
7782	  ;;
7783	esac
7784	;;
7785      esac
7786      ;;
7787
7788    osf3* | osf4* | osf5*)
7789      lt_prog_compiler_wl='-Wl,'
7790      # All OSF/1 code is PIC.
7791      lt_prog_compiler_static='-non_shared'
7792      ;;
7793
7794    rdos*)
7795      lt_prog_compiler_static='-non_shared'
7796      ;;
7797
7798    solaris*)
7799      lt_prog_compiler_pic='-KPIC'
7800      lt_prog_compiler_static='-Bstatic'
7801      case $cc_basename in
7802      f77* | f90* | f95*)
7803	lt_prog_compiler_wl='-Qoption ld ';;
7804      *)
7805	lt_prog_compiler_wl='-Wl,';;
7806      esac
7807      ;;
7808
7809    sunos4*)
7810      lt_prog_compiler_wl='-Qoption ld '
7811      lt_prog_compiler_pic='-PIC'
7812      lt_prog_compiler_static='-Bstatic'
7813      ;;
7814
7815    sysv4 | sysv4.2uw2* | sysv4.3*)
7816      lt_prog_compiler_wl='-Wl,'
7817      lt_prog_compiler_pic='-KPIC'
7818      lt_prog_compiler_static='-Bstatic'
7819      ;;
7820
7821    sysv4*MP*)
7822      if test -d /usr/nec ;then
7823	lt_prog_compiler_pic='-Kconform_pic'
7824	lt_prog_compiler_static='-Bstatic'
7825      fi
7826      ;;
7827
7828    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7829      lt_prog_compiler_wl='-Wl,'
7830      lt_prog_compiler_pic='-KPIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    unicos*)
7835      lt_prog_compiler_wl='-Wl,'
7836      lt_prog_compiler_can_build_shared=no
7837      ;;
7838
7839    uts4*)
7840      lt_prog_compiler_pic='-pic'
7841      lt_prog_compiler_static='-Bstatic'
7842      ;;
7843
7844    *)
7845      lt_prog_compiler_can_build_shared=no
7846      ;;
7847    esac
7848  fi
7849
7850{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7851$as_echo "$lt_prog_compiler_pic" >&6; }
7852
7853#
7854# Check to make sure the PIC flag actually works.
7855#
7856if test -n "$lt_prog_compiler_pic"; then
7857
7858{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7859$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7860if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7861  $as_echo_n "(cached) " >&6
7862else
7863  lt_cv_prog_compiler_pic_works=no
7864  ac_outfile=conftest.$ac_objext
7865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7867   # Insert the option either (1) after the last *FLAGS variable, or
7868   # (2) before a word containing "conftest.", or (3) at the end.
7869   # Note that $ac_compile itself does not contain backslashes and begins
7870   # with a dollar sign (not a hyphen), so the echo should work correctly.
7871   # The option is referenced via a variable to avoid confusing sed.
7872   lt_compile=`echo "$ac_compile" | $SED \
7873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875   -e 's:$: $lt_compiler_flag:'`
7876   (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
7877   (eval "$lt_compile" 2>conftest.err)
7878   ac_status=$?
7879   cat conftest.err >&5
7880   echo "$as_me:7880: \$? = $ac_status" >&5
7881   if (exit $ac_status) && test -s "$ac_outfile"; then
7882     # The compiler can only warn and ignore the option if not recognized
7883     # So say no if there are warnings other than the usual output.
7884     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7885     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887       lt_cv_prog_compiler_pic_works=yes
7888     fi
7889   fi
7890   $rm conftest*
7891
7892fi
7893{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7894$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7895
7896if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7897    case $lt_prog_compiler_pic in
7898     "" | " "*) ;;
7899     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7900     esac
7901else
7902    lt_prog_compiler_pic=
7903     lt_prog_compiler_can_build_shared=no
7904fi
7905
7906fi
7907case $host_os in
7908  # For platforms which do not support PIC, -DPIC is meaningless:
7909  *djgpp*)
7910    lt_prog_compiler_pic=
7911    ;;
7912  *)
7913    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7914    ;;
7915esac
7916
7917#
7918# Check to make sure the static flag actually works.
7919#
7920wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7921{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7922$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7923if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7924  $as_echo_n "(cached) " >&6
7925else
7926  lt_cv_prog_compiler_static_works=no
7927   save_LDFLAGS="$LDFLAGS"
7928   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7929   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7930   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7931     # The linker can only warn and ignore the option if not recognized
7932     # So say no if there are warnings
7933     if test -s conftest.err; then
7934       # Append any errors to the config.log.
7935       cat conftest.err 1>&5
7936       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7937       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938       if diff conftest.exp conftest.er2 >/dev/null; then
7939         lt_cv_prog_compiler_static_works=yes
7940       fi
7941     else
7942       lt_cv_prog_compiler_static_works=yes
7943     fi
7944   fi
7945   $rm -r conftest*
7946   LDFLAGS="$save_LDFLAGS"
7947
7948fi
7949{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7950$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7951
7952if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7953    :
7954else
7955    lt_prog_compiler_static=
7956fi
7957
7958
7959{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7961if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_prog_compiler_c_o=no
7965   $rm -r conftest 2>/dev/null
7966   mkdir conftest
7967   cd conftest
7968   mkdir out
7969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7970
7971   lt_compiler_flag="-o out/conftest2.$ac_objext"
7972   # Insert the option either (1) after the last *FLAGS variable, or
7973   # (2) before a word containing "conftest.", or (3) at the end.
7974   # Note that $ac_compile itself does not contain backslashes and begins
7975   # with a dollar sign (not a hyphen), so the echo should work correctly.
7976   lt_compile=`echo "$ac_compile" | $SED \
7977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979   -e 's:$: $lt_compiler_flag:'`
7980   (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981   (eval "$lt_compile" 2>out/conftest.err)
7982   ac_status=$?
7983   cat out/conftest.err >&5
7984   echo "$as_me:7984: \$? = $ac_status" >&5
7985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7986   then
7987     # The compiler can only warn and ignore the option if not recognized
7988     # So say no if there are warnings
7989     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7992       lt_cv_prog_compiler_c_o=yes
7993     fi
7994   fi
7995   chmod u+w . 2>&5
7996   $rm conftest*
7997   # SGI C++ compiler will create directory out/ii_files/ for
7998   # template instantiation
7999   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8000   $rm out/* && rmdir out
8001   cd ..
8002   rmdir conftest
8003   $rm conftest*
8004
8005fi
8006{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8008
8009
8010hard_links="nottested"
8011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8012  # do not overwrite the value of need_locks provided by the user
8013  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8014$as_echo_n "checking if we can lock with hard links... " >&6; }
8015  hard_links=yes
8016  $rm conftest*
8017  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8018  touch conftest.a
8019  ln conftest.a conftest.b 2>&5 || hard_links=no
8020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8021  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8022$as_echo "$hard_links" >&6; }
8023  if test "$hard_links" = no; then
8024    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8025$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8026    need_locks=warn
8027  fi
8028else
8029  need_locks=no
8030fi
8031
8032{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8034
8035  runpath_var=
8036  allow_undefined_flag=
8037  enable_shared_with_static_runtimes=no
8038  archive_cmds=
8039  archive_expsym_cmds=
8040  old_archive_From_new_cmds=
8041  old_archive_from_expsyms_cmds=
8042  export_dynamic_flag_spec=
8043  whole_archive_flag_spec=
8044  thread_safe_flag_spec=
8045  hardcode_libdir_flag_spec=
8046  hardcode_libdir_flag_spec_ld=
8047  hardcode_libdir_separator=
8048  hardcode_direct=no
8049  hardcode_minus_L=no
8050  hardcode_shlibpath_var=unsupported
8051  link_all_deplibs=unknown
8052  hardcode_automatic=no
8053  module_cmds=
8054  module_expsym_cmds=
8055  always_export_symbols=no
8056  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8057  # include_expsyms should be a list of space-separated symbols to be *always*
8058  # included in the symbol list
8059  include_expsyms=
8060  # exclude_expsyms can be an extended regexp of symbols to exclude
8061  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8062  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8063  # as well as any symbol that contains `d'.
8064  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8065  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8066  # platforms (ab)use it in PIC code, but their linkers get confused if
8067  # the symbol is explicitly referenced.  Since portable code cannot
8068  # rely on this symbol name, it's probably fine to never include it in
8069  # preloaded symbol tables.
8070  # Exclude shared library initialization/finalization symbols.
8071  extract_expsyms_cmds=
8072  # Just being paranoid about ensuring that cc_basename is set.
8073  for cc_temp in $compiler""; do
8074  case $cc_temp in
8075    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8076    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8077    \-*) ;;
8078    *) break;;
8079  esac
8080done
8081cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8082
8083  case $host_os in
8084  cygwin* | mingw* | pw32*)
8085    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8086    # When not using gcc, we currently assume that we are using
8087    # Microsoft Visual C++.
8088    if test "$GCC" != yes; then
8089      with_gnu_ld=no
8090    fi
8091    ;;
8092  interix*)
8093    # we just hope/assume this is gcc and not c89 (= MSVC++)
8094    with_gnu_ld=yes
8095    ;;
8096  openbsd*)
8097    with_gnu_ld=no
8098    ;;
8099  esac
8100
8101  ld_shlibs=yes
8102  if test "$with_gnu_ld" = yes; then
8103    # If archive_cmds runs LD, not CC, wlarc should be empty
8104    wlarc='${wl}'
8105
8106    # Set some defaults for GNU ld with shared library support. These
8107    # are reset later if shared libraries are not supported. Putting them
8108    # here allows them to be overridden if necessary.
8109    runpath_var=LD_RUN_PATH
8110    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8111    export_dynamic_flag_spec='${wl}--export-dynamic'
8112    # ancient GNU ld didn't support --whole-archive et. al.
8113    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8114	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8115      else
8116  	whole_archive_flag_spec=
8117    fi
8118    supports_anon_versioning=no
8119    case `$LD -v 2>/dev/null` in
8120      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8121      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8122      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8123      *\ 2.11.*) ;; # other 2.11 versions
8124      *) supports_anon_versioning=yes ;;
8125    esac
8126
8127    # See if GNU ld supports shared libraries.
8128    case $host_os in
8129    aix[3-9]*)
8130      # On AIX/PPC, the GNU linker is very broken
8131      if test "$host_cpu" != ia64; then
8132	ld_shlibs=no
8133	cat <<EOF 1>&2
8134
8135*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8136*** to be unable to reliably create shared libraries on AIX.
8137*** Therefore, libtool is disabling shared libraries support.  If you
8138*** really care for shared libraries, you may want to modify your PATH
8139*** so that a non-GNU linker is found, and then restart.
8140
8141EOF
8142      fi
8143      ;;
8144
8145    amigaos*)
8146      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)'
8147      hardcode_libdir_flag_spec='-L$libdir'
8148      hardcode_minus_L=yes
8149
8150      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8151      # that the semantics of dynamic libraries on AmigaOS, at least up
8152      # to version 4, is to share data among multiple programs linked
8153      # with the same dynamic library.  Since this doesn't match the
8154      # behavior of shared libraries on other platforms, we can't use
8155      # them.
8156      ld_shlibs=no
8157      ;;
8158
8159    beos*)
8160      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8161	allow_undefined_flag=unsupported
8162	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8163	# support --undefined.  This deserves some investigation.  FIXME
8164	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165      else
8166	ld_shlibs=no
8167      fi
8168      ;;
8169
8170    cygwin* | mingw* | pw32*)
8171      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8172      # as there is no search path for DLLs.
8173      hardcode_libdir_flag_spec='-L$libdir'
8174      allow_undefined_flag=unsupported
8175      always_export_symbols=no
8176      enable_shared_with_static_runtimes=yes
8177      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8178
8179      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8180        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8181	# If the export-symbols file already is a .def file (1st line
8182	# is EXPORTS), use it as is; otherwise, prepend...
8183	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8184	  cp $export_symbols $output_objdir/$soname.def;
8185	else
8186	  echo EXPORTS > $output_objdir/$soname.def;
8187	  cat $export_symbols >> $output_objdir/$soname.def;
8188	fi~
8189	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190      else
8191	ld_shlibs=no
8192      fi
8193      ;;
8194
8195    interix[3-9]*)
8196      hardcode_direct=no
8197      hardcode_shlibpath_var=no
8198      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8199      export_dynamic_flag_spec='${wl}-E'
8200      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8201      # Instead, shared libraries are loaded at an image base (0x10000000 by
8202      # default) and relocated if they conflict, which is a slow very memory
8203      # consuming and fragmenting process.  To avoid this, we pick a random,
8204      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8205      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8206      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8207      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'
8208      ;;
8209
8210    gnu* | linux* | k*bsd*-gnu)
8211      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212	tmp_addflag=
8213	case $cc_basename,$host_cpu in
8214	pgcc*)				# Portland Group C compiler
8215	  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'
8216	  tmp_addflag=' $pic_flag'
8217	  ;;
8218	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8219	  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'
8220	  tmp_addflag=' $pic_flag -Mnomain' ;;
8221	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8222	  tmp_addflag=' -i_dynamic' ;;
8223	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8224	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8225	ifc* | ifort*)			# Intel Fortran compiler
8226	  tmp_addflag=' -nofor_main' ;;
8227	esac
8228	case `$CC -V 2>&1 | sed 5q` in
8229	*Sun\ C*)			# Sun C 5.9
8230	  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'
8231	  tmp_sharedflag='-G' ;;
8232	*Sun\ F*)			# Sun Fortran 8.3
8233	  tmp_sharedflag='-G' ;;
8234	*)
8235	  tmp_sharedflag='-shared' ;;
8236	esac
8237	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238
8239	if test $supports_anon_versioning = yes; then
8240	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8241  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8242  $echo "local: *; };" >> $output_objdir/$libname.ver~
8243	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8244	fi
8245      else
8246	ld_shlibs=no
8247      fi
8248      ;;
8249
8250    netbsd*)
8251      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8252	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8253	wlarc=
8254      else
8255	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257      fi
8258      ;;
8259
8260    solaris*)
8261      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8262	ld_shlibs=no
8263	cat <<EOF 1>&2
8264
8265*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8266*** create shared libraries on Solaris systems.  Therefore, libtool
8267*** is disabling shared libraries support.  We urge you to upgrade GNU
8268*** binutils to release 2.9.1 or newer.  Another option is to modify
8269*** your PATH or compiler configuration so that the native linker is
8270*** used, and then restart.
8271
8272EOF
8273      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276      else
8277	ld_shlibs=no
8278      fi
8279      ;;
8280
8281    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8282      case `$LD -v 2>&1` in
8283        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8284	ld_shlibs=no
8285	cat <<_LT_EOF 1>&2
8286
8287*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8288*** reliably create shared libraries on SCO systems.  Therefore, libtool
8289*** is disabling shared libraries support.  We urge you to upgrade GNU
8290*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8291*** your PATH or compiler configuration so that the native linker is
8292*** used, and then restart.
8293
8294_LT_EOF
8295	;;
8296	*)
8297	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8298	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8299	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8300	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8301	  else
8302	    ld_shlibs=no
8303	  fi
8304	;;
8305      esac
8306      ;;
8307
8308    sunos4*)
8309      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310      wlarc=
8311      hardcode_direct=yes
8312      hardcode_shlibpath_var=no
8313      ;;
8314
8315    *)
8316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319      else
8320	ld_shlibs=no
8321      fi
8322      ;;
8323    esac
8324
8325    if test "$ld_shlibs" = no; then
8326      runpath_var=
8327      hardcode_libdir_flag_spec=
8328      export_dynamic_flag_spec=
8329      whole_archive_flag_spec=
8330    fi
8331  else
8332    # PORTME fill in a description of your system's linker (not GNU ld)
8333    case $host_os in
8334    aix3*)
8335      allow_undefined_flag=unsupported
8336      always_export_symbols=yes
8337      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'
8338      # Note: this linker hardcodes the directories in LIBPATH if there
8339      # are no directories specified by -L.
8340      hardcode_minus_L=yes
8341      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8342	# Neither direct hardcoding nor static linking is supported with a
8343	# broken collect2.
8344	hardcode_direct=unsupported
8345      fi
8346      ;;
8347
8348    aix[4-9]*)
8349      if test "$host_cpu" = ia64; then
8350	# On IA64, the linker does run time linking by default, so we don't
8351	# have to do anything special.
8352	aix_use_runtimelinking=no
8353	exp_sym_flag='-Bexport'
8354	no_entry_flag=""
8355      else
8356	# If we're using GNU nm, then we don't want the "-C" option.
8357	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8358	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359	  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'
8360	else
8361	  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'
8362	fi
8363	aix_use_runtimelinking=no
8364
8365	# Test if we are trying to use run time linking or normal
8366	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367	# need to do runtime linking.
8368	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8369	  for ld_flag in $LDFLAGS; do
8370  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371  	    aix_use_runtimelinking=yes
8372  	    break
8373  	  fi
8374	  done
8375	  ;;
8376	esac
8377
8378	exp_sym_flag='-bexport'
8379	no_entry_flag='-bnoentry'
8380      fi
8381
8382      # When large executables or shared objects are built, AIX ld can
8383      # have problems creating the table of contents.  If linking a library
8384      # or program results in "error TOC overflow" add -mminimal-toc to
8385      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8386      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8387
8388      archive_cmds=''
8389      hardcode_direct=yes
8390      hardcode_libdir_separator=':'
8391      link_all_deplibs=yes
8392
8393      if test "$GCC" = yes; then
8394	case $host_os in aix4.[012]|aix4.[012].*)
8395	# We only want to do this on AIX 4.2 and lower, the check
8396	# below for broken collect2 doesn't work under 4.3+
8397	  collect2name=`${CC} -print-prog-name=collect2`
8398	  if test -f "$collect2name" && \
8399  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8400	  then
8401  	  # We have reworked collect2
8402  	  :
8403	  else
8404  	  # We have old collect2
8405  	  hardcode_direct=unsupported
8406  	  # It fails to find uninstalled libraries when the uninstalled
8407  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8408  	  # to unsupported forces relinking
8409  	  hardcode_minus_L=yes
8410  	  hardcode_libdir_flag_spec='-L$libdir'
8411  	  hardcode_libdir_separator=
8412	  fi
8413	  ;;
8414	esac
8415	shared_flag='-shared'
8416	if test "$aix_use_runtimelinking" = yes; then
8417	  shared_flag="$shared_flag "'${wl}-G'
8418	fi
8419      else
8420	# not using gcc
8421	if test "$host_cpu" = ia64; then
8422  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8423  	# chokes on -Wl,-G. The following line is correct:
8424	  shared_flag='-G'
8425	else
8426	  if test "$aix_use_runtimelinking" = yes; then
8427	    shared_flag='${wl}-G'
8428	  else
8429	    shared_flag='${wl}-bM:SRE'
8430	  fi
8431	fi
8432      fi
8433
8434      # It seems that -bexpall does not export symbols beginning with
8435      # underscore (_), so it is better to generate a list of symbols to export.
8436      always_export_symbols=yes
8437      if test "$aix_use_runtimelinking" = yes; then
8438	# Warning - without using the other runtime loading flags (-brtl),
8439	# -berok will link without error, but may produce a broken library.
8440	allow_undefined_flag='-berok'
8441       # Determine the default libpath from the value encoded in an empty executable.
8442       cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h.  */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h.  */
8448
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (ac_try="$ac_link"
8459case "(($ac_try" in
8460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461  *) ac_try_echo=$ac_try;;
8462esac
8463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464$as_echo "$ac_try_echo") >&5
8465  (eval "$ac_link") 2>conftest.er1
8466  ac_status=$?
8467  grep -v '^ *+' conftest.er1 >conftest.err
8468  rm -f conftest.er1
8469  cat conftest.err >&5
8470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); } && {
8472	 test -z "$ac_c_werror_flag" ||
8473	 test ! -s conftest.err
8474       } && test -s conftest$ac_exeext && {
8475	 test "$cross_compiling" = yes ||
8476	 $as_test_x conftest$ac_exeext
8477       }; then
8478
8479lt_aix_libpath_sed='
8480    /Import File Strings/,/^$/ {
8481	/^0/ {
8482	    s/^0  *\(.*\)$/\1/
8483	    p
8484	}
8485    }'
8486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487# Check for a 64-bit object if we didn't find anything.
8488if test -z "$aix_libpath"; then
8489  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490fi
8491else
8492  $as_echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5
8494
8495
8496fi
8497
8498rm -rf conftest.dSYM
8499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8500      conftest$ac_exeext conftest.$ac_ext
8501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502
8503       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8504	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"
8505       else
8506	if test "$host_cpu" = ia64; then
8507	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8508	  allow_undefined_flag="-z nodefs"
8509	  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"
8510	else
8511	 # Determine the default libpath from the value encoded in an empty executable.
8512	 cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h.  */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h.  */
8518
8519int
8520main ()
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (ac_try="$ac_link"
8529case "(($ac_try" in
8530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531  *) ac_try_echo=$ac_try;;
8532esac
8533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
8535  (eval "$ac_link") 2>conftest.er1
8536  ac_status=$?
8537  grep -v '^ *+' conftest.er1 >conftest.err
8538  rm -f conftest.er1
8539  cat conftest.err >&5
8540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); } && {
8542	 test -z "$ac_c_werror_flag" ||
8543	 test ! -s conftest.err
8544       } && test -s conftest$ac_exeext && {
8545	 test "$cross_compiling" = yes ||
8546	 $as_test_x conftest$ac_exeext
8547       }; then
8548
8549lt_aix_libpath_sed='
8550    /Import File Strings/,/^$/ {
8551	/^0/ {
8552	    s/^0  *\(.*\)$/\1/
8553	    p
8554	}
8555    }'
8556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8557# Check for a 64-bit object if we didn't find anything.
8558if test -z "$aix_libpath"; then
8559  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8560fi
8561else
8562  $as_echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566fi
8567
8568rm -rf conftest.dSYM
8569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570      conftest$ac_exeext conftest.$ac_ext
8571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572
8573	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574	  # Warning - without using the other run time loading flags,
8575	  # -berok will link without error, but may produce a broken library.
8576	  no_undefined_flag=' ${wl}-bernotok'
8577	  allow_undefined_flag=' ${wl}-berok'
8578	  # Exported symbols can be pulled into shared objects from archives
8579	  whole_archive_flag_spec='$convenience'
8580	  archive_cmds_need_lc=yes
8581	  # This is similar to how AIX traditionally builds its shared libraries.
8582	  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'
8583	fi
8584      fi
8585      ;;
8586
8587    amigaos*)
8588      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)'
8589      hardcode_libdir_flag_spec='-L$libdir'
8590      hardcode_minus_L=yes
8591      # see comment about different semantics on the GNU ld section
8592      ld_shlibs=no
8593      ;;
8594
8595    bsdi[45]*)
8596      export_dynamic_flag_spec=-rdynamic
8597      ;;
8598
8599    cygwin* | mingw* | pw32*)
8600      # When not using gcc, we currently assume that we are using
8601      # Microsoft Visual C++.
8602      # hardcode_libdir_flag_spec is actually meaningless, as there is
8603      # no search path for DLLs.
8604      hardcode_libdir_flag_spec=' '
8605      allow_undefined_flag=unsupported
8606      # Tell ltmain to make .lib files, not .a files.
8607      libext=lib
8608      # Tell ltmain to make .dll files, not .so files.
8609      shrext_cmds=".dll"
8610      # FIXME: Setting linknames here is a bad hack.
8611      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8612      # The linker will automatically build a .lib file if we build a DLL.
8613      old_archive_From_new_cmds='true'
8614      # FIXME: Should let the user specify the lib program.
8615      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8616      fix_srcfile_path='`cygpath -w "$srcfile"`'
8617      enable_shared_with_static_runtimes=yes
8618      ;;
8619
8620    darwin* | rhapsody*)
8621      case $host_os in
8622        rhapsody* | darwin1.[012])
8623         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8624         ;;
8625       *) # Darwin 1.3 on
8626         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8627           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8628         else
8629           case ${MACOSX_DEPLOYMENT_TARGET} in
8630             10.[012])
8631               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632               ;;
8633             10.*)
8634               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8635               ;;
8636           esac
8637         fi
8638         ;;
8639      esac
8640      archive_cmds_need_lc=no
8641      hardcode_direct=no
8642      hardcode_automatic=yes
8643      hardcode_shlibpath_var=unsupported
8644      whole_archive_flag_spec=''
8645      link_all_deplibs=yes
8646    if test "$GCC" = yes ; then
8647    	output_verbose_link_cmd='echo'
8648        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650        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}"
8651        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}"
8652    else
8653      case $cc_basename in
8654        xlc*)
8655         output_verbose_link_cmd='echo'
8656         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8657         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8659         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}'
8660          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}'
8661          ;;
8662       *)
8663         ld_shlibs=no
8664          ;;
8665      esac
8666    fi
8667      ;;
8668
8669    dgux*)
8670      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671      hardcode_libdir_flag_spec='-L$libdir'
8672      hardcode_shlibpath_var=no
8673      ;;
8674
8675    freebsd1*)
8676      ld_shlibs=no
8677      ;;
8678
8679    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680    # support.  Future versions do this automatically, but an explicit c++rt0.o
8681    # does not break anything, and helps significantly (at the cost of a little
8682    # extra space).
8683    freebsd2.2*)
8684      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685      hardcode_libdir_flag_spec='-R$libdir'
8686      hardcode_direct=yes
8687      hardcode_shlibpath_var=no
8688      ;;
8689
8690    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691    freebsd2*)
8692      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693      hardcode_direct=yes
8694      hardcode_minus_L=yes
8695      hardcode_shlibpath_var=no
8696      ;;
8697
8698    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699    freebsd* | dragonfly*)
8700      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701      hardcode_libdir_flag_spec='-R$libdir'
8702      hardcode_direct=yes
8703      hardcode_shlibpath_var=no
8704      ;;
8705
8706    hpux9*)
8707      if test "$GCC" = yes; then
8708	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'
8709      else
8710	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'
8711      fi
8712      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713      hardcode_libdir_separator=:
8714      hardcode_direct=yes
8715
8716      # hardcode_minus_L: Not really in the search PATH,
8717      # but as the default location of the library.
8718      hardcode_minus_L=yes
8719      export_dynamic_flag_spec='${wl}-E'
8720      ;;
8721
8722    hpux10*)
8723      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725      else
8726	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8727      fi
8728      if test "$with_gnu_ld" = no; then
8729	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730	hardcode_libdir_separator=:
8731
8732	hardcode_direct=yes
8733	export_dynamic_flag_spec='${wl}-E'
8734
8735	# hardcode_minus_L: Not really in the search PATH,
8736	# but as the default location of the library.
8737	hardcode_minus_L=yes
8738      fi
8739      ;;
8740
8741    hpux11*)
8742      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8743	case $host_cpu in
8744	hppa*64*)
8745	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746	  ;;
8747	ia64*)
8748	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8749	  ;;
8750	*)
8751	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752	  ;;
8753	esac
8754      else
8755	case $host_cpu in
8756	hppa*64*)
8757	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758	  ;;
8759	ia64*)
8760	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8761	  ;;
8762	*)
8763	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764	  ;;
8765	esac
8766      fi
8767      if test "$with_gnu_ld" = no; then
8768	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769	hardcode_libdir_separator=:
8770
8771	case $host_cpu in
8772	hppa*64*|ia64*)
8773	  hardcode_libdir_flag_spec_ld='+b $libdir'
8774	  hardcode_direct=no
8775	  hardcode_shlibpath_var=no
8776	  ;;
8777	*)
8778	  hardcode_direct=yes
8779	  export_dynamic_flag_spec='${wl}-E'
8780
8781	  # hardcode_minus_L: Not really in the search PATH,
8782	  # but as the default location of the library.
8783	  hardcode_minus_L=yes
8784	  ;;
8785	esac
8786      fi
8787      ;;
8788
8789    irix5* | irix6* | nonstopux*)
8790      if test "$GCC" = yes; then
8791	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'
8792      else
8793	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'
8794	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8795      fi
8796      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797      hardcode_libdir_separator=:
8798      link_all_deplibs=yes
8799      ;;
8800
8801    netbsd*)
8802      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8803	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8804      else
8805	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8806      fi
8807      hardcode_libdir_flag_spec='-R$libdir'
8808      hardcode_direct=yes
8809      hardcode_shlibpath_var=no
8810      ;;
8811
8812    newsos6)
8813      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8814      hardcode_direct=yes
8815      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816      hardcode_libdir_separator=:
8817      hardcode_shlibpath_var=no
8818      ;;
8819
8820    openbsd*)
8821      if test -f /usr/libexec/ld.so; then
8822	hardcode_direct=yes
8823	hardcode_shlibpath_var=no
8824	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8825	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8827	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828	  export_dynamic_flag_spec='${wl}-E'
8829	else
8830	  case $host_os in
8831	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8832	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833	     hardcode_libdir_flag_spec='-R$libdir'
8834	     ;;
8835	   *)
8836	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8837	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8838	     ;;
8839	  esac
8840        fi
8841      else
8842	ld_shlibs=no
8843      fi
8844      ;;
8845
8846    os2*)
8847      hardcode_libdir_flag_spec='-L$libdir'
8848      hardcode_minus_L=yes
8849      allow_undefined_flag=unsupported
8850      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'
8851      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8852      ;;
8853
8854    osf3*)
8855      if test "$GCC" = yes; then
8856	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857	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'
8858      else
8859	allow_undefined_flag=' -expect_unresolved \*'
8860	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'
8861      fi
8862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863      hardcode_libdir_separator=:
8864      ;;
8865
8866    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8867      if test "$GCC" = yes; then
8868	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869	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'
8870	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8871      else
8872	allow_undefined_flag=' -expect_unresolved \*'
8873	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'
8874	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8875	$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'
8876
8877	# Both c and cxx compiler support -rpath directly
8878	hardcode_libdir_flag_spec='-rpath $libdir'
8879      fi
8880      hardcode_libdir_separator=:
8881      ;;
8882
8883    solaris*)
8884      no_undefined_flag=' -z text'
8885      if test "$GCC" = yes; then
8886	wlarc='${wl}'
8887	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8889	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8890      else
8891	wlarc=''
8892	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8895      fi
8896      hardcode_libdir_flag_spec='-R$libdir'
8897      hardcode_shlibpath_var=no
8898      case $host_os in
8899      solaris2.[0-5] | solaris2.[0-5].*) ;;
8900      *)
8901	# The compiler driver will combine and reorder linker options,
8902	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8903	# but is careful enough not to reorder.
8904 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8905	if test "$GCC" = yes; then
8906	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8907	else
8908	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8909	fi
8910	;;
8911      esac
8912      link_all_deplibs=yes
8913      ;;
8914
8915    sunos4*)
8916      if test "x$host_vendor" = xsequent; then
8917	# Use $CC to link under sequent, because it throws in some extra .o
8918	# files that make .init and .fini sections work.
8919	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8920      else
8921	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8922      fi
8923      hardcode_libdir_flag_spec='-L$libdir'
8924      hardcode_direct=yes
8925      hardcode_minus_L=yes
8926      hardcode_shlibpath_var=no
8927      ;;
8928
8929    sysv4)
8930      case $host_vendor in
8931	sni)
8932	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933	  hardcode_direct=yes # is this really true???
8934	;;
8935	siemens)
8936	  ## LD is ld it makes a PLAMLIB
8937	  ## CC just makes a GrossModule.
8938	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939	  reload_cmds='$CC -r -o $output$reload_objs'
8940	  hardcode_direct=no
8941        ;;
8942	motorola)
8943	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8945	;;
8946      esac
8947      runpath_var='LD_RUN_PATH'
8948      hardcode_shlibpath_var=no
8949      ;;
8950
8951    sysv4.3*)
8952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953      hardcode_shlibpath_var=no
8954      export_dynamic_flag_spec='-Bexport'
8955      ;;
8956
8957    sysv4*MP*)
8958      if test -d /usr/nec; then
8959	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960	hardcode_shlibpath_var=no
8961	runpath_var=LD_RUN_PATH
8962	hardcode_runpath_var=yes
8963	ld_shlibs=yes
8964      fi
8965      ;;
8966
8967    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968      no_undefined_flag='${wl}-z,text'
8969      archive_cmds_need_lc=no
8970      hardcode_shlibpath_var=no
8971      runpath_var='LD_RUN_PATH'
8972
8973      if test "$GCC" = yes; then
8974	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976      else
8977	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979      fi
8980      ;;
8981
8982    sysv5* | sco3.2v5* | sco5v6*)
8983      # Note: We can NOT use -z defs as we might desire, because we do not
8984      # link with -lc, and that would cause any symbols used from libc to
8985      # always be unresolved, which means just about no library would
8986      # ever link correctly.  If we're not using GNU ld we use -z text
8987      # though, which does catch some bad symbols but isn't as heavy-handed
8988      # as -z defs.
8989      no_undefined_flag='${wl}-z,text'
8990      allow_undefined_flag='${wl}-z,nodefs'
8991      archive_cmds_need_lc=no
8992      hardcode_shlibpath_var=no
8993      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8994      hardcode_libdir_separator=':'
8995      link_all_deplibs=yes
8996      export_dynamic_flag_spec='${wl}-Bexport'
8997      runpath_var='LD_RUN_PATH'
8998
8999      if test "$GCC" = yes; then
9000	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9002      else
9003	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005      fi
9006      ;;
9007
9008    uts4*)
9009      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010      hardcode_libdir_flag_spec='-L$libdir'
9011      hardcode_shlibpath_var=no
9012      ;;
9013
9014    *)
9015      ld_shlibs=no
9016      ;;
9017    esac
9018  fi
9019
9020{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9021$as_echo "$ld_shlibs" >&6; }
9022test "$ld_shlibs" = no && can_build_shared=no
9023
9024#
9025# Do we need to explicitly link libc?
9026#
9027case "x$archive_cmds_need_lc" in
9028x|xyes)
9029  # Assume -lc should be added
9030  archive_cmds_need_lc=yes
9031
9032  if test "$enable_shared" = yes && test "$GCC" = yes; then
9033    case $archive_cmds in
9034    *'~'*)
9035      # FIXME: we may have to deal with multi-command sequences.
9036      ;;
9037    '$CC '*)
9038      # Test whether the compiler implicitly links with -lc since on some
9039      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9040      # to ld, don't add -lc before -lgcc.
9041      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9043      $rm conftest*
9044      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045
9046      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047  (eval $ac_compile) 2>&5
9048  ac_status=$?
9049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); } 2>conftest.err; then
9051        soname=conftest
9052        lib=conftest
9053        libobjs=conftest.$ac_objext
9054        deplibs=
9055        wl=$lt_prog_compiler_wl
9056	pic_flag=$lt_prog_compiler_pic
9057        compiler_flags=-v
9058        linker_flags=-v
9059        verstring=
9060        output_objdir=.
9061        libname=conftest
9062        lt_save_allow_undefined_flag=$allow_undefined_flag
9063        allow_undefined_flag=
9064        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9065  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9066  ac_status=$?
9067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); }
9069        then
9070	  archive_cmds_need_lc=no
9071        else
9072	  archive_cmds_need_lc=yes
9073        fi
9074        allow_undefined_flag=$lt_save_allow_undefined_flag
9075      else
9076        cat conftest.err 1>&5
9077      fi
9078      $rm conftest*
9079      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9080$as_echo "$archive_cmds_need_lc" >&6; }
9081      ;;
9082    esac
9083  fi
9084  ;;
9085esac
9086
9087{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9088$as_echo_n "checking dynamic linker characteristics... " >&6; }
9089library_names_spec=
9090libname_spec='lib$name'
9091soname_spec=
9092shrext_cmds=".so"
9093postinstall_cmds=
9094postuninstall_cmds=
9095finish_cmds=
9096finish_eval=
9097shlibpath_var=
9098shlibpath_overrides_runpath=unknown
9099version_type=none
9100dynamic_linker="$host_os ld.so"
9101sys_lib_dlsearch_path_spec="/lib /usr/lib"
9102
9103if test "$GCC" = yes; then
9104  case $host_os in
9105    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106    *) lt_awk_arg="/^libraries:/" ;;
9107  esac
9108  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9110    # if the path contains ";" then we assume it to be the separator
9111    # otherwise default to the standard path separator (i.e. ":") - it is
9112    # assumed that no part of a normal pathname contains ";" but that should
9113    # okay in the real world where ";" in dirpaths is itself problematic.
9114    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9115  else
9116    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9117  fi
9118  # Ok, now we have the path, separated by spaces, we can step through it
9119  # and add multilib dir if necessary.
9120  lt_tmp_lt_search_path_spec=
9121  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122  for lt_sys_path in $lt_search_path_spec; do
9123    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9125    else
9126      test -d "$lt_sys_path" && \
9127	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9128    fi
9129  done
9130  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9131BEGIN {RS=" "; FS="/|\n";} {
9132  lt_foo="";
9133  lt_count=0;
9134  for (lt_i = NF; lt_i > 0; lt_i--) {
9135    if ($lt_i != "" && $lt_i != ".") {
9136      if ($lt_i == "..") {
9137        lt_count++;
9138      } else {
9139        if (lt_count == 0) {
9140          lt_foo="/" $lt_i lt_foo;
9141        } else {
9142          lt_count--;
9143        }
9144      }
9145    }
9146  }
9147  if (lt_foo != "") { lt_freq[lt_foo]++; }
9148  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9149}'`
9150  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9151else
9152  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9153fi
9154need_lib_prefix=unknown
9155hardcode_into_libs=no
9156
9157# when you set need_version to no, make sure it does not cause -set_version
9158# flags to be left without arguments
9159need_version=unknown
9160
9161case $host_os in
9162aix3*)
9163  version_type=linux
9164  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9165  shlibpath_var=LIBPATH
9166
9167  # AIX 3 has no versioning support, so we append a major version to the name.
9168  soname_spec='${libname}${release}${shared_ext}$major'
9169  ;;
9170
9171aix[4-9]*)
9172  version_type=linux
9173  need_lib_prefix=no
9174  need_version=no
9175  hardcode_into_libs=yes
9176  if test "$host_cpu" = ia64; then
9177    # AIX 5 supports IA64
9178    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9179    shlibpath_var=LD_LIBRARY_PATH
9180  else
9181    # With GCC up to 2.95.x, collect2 would create an import file
9182    # for dependence libraries.  The import file would start with
9183    # the line `#! .'.  This would cause the generated library to
9184    # depend on `.', always an invalid library.  This was fixed in
9185    # development snapshots of GCC prior to 3.0.
9186    case $host_os in
9187      aix4 | aix4.[01] | aix4.[01].*)
9188      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9189	   echo ' yes '
9190	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9191	:
9192      else
9193	can_build_shared=no
9194      fi
9195      ;;
9196    esac
9197    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9198    # soname into executable. Probably we can add versioning support to
9199    # collect2, so additional links can be useful in future.
9200    if test "$aix_use_runtimelinking" = yes; then
9201      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9202      # instead of lib<name>.a to let people know that these are not
9203      # typical AIX shared libraries.
9204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205    else
9206      # We preserve .a as extension for shared libraries through AIX4.2
9207      # and later when we are not doing run time linking.
9208      library_names_spec='${libname}${release}.a $libname.a'
9209      soname_spec='${libname}${release}${shared_ext}$major'
9210    fi
9211    shlibpath_var=LIBPATH
9212  fi
9213  ;;
9214
9215amigaos*)
9216  library_names_spec='$libname.ixlibrary $libname.a'
9217  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9218  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'
9219  ;;
9220
9221beos*)
9222  library_names_spec='${libname}${shared_ext}'
9223  dynamic_linker="$host_os ld.so"
9224  shlibpath_var=LIBRARY_PATH
9225  ;;
9226
9227bsdi[45]*)
9228  version_type=linux
9229  need_version=no
9230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9235  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9236  # the default ld.so.conf also contains /usr/contrib/lib and
9237  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9238  # libtool to hard-code these into programs
9239  ;;
9240
9241cygwin* | mingw* | pw32*)
9242  version_type=windows
9243  shrext_cmds=".dll"
9244  need_version=no
9245  need_lib_prefix=no
9246
9247  case $GCC,$host_os in
9248  yes,cygwin* | yes,mingw* | yes,pw32*)
9249    library_names_spec='$libname.dll.a'
9250    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9251    postinstall_cmds='base_file=`basename \${file}`~
9252      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9253      dldir=$destdir/`dirname \$dlpath`~
9254      test -d \$dldir || mkdir -p \$dldir~
9255      $install_prog $dir/$dlname \$dldir/$dlname~
9256      chmod a+x \$dldir/$dlname'
9257    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258      dlpath=$dir/\$dldll~
9259       $rm \$dlpath'
9260    shlibpath_overrides_runpath=yes
9261
9262    case $host_os in
9263    cygwin*)
9264      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9267      ;;
9268    mingw*)
9269      # MinGW DLLs use traditional 'lib' prefix
9270      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9273        # It is most probably a Windows format PATH printed by
9274        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9275        # path with ; separators, and with drive letters. We can handle the
9276        # drive letters (cygwin fileutils understands them), so leave them,
9277        # especially as we might pass files found there to a mingw objdump,
9278        # which wouldn't understand a cygwinified path. Ahh.
9279        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9280      else
9281        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9282      fi
9283      ;;
9284    pw32*)
9285      # pw32 DLLs use 'pw' prefix rather than 'lib'
9286      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9287      ;;
9288    esac
9289    ;;
9290
9291  *)
9292    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9293    ;;
9294  esac
9295  dynamic_linker='Win32 ld.exe'
9296  # FIXME: first we should search . and the directory the executable is in
9297  shlibpath_var=PATH
9298  ;;
9299
9300darwin* | rhapsody*)
9301  dynamic_linker="$host_os dyld"
9302  version_type=darwin
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306  soname_spec='${libname}${release}${major}$shared_ext'
9307  shlibpath_overrides_runpath=yes
9308  shlibpath_var=DYLD_LIBRARY_PATH
9309  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9310
9311  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313  ;;
9314
9315dgux*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  ;;
9323
9324freebsd1*)
9325  dynamic_linker=no
9326  ;;
9327
9328freebsd* | dragonfly*)
9329  # DragonFly does not have aout.  When/if they implement a new
9330  # versioning mechanism, adjust this.
9331  if test -x /usr/bin/objformat; then
9332    objformat=`/usr/bin/objformat`
9333  else
9334    case $host_os in
9335    freebsd[123]*) objformat=aout ;;
9336    *) objformat=elf ;;
9337    esac
9338  fi
9339  version_type=freebsd-$objformat
9340  case $version_type in
9341    freebsd-elf*)
9342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9343      need_version=no
9344      need_lib_prefix=no
9345      ;;
9346    freebsd-*)
9347      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348      need_version=yes
9349      ;;
9350  esac
9351  shlibpath_var=LD_LIBRARY_PATH
9352  case $host_os in
9353  freebsd2*)
9354    shlibpath_overrides_runpath=yes
9355    ;;
9356  freebsd3.[01]* | freebsdelf3.[01]*)
9357    shlibpath_overrides_runpath=yes
9358    hardcode_into_libs=yes
9359    ;;
9360  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362    shlibpath_overrides_runpath=no
9363    hardcode_into_libs=yes
9364    ;;
9365  *) # from 4.6 on, and DragonFly
9366    shlibpath_overrides_runpath=yes
9367    hardcode_into_libs=yes
9368    ;;
9369  esac
9370  ;;
9371
9372gnu*)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  shlibpath_var=LD_LIBRARY_PATH
9379  hardcode_into_libs=yes
9380  ;;
9381
9382hpux9* | hpux10* | hpux11*)
9383  # Give a soname corresponding to the major version so that dld.sl refuses to
9384  # link against other versions.
9385  version_type=sunos
9386  need_lib_prefix=no
9387  need_version=no
9388  case $host_cpu in
9389  ia64*)
9390    shrext_cmds='.so'
9391    hardcode_into_libs=yes
9392    dynamic_linker="$host_os dld.so"
9393    shlibpath_var=LD_LIBRARY_PATH
9394    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396    soname_spec='${libname}${release}${shared_ext}$major'
9397    if test "X$HPUX_IA64_MODE" = X32; then
9398      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9399    else
9400      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9401    fi
9402    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403    ;;
9404   hppa*64*)
9405     shrext_cmds='.sl'
9406     hardcode_into_libs=yes
9407     dynamic_linker="$host_os dld.sl"
9408     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411     soname_spec='${libname}${release}${shared_ext}$major'
9412     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414     ;;
9415   *)
9416    shrext_cmds='.sl'
9417    dynamic_linker="$host_os dld.sl"
9418    shlibpath_var=SHLIB_PATH
9419    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421    soname_spec='${libname}${release}${shared_ext}$major'
9422    ;;
9423  esac
9424  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425  postinstall_cmds='chmod 555 $lib'
9426  ;;
9427
9428interix[3-9]*)
9429  version_type=linux
9430  need_lib_prefix=no
9431  need_version=no
9432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433  soname_spec='${libname}${release}${shared_ext}$major'
9434  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=no
9437  hardcode_into_libs=yes
9438  ;;
9439
9440irix5* | irix6* | nonstopux*)
9441  case $host_os in
9442    nonstopux*) version_type=nonstopux ;;
9443    *)
9444	if test "$lt_cv_prog_gnu_ld" = yes; then
9445		version_type=linux
9446	else
9447		version_type=irix
9448	fi ;;
9449  esac
9450  need_lib_prefix=no
9451  need_version=no
9452  soname_spec='${libname}${release}${shared_ext}$major'
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9454  case $host_os in
9455  irix5* | nonstopux*)
9456    libsuff= shlibsuff=
9457    ;;
9458  *)
9459    case $LD in # libtool.m4 will add one of these switches to LD
9460    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461      libsuff= shlibsuff= libmagic=32-bit;;
9462    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463      libsuff=32 shlibsuff=N32 libmagic=N32;;
9464    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466    *) libsuff= shlibsuff= libmagic=never-match;;
9467    esac
9468    ;;
9469  esac
9470  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471  shlibpath_overrides_runpath=no
9472  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474  hardcode_into_libs=yes
9475  ;;
9476
9477# No shared lib support for Linux oldld, aout, or coff.
9478linux*oldld* | linux*aout* | linux*coff*)
9479  dynamic_linker=no
9480  ;;
9481
9482# This must be Linux ELF.
9483linux* | k*bsd*-gnu)
9484  version_type=linux
9485  need_lib_prefix=no
9486  need_version=no
9487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488  soname_spec='${libname}${release}${shared_ext}$major'
9489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490  shlibpath_var=LD_LIBRARY_PATH
9491  shlibpath_overrides_runpath=no
9492  # This implies no fast_install, which is unacceptable.
9493  # Some rework will be needed to allow for fast_install
9494  # before this can be enabled.
9495  hardcode_into_libs=yes
9496  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9497  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9498
9499  # Append ld.so.conf contents to the search path
9500  if test -f /etc/ld.so.conf; then
9501    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' ' '`
9502    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9503  fi
9504
9505  # We used to test for /lib/ld.so.1 and disable shared libraries on
9506  # powerpc, because MkLinux only supported shared libraries with the
9507  # GNU dynamic linker.  Since this was broken with cross compilers,
9508  # most powerpc-linux boxes support dynamic linking these days and
9509  # people can always --disable-shared, the test was removed, and we
9510  # assume the GNU/Linux dynamic linker is in use.
9511  dynamic_linker='GNU/Linux ld.so'
9512  ;;
9513
9514netbsd*)
9515  version_type=sunos
9516  need_lib_prefix=no
9517  need_version=no
9518  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9519    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9520    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9521    dynamic_linker='NetBSD (a.out) ld.so'
9522  else
9523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9524    soname_spec='${libname}${release}${shared_ext}$major'
9525    dynamic_linker='NetBSD ld.elf_so'
9526  fi
9527  shlibpath_var=LD_LIBRARY_PATH
9528  shlibpath_overrides_runpath=yes
9529  hardcode_into_libs=yes
9530  ;;
9531
9532newsos6)
9533  version_type=linux
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535  shlibpath_var=LD_LIBRARY_PATH
9536  shlibpath_overrides_runpath=yes
9537  ;;
9538
9539nto-qnx*)
9540  version_type=linux
9541  need_lib_prefix=no
9542  need_version=no
9543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544  soname_spec='${libname}${release}${shared_ext}$major'
9545  shlibpath_var=LD_LIBRARY_PATH
9546  shlibpath_overrides_runpath=yes
9547  ;;
9548
9549openbsd*)
9550  version_type=sunos
9551  sys_lib_dlsearch_path_spec="/usr/lib"
9552  need_lib_prefix=no
9553  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9554  case $host_os in
9555    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9556    *)                         need_version=no  ;;
9557  esac
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9559  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9560  shlibpath_var=LD_LIBRARY_PATH
9561  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562    case $host_os in
9563      openbsd2.[89] | openbsd2.[89].*)
9564	shlibpath_overrides_runpath=no
9565	;;
9566      *)
9567	shlibpath_overrides_runpath=yes
9568	;;
9569      esac
9570  else
9571    shlibpath_overrides_runpath=yes
9572  fi
9573  ;;
9574
9575os2*)
9576  libname_spec='$name'
9577  shrext_cmds=".dll"
9578  need_lib_prefix=no
9579  library_names_spec='$libname${shared_ext} $libname.a'
9580  dynamic_linker='OS/2 ld.exe'
9581  shlibpath_var=LIBPATH
9582  ;;
9583
9584osf3* | osf4* | osf5*)
9585  version_type=osf
9586  need_lib_prefix=no
9587  need_version=no
9588  soname_spec='${libname}${release}${shared_ext}$major'
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590  shlibpath_var=LD_LIBRARY_PATH
9591  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9592  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9593  ;;
9594
9595rdos*)
9596  dynamic_linker=no
9597  ;;
9598
9599solaris*)
9600  version_type=linux
9601  need_lib_prefix=no
9602  need_version=no
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604  soname_spec='${libname}${release}${shared_ext}$major'
9605  shlibpath_var=LD_LIBRARY_PATH
9606  shlibpath_overrides_runpath=yes
9607  hardcode_into_libs=yes
9608  # ldd complains unless libraries are executable
9609  postinstall_cmds='chmod +x $lib'
9610  ;;
9611
9612sunos4*)
9613  version_type=sunos
9614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9615  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9616  shlibpath_var=LD_LIBRARY_PATH
9617  shlibpath_overrides_runpath=yes
9618  if test "$with_gnu_ld" = yes; then
9619    need_lib_prefix=no
9620  fi
9621  need_version=yes
9622  ;;
9623
9624sysv4 | sysv4.3*)
9625  version_type=linux
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  case $host_vendor in
9630    sni)
9631      shlibpath_overrides_runpath=no
9632      need_lib_prefix=no
9633      export_dynamic_flag_spec='${wl}-Blargedynsym'
9634      runpath_var=LD_RUN_PATH
9635      ;;
9636    siemens)
9637      need_lib_prefix=no
9638      ;;
9639    motorola)
9640      need_lib_prefix=no
9641      need_version=no
9642      shlibpath_overrides_runpath=no
9643      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9644      ;;
9645  esac
9646  ;;
9647
9648sysv4*MP*)
9649  if test -d /usr/nec ;then
9650    version_type=linux
9651    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9652    soname_spec='$libname${shared_ext}.$major'
9653    shlibpath_var=LD_LIBRARY_PATH
9654  fi
9655  ;;
9656
9657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9658  version_type=freebsd-elf
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  hardcode_into_libs=yes
9665  if test "$with_gnu_ld" = yes; then
9666    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9667    shlibpath_overrides_runpath=no
9668  else
9669    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9670    shlibpath_overrides_runpath=yes
9671    case $host_os in
9672      sco3.2v5*)
9673        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9674	;;
9675    esac
9676  fi
9677  sys_lib_dlsearch_path_spec='/usr/lib'
9678  ;;
9679
9680uts4*)
9681  version_type=linux
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  ;;
9686
9687*)
9688  dynamic_linker=no
9689  ;;
9690esac
9691{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9692$as_echo "$dynamic_linker" >&6; }
9693test "$dynamic_linker" = no && can_build_shared=no
9694
9695if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9696  $as_echo_n "(cached) " >&6
9697else
9698  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9699fi
9700
9701sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9702if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9703  $as_echo_n "(cached) " >&6
9704else
9705  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9706fi
9707
9708sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9709
9710variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9711if test "$GCC" = yes; then
9712  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9713fi
9714
9715{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9716$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9717hardcode_action=
9718if test -n "$hardcode_libdir_flag_spec" || \
9719   test -n "$runpath_var" || \
9720   test "X$hardcode_automatic" = "Xyes" ; then
9721
9722  # We can hardcode non-existant directories.
9723  if test "$hardcode_direct" != no &&
9724     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9725     # have to relink, otherwise we might link with an installed library
9726     # when we should be linking with a yet-to-be-installed one
9727     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9728     test "$hardcode_minus_L" != no; then
9729    # Linking always hardcodes the temporary library directory.
9730    hardcode_action=relink
9731  else
9732    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9733    hardcode_action=immediate
9734  fi
9735else
9736  # We cannot hardcode anything, or else we can only hardcode existing
9737  # directories.
9738  hardcode_action=unsupported
9739fi
9740{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9741$as_echo "$hardcode_action" >&6; }
9742
9743if test "$hardcode_action" = relink; then
9744  # Fast installation is not supported
9745  enable_fast_install=no
9746elif test "$shlibpath_overrides_runpath" = yes ||
9747     test "$enable_shared" = no; then
9748  # Fast installation is not necessary
9749  enable_fast_install=needless
9750fi
9751
9752striplib=
9753old_striplib=
9754{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9755$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9756if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9757  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9758  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9759  { $as_echo "$as_me:$LINENO: result: yes" >&5
9760$as_echo "yes" >&6; }
9761else
9762# FIXME - insert some real tests, host_os isn't really good enough
9763  case $host_os in
9764   darwin*)
9765       if test -n "$STRIP" ; then
9766         striplib="$STRIP -x"
9767         old_striplib="$STRIP -S"
9768         { $as_echo "$as_me:$LINENO: result: yes" >&5
9769$as_echo "yes" >&6; }
9770       else
9771  { $as_echo "$as_me:$LINENO: result: no" >&5
9772$as_echo "no" >&6; }
9773fi
9774       ;;
9775   *)
9776  { $as_echo "$as_me:$LINENO: result: no" >&5
9777$as_echo "no" >&6; }
9778    ;;
9779  esac
9780fi
9781
9782if test "x$enable_dlopen" != xyes; then
9783  enable_dlopen=unknown
9784  enable_dlopen_self=unknown
9785  enable_dlopen_self_static=unknown
9786else
9787  lt_cv_dlopen=no
9788  lt_cv_dlopen_libs=
9789
9790  case $host_os in
9791  beos*)
9792    lt_cv_dlopen="load_add_on"
9793    lt_cv_dlopen_libs=
9794    lt_cv_dlopen_self=yes
9795    ;;
9796
9797  mingw* | pw32*)
9798    lt_cv_dlopen="LoadLibrary"
9799    lt_cv_dlopen_libs=
9800   ;;
9801
9802  cygwin*)
9803    lt_cv_dlopen="dlopen"
9804    lt_cv_dlopen_libs=
9805   ;;
9806
9807  darwin*)
9808  # if libdl is installed we need to link against it
9809    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9810$as_echo_n "checking for dlopen in -ldl... " >&6; }
9811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9812  $as_echo_n "(cached) " >&6
9813else
9814  ac_check_lib_save_LIBS=$LIBS
9815LIBS="-ldl  $LIBS"
9816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h.  */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h.  */
9822
9823/* Override any GCC internal prototype to avoid an error.
9824   Use char because int might match the return type of a GCC
9825   builtin and then its argument prototype would still apply.  */
9826#ifdef __cplusplus
9827extern "C"
9828#endif
9829char dlopen ();
9830int
9831main ()
9832{
9833return dlopen ();
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838rm -f conftest.$ac_objext conftest$ac_exeext
9839if { (ac_try="$ac_link"
9840case "(($ac_try" in
9841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842  *) ac_try_echo=$ac_try;;
9843esac
9844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845$as_echo "$ac_try_echo") >&5
9846  (eval "$ac_link") 2>conftest.er1
9847  ac_status=$?
9848  grep -v '^ *+' conftest.er1 >conftest.err
9849  rm -f conftest.er1
9850  cat conftest.err >&5
9851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); } && {
9853	 test -z "$ac_c_werror_flag" ||
9854	 test ! -s conftest.err
9855       } && test -s conftest$ac_exeext && {
9856	 test "$cross_compiling" = yes ||
9857	 $as_test_x conftest$ac_exeext
9858       }; then
9859  ac_cv_lib_dl_dlopen=yes
9860else
9861  $as_echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864	ac_cv_lib_dl_dlopen=no
9865fi
9866
9867rm -rf conftest.dSYM
9868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869      conftest$ac_exeext conftest.$ac_ext
9870LIBS=$ac_check_lib_save_LIBS
9871fi
9872{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9873$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9874if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9875  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9876else
9877
9878    lt_cv_dlopen="dyld"
9879    lt_cv_dlopen_libs=
9880    lt_cv_dlopen_self=yes
9881
9882fi
9883
9884   ;;
9885
9886  *)
9887    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9888$as_echo_n "checking for shl_load... " >&6; }
9889if test "${ac_cv_func_shl_load+set}" = set; then
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h.  */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h.  */
9898/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9900#define shl_load innocuous_shl_load
9901
9902/* System header to define __stub macros and hopefully few prototypes,
9903    which can conflict with char shl_load (); below.
9904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905    <limits.h> exists even on freestanding compilers.  */
9906
9907#ifdef __STDC__
9908# include <limits.h>
9909#else
9910# include <assert.h>
9911#endif
9912
9913#undef shl_load
9914
9915/* Override any GCC internal prototype to avoid an error.
9916   Use char because int might match the return type of a GCC
9917   builtin and then its argument prototype would still apply.  */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921char shl_load ();
9922/* The GNU C library defines this for functions which it implements
9923    to always fail with ENOSYS.  Some functions are actually named
9924    something starting with __ and the normal name is an alias.  */
9925#if defined __stub_shl_load || defined __stub___shl_load
9926choke me
9927#endif
9928
9929int
9930main ()
9931{
9932return shl_load ();
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (ac_try="$ac_link"
9939case "(($ac_try" in
9940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941  *) ac_try_echo=$ac_try;;
9942esac
9943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944$as_echo "$ac_try_echo") >&5
9945  (eval "$ac_link") 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } && {
9952	 test -z "$ac_c_werror_flag" ||
9953	 test ! -s conftest.err
9954       } && test -s conftest$ac_exeext && {
9955	 test "$cross_compiling" = yes ||
9956	 $as_test_x conftest$ac_exeext
9957       }; then
9958  ac_cv_func_shl_load=yes
9959else
9960  $as_echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963	ac_cv_func_shl_load=no
9964fi
9965
9966rm -rf conftest.dSYM
9967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968      conftest$ac_exeext conftest.$ac_ext
9969fi
9970{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9971$as_echo "$ac_cv_func_shl_load" >&6; }
9972if test "x$ac_cv_func_shl_load" = x""yes; then
9973  lt_cv_dlopen="shl_load"
9974else
9975  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9976$as_echo_n "checking for shl_load in -ldld... " >&6; }
9977if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9978  $as_echo_n "(cached) " >&6
9979else
9980  ac_check_lib_save_LIBS=$LIBS
9981LIBS="-ldld  $LIBS"
9982cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h.  */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h.  */
9988
9989/* Override any GCC internal prototype to avoid an error.
9990   Use char because int might match the return type of a GCC
9991   builtin and then its argument prototype would still apply.  */
9992#ifdef __cplusplus
9993extern "C"
9994#endif
9995char shl_load ();
9996int
9997main ()
9998{
9999return shl_load ();
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (ac_try="$ac_link"
10006case "(($ac_try" in
10007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008  *) ac_try_echo=$ac_try;;
10009esac
10010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10011$as_echo "$ac_try_echo") >&5
10012  (eval "$ac_link") 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } && {
10019	 test -z "$ac_c_werror_flag" ||
10020	 test ! -s conftest.err
10021       } && test -s conftest$ac_exeext && {
10022	 test "$cross_compiling" = yes ||
10023	 $as_test_x conftest$ac_exeext
10024       }; then
10025  ac_cv_lib_dld_shl_load=yes
10026else
10027  $as_echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030	ac_cv_lib_dld_shl_load=no
10031fi
10032
10033rm -rf conftest.dSYM
10034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035      conftest$ac_exeext conftest.$ac_ext
10036LIBS=$ac_check_lib_save_LIBS
10037fi
10038{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10039$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10040if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10041  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10042else
10043  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10044$as_echo_n "checking for dlopen... " >&6; }
10045if test "${ac_cv_func_dlopen+set}" = set; then
10046  $as_echo_n "(cached) " >&6
10047else
10048  cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h.  */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h.  */
10054/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10056#define dlopen innocuous_dlopen
10057
10058/* System header to define __stub macros and hopefully few prototypes,
10059    which can conflict with char dlopen (); below.
10060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061    <limits.h> exists even on freestanding compilers.  */
10062
10063#ifdef __STDC__
10064# include <limits.h>
10065#else
10066# include <assert.h>
10067#endif
10068
10069#undef dlopen
10070
10071/* Override any GCC internal prototype to avoid an error.
10072   Use char because int might match the return type of a GCC
10073   builtin and then its argument prototype would still apply.  */
10074#ifdef __cplusplus
10075extern "C"
10076#endif
10077char dlopen ();
10078/* The GNU C library defines this for functions which it implements
10079    to always fail with ENOSYS.  Some functions are actually named
10080    something starting with __ and the normal name is an alias.  */
10081#if defined __stub_dlopen || defined __stub___dlopen
10082choke me
10083#endif
10084
10085int
10086main ()
10087{
10088return dlopen ();
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
10094if { (ac_try="$ac_link"
10095case "(($ac_try" in
10096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097  *) ac_try_echo=$ac_try;;
10098esac
10099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100$as_echo "$ac_try_echo") >&5
10101  (eval "$ac_link") 2>conftest.er1
10102  ac_status=$?
10103  grep -v '^ *+' conftest.er1 >conftest.err
10104  rm -f conftest.er1
10105  cat conftest.err >&5
10106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); } && {
10108	 test -z "$ac_c_werror_flag" ||
10109	 test ! -s conftest.err
10110       } && test -s conftest$ac_exeext && {
10111	 test "$cross_compiling" = yes ||
10112	 $as_test_x conftest$ac_exeext
10113       }; then
10114  ac_cv_func_dlopen=yes
10115else
10116  $as_echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119	ac_cv_func_dlopen=no
10120fi
10121
10122rm -rf conftest.dSYM
10123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124      conftest$ac_exeext conftest.$ac_ext
10125fi
10126{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10127$as_echo "$ac_cv_func_dlopen" >&6; }
10128if test "x$ac_cv_func_dlopen" = x""yes; then
10129  lt_cv_dlopen="dlopen"
10130else
10131  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10132$as_echo_n "checking for dlopen in -ldl... " >&6; }
10133if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10134  $as_echo_n "(cached) " >&6
10135else
10136  ac_check_lib_save_LIBS=$LIBS
10137LIBS="-ldl  $LIBS"
10138cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h.  */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h.  */
10144
10145/* Override any GCC internal prototype to avoid an error.
10146   Use char because int might match the return type of a GCC
10147   builtin and then its argument prototype would still apply.  */
10148#ifdef __cplusplus
10149extern "C"
10150#endif
10151char dlopen ();
10152int
10153main ()
10154{
10155return dlopen ();
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164  *) ac_try_echo=$ac_try;;
10165esac
10166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167$as_echo "$ac_try_echo") >&5
10168  (eval "$ac_link") 2>conftest.er1
10169  ac_status=$?
10170  grep -v '^ *+' conftest.er1 >conftest.err
10171  rm -f conftest.er1
10172  cat conftest.err >&5
10173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); } && {
10175	 test -z "$ac_c_werror_flag" ||
10176	 test ! -s conftest.err
10177       } && test -s conftest$ac_exeext && {
10178	 test "$cross_compiling" = yes ||
10179	 $as_test_x conftest$ac_exeext
10180       }; then
10181  ac_cv_lib_dl_dlopen=yes
10182else
10183  $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186	ac_cv_lib_dl_dlopen=no
10187fi
10188
10189rm -rf conftest.dSYM
10190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191      conftest$ac_exeext conftest.$ac_ext
10192LIBS=$ac_check_lib_save_LIBS
10193fi
10194{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10195$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10196if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10197  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10198else
10199  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10200$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10201if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10202  $as_echo_n "(cached) " >&6
10203else
10204  ac_check_lib_save_LIBS=$LIBS
10205LIBS="-lsvld  $LIBS"
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h.  */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h.  */
10212
10213/* Override any GCC internal prototype to avoid an error.
10214   Use char because int might match the return type of a GCC
10215   builtin and then its argument prototype would still apply.  */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219char dlopen ();
10220int
10221main ()
10222{
10223return dlopen ();
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (ac_try="$ac_link"
10230case "(($ac_try" in
10231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232  *) ac_try_echo=$ac_try;;
10233esac
10234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235$as_echo "$ac_try_echo") >&5
10236  (eval "$ac_link") 2>conftest.er1
10237  ac_status=$?
10238  grep -v '^ *+' conftest.er1 >conftest.err
10239  rm -f conftest.er1
10240  cat conftest.err >&5
10241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } && {
10243	 test -z "$ac_c_werror_flag" ||
10244	 test ! -s conftest.err
10245       } && test -s conftest$ac_exeext && {
10246	 test "$cross_compiling" = yes ||
10247	 $as_test_x conftest$ac_exeext
10248       }; then
10249  ac_cv_lib_svld_dlopen=yes
10250else
10251  $as_echo "$as_me: failed program was:" >&5
10252sed 's/^/| /' conftest.$ac_ext >&5
10253
10254	ac_cv_lib_svld_dlopen=no
10255fi
10256
10257rm -rf conftest.dSYM
10258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259      conftest$ac_exeext conftest.$ac_ext
10260LIBS=$ac_check_lib_save_LIBS
10261fi
10262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10263$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10264if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10265  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10266else
10267  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10268$as_echo_n "checking for dld_link in -ldld... " >&6; }
10269if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10270  $as_echo_n "(cached) " >&6
10271else
10272  ac_check_lib_save_LIBS=$LIBS
10273LIBS="-ldld  $LIBS"
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h.  */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h.  */
10280
10281/* Override any GCC internal prototype to avoid an error.
10282   Use char because int might match the return type of a GCC
10283   builtin and then its argument prototype would still apply.  */
10284#ifdef __cplusplus
10285extern "C"
10286#endif
10287char dld_link ();
10288int
10289main ()
10290{
10291return dld_link ();
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
10297if { (ac_try="$ac_link"
10298case "(($ac_try" in
10299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300  *) ac_try_echo=$ac_try;;
10301esac
10302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303$as_echo "$ac_try_echo") >&5
10304  (eval "$ac_link") 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } && {
10311	 test -z "$ac_c_werror_flag" ||
10312	 test ! -s conftest.err
10313       } && test -s conftest$ac_exeext && {
10314	 test "$cross_compiling" = yes ||
10315	 $as_test_x conftest$ac_exeext
10316       }; then
10317  ac_cv_lib_dld_dld_link=yes
10318else
10319  $as_echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322	ac_cv_lib_dld_dld_link=no
10323fi
10324
10325rm -rf conftest.dSYM
10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327      conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
10329fi
10330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10331$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10332if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10333  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10334fi
10335
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351    ;;
10352  esac
10353
10354  if test "x$lt_cv_dlopen" != xno; then
10355    enable_dlopen=yes
10356  else
10357    enable_dlopen=no
10358  fi
10359
10360  case $lt_cv_dlopen in
10361  dlopen)
10362    save_CPPFLAGS="$CPPFLAGS"
10363    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10364
10365    save_LDFLAGS="$LDFLAGS"
10366    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10367
10368    save_LIBS="$LIBS"
10369    LIBS="$lt_cv_dlopen_libs $LIBS"
10370
10371    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10372$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10373if test "${lt_cv_dlopen_self+set}" = set; then
10374  $as_echo_n "(cached) " >&6
10375else
10376  	  if test "$cross_compiling" = yes; then :
10377  lt_cv_dlopen_self=cross
10378else
10379  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380  lt_status=$lt_dlunknown
10381  cat > conftest.$ac_ext <<EOF
10382#line 10382 "configure"
10383#include "confdefs.h"
10384
10385#if HAVE_DLFCN_H
10386#include <dlfcn.h>
10387#endif
10388
10389#include <stdio.h>
10390
10391#ifdef RTLD_GLOBAL
10392#  define LT_DLGLOBAL		RTLD_GLOBAL
10393#else
10394#  ifdef DL_GLOBAL
10395#    define LT_DLGLOBAL		DL_GLOBAL
10396#  else
10397#    define LT_DLGLOBAL		0
10398#  endif
10399#endif
10400
10401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402   find out it does not work in some platform. */
10403#ifndef LT_DLLAZY_OR_NOW
10404#  ifdef RTLD_LAZY
10405#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10406#  else
10407#    ifdef DL_LAZY
10408#      define LT_DLLAZY_OR_NOW		DL_LAZY
10409#    else
10410#      ifdef RTLD_NOW
10411#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10412#      else
10413#        ifdef DL_NOW
10414#          define LT_DLLAZY_OR_NOW	DL_NOW
10415#        else
10416#          define LT_DLLAZY_OR_NOW	0
10417#        endif
10418#      endif
10419#    endif
10420#  endif
10421#endif
10422
10423#ifdef __cplusplus
10424extern "C" void exit (int);
10425#endif
10426
10427void fnord() { int i=42;}
10428int main ()
10429{
10430  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431  int status = $lt_dlunknown;
10432
10433  if (self)
10434    {
10435      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10436      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437      /* dlclose (self); */
10438    }
10439  else
10440    puts (dlerror ());
10441
10442    exit (status);
10443}
10444EOF
10445  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446  (eval $ac_link) 2>&5
10447  ac_status=$?
10448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10450    (./conftest; exit; ) >&5 2>/dev/null
10451    lt_status=$?
10452    case x$lt_status in
10453      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10454      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10455      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10456    esac
10457  else :
10458    # compilation failed
10459    lt_cv_dlopen_self=no
10460  fi
10461fi
10462rm -fr conftest*
10463
10464
10465fi
10466{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10467$as_echo "$lt_cv_dlopen_self" >&6; }
10468
10469    if test "x$lt_cv_dlopen_self" = xyes; then
10470      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10471      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10472$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10473if test "${lt_cv_dlopen_self_static+set}" = set; then
10474  $as_echo_n "(cached) " >&6
10475else
10476  	  if test "$cross_compiling" = yes; then :
10477  lt_cv_dlopen_self_static=cross
10478else
10479  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10480  lt_status=$lt_dlunknown
10481  cat > conftest.$ac_ext <<EOF
10482#line 10482 "configure"
10483#include "confdefs.h"
10484
10485#if HAVE_DLFCN_H
10486#include <dlfcn.h>
10487#endif
10488
10489#include <stdio.h>
10490
10491#ifdef RTLD_GLOBAL
10492#  define LT_DLGLOBAL		RTLD_GLOBAL
10493#else
10494#  ifdef DL_GLOBAL
10495#    define LT_DLGLOBAL		DL_GLOBAL
10496#  else
10497#    define LT_DLGLOBAL		0
10498#  endif
10499#endif
10500
10501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10502   find out it does not work in some platform. */
10503#ifndef LT_DLLAZY_OR_NOW
10504#  ifdef RTLD_LAZY
10505#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10506#  else
10507#    ifdef DL_LAZY
10508#      define LT_DLLAZY_OR_NOW		DL_LAZY
10509#    else
10510#      ifdef RTLD_NOW
10511#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10512#      else
10513#        ifdef DL_NOW
10514#          define LT_DLLAZY_OR_NOW	DL_NOW
10515#        else
10516#          define LT_DLLAZY_OR_NOW	0
10517#        endif
10518#      endif
10519#    endif
10520#  endif
10521#endif
10522
10523#ifdef __cplusplus
10524extern "C" void exit (int);
10525#endif
10526
10527void fnord() { int i=42;}
10528int main ()
10529{
10530  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10531  int status = $lt_dlunknown;
10532
10533  if (self)
10534    {
10535      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10536      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10537      /* dlclose (self); */
10538    }
10539  else
10540    puts (dlerror ());
10541
10542    exit (status);
10543}
10544EOF
10545  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546  (eval $ac_link) 2>&5
10547  ac_status=$?
10548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10550    (./conftest; exit; ) >&5 2>/dev/null
10551    lt_status=$?
10552    case x$lt_status in
10553      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10554      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10555      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10556    esac
10557  else :
10558    # compilation failed
10559    lt_cv_dlopen_self_static=no
10560  fi
10561fi
10562rm -fr conftest*
10563
10564
10565fi
10566{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10567$as_echo "$lt_cv_dlopen_self_static" >&6; }
10568    fi
10569
10570    CPPFLAGS="$save_CPPFLAGS"
10571    LDFLAGS="$save_LDFLAGS"
10572    LIBS="$save_LIBS"
10573    ;;
10574  esac
10575
10576  case $lt_cv_dlopen_self in
10577  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10578  *) enable_dlopen_self=unknown ;;
10579  esac
10580
10581  case $lt_cv_dlopen_self_static in
10582  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10583  *) enable_dlopen_self_static=unknown ;;
10584  esac
10585fi
10586
10587
10588# Report which library types will actually be built
10589{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10590$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10591{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10592$as_echo "$can_build_shared" >&6; }
10593
10594{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10595$as_echo_n "checking whether to build shared libraries... " >&6; }
10596test "$can_build_shared" = "no" && enable_shared=no
10597
10598# On AIX, shared libraries and static libraries use the same namespace, and
10599# are all built from PIC.
10600case $host_os in
10601aix3*)
10602  test "$enable_shared" = yes && enable_static=no
10603  if test -n "$RANLIB"; then
10604    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10605    postinstall_cmds='$RANLIB $lib'
10606  fi
10607  ;;
10608
10609aix[4-9]*)
10610  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10611    test "$enable_shared" = yes && enable_static=no
10612  fi
10613    ;;
10614esac
10615{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10616$as_echo "$enable_shared" >&6; }
10617
10618{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10619$as_echo_n "checking whether to build static libraries... " >&6; }
10620# Make sure either enable_shared or enable_static is yes.
10621test "$enable_shared" = yes || enable_static=yes
10622{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10623$as_echo "$enable_static" >&6; }
10624
10625# The else clause should only fire when bootstrapping the
10626# libtool distribution, otherwise you forgot to ship ltmain.sh
10627# with your package, and you will get complaints that there are
10628# no rules to generate ltmain.sh.
10629if test -f "$ltmain"; then
10630  # See if we are running on zsh, and set the options which allow our commands through
10631  # without removal of \ escapes.
10632  if test -n "${ZSH_VERSION+set}" ; then
10633    setopt NO_GLOB_SUBST
10634  fi
10635  # Now quote all the things that may contain metacharacters while being
10636  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10637  # variables and quote the copies for generation of the libtool script.
10638  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10639    SED SHELL STRIP \
10640    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10641    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10642    deplibs_check_method reload_flag reload_cmds need_locks \
10643    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10644    lt_cv_sys_global_symbol_to_c_name_address \
10645    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10646    old_postinstall_cmds old_postuninstall_cmds \
10647    compiler \
10648    CC \
10649    LD \
10650    lt_prog_compiler_wl \
10651    lt_prog_compiler_pic \
10652    lt_prog_compiler_static \
10653    lt_prog_compiler_no_builtin_flag \
10654    export_dynamic_flag_spec \
10655    thread_safe_flag_spec \
10656    whole_archive_flag_spec \
10657    enable_shared_with_static_runtimes \
10658    old_archive_cmds \
10659    old_archive_from_new_cmds \
10660    predep_objects \
10661    postdep_objects \
10662    predeps \
10663    postdeps \
10664    compiler_lib_search_path \
10665    compiler_lib_search_dirs \
10666    archive_cmds \
10667    archive_expsym_cmds \
10668    postinstall_cmds \
10669    postuninstall_cmds \
10670    old_archive_from_expsyms_cmds \
10671    allow_undefined_flag \
10672    no_undefined_flag \
10673    export_symbols_cmds \
10674    hardcode_libdir_flag_spec \
10675    hardcode_libdir_flag_spec_ld \
10676    hardcode_libdir_separator \
10677    hardcode_automatic \
10678    module_cmds \
10679    module_expsym_cmds \
10680    lt_cv_prog_compiler_c_o \
10681    fix_srcfile_path \
10682    exclude_expsyms \
10683    include_expsyms; do
10684
10685    case $var in
10686    old_archive_cmds | \
10687    old_archive_from_new_cmds | \
10688    archive_cmds | \
10689    archive_expsym_cmds | \
10690    module_cmds | \
10691    module_expsym_cmds | \
10692    old_archive_from_expsyms_cmds | \
10693    export_symbols_cmds | \
10694    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10695    postinstall_cmds | postuninstall_cmds | \
10696    old_postinstall_cmds | old_postuninstall_cmds | \
10697    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10698      # Double-quote double-evaled strings.
10699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10700      ;;
10701    *)
10702      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10703      ;;
10704    esac
10705  done
10706
10707  case $lt_echo in
10708  *'\$0 --fallback-echo"')
10709    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10710    ;;
10711  esac
10712
10713cfgfile="${ofile}T"
10714  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10715  $rm -f "$cfgfile"
10716  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10717$as_echo "$as_me: creating $ofile" >&6;}
10718
10719  cat <<__EOF__ >> "$cfgfile"
10720#! $SHELL
10721
10722# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10723# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10724# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10725#
10726# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10727# Free Software Foundation, Inc.
10728#
10729# This file is part of GNU Libtool:
10730# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10731#
10732# This program is free software; you can redistribute it and/or modify
10733# it under the terms of the GNU General Public License as published by
10734# the Free Software Foundation; either version 2 of the License, or
10735# (at your option) any later version.
10736#
10737# This program is distributed in the hope that it will be useful, but
10738# WITHOUT ANY WARRANTY; without even the implied warranty of
10739# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10740# General Public License for more details.
10741#
10742# You should have received a copy of the GNU General Public License
10743# along with this program; if not, write to the Free Software
10744# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10745#
10746# As a special exception to the GNU General Public License, if you
10747# distribute this file as part of a program that contains a
10748# configuration script generated by Autoconf, you may include it under
10749# the same distribution terms that you use for the rest of that program.
10750
10751# A sed program that does not truncate output.
10752SED=$lt_SED
10753
10754# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10755Xsed="$SED -e 1s/^X//"
10756
10757# The HP-UX ksh and POSIX shell print the target directory to stdout
10758# if CDPATH is set.
10759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10760
10761# The names of the tagged configurations supported by this script.
10762available_tags=
10763
10764# ### BEGIN LIBTOOL CONFIG
10765
10766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10767
10768# Shell to use when invoking shell scripts.
10769SHELL=$lt_SHELL
10770
10771# Whether or not to build shared libraries.
10772build_libtool_libs=$enable_shared
10773
10774# Whether or not to build static libraries.
10775build_old_libs=$enable_static
10776
10777# Whether or not to add -lc for building shared libraries.
10778build_libtool_need_lc=$archive_cmds_need_lc
10779
10780# Whether or not to disallow shared libs when runtime libs are static
10781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10782
10783# Whether or not to optimize for fast installation.
10784fast_install=$enable_fast_install
10785
10786# The host system.
10787host_alias=$host_alias
10788host=$host
10789host_os=$host_os
10790
10791# The build system.
10792build_alias=$build_alias
10793build=$build
10794build_os=$build_os
10795
10796# An echo program that does not interpret backslashes.
10797echo=$lt_echo
10798
10799# The archiver.
10800AR=$lt_AR
10801AR_FLAGS=$lt_AR_FLAGS
10802
10803# A C compiler.
10804LTCC=$lt_LTCC
10805
10806# LTCC compiler flags.
10807LTCFLAGS=$lt_LTCFLAGS
10808
10809# A language-specific compiler.
10810CC=$lt_compiler
10811
10812# Is the compiler the GNU C compiler?
10813with_gcc=$GCC
10814
10815# An ERE matcher.
10816EGREP=$lt_EGREP
10817
10818# The linker used to build libraries.
10819LD=$lt_LD
10820
10821# Whether we need hard or soft links.
10822LN_S=$lt_LN_S
10823
10824# A BSD-compatible nm program.
10825NM=$lt_NM
10826
10827# A symbol stripping program
10828STRIP=$lt_STRIP
10829
10830# Used to examine libraries when file_magic_cmd begins "file"
10831MAGIC_CMD=$MAGIC_CMD
10832
10833# Used on cygwin: DLL creation program.
10834DLLTOOL="$DLLTOOL"
10835
10836# Used on cygwin: object dumper.
10837OBJDUMP="$OBJDUMP"
10838
10839# Used on cygwin: assembler.
10840AS="$AS"
10841
10842# The name of the directory that contains temporary libtool files.
10843objdir=$objdir
10844
10845# How to create reloadable object files.
10846reload_flag=$lt_reload_flag
10847reload_cmds=$lt_reload_cmds
10848
10849# How to pass a linker flag through the compiler.
10850wl=$lt_lt_prog_compiler_wl
10851
10852# Object file suffix (normally "o").
10853objext="$ac_objext"
10854
10855# Old archive suffix (normally "a").
10856libext="$libext"
10857
10858# Shared library suffix (normally ".so").
10859shrext_cmds='$shrext_cmds'
10860
10861# Executable file suffix (normally "").
10862exeext="$exeext"
10863
10864# Additional compiler flags for building library objects.
10865pic_flag=$lt_lt_prog_compiler_pic
10866pic_mode=$pic_mode
10867
10868# What is the maximum length of a command?
10869max_cmd_len=$lt_cv_sys_max_cmd_len
10870
10871# Does compiler simultaneously support -c and -o options?
10872compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10873
10874# Must we lock files when doing compilation?
10875need_locks=$lt_need_locks
10876
10877# Do we need the lib prefix for modules?
10878need_lib_prefix=$need_lib_prefix
10879
10880# Do we need a version for libraries?
10881need_version=$need_version
10882
10883# Whether dlopen is supported.
10884dlopen_support=$enable_dlopen
10885
10886# Whether dlopen of programs is supported.
10887dlopen_self=$enable_dlopen_self
10888
10889# Whether dlopen of statically linked programs is supported.
10890dlopen_self_static=$enable_dlopen_self_static
10891
10892# Compiler flag to prevent dynamic linking.
10893link_static_flag=$lt_lt_prog_compiler_static
10894
10895# Compiler flag to turn off builtin functions.
10896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10897
10898# Compiler flag to allow reflexive dlopens.
10899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10900
10901# Compiler flag to generate shared objects directly from archives.
10902whole_archive_flag_spec=$lt_whole_archive_flag_spec
10903
10904# Compiler flag to generate thread-safe objects.
10905thread_safe_flag_spec=$lt_thread_safe_flag_spec
10906
10907# Library versioning type.
10908version_type=$version_type
10909
10910# Format of library name prefix.
10911libname_spec=$lt_libname_spec
10912
10913# List of archive names.  First name is the real one, the rest are links.
10914# The last name is the one that the linker finds with -lNAME.
10915library_names_spec=$lt_library_names_spec
10916
10917# The coded name of the library, if different from the real name.
10918soname_spec=$lt_soname_spec
10919
10920# Commands used to build and install an old-style archive.
10921RANLIB=$lt_RANLIB
10922old_archive_cmds=$lt_old_archive_cmds
10923old_postinstall_cmds=$lt_old_postinstall_cmds
10924old_postuninstall_cmds=$lt_old_postuninstall_cmds
10925
10926# Create an old-style archive from a shared archive.
10927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10928
10929# Create a temporary old-style archive to link instead of a shared archive.
10930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10931
10932# Commands used to build and install a shared archive.
10933archive_cmds=$lt_archive_cmds
10934archive_expsym_cmds=$lt_archive_expsym_cmds
10935postinstall_cmds=$lt_postinstall_cmds
10936postuninstall_cmds=$lt_postuninstall_cmds
10937
10938# Commands used to build a loadable module (assumed same as above if empty)
10939module_cmds=$lt_module_cmds
10940module_expsym_cmds=$lt_module_expsym_cmds
10941
10942# Commands to strip libraries.
10943old_striplib=$lt_old_striplib
10944striplib=$lt_striplib
10945
10946# Dependencies to place before the objects being linked to create a
10947# shared library.
10948predep_objects=$lt_predep_objects
10949
10950# Dependencies to place after the objects being linked to create a
10951# shared library.
10952postdep_objects=$lt_postdep_objects
10953
10954# Dependencies to place before the objects being linked to create a
10955# shared library.
10956predeps=$lt_predeps
10957
10958# Dependencies to place after the objects being linked to create a
10959# shared library.
10960postdeps=$lt_postdeps
10961
10962# The directories searched by this compiler when creating a shared
10963# library
10964compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10965
10966# The library search path used internally by the compiler when linking
10967# a shared library.
10968compiler_lib_search_path=$lt_compiler_lib_search_path
10969
10970# Method to check whether dependent libraries are shared objects.
10971deplibs_check_method=$lt_deplibs_check_method
10972
10973# Command to use when deplibs_check_method == file_magic.
10974file_magic_cmd=$lt_file_magic_cmd
10975
10976# Flag that allows shared libraries with undefined symbols to be built.
10977allow_undefined_flag=$lt_allow_undefined_flag
10978
10979# Flag that forces no undefined symbols.
10980no_undefined_flag=$lt_no_undefined_flag
10981
10982# Commands used to finish a libtool library installation in a directory.
10983finish_cmds=$lt_finish_cmds
10984
10985# Same as above, but a single script fragment to be evaled but not shown.
10986finish_eval=$lt_finish_eval
10987
10988# Take the output of nm and produce a listing of raw symbols and C names.
10989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10990
10991# Transform the output of nm in a proper C declaration
10992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10993
10994# Transform the output of nm in a C name address pair
10995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10996
10997# This is the shared library runtime path variable.
10998runpath_var=$runpath_var
10999
11000# This is the shared library path variable.
11001shlibpath_var=$shlibpath_var
11002
11003# Is shlibpath searched before the hard-coded library search path?
11004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11005
11006# How to hardcode a shared library path into an executable.
11007hardcode_action=$hardcode_action
11008
11009# Whether we should hardcode library paths into libraries.
11010hardcode_into_libs=$hardcode_into_libs
11011
11012# Flag to hardcode \$libdir into a binary during linking.
11013# This must work even if \$libdir does not exist.
11014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11015
11016# If ld is used when linking, flag to hardcode \$libdir into
11017# a binary during linking. This must work even if \$libdir does
11018# not exist.
11019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11020
11021# Whether we need a single -rpath flag with a separated argument.
11022hardcode_libdir_separator=$lt_hardcode_libdir_separator
11023
11024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11025# resulting binary.
11026hardcode_direct=$hardcode_direct
11027
11028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11029# resulting binary.
11030hardcode_minus_L=$hardcode_minus_L
11031
11032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11033# the resulting binary.
11034hardcode_shlibpath_var=$hardcode_shlibpath_var
11035
11036# Set to yes if building a shared library automatically hardcodes DIR into the library
11037# and all subsequent libraries and executables linked against it.
11038hardcode_automatic=$hardcode_automatic
11039
11040# Variables whose values should be saved in libtool wrapper scripts and
11041# restored at relink time.
11042variables_saved_for_relink="$variables_saved_for_relink"
11043
11044# Whether libtool must link a program against all its dependency libraries.
11045link_all_deplibs=$link_all_deplibs
11046
11047# Compile-time system search path for libraries
11048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11049
11050# Run-time system search path for libraries
11051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11052
11053# Fix the shell variable \$srcfile for the compiler.
11054fix_srcfile_path=$lt_fix_srcfile_path
11055
11056# Set to yes if exported symbols are required.
11057always_export_symbols=$always_export_symbols
11058
11059# The commands to list exported symbols.
11060export_symbols_cmds=$lt_export_symbols_cmds
11061
11062# The commands to extract the exported symbol list from a shared archive.
11063extract_expsyms_cmds=$lt_extract_expsyms_cmds
11064
11065# Symbols that should not be listed in the preloaded symbols.
11066exclude_expsyms=$lt_exclude_expsyms
11067
11068# Symbols that must always be exported.
11069include_expsyms=$lt_include_expsyms
11070
11071# ### END LIBTOOL CONFIG
11072
11073__EOF__
11074
11075
11076  case $host_os in
11077  aix3*)
11078    cat <<\EOF >> "$cfgfile"
11079
11080# AIX sometimes has problems with the GCC collect2 program.  For some
11081# reason, if we set the COLLECT_NAMES environment variable, the problems
11082# vanish in a puff of smoke.
11083if test "X${COLLECT_NAMES+set}" != Xset; then
11084  COLLECT_NAMES=
11085  export COLLECT_NAMES
11086fi
11087EOF
11088    ;;
11089  esac
11090
11091  # We use sed instead of cat because bash on DJGPP gets confused if
11092  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11093  # text mode, it properly converts lines to CR/LF.  This bash problem
11094  # is reportedly fixed, but why not run on old versions too?
11095  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11096
11097  mv -f "$cfgfile" "$ofile" || \
11098    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11099  chmod +x "$ofile"
11100
11101else
11102  # If there is no Makefile yet, we rely on a make rule to execute
11103  # `config.status --recheck' to rerun these tests and create the
11104  # libtool script then.
11105  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11106  if test -f "$ltmain_in"; then
11107    test -f Makefile && make "$ltmain"
11108  fi
11109fi
11110
11111
11112ac_ext=c
11113ac_cpp='$CPP $CPPFLAGS'
11114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116ac_compiler_gnu=$ac_cv_c_compiler_gnu
11117
11118CC="$lt_save_CC"
11119
11120
11121# Check whether --with-tags was given.
11122if test "${with_tags+set}" = set; then
11123  withval=$with_tags; tagnames="$withval"
11124fi
11125
11126
11127if test -f "$ltmain" && test -n "$tagnames"; then
11128  if test ! -f "${ofile}"; then
11129    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11130$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11131  fi
11132
11133  if test -z "$LTCC"; then
11134    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11135    if test -z "$LTCC"; then
11136      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11137$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11138    else
11139      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11140$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11141    fi
11142  fi
11143  if test -z "$LTCFLAGS"; then
11144    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11145  fi
11146
11147  # Extract list of available tagged configurations in $ofile.
11148  # Note that this assumes the entire list is on one line.
11149  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11150
11151  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11152  for tagname in $tagnames; do
11153    IFS="$lt_save_ifs"
11154    # Check whether tagname contains only valid characters
11155    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11156    "") ;;
11157    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11158$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11159   { (exit 1); exit 1; }; }
11160	;;
11161    esac
11162
11163    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11164    then
11165      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11166$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11167   { (exit 1); exit 1; }; }
11168    fi
11169
11170    # Update the list of available tags.
11171    if test -n "$tagname"; then
11172      echo appending configuration tag \"$tagname\" to $ofile
11173
11174      case $tagname in
11175      CXX)
11176	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11177	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11178	    (test "X$CXX" != "Xg++"))) ; then
11179	  ac_ext=cpp
11180ac_cpp='$CXXCPP $CPPFLAGS'
11181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11184
11185
11186
11187
11188archive_cmds_need_lc_CXX=no
11189allow_undefined_flag_CXX=
11190always_export_symbols_CXX=no
11191archive_expsym_cmds_CXX=
11192export_dynamic_flag_spec_CXX=
11193hardcode_direct_CXX=no
11194hardcode_libdir_flag_spec_CXX=
11195hardcode_libdir_flag_spec_ld_CXX=
11196hardcode_libdir_separator_CXX=
11197hardcode_minus_L_CXX=no
11198hardcode_shlibpath_var_CXX=unsupported
11199hardcode_automatic_CXX=no
11200module_cmds_CXX=
11201module_expsym_cmds_CXX=
11202link_all_deplibs_CXX=unknown
11203old_archive_cmds_CXX=$old_archive_cmds
11204no_undefined_flag_CXX=
11205whole_archive_flag_spec_CXX=
11206enable_shared_with_static_runtimes_CXX=no
11207
11208# Dependencies to place before and after the object being linked:
11209predep_objects_CXX=
11210postdep_objects_CXX=
11211predeps_CXX=
11212postdeps_CXX=
11213compiler_lib_search_path_CXX=
11214compiler_lib_search_dirs_CXX=
11215
11216# Source file extension for C++ test sources.
11217ac_ext=cpp
11218
11219# Object file extension for compiled C++ test sources.
11220objext=o
11221objext_CXX=$objext
11222
11223# Code to be used in simple compile tests
11224lt_simple_compile_test_code="int some_variable = 0;"
11225
11226# Code to be used in simple link tests
11227lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11228
11229# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11230
11231# If no C compiler was specified, use CC.
11232LTCC=${LTCC-"$CC"}
11233
11234# If no C compiler flags were specified, use CFLAGS.
11235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11236
11237# Allow CC to be a program name with arguments.
11238compiler=$CC
11239
11240
11241# save warnings/boilerplate of simple test code
11242ac_outfile=conftest.$ac_objext
11243echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11245_lt_compiler_boilerplate=`cat conftest.err`
11246$rm conftest*
11247
11248ac_outfile=conftest.$ac_objext
11249echo "$lt_simple_link_test_code" >conftest.$ac_ext
11250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11251_lt_linker_boilerplate=`cat conftest.err`
11252$rm -r conftest*
11253
11254
11255# Allow CC to be a program name with arguments.
11256lt_save_CC=$CC
11257lt_save_LD=$LD
11258lt_save_GCC=$GCC
11259GCC=$GXX
11260lt_save_with_gnu_ld=$with_gnu_ld
11261lt_save_path_LD=$lt_cv_path_LD
11262if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11263  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11264else
11265  $as_unset lt_cv_prog_gnu_ld
11266fi
11267if test -n "${lt_cv_path_LDCXX+set}"; then
11268  lt_cv_path_LD=$lt_cv_path_LDCXX
11269else
11270  $as_unset lt_cv_path_LD
11271fi
11272test -z "${LDCXX+set}" || LD=$LDCXX
11273CC=${CXX-"c++"}
11274compiler=$CC
11275compiler_CXX=$CC
11276for cc_temp in $compiler""; do
11277  case $cc_temp in
11278    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11279    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11280    \-*) ;;
11281    *) break;;
11282  esac
11283done
11284cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11285
11286
11287# We don't want -fno-exception wen compiling C++ code, so set the
11288# no_builtin_flag separately
11289if test "$GXX" = yes; then
11290  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11291else
11292  lt_prog_compiler_no_builtin_flag_CXX=
11293fi
11294
11295if test "$GXX" = yes; then
11296  # Set up default GNU C++ configuration
11297
11298
11299# Check whether --with-gnu-ld was given.
11300if test "${with_gnu_ld+set}" = set; then
11301  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11302else
11303  with_gnu_ld=no
11304fi
11305
11306ac_prog=ld
11307if test "$GCC" = yes; then
11308  # Check if gcc -print-prog-name=ld gives a path.
11309  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11310$as_echo_n "checking for ld used by $CC... " >&6; }
11311  case $host in
11312  *-*-mingw*)
11313    # gcc leaves a trailing carriage return which upsets mingw
11314    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11315  *)
11316    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11317  esac
11318  case $ac_prog in
11319    # Accept absolute paths.
11320    [\\/]* | ?:[\\/]*)
11321      re_direlt='/[^/][^/]*/\.\./'
11322      # Canonicalize the pathname of ld
11323      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11324      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11325	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11326      done
11327      test -z "$LD" && LD="$ac_prog"
11328      ;;
11329  "")
11330    # If it fails, then pretend we aren't using GCC.
11331    ac_prog=ld
11332    ;;
11333  *)
11334    # If it is relative, then search for the first ld in PATH.
11335    with_gnu_ld=unknown
11336    ;;
11337  esac
11338elif test "$with_gnu_ld" = yes; then
11339  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11340$as_echo_n "checking for GNU ld... " >&6; }
11341else
11342  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11343$as_echo_n "checking for non-GNU ld... " >&6; }
11344fi
11345if test "${lt_cv_path_LD+set}" = set; then
11346  $as_echo_n "(cached) " >&6
11347else
11348  if test -z "$LD"; then
11349  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11350  for ac_dir in $PATH; do
11351    IFS="$lt_save_ifs"
11352    test -z "$ac_dir" && ac_dir=.
11353    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11354      lt_cv_path_LD="$ac_dir/$ac_prog"
11355      # Check to see if the program is GNU ld.  I'd rather use --version,
11356      # but apparently some variants of GNU ld only accept -v.
11357      # Break only if it was the GNU/non-GNU ld that we prefer.
11358      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11359      *GNU* | *'with BFD'*)
11360	test "$with_gnu_ld" != no && break
11361	;;
11362      *)
11363	test "$with_gnu_ld" != yes && break
11364	;;
11365      esac
11366    fi
11367  done
11368  IFS="$lt_save_ifs"
11369else
11370  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11371fi
11372fi
11373
11374LD="$lt_cv_path_LD"
11375if test -n "$LD"; then
11376  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11377$as_echo "$LD" >&6; }
11378else
11379  { $as_echo "$as_me:$LINENO: result: no" >&5
11380$as_echo "no" >&6; }
11381fi
11382test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11383$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11384   { (exit 1); exit 1; }; }
11385{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11386$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11387if test "${lt_cv_prog_gnu_ld+set}" = set; then
11388  $as_echo_n "(cached) " >&6
11389else
11390  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11391case `$LD -v 2>&1 </dev/null` in
11392*GNU* | *'with BFD'*)
11393  lt_cv_prog_gnu_ld=yes
11394  ;;
11395*)
11396  lt_cv_prog_gnu_ld=no
11397  ;;
11398esac
11399fi
11400{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11401$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11402with_gnu_ld=$lt_cv_prog_gnu_ld
11403
11404
11405
11406  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11407  # archiving commands below assume that GNU ld is being used.
11408  if test "$with_gnu_ld" = yes; then
11409    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11410    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'
11411
11412    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11413    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414
11415    # If archive_cmds runs LD, not CC, wlarc should be empty
11416    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11417    #     investigate it a little bit more. (MM)
11418    wlarc='${wl}'
11419
11420    # ancient GNU ld didn't support --whole-archive et. al.
11421    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11422	grep 'no-whole-archive' > /dev/null; then
11423      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11424    else
11425      whole_archive_flag_spec_CXX=
11426    fi
11427  else
11428    with_gnu_ld=no
11429    wlarc=
11430
11431    # A generic and very simple default shared library creation
11432    # command for GNU C++ for the case where it uses the native
11433    # linker, instead of GNU ld.  If possible, this setting should
11434    # overridden to take advantage of the native linker features on
11435    # the platform it is being used on.
11436    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11437  fi
11438
11439  # Commands to make compiler produce verbose output that lists
11440  # what "hidden" libraries, object files and flags are used when
11441  # linking a shared library.
11442  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11443
11444else
11445  GXX=no
11446  with_gnu_ld=no
11447  wlarc=
11448fi
11449
11450# PORTME: fill in a description of your system's C++ link characteristics
11451{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11452$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11453ld_shlibs_CXX=yes
11454case $host_os in
11455  aix3*)
11456    # FIXME: insert proper C++ library support
11457    ld_shlibs_CXX=no
11458    ;;
11459  aix[4-9]*)
11460    if test "$host_cpu" = ia64; then
11461      # On IA64, the linker does run time linking by default, so we don't
11462      # have to do anything special.
11463      aix_use_runtimelinking=no
11464      exp_sym_flag='-Bexport'
11465      no_entry_flag=""
11466    else
11467      aix_use_runtimelinking=no
11468
11469      # Test if we are trying to use run time linking or normal
11470      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11471      # need to do runtime linking.
11472      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11473	for ld_flag in $LDFLAGS; do
11474	  case $ld_flag in
11475	  *-brtl*)
11476	    aix_use_runtimelinking=yes
11477	    break
11478	    ;;
11479	  esac
11480	done
11481	;;
11482      esac
11483
11484      exp_sym_flag='-bexport'
11485      no_entry_flag='-bnoentry'
11486    fi
11487
11488    # When large executables or shared objects are built, AIX ld can
11489    # have problems creating the table of contents.  If linking a library
11490    # or program results in "error TOC overflow" add -mminimal-toc to
11491    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11492    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11493
11494    archive_cmds_CXX=''
11495    hardcode_direct_CXX=yes
11496    hardcode_libdir_separator_CXX=':'
11497    link_all_deplibs_CXX=yes
11498
11499    if test "$GXX" = yes; then
11500      case $host_os in aix4.[012]|aix4.[012].*)
11501      # We only want to do this on AIX 4.2 and lower, the check
11502      # below for broken collect2 doesn't work under 4.3+
11503	collect2name=`${CC} -print-prog-name=collect2`
11504	if test -f "$collect2name" && \
11505	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11506	then
11507	  # We have reworked collect2
11508	  :
11509	else
11510	  # We have old collect2
11511	  hardcode_direct_CXX=unsupported
11512	  # It fails to find uninstalled libraries when the uninstalled
11513	  # path is not listed in the libpath.  Setting hardcode_minus_L
11514	  # to unsupported forces relinking
11515	  hardcode_minus_L_CXX=yes
11516	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11517	  hardcode_libdir_separator_CXX=
11518	fi
11519	;;
11520      esac
11521      shared_flag='-shared'
11522      if test "$aix_use_runtimelinking" = yes; then
11523	shared_flag="$shared_flag "'${wl}-G'
11524      fi
11525    else
11526      # not using gcc
11527      if test "$host_cpu" = ia64; then
11528	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11529	# chokes on -Wl,-G. The following line is correct:
11530	shared_flag='-G'
11531      else
11532	if test "$aix_use_runtimelinking" = yes; then
11533	  shared_flag='${wl}-G'
11534	else
11535	  shared_flag='${wl}-bM:SRE'
11536	fi
11537      fi
11538    fi
11539
11540    # It seems that -bexpall does not export symbols beginning with
11541    # underscore (_), so it is better to generate a list of symbols to export.
11542    always_export_symbols_CXX=yes
11543    if test "$aix_use_runtimelinking" = yes; then
11544      # Warning - without using the other runtime loading flags (-brtl),
11545      # -berok will link without error, but may produce a broken library.
11546      allow_undefined_flag_CXX='-berok'
11547      # Determine the default libpath from the value encoded in an empty executable.
11548      cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h.  */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h.  */
11554
11555int
11556main ()
11557{
11558
11559  ;
11560  return 0;
11561}
11562_ACEOF
11563rm -f conftest.$ac_objext conftest$ac_exeext
11564if { (ac_try="$ac_link"
11565case "(($ac_try" in
11566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567  *) ac_try_echo=$ac_try;;
11568esac
11569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570$as_echo "$ac_try_echo") >&5
11571  (eval "$ac_link") 2>conftest.er1
11572  ac_status=$?
11573  grep -v '^ *+' conftest.er1 >conftest.err
11574  rm -f conftest.er1
11575  cat conftest.err >&5
11576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577  (exit $ac_status); } && {
11578	 test -z "$ac_cxx_werror_flag" ||
11579	 test ! -s conftest.err
11580       } && test -s conftest$ac_exeext && {
11581	 test "$cross_compiling" = yes ||
11582	 $as_test_x conftest$ac_exeext
11583       }; then
11584
11585lt_aix_libpath_sed='
11586    /Import File Strings/,/^$/ {
11587	/^0/ {
11588	    s/^0  *\(.*\)$/\1/
11589	    p
11590	}
11591    }'
11592aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11593# Check for a 64-bit object if we didn't find anything.
11594if test -z "$aix_libpath"; then
11595  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11596fi
11597else
11598  $as_echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601
11602fi
11603
11604rm -rf conftest.dSYM
11605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11606      conftest$ac_exeext conftest.$ac_ext
11607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11608
11609      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11610
11611      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"
11612     else
11613      if test "$host_cpu" = ia64; then
11614	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11615	allow_undefined_flag_CXX="-z nodefs"
11616	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"
11617      else
11618	# Determine the default libpath from the value encoded in an empty executable.
11619	cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h.  */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h.  */
11625
11626int
11627main ()
11628{
11629
11630  ;
11631  return 0;
11632}
11633_ACEOF
11634rm -f conftest.$ac_objext conftest$ac_exeext
11635if { (ac_try="$ac_link"
11636case "(($ac_try" in
11637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638  *) ac_try_echo=$ac_try;;
11639esac
11640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641$as_echo "$ac_try_echo") >&5
11642  (eval "$ac_link") 2>conftest.er1
11643  ac_status=$?
11644  grep -v '^ *+' conftest.er1 >conftest.err
11645  rm -f conftest.er1
11646  cat conftest.err >&5
11647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648  (exit $ac_status); } && {
11649	 test -z "$ac_cxx_werror_flag" ||
11650	 test ! -s conftest.err
11651       } && test -s conftest$ac_exeext && {
11652	 test "$cross_compiling" = yes ||
11653	 $as_test_x conftest$ac_exeext
11654       }; then
11655
11656lt_aix_libpath_sed='
11657    /Import File Strings/,/^$/ {
11658	/^0/ {
11659	    s/^0  *\(.*\)$/\1/
11660	    p
11661	}
11662    }'
11663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11664# Check for a 64-bit object if we didn't find anything.
11665if test -z "$aix_libpath"; then
11666  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11667fi
11668else
11669  $as_echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672
11673fi
11674
11675rm -rf conftest.dSYM
11676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677      conftest$ac_exeext conftest.$ac_ext
11678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11679
11680	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11681	# Warning - without using the other run time loading flags,
11682	# -berok will link without error, but may produce a broken library.
11683	no_undefined_flag_CXX=' ${wl}-bernotok'
11684	allow_undefined_flag_CXX=' ${wl}-berok'
11685	# Exported symbols can be pulled into shared objects from archives
11686	whole_archive_flag_spec_CXX='$convenience'
11687	archive_cmds_need_lc_CXX=yes
11688	# This is similar to how AIX traditionally builds its shared libraries.
11689	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'
11690      fi
11691    fi
11692    ;;
11693
11694  beos*)
11695    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11696      allow_undefined_flag_CXX=unsupported
11697      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11698      # support --undefined.  This deserves some investigation.  FIXME
11699      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700    else
11701      ld_shlibs_CXX=no
11702    fi
11703    ;;
11704
11705  chorus*)
11706    case $cc_basename in
11707      *)
11708	# FIXME: insert proper C++ library support
11709	ld_shlibs_CXX=no
11710	;;
11711    esac
11712    ;;
11713
11714  cygwin* | mingw* | pw32*)
11715    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11716    # as there is no search path for DLLs.
11717    hardcode_libdir_flag_spec_CXX='-L$libdir'
11718    allow_undefined_flag_CXX=unsupported
11719    always_export_symbols_CXX=no
11720    enable_shared_with_static_runtimes_CXX=yes
11721
11722    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11723      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'
11724      # If the export-symbols file already is a .def file (1st line
11725      # is EXPORTS), use it as is; otherwise, prepend...
11726      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11727	cp $export_symbols $output_objdir/$soname.def;
11728      else
11729	echo EXPORTS > $output_objdir/$soname.def;
11730	cat $export_symbols >> $output_objdir/$soname.def;
11731      fi~
11732      $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'
11733    else
11734      ld_shlibs_CXX=no
11735    fi
11736  ;;
11737      darwin* | rhapsody*)
11738      archive_cmds_need_lc_CXX=no
11739      hardcode_direct_CXX=no
11740      hardcode_automatic_CXX=yes
11741      hardcode_shlibpath_var_CXX=unsupported
11742      whole_archive_flag_spec_CXX=''
11743      link_all_deplibs_CXX=yes
11744      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11745      if test "$GXX" = yes ; then
11746      output_verbose_link_cmd='echo'
11747      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}"
11748      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11749      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}"
11750      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}"
11751      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11752        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}"
11753        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}"
11754      fi
11755      else
11756      case $cc_basename in
11757        xlc*)
11758         output_verbose_link_cmd='echo'
11759          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'
11760          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11761          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11762          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}'
11763          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}'
11764          ;;
11765       *)
11766         ld_shlibs_CXX=no
11767          ;;
11768      esac
11769      fi
11770        ;;
11771
11772  dgux*)
11773    case $cc_basename in
11774      ec++*)
11775	# FIXME: insert proper C++ library support
11776	ld_shlibs_CXX=no
11777	;;
11778      ghcx*)
11779	# Green Hills C++ Compiler
11780	# FIXME: insert proper C++ library support
11781	ld_shlibs_CXX=no
11782	;;
11783      *)
11784	# FIXME: insert proper C++ library support
11785	ld_shlibs_CXX=no
11786	;;
11787    esac
11788    ;;
11789  freebsd[12]*)
11790    # C++ shared libraries reported to be fairly broken before switch to ELF
11791    ld_shlibs_CXX=no
11792    ;;
11793  freebsd-elf*)
11794    archive_cmds_need_lc_CXX=no
11795    ;;
11796  freebsd* | dragonfly*)
11797    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11798    # conventions
11799    ld_shlibs_CXX=yes
11800    ;;
11801  gnu*)
11802    ;;
11803  hpux9*)
11804    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11805    hardcode_libdir_separator_CXX=:
11806    export_dynamic_flag_spec_CXX='${wl}-E'
11807    hardcode_direct_CXX=yes
11808    hardcode_minus_L_CXX=yes # Not in the search PATH,
11809				# but as the default
11810				# location of the library.
11811
11812    case $cc_basename in
11813    CC*)
11814      # FIXME: insert proper C++ library support
11815      ld_shlibs_CXX=no
11816      ;;
11817    aCC*)
11818      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'
11819      # Commands to make compiler produce verbose output that lists
11820      # what "hidden" libraries, object files and flags are used when
11821      # linking a shared library.
11822      #
11823      # There doesn't appear to be a way to prevent this compiler from
11824      # explicitly linking system object files so we need to strip them
11825      # from the output so that they don't get included in the library
11826      # dependencies.
11827      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'
11828      ;;
11829    *)
11830      if test "$GXX" = yes; then
11831        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'
11832      else
11833        # FIXME: insert proper C++ library support
11834        ld_shlibs_CXX=no
11835      fi
11836      ;;
11837    esac
11838    ;;
11839  hpux10*|hpux11*)
11840    if test $with_gnu_ld = no; then
11841      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11842      hardcode_libdir_separator_CXX=:
11843
11844      case $host_cpu in
11845      hppa*64*|ia64*) ;;
11846      *)
11847	export_dynamic_flag_spec_CXX='${wl}-E'
11848        ;;
11849      esac
11850    fi
11851    case $host_cpu in
11852    hppa*64*|ia64*)
11853      hardcode_direct_CXX=no
11854      hardcode_shlibpath_var_CXX=no
11855      ;;
11856    *)
11857      hardcode_direct_CXX=yes
11858      hardcode_minus_L_CXX=yes # Not in the search PATH,
11859					      # but as the default
11860					      # location of the library.
11861      ;;
11862    esac
11863
11864    case $cc_basename in
11865      CC*)
11866	# FIXME: insert proper C++ library support
11867	ld_shlibs_CXX=no
11868	;;
11869      aCC*)
11870	case $host_cpu in
11871	hppa*64*)
11872	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873	  ;;
11874	ia64*)
11875	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876	  ;;
11877	*)
11878	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11879	  ;;
11880	esac
11881	# Commands to make compiler produce verbose output that lists
11882	# what "hidden" libraries, object files and flags are used when
11883	# linking a shared library.
11884	#
11885	# There doesn't appear to be a way to prevent this compiler from
11886	# explicitly linking system object files so we need to strip them
11887	# from the output so that they don't get included in the library
11888	# dependencies.
11889	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'
11890	;;
11891      *)
11892	if test "$GXX" = yes; then
11893	  if test $with_gnu_ld = no; then
11894	    case $host_cpu in
11895	    hppa*64*)
11896	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	      ;;
11898	    ia64*)
11899	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900	      ;;
11901	    *)
11902	      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'
11903	      ;;
11904	    esac
11905	  fi
11906	else
11907	  # FIXME: insert proper C++ library support
11908	  ld_shlibs_CXX=no
11909	fi
11910	;;
11911    esac
11912    ;;
11913  interix[3-9]*)
11914    hardcode_direct_CXX=no
11915    hardcode_shlibpath_var_CXX=no
11916    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11917    export_dynamic_flag_spec_CXX='${wl}-E'
11918    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11919    # Instead, shared libraries are loaded at an image base (0x10000000 by
11920    # default) and relocated if they conflict, which is a slow very memory
11921    # consuming and fragmenting process.  To avoid this, we pick a random,
11922    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11923    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11924    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'
11925    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'
11926    ;;
11927  irix5* | irix6*)
11928    case $cc_basename in
11929      CC*)
11930	# SGI C++
11931	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'
11932
11933	# Archives containing C++ object files must be created using
11934	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11935	# necessary to make sure instantiated templates are included
11936	# in the archive.
11937	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11938	;;
11939      *)
11940	if test "$GXX" = yes; then
11941	  if test "$with_gnu_ld" = no; then
11942	    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'
11943	  else
11944	    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'
11945	  fi
11946	fi
11947	link_all_deplibs_CXX=yes
11948	;;
11949    esac
11950    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11951    hardcode_libdir_separator_CXX=:
11952    ;;
11953  linux* | k*bsd*-gnu)
11954    case $cc_basename in
11955      KCC*)
11956	# Kuck and Associates, Inc. (KAI) C++ Compiler
11957
11958	# KCC will only create a shared library if the output file
11959	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11960	# to its proper name (with version) after linking.
11961	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'
11962	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'
11963	# Commands to make compiler produce verbose output that lists
11964	# what "hidden" libraries, object files and flags are used when
11965	# linking a shared library.
11966	#
11967	# There doesn't appear to be a way to prevent this compiler from
11968	# explicitly linking system object files so we need to strip them
11969	# from the output so that they don't get included in the library
11970	# dependencies.
11971	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'
11972
11973	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11974	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975
11976	# Archives containing C++ object files must be created using
11977	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11978	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11979	;;
11980      icpc*)
11981	# Intel C++
11982	with_gnu_ld=yes
11983	# version 8.0 and above of icpc choke on multiply defined symbols
11984	# if we add $predep_objects and $postdep_objects, however 7.1 and
11985	# earlier do not add the objects themselves.
11986	case `$CC -V 2>&1` in
11987	*"Version 7."*)
11988  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989  	  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'
11990	  ;;
11991	*)  # Version 8.0 or newer
11992	  tmp_idyn=
11993	  case $host_cpu in
11994	    ia64*) tmp_idyn=' -i_dynamic';;
11995	  esac
11996  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11997	  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'
11998	  ;;
11999	esac
12000	archive_cmds_need_lc_CXX=no
12001	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12003	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12004	;;
12005      pgCC* | pgcpp*)
12006        # Portland Group C++ compiler
12007	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12008  	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'
12009
12010	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12011	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012	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'
12013        ;;
12014      cxx*)
12015	# Compaq C++
12016	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017	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'
12018
12019	runpath_var=LD_RUN_PATH
12020	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12021	hardcode_libdir_separator_CXX=:
12022
12023	# Commands to make compiler produce verbose output that lists
12024	# what "hidden" libraries, object files and flags are used when
12025	# linking a shared library.
12026	#
12027	# There doesn't appear to be a way to prevent this compiler from
12028	# explicitly linking system object files so we need to strip them
12029	# from the output so that they don't get included in the library
12030	# dependencies.
12031	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'
12032	;;
12033      *)
12034	case `$CC -V 2>&1 | sed 5q` in
12035	*Sun\ C*)
12036	  # Sun C++ 5.9
12037	  no_undefined_flag_CXX=' -zdefs'
12038	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12039	  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'
12040	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12041	  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'
12042
12043	  # Not sure whether something based on
12044	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12045	  # would be better.
12046	  output_verbose_link_cmd='echo'
12047
12048	  # Archives containing C++ object files must be created using
12049	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12050	  # necessary to make sure instantiated templates are included
12051	  # in the archive.
12052	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12053	  ;;
12054	esac
12055	;;
12056    esac
12057    ;;
12058  lynxos*)
12059    # FIXME: insert proper C++ library support
12060    ld_shlibs_CXX=no
12061    ;;
12062  m88k*)
12063    # FIXME: insert proper C++ library support
12064    ld_shlibs_CXX=no
12065    ;;
12066  mvs*)
12067    case $cc_basename in
12068      cxx*)
12069	# FIXME: insert proper C++ library support
12070	ld_shlibs_CXX=no
12071	;;
12072      *)
12073	# FIXME: insert proper C++ library support
12074	ld_shlibs_CXX=no
12075	;;
12076    esac
12077    ;;
12078  netbsd*)
12079    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12080      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12081      wlarc=
12082      hardcode_libdir_flag_spec_CXX='-R$libdir'
12083      hardcode_direct_CXX=yes
12084      hardcode_shlibpath_var_CXX=no
12085    fi
12086    # Workaround some broken pre-1.5 toolchains
12087    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12088    ;;
12089  openbsd2*)
12090    # C++ shared libraries are fairly broken
12091    ld_shlibs_CXX=no
12092    ;;
12093  openbsd*)
12094    if test -f /usr/libexec/ld.so; then
12095      hardcode_direct_CXX=yes
12096      hardcode_shlibpath_var_CXX=no
12097      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12098      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12099      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12100	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12101	export_dynamic_flag_spec_CXX='${wl}-E'
12102	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12103      fi
12104      output_verbose_link_cmd='echo'
12105    else
12106      ld_shlibs_CXX=no
12107    fi
12108    ;;
12109  osf3*)
12110    case $cc_basename in
12111      KCC*)
12112	# Kuck and Associates, Inc. (KAI) C++ Compiler
12113
12114	# KCC will only create a shared library if the output file
12115	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12116	# to its proper name (with version) after linking.
12117	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'
12118
12119	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120	hardcode_libdir_separator_CXX=:
12121
12122	# Archives containing C++ object files must be created using
12123	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12124	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12125
12126	;;
12127      RCC*)
12128	# Rational C++ 2.4.1
12129	# FIXME: insert proper C++ library support
12130	ld_shlibs_CXX=no
12131	;;
12132      cxx*)
12133	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12134	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'
12135
12136	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12137	hardcode_libdir_separator_CXX=:
12138
12139	# Commands to make compiler produce verbose output that lists
12140	# what "hidden" libraries, object files and flags are used when
12141	# linking a shared library.
12142	#
12143	# There doesn't appear to be a way to prevent this compiler from
12144	# explicitly linking system object files so we need to strip them
12145	# from the output so that they don't get included in the library
12146	# dependencies.
12147	output_verbose_link_cmd='templist=`$CC -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'
12148	;;
12149      *)
12150	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12151	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152	  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'
12153
12154	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155	  hardcode_libdir_separator_CXX=:
12156
12157	  # Commands to make compiler produce verbose output that lists
12158	  # what "hidden" libraries, object files and flags are used when
12159	  # linking a shared library.
12160	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161
12162	else
12163	  # FIXME: insert proper C++ library support
12164	  ld_shlibs_CXX=no
12165	fi
12166	;;
12167    esac
12168    ;;
12169  osf4* | osf5*)
12170    case $cc_basename in
12171      KCC*)
12172	# Kuck and Associates, Inc. (KAI) C++ Compiler
12173
12174	# KCC will only create a shared library if the output file
12175	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12176	# to its proper name (with version) after linking.
12177	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'
12178
12179	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180	hardcode_libdir_separator_CXX=:
12181
12182	# Archives containing C++ object files must be created using
12183	# the KAI C++ compiler.
12184	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12185	;;
12186      RCC*)
12187	# Rational C++ 2.4.1
12188	# FIXME: insert proper C++ library support
12189	ld_shlibs_CXX=no
12190	;;
12191      cxx*)
12192	allow_undefined_flag_CXX=' -expect_unresolved \*'
12193	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'
12194	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12195	  echo "-hidden">> $lib.exp~
12196	  $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~
12197	  $rm $lib.exp'
12198
12199	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12200	hardcode_libdir_separator_CXX=:
12201
12202	# Commands to make compiler produce verbose output that lists
12203	# what "hidden" libraries, object files and flags are used when
12204	# linking a shared library.
12205	#
12206	# There doesn't appear to be a way to prevent this compiler from
12207	# explicitly linking system object files so we need to strip them
12208	# from the output so that they don't get included in the library
12209	# dependencies.
12210	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'
12211	;;
12212      *)
12213	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12214	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12215	 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'
12216
12217	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218	  hardcode_libdir_separator_CXX=:
12219
12220	  # Commands to make compiler produce verbose output that lists
12221	  # what "hidden" libraries, object files and flags are used when
12222	  # linking a shared library.
12223	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12224
12225	else
12226	  # FIXME: insert proper C++ library support
12227	  ld_shlibs_CXX=no
12228	fi
12229	;;
12230    esac
12231    ;;
12232  psos*)
12233    # FIXME: insert proper C++ library support
12234    ld_shlibs_CXX=no
12235    ;;
12236  sunos4*)
12237    case $cc_basename in
12238      CC*)
12239	# Sun C++ 4.x
12240	# FIXME: insert proper C++ library support
12241	ld_shlibs_CXX=no
12242	;;
12243      lcc*)
12244	# Lucid
12245	# FIXME: insert proper C++ library support
12246	ld_shlibs_CXX=no
12247	;;
12248      *)
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252    esac
12253    ;;
12254  solaris*)
12255    case $cc_basename in
12256      CC*)
12257	# Sun C++ 4.2, 5.x and Centerline C++
12258        archive_cmds_need_lc_CXX=yes
12259	no_undefined_flag_CXX=' -zdefs'
12260	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12262	$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'
12263
12264	hardcode_libdir_flag_spec_CXX='-R$libdir'
12265	hardcode_shlibpath_var_CXX=no
12266	case $host_os in
12267	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12268	  *)
12269	    # The compiler driver will combine and reorder linker options,
12270	    # but understands `-z linker_flag'.
12271	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12272	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12273	    ;;
12274	esac
12275	link_all_deplibs_CXX=yes
12276
12277	output_verbose_link_cmd='echo'
12278
12279	# Archives containing C++ object files must be created using
12280	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12281	# necessary to make sure instantiated templates are included
12282	# in the archive.
12283	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12284	;;
12285      gcx*)
12286	# Green Hills C++ Compiler
12287	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12288
12289	# The C++ compiler must be used to create the archive.
12290	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12291	;;
12292      *)
12293	# GNU C++ compiler with Solaris linker
12294	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12295	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12296	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12297	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12298	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12299		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12300
12301	    # Commands to make compiler produce verbose output that lists
12302	    # what "hidden" libraries, object files and flags are used when
12303	    # linking a shared library.
12304	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12305	  else
12306	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12307	    # platform.
12308	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12309	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12310		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12311
12312	    # Commands to make compiler produce verbose output that lists
12313	    # what "hidden" libraries, object files and flags are used when
12314	    # linking a shared library.
12315	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12316	  fi
12317
12318	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12319	  case $host_os in
12320	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12321	  *)
12322	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12323	    ;;
12324	  esac
12325	fi
12326	;;
12327    esac
12328    ;;
12329  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12330    no_undefined_flag_CXX='${wl}-z,text'
12331    archive_cmds_need_lc_CXX=no
12332    hardcode_shlibpath_var_CXX=no
12333    runpath_var='LD_RUN_PATH'
12334
12335    case $cc_basename in
12336      CC*)
12337	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339	;;
12340      *)
12341	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343	;;
12344    esac
12345    ;;
12346  sysv5* | sco3.2v5* | sco5v6*)
12347    # Note: We can NOT use -z defs as we might desire, because we do not
12348    # link with -lc, and that would cause any symbols used from libc to
12349    # always be unresolved, which means just about no library would
12350    # ever link correctly.  If we're not using GNU ld we use -z text
12351    # though, which does catch some bad symbols but isn't as heavy-handed
12352    # as -z defs.
12353    # For security reasons, it is highly recommended that you always
12354    # use absolute paths for naming shared libraries, and exclude the
12355    # DT_RUNPATH tag from executables and libraries.  But doing so
12356    # requires that you compile everything twice, which is a pain.
12357    # So that behaviour is only enabled if SCOABSPATH is set to a
12358    # non-empty value in the environment.  Most likely only useful for
12359    # creating official distributions of packages.
12360    # This is a hack until libtool officially supports absolute path
12361    # names for shared libraries.
12362    no_undefined_flag_CXX='${wl}-z,text'
12363    allow_undefined_flag_CXX='${wl}-z,nodefs'
12364    archive_cmds_need_lc_CXX=no
12365    hardcode_shlibpath_var_CXX=no
12366    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12367    hardcode_libdir_separator_CXX=':'
12368    link_all_deplibs_CXX=yes
12369    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12370    runpath_var='LD_RUN_PATH'
12371
12372    case $cc_basename in
12373      CC*)
12374	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376	;;
12377      *)
12378	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380	;;
12381    esac
12382    ;;
12383  tandem*)
12384    case $cc_basename in
12385      NCC*)
12386	# NonStop-UX NCC 3.20
12387	# FIXME: insert proper C++ library support
12388	ld_shlibs_CXX=no
12389	;;
12390      *)
12391	# FIXME: insert proper C++ library support
12392	ld_shlibs_CXX=no
12393	;;
12394    esac
12395    ;;
12396  vxworks*)
12397    # FIXME: insert proper C++ library support
12398    ld_shlibs_CXX=no
12399    ;;
12400  *)
12401    # FIXME: insert proper C++ library support
12402    ld_shlibs_CXX=no
12403    ;;
12404esac
12405{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12406$as_echo "$ld_shlibs_CXX" >&6; }
12407test "$ld_shlibs_CXX" = no && can_build_shared=no
12408
12409GCC_CXX="$GXX"
12410LD_CXX="$LD"
12411
12412cat > conftest.$ac_ext <<EOF
12413class Foo
12414{
12415public:
12416  Foo (void) { a = 0; }
12417private:
12418  int a;
12419};
12420EOF
12421
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423  (eval $ac_compile) 2>&5
12424  ac_status=$?
12425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); }; then
12427  # Parse the compiler output and extract the necessary
12428  # objects, libraries and library flags.
12429
12430  # Sentinel used to keep track of whether or not we are before
12431  # the conftest object file.
12432  pre_test_object_deps_done=no
12433
12434  # The `*' in the case matches for architectures that use `case' in
12435  # $output_verbose_cmd can trigger glob expansion during the loop
12436  # eval without this substitution.
12437  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12438
12439  for p in `eval $output_verbose_link_cmd`; do
12440    case $p in
12441
12442    -L* | -R* | -l*)
12443       # Some compilers place space between "-{L,R}" and the path.
12444       # Remove the space.
12445       if test $p = "-L" \
12446	  || test $p = "-R"; then
12447	 prev=$p
12448	 continue
12449       else
12450	 prev=
12451       fi
12452
12453       if test "$pre_test_object_deps_done" = no; then
12454	 case $p in
12455	 -L* | -R*)
12456	   # Internal compiler library paths should come after those
12457	   # provided the user.  The postdeps already come after the
12458	   # user supplied libs so there is no need to process them.
12459	   if test -z "$compiler_lib_search_path_CXX"; then
12460	     compiler_lib_search_path_CXX="${prev}${p}"
12461	   else
12462	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12463	   fi
12464	   ;;
12465	 # The "-l" case would never come before the object being
12466	 # linked, so don't bother handling this case.
12467	 esac
12468       else
12469	 if test -z "$postdeps_CXX"; then
12470	   postdeps_CXX="${prev}${p}"
12471	 else
12472	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12473	 fi
12474       fi
12475       ;;
12476
12477    *.$objext)
12478       # This assumes that the test object file only shows up
12479       # once in the compiler output.
12480       if test "$p" = "conftest.$objext"; then
12481	 pre_test_object_deps_done=yes
12482	 continue
12483       fi
12484
12485       if test "$pre_test_object_deps_done" = no; then
12486	 if test -z "$predep_objects_CXX"; then
12487	   predep_objects_CXX="$p"
12488	 else
12489	   predep_objects_CXX="$predep_objects_CXX $p"
12490	 fi
12491       else
12492	 if test -z "$postdep_objects_CXX"; then
12493	   postdep_objects_CXX="$p"
12494	 else
12495	   postdep_objects_CXX="$postdep_objects_CXX $p"
12496	 fi
12497       fi
12498       ;;
12499
12500    *) ;; # Ignore the rest.
12501
12502    esac
12503  done
12504
12505  # Clean up.
12506  rm -f a.out a.exe
12507else
12508  echo "libtool.m4: error: problem compiling CXX test program"
12509fi
12510
12511$rm -f confest.$objext
12512
12513compiler_lib_search_dirs_CXX=
12514if test -n "$compiler_lib_search_path_CXX"; then
12515  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12516fi
12517
12518# PORTME: override above test on systems where it is broken
12519case $host_os in
12520interix[3-9]*)
12521  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12522  # hack all around it, let's just trust "g++" to DTRT.
12523  predep_objects_CXX=
12524  postdep_objects_CXX=
12525  postdeps_CXX=
12526  ;;
12527
12528linux*)
12529  case `$CC -V 2>&1 | sed 5q` in
12530  *Sun\ C*)
12531    # Sun C++ 5.9
12532    #
12533    # The more standards-conforming stlport4 library is
12534    # incompatible with the Cstd library. Avoid specifying
12535    # it if it's in CXXFLAGS. Ignore libCrun as
12536    # -library=stlport4 depends on it.
12537    case " $CXX $CXXFLAGS " in
12538    *" -library=stlport4 "*)
12539      solaris_use_stlport4=yes
12540      ;;
12541    esac
12542    if test "$solaris_use_stlport4" != yes; then
12543      postdeps_CXX='-library=Cstd -library=Crun'
12544    fi
12545    ;;
12546  esac
12547  ;;
12548
12549solaris*)
12550  case $cc_basename in
12551  CC*)
12552    # The more standards-conforming stlport4 library is
12553    # incompatible with the Cstd library. Avoid specifying
12554    # it if it's in CXXFLAGS. Ignore libCrun as
12555    # -library=stlport4 depends on it.
12556    case " $CXX $CXXFLAGS " in
12557    *" -library=stlport4 "*)
12558      solaris_use_stlport4=yes
12559      ;;
12560    esac
12561
12562    # Adding this requires a known-good setup of shared libraries for
12563    # Sun compiler versions before 5.6, else PIC objects from an old
12564    # archive will be linked into the output, leading to subtle bugs.
12565    if test "$solaris_use_stlport4" != yes; then
12566      postdeps_CXX='-library=Cstd -library=Crun'
12567    fi
12568    ;;
12569  esac
12570  ;;
12571esac
12572
12573case " $postdeps_CXX " in
12574*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12575esac
12576
12577lt_prog_compiler_wl_CXX=
12578lt_prog_compiler_pic_CXX=
12579lt_prog_compiler_static_CXX=
12580
12581{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12582$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12583
12584  # C++ specific cases for pic, static, wl, etc.
12585  if test "$GXX" = yes; then
12586    lt_prog_compiler_wl_CXX='-Wl,'
12587    lt_prog_compiler_static_CXX='-static'
12588
12589    case $host_os in
12590    aix*)
12591      # All AIX code is PIC.
12592      if test "$host_cpu" = ia64; then
12593	# AIX 5 now supports IA64 processor
12594	lt_prog_compiler_static_CXX='-Bstatic'
12595      fi
12596      ;;
12597    amigaos*)
12598      # FIXME: we need at least 68020 code to build shared libraries, but
12599      # adding the `-m68020' flag to GCC prevents building anything better,
12600      # like `-m68040'.
12601      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12602      ;;
12603    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12604      # PIC is the default for these OSes.
12605      ;;
12606    mingw* | cygwin* | os2* | pw32*)
12607      # This hack is so that the source file can tell whether it is being
12608      # built for inclusion in a dll (and should export symbols for example).
12609      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12610      # (--disable-auto-import) libraries
12611      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12612      ;;
12613    darwin* | rhapsody*)
12614      # PIC is the default on this platform
12615      # Common symbols not allowed in MH_DYLIB files
12616      lt_prog_compiler_pic_CXX='-fno-common'
12617      ;;
12618    *djgpp*)
12619      # DJGPP does not support shared libraries at all
12620      lt_prog_compiler_pic_CXX=
12621      ;;
12622    interix[3-9]*)
12623      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12624      # Instead, we relocate shared libraries at runtime.
12625      ;;
12626    sysv4*MP*)
12627      if test -d /usr/nec; then
12628	lt_prog_compiler_pic_CXX=-Kconform_pic
12629      fi
12630      ;;
12631    hpux*)
12632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12633      # not for PA HP-UX.
12634      case $host_cpu in
12635      hppa*64*|ia64*)
12636	;;
12637      *)
12638	lt_prog_compiler_pic_CXX='-fPIC'
12639	;;
12640      esac
12641      ;;
12642    *)
12643      lt_prog_compiler_pic_CXX='-fPIC'
12644      ;;
12645    esac
12646  else
12647    case $host_os in
12648      aix[4-9]*)
12649	# All AIX code is PIC.
12650	if test "$host_cpu" = ia64; then
12651	  # AIX 5 now supports IA64 processor
12652	  lt_prog_compiler_static_CXX='-Bstatic'
12653	else
12654	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12655	fi
12656	;;
12657      chorus*)
12658	case $cc_basename in
12659	cxch68*)
12660	  # Green Hills C++ Compiler
12661	  # _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"
12662	  ;;
12663	esac
12664	;;
12665       darwin*)
12666         # PIC is the default on this platform
12667         # Common symbols not allowed in MH_DYLIB files
12668         case $cc_basename in
12669           xlc*)
12670           lt_prog_compiler_pic_CXX='-qnocommon'
12671           lt_prog_compiler_wl_CXX='-Wl,'
12672           ;;
12673         esac
12674       ;;
12675      dgux*)
12676	case $cc_basename in
12677	  ec++*)
12678	    lt_prog_compiler_pic_CXX='-KPIC'
12679	    ;;
12680	  ghcx*)
12681	    # Green Hills C++ Compiler
12682	    lt_prog_compiler_pic_CXX='-pic'
12683	    ;;
12684	  *)
12685	    ;;
12686	esac
12687	;;
12688      freebsd* | dragonfly*)
12689	# FreeBSD uses GNU C++
12690	;;
12691      hpux9* | hpux10* | hpux11*)
12692	case $cc_basename in
12693	  CC*)
12694	    lt_prog_compiler_wl_CXX='-Wl,'
12695	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12696	    if test "$host_cpu" != ia64; then
12697	      lt_prog_compiler_pic_CXX='+Z'
12698	    fi
12699	    ;;
12700	  aCC*)
12701	    lt_prog_compiler_wl_CXX='-Wl,'
12702	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12703	    case $host_cpu in
12704	    hppa*64*|ia64*)
12705	      # +Z the default
12706	      ;;
12707	    *)
12708	      lt_prog_compiler_pic_CXX='+Z'
12709	      ;;
12710	    esac
12711	    ;;
12712	  *)
12713	    ;;
12714	esac
12715	;;
12716      interix*)
12717	# This is c89, which is MS Visual C++ (no shared libs)
12718	# Anyone wants to do a port?
12719	;;
12720      irix5* | irix6* | nonstopux*)
12721	case $cc_basename in
12722	  CC*)
12723	    lt_prog_compiler_wl_CXX='-Wl,'
12724	    lt_prog_compiler_static_CXX='-non_shared'
12725	    # CC pic flag -KPIC is the default.
12726	    ;;
12727	  *)
12728	    ;;
12729	esac
12730	;;
12731      linux* | k*bsd*-gnu)
12732	case $cc_basename in
12733	  KCC*)
12734	    # KAI C++ Compiler
12735	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12736	    lt_prog_compiler_pic_CXX='-fPIC'
12737	    ;;
12738	  icpc* | ecpc*)
12739	    # Intel C++
12740	    lt_prog_compiler_wl_CXX='-Wl,'
12741	    lt_prog_compiler_pic_CXX='-KPIC'
12742	    lt_prog_compiler_static_CXX='-static'
12743	    ;;
12744	  pgCC* | pgcpp*)
12745	    # Portland Group C++ compiler.
12746	    lt_prog_compiler_wl_CXX='-Wl,'
12747	    lt_prog_compiler_pic_CXX='-fpic'
12748	    lt_prog_compiler_static_CXX='-Bstatic'
12749	    ;;
12750	  cxx*)
12751	    # Compaq C++
12752	    # Make sure the PIC flag is empty.  It appears that all Alpha
12753	    # Linux and Compaq Tru64 Unix objects are PIC.
12754	    lt_prog_compiler_pic_CXX=
12755	    lt_prog_compiler_static_CXX='-non_shared'
12756	    ;;
12757	  *)
12758	    case `$CC -V 2>&1 | sed 5q` in
12759	    *Sun\ C*)
12760	      # Sun C++ 5.9
12761	      lt_prog_compiler_pic_CXX='-KPIC'
12762	      lt_prog_compiler_static_CXX='-Bstatic'
12763	      lt_prog_compiler_wl_CXX='-Qoption ld '
12764	      ;;
12765	    esac
12766	    ;;
12767	esac
12768	;;
12769      lynxos*)
12770	;;
12771      m88k*)
12772	;;
12773      mvs*)
12774	case $cc_basename in
12775	  cxx*)
12776	    lt_prog_compiler_pic_CXX='-W c,exportall'
12777	    ;;
12778	  *)
12779	    ;;
12780	esac
12781	;;
12782      netbsd*)
12783	;;
12784      osf3* | osf4* | osf5*)
12785	case $cc_basename in
12786	  KCC*)
12787	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12788	    ;;
12789	  RCC*)
12790	    # Rational C++ 2.4.1
12791	    lt_prog_compiler_pic_CXX='-pic'
12792	    ;;
12793	  cxx*)
12794	    # Digital/Compaq C++
12795	    lt_prog_compiler_wl_CXX='-Wl,'
12796	    # Make sure the PIC flag is empty.  It appears that all Alpha
12797	    # Linux and Compaq Tru64 Unix objects are PIC.
12798	    lt_prog_compiler_pic_CXX=
12799	    lt_prog_compiler_static_CXX='-non_shared'
12800	    ;;
12801	  *)
12802	    ;;
12803	esac
12804	;;
12805      psos*)
12806	;;
12807      solaris*)
12808	case $cc_basename in
12809	  CC*)
12810	    # Sun C++ 4.2, 5.x and Centerline C++
12811	    lt_prog_compiler_pic_CXX='-KPIC'
12812	    lt_prog_compiler_static_CXX='-Bstatic'
12813	    lt_prog_compiler_wl_CXX='-Qoption ld '
12814	    ;;
12815	  gcx*)
12816	    # Green Hills C++ Compiler
12817	    lt_prog_compiler_pic_CXX='-PIC'
12818	    ;;
12819	  *)
12820	    ;;
12821	esac
12822	;;
12823      sunos4*)
12824	case $cc_basename in
12825	  CC*)
12826	    # Sun C++ 4.x
12827	    lt_prog_compiler_pic_CXX='-pic'
12828	    lt_prog_compiler_static_CXX='-Bstatic'
12829	    ;;
12830	  lcc*)
12831	    # Lucid
12832	    lt_prog_compiler_pic_CXX='-pic'
12833	    ;;
12834	  *)
12835	    ;;
12836	esac
12837	;;
12838      tandem*)
12839	case $cc_basename in
12840	  NCC*)
12841	    # NonStop-UX NCC 3.20
12842	    lt_prog_compiler_pic_CXX='-KPIC'
12843	    ;;
12844	  *)
12845	    ;;
12846	esac
12847	;;
12848      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12849	case $cc_basename in
12850	  CC*)
12851	    lt_prog_compiler_wl_CXX='-Wl,'
12852	    lt_prog_compiler_pic_CXX='-KPIC'
12853	    lt_prog_compiler_static_CXX='-Bstatic'
12854	    ;;
12855	esac
12856	;;
12857      vxworks*)
12858	;;
12859      *)
12860	lt_prog_compiler_can_build_shared_CXX=no
12861	;;
12862    esac
12863  fi
12864
12865{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12866$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12867
12868#
12869# Check to make sure the PIC flag actually works.
12870#
12871if test -n "$lt_prog_compiler_pic_CXX"; then
12872
12873{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12874$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12875if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12876  $as_echo_n "(cached) " >&6
12877else
12878  lt_cv_prog_compiler_pic_works_CXX=no
12879  ac_outfile=conftest.$ac_objext
12880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12881   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12882   # Insert the option either (1) after the last *FLAGS variable, or
12883   # (2) before a word containing "conftest.", or (3) at the end.
12884   # Note that $ac_compile itself does not contain backslashes and begins
12885   # with a dollar sign (not a hyphen), so the echo should work correctly.
12886   # The option is referenced via a variable to avoid confusing sed.
12887   lt_compile=`echo "$ac_compile" | $SED \
12888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890   -e 's:$: $lt_compiler_flag:'`
12891   (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892   (eval "$lt_compile" 2>conftest.err)
12893   ac_status=$?
12894   cat conftest.err >&5
12895   echo "$as_me:12895: \$? = $ac_status" >&5
12896   if (exit $ac_status) && test -s "$ac_outfile"; then
12897     # The compiler can only warn and ignore the option if not recognized
12898     # So say no if there are warnings other than the usual output.
12899     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12900     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12901     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12902       lt_cv_prog_compiler_pic_works_CXX=yes
12903     fi
12904   fi
12905   $rm conftest*
12906
12907fi
12908{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12909$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12910
12911if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12912    case $lt_prog_compiler_pic_CXX in
12913     "" | " "*) ;;
12914     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12915     esac
12916else
12917    lt_prog_compiler_pic_CXX=
12918     lt_prog_compiler_can_build_shared_CXX=no
12919fi
12920
12921fi
12922case $host_os in
12923  # For platforms which do not support PIC, -DPIC is meaningless:
12924  *djgpp*)
12925    lt_prog_compiler_pic_CXX=
12926    ;;
12927  *)
12928    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12929    ;;
12930esac
12931
12932#
12933# Check to make sure the static flag actually works.
12934#
12935wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12936{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12937$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12938if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12939  $as_echo_n "(cached) " >&6
12940else
12941  lt_cv_prog_compiler_static_works_CXX=no
12942   save_LDFLAGS="$LDFLAGS"
12943   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12944   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12945   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12946     # The linker can only warn and ignore the option if not recognized
12947     # So say no if there are warnings
12948     if test -s conftest.err; then
12949       # Append any errors to the config.log.
12950       cat conftest.err 1>&5
12951       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12952       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12953       if diff conftest.exp conftest.er2 >/dev/null; then
12954         lt_cv_prog_compiler_static_works_CXX=yes
12955       fi
12956     else
12957       lt_cv_prog_compiler_static_works_CXX=yes
12958     fi
12959   fi
12960   $rm -r conftest*
12961   LDFLAGS="$save_LDFLAGS"
12962
12963fi
12964{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12965$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12966
12967if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12968    :
12969else
12970    lt_prog_compiler_static_CXX=
12971fi
12972
12973
12974{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12976if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12977  $as_echo_n "(cached) " >&6
12978else
12979  lt_cv_prog_compiler_c_o_CXX=no
12980   $rm -r conftest 2>/dev/null
12981   mkdir conftest
12982   cd conftest
12983   mkdir out
12984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986   lt_compiler_flag="-o out/conftest2.$ac_objext"
12987   # Insert the option either (1) after the last *FLAGS variable, or
12988   # (2) before a word containing "conftest.", or (3) at the end.
12989   # Note that $ac_compile itself does not contain backslashes and begins
12990   # with a dollar sign (not a hyphen), so the echo should work correctly.
12991   lt_compile=`echo "$ac_compile" | $SED \
12992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12994   -e 's:$: $lt_compiler_flag:'`
12995   (eval echo "\"\$as_me:12995: $lt_compile\"" >&5)
12996   (eval "$lt_compile" 2>out/conftest.err)
12997   ac_status=$?
12998   cat out/conftest.err >&5
12999   echo "$as_me:12999: \$? = $ac_status" >&5
13000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13001   then
13002     # The compiler can only warn and ignore the option if not recognized
13003     # So say no if there are warnings
13004     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13007       lt_cv_prog_compiler_c_o_CXX=yes
13008     fi
13009   fi
13010   chmod u+w . 2>&5
13011   $rm conftest*
13012   # SGI C++ compiler will create directory out/ii_files/ for
13013   # template instantiation
13014   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13015   $rm out/* && rmdir out
13016   cd ..
13017   rmdir conftest
13018   $rm conftest*
13019
13020fi
13021{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13022$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13023
13024
13025hard_links="nottested"
13026if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13027  # do not overwrite the value of need_locks provided by the user
13028  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13029$as_echo_n "checking if we can lock with hard links... " >&6; }
13030  hard_links=yes
13031  $rm conftest*
13032  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13033  touch conftest.a
13034  ln conftest.a conftest.b 2>&5 || hard_links=no
13035  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13036  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13037$as_echo "$hard_links" >&6; }
13038  if test "$hard_links" = no; then
13039    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13040$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13041    need_locks=warn
13042  fi
13043else
13044  need_locks=no
13045fi
13046
13047{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13049
13050  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051  case $host_os in
13052  aix[4-9]*)
13053    # If we're using GNU nm, then we don't want the "-C" option.
13054    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13055    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13056      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'
13057    else
13058      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'
13059    fi
13060    ;;
13061  pw32*)
13062    export_symbols_cmds_CXX="$ltdll_cmds"
13063  ;;
13064  cygwin* | mingw*)
13065    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'
13066  ;;
13067  *)
13068    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13069  ;;
13070  esac
13071  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13072
13073{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13074$as_echo "$ld_shlibs_CXX" >&6; }
13075test "$ld_shlibs_CXX" = no && can_build_shared=no
13076
13077#
13078# Do we need to explicitly link libc?
13079#
13080case "x$archive_cmds_need_lc_CXX" in
13081x|xyes)
13082  # Assume -lc should be added
13083  archive_cmds_need_lc_CXX=yes
13084
13085  if test "$enable_shared" = yes && test "$GCC" = yes; then
13086    case $archive_cmds_CXX in
13087    *'~'*)
13088      # FIXME: we may have to deal with multi-command sequences.
13089      ;;
13090    '$CC '*)
13091      # Test whether the compiler implicitly links with -lc since on some
13092      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13093      # to ld, don't add -lc before -lgcc.
13094      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13095$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13096      $rm conftest*
13097      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13098
13099      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100  (eval $ac_compile) 2>&5
13101  ac_status=$?
13102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103  (exit $ac_status); } 2>conftest.err; then
13104        soname=conftest
13105        lib=conftest
13106        libobjs=conftest.$ac_objext
13107        deplibs=
13108        wl=$lt_prog_compiler_wl_CXX
13109	pic_flag=$lt_prog_compiler_pic_CXX
13110        compiler_flags=-v
13111        linker_flags=-v
13112        verstring=
13113        output_objdir=.
13114        libname=conftest
13115        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13116        allow_undefined_flag_CXX=
13117        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13118  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13119  ac_status=$?
13120  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121  (exit $ac_status); }
13122        then
13123	  archive_cmds_need_lc_CXX=no
13124        else
13125	  archive_cmds_need_lc_CXX=yes
13126        fi
13127        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13128      else
13129        cat conftest.err 1>&5
13130      fi
13131      $rm conftest*
13132      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13133$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13134      ;;
13135    esac
13136  fi
13137  ;;
13138esac
13139
13140{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13141$as_echo_n "checking dynamic linker characteristics... " >&6; }
13142library_names_spec=
13143libname_spec='lib$name'
13144soname_spec=
13145shrext_cmds=".so"
13146postinstall_cmds=
13147postuninstall_cmds=
13148finish_cmds=
13149finish_eval=
13150shlibpath_var=
13151shlibpath_overrides_runpath=unknown
13152version_type=none
13153dynamic_linker="$host_os ld.so"
13154sys_lib_dlsearch_path_spec="/lib /usr/lib"
13155
13156need_lib_prefix=unknown
13157hardcode_into_libs=no
13158
13159# when you set need_version to no, make sure it does not cause -set_version
13160# flags to be left without arguments
13161need_version=unknown
13162
13163case $host_os in
13164aix3*)
13165  version_type=linux
13166  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13167  shlibpath_var=LIBPATH
13168
13169  # AIX 3 has no versioning support, so we append a major version to the name.
13170  soname_spec='${libname}${release}${shared_ext}$major'
13171  ;;
13172
13173aix[4-9]*)
13174  version_type=linux
13175  need_lib_prefix=no
13176  need_version=no
13177  hardcode_into_libs=yes
13178  if test "$host_cpu" = ia64; then
13179    # AIX 5 supports IA64
13180    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13181    shlibpath_var=LD_LIBRARY_PATH
13182  else
13183    # With GCC up to 2.95.x, collect2 would create an import file
13184    # for dependence libraries.  The import file would start with
13185    # the line `#! .'.  This would cause the generated library to
13186    # depend on `.', always an invalid library.  This was fixed in
13187    # development snapshots of GCC prior to 3.0.
13188    case $host_os in
13189      aix4 | aix4.[01] | aix4.[01].*)
13190      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13191	   echo ' yes '
13192	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13193	:
13194      else
13195	can_build_shared=no
13196      fi
13197      ;;
13198    esac
13199    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13200    # soname into executable. Probably we can add versioning support to
13201    # collect2, so additional links can be useful in future.
13202    if test "$aix_use_runtimelinking" = yes; then
13203      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13204      # instead of lib<name>.a to let people know that these are not
13205      # typical AIX shared libraries.
13206      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207    else
13208      # We preserve .a as extension for shared libraries through AIX4.2
13209      # and later when we are not doing run time linking.
13210      library_names_spec='${libname}${release}.a $libname.a'
13211      soname_spec='${libname}${release}${shared_ext}$major'
13212    fi
13213    shlibpath_var=LIBPATH
13214  fi
13215  ;;
13216
13217amigaos*)
13218  library_names_spec='$libname.ixlibrary $libname.a'
13219  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13220  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'
13221  ;;
13222
13223beos*)
13224  library_names_spec='${libname}${shared_ext}'
13225  dynamic_linker="$host_os ld.so"
13226  shlibpath_var=LIBRARY_PATH
13227  ;;
13228
13229bsdi[45]*)
13230  version_type=linux
13231  need_version=no
13232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13233  soname_spec='${libname}${release}${shared_ext}$major'
13234  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13235  shlibpath_var=LD_LIBRARY_PATH
13236  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13237  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13238  # the default ld.so.conf also contains /usr/contrib/lib and
13239  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13240  # libtool to hard-code these into programs
13241  ;;
13242
13243cygwin* | mingw* | pw32*)
13244  version_type=windows
13245  shrext_cmds=".dll"
13246  need_version=no
13247  need_lib_prefix=no
13248
13249  case $GCC,$host_os in
13250  yes,cygwin* | yes,mingw* | yes,pw32*)
13251    library_names_spec='$libname.dll.a'
13252    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13253    postinstall_cmds='base_file=`basename \${file}`~
13254      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13255      dldir=$destdir/`dirname \$dlpath`~
13256      test -d \$dldir || mkdir -p \$dldir~
13257      $install_prog $dir/$dlname \$dldir/$dlname~
13258      chmod a+x \$dldir/$dlname'
13259    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13260      dlpath=$dir/\$dldll~
13261       $rm \$dlpath'
13262    shlibpath_overrides_runpath=yes
13263
13264    case $host_os in
13265    cygwin*)
13266      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13267      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13268      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13269      ;;
13270    mingw*)
13271      # MinGW DLLs use traditional 'lib' prefix
13272      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13273      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13274      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13275        # It is most probably a Windows format PATH printed by
13276        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13277        # path with ; separators, and with drive letters. We can handle the
13278        # drive letters (cygwin fileutils understands them), so leave them,
13279        # especially as we might pass files found there to a mingw objdump,
13280        # which wouldn't understand a cygwinified path. Ahh.
13281        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13282      else
13283        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13284      fi
13285      ;;
13286    pw32*)
13287      # pw32 DLLs use 'pw' prefix rather than 'lib'
13288      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13289      ;;
13290    esac
13291    ;;
13292
13293  *)
13294    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13295    ;;
13296  esac
13297  dynamic_linker='Win32 ld.exe'
13298  # FIXME: first we should search . and the directory the executable is in
13299  shlibpath_var=PATH
13300  ;;
13301
13302darwin* | rhapsody*)
13303  dynamic_linker="$host_os dyld"
13304  version_type=darwin
13305  need_lib_prefix=no
13306  need_version=no
13307  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13308  soname_spec='${libname}${release}${major}$shared_ext'
13309  shlibpath_overrides_runpath=yes
13310  shlibpath_var=DYLD_LIBRARY_PATH
13311  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13312
13313  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13314  ;;
13315
13316dgux*)
13317  version_type=linux
13318  need_lib_prefix=no
13319  need_version=no
13320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13321  soname_spec='${libname}${release}${shared_ext}$major'
13322  shlibpath_var=LD_LIBRARY_PATH
13323  ;;
13324
13325freebsd1*)
13326  dynamic_linker=no
13327  ;;
13328
13329freebsd* | dragonfly*)
13330  # DragonFly does not have aout.  When/if they implement a new
13331  # versioning mechanism, adjust this.
13332  if test -x /usr/bin/objformat; then
13333    objformat=`/usr/bin/objformat`
13334  else
13335    case $host_os in
13336    freebsd[123]*) objformat=aout ;;
13337    *) objformat=elf ;;
13338    esac
13339  fi
13340  version_type=freebsd-$objformat
13341  case $version_type in
13342    freebsd-elf*)
13343      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13344      need_version=no
13345      need_lib_prefix=no
13346      ;;
13347    freebsd-*)
13348      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13349      need_version=yes
13350      ;;
13351  esac
13352  shlibpath_var=LD_LIBRARY_PATH
13353  case $host_os in
13354  freebsd2*)
13355    shlibpath_overrides_runpath=yes
13356    ;;
13357  freebsd3.[01]* | freebsdelf3.[01]*)
13358    shlibpath_overrides_runpath=yes
13359    hardcode_into_libs=yes
13360    ;;
13361  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13362  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13363    shlibpath_overrides_runpath=no
13364    hardcode_into_libs=yes
13365    ;;
13366  *) # from 4.6 on, and DragonFly
13367    shlibpath_overrides_runpath=yes
13368    hardcode_into_libs=yes
13369    ;;
13370  esac
13371  ;;
13372
13373gnu*)
13374  version_type=linux
13375  need_lib_prefix=no
13376  need_version=no
13377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13378  soname_spec='${libname}${release}${shared_ext}$major'
13379  shlibpath_var=LD_LIBRARY_PATH
13380  hardcode_into_libs=yes
13381  ;;
13382
13383hpux9* | hpux10* | hpux11*)
13384  # Give a soname corresponding to the major version so that dld.sl refuses to
13385  # link against other versions.
13386  version_type=sunos
13387  need_lib_prefix=no
13388  need_version=no
13389  case $host_cpu in
13390  ia64*)
13391    shrext_cmds='.so'
13392    hardcode_into_libs=yes
13393    dynamic_linker="$host_os dld.so"
13394    shlibpath_var=LD_LIBRARY_PATH
13395    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397    soname_spec='${libname}${release}${shared_ext}$major'
13398    if test "X$HPUX_IA64_MODE" = X32; then
13399      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13400    else
13401      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13402    fi
13403    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13404    ;;
13405   hppa*64*)
13406     shrext_cmds='.sl'
13407     hardcode_into_libs=yes
13408     dynamic_linker="$host_os dld.sl"
13409     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412     soname_spec='${libname}${release}${shared_ext}$major'
13413     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13415     ;;
13416   *)
13417    shrext_cmds='.sl'
13418    dynamic_linker="$host_os dld.sl"
13419    shlibpath_var=SHLIB_PATH
13420    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13421    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422    soname_spec='${libname}${release}${shared_ext}$major'
13423    ;;
13424  esac
13425  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13426  postinstall_cmds='chmod 555 $lib'
13427  ;;
13428
13429interix[3-9]*)
13430  version_type=linux
13431  need_lib_prefix=no
13432  need_version=no
13433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13434  soname_spec='${libname}${release}${shared_ext}$major'
13435  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13436  shlibpath_var=LD_LIBRARY_PATH
13437  shlibpath_overrides_runpath=no
13438  hardcode_into_libs=yes
13439  ;;
13440
13441irix5* | irix6* | nonstopux*)
13442  case $host_os in
13443    nonstopux*) version_type=nonstopux ;;
13444    *)
13445	if test "$lt_cv_prog_gnu_ld" = yes; then
13446		version_type=linux
13447	else
13448		version_type=irix
13449	fi ;;
13450  esac
13451  need_lib_prefix=no
13452  need_version=no
13453  soname_spec='${libname}${release}${shared_ext}$major'
13454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13455  case $host_os in
13456  irix5* | nonstopux*)
13457    libsuff= shlibsuff=
13458    ;;
13459  *)
13460    case $LD in # libtool.m4 will add one of these switches to LD
13461    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13462      libsuff= shlibsuff= libmagic=32-bit;;
13463    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13464      libsuff=32 shlibsuff=N32 libmagic=N32;;
13465    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13466      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13467    *) libsuff= shlibsuff= libmagic=never-match;;
13468    esac
13469    ;;
13470  esac
13471  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13472  shlibpath_overrides_runpath=no
13473  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13474  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13475  hardcode_into_libs=yes
13476  ;;
13477
13478# No shared lib support for Linux oldld, aout, or coff.
13479linux*oldld* | linux*aout* | linux*coff*)
13480  dynamic_linker=no
13481  ;;
13482
13483# This must be Linux ELF.
13484linux* | k*bsd*-gnu)
13485  version_type=linux
13486  need_lib_prefix=no
13487  need_version=no
13488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489  soname_spec='${libname}${release}${shared_ext}$major'
13490  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=no
13493  # This implies no fast_install, which is unacceptable.
13494  # Some rework will be needed to allow for fast_install
13495  # before this can be enabled.
13496  hardcode_into_libs=yes
13497  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13498  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13499
13500  # Append ld.so.conf contents to the search path
13501  if test -f /etc/ld.so.conf; then
13502    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' ' '`
13503    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13504  fi
13505
13506  # We used to test for /lib/ld.so.1 and disable shared libraries on
13507  # powerpc, because MkLinux only supported shared libraries with the
13508  # GNU dynamic linker.  Since this was broken with cross compilers,
13509  # most powerpc-linux boxes support dynamic linking these days and
13510  # people can always --disable-shared, the test was removed, and we
13511  # assume the GNU/Linux dynamic linker is in use.
13512  dynamic_linker='GNU/Linux ld.so'
13513  ;;
13514
13515netbsd*)
13516  version_type=sunos
13517  need_lib_prefix=no
13518  need_version=no
13519  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13521    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13522    dynamic_linker='NetBSD (a.out) ld.so'
13523  else
13524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13525    soname_spec='${libname}${release}${shared_ext}$major'
13526    dynamic_linker='NetBSD ld.elf_so'
13527  fi
13528  shlibpath_var=LD_LIBRARY_PATH
13529  shlibpath_overrides_runpath=yes
13530  hardcode_into_libs=yes
13531  ;;
13532
13533newsos6)
13534  version_type=linux
13535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536  shlibpath_var=LD_LIBRARY_PATH
13537  shlibpath_overrides_runpath=yes
13538  ;;
13539
13540nto-qnx*)
13541  version_type=linux
13542  need_lib_prefix=no
13543  need_version=no
13544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545  soname_spec='${libname}${release}${shared_ext}$major'
13546  shlibpath_var=LD_LIBRARY_PATH
13547  shlibpath_overrides_runpath=yes
13548  ;;
13549
13550openbsd*)
13551  version_type=sunos
13552  sys_lib_dlsearch_path_spec="/usr/lib"
13553  need_lib_prefix=no
13554  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13555  case $host_os in
13556    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13557    *)                         need_version=no  ;;
13558  esac
13559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13561  shlibpath_var=LD_LIBRARY_PATH
13562  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13563    case $host_os in
13564      openbsd2.[89] | openbsd2.[89].*)
13565	shlibpath_overrides_runpath=no
13566	;;
13567      *)
13568	shlibpath_overrides_runpath=yes
13569	;;
13570      esac
13571  else
13572    shlibpath_overrides_runpath=yes
13573  fi
13574  ;;
13575
13576os2*)
13577  libname_spec='$name'
13578  shrext_cmds=".dll"
13579  need_lib_prefix=no
13580  library_names_spec='$libname${shared_ext} $libname.a'
13581  dynamic_linker='OS/2 ld.exe'
13582  shlibpath_var=LIBPATH
13583  ;;
13584
13585osf3* | osf4* | osf5*)
13586  version_type=osf
13587  need_lib_prefix=no
13588  need_version=no
13589  soname_spec='${libname}${release}${shared_ext}$major'
13590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591  shlibpath_var=LD_LIBRARY_PATH
13592  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13593  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13594  ;;
13595
13596rdos*)
13597  dynamic_linker=no
13598  ;;
13599
13600solaris*)
13601  version_type=linux
13602  need_lib_prefix=no
13603  need_version=no
13604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13605  soname_spec='${libname}${release}${shared_ext}$major'
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=yes
13608  hardcode_into_libs=yes
13609  # ldd complains unless libraries are executable
13610  postinstall_cmds='chmod +x $lib'
13611  ;;
13612
13613sunos4*)
13614  version_type=sunos
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13617  shlibpath_var=LD_LIBRARY_PATH
13618  shlibpath_overrides_runpath=yes
13619  if test "$with_gnu_ld" = yes; then
13620    need_lib_prefix=no
13621  fi
13622  need_version=yes
13623  ;;
13624
13625sysv4 | sysv4.3*)
13626  version_type=linux
13627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628  soname_spec='${libname}${release}${shared_ext}$major'
13629  shlibpath_var=LD_LIBRARY_PATH
13630  case $host_vendor in
13631    sni)
13632      shlibpath_overrides_runpath=no
13633      need_lib_prefix=no
13634      export_dynamic_flag_spec='${wl}-Blargedynsym'
13635      runpath_var=LD_RUN_PATH
13636      ;;
13637    siemens)
13638      need_lib_prefix=no
13639      ;;
13640    motorola)
13641      need_lib_prefix=no
13642      need_version=no
13643      shlibpath_overrides_runpath=no
13644      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13645      ;;
13646  esac
13647  ;;
13648
13649sysv4*MP*)
13650  if test -d /usr/nec ;then
13651    version_type=linux
13652    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13653    soname_spec='$libname${shared_ext}.$major'
13654    shlibpath_var=LD_LIBRARY_PATH
13655  fi
13656  ;;
13657
13658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13659  version_type=freebsd-elf
13660  need_lib_prefix=no
13661  need_version=no
13662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13663  soname_spec='${libname}${release}${shared_ext}$major'
13664  shlibpath_var=LD_LIBRARY_PATH
13665  hardcode_into_libs=yes
13666  if test "$with_gnu_ld" = yes; then
13667    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13668    shlibpath_overrides_runpath=no
13669  else
13670    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13671    shlibpath_overrides_runpath=yes
13672    case $host_os in
13673      sco3.2v5*)
13674        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13675	;;
13676    esac
13677  fi
13678  sys_lib_dlsearch_path_spec='/usr/lib'
13679  ;;
13680
13681uts4*)
13682  version_type=linux
13683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684  soname_spec='${libname}${release}${shared_ext}$major'
13685  shlibpath_var=LD_LIBRARY_PATH
13686  ;;
13687
13688*)
13689  dynamic_linker=no
13690  ;;
13691esac
13692{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13693$as_echo "$dynamic_linker" >&6; }
13694test "$dynamic_linker" = no && can_build_shared=no
13695
13696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13697  $as_echo_n "(cached) " >&6
13698else
13699  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13700fi
13701
13702sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13703if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13704  $as_echo_n "(cached) " >&6
13705else
13706  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13707fi
13708
13709sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13710
13711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13712if test "$GCC" = yes; then
13713  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13714fi
13715
13716{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13717$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13718hardcode_action_CXX=
13719if test -n "$hardcode_libdir_flag_spec_CXX" || \
13720   test -n "$runpath_var_CXX" || \
13721   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13722
13723  # We can hardcode non-existant directories.
13724  if test "$hardcode_direct_CXX" != no &&
13725     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13726     # have to relink, otherwise we might link with an installed library
13727     # when we should be linking with a yet-to-be-installed one
13728     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13729     test "$hardcode_minus_L_CXX" != no; then
13730    # Linking always hardcodes the temporary library directory.
13731    hardcode_action_CXX=relink
13732  else
13733    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13734    hardcode_action_CXX=immediate
13735  fi
13736else
13737  # We cannot hardcode anything, or else we can only hardcode existing
13738  # directories.
13739  hardcode_action_CXX=unsupported
13740fi
13741{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13742$as_echo "$hardcode_action_CXX" >&6; }
13743
13744if test "$hardcode_action_CXX" = relink; then
13745  # Fast installation is not supported
13746  enable_fast_install=no
13747elif test "$shlibpath_overrides_runpath" = yes ||
13748     test "$enable_shared" = no; then
13749  # Fast installation is not necessary
13750  enable_fast_install=needless
13751fi
13752
13753
13754# The else clause should only fire when bootstrapping the
13755# libtool distribution, otherwise you forgot to ship ltmain.sh
13756# with your package, and you will get complaints that there are
13757# no rules to generate ltmain.sh.
13758if test -f "$ltmain"; then
13759  # See if we are running on zsh, and set the options which allow our commands through
13760  # without removal of \ escapes.
13761  if test -n "${ZSH_VERSION+set}" ; then
13762    setopt NO_GLOB_SUBST
13763  fi
13764  # Now quote all the things that may contain metacharacters while being
13765  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13766  # variables and quote the copies for generation of the libtool script.
13767  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13768    SED SHELL STRIP \
13769    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13770    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13771    deplibs_check_method reload_flag reload_cmds need_locks \
13772    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13773    lt_cv_sys_global_symbol_to_c_name_address \
13774    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13775    old_postinstall_cmds old_postuninstall_cmds \
13776    compiler_CXX \
13777    CC_CXX \
13778    LD_CXX \
13779    lt_prog_compiler_wl_CXX \
13780    lt_prog_compiler_pic_CXX \
13781    lt_prog_compiler_static_CXX \
13782    lt_prog_compiler_no_builtin_flag_CXX \
13783    export_dynamic_flag_spec_CXX \
13784    thread_safe_flag_spec_CXX \
13785    whole_archive_flag_spec_CXX \
13786    enable_shared_with_static_runtimes_CXX \
13787    old_archive_cmds_CXX \
13788    old_archive_from_new_cmds_CXX \
13789    predep_objects_CXX \
13790    postdep_objects_CXX \
13791    predeps_CXX \
13792    postdeps_CXX \
13793    compiler_lib_search_path_CXX \
13794    compiler_lib_search_dirs_CXX \
13795    archive_cmds_CXX \
13796    archive_expsym_cmds_CXX \
13797    postinstall_cmds_CXX \
13798    postuninstall_cmds_CXX \
13799    old_archive_from_expsyms_cmds_CXX \
13800    allow_undefined_flag_CXX \
13801    no_undefined_flag_CXX \
13802    export_symbols_cmds_CXX \
13803    hardcode_libdir_flag_spec_CXX \
13804    hardcode_libdir_flag_spec_ld_CXX \
13805    hardcode_libdir_separator_CXX \
13806    hardcode_automatic_CXX \
13807    module_cmds_CXX \
13808    module_expsym_cmds_CXX \
13809    lt_cv_prog_compiler_c_o_CXX \
13810    fix_srcfile_path_CXX \
13811    exclude_expsyms_CXX \
13812    include_expsyms_CXX; do
13813
13814    case $var in
13815    old_archive_cmds_CXX | \
13816    old_archive_from_new_cmds_CXX | \
13817    archive_cmds_CXX | \
13818    archive_expsym_cmds_CXX | \
13819    module_cmds_CXX | \
13820    module_expsym_cmds_CXX | \
13821    old_archive_from_expsyms_cmds_CXX | \
13822    export_symbols_cmds_CXX | \
13823    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13824    postinstall_cmds | postuninstall_cmds | \
13825    old_postinstall_cmds | old_postuninstall_cmds | \
13826    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13827      # Double-quote double-evaled strings.
13828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13829      ;;
13830    *)
13831      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13832      ;;
13833    esac
13834  done
13835
13836  case $lt_echo in
13837  *'\$0 --fallback-echo"')
13838    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13839    ;;
13840  esac
13841
13842cfgfile="$ofile"
13843
13844  cat <<__EOF__ >> "$cfgfile"
13845# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13846
13847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13848
13849# Shell to use when invoking shell scripts.
13850SHELL=$lt_SHELL
13851
13852# Whether or not to build shared libraries.
13853build_libtool_libs=$enable_shared
13854
13855# Whether or not to build static libraries.
13856build_old_libs=$enable_static
13857
13858# Whether or not to add -lc for building shared libraries.
13859build_libtool_need_lc=$archive_cmds_need_lc_CXX
13860
13861# Whether or not to disallow shared libs when runtime libs are static
13862allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13863
13864# Whether or not to optimize for fast installation.
13865fast_install=$enable_fast_install
13866
13867# The host system.
13868host_alias=$host_alias
13869host=$host
13870host_os=$host_os
13871
13872# The build system.
13873build_alias=$build_alias
13874build=$build
13875build_os=$build_os
13876
13877# An echo program that does not interpret backslashes.
13878echo=$lt_echo
13879
13880# The archiver.
13881AR=$lt_AR
13882AR_FLAGS=$lt_AR_FLAGS
13883
13884# A C compiler.
13885LTCC=$lt_LTCC
13886
13887# LTCC compiler flags.
13888LTCFLAGS=$lt_LTCFLAGS
13889
13890# A language-specific compiler.
13891CC=$lt_compiler_CXX
13892
13893# Is the compiler the GNU C compiler?
13894with_gcc=$GCC_CXX
13895
13896# An ERE matcher.
13897EGREP=$lt_EGREP
13898
13899# The linker used to build libraries.
13900LD=$lt_LD_CXX
13901
13902# Whether we need hard or soft links.
13903LN_S=$lt_LN_S
13904
13905# A BSD-compatible nm program.
13906NM=$lt_NM
13907
13908# A symbol stripping program
13909STRIP=$lt_STRIP
13910
13911# Used to examine libraries when file_magic_cmd begins "file"
13912MAGIC_CMD=$MAGIC_CMD
13913
13914# Used on cygwin: DLL creation program.
13915DLLTOOL="$DLLTOOL"
13916
13917# Used on cygwin: object dumper.
13918OBJDUMP="$OBJDUMP"
13919
13920# Used on cygwin: assembler.
13921AS="$AS"
13922
13923# The name of the directory that contains temporary libtool files.
13924objdir=$objdir
13925
13926# How to create reloadable object files.
13927reload_flag=$lt_reload_flag
13928reload_cmds=$lt_reload_cmds
13929
13930# How to pass a linker flag through the compiler.
13931wl=$lt_lt_prog_compiler_wl_CXX
13932
13933# Object file suffix (normally "o").
13934objext="$ac_objext"
13935
13936# Old archive suffix (normally "a").
13937libext="$libext"
13938
13939# Shared library suffix (normally ".so").
13940shrext_cmds='$shrext_cmds'
13941
13942# Executable file suffix (normally "").
13943exeext="$exeext"
13944
13945# Additional compiler flags for building library objects.
13946pic_flag=$lt_lt_prog_compiler_pic_CXX
13947pic_mode=$pic_mode
13948
13949# What is the maximum length of a command?
13950max_cmd_len=$lt_cv_sys_max_cmd_len
13951
13952# Does compiler simultaneously support -c and -o options?
13953compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13954
13955# Must we lock files when doing compilation?
13956need_locks=$lt_need_locks
13957
13958# Do we need the lib prefix for modules?
13959need_lib_prefix=$need_lib_prefix
13960
13961# Do we need a version for libraries?
13962need_version=$need_version
13963
13964# Whether dlopen is supported.
13965dlopen_support=$enable_dlopen
13966
13967# Whether dlopen of programs is supported.
13968dlopen_self=$enable_dlopen_self
13969
13970# Whether dlopen of statically linked programs is supported.
13971dlopen_self_static=$enable_dlopen_self_static
13972
13973# Compiler flag to prevent dynamic linking.
13974link_static_flag=$lt_lt_prog_compiler_static_CXX
13975
13976# Compiler flag to turn off builtin functions.
13977no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13978
13979# Compiler flag to allow reflexive dlopens.
13980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13981
13982# Compiler flag to generate shared objects directly from archives.
13983whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13984
13985# Compiler flag to generate thread-safe objects.
13986thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13987
13988# Library versioning type.
13989version_type=$version_type
13990
13991# Format of library name prefix.
13992libname_spec=$lt_libname_spec
13993
13994# List of archive names.  First name is the real one, the rest are links.
13995# The last name is the one that the linker finds with -lNAME.
13996library_names_spec=$lt_library_names_spec
13997
13998# The coded name of the library, if different from the real name.
13999soname_spec=$lt_soname_spec
14000
14001# Commands used to build and install an old-style archive.
14002RANLIB=$lt_RANLIB
14003old_archive_cmds=$lt_old_archive_cmds_CXX
14004old_postinstall_cmds=$lt_old_postinstall_cmds
14005old_postuninstall_cmds=$lt_old_postuninstall_cmds
14006
14007# Create an old-style archive from a shared archive.
14008old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14009
14010# Create a temporary old-style archive to link instead of a shared archive.
14011old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14012
14013# Commands used to build and install a shared archive.
14014archive_cmds=$lt_archive_cmds_CXX
14015archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14016postinstall_cmds=$lt_postinstall_cmds
14017postuninstall_cmds=$lt_postuninstall_cmds
14018
14019# Commands used to build a loadable module (assumed same as above if empty)
14020module_cmds=$lt_module_cmds_CXX
14021module_expsym_cmds=$lt_module_expsym_cmds_CXX
14022
14023# Commands to strip libraries.
14024old_striplib=$lt_old_striplib
14025striplib=$lt_striplib
14026
14027# Dependencies to place before the objects being linked to create a
14028# shared library.
14029predep_objects=$lt_predep_objects_CXX
14030
14031# Dependencies to place after the objects being linked to create a
14032# shared library.
14033postdep_objects=$lt_postdep_objects_CXX
14034
14035# Dependencies to place before the objects being linked to create a
14036# shared library.
14037predeps=$lt_predeps_CXX
14038
14039# Dependencies to place after the objects being linked to create a
14040# shared library.
14041postdeps=$lt_postdeps_CXX
14042
14043# The directories searched by this compiler when creating a shared
14044# library
14045compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14046
14047# The library search path used internally by the compiler when linking
14048# a shared library.
14049compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14050
14051# Method to check whether dependent libraries are shared objects.
14052deplibs_check_method=$lt_deplibs_check_method
14053
14054# Command to use when deplibs_check_method == file_magic.
14055file_magic_cmd=$lt_file_magic_cmd
14056
14057# Flag that allows shared libraries with undefined symbols to be built.
14058allow_undefined_flag=$lt_allow_undefined_flag_CXX
14059
14060# Flag that forces no undefined symbols.
14061no_undefined_flag=$lt_no_undefined_flag_CXX
14062
14063# Commands used to finish a libtool library installation in a directory.
14064finish_cmds=$lt_finish_cmds
14065
14066# Same as above, but a single script fragment to be evaled but not shown.
14067finish_eval=$lt_finish_eval
14068
14069# Take the output of nm and produce a listing of raw symbols and C names.
14070global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14071
14072# Transform the output of nm in a proper C declaration
14073global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14074
14075# Transform the output of nm in a C name address pair
14076global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14077
14078# This is the shared library runtime path variable.
14079runpath_var=$runpath_var
14080
14081# This is the shared library path variable.
14082shlibpath_var=$shlibpath_var
14083
14084# Is shlibpath searched before the hard-coded library search path?
14085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14086
14087# How to hardcode a shared library path into an executable.
14088hardcode_action=$hardcode_action_CXX
14089
14090# Whether we should hardcode library paths into libraries.
14091hardcode_into_libs=$hardcode_into_libs
14092
14093# Flag to hardcode \$libdir into a binary during linking.
14094# This must work even if \$libdir does not exist.
14095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14096
14097# If ld is used when linking, flag to hardcode \$libdir into
14098# a binary during linking. This must work even if \$libdir does
14099# not exist.
14100hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14101
14102# Whether we need a single -rpath flag with a separated argument.
14103hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14104
14105# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14106# resulting binary.
14107hardcode_direct=$hardcode_direct_CXX
14108
14109# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14110# resulting binary.
14111hardcode_minus_L=$hardcode_minus_L_CXX
14112
14113# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14114# the resulting binary.
14115hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14116
14117# Set to yes if building a shared library automatically hardcodes DIR into the library
14118# and all subsequent libraries and executables linked against it.
14119hardcode_automatic=$hardcode_automatic_CXX
14120
14121# Variables whose values should be saved in libtool wrapper scripts and
14122# restored at relink time.
14123variables_saved_for_relink="$variables_saved_for_relink"
14124
14125# Whether libtool must link a program against all its dependency libraries.
14126link_all_deplibs=$link_all_deplibs_CXX
14127
14128# Compile-time system search path for libraries
14129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14130
14131# Run-time system search path for libraries
14132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14133
14134# Fix the shell variable \$srcfile for the compiler.
14135fix_srcfile_path=$lt_fix_srcfile_path
14136
14137# Set to yes if exported symbols are required.
14138always_export_symbols=$always_export_symbols_CXX
14139
14140# The commands to list exported symbols.
14141export_symbols_cmds=$lt_export_symbols_cmds_CXX
14142
14143# The commands to extract the exported symbol list from a shared archive.
14144extract_expsyms_cmds=$lt_extract_expsyms_cmds
14145
14146# Symbols that should not be listed in the preloaded symbols.
14147exclude_expsyms=$lt_exclude_expsyms_CXX
14148
14149# Symbols that must always be exported.
14150include_expsyms=$lt_include_expsyms_CXX
14151
14152# ### END LIBTOOL TAG CONFIG: $tagname
14153
14154__EOF__
14155
14156
14157else
14158  # If there is no Makefile yet, we rely on a make rule to execute
14159  # `config.status --recheck' to rerun these tests and create the
14160  # libtool script then.
14161  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14162  if test -f "$ltmain_in"; then
14163    test -f Makefile && make "$ltmain"
14164  fi
14165fi
14166
14167
14168ac_ext=c
14169ac_cpp='$CPP $CPPFLAGS'
14170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14172ac_compiler_gnu=$ac_cv_c_compiler_gnu
14173
14174CC=$lt_save_CC
14175LDCXX=$LD
14176LD=$lt_save_LD
14177GCC=$lt_save_GCC
14178with_gnu_ldcxx=$with_gnu_ld
14179with_gnu_ld=$lt_save_with_gnu_ld
14180lt_cv_path_LDCXX=$lt_cv_path_LD
14181lt_cv_path_LD=$lt_save_path_LD
14182lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14183lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14184
14185	else
14186	  tagname=""
14187	fi
14188	;;
14189
14190      F77)
14191	if test -n "$F77" && test "X$F77" != "Xno"; then
14192
14193ac_ext=f
14194ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14195ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14196ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14197
14198
14199archive_cmds_need_lc_F77=no
14200allow_undefined_flag_F77=
14201always_export_symbols_F77=no
14202archive_expsym_cmds_F77=
14203export_dynamic_flag_spec_F77=
14204hardcode_direct_F77=no
14205hardcode_libdir_flag_spec_F77=
14206hardcode_libdir_flag_spec_ld_F77=
14207hardcode_libdir_separator_F77=
14208hardcode_minus_L_F77=no
14209hardcode_automatic_F77=no
14210module_cmds_F77=
14211module_expsym_cmds_F77=
14212link_all_deplibs_F77=unknown
14213old_archive_cmds_F77=$old_archive_cmds
14214no_undefined_flag_F77=
14215whole_archive_flag_spec_F77=
14216enable_shared_with_static_runtimes_F77=no
14217
14218# Source file extension for f77 test sources.
14219ac_ext=f
14220
14221# Object file extension for compiled f77 test sources.
14222objext=o
14223objext_F77=$objext
14224
14225# Code to be used in simple compile tests
14226lt_simple_compile_test_code="\
14227      subroutine t
14228      return
14229      end
14230"
14231
14232# Code to be used in simple link tests
14233lt_simple_link_test_code="\
14234      program t
14235      end
14236"
14237
14238# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14239
14240# If no C compiler was specified, use CC.
14241LTCC=${LTCC-"$CC"}
14242
14243# If no C compiler flags were specified, use CFLAGS.
14244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14245
14246# Allow CC to be a program name with arguments.
14247compiler=$CC
14248
14249
14250# save warnings/boilerplate of simple test code
14251ac_outfile=conftest.$ac_objext
14252echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14254_lt_compiler_boilerplate=`cat conftest.err`
14255$rm conftest*
14256
14257ac_outfile=conftest.$ac_objext
14258echo "$lt_simple_link_test_code" >conftest.$ac_ext
14259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14260_lt_linker_boilerplate=`cat conftest.err`
14261$rm -r conftest*
14262
14263
14264# Allow CC to be a program name with arguments.
14265lt_save_CC="$CC"
14266CC=${F77-"f77"}
14267compiler=$CC
14268compiler_F77=$CC
14269for cc_temp in $compiler""; do
14270  case $cc_temp in
14271    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14272    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273    \-*) ;;
14274    *) break;;
14275  esac
14276done
14277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14278
14279
14280{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14281$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14282{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14283$as_echo "$can_build_shared" >&6; }
14284
14285{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14286$as_echo_n "checking whether to build shared libraries... " >&6; }
14287test "$can_build_shared" = "no" && enable_shared=no
14288
14289# On AIX, shared libraries and static libraries use the same namespace, and
14290# are all built from PIC.
14291case $host_os in
14292aix3*)
14293  test "$enable_shared" = yes && enable_static=no
14294  if test -n "$RANLIB"; then
14295    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14296    postinstall_cmds='$RANLIB $lib'
14297  fi
14298  ;;
14299aix[4-9]*)
14300  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14301    test "$enable_shared" = yes && enable_static=no
14302  fi
14303  ;;
14304esac
14305{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14306$as_echo "$enable_shared" >&6; }
14307
14308{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14309$as_echo_n "checking whether to build static libraries... " >&6; }
14310# Make sure either enable_shared or enable_static is yes.
14311test "$enable_shared" = yes || enable_static=yes
14312{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14313$as_echo "$enable_static" >&6; }
14314
14315GCC_F77="$G77"
14316LD_F77="$LD"
14317
14318lt_prog_compiler_wl_F77=
14319lt_prog_compiler_pic_F77=
14320lt_prog_compiler_static_F77=
14321
14322{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14323$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14324
14325  if test "$GCC" = yes; then
14326    lt_prog_compiler_wl_F77='-Wl,'
14327    lt_prog_compiler_static_F77='-static'
14328
14329    case $host_os in
14330      aix*)
14331      # All AIX code is PIC.
14332      if test "$host_cpu" = ia64; then
14333	# AIX 5 now supports IA64 processor
14334	lt_prog_compiler_static_F77='-Bstatic'
14335      fi
14336      ;;
14337
14338    amigaos*)
14339      # FIXME: we need at least 68020 code to build shared libraries, but
14340      # adding the `-m68020' flag to GCC prevents building anything better,
14341      # like `-m68040'.
14342      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14343      ;;
14344
14345    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14346      # PIC is the default for these OSes.
14347      ;;
14348
14349    mingw* | cygwin* | pw32* | os2*)
14350      # This hack is so that the source file can tell whether it is being
14351      # built for inclusion in a dll (and should export symbols for example).
14352      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14353      # (--disable-auto-import) libraries
14354      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14355      ;;
14356
14357    darwin* | rhapsody*)
14358      # PIC is the default on this platform
14359      # Common symbols not allowed in MH_DYLIB files
14360      lt_prog_compiler_pic_F77='-fno-common'
14361      ;;
14362
14363    interix[3-9]*)
14364      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14365      # Instead, we relocate shared libraries at runtime.
14366      ;;
14367
14368    msdosdjgpp*)
14369      # Just because we use GCC doesn't mean we suddenly get shared libraries
14370      # on systems that don't support them.
14371      lt_prog_compiler_can_build_shared_F77=no
14372      enable_shared=no
14373      ;;
14374
14375    sysv4*MP*)
14376      if test -d /usr/nec; then
14377	lt_prog_compiler_pic_F77=-Kconform_pic
14378      fi
14379      ;;
14380
14381    hpux*)
14382      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14383      # not for PA HP-UX.
14384      case $host_cpu in
14385      hppa*64*|ia64*)
14386	# +Z the default
14387	;;
14388      *)
14389	lt_prog_compiler_pic_F77='-fPIC'
14390	;;
14391      esac
14392      ;;
14393
14394    *)
14395      lt_prog_compiler_pic_F77='-fPIC'
14396      ;;
14397    esac
14398  else
14399    # PORTME Check for flag to pass linker flags through the system compiler.
14400    case $host_os in
14401    aix*)
14402      lt_prog_compiler_wl_F77='-Wl,'
14403      if test "$host_cpu" = ia64; then
14404	# AIX 5 now supports IA64 processor
14405	lt_prog_compiler_static_F77='-Bstatic'
14406      else
14407	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14408      fi
14409      ;;
14410      darwin*)
14411        # PIC is the default on this platform
14412        # Common symbols not allowed in MH_DYLIB files
14413       case $cc_basename in
14414         xlc*)
14415         lt_prog_compiler_pic_F77='-qnocommon'
14416         lt_prog_compiler_wl_F77='-Wl,'
14417         ;;
14418       esac
14419       ;;
14420
14421    mingw* | cygwin* | pw32* | os2*)
14422      # This hack is so that the source file can tell whether it is being
14423      # built for inclusion in a dll (and should export symbols for example).
14424      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14425      ;;
14426
14427    hpux9* | hpux10* | hpux11*)
14428      lt_prog_compiler_wl_F77='-Wl,'
14429      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14430      # not for PA HP-UX.
14431      case $host_cpu in
14432      hppa*64*|ia64*)
14433	# +Z the default
14434	;;
14435      *)
14436	lt_prog_compiler_pic_F77='+Z'
14437	;;
14438      esac
14439      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14440      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14441      ;;
14442
14443    irix5* | irix6* | nonstopux*)
14444      lt_prog_compiler_wl_F77='-Wl,'
14445      # PIC (with -KPIC) is the default.
14446      lt_prog_compiler_static_F77='-non_shared'
14447      ;;
14448
14449    newsos6)
14450      lt_prog_compiler_pic_F77='-KPIC'
14451      lt_prog_compiler_static_F77='-Bstatic'
14452      ;;
14453
14454    linux* | k*bsd*-gnu)
14455      case $cc_basename in
14456      icc* | ecc*)
14457	lt_prog_compiler_wl_F77='-Wl,'
14458	lt_prog_compiler_pic_F77='-KPIC'
14459	lt_prog_compiler_static_F77='-static'
14460        ;;
14461      pgcc* | pgf77* | pgf90* | pgf95*)
14462        # Portland Group compilers (*not* the Pentium gcc compiler,
14463	# which looks to be a dead project)
14464	lt_prog_compiler_wl_F77='-Wl,'
14465	lt_prog_compiler_pic_F77='-fpic'
14466	lt_prog_compiler_static_F77='-Bstatic'
14467        ;;
14468      ccc*)
14469        lt_prog_compiler_wl_F77='-Wl,'
14470        # All Alpha code is PIC.
14471        lt_prog_compiler_static_F77='-non_shared'
14472        ;;
14473      *)
14474        case `$CC -V 2>&1 | sed 5q` in
14475	*Sun\ C*)
14476	  # Sun C 5.9
14477	  lt_prog_compiler_pic_F77='-KPIC'
14478	  lt_prog_compiler_static_F77='-Bstatic'
14479	  lt_prog_compiler_wl_F77='-Wl,'
14480	  ;;
14481	*Sun\ F*)
14482	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14483	  lt_prog_compiler_pic_F77='-KPIC'
14484	  lt_prog_compiler_static_F77='-Bstatic'
14485	  lt_prog_compiler_wl_F77=''
14486	  ;;
14487	esac
14488	;;
14489      esac
14490      ;;
14491
14492    osf3* | osf4* | osf5*)
14493      lt_prog_compiler_wl_F77='-Wl,'
14494      # All OSF/1 code is PIC.
14495      lt_prog_compiler_static_F77='-non_shared'
14496      ;;
14497
14498    rdos*)
14499      lt_prog_compiler_static_F77='-non_shared'
14500      ;;
14501
14502    solaris*)
14503      lt_prog_compiler_pic_F77='-KPIC'
14504      lt_prog_compiler_static_F77='-Bstatic'
14505      case $cc_basename in
14506      f77* | f90* | f95*)
14507	lt_prog_compiler_wl_F77='-Qoption ld ';;
14508      *)
14509	lt_prog_compiler_wl_F77='-Wl,';;
14510      esac
14511      ;;
14512
14513    sunos4*)
14514      lt_prog_compiler_wl_F77='-Qoption ld '
14515      lt_prog_compiler_pic_F77='-PIC'
14516      lt_prog_compiler_static_F77='-Bstatic'
14517      ;;
14518
14519    sysv4 | sysv4.2uw2* | sysv4.3*)
14520      lt_prog_compiler_wl_F77='-Wl,'
14521      lt_prog_compiler_pic_F77='-KPIC'
14522      lt_prog_compiler_static_F77='-Bstatic'
14523      ;;
14524
14525    sysv4*MP*)
14526      if test -d /usr/nec ;then
14527	lt_prog_compiler_pic_F77='-Kconform_pic'
14528	lt_prog_compiler_static_F77='-Bstatic'
14529      fi
14530      ;;
14531
14532    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14533      lt_prog_compiler_wl_F77='-Wl,'
14534      lt_prog_compiler_pic_F77='-KPIC'
14535      lt_prog_compiler_static_F77='-Bstatic'
14536      ;;
14537
14538    unicos*)
14539      lt_prog_compiler_wl_F77='-Wl,'
14540      lt_prog_compiler_can_build_shared_F77=no
14541      ;;
14542
14543    uts4*)
14544      lt_prog_compiler_pic_F77='-pic'
14545      lt_prog_compiler_static_F77='-Bstatic'
14546      ;;
14547
14548    *)
14549      lt_prog_compiler_can_build_shared_F77=no
14550      ;;
14551    esac
14552  fi
14553
14554{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14555$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14556
14557#
14558# Check to make sure the PIC flag actually works.
14559#
14560if test -n "$lt_prog_compiler_pic_F77"; then
14561
14562{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14563$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14564if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14565  $as_echo_n "(cached) " >&6
14566else
14567  lt_cv_prog_compiler_pic_works_F77=no
14568  ac_outfile=conftest.$ac_objext
14569   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14570   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14571   # Insert the option either (1) after the last *FLAGS variable, or
14572   # (2) before a word containing "conftest.", or (3) at the end.
14573   # Note that $ac_compile itself does not contain backslashes and begins
14574   # with a dollar sign (not a hyphen), so the echo should work correctly.
14575   # The option is referenced via a variable to avoid confusing sed.
14576   lt_compile=`echo "$ac_compile" | $SED \
14577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579   -e 's:$: $lt_compiler_flag:'`
14580   (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
14581   (eval "$lt_compile" 2>conftest.err)
14582   ac_status=$?
14583   cat conftest.err >&5
14584   echo "$as_me:14584: \$? = $ac_status" >&5
14585   if (exit $ac_status) && test -s "$ac_outfile"; then
14586     # The compiler can only warn and ignore the option if not recognized
14587     # So say no if there are warnings other than the usual output.
14588     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14589     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14590     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14591       lt_cv_prog_compiler_pic_works_F77=yes
14592     fi
14593   fi
14594   $rm conftest*
14595
14596fi
14597{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14598$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14599
14600if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14601    case $lt_prog_compiler_pic_F77 in
14602     "" | " "*) ;;
14603     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14604     esac
14605else
14606    lt_prog_compiler_pic_F77=
14607     lt_prog_compiler_can_build_shared_F77=no
14608fi
14609
14610fi
14611case $host_os in
14612  # For platforms which do not support PIC, -DPIC is meaningless:
14613  *djgpp*)
14614    lt_prog_compiler_pic_F77=
14615    ;;
14616  *)
14617    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14618    ;;
14619esac
14620
14621#
14622# Check to make sure the static flag actually works.
14623#
14624wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14625{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14626$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14627if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14628  $as_echo_n "(cached) " >&6
14629else
14630  lt_cv_prog_compiler_static_works_F77=no
14631   save_LDFLAGS="$LDFLAGS"
14632   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14633   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14634   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14635     # The linker can only warn and ignore the option if not recognized
14636     # So say no if there are warnings
14637     if test -s conftest.err; then
14638       # Append any errors to the config.log.
14639       cat conftest.err 1>&5
14640       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14641       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642       if diff conftest.exp conftest.er2 >/dev/null; then
14643         lt_cv_prog_compiler_static_works_F77=yes
14644       fi
14645     else
14646       lt_cv_prog_compiler_static_works_F77=yes
14647     fi
14648   fi
14649   $rm -r conftest*
14650   LDFLAGS="$save_LDFLAGS"
14651
14652fi
14653{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14654$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14655
14656if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14657    :
14658else
14659    lt_prog_compiler_static_F77=
14660fi
14661
14662
14663{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14665if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14666  $as_echo_n "(cached) " >&6
14667else
14668  lt_cv_prog_compiler_c_o_F77=no
14669   $rm -r conftest 2>/dev/null
14670   mkdir conftest
14671   cd conftest
14672   mkdir out
14673   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674
14675   lt_compiler_flag="-o out/conftest2.$ac_objext"
14676   # Insert the option either (1) after the last *FLAGS variable, or
14677   # (2) before a word containing "conftest.", or (3) at the end.
14678   # Note that $ac_compile itself does not contain backslashes and begins
14679   # with a dollar sign (not a hyphen), so the echo should work correctly.
14680   lt_compile=`echo "$ac_compile" | $SED \
14681   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683   -e 's:$: $lt_compiler_flag:'`
14684   (eval echo "\"\$as_me:14684: $lt_compile\"" >&5)
14685   (eval "$lt_compile" 2>out/conftest.err)
14686   ac_status=$?
14687   cat out/conftest.err >&5
14688   echo "$as_me:14688: \$? = $ac_status" >&5
14689   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690   then
14691     # The compiler can only warn and ignore the option if not recognized
14692     # So say no if there are warnings
14693     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14694     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14695     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14696       lt_cv_prog_compiler_c_o_F77=yes
14697     fi
14698   fi
14699   chmod u+w . 2>&5
14700   $rm conftest*
14701   # SGI C++ compiler will create directory out/ii_files/ for
14702   # template instantiation
14703   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14704   $rm out/* && rmdir out
14705   cd ..
14706   rmdir conftest
14707   $rm conftest*
14708
14709fi
14710{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14711$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14712
14713
14714hard_links="nottested"
14715if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14716  # do not overwrite the value of need_locks provided by the user
14717  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14718$as_echo_n "checking if we can lock with hard links... " >&6; }
14719  hard_links=yes
14720  $rm conftest*
14721  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14722  touch conftest.a
14723  ln conftest.a conftest.b 2>&5 || hard_links=no
14724  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14726$as_echo "$hard_links" >&6; }
14727  if test "$hard_links" = no; then
14728    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14729$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14730    need_locks=warn
14731  fi
14732else
14733  need_locks=no
14734fi
14735
14736{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14738
14739  runpath_var=
14740  allow_undefined_flag_F77=
14741  enable_shared_with_static_runtimes_F77=no
14742  archive_cmds_F77=
14743  archive_expsym_cmds_F77=
14744  old_archive_From_new_cmds_F77=
14745  old_archive_from_expsyms_cmds_F77=
14746  export_dynamic_flag_spec_F77=
14747  whole_archive_flag_spec_F77=
14748  thread_safe_flag_spec_F77=
14749  hardcode_libdir_flag_spec_F77=
14750  hardcode_libdir_flag_spec_ld_F77=
14751  hardcode_libdir_separator_F77=
14752  hardcode_direct_F77=no
14753  hardcode_minus_L_F77=no
14754  hardcode_shlibpath_var_F77=unsupported
14755  link_all_deplibs_F77=unknown
14756  hardcode_automatic_F77=no
14757  module_cmds_F77=
14758  module_expsym_cmds_F77=
14759  always_export_symbols_F77=no
14760  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14761  # include_expsyms should be a list of space-separated symbols to be *always*
14762  # included in the symbol list
14763  include_expsyms_F77=
14764  # exclude_expsyms can be an extended regexp of symbols to exclude
14765  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14766  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14767  # as well as any symbol that contains `d'.
14768  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14770  # platforms (ab)use it in PIC code, but their linkers get confused if
14771  # the symbol is explicitly referenced.  Since portable code cannot
14772  # rely on this symbol name, it's probably fine to never include it in
14773  # preloaded symbol tables.
14774  # Exclude shared library initialization/finalization symbols.
14775  extract_expsyms_cmds=
14776  # Just being paranoid about ensuring that cc_basename is set.
14777  for cc_temp in $compiler""; do
14778  case $cc_temp in
14779    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14780    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14781    \-*) ;;
14782    *) break;;
14783  esac
14784done
14785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14786
14787  case $host_os in
14788  cygwin* | mingw* | pw32*)
14789    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14790    # When not using gcc, we currently assume that we are using
14791    # Microsoft Visual C++.
14792    if test "$GCC" != yes; then
14793      with_gnu_ld=no
14794    fi
14795    ;;
14796  interix*)
14797    # we just hope/assume this is gcc and not c89 (= MSVC++)
14798    with_gnu_ld=yes
14799    ;;
14800  openbsd*)
14801    with_gnu_ld=no
14802    ;;
14803  esac
14804
14805  ld_shlibs_F77=yes
14806  if test "$with_gnu_ld" = yes; then
14807    # If archive_cmds runs LD, not CC, wlarc should be empty
14808    wlarc='${wl}'
14809
14810    # Set some defaults for GNU ld with shared library support. These
14811    # are reset later if shared libraries are not supported. Putting them
14812    # here allows them to be overridden if necessary.
14813    runpath_var=LD_RUN_PATH
14814    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14815    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14816    # ancient GNU ld didn't support --whole-archive et. al.
14817    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14818	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14819      else
14820  	whole_archive_flag_spec_F77=
14821    fi
14822    supports_anon_versioning=no
14823    case `$LD -v 2>/dev/null` in
14824      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14825      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14826      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14827      *\ 2.11.*) ;; # other 2.11 versions
14828      *) supports_anon_versioning=yes ;;
14829    esac
14830
14831    # See if GNU ld supports shared libraries.
14832    case $host_os in
14833    aix[3-9]*)
14834      # On AIX/PPC, the GNU linker is very broken
14835      if test "$host_cpu" != ia64; then
14836	ld_shlibs_F77=no
14837	cat <<EOF 1>&2
14838
14839*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14840*** to be unable to reliably create shared libraries on AIX.
14841*** Therefore, libtool is disabling shared libraries support.  If you
14842*** really care for shared libraries, you may want to modify your PATH
14843*** so that a non-GNU linker is found, and then restart.
14844
14845EOF
14846      fi
14847      ;;
14848
14849    amigaos*)
14850      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)'
14851      hardcode_libdir_flag_spec_F77='-L$libdir'
14852      hardcode_minus_L_F77=yes
14853
14854      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14855      # that the semantics of dynamic libraries on AmigaOS, at least up
14856      # to version 4, is to share data among multiple programs linked
14857      # with the same dynamic library.  Since this doesn't match the
14858      # behavior of shared libraries on other platforms, we can't use
14859      # them.
14860      ld_shlibs_F77=no
14861      ;;
14862
14863    beos*)
14864      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14865	allow_undefined_flag_F77=unsupported
14866	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14867	# support --undefined.  This deserves some investigation.  FIXME
14868	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869      else
14870	ld_shlibs_F77=no
14871      fi
14872      ;;
14873
14874    cygwin* | mingw* | pw32*)
14875      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14876      # as there is no search path for DLLs.
14877      hardcode_libdir_flag_spec_F77='-L$libdir'
14878      allow_undefined_flag_F77=unsupported
14879      always_export_symbols_F77=no
14880      enable_shared_with_static_runtimes_F77=yes
14881      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14882
14883      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14884        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14885	# If the export-symbols file already is a .def file (1st line
14886	# is EXPORTS), use it as is; otherwise, prepend...
14887	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14888	  cp $export_symbols $output_objdir/$soname.def;
14889	else
14890	  echo EXPORTS > $output_objdir/$soname.def;
14891	  cat $export_symbols >> $output_objdir/$soname.def;
14892	fi~
14893	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14894      else
14895	ld_shlibs_F77=no
14896      fi
14897      ;;
14898
14899    interix[3-9]*)
14900      hardcode_direct_F77=no
14901      hardcode_shlibpath_var_F77=no
14902      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14903      export_dynamic_flag_spec_F77='${wl}-E'
14904      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14905      # Instead, shared libraries are loaded at an image base (0x10000000 by
14906      # default) and relocated if they conflict, which is a slow very memory
14907      # consuming and fragmenting process.  To avoid this, we pick a random,
14908      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14909      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14910      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'
14911      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'
14912      ;;
14913
14914    gnu* | linux* | k*bsd*-gnu)
14915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916	tmp_addflag=
14917	case $cc_basename,$host_cpu in
14918	pgcc*)				# Portland Group C compiler
14919	  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'
14920	  tmp_addflag=' $pic_flag'
14921	  ;;
14922	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14923	  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'
14924	  tmp_addflag=' $pic_flag -Mnomain' ;;
14925	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14926	  tmp_addflag=' -i_dynamic' ;;
14927	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14928	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14929	ifc* | ifort*)			# Intel Fortran compiler
14930	  tmp_addflag=' -nofor_main' ;;
14931	esac
14932	case `$CC -V 2>&1 | sed 5q` in
14933	*Sun\ C*)			# Sun C 5.9
14934	  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'
14935	  tmp_sharedflag='-G' ;;
14936	*Sun\ F*)			# Sun Fortran 8.3
14937	  tmp_sharedflag='-G' ;;
14938	*)
14939	  tmp_sharedflag='-shared' ;;
14940	esac
14941	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942
14943	if test $supports_anon_versioning = yes; then
14944	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14945  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14946  $echo "local: *; };" >> $output_objdir/$libname.ver~
14947	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14948	fi
14949      else
14950	ld_shlibs_F77=no
14951      fi
14952      ;;
14953
14954    netbsd*)
14955      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14956	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14957	wlarc=
14958      else
14959	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14961      fi
14962      ;;
14963
14964    solaris*)
14965      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14966	ld_shlibs_F77=no
14967	cat <<EOF 1>&2
14968
14969*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14970*** create shared libraries on Solaris systems.  Therefore, libtool
14971*** is disabling shared libraries support.  We urge you to upgrade GNU
14972*** binutils to release 2.9.1 or newer.  Another option is to modify
14973*** your PATH or compiler configuration so that the native linker is
14974*** used, and then restart.
14975
14976EOF
14977      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14979	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14980      else
14981	ld_shlibs_F77=no
14982      fi
14983      ;;
14984
14985    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14986      case `$LD -v 2>&1` in
14987        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14988	ld_shlibs_F77=no
14989	cat <<_LT_EOF 1>&2
14990
14991*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14992*** reliably create shared libraries on SCO systems.  Therefore, libtool
14993*** is disabling shared libraries support.  We urge you to upgrade GNU
14994*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14995*** your PATH or compiler configuration so that the native linker is
14996*** used, and then restart.
14997
14998_LT_EOF
14999	;;
15000	*)
15001	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15002	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15003	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15004	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15005	  else
15006	    ld_shlibs_F77=no
15007	  fi
15008	;;
15009      esac
15010      ;;
15011
15012    sunos4*)
15013      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15014      wlarc=
15015      hardcode_direct_F77=yes
15016      hardcode_shlibpath_var_F77=no
15017      ;;
15018
15019    *)
15020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023      else
15024	ld_shlibs_F77=no
15025      fi
15026      ;;
15027    esac
15028
15029    if test "$ld_shlibs_F77" = no; then
15030      runpath_var=
15031      hardcode_libdir_flag_spec_F77=
15032      export_dynamic_flag_spec_F77=
15033      whole_archive_flag_spec_F77=
15034    fi
15035  else
15036    # PORTME fill in a description of your system's linker (not GNU ld)
15037    case $host_os in
15038    aix3*)
15039      allow_undefined_flag_F77=unsupported
15040      always_export_symbols_F77=yes
15041      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'
15042      # Note: this linker hardcodes the directories in LIBPATH if there
15043      # are no directories specified by -L.
15044      hardcode_minus_L_F77=yes
15045      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15046	# Neither direct hardcoding nor static linking is supported with a
15047	# broken collect2.
15048	hardcode_direct_F77=unsupported
15049      fi
15050      ;;
15051
15052    aix[4-9]*)
15053      if test "$host_cpu" = ia64; then
15054	# On IA64, the linker does run time linking by default, so we don't
15055	# have to do anything special.
15056	aix_use_runtimelinking=no
15057	exp_sym_flag='-Bexport'
15058	no_entry_flag=""
15059      else
15060	# If we're using GNU nm, then we don't want the "-C" option.
15061	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15062	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15063	  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'
15064	else
15065	  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'
15066	fi
15067	aix_use_runtimelinking=no
15068
15069	# Test if we are trying to use run time linking or normal
15070	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15071	# need to do runtime linking.
15072	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15073	  for ld_flag in $LDFLAGS; do
15074  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15075  	    aix_use_runtimelinking=yes
15076  	    break
15077  	  fi
15078	  done
15079	  ;;
15080	esac
15081
15082	exp_sym_flag='-bexport'
15083	no_entry_flag='-bnoentry'
15084      fi
15085
15086      # When large executables or shared objects are built, AIX ld can
15087      # have problems creating the table of contents.  If linking a library
15088      # or program results in "error TOC overflow" add -mminimal-toc to
15089      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15090      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15091
15092      archive_cmds_F77=''
15093      hardcode_direct_F77=yes
15094      hardcode_libdir_separator_F77=':'
15095      link_all_deplibs_F77=yes
15096
15097      if test "$GCC" = yes; then
15098	case $host_os in aix4.[012]|aix4.[012].*)
15099	# We only want to do this on AIX 4.2 and lower, the check
15100	# below for broken collect2 doesn't work under 4.3+
15101	  collect2name=`${CC} -print-prog-name=collect2`
15102	  if test -f "$collect2name" && \
15103  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15104	  then
15105  	  # We have reworked collect2
15106  	  :
15107	  else
15108  	  # We have old collect2
15109  	  hardcode_direct_F77=unsupported
15110  	  # It fails to find uninstalled libraries when the uninstalled
15111  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15112  	  # to unsupported forces relinking
15113  	  hardcode_minus_L_F77=yes
15114  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15115  	  hardcode_libdir_separator_F77=
15116	  fi
15117	  ;;
15118	esac
15119	shared_flag='-shared'
15120	if test "$aix_use_runtimelinking" = yes; then
15121	  shared_flag="$shared_flag "'${wl}-G'
15122	fi
15123      else
15124	# not using gcc
15125	if test "$host_cpu" = ia64; then
15126  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15127  	# chokes on -Wl,-G. The following line is correct:
15128	  shared_flag='-G'
15129	else
15130	  if test "$aix_use_runtimelinking" = yes; then
15131	    shared_flag='${wl}-G'
15132	  else
15133	    shared_flag='${wl}-bM:SRE'
15134	  fi
15135	fi
15136      fi
15137
15138      # It seems that -bexpall does not export symbols beginning with
15139      # underscore (_), so it is better to generate a list of symbols to export.
15140      always_export_symbols_F77=yes
15141      if test "$aix_use_runtimelinking" = yes; then
15142	# Warning - without using the other runtime loading flags (-brtl),
15143	# -berok will link without error, but may produce a broken library.
15144	allow_undefined_flag_F77='-berok'
15145       # Determine the default libpath from the value encoded in an empty executable.
15146       cat >conftest.$ac_ext <<_ACEOF
15147      program main
15148
15149      end
15150_ACEOF
15151rm -f conftest.$ac_objext conftest$ac_exeext
15152if { (ac_try="$ac_link"
15153case "(($ac_try" in
15154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155  *) ac_try_echo=$ac_try;;
15156esac
15157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15158$as_echo "$ac_try_echo") >&5
15159  (eval "$ac_link") 2>conftest.er1
15160  ac_status=$?
15161  grep -v '^ *+' conftest.er1 >conftest.err
15162  rm -f conftest.er1
15163  cat conftest.err >&5
15164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165  (exit $ac_status); } && {
15166	 test -z "$ac_f77_werror_flag" ||
15167	 test ! -s conftest.err
15168       } && test -s conftest$ac_exeext && {
15169	 test "$cross_compiling" = yes ||
15170	 $as_test_x conftest$ac_exeext
15171       }; then
15172
15173lt_aix_libpath_sed='
15174    /Import File Strings/,/^$/ {
15175	/^0/ {
15176	    s/^0  *\(.*\)$/\1/
15177	    p
15178	}
15179    }'
15180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181# Check for a 64-bit object if we didn't find anything.
15182if test -z "$aix_libpath"; then
15183  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15184fi
15185else
15186  $as_echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189
15190fi
15191
15192rm -rf conftest.dSYM
15193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194      conftest$ac_exeext conftest.$ac_ext
15195if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15196
15197       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15198	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"
15199       else
15200	if test "$host_cpu" = ia64; then
15201	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15202	  allow_undefined_flag_F77="-z nodefs"
15203	  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"
15204	else
15205	 # Determine the default libpath from the value encoded in an empty executable.
15206	 cat >conftest.$ac_ext <<_ACEOF
15207      program main
15208
15209      end
15210_ACEOF
15211rm -f conftest.$ac_objext conftest$ac_exeext
15212if { (ac_try="$ac_link"
15213case "(($ac_try" in
15214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215  *) ac_try_echo=$ac_try;;
15216esac
15217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218$as_echo "$ac_try_echo") >&5
15219  (eval "$ac_link") 2>conftest.er1
15220  ac_status=$?
15221  grep -v '^ *+' conftest.er1 >conftest.err
15222  rm -f conftest.er1
15223  cat conftest.err >&5
15224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225  (exit $ac_status); } && {
15226	 test -z "$ac_f77_werror_flag" ||
15227	 test ! -s conftest.err
15228       } && test -s conftest$ac_exeext && {
15229	 test "$cross_compiling" = yes ||
15230	 $as_test_x conftest$ac_exeext
15231       }; then
15232
15233lt_aix_libpath_sed='
15234    /Import File Strings/,/^$/ {
15235	/^0/ {
15236	    s/^0  *\(.*\)$/\1/
15237	    p
15238	}
15239    }'
15240aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15241# Check for a 64-bit object if we didn't find anything.
15242if test -z "$aix_libpath"; then
15243  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15244fi
15245else
15246  $as_echo "$as_me: failed program was:" >&5
15247sed 's/^/| /' conftest.$ac_ext >&5
15248
15249
15250fi
15251
15252rm -rf conftest.dSYM
15253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254      conftest$ac_exeext conftest.$ac_ext
15255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15256
15257	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15258	  # Warning - without using the other run time loading flags,
15259	  # -berok will link without error, but may produce a broken library.
15260	  no_undefined_flag_F77=' ${wl}-bernotok'
15261	  allow_undefined_flag_F77=' ${wl}-berok'
15262	  # Exported symbols can be pulled into shared objects from archives
15263	  whole_archive_flag_spec_F77='$convenience'
15264	  archive_cmds_need_lc_F77=yes
15265	  # This is similar to how AIX traditionally builds its shared libraries.
15266	  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'
15267	fi
15268      fi
15269      ;;
15270
15271    amigaos*)
15272      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)'
15273      hardcode_libdir_flag_spec_F77='-L$libdir'
15274      hardcode_minus_L_F77=yes
15275      # see comment about different semantics on the GNU ld section
15276      ld_shlibs_F77=no
15277      ;;
15278
15279    bsdi[45]*)
15280      export_dynamic_flag_spec_F77=-rdynamic
15281      ;;
15282
15283    cygwin* | mingw* | pw32*)
15284      # When not using gcc, we currently assume that we are using
15285      # Microsoft Visual C++.
15286      # hardcode_libdir_flag_spec is actually meaningless, as there is
15287      # no search path for DLLs.
15288      hardcode_libdir_flag_spec_F77=' '
15289      allow_undefined_flag_F77=unsupported
15290      # Tell ltmain to make .lib files, not .a files.
15291      libext=lib
15292      # Tell ltmain to make .dll files, not .so files.
15293      shrext_cmds=".dll"
15294      # FIXME: Setting linknames here is a bad hack.
15295      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15296      # The linker will automatically build a .lib file if we build a DLL.
15297      old_archive_From_new_cmds_F77='true'
15298      # FIXME: Should let the user specify the lib program.
15299      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15300      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15301      enable_shared_with_static_runtimes_F77=yes
15302      ;;
15303
15304    darwin* | rhapsody*)
15305      case $host_os in
15306        rhapsody* | darwin1.[012])
15307         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15308         ;;
15309       *) # Darwin 1.3 on
15310         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15311           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15312         else
15313           case ${MACOSX_DEPLOYMENT_TARGET} in
15314             10.[012])
15315               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15316               ;;
15317             10.*)
15318               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15319               ;;
15320           esac
15321         fi
15322         ;;
15323      esac
15324      archive_cmds_need_lc_F77=no
15325      hardcode_direct_F77=no
15326      hardcode_automatic_F77=yes
15327      hardcode_shlibpath_var_F77=unsupported
15328      whole_archive_flag_spec_F77=''
15329      link_all_deplibs_F77=yes
15330    if test "$GCC" = yes ; then
15331    	output_verbose_link_cmd='echo'
15332        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}"
15333        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15334        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}"
15335        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}"
15336    else
15337      case $cc_basename in
15338        xlc*)
15339         output_verbose_link_cmd='echo'
15340         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15341         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15342          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15343         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}'
15344          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}'
15345          ;;
15346       *)
15347         ld_shlibs_F77=no
15348          ;;
15349      esac
15350    fi
15351      ;;
15352
15353    dgux*)
15354      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355      hardcode_libdir_flag_spec_F77='-L$libdir'
15356      hardcode_shlibpath_var_F77=no
15357      ;;
15358
15359    freebsd1*)
15360      ld_shlibs_F77=no
15361      ;;
15362
15363    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15364    # support.  Future versions do this automatically, but an explicit c++rt0.o
15365    # does not break anything, and helps significantly (at the cost of a little
15366    # extra space).
15367    freebsd2.2*)
15368      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15369      hardcode_libdir_flag_spec_F77='-R$libdir'
15370      hardcode_direct_F77=yes
15371      hardcode_shlibpath_var_F77=no
15372      ;;
15373
15374    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15375    freebsd2*)
15376      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15377      hardcode_direct_F77=yes
15378      hardcode_minus_L_F77=yes
15379      hardcode_shlibpath_var_F77=no
15380      ;;
15381
15382    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15383    freebsd* | dragonfly*)
15384      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15385      hardcode_libdir_flag_spec_F77='-R$libdir'
15386      hardcode_direct_F77=yes
15387      hardcode_shlibpath_var_F77=no
15388      ;;
15389
15390    hpux9*)
15391      if test "$GCC" = yes; then
15392	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'
15393      else
15394	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'
15395      fi
15396      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397      hardcode_libdir_separator_F77=:
15398      hardcode_direct_F77=yes
15399
15400      # hardcode_minus_L: Not really in the search PATH,
15401      # but as the default location of the library.
15402      hardcode_minus_L_F77=yes
15403      export_dynamic_flag_spec_F77='${wl}-E'
15404      ;;
15405
15406    hpux10*)
15407      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15408	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15409      else
15410	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15411      fi
15412      if test "$with_gnu_ld" = no; then
15413	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15414	hardcode_libdir_separator_F77=:
15415
15416	hardcode_direct_F77=yes
15417	export_dynamic_flag_spec_F77='${wl}-E'
15418
15419	# hardcode_minus_L: Not really in the search PATH,
15420	# but as the default location of the library.
15421	hardcode_minus_L_F77=yes
15422      fi
15423      ;;
15424
15425    hpux11*)
15426      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15427	case $host_cpu in
15428	hppa*64*)
15429	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430	  ;;
15431	ia64*)
15432	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15433	  ;;
15434	*)
15435	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15436	  ;;
15437	esac
15438      else
15439	case $host_cpu in
15440	hppa*64*)
15441	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442	  ;;
15443	ia64*)
15444	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15445	  ;;
15446	*)
15447	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15448	  ;;
15449	esac
15450      fi
15451      if test "$with_gnu_ld" = no; then
15452	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15453	hardcode_libdir_separator_F77=:
15454
15455	case $host_cpu in
15456	hppa*64*|ia64*)
15457	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15458	  hardcode_direct_F77=no
15459	  hardcode_shlibpath_var_F77=no
15460	  ;;
15461	*)
15462	  hardcode_direct_F77=yes
15463	  export_dynamic_flag_spec_F77='${wl}-E'
15464
15465	  # hardcode_minus_L: Not really in the search PATH,
15466	  # but as the default location of the library.
15467	  hardcode_minus_L_F77=yes
15468	  ;;
15469	esac
15470      fi
15471      ;;
15472
15473    irix5* | irix6* | nonstopux*)
15474      if test "$GCC" = yes; then
15475	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'
15476      else
15477	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'
15478	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15479      fi
15480      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15481      hardcode_libdir_separator_F77=:
15482      link_all_deplibs_F77=yes
15483      ;;
15484
15485    netbsd*)
15486      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15487	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15488      else
15489	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15490      fi
15491      hardcode_libdir_flag_spec_F77='-R$libdir'
15492      hardcode_direct_F77=yes
15493      hardcode_shlibpath_var_F77=no
15494      ;;
15495
15496    newsos6)
15497      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498      hardcode_direct_F77=yes
15499      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15500      hardcode_libdir_separator_F77=:
15501      hardcode_shlibpath_var_F77=no
15502      ;;
15503
15504    openbsd*)
15505      if test -f /usr/libexec/ld.so; then
15506	hardcode_direct_F77=yes
15507	hardcode_shlibpath_var_F77=no
15508	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15509	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15510	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15511	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15512	  export_dynamic_flag_spec_F77='${wl}-E'
15513	else
15514	  case $host_os in
15515	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15516	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15517	     hardcode_libdir_flag_spec_F77='-R$libdir'
15518	     ;;
15519	   *)
15520	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15521	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15522	     ;;
15523	  esac
15524        fi
15525      else
15526	ld_shlibs_F77=no
15527      fi
15528      ;;
15529
15530    os2*)
15531      hardcode_libdir_flag_spec_F77='-L$libdir'
15532      hardcode_minus_L_F77=yes
15533      allow_undefined_flag_F77=unsupported
15534      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'
15535      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15536      ;;
15537
15538    osf3*)
15539      if test "$GCC" = yes; then
15540	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15541	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'
15542      else
15543	allow_undefined_flag_F77=' -expect_unresolved \*'
15544	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'
15545      fi
15546      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15547      hardcode_libdir_separator_F77=:
15548      ;;
15549
15550    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15551      if test "$GCC" = yes; then
15552	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15553	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'
15554	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15555      else
15556	allow_undefined_flag_F77=' -expect_unresolved \*'
15557	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'
15558	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~
15559	$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'
15560
15561	# Both c and cxx compiler support -rpath directly
15562	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15563      fi
15564      hardcode_libdir_separator_F77=:
15565      ;;
15566
15567    solaris*)
15568      no_undefined_flag_F77=' -z text'
15569      if test "$GCC" = yes; then
15570	wlarc='${wl}'
15571	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15572	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15573	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15574      else
15575	wlarc=''
15576	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15578  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15579      fi
15580      hardcode_libdir_flag_spec_F77='-R$libdir'
15581      hardcode_shlibpath_var_F77=no
15582      case $host_os in
15583      solaris2.[0-5] | solaris2.[0-5].*) ;;
15584      *)
15585	# The compiler driver will combine and reorder linker options,
15586	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15587	# but is careful enough not to reorder.
15588 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15589	if test "$GCC" = yes; then
15590	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15591	else
15592	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15593	fi
15594	;;
15595      esac
15596      link_all_deplibs_F77=yes
15597      ;;
15598
15599    sunos4*)
15600      if test "x$host_vendor" = xsequent; then
15601	# Use $CC to link under sequent, because it throws in some extra .o
15602	# files that make .init and .fini sections work.
15603	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15604      else
15605	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15606      fi
15607      hardcode_libdir_flag_spec_F77='-L$libdir'
15608      hardcode_direct_F77=yes
15609      hardcode_minus_L_F77=yes
15610      hardcode_shlibpath_var_F77=no
15611      ;;
15612
15613    sysv4)
15614      case $host_vendor in
15615	sni)
15616	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617	  hardcode_direct_F77=yes # is this really true???
15618	;;
15619	siemens)
15620	  ## LD is ld it makes a PLAMLIB
15621	  ## CC just makes a GrossModule.
15622	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15623	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15624	  hardcode_direct_F77=no
15625        ;;
15626	motorola)
15627	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15628	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15629	;;
15630      esac
15631      runpath_var='LD_RUN_PATH'
15632      hardcode_shlibpath_var_F77=no
15633      ;;
15634
15635    sysv4.3*)
15636      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637      hardcode_shlibpath_var_F77=no
15638      export_dynamic_flag_spec_F77='-Bexport'
15639      ;;
15640
15641    sysv4*MP*)
15642      if test -d /usr/nec; then
15643	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644	hardcode_shlibpath_var_F77=no
15645	runpath_var=LD_RUN_PATH
15646	hardcode_runpath_var=yes
15647	ld_shlibs_F77=yes
15648      fi
15649      ;;
15650
15651    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15652      no_undefined_flag_F77='${wl}-z,text'
15653      archive_cmds_need_lc_F77=no
15654      hardcode_shlibpath_var_F77=no
15655      runpath_var='LD_RUN_PATH'
15656
15657      if test "$GCC" = yes; then
15658	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15660      else
15661	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663      fi
15664      ;;
15665
15666    sysv5* | sco3.2v5* | sco5v6*)
15667      # Note: We can NOT use -z defs as we might desire, because we do not
15668      # link with -lc, and that would cause any symbols used from libc to
15669      # always be unresolved, which means just about no library would
15670      # ever link correctly.  If we're not using GNU ld we use -z text
15671      # though, which does catch some bad symbols but isn't as heavy-handed
15672      # as -z defs.
15673      no_undefined_flag_F77='${wl}-z,text'
15674      allow_undefined_flag_F77='${wl}-z,nodefs'
15675      archive_cmds_need_lc_F77=no
15676      hardcode_shlibpath_var_F77=no
15677      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15678      hardcode_libdir_separator_F77=':'
15679      link_all_deplibs_F77=yes
15680      export_dynamic_flag_spec_F77='${wl}-Bexport'
15681      runpath_var='LD_RUN_PATH'
15682
15683      if test "$GCC" = yes; then
15684	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686      else
15687	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689      fi
15690      ;;
15691
15692    uts4*)
15693      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694      hardcode_libdir_flag_spec_F77='-L$libdir'
15695      hardcode_shlibpath_var_F77=no
15696      ;;
15697
15698    *)
15699      ld_shlibs_F77=no
15700      ;;
15701    esac
15702  fi
15703
15704{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15705$as_echo "$ld_shlibs_F77" >&6; }
15706test "$ld_shlibs_F77" = no && can_build_shared=no
15707
15708#
15709# Do we need to explicitly link libc?
15710#
15711case "x$archive_cmds_need_lc_F77" in
15712x|xyes)
15713  # Assume -lc should be added
15714  archive_cmds_need_lc_F77=yes
15715
15716  if test "$enable_shared" = yes && test "$GCC" = yes; then
15717    case $archive_cmds_F77 in
15718    *'~'*)
15719      # FIXME: we may have to deal with multi-command sequences.
15720      ;;
15721    '$CC '*)
15722      # Test whether the compiler implicitly links with -lc since on some
15723      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15724      # to ld, don't add -lc before -lgcc.
15725      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15726$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15727      $rm conftest*
15728      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15729
15730      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731  (eval $ac_compile) 2>&5
15732  ac_status=$?
15733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734  (exit $ac_status); } 2>conftest.err; then
15735        soname=conftest
15736        lib=conftest
15737        libobjs=conftest.$ac_objext
15738        deplibs=
15739        wl=$lt_prog_compiler_wl_F77
15740	pic_flag=$lt_prog_compiler_pic_F77
15741        compiler_flags=-v
15742        linker_flags=-v
15743        verstring=
15744        output_objdir=.
15745        libname=conftest
15746        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15747        allow_undefined_flag_F77=
15748        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15749  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15750  ac_status=$?
15751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752  (exit $ac_status); }
15753        then
15754	  archive_cmds_need_lc_F77=no
15755        else
15756	  archive_cmds_need_lc_F77=yes
15757        fi
15758        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15759      else
15760        cat conftest.err 1>&5
15761      fi
15762      $rm conftest*
15763      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15764$as_echo "$archive_cmds_need_lc_F77" >&6; }
15765      ;;
15766    esac
15767  fi
15768  ;;
15769esac
15770
15771{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15772$as_echo_n "checking dynamic linker characteristics... " >&6; }
15773library_names_spec=
15774libname_spec='lib$name'
15775soname_spec=
15776shrext_cmds=".so"
15777postinstall_cmds=
15778postuninstall_cmds=
15779finish_cmds=
15780finish_eval=
15781shlibpath_var=
15782shlibpath_overrides_runpath=unknown
15783version_type=none
15784dynamic_linker="$host_os ld.so"
15785sys_lib_dlsearch_path_spec="/lib /usr/lib"
15786
15787need_lib_prefix=unknown
15788hardcode_into_libs=no
15789
15790# when you set need_version to no, make sure it does not cause -set_version
15791# flags to be left without arguments
15792need_version=unknown
15793
15794case $host_os in
15795aix3*)
15796  version_type=linux
15797  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15798  shlibpath_var=LIBPATH
15799
15800  # AIX 3 has no versioning support, so we append a major version to the name.
15801  soname_spec='${libname}${release}${shared_ext}$major'
15802  ;;
15803
15804aix[4-9]*)
15805  version_type=linux
15806  need_lib_prefix=no
15807  need_version=no
15808  hardcode_into_libs=yes
15809  if test "$host_cpu" = ia64; then
15810    # AIX 5 supports IA64
15811    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15812    shlibpath_var=LD_LIBRARY_PATH
15813  else
15814    # With GCC up to 2.95.x, collect2 would create an import file
15815    # for dependence libraries.  The import file would start with
15816    # the line `#! .'.  This would cause the generated library to
15817    # depend on `.', always an invalid library.  This was fixed in
15818    # development snapshots of GCC prior to 3.0.
15819    case $host_os in
15820      aix4 | aix4.[01] | aix4.[01].*)
15821      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15822	   echo ' yes '
15823	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15824	:
15825      else
15826	can_build_shared=no
15827      fi
15828      ;;
15829    esac
15830    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15831    # soname into executable. Probably we can add versioning support to
15832    # collect2, so additional links can be useful in future.
15833    if test "$aix_use_runtimelinking" = yes; then
15834      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15835      # instead of lib<name>.a to let people know that these are not
15836      # typical AIX shared libraries.
15837      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838    else
15839      # We preserve .a as extension for shared libraries through AIX4.2
15840      # and later when we are not doing run time linking.
15841      library_names_spec='${libname}${release}.a $libname.a'
15842      soname_spec='${libname}${release}${shared_ext}$major'
15843    fi
15844    shlibpath_var=LIBPATH
15845  fi
15846  ;;
15847
15848amigaos*)
15849  library_names_spec='$libname.ixlibrary $libname.a'
15850  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15851  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'
15852  ;;
15853
15854beos*)
15855  library_names_spec='${libname}${shared_ext}'
15856  dynamic_linker="$host_os ld.so"
15857  shlibpath_var=LIBRARY_PATH
15858  ;;
15859
15860bsdi[45]*)
15861  version_type=linux
15862  need_version=no
15863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864  soname_spec='${libname}${release}${shared_ext}$major'
15865  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15866  shlibpath_var=LD_LIBRARY_PATH
15867  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15868  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15869  # the default ld.so.conf also contains /usr/contrib/lib and
15870  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15871  # libtool to hard-code these into programs
15872  ;;
15873
15874cygwin* | mingw* | pw32*)
15875  version_type=windows
15876  shrext_cmds=".dll"
15877  need_version=no
15878  need_lib_prefix=no
15879
15880  case $GCC,$host_os in
15881  yes,cygwin* | yes,mingw* | yes,pw32*)
15882    library_names_spec='$libname.dll.a'
15883    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15884    postinstall_cmds='base_file=`basename \${file}`~
15885      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15886      dldir=$destdir/`dirname \$dlpath`~
15887      test -d \$dldir || mkdir -p \$dldir~
15888      $install_prog $dir/$dlname \$dldir/$dlname~
15889      chmod a+x \$dldir/$dlname'
15890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15891      dlpath=$dir/\$dldll~
15892       $rm \$dlpath'
15893    shlibpath_overrides_runpath=yes
15894
15895    case $host_os in
15896    cygwin*)
15897      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15898      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15899      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15900      ;;
15901    mingw*)
15902      # MinGW DLLs use traditional 'lib' prefix
15903      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15904      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15905      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15906        # It is most probably a Windows format PATH printed by
15907        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15908        # path with ; separators, and with drive letters. We can handle the
15909        # drive letters (cygwin fileutils understands them), so leave them,
15910        # especially as we might pass files found there to a mingw objdump,
15911        # which wouldn't understand a cygwinified path. Ahh.
15912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15913      else
15914        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15915      fi
15916      ;;
15917    pw32*)
15918      # pw32 DLLs use 'pw' prefix rather than 'lib'
15919      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920      ;;
15921    esac
15922    ;;
15923
15924  *)
15925    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15926    ;;
15927  esac
15928  dynamic_linker='Win32 ld.exe'
15929  # FIXME: first we should search . and the directory the executable is in
15930  shlibpath_var=PATH
15931  ;;
15932
15933darwin* | rhapsody*)
15934  dynamic_linker="$host_os dyld"
15935  version_type=darwin
15936  need_lib_prefix=no
15937  need_version=no
15938  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15939  soname_spec='${libname}${release}${major}$shared_ext'
15940  shlibpath_overrides_runpath=yes
15941  shlibpath_var=DYLD_LIBRARY_PATH
15942  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15943
15944  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15945  ;;
15946
15947dgux*)
15948  version_type=linux
15949  need_lib_prefix=no
15950  need_version=no
15951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15952  soname_spec='${libname}${release}${shared_ext}$major'
15953  shlibpath_var=LD_LIBRARY_PATH
15954  ;;
15955
15956freebsd1*)
15957  dynamic_linker=no
15958  ;;
15959
15960freebsd* | dragonfly*)
15961  # DragonFly does not have aout.  When/if they implement a new
15962  # versioning mechanism, adjust this.
15963  if test -x /usr/bin/objformat; then
15964    objformat=`/usr/bin/objformat`
15965  else
15966    case $host_os in
15967    freebsd[123]*) objformat=aout ;;
15968    *) objformat=elf ;;
15969    esac
15970  fi
15971  version_type=freebsd-$objformat
15972  case $version_type in
15973    freebsd-elf*)
15974      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15975      need_version=no
15976      need_lib_prefix=no
15977      ;;
15978    freebsd-*)
15979      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15980      need_version=yes
15981      ;;
15982  esac
15983  shlibpath_var=LD_LIBRARY_PATH
15984  case $host_os in
15985  freebsd2*)
15986    shlibpath_overrides_runpath=yes
15987    ;;
15988  freebsd3.[01]* | freebsdelf3.[01]*)
15989    shlibpath_overrides_runpath=yes
15990    hardcode_into_libs=yes
15991    ;;
15992  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15993  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15994    shlibpath_overrides_runpath=no
15995    hardcode_into_libs=yes
15996    ;;
15997  *) # from 4.6 on, and DragonFly
15998    shlibpath_overrides_runpath=yes
15999    hardcode_into_libs=yes
16000    ;;
16001  esac
16002  ;;
16003
16004gnu*)
16005  version_type=linux
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16009  soname_spec='${libname}${release}${shared_ext}$major'
16010  shlibpath_var=LD_LIBRARY_PATH
16011  hardcode_into_libs=yes
16012  ;;
16013
16014hpux9* | hpux10* | hpux11*)
16015  # Give a soname corresponding to the major version so that dld.sl refuses to
16016  # link against other versions.
16017  version_type=sunos
16018  need_lib_prefix=no
16019  need_version=no
16020  case $host_cpu in
16021  ia64*)
16022    shrext_cmds='.so'
16023    hardcode_into_libs=yes
16024    dynamic_linker="$host_os dld.so"
16025    shlibpath_var=LD_LIBRARY_PATH
16026    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16027    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028    soname_spec='${libname}${release}${shared_ext}$major'
16029    if test "X$HPUX_IA64_MODE" = X32; then
16030      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16031    else
16032      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16033    fi
16034    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035    ;;
16036   hppa*64*)
16037     shrext_cmds='.sl'
16038     hardcode_into_libs=yes
16039     dynamic_linker="$host_os dld.sl"
16040     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043     soname_spec='${libname}${release}${shared_ext}$major'
16044     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16045     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046     ;;
16047   *)
16048    shrext_cmds='.sl'
16049    dynamic_linker="$host_os dld.sl"
16050    shlibpath_var=SHLIB_PATH
16051    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16052    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053    soname_spec='${libname}${release}${shared_ext}$major'
16054    ;;
16055  esac
16056  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16057  postinstall_cmds='chmod 555 $lib'
16058  ;;
16059
16060interix[3-9]*)
16061  version_type=linux
16062  need_lib_prefix=no
16063  need_version=no
16064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065  soname_spec='${libname}${release}${shared_ext}$major'
16066  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16067  shlibpath_var=LD_LIBRARY_PATH
16068  shlibpath_overrides_runpath=no
16069  hardcode_into_libs=yes
16070  ;;
16071
16072irix5* | irix6* | nonstopux*)
16073  case $host_os in
16074    nonstopux*) version_type=nonstopux ;;
16075    *)
16076	if test "$lt_cv_prog_gnu_ld" = yes; then
16077		version_type=linux
16078	else
16079		version_type=irix
16080	fi ;;
16081  esac
16082  need_lib_prefix=no
16083  need_version=no
16084  soname_spec='${libname}${release}${shared_ext}$major'
16085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16086  case $host_os in
16087  irix5* | nonstopux*)
16088    libsuff= shlibsuff=
16089    ;;
16090  *)
16091    case $LD in # libtool.m4 will add one of these switches to LD
16092    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16093      libsuff= shlibsuff= libmagic=32-bit;;
16094    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16095      libsuff=32 shlibsuff=N32 libmagic=N32;;
16096    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16097      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16098    *) libsuff= shlibsuff= libmagic=never-match;;
16099    esac
16100    ;;
16101  esac
16102  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16103  shlibpath_overrides_runpath=no
16104  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16105  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16106  hardcode_into_libs=yes
16107  ;;
16108
16109# No shared lib support for Linux oldld, aout, or coff.
16110linux*oldld* | linux*aout* | linux*coff*)
16111  dynamic_linker=no
16112  ;;
16113
16114# This must be Linux ELF.
16115linux* | k*bsd*-gnu)
16116  version_type=linux
16117  need_lib_prefix=no
16118  need_version=no
16119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120  soname_spec='${libname}${release}${shared_ext}$major'
16121  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16122  shlibpath_var=LD_LIBRARY_PATH
16123  shlibpath_overrides_runpath=no
16124  # This implies no fast_install, which is unacceptable.
16125  # Some rework will be needed to allow for fast_install
16126  # before this can be enabled.
16127  hardcode_into_libs=yes
16128  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16129  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16130
16131  # Append ld.so.conf contents to the search path
16132  if test -f /etc/ld.so.conf; then
16133    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' ' '`
16134    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16135  fi
16136
16137  # We used to test for /lib/ld.so.1 and disable shared libraries on
16138  # powerpc, because MkLinux only supported shared libraries with the
16139  # GNU dynamic linker.  Since this was broken with cross compilers,
16140  # most powerpc-linux boxes support dynamic linking these days and
16141  # people can always --disable-shared, the test was removed, and we
16142  # assume the GNU/Linux dynamic linker is in use.
16143  dynamic_linker='GNU/Linux ld.so'
16144  ;;
16145
16146netbsd*)
16147  version_type=sunos
16148  need_lib_prefix=no
16149  need_version=no
16150  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16153    dynamic_linker='NetBSD (a.out) ld.so'
16154  else
16155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16156    soname_spec='${libname}${release}${shared_ext}$major'
16157    dynamic_linker='NetBSD ld.elf_so'
16158  fi
16159  shlibpath_var=LD_LIBRARY_PATH
16160  shlibpath_overrides_runpath=yes
16161  hardcode_into_libs=yes
16162  ;;
16163
16164newsos6)
16165  version_type=linux
16166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167  shlibpath_var=LD_LIBRARY_PATH
16168  shlibpath_overrides_runpath=yes
16169  ;;
16170
16171nto-qnx*)
16172  version_type=linux
16173  need_lib_prefix=no
16174  need_version=no
16175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176  soname_spec='${libname}${release}${shared_ext}$major'
16177  shlibpath_var=LD_LIBRARY_PATH
16178  shlibpath_overrides_runpath=yes
16179  ;;
16180
16181openbsd*)
16182  version_type=sunos
16183  sys_lib_dlsearch_path_spec="/usr/lib"
16184  need_lib_prefix=no
16185  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16186  case $host_os in
16187    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16188    *)                         need_version=no  ;;
16189  esac
16190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16191  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16192  shlibpath_var=LD_LIBRARY_PATH
16193  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16194    case $host_os in
16195      openbsd2.[89] | openbsd2.[89].*)
16196	shlibpath_overrides_runpath=no
16197	;;
16198      *)
16199	shlibpath_overrides_runpath=yes
16200	;;
16201      esac
16202  else
16203    shlibpath_overrides_runpath=yes
16204  fi
16205  ;;
16206
16207os2*)
16208  libname_spec='$name'
16209  shrext_cmds=".dll"
16210  need_lib_prefix=no
16211  library_names_spec='$libname${shared_ext} $libname.a'
16212  dynamic_linker='OS/2 ld.exe'
16213  shlibpath_var=LIBPATH
16214  ;;
16215
16216osf3* | osf4* | osf5*)
16217  version_type=osf
16218  need_lib_prefix=no
16219  need_version=no
16220  soname_spec='${libname}${release}${shared_ext}$major'
16221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222  shlibpath_var=LD_LIBRARY_PATH
16223  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16224  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16225  ;;
16226
16227rdos*)
16228  dynamic_linker=no
16229  ;;
16230
16231solaris*)
16232  version_type=linux
16233  need_lib_prefix=no
16234  need_version=no
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236  soname_spec='${libname}${release}${shared_ext}$major'
16237  shlibpath_var=LD_LIBRARY_PATH
16238  shlibpath_overrides_runpath=yes
16239  hardcode_into_libs=yes
16240  # ldd complains unless libraries are executable
16241  postinstall_cmds='chmod +x $lib'
16242  ;;
16243
16244sunos4*)
16245  version_type=sunos
16246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16247  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16248  shlibpath_var=LD_LIBRARY_PATH
16249  shlibpath_overrides_runpath=yes
16250  if test "$with_gnu_ld" = yes; then
16251    need_lib_prefix=no
16252  fi
16253  need_version=yes
16254  ;;
16255
16256sysv4 | sysv4.3*)
16257  version_type=linux
16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259  soname_spec='${libname}${release}${shared_ext}$major'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  case $host_vendor in
16262    sni)
16263      shlibpath_overrides_runpath=no
16264      need_lib_prefix=no
16265      export_dynamic_flag_spec='${wl}-Blargedynsym'
16266      runpath_var=LD_RUN_PATH
16267      ;;
16268    siemens)
16269      need_lib_prefix=no
16270      ;;
16271    motorola)
16272      need_lib_prefix=no
16273      need_version=no
16274      shlibpath_overrides_runpath=no
16275      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16276      ;;
16277  esac
16278  ;;
16279
16280sysv4*MP*)
16281  if test -d /usr/nec ;then
16282    version_type=linux
16283    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16284    soname_spec='$libname${shared_ext}.$major'
16285    shlibpath_var=LD_LIBRARY_PATH
16286  fi
16287  ;;
16288
16289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16290  version_type=freebsd-elf
16291  need_lib_prefix=no
16292  need_version=no
16293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16294  soname_spec='${libname}${release}${shared_ext}$major'
16295  shlibpath_var=LD_LIBRARY_PATH
16296  hardcode_into_libs=yes
16297  if test "$with_gnu_ld" = yes; then
16298    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16299    shlibpath_overrides_runpath=no
16300  else
16301    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16302    shlibpath_overrides_runpath=yes
16303    case $host_os in
16304      sco3.2v5*)
16305        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16306	;;
16307    esac
16308  fi
16309  sys_lib_dlsearch_path_spec='/usr/lib'
16310  ;;
16311
16312uts4*)
16313  version_type=linux
16314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315  soname_spec='${libname}${release}${shared_ext}$major'
16316  shlibpath_var=LD_LIBRARY_PATH
16317  ;;
16318
16319*)
16320  dynamic_linker=no
16321  ;;
16322esac
16323{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16324$as_echo "$dynamic_linker" >&6; }
16325test "$dynamic_linker" = no && can_build_shared=no
16326
16327if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16328  $as_echo_n "(cached) " >&6
16329else
16330  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16331fi
16332
16333sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16334if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16335  $as_echo_n "(cached) " >&6
16336else
16337  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16338fi
16339
16340sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16341
16342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16343if test "$GCC" = yes; then
16344  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16345fi
16346
16347{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16348$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16349hardcode_action_F77=
16350if test -n "$hardcode_libdir_flag_spec_F77" || \
16351   test -n "$runpath_var_F77" || \
16352   test "X$hardcode_automatic_F77" = "Xyes" ; then
16353
16354  # We can hardcode non-existant directories.
16355  if test "$hardcode_direct_F77" != no &&
16356     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16357     # have to relink, otherwise we might link with an installed library
16358     # when we should be linking with a yet-to-be-installed one
16359     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16360     test "$hardcode_minus_L_F77" != no; then
16361    # Linking always hardcodes the temporary library directory.
16362    hardcode_action_F77=relink
16363  else
16364    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16365    hardcode_action_F77=immediate
16366  fi
16367else
16368  # We cannot hardcode anything, or else we can only hardcode existing
16369  # directories.
16370  hardcode_action_F77=unsupported
16371fi
16372{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16373$as_echo "$hardcode_action_F77" >&6; }
16374
16375if test "$hardcode_action_F77" = relink; then
16376  # Fast installation is not supported
16377  enable_fast_install=no
16378elif test "$shlibpath_overrides_runpath" = yes ||
16379     test "$enable_shared" = no; then
16380  # Fast installation is not necessary
16381  enable_fast_install=needless
16382fi
16383
16384
16385# The else clause should only fire when bootstrapping the
16386# libtool distribution, otherwise you forgot to ship ltmain.sh
16387# with your package, and you will get complaints that there are
16388# no rules to generate ltmain.sh.
16389if test -f "$ltmain"; then
16390  # See if we are running on zsh, and set the options which allow our commands through
16391  # without removal of \ escapes.
16392  if test -n "${ZSH_VERSION+set}" ; then
16393    setopt NO_GLOB_SUBST
16394  fi
16395  # Now quote all the things that may contain metacharacters while being
16396  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16397  # variables and quote the copies for generation of the libtool script.
16398  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16399    SED SHELL STRIP \
16400    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402    deplibs_check_method reload_flag reload_cmds need_locks \
16403    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404    lt_cv_sys_global_symbol_to_c_name_address \
16405    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406    old_postinstall_cmds old_postuninstall_cmds \
16407    compiler_F77 \
16408    CC_F77 \
16409    LD_F77 \
16410    lt_prog_compiler_wl_F77 \
16411    lt_prog_compiler_pic_F77 \
16412    lt_prog_compiler_static_F77 \
16413    lt_prog_compiler_no_builtin_flag_F77 \
16414    export_dynamic_flag_spec_F77 \
16415    thread_safe_flag_spec_F77 \
16416    whole_archive_flag_spec_F77 \
16417    enable_shared_with_static_runtimes_F77 \
16418    old_archive_cmds_F77 \
16419    old_archive_from_new_cmds_F77 \
16420    predep_objects_F77 \
16421    postdep_objects_F77 \
16422    predeps_F77 \
16423    postdeps_F77 \
16424    compiler_lib_search_path_F77 \
16425    compiler_lib_search_dirs_F77 \
16426    archive_cmds_F77 \
16427    archive_expsym_cmds_F77 \
16428    postinstall_cmds_F77 \
16429    postuninstall_cmds_F77 \
16430    old_archive_from_expsyms_cmds_F77 \
16431    allow_undefined_flag_F77 \
16432    no_undefined_flag_F77 \
16433    export_symbols_cmds_F77 \
16434    hardcode_libdir_flag_spec_F77 \
16435    hardcode_libdir_flag_spec_ld_F77 \
16436    hardcode_libdir_separator_F77 \
16437    hardcode_automatic_F77 \
16438    module_cmds_F77 \
16439    module_expsym_cmds_F77 \
16440    lt_cv_prog_compiler_c_o_F77 \
16441    fix_srcfile_path_F77 \
16442    exclude_expsyms_F77 \
16443    include_expsyms_F77; do
16444
16445    case $var in
16446    old_archive_cmds_F77 | \
16447    old_archive_from_new_cmds_F77 | \
16448    archive_cmds_F77 | \
16449    archive_expsym_cmds_F77 | \
16450    module_cmds_F77 | \
16451    module_expsym_cmds_F77 | \
16452    old_archive_from_expsyms_cmds_F77 | \
16453    export_symbols_cmds_F77 | \
16454    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16455    postinstall_cmds | postuninstall_cmds | \
16456    old_postinstall_cmds | old_postuninstall_cmds | \
16457    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16458      # Double-quote double-evaled strings.
16459      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16460      ;;
16461    *)
16462      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16463      ;;
16464    esac
16465  done
16466
16467  case $lt_echo in
16468  *'\$0 --fallback-echo"')
16469    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16470    ;;
16471  esac
16472
16473cfgfile="$ofile"
16474
16475  cat <<__EOF__ >> "$cfgfile"
16476# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16477
16478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16479
16480# Shell to use when invoking shell scripts.
16481SHELL=$lt_SHELL
16482
16483# Whether or not to build shared libraries.
16484build_libtool_libs=$enable_shared
16485
16486# Whether or not to build static libraries.
16487build_old_libs=$enable_static
16488
16489# Whether or not to add -lc for building shared libraries.
16490build_libtool_need_lc=$archive_cmds_need_lc_F77
16491
16492# Whether or not to disallow shared libs when runtime libs are static
16493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16494
16495# Whether or not to optimize for fast installation.
16496fast_install=$enable_fast_install
16497
16498# The host system.
16499host_alias=$host_alias
16500host=$host
16501host_os=$host_os
16502
16503# The build system.
16504build_alias=$build_alias
16505build=$build
16506build_os=$build_os
16507
16508# An echo program that does not interpret backslashes.
16509echo=$lt_echo
16510
16511# The archiver.
16512AR=$lt_AR
16513AR_FLAGS=$lt_AR_FLAGS
16514
16515# A C compiler.
16516LTCC=$lt_LTCC
16517
16518# LTCC compiler flags.
16519LTCFLAGS=$lt_LTCFLAGS
16520
16521# A language-specific compiler.
16522CC=$lt_compiler_F77
16523
16524# Is the compiler the GNU C compiler?
16525with_gcc=$GCC_F77
16526
16527# An ERE matcher.
16528EGREP=$lt_EGREP
16529
16530# The linker used to build libraries.
16531LD=$lt_LD_F77
16532
16533# Whether we need hard or soft links.
16534LN_S=$lt_LN_S
16535
16536# A BSD-compatible nm program.
16537NM=$lt_NM
16538
16539# A symbol stripping program
16540STRIP=$lt_STRIP
16541
16542# Used to examine libraries when file_magic_cmd begins "file"
16543MAGIC_CMD=$MAGIC_CMD
16544
16545# Used on cygwin: DLL creation program.
16546DLLTOOL="$DLLTOOL"
16547
16548# Used on cygwin: object dumper.
16549OBJDUMP="$OBJDUMP"
16550
16551# Used on cygwin: assembler.
16552AS="$AS"
16553
16554# The name of the directory that contains temporary libtool files.
16555objdir=$objdir
16556
16557# How to create reloadable object files.
16558reload_flag=$lt_reload_flag
16559reload_cmds=$lt_reload_cmds
16560
16561# How to pass a linker flag through the compiler.
16562wl=$lt_lt_prog_compiler_wl_F77
16563
16564# Object file suffix (normally "o").
16565objext="$ac_objext"
16566
16567# Old archive suffix (normally "a").
16568libext="$libext"
16569
16570# Shared library suffix (normally ".so").
16571shrext_cmds='$shrext_cmds'
16572
16573# Executable file suffix (normally "").
16574exeext="$exeext"
16575
16576# Additional compiler flags for building library objects.
16577pic_flag=$lt_lt_prog_compiler_pic_F77
16578pic_mode=$pic_mode
16579
16580# What is the maximum length of a command?
16581max_cmd_len=$lt_cv_sys_max_cmd_len
16582
16583# Does compiler simultaneously support -c and -o options?
16584compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16585
16586# Must we lock files when doing compilation?
16587need_locks=$lt_need_locks
16588
16589# Do we need the lib prefix for modules?
16590need_lib_prefix=$need_lib_prefix
16591
16592# Do we need a version for libraries?
16593need_version=$need_version
16594
16595# Whether dlopen is supported.
16596dlopen_support=$enable_dlopen
16597
16598# Whether dlopen of programs is supported.
16599dlopen_self=$enable_dlopen_self
16600
16601# Whether dlopen of statically linked programs is supported.
16602dlopen_self_static=$enable_dlopen_self_static
16603
16604# Compiler flag to prevent dynamic linking.
16605link_static_flag=$lt_lt_prog_compiler_static_F77
16606
16607# Compiler flag to turn off builtin functions.
16608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16609
16610# Compiler flag to allow reflexive dlopens.
16611export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16612
16613# Compiler flag to generate shared objects directly from archives.
16614whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16615
16616# Compiler flag to generate thread-safe objects.
16617thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16618
16619# Library versioning type.
16620version_type=$version_type
16621
16622# Format of library name prefix.
16623libname_spec=$lt_libname_spec
16624
16625# List of archive names.  First name is the real one, the rest are links.
16626# The last name is the one that the linker finds with -lNAME.
16627library_names_spec=$lt_library_names_spec
16628
16629# The coded name of the library, if different from the real name.
16630soname_spec=$lt_soname_spec
16631
16632# Commands used to build and install an old-style archive.
16633RANLIB=$lt_RANLIB
16634old_archive_cmds=$lt_old_archive_cmds_F77
16635old_postinstall_cmds=$lt_old_postinstall_cmds
16636old_postuninstall_cmds=$lt_old_postuninstall_cmds
16637
16638# Create an old-style archive from a shared archive.
16639old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16640
16641# Create a temporary old-style archive to link instead of a shared archive.
16642old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16643
16644# Commands used to build and install a shared archive.
16645archive_cmds=$lt_archive_cmds_F77
16646archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16647postinstall_cmds=$lt_postinstall_cmds
16648postuninstall_cmds=$lt_postuninstall_cmds
16649
16650# Commands used to build a loadable module (assumed same as above if empty)
16651module_cmds=$lt_module_cmds_F77
16652module_expsym_cmds=$lt_module_expsym_cmds_F77
16653
16654# Commands to strip libraries.
16655old_striplib=$lt_old_striplib
16656striplib=$lt_striplib
16657
16658# Dependencies to place before the objects being linked to create a
16659# shared library.
16660predep_objects=$lt_predep_objects_F77
16661
16662# Dependencies to place after the objects being linked to create a
16663# shared library.
16664postdep_objects=$lt_postdep_objects_F77
16665
16666# Dependencies to place before the objects being linked to create a
16667# shared library.
16668predeps=$lt_predeps_F77
16669
16670# Dependencies to place after the objects being linked to create a
16671# shared library.
16672postdeps=$lt_postdeps_F77
16673
16674# The directories searched by this compiler when creating a shared
16675# library
16676compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16677
16678# The library search path used internally by the compiler when linking
16679# a shared library.
16680compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16681
16682# Method to check whether dependent libraries are shared objects.
16683deplibs_check_method=$lt_deplibs_check_method
16684
16685# Command to use when deplibs_check_method == file_magic.
16686file_magic_cmd=$lt_file_magic_cmd
16687
16688# Flag that allows shared libraries with undefined symbols to be built.
16689allow_undefined_flag=$lt_allow_undefined_flag_F77
16690
16691# Flag that forces no undefined symbols.
16692no_undefined_flag=$lt_no_undefined_flag_F77
16693
16694# Commands used to finish a libtool library installation in a directory.
16695finish_cmds=$lt_finish_cmds
16696
16697# Same as above, but a single script fragment to be evaled but not shown.
16698finish_eval=$lt_finish_eval
16699
16700# Take the output of nm and produce a listing of raw symbols and C names.
16701global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16702
16703# Transform the output of nm in a proper C declaration
16704global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16705
16706# Transform the output of nm in a C name address pair
16707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16708
16709# This is the shared library runtime path variable.
16710runpath_var=$runpath_var
16711
16712# This is the shared library path variable.
16713shlibpath_var=$shlibpath_var
16714
16715# Is shlibpath searched before the hard-coded library search path?
16716shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16717
16718# How to hardcode a shared library path into an executable.
16719hardcode_action=$hardcode_action_F77
16720
16721# Whether we should hardcode library paths into libraries.
16722hardcode_into_libs=$hardcode_into_libs
16723
16724# Flag to hardcode \$libdir into a binary during linking.
16725# This must work even if \$libdir does not exist.
16726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16727
16728# If ld is used when linking, flag to hardcode \$libdir into
16729# a binary during linking. This must work even if \$libdir does
16730# not exist.
16731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16732
16733# Whether we need a single -rpath flag with a separated argument.
16734hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16735
16736# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16737# resulting binary.
16738hardcode_direct=$hardcode_direct_F77
16739
16740# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16741# resulting binary.
16742hardcode_minus_L=$hardcode_minus_L_F77
16743
16744# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16745# the resulting binary.
16746hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16747
16748# Set to yes if building a shared library automatically hardcodes DIR into the library
16749# and all subsequent libraries and executables linked against it.
16750hardcode_automatic=$hardcode_automatic_F77
16751
16752# Variables whose values should be saved in libtool wrapper scripts and
16753# restored at relink time.
16754variables_saved_for_relink="$variables_saved_for_relink"
16755
16756# Whether libtool must link a program against all its dependency libraries.
16757link_all_deplibs=$link_all_deplibs_F77
16758
16759# Compile-time system search path for libraries
16760sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16761
16762# Run-time system search path for libraries
16763sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16764
16765# Fix the shell variable \$srcfile for the compiler.
16766fix_srcfile_path=$lt_fix_srcfile_path
16767
16768# Set to yes if exported symbols are required.
16769always_export_symbols=$always_export_symbols_F77
16770
16771# The commands to list exported symbols.
16772export_symbols_cmds=$lt_export_symbols_cmds_F77
16773
16774# The commands to extract the exported symbol list from a shared archive.
16775extract_expsyms_cmds=$lt_extract_expsyms_cmds
16776
16777# Symbols that should not be listed in the preloaded symbols.
16778exclude_expsyms=$lt_exclude_expsyms_F77
16779
16780# Symbols that must always be exported.
16781include_expsyms=$lt_include_expsyms_F77
16782
16783# ### END LIBTOOL TAG CONFIG: $tagname
16784
16785__EOF__
16786
16787
16788else
16789  # If there is no Makefile yet, we rely on a make rule to execute
16790  # `config.status --recheck' to rerun these tests and create the
16791  # libtool script then.
16792  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16793  if test -f "$ltmain_in"; then
16794    test -f Makefile && make "$ltmain"
16795  fi
16796fi
16797
16798
16799ac_ext=c
16800ac_cpp='$CPP $CPPFLAGS'
16801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16803ac_compiler_gnu=$ac_cv_c_compiler_gnu
16804
16805CC="$lt_save_CC"
16806
16807	else
16808	  tagname=""
16809	fi
16810	;;
16811
16812      GCJ)
16813	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16814
16815
16816# Source file extension for Java test sources.
16817ac_ext=java
16818
16819# Object file extension for compiled Java test sources.
16820objext=o
16821objext_GCJ=$objext
16822
16823# Code to be used in simple compile tests
16824lt_simple_compile_test_code="class foo {}"
16825
16826# Code to be used in simple link tests
16827lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16828
16829# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16830
16831# If no C compiler was specified, use CC.
16832LTCC=${LTCC-"$CC"}
16833
16834# If no C compiler flags were specified, use CFLAGS.
16835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16836
16837# Allow CC to be a program name with arguments.
16838compiler=$CC
16839
16840
16841# save warnings/boilerplate of simple test code
16842ac_outfile=conftest.$ac_objext
16843echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16844eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16845_lt_compiler_boilerplate=`cat conftest.err`
16846$rm conftest*
16847
16848ac_outfile=conftest.$ac_objext
16849echo "$lt_simple_link_test_code" >conftest.$ac_ext
16850eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16851_lt_linker_boilerplate=`cat conftest.err`
16852$rm -r conftest*
16853
16854
16855# Allow CC to be a program name with arguments.
16856lt_save_CC="$CC"
16857CC=${GCJ-"gcj"}
16858compiler=$CC
16859compiler_GCJ=$CC
16860for cc_temp in $compiler""; do
16861  case $cc_temp in
16862    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16863    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16864    \-*) ;;
16865    *) break;;
16866  esac
16867done
16868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16869
16870
16871# GCJ did not exist at the time GCC didn't implicitly link libc in.
16872archive_cmds_need_lc_GCJ=no
16873
16874old_archive_cmds_GCJ=$old_archive_cmds
16875
16876
16877lt_prog_compiler_no_builtin_flag_GCJ=
16878
16879if test "$GCC" = yes; then
16880  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16881
16882
16883{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886  $as_echo_n "(cached) " >&6
16887else
16888  lt_cv_prog_compiler_rtti_exceptions=no
16889  ac_outfile=conftest.$ac_objext
16890   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16891   lt_compiler_flag="-fno-rtti -fno-exceptions"
16892   # Insert the option either (1) after the last *FLAGS variable, or
16893   # (2) before a word containing "conftest.", or (3) at the end.
16894   # Note that $ac_compile itself does not contain backslashes and begins
16895   # with a dollar sign (not a hyphen), so the echo should work correctly.
16896   # The option is referenced via a variable to avoid confusing sed.
16897   lt_compile=`echo "$ac_compile" | $SED \
16898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900   -e 's:$: $lt_compiler_flag:'`
16901   (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902   (eval "$lt_compile" 2>conftest.err)
16903   ac_status=$?
16904   cat conftest.err >&5
16905   echo "$as_me:16905: \$? = $ac_status" >&5
16906   if (exit $ac_status) && test -s "$ac_outfile"; then
16907     # The compiler can only warn and ignore the option if not recognized
16908     # So say no if there are warnings other than the usual output.
16909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16910     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912       lt_cv_prog_compiler_rtti_exceptions=yes
16913     fi
16914   fi
16915   $rm conftest*
16916
16917fi
16918{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16919$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16920
16921if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16922    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16923else
16924    :
16925fi
16926
16927fi
16928
16929lt_prog_compiler_wl_GCJ=
16930lt_prog_compiler_pic_GCJ=
16931lt_prog_compiler_static_GCJ=
16932
16933{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16934$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16935
16936  if test "$GCC" = yes; then
16937    lt_prog_compiler_wl_GCJ='-Wl,'
16938    lt_prog_compiler_static_GCJ='-static'
16939
16940    case $host_os in
16941      aix*)
16942      # All AIX code is PIC.
16943      if test "$host_cpu" = ia64; then
16944	# AIX 5 now supports IA64 processor
16945	lt_prog_compiler_static_GCJ='-Bstatic'
16946      fi
16947      ;;
16948
16949    amigaos*)
16950      # FIXME: we need at least 68020 code to build shared libraries, but
16951      # adding the `-m68020' flag to GCC prevents building anything better,
16952      # like `-m68040'.
16953      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16954      ;;
16955
16956    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16957      # PIC is the default for these OSes.
16958      ;;
16959
16960    mingw* | cygwin* | pw32* | os2*)
16961      # This hack is so that the source file can tell whether it is being
16962      # built for inclusion in a dll (and should export symbols for example).
16963      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16964      # (--disable-auto-import) libraries
16965
16966      ;;
16967
16968    darwin* | rhapsody*)
16969      # PIC is the default on this platform
16970      # Common symbols not allowed in MH_DYLIB files
16971      lt_prog_compiler_pic_GCJ='-fno-common'
16972      ;;
16973
16974    interix[3-9]*)
16975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16976      # Instead, we relocate shared libraries at runtime.
16977      ;;
16978
16979    msdosdjgpp*)
16980      # Just because we use GCC doesn't mean we suddenly get shared libraries
16981      # on systems that don't support them.
16982      lt_prog_compiler_can_build_shared_GCJ=no
16983      enable_shared=no
16984      ;;
16985
16986    sysv4*MP*)
16987      if test -d /usr/nec; then
16988	lt_prog_compiler_pic_GCJ=-Kconform_pic
16989      fi
16990      ;;
16991
16992    hpux*)
16993      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16994      # not for PA HP-UX.
16995      case $host_cpu in
16996      hppa*64*|ia64*)
16997	# +Z the default
16998	;;
16999      *)
17000	lt_prog_compiler_pic_GCJ='-fPIC'
17001	;;
17002      esac
17003      ;;
17004
17005    *)
17006      lt_prog_compiler_pic_GCJ='-fPIC'
17007      ;;
17008    esac
17009  else
17010    # PORTME Check for flag to pass linker flags through the system compiler.
17011    case $host_os in
17012    aix*)
17013      lt_prog_compiler_wl_GCJ='-Wl,'
17014      if test "$host_cpu" = ia64; then
17015	# AIX 5 now supports IA64 processor
17016	lt_prog_compiler_static_GCJ='-Bstatic'
17017      else
17018	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17019      fi
17020      ;;
17021      darwin*)
17022        # PIC is the default on this platform
17023        # Common symbols not allowed in MH_DYLIB files
17024       case $cc_basename in
17025         xlc*)
17026         lt_prog_compiler_pic_GCJ='-qnocommon'
17027         lt_prog_compiler_wl_GCJ='-Wl,'
17028         ;;
17029       esac
17030       ;;
17031
17032    mingw* | cygwin* | pw32* | os2*)
17033      # This hack is so that the source file can tell whether it is being
17034      # built for inclusion in a dll (and should export symbols for example).
17035
17036      ;;
17037
17038    hpux9* | hpux10* | hpux11*)
17039      lt_prog_compiler_wl_GCJ='-Wl,'
17040      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17041      # not for PA HP-UX.
17042      case $host_cpu in
17043      hppa*64*|ia64*)
17044	# +Z the default
17045	;;
17046      *)
17047	lt_prog_compiler_pic_GCJ='+Z'
17048	;;
17049      esac
17050      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17051      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17052      ;;
17053
17054    irix5* | irix6* | nonstopux*)
17055      lt_prog_compiler_wl_GCJ='-Wl,'
17056      # PIC (with -KPIC) is the default.
17057      lt_prog_compiler_static_GCJ='-non_shared'
17058      ;;
17059
17060    newsos6)
17061      lt_prog_compiler_pic_GCJ='-KPIC'
17062      lt_prog_compiler_static_GCJ='-Bstatic'
17063      ;;
17064
17065    linux* | k*bsd*-gnu)
17066      case $cc_basename in
17067      icc* | ecc*)
17068	lt_prog_compiler_wl_GCJ='-Wl,'
17069	lt_prog_compiler_pic_GCJ='-KPIC'
17070	lt_prog_compiler_static_GCJ='-static'
17071        ;;
17072      pgcc* | pgf77* | pgf90* | pgf95*)
17073        # Portland Group compilers (*not* the Pentium gcc compiler,
17074	# which looks to be a dead project)
17075	lt_prog_compiler_wl_GCJ='-Wl,'
17076	lt_prog_compiler_pic_GCJ='-fpic'
17077	lt_prog_compiler_static_GCJ='-Bstatic'
17078        ;;
17079      ccc*)
17080        lt_prog_compiler_wl_GCJ='-Wl,'
17081        # All Alpha code is PIC.
17082        lt_prog_compiler_static_GCJ='-non_shared'
17083        ;;
17084      *)
17085        case `$CC -V 2>&1 | sed 5q` in
17086	*Sun\ C*)
17087	  # Sun C 5.9
17088	  lt_prog_compiler_pic_GCJ='-KPIC'
17089	  lt_prog_compiler_static_GCJ='-Bstatic'
17090	  lt_prog_compiler_wl_GCJ='-Wl,'
17091	  ;;
17092	*Sun\ F*)
17093	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17094	  lt_prog_compiler_pic_GCJ='-KPIC'
17095	  lt_prog_compiler_static_GCJ='-Bstatic'
17096	  lt_prog_compiler_wl_GCJ=''
17097	  ;;
17098	esac
17099	;;
17100      esac
17101      ;;
17102
17103    osf3* | osf4* | osf5*)
17104      lt_prog_compiler_wl_GCJ='-Wl,'
17105      # All OSF/1 code is PIC.
17106      lt_prog_compiler_static_GCJ='-non_shared'
17107      ;;
17108
17109    rdos*)
17110      lt_prog_compiler_static_GCJ='-non_shared'
17111      ;;
17112
17113    solaris*)
17114      lt_prog_compiler_pic_GCJ='-KPIC'
17115      lt_prog_compiler_static_GCJ='-Bstatic'
17116      case $cc_basename in
17117      f77* | f90* | f95*)
17118	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17119      *)
17120	lt_prog_compiler_wl_GCJ='-Wl,';;
17121      esac
17122      ;;
17123
17124    sunos4*)
17125      lt_prog_compiler_wl_GCJ='-Qoption ld '
17126      lt_prog_compiler_pic_GCJ='-PIC'
17127      lt_prog_compiler_static_GCJ='-Bstatic'
17128      ;;
17129
17130    sysv4 | sysv4.2uw2* | sysv4.3*)
17131      lt_prog_compiler_wl_GCJ='-Wl,'
17132      lt_prog_compiler_pic_GCJ='-KPIC'
17133      lt_prog_compiler_static_GCJ='-Bstatic'
17134      ;;
17135
17136    sysv4*MP*)
17137      if test -d /usr/nec ;then
17138	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17139	lt_prog_compiler_static_GCJ='-Bstatic'
17140      fi
17141      ;;
17142
17143    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17144      lt_prog_compiler_wl_GCJ='-Wl,'
17145      lt_prog_compiler_pic_GCJ='-KPIC'
17146      lt_prog_compiler_static_GCJ='-Bstatic'
17147      ;;
17148
17149    unicos*)
17150      lt_prog_compiler_wl_GCJ='-Wl,'
17151      lt_prog_compiler_can_build_shared_GCJ=no
17152      ;;
17153
17154    uts4*)
17155      lt_prog_compiler_pic_GCJ='-pic'
17156      lt_prog_compiler_static_GCJ='-Bstatic'
17157      ;;
17158
17159    *)
17160      lt_prog_compiler_can_build_shared_GCJ=no
17161      ;;
17162    esac
17163  fi
17164
17165{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17166$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17167
17168#
17169# Check to make sure the PIC flag actually works.
17170#
17171if test -n "$lt_prog_compiler_pic_GCJ"; then
17172
17173{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17174$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17175if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17176  $as_echo_n "(cached) " >&6
17177else
17178  lt_cv_prog_compiler_pic_works_GCJ=no
17179  ac_outfile=conftest.$ac_objext
17180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17181   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17182   # Insert the option either (1) after the last *FLAGS variable, or
17183   # (2) before a word containing "conftest.", or (3) at the end.
17184   # Note that $ac_compile itself does not contain backslashes and begins
17185   # with a dollar sign (not a hyphen), so the echo should work correctly.
17186   # The option is referenced via a variable to avoid confusing sed.
17187   lt_compile=`echo "$ac_compile" | $SED \
17188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17190   -e 's:$: $lt_compiler_flag:'`
17191   (eval echo "\"\$as_me:17191: $lt_compile\"" >&5)
17192   (eval "$lt_compile" 2>conftest.err)
17193   ac_status=$?
17194   cat conftest.err >&5
17195   echo "$as_me:17195: \$? = $ac_status" >&5
17196   if (exit $ac_status) && test -s "$ac_outfile"; then
17197     # The compiler can only warn and ignore the option if not recognized
17198     # So say no if there are warnings other than the usual output.
17199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17202       lt_cv_prog_compiler_pic_works_GCJ=yes
17203     fi
17204   fi
17205   $rm conftest*
17206
17207fi
17208{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17209$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17210
17211if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17212    case $lt_prog_compiler_pic_GCJ in
17213     "" | " "*) ;;
17214     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17215     esac
17216else
17217    lt_prog_compiler_pic_GCJ=
17218     lt_prog_compiler_can_build_shared_GCJ=no
17219fi
17220
17221fi
17222case $host_os in
17223  # For platforms which do not support PIC, -DPIC is meaningless:
17224  *djgpp*)
17225    lt_prog_compiler_pic_GCJ=
17226    ;;
17227  *)
17228    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17229    ;;
17230esac
17231
17232#
17233# Check to make sure the static flag actually works.
17234#
17235wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17236{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17237$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17238if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17239  $as_echo_n "(cached) " >&6
17240else
17241  lt_cv_prog_compiler_static_works_GCJ=no
17242   save_LDFLAGS="$LDFLAGS"
17243   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17244   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17245   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17246     # The linker can only warn and ignore the option if not recognized
17247     # So say no if there are warnings
17248     if test -s conftest.err; then
17249       # Append any errors to the config.log.
17250       cat conftest.err 1>&5
17251       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17252       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17253       if diff conftest.exp conftest.er2 >/dev/null; then
17254         lt_cv_prog_compiler_static_works_GCJ=yes
17255       fi
17256     else
17257       lt_cv_prog_compiler_static_works_GCJ=yes
17258     fi
17259   fi
17260   $rm -r conftest*
17261   LDFLAGS="$save_LDFLAGS"
17262
17263fi
17264{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17265$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17266
17267if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17268    :
17269else
17270    lt_prog_compiler_static_GCJ=
17271fi
17272
17273
17274{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17276if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17277  $as_echo_n "(cached) " >&6
17278else
17279  lt_cv_prog_compiler_c_o_GCJ=no
17280   $rm -r conftest 2>/dev/null
17281   mkdir conftest
17282   cd conftest
17283   mkdir out
17284   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17285
17286   lt_compiler_flag="-o out/conftest2.$ac_objext"
17287   # Insert the option either (1) after the last *FLAGS variable, or
17288   # (2) before a word containing "conftest.", or (3) at the end.
17289   # Note that $ac_compile itself does not contain backslashes and begins
17290   # with a dollar sign (not a hyphen), so the echo should work correctly.
17291   lt_compile=`echo "$ac_compile" | $SED \
17292   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17294   -e 's:$: $lt_compiler_flag:'`
17295   (eval echo "\"\$as_me:17295: $lt_compile\"" >&5)
17296   (eval "$lt_compile" 2>out/conftest.err)
17297   ac_status=$?
17298   cat out/conftest.err >&5
17299   echo "$as_me:17299: \$? = $ac_status" >&5
17300   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17301   then
17302     # The compiler can only warn and ignore the option if not recognized
17303     # So say no if there are warnings
17304     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17305     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17306     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17307       lt_cv_prog_compiler_c_o_GCJ=yes
17308     fi
17309   fi
17310   chmod u+w . 2>&5
17311   $rm conftest*
17312   # SGI C++ compiler will create directory out/ii_files/ for
17313   # template instantiation
17314   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17315   $rm out/* && rmdir out
17316   cd ..
17317   rmdir conftest
17318   $rm conftest*
17319
17320fi
17321{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17322$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17323
17324
17325hard_links="nottested"
17326if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17327  # do not overwrite the value of need_locks provided by the user
17328  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17329$as_echo_n "checking if we can lock with hard links... " >&6; }
17330  hard_links=yes
17331  $rm conftest*
17332  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17333  touch conftest.a
17334  ln conftest.a conftest.b 2>&5 || hard_links=no
17335  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17336  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17337$as_echo "$hard_links" >&6; }
17338  if test "$hard_links" = no; then
17339    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17340$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17341    need_locks=warn
17342  fi
17343else
17344  need_locks=no
17345fi
17346
17347{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17348$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17349
17350  runpath_var=
17351  allow_undefined_flag_GCJ=
17352  enable_shared_with_static_runtimes_GCJ=no
17353  archive_cmds_GCJ=
17354  archive_expsym_cmds_GCJ=
17355  old_archive_From_new_cmds_GCJ=
17356  old_archive_from_expsyms_cmds_GCJ=
17357  export_dynamic_flag_spec_GCJ=
17358  whole_archive_flag_spec_GCJ=
17359  thread_safe_flag_spec_GCJ=
17360  hardcode_libdir_flag_spec_GCJ=
17361  hardcode_libdir_flag_spec_ld_GCJ=
17362  hardcode_libdir_separator_GCJ=
17363  hardcode_direct_GCJ=no
17364  hardcode_minus_L_GCJ=no
17365  hardcode_shlibpath_var_GCJ=unsupported
17366  link_all_deplibs_GCJ=unknown
17367  hardcode_automatic_GCJ=no
17368  module_cmds_GCJ=
17369  module_expsym_cmds_GCJ=
17370  always_export_symbols_GCJ=no
17371  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17372  # include_expsyms should be a list of space-separated symbols to be *always*
17373  # included in the symbol list
17374  include_expsyms_GCJ=
17375  # exclude_expsyms can be an extended regexp of symbols to exclude
17376  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17377  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17378  # as well as any symbol that contains `d'.
17379  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17380  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17381  # platforms (ab)use it in PIC code, but their linkers get confused if
17382  # the symbol is explicitly referenced.  Since portable code cannot
17383  # rely on this symbol name, it's probably fine to never include it in
17384  # preloaded symbol tables.
17385  # Exclude shared library initialization/finalization symbols.
17386  extract_expsyms_cmds=
17387  # Just being paranoid about ensuring that cc_basename is set.
17388  for cc_temp in $compiler""; do
17389  case $cc_temp in
17390    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17391    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17392    \-*) ;;
17393    *) break;;
17394  esac
17395done
17396cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17397
17398  case $host_os in
17399  cygwin* | mingw* | pw32*)
17400    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17401    # When not using gcc, we currently assume that we are using
17402    # Microsoft Visual C++.
17403    if test "$GCC" != yes; then
17404      with_gnu_ld=no
17405    fi
17406    ;;
17407  interix*)
17408    # we just hope/assume this is gcc and not c89 (= MSVC++)
17409    with_gnu_ld=yes
17410    ;;
17411  openbsd*)
17412    with_gnu_ld=no
17413    ;;
17414  esac
17415
17416  ld_shlibs_GCJ=yes
17417  if test "$with_gnu_ld" = yes; then
17418    # If archive_cmds runs LD, not CC, wlarc should be empty
17419    wlarc='${wl}'
17420
17421    # Set some defaults for GNU ld with shared library support. These
17422    # are reset later if shared libraries are not supported. Putting them
17423    # here allows them to be overridden if necessary.
17424    runpath_var=LD_RUN_PATH
17425    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17426    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17427    # ancient GNU ld didn't support --whole-archive et. al.
17428    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17429	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17430      else
17431  	whole_archive_flag_spec_GCJ=
17432    fi
17433    supports_anon_versioning=no
17434    case `$LD -v 2>/dev/null` in
17435      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17436      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17437      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17438      *\ 2.11.*) ;; # other 2.11 versions
17439      *) supports_anon_versioning=yes ;;
17440    esac
17441
17442    # See if GNU ld supports shared libraries.
17443    case $host_os in
17444    aix[3-9]*)
17445      # On AIX/PPC, the GNU linker is very broken
17446      if test "$host_cpu" != ia64; then
17447	ld_shlibs_GCJ=no
17448	cat <<EOF 1>&2
17449
17450*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17451*** to be unable to reliably create shared libraries on AIX.
17452*** Therefore, libtool is disabling shared libraries support.  If you
17453*** really care for shared libraries, you may want to modify your PATH
17454*** so that a non-GNU linker is found, and then restart.
17455
17456EOF
17457      fi
17458      ;;
17459
17460    amigaos*)
17461      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)'
17462      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463      hardcode_minus_L_GCJ=yes
17464
17465      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17466      # that the semantics of dynamic libraries on AmigaOS, at least up
17467      # to version 4, is to share data among multiple programs linked
17468      # with the same dynamic library.  Since this doesn't match the
17469      # behavior of shared libraries on other platforms, we can't use
17470      # them.
17471      ld_shlibs_GCJ=no
17472      ;;
17473
17474    beos*)
17475      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17476	allow_undefined_flag_GCJ=unsupported
17477	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17478	# support --undefined.  This deserves some investigation.  FIXME
17479	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17480      else
17481	ld_shlibs_GCJ=no
17482      fi
17483      ;;
17484
17485    cygwin* | mingw* | pw32*)
17486      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17487      # as there is no search path for DLLs.
17488      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489      allow_undefined_flag_GCJ=unsupported
17490      always_export_symbols_GCJ=no
17491      enable_shared_with_static_runtimes_GCJ=yes
17492      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17493
17494      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17495        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17496	# If the export-symbols file already is a .def file (1st line
17497	# is EXPORTS), use it as is; otherwise, prepend...
17498	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17499	  cp $export_symbols $output_objdir/$soname.def;
17500	else
17501	  echo EXPORTS > $output_objdir/$soname.def;
17502	  cat $export_symbols >> $output_objdir/$soname.def;
17503	fi~
17504	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17505      else
17506	ld_shlibs_GCJ=no
17507      fi
17508      ;;
17509
17510    interix[3-9]*)
17511      hardcode_direct_GCJ=no
17512      hardcode_shlibpath_var_GCJ=no
17513      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17514      export_dynamic_flag_spec_GCJ='${wl}-E'
17515      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17516      # Instead, shared libraries are loaded at an image base (0x10000000 by
17517      # default) and relocated if they conflict, which is a slow very memory
17518      # consuming and fragmenting process.  To avoid this, we pick a random,
17519      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17520      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17521      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'
17522      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'
17523      ;;
17524
17525    gnu* | linux* | k*bsd*-gnu)
17526      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527	tmp_addflag=
17528	case $cc_basename,$host_cpu in
17529	pgcc*)				# Portland Group C compiler
17530	  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'
17531	  tmp_addflag=' $pic_flag'
17532	  ;;
17533	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17534	  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'
17535	  tmp_addflag=' $pic_flag -Mnomain' ;;
17536	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17537	  tmp_addflag=' -i_dynamic' ;;
17538	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17539	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17540	ifc* | ifort*)			# Intel Fortran compiler
17541	  tmp_addflag=' -nofor_main' ;;
17542	esac
17543	case `$CC -V 2>&1 | sed 5q` in
17544	*Sun\ C*)			# Sun C 5.9
17545	  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'
17546	  tmp_sharedflag='-G' ;;
17547	*Sun\ F*)			# Sun Fortran 8.3
17548	  tmp_sharedflag='-G' ;;
17549	*)
17550	  tmp_sharedflag='-shared' ;;
17551	esac
17552	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553
17554	if test $supports_anon_versioning = yes; then
17555	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17556  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17557  $echo "local: *; };" >> $output_objdir/$libname.ver~
17558	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17559	fi
17560      else
17561	ld_shlibs_GCJ=no
17562      fi
17563      ;;
17564
17565    netbsd*)
17566      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17567	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17568	wlarc=
17569      else
17570	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17571	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17572      fi
17573      ;;
17574
17575    solaris*)
17576      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17577	ld_shlibs_GCJ=no
17578	cat <<EOF 1>&2
17579
17580*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17581*** create shared libraries on Solaris systems.  Therefore, libtool
17582*** is disabling shared libraries support.  We urge you to upgrade GNU
17583*** binutils to release 2.9.1 or newer.  Another option is to modify
17584*** your PATH or compiler configuration so that the native linker is
17585*** used, and then restart.
17586
17587EOF
17588      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17589	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17590	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17591      else
17592	ld_shlibs_GCJ=no
17593      fi
17594      ;;
17595
17596    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17597      case `$LD -v 2>&1` in
17598        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17599	ld_shlibs_GCJ=no
17600	cat <<_LT_EOF 1>&2
17601
17602*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17603*** reliably create shared libraries on SCO systems.  Therefore, libtool
17604*** is disabling shared libraries support.  We urge you to upgrade GNU
17605*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17606*** your PATH or compiler configuration so that the native linker is
17607*** used, and then restart.
17608
17609_LT_EOF
17610	;;
17611	*)
17612	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17613	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17614	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17615	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17616	  else
17617	    ld_shlibs_GCJ=no
17618	  fi
17619	;;
17620      esac
17621      ;;
17622
17623    sunos4*)
17624      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17625      wlarc=
17626      hardcode_direct_GCJ=yes
17627      hardcode_shlibpath_var_GCJ=no
17628      ;;
17629
17630    *)
17631      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17632	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17633	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17634      else
17635	ld_shlibs_GCJ=no
17636      fi
17637      ;;
17638    esac
17639
17640    if test "$ld_shlibs_GCJ" = no; then
17641      runpath_var=
17642      hardcode_libdir_flag_spec_GCJ=
17643      export_dynamic_flag_spec_GCJ=
17644      whole_archive_flag_spec_GCJ=
17645    fi
17646  else
17647    # PORTME fill in a description of your system's linker (not GNU ld)
17648    case $host_os in
17649    aix3*)
17650      allow_undefined_flag_GCJ=unsupported
17651      always_export_symbols_GCJ=yes
17652      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'
17653      # Note: this linker hardcodes the directories in LIBPATH if there
17654      # are no directories specified by -L.
17655      hardcode_minus_L_GCJ=yes
17656      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17657	# Neither direct hardcoding nor static linking is supported with a
17658	# broken collect2.
17659	hardcode_direct_GCJ=unsupported
17660      fi
17661      ;;
17662
17663    aix[4-9]*)
17664      if test "$host_cpu" = ia64; then
17665	# On IA64, the linker does run time linking by default, so we don't
17666	# have to do anything special.
17667	aix_use_runtimelinking=no
17668	exp_sym_flag='-Bexport'
17669	no_entry_flag=""
17670      else
17671	# If we're using GNU nm, then we don't want the "-C" option.
17672	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17673	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17674	  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'
17675	else
17676	  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'
17677	fi
17678	aix_use_runtimelinking=no
17679
17680	# Test if we are trying to use run time linking or normal
17681	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17682	# need to do runtime linking.
17683	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17684	  for ld_flag in $LDFLAGS; do
17685  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17686  	    aix_use_runtimelinking=yes
17687  	    break
17688  	  fi
17689	  done
17690	  ;;
17691	esac
17692
17693	exp_sym_flag='-bexport'
17694	no_entry_flag='-bnoentry'
17695      fi
17696
17697      # When large executables or shared objects are built, AIX ld can
17698      # have problems creating the table of contents.  If linking a library
17699      # or program results in "error TOC overflow" add -mminimal-toc to
17700      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17701      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17702
17703      archive_cmds_GCJ=''
17704      hardcode_direct_GCJ=yes
17705      hardcode_libdir_separator_GCJ=':'
17706      link_all_deplibs_GCJ=yes
17707
17708      if test "$GCC" = yes; then
17709	case $host_os in aix4.[012]|aix4.[012].*)
17710	# We only want to do this on AIX 4.2 and lower, the check
17711	# below for broken collect2 doesn't work under 4.3+
17712	  collect2name=`${CC} -print-prog-name=collect2`
17713	  if test -f "$collect2name" && \
17714  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17715	  then
17716  	  # We have reworked collect2
17717  	  :
17718	  else
17719  	  # We have old collect2
17720  	  hardcode_direct_GCJ=unsupported
17721  	  # It fails to find uninstalled libraries when the uninstalled
17722  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17723  	  # to unsupported forces relinking
17724  	  hardcode_minus_L_GCJ=yes
17725  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726  	  hardcode_libdir_separator_GCJ=
17727	  fi
17728	  ;;
17729	esac
17730	shared_flag='-shared'
17731	if test "$aix_use_runtimelinking" = yes; then
17732	  shared_flag="$shared_flag "'${wl}-G'
17733	fi
17734      else
17735	# not using gcc
17736	if test "$host_cpu" = ia64; then
17737  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17738  	# chokes on -Wl,-G. The following line is correct:
17739	  shared_flag='-G'
17740	else
17741	  if test "$aix_use_runtimelinking" = yes; then
17742	    shared_flag='${wl}-G'
17743	  else
17744	    shared_flag='${wl}-bM:SRE'
17745	  fi
17746	fi
17747      fi
17748
17749      # It seems that -bexpall does not export symbols beginning with
17750      # underscore (_), so it is better to generate a list of symbols to export.
17751      always_export_symbols_GCJ=yes
17752      if test "$aix_use_runtimelinking" = yes; then
17753	# Warning - without using the other runtime loading flags (-brtl),
17754	# -berok will link without error, but may produce a broken library.
17755	allow_undefined_flag_GCJ='-berok'
17756       # Determine the default libpath from the value encoded in an empty executable.
17757       cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h.  */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h.  */
17763
17764int
17765main ()
17766{
17767
17768  ;
17769  return 0;
17770}
17771_ACEOF
17772rm -f conftest.$ac_objext conftest$ac_exeext
17773if { (ac_try="$ac_link"
17774case "(($ac_try" in
17775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776  *) ac_try_echo=$ac_try;;
17777esac
17778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17779$as_echo "$ac_try_echo") >&5
17780  (eval "$ac_link") 2>conftest.er1
17781  ac_status=$?
17782  grep -v '^ *+' conftest.er1 >conftest.err
17783  rm -f conftest.er1
17784  cat conftest.err >&5
17785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786  (exit $ac_status); } && {
17787	 test -z "$ac_c_werror_flag" ||
17788	 test ! -s conftest.err
17789       } && test -s conftest$ac_exeext && {
17790	 test "$cross_compiling" = yes ||
17791	 $as_test_x conftest$ac_exeext
17792       }; then
17793
17794lt_aix_libpath_sed='
17795    /Import File Strings/,/^$/ {
17796	/^0/ {
17797	    s/^0  *\(.*\)$/\1/
17798	    p
17799	}
17800    }'
17801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17802# Check for a 64-bit object if we didn't find anything.
17803if test -z "$aix_libpath"; then
17804  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17805fi
17806else
17807  $as_echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811fi
17812
17813rm -rf conftest.dSYM
17814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815      conftest$ac_exeext conftest.$ac_ext
17816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17817
17818       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17819	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"
17820       else
17821	if test "$host_cpu" = ia64; then
17822	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17823	  allow_undefined_flag_GCJ="-z nodefs"
17824	  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"
17825	else
17826	 # Determine the default libpath from the value encoded in an empty executable.
17827	 cat >conftest.$ac_ext <<_ACEOF
17828/* confdefs.h.  */
17829_ACEOF
17830cat confdefs.h >>conftest.$ac_ext
17831cat >>conftest.$ac_ext <<_ACEOF
17832/* end confdefs.h.  */
17833
17834int
17835main ()
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext conftest$ac_exeext
17843if { (ac_try="$ac_link"
17844case "(($ac_try" in
17845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846  *) ac_try_echo=$ac_try;;
17847esac
17848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17849$as_echo "$ac_try_echo") >&5
17850  (eval "$ac_link") 2>conftest.er1
17851  ac_status=$?
17852  grep -v '^ *+' conftest.er1 >conftest.err
17853  rm -f conftest.er1
17854  cat conftest.err >&5
17855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856  (exit $ac_status); } && {
17857	 test -z "$ac_c_werror_flag" ||
17858	 test ! -s conftest.err
17859       } && test -s conftest$ac_exeext && {
17860	 test "$cross_compiling" = yes ||
17861	 $as_test_x conftest$ac_exeext
17862       }; then
17863
17864lt_aix_libpath_sed='
17865    /Import File Strings/,/^$/ {
17866	/^0/ {
17867	    s/^0  *\(.*\)$/\1/
17868	    p
17869	}
17870    }'
17871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17872# Check for a 64-bit object if we didn't find anything.
17873if test -z "$aix_libpath"; then
17874  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875fi
17876else
17877  $as_echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880
17881fi
17882
17883rm -rf conftest.dSYM
17884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885      conftest$ac_exeext conftest.$ac_ext
17886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17887
17888	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17889	  # Warning - without using the other run time loading flags,
17890	  # -berok will link without error, but may produce a broken library.
17891	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17892	  allow_undefined_flag_GCJ=' ${wl}-berok'
17893	  # Exported symbols can be pulled into shared objects from archives
17894	  whole_archive_flag_spec_GCJ='$convenience'
17895	  archive_cmds_need_lc_GCJ=yes
17896	  # This is similar to how AIX traditionally builds its shared libraries.
17897	  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'
17898	fi
17899      fi
17900      ;;
17901
17902    amigaos*)
17903      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)'
17904      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17905      hardcode_minus_L_GCJ=yes
17906      # see comment about different semantics on the GNU ld section
17907      ld_shlibs_GCJ=no
17908      ;;
17909
17910    bsdi[45]*)
17911      export_dynamic_flag_spec_GCJ=-rdynamic
17912      ;;
17913
17914    cygwin* | mingw* | pw32*)
17915      # When not using gcc, we currently assume that we are using
17916      # Microsoft Visual C++.
17917      # hardcode_libdir_flag_spec is actually meaningless, as there is
17918      # no search path for DLLs.
17919      hardcode_libdir_flag_spec_GCJ=' '
17920      allow_undefined_flag_GCJ=unsupported
17921      # Tell ltmain to make .lib files, not .a files.
17922      libext=lib
17923      # Tell ltmain to make .dll files, not .so files.
17924      shrext_cmds=".dll"
17925      # FIXME: Setting linknames here is a bad hack.
17926      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17927      # The linker will automatically build a .lib file if we build a DLL.
17928      old_archive_From_new_cmds_GCJ='true'
17929      # FIXME: Should let the user specify the lib program.
17930      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17931      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17932      enable_shared_with_static_runtimes_GCJ=yes
17933      ;;
17934
17935    darwin* | rhapsody*)
17936      case $host_os in
17937        rhapsody* | darwin1.[012])
17938         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17939         ;;
17940       *) # Darwin 1.3 on
17941         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17942           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17943         else
17944           case ${MACOSX_DEPLOYMENT_TARGET} in
17945             10.[012])
17946               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17947               ;;
17948             10.*)
17949               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17950               ;;
17951           esac
17952         fi
17953         ;;
17954      esac
17955      archive_cmds_need_lc_GCJ=no
17956      hardcode_direct_GCJ=no
17957      hardcode_automatic_GCJ=yes
17958      hardcode_shlibpath_var_GCJ=unsupported
17959      whole_archive_flag_spec_GCJ=''
17960      link_all_deplibs_GCJ=yes
17961    if test "$GCC" = yes ; then
17962    	output_verbose_link_cmd='echo'
17963        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}"
17964        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17965        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}"
17966        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}"
17967    else
17968      case $cc_basename in
17969        xlc*)
17970         output_verbose_link_cmd='echo'
17971         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17972         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17973          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17974         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}'
17975          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}'
17976          ;;
17977       *)
17978         ld_shlibs_GCJ=no
17979          ;;
17980      esac
17981    fi
17982      ;;
17983
17984    dgux*)
17985      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17987      hardcode_shlibpath_var_GCJ=no
17988      ;;
17989
17990    freebsd1*)
17991      ld_shlibs_GCJ=no
17992      ;;
17993
17994    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17995    # support.  Future versions do this automatically, but an explicit c++rt0.o
17996    # does not break anything, and helps significantly (at the cost of a little
17997    # extra space).
17998    freebsd2.2*)
17999      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18000      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18001      hardcode_direct_GCJ=yes
18002      hardcode_shlibpath_var_GCJ=no
18003      ;;
18004
18005    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18006    freebsd2*)
18007      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18008      hardcode_direct_GCJ=yes
18009      hardcode_minus_L_GCJ=yes
18010      hardcode_shlibpath_var_GCJ=no
18011      ;;
18012
18013    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18014    freebsd* | dragonfly*)
18015      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18016      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18017      hardcode_direct_GCJ=yes
18018      hardcode_shlibpath_var_GCJ=no
18019      ;;
18020
18021    hpux9*)
18022      if test "$GCC" = yes; then
18023	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'
18024      else
18025	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'
18026      fi
18027      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18028      hardcode_libdir_separator_GCJ=:
18029      hardcode_direct_GCJ=yes
18030
18031      # hardcode_minus_L: Not really in the search PATH,
18032      # but as the default location of the library.
18033      hardcode_minus_L_GCJ=yes
18034      export_dynamic_flag_spec_GCJ='${wl}-E'
18035      ;;
18036
18037    hpux10*)
18038      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18039	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18040      else
18041	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18042      fi
18043      if test "$with_gnu_ld" = no; then
18044	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18045	hardcode_libdir_separator_GCJ=:
18046
18047	hardcode_direct_GCJ=yes
18048	export_dynamic_flag_spec_GCJ='${wl}-E'
18049
18050	# hardcode_minus_L: Not really in the search PATH,
18051	# but as the default location of the library.
18052	hardcode_minus_L_GCJ=yes
18053      fi
18054      ;;
18055
18056    hpux11*)
18057      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18058	case $host_cpu in
18059	hppa*64*)
18060	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061	  ;;
18062	ia64*)
18063	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18064	  ;;
18065	*)
18066	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18067	  ;;
18068	esac
18069      else
18070	case $host_cpu in
18071	hppa*64*)
18072	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18073	  ;;
18074	ia64*)
18075	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	*)
18078	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18079	  ;;
18080	esac
18081      fi
18082      if test "$with_gnu_ld" = no; then
18083	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18084	hardcode_libdir_separator_GCJ=:
18085
18086	case $host_cpu in
18087	hppa*64*|ia64*)
18088	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18089	  hardcode_direct_GCJ=no
18090	  hardcode_shlibpath_var_GCJ=no
18091	  ;;
18092	*)
18093	  hardcode_direct_GCJ=yes
18094	  export_dynamic_flag_spec_GCJ='${wl}-E'
18095
18096	  # hardcode_minus_L: Not really in the search PATH,
18097	  # but as the default location of the library.
18098	  hardcode_minus_L_GCJ=yes
18099	  ;;
18100	esac
18101      fi
18102      ;;
18103
18104    irix5* | irix6* | nonstopux*)
18105      if test "$GCC" = yes; then
18106	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'
18107      else
18108	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'
18109	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18110      fi
18111      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112      hardcode_libdir_separator_GCJ=:
18113      link_all_deplibs_GCJ=yes
18114      ;;
18115
18116    netbsd*)
18117      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18118	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18119      else
18120	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18121      fi
18122      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18123      hardcode_direct_GCJ=yes
18124      hardcode_shlibpath_var_GCJ=no
18125      ;;
18126
18127    newsos6)
18128      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18129      hardcode_direct_GCJ=yes
18130      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18131      hardcode_libdir_separator_GCJ=:
18132      hardcode_shlibpath_var_GCJ=no
18133      ;;
18134
18135    openbsd*)
18136      if test -f /usr/libexec/ld.so; then
18137	hardcode_direct_GCJ=yes
18138	hardcode_shlibpath_var_GCJ=no
18139	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18140	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18141	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18142	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18143	  export_dynamic_flag_spec_GCJ='${wl}-E'
18144	else
18145	  case $host_os in
18146	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18147	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18148	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18149	     ;;
18150	   *)
18151	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18152	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18153	     ;;
18154	  esac
18155        fi
18156      else
18157	ld_shlibs_GCJ=no
18158      fi
18159      ;;
18160
18161    os2*)
18162      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18163      hardcode_minus_L_GCJ=yes
18164      allow_undefined_flag_GCJ=unsupported
18165      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'
18166      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18167      ;;
18168
18169    osf3*)
18170      if test "$GCC" = yes; then
18171	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18172	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'
18173      else
18174	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18175	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'
18176      fi
18177      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18178      hardcode_libdir_separator_GCJ=:
18179      ;;
18180
18181    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18182      if test "$GCC" = yes; then
18183	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18184	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'
18185	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186      else
18187	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18188	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'
18189	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~
18190	$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'
18191
18192	# Both c and cxx compiler support -rpath directly
18193	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18194      fi
18195      hardcode_libdir_separator_GCJ=:
18196      ;;
18197
18198    solaris*)
18199      no_undefined_flag_GCJ=' -z text'
18200      if test "$GCC" = yes; then
18201	wlarc='${wl}'
18202	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18204	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18205      else
18206	wlarc=''
18207	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18208	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18209  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18210      fi
18211      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18212      hardcode_shlibpath_var_GCJ=no
18213      case $host_os in
18214      solaris2.[0-5] | solaris2.[0-5].*) ;;
18215      *)
18216	# The compiler driver will combine and reorder linker options,
18217	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18218	# but is careful enough not to reorder.
18219 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18220	if test "$GCC" = yes; then
18221	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18222	else
18223	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18224	fi
18225	;;
18226      esac
18227      link_all_deplibs_GCJ=yes
18228      ;;
18229
18230    sunos4*)
18231      if test "x$host_vendor" = xsequent; then
18232	# Use $CC to link under sequent, because it throws in some extra .o
18233	# files that make .init and .fini sections work.
18234	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18235      else
18236	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18237      fi
18238      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18239      hardcode_direct_GCJ=yes
18240      hardcode_minus_L_GCJ=yes
18241      hardcode_shlibpath_var_GCJ=no
18242      ;;
18243
18244    sysv4)
18245      case $host_vendor in
18246	sni)
18247	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248	  hardcode_direct_GCJ=yes # is this really true???
18249	;;
18250	siemens)
18251	  ## LD is ld it makes a PLAMLIB
18252	  ## CC just makes a GrossModule.
18253	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18254	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18255	  hardcode_direct_GCJ=no
18256        ;;
18257	motorola)
18258	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18260	;;
18261      esac
18262      runpath_var='LD_RUN_PATH'
18263      hardcode_shlibpath_var_GCJ=no
18264      ;;
18265
18266    sysv4.3*)
18267      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268      hardcode_shlibpath_var_GCJ=no
18269      export_dynamic_flag_spec_GCJ='-Bexport'
18270      ;;
18271
18272    sysv4*MP*)
18273      if test -d /usr/nec; then
18274	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275	hardcode_shlibpath_var_GCJ=no
18276	runpath_var=LD_RUN_PATH
18277	hardcode_runpath_var=yes
18278	ld_shlibs_GCJ=yes
18279      fi
18280      ;;
18281
18282    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18283      no_undefined_flag_GCJ='${wl}-z,text'
18284      archive_cmds_need_lc_GCJ=no
18285      hardcode_shlibpath_var_GCJ=no
18286      runpath_var='LD_RUN_PATH'
18287
18288      if test "$GCC" = yes; then
18289	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18290	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291      else
18292	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18293	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294      fi
18295      ;;
18296
18297    sysv5* | sco3.2v5* | sco5v6*)
18298      # Note: We can NOT use -z defs as we might desire, because we do not
18299      # link with -lc, and that would cause any symbols used from libc to
18300      # always be unresolved, which means just about no library would
18301      # ever link correctly.  If we're not using GNU ld we use -z text
18302      # though, which does catch some bad symbols but isn't as heavy-handed
18303      # as -z defs.
18304      no_undefined_flag_GCJ='${wl}-z,text'
18305      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18306      archive_cmds_need_lc_GCJ=no
18307      hardcode_shlibpath_var_GCJ=no
18308      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18309      hardcode_libdir_separator_GCJ=':'
18310      link_all_deplibs_GCJ=yes
18311      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18312      runpath_var='LD_RUN_PATH'
18313
18314      if test "$GCC" = yes; then
18315	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18317      else
18318	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18319	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18320      fi
18321      ;;
18322
18323    uts4*)
18324      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18326      hardcode_shlibpath_var_GCJ=no
18327      ;;
18328
18329    *)
18330      ld_shlibs_GCJ=no
18331      ;;
18332    esac
18333  fi
18334
18335{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18336$as_echo "$ld_shlibs_GCJ" >&6; }
18337test "$ld_shlibs_GCJ" = no && can_build_shared=no
18338
18339#
18340# Do we need to explicitly link libc?
18341#
18342case "x$archive_cmds_need_lc_GCJ" in
18343x|xyes)
18344  # Assume -lc should be added
18345  archive_cmds_need_lc_GCJ=yes
18346
18347  if test "$enable_shared" = yes && test "$GCC" = yes; then
18348    case $archive_cmds_GCJ in
18349    *'~'*)
18350      # FIXME: we may have to deal with multi-command sequences.
18351      ;;
18352    '$CC '*)
18353      # Test whether the compiler implicitly links with -lc since on some
18354      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18355      # to ld, don't add -lc before -lgcc.
18356      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18358      $rm conftest*
18359      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18360
18361      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362  (eval $ac_compile) 2>&5
18363  ac_status=$?
18364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); } 2>conftest.err; then
18366        soname=conftest
18367        lib=conftest
18368        libobjs=conftest.$ac_objext
18369        deplibs=
18370        wl=$lt_prog_compiler_wl_GCJ
18371	pic_flag=$lt_prog_compiler_pic_GCJ
18372        compiler_flags=-v
18373        linker_flags=-v
18374        verstring=
18375        output_objdir=.
18376        libname=conftest
18377        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18378        allow_undefined_flag_GCJ=
18379        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18380  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18381  ac_status=$?
18382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }
18384        then
18385	  archive_cmds_need_lc_GCJ=no
18386        else
18387	  archive_cmds_need_lc_GCJ=yes
18388        fi
18389        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18390      else
18391        cat conftest.err 1>&5
18392      fi
18393      $rm conftest*
18394      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18395$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18396      ;;
18397    esac
18398  fi
18399  ;;
18400esac
18401
18402{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18403$as_echo_n "checking dynamic linker characteristics... " >&6; }
18404library_names_spec=
18405libname_spec='lib$name'
18406soname_spec=
18407shrext_cmds=".so"
18408postinstall_cmds=
18409postuninstall_cmds=
18410finish_cmds=
18411finish_eval=
18412shlibpath_var=
18413shlibpath_overrides_runpath=unknown
18414version_type=none
18415dynamic_linker="$host_os ld.so"
18416sys_lib_dlsearch_path_spec="/lib /usr/lib"
18417
18418need_lib_prefix=unknown
18419hardcode_into_libs=no
18420
18421# when you set need_version to no, make sure it does not cause -set_version
18422# flags to be left without arguments
18423need_version=unknown
18424
18425case $host_os in
18426aix3*)
18427  version_type=linux
18428  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18429  shlibpath_var=LIBPATH
18430
18431  # AIX 3 has no versioning support, so we append a major version to the name.
18432  soname_spec='${libname}${release}${shared_ext}$major'
18433  ;;
18434
18435aix[4-9]*)
18436  version_type=linux
18437  need_lib_prefix=no
18438  need_version=no
18439  hardcode_into_libs=yes
18440  if test "$host_cpu" = ia64; then
18441    # AIX 5 supports IA64
18442    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18443    shlibpath_var=LD_LIBRARY_PATH
18444  else
18445    # With GCC up to 2.95.x, collect2 would create an import file
18446    # for dependence libraries.  The import file would start with
18447    # the line `#! .'.  This would cause the generated library to
18448    # depend on `.', always an invalid library.  This was fixed in
18449    # development snapshots of GCC prior to 3.0.
18450    case $host_os in
18451      aix4 | aix4.[01] | aix4.[01].*)
18452      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18453	   echo ' yes '
18454	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18455	:
18456      else
18457	can_build_shared=no
18458      fi
18459      ;;
18460    esac
18461    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18462    # soname into executable. Probably we can add versioning support to
18463    # collect2, so additional links can be useful in future.
18464    if test "$aix_use_runtimelinking" = yes; then
18465      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18466      # instead of lib<name>.a to let people know that these are not
18467      # typical AIX shared libraries.
18468      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469    else
18470      # We preserve .a as extension for shared libraries through AIX4.2
18471      # and later when we are not doing run time linking.
18472      library_names_spec='${libname}${release}.a $libname.a'
18473      soname_spec='${libname}${release}${shared_ext}$major'
18474    fi
18475    shlibpath_var=LIBPATH
18476  fi
18477  ;;
18478
18479amigaos*)
18480  library_names_spec='$libname.ixlibrary $libname.a'
18481  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18482  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'
18483  ;;
18484
18485beos*)
18486  library_names_spec='${libname}${shared_ext}'
18487  dynamic_linker="$host_os ld.so"
18488  shlibpath_var=LIBRARY_PATH
18489  ;;
18490
18491bsdi[45]*)
18492  version_type=linux
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18497  shlibpath_var=LD_LIBRARY_PATH
18498  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18499  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18500  # the default ld.so.conf also contains /usr/contrib/lib and
18501  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18502  # libtool to hard-code these into programs
18503  ;;
18504
18505cygwin* | mingw* | pw32*)
18506  version_type=windows
18507  shrext_cmds=".dll"
18508  need_version=no
18509  need_lib_prefix=no
18510
18511  case $GCC,$host_os in
18512  yes,cygwin* | yes,mingw* | yes,pw32*)
18513    library_names_spec='$libname.dll.a'
18514    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18515    postinstall_cmds='base_file=`basename \${file}`~
18516      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18517      dldir=$destdir/`dirname \$dlpath`~
18518      test -d \$dldir || mkdir -p \$dldir~
18519      $install_prog $dir/$dlname \$dldir/$dlname~
18520      chmod a+x \$dldir/$dlname'
18521    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18522      dlpath=$dir/\$dldll~
18523       $rm \$dlpath'
18524    shlibpath_overrides_runpath=yes
18525
18526    case $host_os in
18527    cygwin*)
18528      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18529      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18530      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18531      ;;
18532    mingw*)
18533      # MinGW DLLs use traditional 'lib' prefix
18534      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18535      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18536      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18537        # It is most probably a Windows format PATH printed by
18538        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18539        # path with ; separators, and with drive letters. We can handle the
18540        # drive letters (cygwin fileutils understands them), so leave them,
18541        # especially as we might pass files found there to a mingw objdump,
18542        # which wouldn't understand a cygwinified path. Ahh.
18543        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18544      else
18545        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18546      fi
18547      ;;
18548    pw32*)
18549      # pw32 DLLs use 'pw' prefix rather than 'lib'
18550      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18551      ;;
18552    esac
18553    ;;
18554
18555  *)
18556    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18557    ;;
18558  esac
18559  dynamic_linker='Win32 ld.exe'
18560  # FIXME: first we should search . and the directory the executable is in
18561  shlibpath_var=PATH
18562  ;;
18563
18564darwin* | rhapsody*)
18565  dynamic_linker="$host_os dyld"
18566  version_type=darwin
18567  need_lib_prefix=no
18568  need_version=no
18569  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18570  soname_spec='${libname}${release}${major}$shared_ext'
18571  shlibpath_overrides_runpath=yes
18572  shlibpath_var=DYLD_LIBRARY_PATH
18573  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18574
18575  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18576  ;;
18577
18578dgux*)
18579  version_type=linux
18580  need_lib_prefix=no
18581  need_version=no
18582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18583  soname_spec='${libname}${release}${shared_ext}$major'
18584  shlibpath_var=LD_LIBRARY_PATH
18585  ;;
18586
18587freebsd1*)
18588  dynamic_linker=no
18589  ;;
18590
18591freebsd* | dragonfly*)
18592  # DragonFly does not have aout.  When/if they implement a new
18593  # versioning mechanism, adjust this.
18594  if test -x /usr/bin/objformat; then
18595    objformat=`/usr/bin/objformat`
18596  else
18597    case $host_os in
18598    freebsd[123]*) objformat=aout ;;
18599    *) objformat=elf ;;
18600    esac
18601  fi
18602  version_type=freebsd-$objformat
18603  case $version_type in
18604    freebsd-elf*)
18605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18606      need_version=no
18607      need_lib_prefix=no
18608      ;;
18609    freebsd-*)
18610      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18611      need_version=yes
18612      ;;
18613  esac
18614  shlibpath_var=LD_LIBRARY_PATH
18615  case $host_os in
18616  freebsd2*)
18617    shlibpath_overrides_runpath=yes
18618    ;;
18619  freebsd3.[01]* | freebsdelf3.[01]*)
18620    shlibpath_overrides_runpath=yes
18621    hardcode_into_libs=yes
18622    ;;
18623  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18624  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18625    shlibpath_overrides_runpath=no
18626    hardcode_into_libs=yes
18627    ;;
18628  *) # from 4.6 on, and DragonFly
18629    shlibpath_overrides_runpath=yes
18630    hardcode_into_libs=yes
18631    ;;
18632  esac
18633  ;;
18634
18635gnu*)
18636  version_type=linux
18637  need_lib_prefix=no
18638  need_version=no
18639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18640  soname_spec='${libname}${release}${shared_ext}$major'
18641  shlibpath_var=LD_LIBRARY_PATH
18642  hardcode_into_libs=yes
18643  ;;
18644
18645hpux9* | hpux10* | hpux11*)
18646  # Give a soname corresponding to the major version so that dld.sl refuses to
18647  # link against other versions.
18648  version_type=sunos
18649  need_lib_prefix=no
18650  need_version=no
18651  case $host_cpu in
18652  ia64*)
18653    shrext_cmds='.so'
18654    hardcode_into_libs=yes
18655    dynamic_linker="$host_os dld.so"
18656    shlibpath_var=LD_LIBRARY_PATH
18657    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18659    soname_spec='${libname}${release}${shared_ext}$major'
18660    if test "X$HPUX_IA64_MODE" = X32; then
18661      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18662    else
18663      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18664    fi
18665    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18666    ;;
18667   hppa*64*)
18668     shrext_cmds='.sl'
18669     hardcode_into_libs=yes
18670     dynamic_linker="$host_os dld.sl"
18671     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674     soname_spec='${libname}${release}${shared_ext}$major'
18675     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18676     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18677     ;;
18678   *)
18679    shrext_cmds='.sl'
18680    dynamic_linker="$host_os dld.sl"
18681    shlibpath_var=SHLIB_PATH
18682    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18683    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684    soname_spec='${libname}${release}${shared_ext}$major'
18685    ;;
18686  esac
18687  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18688  postinstall_cmds='chmod 555 $lib'
18689  ;;
18690
18691interix[3-9]*)
18692  version_type=linux
18693  need_lib_prefix=no
18694  need_version=no
18695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18696  soname_spec='${libname}${release}${shared_ext}$major'
18697  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  shlibpath_overrides_runpath=no
18700  hardcode_into_libs=yes
18701  ;;
18702
18703irix5* | irix6* | nonstopux*)
18704  case $host_os in
18705    nonstopux*) version_type=nonstopux ;;
18706    *)
18707	if test "$lt_cv_prog_gnu_ld" = yes; then
18708		version_type=linux
18709	else
18710		version_type=irix
18711	fi ;;
18712  esac
18713  need_lib_prefix=no
18714  need_version=no
18715  soname_spec='${libname}${release}${shared_ext}$major'
18716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18717  case $host_os in
18718  irix5* | nonstopux*)
18719    libsuff= shlibsuff=
18720    ;;
18721  *)
18722    case $LD in # libtool.m4 will add one of these switches to LD
18723    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18724      libsuff= shlibsuff= libmagic=32-bit;;
18725    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18726      libsuff=32 shlibsuff=N32 libmagic=N32;;
18727    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18728      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18729    *) libsuff= shlibsuff= libmagic=never-match;;
18730    esac
18731    ;;
18732  esac
18733  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18734  shlibpath_overrides_runpath=no
18735  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18736  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18737  hardcode_into_libs=yes
18738  ;;
18739
18740# No shared lib support for Linux oldld, aout, or coff.
18741linux*oldld* | linux*aout* | linux*coff*)
18742  dynamic_linker=no
18743  ;;
18744
18745# This must be Linux ELF.
18746linux* | k*bsd*-gnu)
18747  version_type=linux
18748  need_lib_prefix=no
18749  need_version=no
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18753  shlibpath_var=LD_LIBRARY_PATH
18754  shlibpath_overrides_runpath=no
18755  # This implies no fast_install, which is unacceptable.
18756  # Some rework will be needed to allow for fast_install
18757  # before this can be enabled.
18758  hardcode_into_libs=yes
18759  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18760  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18761
18762  # Append ld.so.conf contents to the search path
18763  if test -f /etc/ld.so.conf; then
18764    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' ' '`
18765    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18766  fi
18767
18768  # We used to test for /lib/ld.so.1 and disable shared libraries on
18769  # powerpc, because MkLinux only supported shared libraries with the
18770  # GNU dynamic linker.  Since this was broken with cross compilers,
18771  # most powerpc-linux boxes support dynamic linking these days and
18772  # people can always --disable-shared, the test was removed, and we
18773  # assume the GNU/Linux dynamic linker is in use.
18774  dynamic_linker='GNU/Linux ld.so'
18775  ;;
18776
18777netbsd*)
18778  version_type=sunos
18779  need_lib_prefix=no
18780  need_version=no
18781  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18783    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18784    dynamic_linker='NetBSD (a.out) ld.so'
18785  else
18786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18787    soname_spec='${libname}${release}${shared_ext}$major'
18788    dynamic_linker='NetBSD ld.elf_so'
18789  fi
18790  shlibpath_var=LD_LIBRARY_PATH
18791  shlibpath_overrides_runpath=yes
18792  hardcode_into_libs=yes
18793  ;;
18794
18795newsos6)
18796  version_type=linux
18797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798  shlibpath_var=LD_LIBRARY_PATH
18799  shlibpath_overrides_runpath=yes
18800  ;;
18801
18802nto-qnx*)
18803  version_type=linux
18804  need_lib_prefix=no
18805  need_version=no
18806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807  soname_spec='${libname}${release}${shared_ext}$major'
18808  shlibpath_var=LD_LIBRARY_PATH
18809  shlibpath_overrides_runpath=yes
18810  ;;
18811
18812openbsd*)
18813  version_type=sunos
18814  sys_lib_dlsearch_path_spec="/usr/lib"
18815  need_lib_prefix=no
18816  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18817  case $host_os in
18818    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18819    *)                         need_version=no  ;;
18820  esac
18821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18823  shlibpath_var=LD_LIBRARY_PATH
18824  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18825    case $host_os in
18826      openbsd2.[89] | openbsd2.[89].*)
18827	shlibpath_overrides_runpath=no
18828	;;
18829      *)
18830	shlibpath_overrides_runpath=yes
18831	;;
18832      esac
18833  else
18834    shlibpath_overrides_runpath=yes
18835  fi
18836  ;;
18837
18838os2*)
18839  libname_spec='$name'
18840  shrext_cmds=".dll"
18841  need_lib_prefix=no
18842  library_names_spec='$libname${shared_ext} $libname.a'
18843  dynamic_linker='OS/2 ld.exe'
18844  shlibpath_var=LIBPATH
18845  ;;
18846
18847osf3* | osf4* | osf5*)
18848  version_type=osf
18849  need_lib_prefix=no
18850  need_version=no
18851  soname_spec='${libname}${release}${shared_ext}$major'
18852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853  shlibpath_var=LD_LIBRARY_PATH
18854  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18855  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18856  ;;
18857
18858rdos*)
18859  dynamic_linker=no
18860  ;;
18861
18862solaris*)
18863  version_type=linux
18864  need_lib_prefix=no
18865  need_version=no
18866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867  soname_spec='${libname}${release}${shared_ext}$major'
18868  shlibpath_var=LD_LIBRARY_PATH
18869  shlibpath_overrides_runpath=yes
18870  hardcode_into_libs=yes
18871  # ldd complains unless libraries are executable
18872  postinstall_cmds='chmod +x $lib'
18873  ;;
18874
18875sunos4*)
18876  version_type=sunos
18877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18878  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18879  shlibpath_var=LD_LIBRARY_PATH
18880  shlibpath_overrides_runpath=yes
18881  if test "$with_gnu_ld" = yes; then
18882    need_lib_prefix=no
18883  fi
18884  need_version=yes
18885  ;;
18886
18887sysv4 | sysv4.3*)
18888  version_type=linux
18889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890  soname_spec='${libname}${release}${shared_ext}$major'
18891  shlibpath_var=LD_LIBRARY_PATH
18892  case $host_vendor in
18893    sni)
18894      shlibpath_overrides_runpath=no
18895      need_lib_prefix=no
18896      export_dynamic_flag_spec='${wl}-Blargedynsym'
18897      runpath_var=LD_RUN_PATH
18898      ;;
18899    siemens)
18900      need_lib_prefix=no
18901      ;;
18902    motorola)
18903      need_lib_prefix=no
18904      need_version=no
18905      shlibpath_overrides_runpath=no
18906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18907      ;;
18908  esac
18909  ;;
18910
18911sysv4*MP*)
18912  if test -d /usr/nec ;then
18913    version_type=linux
18914    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915    soname_spec='$libname${shared_ext}.$major'
18916    shlibpath_var=LD_LIBRARY_PATH
18917  fi
18918  ;;
18919
18920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18921  version_type=freebsd-elf
18922  need_lib_prefix=no
18923  need_version=no
18924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925  soname_spec='${libname}${release}${shared_ext}$major'
18926  shlibpath_var=LD_LIBRARY_PATH
18927  hardcode_into_libs=yes
18928  if test "$with_gnu_ld" = yes; then
18929    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18930    shlibpath_overrides_runpath=no
18931  else
18932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18933    shlibpath_overrides_runpath=yes
18934    case $host_os in
18935      sco3.2v5*)
18936        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18937	;;
18938    esac
18939  fi
18940  sys_lib_dlsearch_path_spec='/usr/lib'
18941  ;;
18942
18943uts4*)
18944  version_type=linux
18945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946  soname_spec='${libname}${release}${shared_ext}$major'
18947  shlibpath_var=LD_LIBRARY_PATH
18948  ;;
18949
18950*)
18951  dynamic_linker=no
18952  ;;
18953esac
18954{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18955$as_echo "$dynamic_linker" >&6; }
18956test "$dynamic_linker" = no && can_build_shared=no
18957
18958if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18959  $as_echo_n "(cached) " >&6
18960else
18961  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18962fi
18963
18964sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18965if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18966  $as_echo_n "(cached) " >&6
18967else
18968  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18969fi
18970
18971sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18972
18973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18974if test "$GCC" = yes; then
18975  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18976fi
18977
18978{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18979$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18980hardcode_action_GCJ=
18981if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18982   test -n "$runpath_var_GCJ" || \
18983   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18984
18985  # We can hardcode non-existant directories.
18986  if test "$hardcode_direct_GCJ" != no &&
18987     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18988     # have to relink, otherwise we might link with an installed library
18989     # when we should be linking with a yet-to-be-installed one
18990     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18991     test "$hardcode_minus_L_GCJ" != no; then
18992    # Linking always hardcodes the temporary library directory.
18993    hardcode_action_GCJ=relink
18994  else
18995    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18996    hardcode_action_GCJ=immediate
18997  fi
18998else
18999  # We cannot hardcode anything, or else we can only hardcode existing
19000  # directories.
19001  hardcode_action_GCJ=unsupported
19002fi
19003{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19004$as_echo "$hardcode_action_GCJ" >&6; }
19005
19006if test "$hardcode_action_GCJ" = relink; then
19007  # Fast installation is not supported
19008  enable_fast_install=no
19009elif test "$shlibpath_overrides_runpath" = yes ||
19010     test "$enable_shared" = no; then
19011  # Fast installation is not necessary
19012  enable_fast_install=needless
19013fi
19014
19015
19016# The else clause should only fire when bootstrapping the
19017# libtool distribution, otherwise you forgot to ship ltmain.sh
19018# with your package, and you will get complaints that there are
19019# no rules to generate ltmain.sh.
19020if test -f "$ltmain"; then
19021  # See if we are running on zsh, and set the options which allow our commands through
19022  # without removal of \ escapes.
19023  if test -n "${ZSH_VERSION+set}" ; then
19024    setopt NO_GLOB_SUBST
19025  fi
19026  # Now quote all the things that may contain metacharacters while being
19027  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19028  # variables and quote the copies for generation of the libtool script.
19029  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19030    SED SHELL STRIP \
19031    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19032    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19033    deplibs_check_method reload_flag reload_cmds need_locks \
19034    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19035    lt_cv_sys_global_symbol_to_c_name_address \
19036    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19037    old_postinstall_cmds old_postuninstall_cmds \
19038    compiler_GCJ \
19039    CC_GCJ \
19040    LD_GCJ \
19041    lt_prog_compiler_wl_GCJ \
19042    lt_prog_compiler_pic_GCJ \
19043    lt_prog_compiler_static_GCJ \
19044    lt_prog_compiler_no_builtin_flag_GCJ \
19045    export_dynamic_flag_spec_GCJ \
19046    thread_safe_flag_spec_GCJ \
19047    whole_archive_flag_spec_GCJ \
19048    enable_shared_with_static_runtimes_GCJ \
19049    old_archive_cmds_GCJ \
19050    old_archive_from_new_cmds_GCJ \
19051    predep_objects_GCJ \
19052    postdep_objects_GCJ \
19053    predeps_GCJ \
19054    postdeps_GCJ \
19055    compiler_lib_search_path_GCJ \
19056    compiler_lib_search_dirs_GCJ \
19057    archive_cmds_GCJ \
19058    archive_expsym_cmds_GCJ \
19059    postinstall_cmds_GCJ \
19060    postuninstall_cmds_GCJ \
19061    old_archive_from_expsyms_cmds_GCJ \
19062    allow_undefined_flag_GCJ \
19063    no_undefined_flag_GCJ \
19064    export_symbols_cmds_GCJ \
19065    hardcode_libdir_flag_spec_GCJ \
19066    hardcode_libdir_flag_spec_ld_GCJ \
19067    hardcode_libdir_separator_GCJ \
19068    hardcode_automatic_GCJ \
19069    module_cmds_GCJ \
19070    module_expsym_cmds_GCJ \
19071    lt_cv_prog_compiler_c_o_GCJ \
19072    fix_srcfile_path_GCJ \
19073    exclude_expsyms_GCJ \
19074    include_expsyms_GCJ; do
19075
19076    case $var in
19077    old_archive_cmds_GCJ | \
19078    old_archive_from_new_cmds_GCJ | \
19079    archive_cmds_GCJ | \
19080    archive_expsym_cmds_GCJ | \
19081    module_cmds_GCJ | \
19082    module_expsym_cmds_GCJ | \
19083    old_archive_from_expsyms_cmds_GCJ | \
19084    export_symbols_cmds_GCJ | \
19085    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19086    postinstall_cmds | postuninstall_cmds | \
19087    old_postinstall_cmds | old_postuninstall_cmds | \
19088    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19089      # Double-quote double-evaled strings.
19090      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19091      ;;
19092    *)
19093      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19094      ;;
19095    esac
19096  done
19097
19098  case $lt_echo in
19099  *'\$0 --fallback-echo"')
19100    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19101    ;;
19102  esac
19103
19104cfgfile="$ofile"
19105
19106  cat <<__EOF__ >> "$cfgfile"
19107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19108
19109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19110
19111# Shell to use when invoking shell scripts.
19112SHELL=$lt_SHELL
19113
19114# Whether or not to build shared libraries.
19115build_libtool_libs=$enable_shared
19116
19117# Whether or not to build static libraries.
19118build_old_libs=$enable_static
19119
19120# Whether or not to add -lc for building shared libraries.
19121build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19122
19123# Whether or not to disallow shared libs when runtime libs are static
19124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19125
19126# Whether or not to optimize for fast installation.
19127fast_install=$enable_fast_install
19128
19129# The host system.
19130host_alias=$host_alias
19131host=$host
19132host_os=$host_os
19133
19134# The build system.
19135build_alias=$build_alias
19136build=$build
19137build_os=$build_os
19138
19139# An echo program that does not interpret backslashes.
19140echo=$lt_echo
19141
19142# The archiver.
19143AR=$lt_AR
19144AR_FLAGS=$lt_AR_FLAGS
19145
19146# A C compiler.
19147LTCC=$lt_LTCC
19148
19149# LTCC compiler flags.
19150LTCFLAGS=$lt_LTCFLAGS
19151
19152# A language-specific compiler.
19153CC=$lt_compiler_GCJ
19154
19155# Is the compiler the GNU C compiler?
19156with_gcc=$GCC_GCJ
19157
19158# An ERE matcher.
19159EGREP=$lt_EGREP
19160
19161# The linker used to build libraries.
19162LD=$lt_LD_GCJ
19163
19164# Whether we need hard or soft links.
19165LN_S=$lt_LN_S
19166
19167# A BSD-compatible nm program.
19168NM=$lt_NM
19169
19170# A symbol stripping program
19171STRIP=$lt_STRIP
19172
19173# Used to examine libraries when file_magic_cmd begins "file"
19174MAGIC_CMD=$MAGIC_CMD
19175
19176# Used on cygwin: DLL creation program.
19177DLLTOOL="$DLLTOOL"
19178
19179# Used on cygwin: object dumper.
19180OBJDUMP="$OBJDUMP"
19181
19182# Used on cygwin: assembler.
19183AS="$AS"
19184
19185# The name of the directory that contains temporary libtool files.
19186objdir=$objdir
19187
19188# How to create reloadable object files.
19189reload_flag=$lt_reload_flag
19190reload_cmds=$lt_reload_cmds
19191
19192# How to pass a linker flag through the compiler.
19193wl=$lt_lt_prog_compiler_wl_GCJ
19194
19195# Object file suffix (normally "o").
19196objext="$ac_objext"
19197
19198# Old archive suffix (normally "a").
19199libext="$libext"
19200
19201# Shared library suffix (normally ".so").
19202shrext_cmds='$shrext_cmds'
19203
19204# Executable file suffix (normally "").
19205exeext="$exeext"
19206
19207# Additional compiler flags for building library objects.
19208pic_flag=$lt_lt_prog_compiler_pic_GCJ
19209pic_mode=$pic_mode
19210
19211# What is the maximum length of a command?
19212max_cmd_len=$lt_cv_sys_max_cmd_len
19213
19214# Does compiler simultaneously support -c and -o options?
19215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19216
19217# Must we lock files when doing compilation?
19218need_locks=$lt_need_locks
19219
19220# Do we need the lib prefix for modules?
19221need_lib_prefix=$need_lib_prefix
19222
19223# Do we need a version for libraries?
19224need_version=$need_version
19225
19226# Whether dlopen is supported.
19227dlopen_support=$enable_dlopen
19228
19229# Whether dlopen of programs is supported.
19230dlopen_self=$enable_dlopen_self
19231
19232# Whether dlopen of statically linked programs is supported.
19233dlopen_self_static=$enable_dlopen_self_static
19234
19235# Compiler flag to prevent dynamic linking.
19236link_static_flag=$lt_lt_prog_compiler_static_GCJ
19237
19238# Compiler flag to turn off builtin functions.
19239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19240
19241# Compiler flag to allow reflexive dlopens.
19242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19243
19244# Compiler flag to generate shared objects directly from archives.
19245whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19246
19247# Compiler flag to generate thread-safe objects.
19248thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19249
19250# Library versioning type.
19251version_type=$version_type
19252
19253# Format of library name prefix.
19254libname_spec=$lt_libname_spec
19255
19256# List of archive names.  First name is the real one, the rest are links.
19257# The last name is the one that the linker finds with -lNAME.
19258library_names_spec=$lt_library_names_spec
19259
19260# The coded name of the library, if different from the real name.
19261soname_spec=$lt_soname_spec
19262
19263# Commands used to build and install an old-style archive.
19264RANLIB=$lt_RANLIB
19265old_archive_cmds=$lt_old_archive_cmds_GCJ
19266old_postinstall_cmds=$lt_old_postinstall_cmds
19267old_postuninstall_cmds=$lt_old_postuninstall_cmds
19268
19269# Create an old-style archive from a shared archive.
19270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19271
19272# Create a temporary old-style archive to link instead of a shared archive.
19273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19274
19275# Commands used to build and install a shared archive.
19276archive_cmds=$lt_archive_cmds_GCJ
19277archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19278postinstall_cmds=$lt_postinstall_cmds
19279postuninstall_cmds=$lt_postuninstall_cmds
19280
19281# Commands used to build a loadable module (assumed same as above if empty)
19282module_cmds=$lt_module_cmds_GCJ
19283module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19284
19285# Commands to strip libraries.
19286old_striplib=$lt_old_striplib
19287striplib=$lt_striplib
19288
19289# Dependencies to place before the objects being linked to create a
19290# shared library.
19291predep_objects=$lt_predep_objects_GCJ
19292
19293# Dependencies to place after the objects being linked to create a
19294# shared library.
19295postdep_objects=$lt_postdep_objects_GCJ
19296
19297# Dependencies to place before the objects being linked to create a
19298# shared library.
19299predeps=$lt_predeps_GCJ
19300
19301# Dependencies to place after the objects being linked to create a
19302# shared library.
19303postdeps=$lt_postdeps_GCJ
19304
19305# The directories searched by this compiler when creating a shared
19306# library
19307compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19308
19309# The library search path used internally by the compiler when linking
19310# a shared library.
19311compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19312
19313# Method to check whether dependent libraries are shared objects.
19314deplibs_check_method=$lt_deplibs_check_method
19315
19316# Command to use when deplibs_check_method == file_magic.
19317file_magic_cmd=$lt_file_magic_cmd
19318
19319# Flag that allows shared libraries with undefined symbols to be built.
19320allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19321
19322# Flag that forces no undefined symbols.
19323no_undefined_flag=$lt_no_undefined_flag_GCJ
19324
19325# Commands used to finish a libtool library installation in a directory.
19326finish_cmds=$lt_finish_cmds
19327
19328# Same as above, but a single script fragment to be evaled but not shown.
19329finish_eval=$lt_finish_eval
19330
19331# Take the output of nm and produce a listing of raw symbols and C names.
19332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19333
19334# Transform the output of nm in a proper C declaration
19335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19336
19337# Transform the output of nm in a C name address pair
19338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19339
19340# This is the shared library runtime path variable.
19341runpath_var=$runpath_var
19342
19343# This is the shared library path variable.
19344shlibpath_var=$shlibpath_var
19345
19346# Is shlibpath searched before the hard-coded library search path?
19347shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19348
19349# How to hardcode a shared library path into an executable.
19350hardcode_action=$hardcode_action_GCJ
19351
19352# Whether we should hardcode library paths into libraries.
19353hardcode_into_libs=$hardcode_into_libs
19354
19355# Flag to hardcode \$libdir into a binary during linking.
19356# This must work even if \$libdir does not exist.
19357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19358
19359# If ld is used when linking, flag to hardcode \$libdir into
19360# a binary during linking. This must work even if \$libdir does
19361# not exist.
19362hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19363
19364# Whether we need a single -rpath flag with a separated argument.
19365hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19366
19367# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19368# resulting binary.
19369hardcode_direct=$hardcode_direct_GCJ
19370
19371# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19372# resulting binary.
19373hardcode_minus_L=$hardcode_minus_L_GCJ
19374
19375# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19376# the resulting binary.
19377hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19378
19379# Set to yes if building a shared library automatically hardcodes DIR into the library
19380# and all subsequent libraries and executables linked against it.
19381hardcode_automatic=$hardcode_automatic_GCJ
19382
19383# Variables whose values should be saved in libtool wrapper scripts and
19384# restored at relink time.
19385variables_saved_for_relink="$variables_saved_for_relink"
19386
19387# Whether libtool must link a program against all its dependency libraries.
19388link_all_deplibs=$link_all_deplibs_GCJ
19389
19390# Compile-time system search path for libraries
19391sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19392
19393# Run-time system search path for libraries
19394sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19395
19396# Fix the shell variable \$srcfile for the compiler.
19397fix_srcfile_path=$lt_fix_srcfile_path
19398
19399# Set to yes if exported symbols are required.
19400always_export_symbols=$always_export_symbols_GCJ
19401
19402# The commands to list exported symbols.
19403export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19404
19405# The commands to extract the exported symbol list from a shared archive.
19406extract_expsyms_cmds=$lt_extract_expsyms_cmds
19407
19408# Symbols that should not be listed in the preloaded symbols.
19409exclude_expsyms=$lt_exclude_expsyms_GCJ
19410
19411# Symbols that must always be exported.
19412include_expsyms=$lt_include_expsyms_GCJ
19413
19414# ### END LIBTOOL TAG CONFIG: $tagname
19415
19416__EOF__
19417
19418
19419else
19420  # If there is no Makefile yet, we rely on a make rule to execute
19421  # `config.status --recheck' to rerun these tests and create the
19422  # libtool script then.
19423  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19424  if test -f "$ltmain_in"; then
19425    test -f Makefile && make "$ltmain"
19426  fi
19427fi
19428
19429
19430ac_ext=c
19431ac_cpp='$CPP $CPPFLAGS'
19432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436CC="$lt_save_CC"
19437
19438	else
19439	  tagname=""
19440	fi
19441	;;
19442
19443      RC)
19444
19445
19446# Source file extension for RC test sources.
19447ac_ext=rc
19448
19449# Object file extension for compiled RC test sources.
19450objext=o
19451objext_RC=$objext
19452
19453# Code to be used in simple compile tests
19454lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19455
19456# Code to be used in simple link tests
19457lt_simple_link_test_code="$lt_simple_compile_test_code"
19458
19459# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19460
19461# If no C compiler was specified, use CC.
19462LTCC=${LTCC-"$CC"}
19463
19464# If no C compiler flags were specified, use CFLAGS.
19465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19466
19467# Allow CC to be a program name with arguments.
19468compiler=$CC
19469
19470
19471# save warnings/boilerplate of simple test code
19472ac_outfile=conftest.$ac_objext
19473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19475_lt_compiler_boilerplate=`cat conftest.err`
19476$rm conftest*
19477
19478ac_outfile=conftest.$ac_objext
19479echo "$lt_simple_link_test_code" >conftest.$ac_ext
19480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19481_lt_linker_boilerplate=`cat conftest.err`
19482$rm -r conftest*
19483
19484
19485# Allow CC to be a program name with arguments.
19486lt_save_CC="$CC"
19487CC=${RC-"windres"}
19488compiler=$CC
19489compiler_RC=$CC
19490for cc_temp in $compiler""; do
19491  case $cc_temp in
19492    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19493    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19494    \-*) ;;
19495    *) break;;
19496  esac
19497done
19498cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19499
19500lt_cv_prog_compiler_c_o_RC=yes
19501
19502# The else clause should only fire when bootstrapping the
19503# libtool distribution, otherwise you forgot to ship ltmain.sh
19504# with your package, and you will get complaints that there are
19505# no rules to generate ltmain.sh.
19506if test -f "$ltmain"; then
19507  # See if we are running on zsh, and set the options which allow our commands through
19508  # without removal of \ escapes.
19509  if test -n "${ZSH_VERSION+set}" ; then
19510    setopt NO_GLOB_SUBST
19511  fi
19512  # Now quote all the things that may contain metacharacters while being
19513  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19514  # variables and quote the copies for generation of the libtool script.
19515  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19516    SED SHELL STRIP \
19517    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19518    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19519    deplibs_check_method reload_flag reload_cmds need_locks \
19520    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19521    lt_cv_sys_global_symbol_to_c_name_address \
19522    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19523    old_postinstall_cmds old_postuninstall_cmds \
19524    compiler_RC \
19525    CC_RC \
19526    LD_RC \
19527    lt_prog_compiler_wl_RC \
19528    lt_prog_compiler_pic_RC \
19529    lt_prog_compiler_static_RC \
19530    lt_prog_compiler_no_builtin_flag_RC \
19531    export_dynamic_flag_spec_RC \
19532    thread_safe_flag_spec_RC \
19533    whole_archive_flag_spec_RC \
19534    enable_shared_with_static_runtimes_RC \
19535    old_archive_cmds_RC \
19536    old_archive_from_new_cmds_RC \
19537    predep_objects_RC \
19538    postdep_objects_RC \
19539    predeps_RC \
19540    postdeps_RC \
19541    compiler_lib_search_path_RC \
19542    compiler_lib_search_dirs_RC \
19543    archive_cmds_RC \
19544    archive_expsym_cmds_RC \
19545    postinstall_cmds_RC \
19546    postuninstall_cmds_RC \
19547    old_archive_from_expsyms_cmds_RC \
19548    allow_undefined_flag_RC \
19549    no_undefined_flag_RC \
19550    export_symbols_cmds_RC \
19551    hardcode_libdir_flag_spec_RC \
19552    hardcode_libdir_flag_spec_ld_RC \
19553    hardcode_libdir_separator_RC \
19554    hardcode_automatic_RC \
19555    module_cmds_RC \
19556    module_expsym_cmds_RC \
19557    lt_cv_prog_compiler_c_o_RC \
19558    fix_srcfile_path_RC \
19559    exclude_expsyms_RC \
19560    include_expsyms_RC; do
19561
19562    case $var in
19563    old_archive_cmds_RC | \
19564    old_archive_from_new_cmds_RC | \
19565    archive_cmds_RC | \
19566    archive_expsym_cmds_RC | \
19567    module_cmds_RC | \
19568    module_expsym_cmds_RC | \
19569    old_archive_from_expsyms_cmds_RC | \
19570    export_symbols_cmds_RC | \
19571    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19572    postinstall_cmds | postuninstall_cmds | \
19573    old_postinstall_cmds | old_postuninstall_cmds | \
19574    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19575      # Double-quote double-evaled strings.
19576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19577      ;;
19578    *)
19579      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19580      ;;
19581    esac
19582  done
19583
19584  case $lt_echo in
19585  *'\$0 --fallback-echo"')
19586    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19587    ;;
19588  esac
19589
19590cfgfile="$ofile"
19591
19592  cat <<__EOF__ >> "$cfgfile"
19593# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19594
19595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19596
19597# Shell to use when invoking shell scripts.
19598SHELL=$lt_SHELL
19599
19600# Whether or not to build shared libraries.
19601build_libtool_libs=$enable_shared
19602
19603# Whether or not to build static libraries.
19604build_old_libs=$enable_static
19605
19606# Whether or not to add -lc for building shared libraries.
19607build_libtool_need_lc=$archive_cmds_need_lc_RC
19608
19609# Whether or not to disallow shared libs when runtime libs are static
19610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19611
19612# Whether or not to optimize for fast installation.
19613fast_install=$enable_fast_install
19614
19615# The host system.
19616host_alias=$host_alias
19617host=$host
19618host_os=$host_os
19619
19620# The build system.
19621build_alias=$build_alias
19622build=$build
19623build_os=$build_os
19624
19625# An echo program that does not interpret backslashes.
19626echo=$lt_echo
19627
19628# The archiver.
19629AR=$lt_AR
19630AR_FLAGS=$lt_AR_FLAGS
19631
19632# A C compiler.
19633LTCC=$lt_LTCC
19634
19635# LTCC compiler flags.
19636LTCFLAGS=$lt_LTCFLAGS
19637
19638# A language-specific compiler.
19639CC=$lt_compiler_RC
19640
19641# Is the compiler the GNU C compiler?
19642with_gcc=$GCC_RC
19643
19644# An ERE matcher.
19645EGREP=$lt_EGREP
19646
19647# The linker used to build libraries.
19648LD=$lt_LD_RC
19649
19650# Whether we need hard or soft links.
19651LN_S=$lt_LN_S
19652
19653# A BSD-compatible nm program.
19654NM=$lt_NM
19655
19656# A symbol stripping program
19657STRIP=$lt_STRIP
19658
19659# Used to examine libraries when file_magic_cmd begins "file"
19660MAGIC_CMD=$MAGIC_CMD
19661
19662# Used on cygwin: DLL creation program.
19663DLLTOOL="$DLLTOOL"
19664
19665# Used on cygwin: object dumper.
19666OBJDUMP="$OBJDUMP"
19667
19668# Used on cygwin: assembler.
19669AS="$AS"
19670
19671# The name of the directory that contains temporary libtool files.
19672objdir=$objdir
19673
19674# How to create reloadable object files.
19675reload_flag=$lt_reload_flag
19676reload_cmds=$lt_reload_cmds
19677
19678# How to pass a linker flag through the compiler.
19679wl=$lt_lt_prog_compiler_wl_RC
19680
19681# Object file suffix (normally "o").
19682objext="$ac_objext"
19683
19684# Old archive suffix (normally "a").
19685libext="$libext"
19686
19687# Shared library suffix (normally ".so").
19688shrext_cmds='$shrext_cmds'
19689
19690# Executable file suffix (normally "").
19691exeext="$exeext"
19692
19693# Additional compiler flags for building library objects.
19694pic_flag=$lt_lt_prog_compiler_pic_RC
19695pic_mode=$pic_mode
19696
19697# What is the maximum length of a command?
19698max_cmd_len=$lt_cv_sys_max_cmd_len
19699
19700# Does compiler simultaneously support -c and -o options?
19701compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19702
19703# Must we lock files when doing compilation?
19704need_locks=$lt_need_locks
19705
19706# Do we need the lib prefix for modules?
19707need_lib_prefix=$need_lib_prefix
19708
19709# Do we need a version for libraries?
19710need_version=$need_version
19711
19712# Whether dlopen is supported.
19713dlopen_support=$enable_dlopen
19714
19715# Whether dlopen of programs is supported.
19716dlopen_self=$enable_dlopen_self
19717
19718# Whether dlopen of statically linked programs is supported.
19719dlopen_self_static=$enable_dlopen_self_static
19720
19721# Compiler flag to prevent dynamic linking.
19722link_static_flag=$lt_lt_prog_compiler_static_RC
19723
19724# Compiler flag to turn off builtin functions.
19725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19726
19727# Compiler flag to allow reflexive dlopens.
19728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19729
19730# Compiler flag to generate shared objects directly from archives.
19731whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19732
19733# Compiler flag to generate thread-safe objects.
19734thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19735
19736# Library versioning type.
19737version_type=$version_type
19738
19739# Format of library name prefix.
19740libname_spec=$lt_libname_spec
19741
19742# List of archive names.  First name is the real one, the rest are links.
19743# The last name is the one that the linker finds with -lNAME.
19744library_names_spec=$lt_library_names_spec
19745
19746# The coded name of the library, if different from the real name.
19747soname_spec=$lt_soname_spec
19748
19749# Commands used to build and install an old-style archive.
19750RANLIB=$lt_RANLIB
19751old_archive_cmds=$lt_old_archive_cmds_RC
19752old_postinstall_cmds=$lt_old_postinstall_cmds
19753old_postuninstall_cmds=$lt_old_postuninstall_cmds
19754
19755# Create an old-style archive from a shared archive.
19756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19757
19758# Create a temporary old-style archive to link instead of a shared archive.
19759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19760
19761# Commands used to build and install a shared archive.
19762archive_cmds=$lt_archive_cmds_RC
19763archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19764postinstall_cmds=$lt_postinstall_cmds
19765postuninstall_cmds=$lt_postuninstall_cmds
19766
19767# Commands used to build a loadable module (assumed same as above if empty)
19768module_cmds=$lt_module_cmds_RC
19769module_expsym_cmds=$lt_module_expsym_cmds_RC
19770
19771# Commands to strip libraries.
19772old_striplib=$lt_old_striplib
19773striplib=$lt_striplib
19774
19775# Dependencies to place before the objects being linked to create a
19776# shared library.
19777predep_objects=$lt_predep_objects_RC
19778
19779# Dependencies to place after the objects being linked to create a
19780# shared library.
19781postdep_objects=$lt_postdep_objects_RC
19782
19783# Dependencies to place before the objects being linked to create a
19784# shared library.
19785predeps=$lt_predeps_RC
19786
19787# Dependencies to place after the objects being linked to create a
19788# shared library.
19789postdeps=$lt_postdeps_RC
19790
19791# The directories searched by this compiler when creating a shared
19792# library
19793compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19794
19795# The library search path used internally by the compiler when linking
19796# a shared library.
19797compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19798
19799# Method to check whether dependent libraries are shared objects.
19800deplibs_check_method=$lt_deplibs_check_method
19801
19802# Command to use when deplibs_check_method == file_magic.
19803file_magic_cmd=$lt_file_magic_cmd
19804
19805# Flag that allows shared libraries with undefined symbols to be built.
19806allow_undefined_flag=$lt_allow_undefined_flag_RC
19807
19808# Flag that forces no undefined symbols.
19809no_undefined_flag=$lt_no_undefined_flag_RC
19810
19811# Commands used to finish a libtool library installation in a directory.
19812finish_cmds=$lt_finish_cmds
19813
19814# Same as above, but a single script fragment to be evaled but not shown.
19815finish_eval=$lt_finish_eval
19816
19817# Take the output of nm and produce a listing of raw symbols and C names.
19818global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19819
19820# Transform the output of nm in a proper C declaration
19821global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19822
19823# Transform the output of nm in a C name address pair
19824global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19825
19826# This is the shared library runtime path variable.
19827runpath_var=$runpath_var
19828
19829# This is the shared library path variable.
19830shlibpath_var=$shlibpath_var
19831
19832# Is shlibpath searched before the hard-coded library search path?
19833shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19834
19835# How to hardcode a shared library path into an executable.
19836hardcode_action=$hardcode_action_RC
19837
19838# Whether we should hardcode library paths into libraries.
19839hardcode_into_libs=$hardcode_into_libs
19840
19841# Flag to hardcode \$libdir into a binary during linking.
19842# This must work even if \$libdir does not exist.
19843hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19844
19845# If ld is used when linking, flag to hardcode \$libdir into
19846# a binary during linking. This must work even if \$libdir does
19847# not exist.
19848hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19849
19850# Whether we need a single -rpath flag with a separated argument.
19851hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19852
19853# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19854# resulting binary.
19855hardcode_direct=$hardcode_direct_RC
19856
19857# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19858# resulting binary.
19859hardcode_minus_L=$hardcode_minus_L_RC
19860
19861# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19862# the resulting binary.
19863hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19864
19865# Set to yes if building a shared library automatically hardcodes DIR into the library
19866# and all subsequent libraries and executables linked against it.
19867hardcode_automatic=$hardcode_automatic_RC
19868
19869# Variables whose values should be saved in libtool wrapper scripts and
19870# restored at relink time.
19871variables_saved_for_relink="$variables_saved_for_relink"
19872
19873# Whether libtool must link a program against all its dependency libraries.
19874link_all_deplibs=$link_all_deplibs_RC
19875
19876# Compile-time system search path for libraries
19877sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19878
19879# Run-time system search path for libraries
19880sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19881
19882# Fix the shell variable \$srcfile for the compiler.
19883fix_srcfile_path=$lt_fix_srcfile_path
19884
19885# Set to yes if exported symbols are required.
19886always_export_symbols=$always_export_symbols_RC
19887
19888# The commands to list exported symbols.
19889export_symbols_cmds=$lt_export_symbols_cmds_RC
19890
19891# The commands to extract the exported symbol list from a shared archive.
19892extract_expsyms_cmds=$lt_extract_expsyms_cmds
19893
19894# Symbols that should not be listed in the preloaded symbols.
19895exclude_expsyms=$lt_exclude_expsyms_RC
19896
19897# Symbols that must always be exported.
19898include_expsyms=$lt_include_expsyms_RC
19899
19900# ### END LIBTOOL TAG CONFIG: $tagname
19901
19902__EOF__
19903
19904
19905else
19906  # If there is no Makefile yet, we rely on a make rule to execute
19907  # `config.status --recheck' to rerun these tests and create the
19908  # libtool script then.
19909  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19910  if test -f "$ltmain_in"; then
19911    test -f Makefile && make "$ltmain"
19912  fi
19913fi
19914
19915
19916ac_ext=c
19917ac_cpp='$CPP $CPPFLAGS'
19918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922CC="$lt_save_CC"
19923
19924	;;
19925
19926      *)
19927	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19928$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19929   { (exit 1); exit 1; }; }
19930	;;
19931      esac
19932
19933      # Append the new tag name to the list of available tags.
19934      if test -n "$tagname" ; then
19935      available_tags="$available_tags $tagname"
19936    fi
19937    fi
19938  done
19939  IFS="$lt_save_ifs"
19940
19941  # Now substitute the updated list of available tags.
19942  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19943    mv "${ofile}T" "$ofile"
19944    chmod +x "$ofile"
19945  else
19946    rm -f "${ofile}T"
19947    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19948$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19949   { (exit 1); exit 1; }; }
19950  fi
19951fi
19952
19953
19954
19955# This can be used to rebuild libtool when needed
19956LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19957
19958# Always use our own libtool.
19959LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19960
19961# Prevent multiple expansion
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982ac_ext=c
19983ac_cpp='$CPP $CPPFLAGS'
19984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987if test -n "$ac_tool_prefix"; then
19988  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19989set dummy ${ac_tool_prefix}gcc; ac_word=$2
19990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19991$as_echo_n "checking for $ac_word... " >&6; }
19992if test "${ac_cv_prog_CC+set}" = set; then
19993  $as_echo_n "(cached) " >&6
19994else
19995  if test -n "$CC"; then
19996  ac_cv_prog_CC="$CC" # Let the user override the test.
19997else
19998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19999for as_dir in $PATH
20000do
20001  IFS=$as_save_IFS
20002  test -z "$as_dir" && as_dir=.
20003  for ac_exec_ext in '' $ac_executable_extensions; do
20004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20005    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20007    break 2
20008  fi
20009done
20010done
20011IFS=$as_save_IFS
20012
20013fi
20014fi
20015CC=$ac_cv_prog_CC
20016if test -n "$CC"; then
20017  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20018$as_echo "$CC" >&6; }
20019else
20020  { $as_echo "$as_me:$LINENO: result: no" >&5
20021$as_echo "no" >&6; }
20022fi
20023
20024
20025fi
20026if test -z "$ac_cv_prog_CC"; then
20027  ac_ct_CC=$CC
20028  # Extract the first word of "gcc", so it can be a program name with args.
20029set dummy gcc; ac_word=$2
20030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20031$as_echo_n "checking for $ac_word... " >&6; }
20032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20033  $as_echo_n "(cached) " >&6
20034else
20035  if test -n "$ac_ct_CC"; then
20036  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20037else
20038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039for as_dir in $PATH
20040do
20041  IFS=$as_save_IFS
20042  test -z "$as_dir" && as_dir=.
20043  for ac_exec_ext in '' $ac_executable_extensions; do
20044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045    ac_cv_prog_ac_ct_CC="gcc"
20046    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20047    break 2
20048  fi
20049done
20050done
20051IFS=$as_save_IFS
20052
20053fi
20054fi
20055ac_ct_CC=$ac_cv_prog_ac_ct_CC
20056if test -n "$ac_ct_CC"; then
20057  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20058$as_echo "$ac_ct_CC" >&6; }
20059else
20060  { $as_echo "$as_me:$LINENO: result: no" >&5
20061$as_echo "no" >&6; }
20062fi
20063
20064  if test "x$ac_ct_CC" = x; then
20065    CC=""
20066  else
20067    case $cross_compiling:$ac_tool_warned in
20068yes:)
20069{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20071ac_tool_warned=yes ;;
20072esac
20073    CC=$ac_ct_CC
20074  fi
20075else
20076  CC="$ac_cv_prog_CC"
20077fi
20078
20079if test -z "$CC"; then
20080          if test -n "$ac_tool_prefix"; then
20081    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20082set dummy ${ac_tool_prefix}cc; ac_word=$2
20083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20084$as_echo_n "checking for $ac_word... " >&6; }
20085if test "${ac_cv_prog_CC+set}" = set; then
20086  $as_echo_n "(cached) " >&6
20087else
20088  if test -n "$CC"; then
20089  ac_cv_prog_CC="$CC" # Let the user override the test.
20090else
20091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20092for as_dir in $PATH
20093do
20094  IFS=$as_save_IFS
20095  test -z "$as_dir" && as_dir=.
20096  for ac_exec_ext in '' $ac_executable_extensions; do
20097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20098    ac_cv_prog_CC="${ac_tool_prefix}cc"
20099    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20100    break 2
20101  fi
20102done
20103done
20104IFS=$as_save_IFS
20105
20106fi
20107fi
20108CC=$ac_cv_prog_CC
20109if test -n "$CC"; then
20110  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20111$as_echo "$CC" >&6; }
20112else
20113  { $as_echo "$as_me:$LINENO: result: no" >&5
20114$as_echo "no" >&6; }
20115fi
20116
20117
20118  fi
20119fi
20120if test -z "$CC"; then
20121  # Extract the first word of "cc", so it can be a program name with args.
20122set dummy cc; ac_word=$2
20123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20124$as_echo_n "checking for $ac_word... " >&6; }
20125if test "${ac_cv_prog_CC+set}" = set; then
20126  $as_echo_n "(cached) " >&6
20127else
20128  if test -n "$CC"; then
20129  ac_cv_prog_CC="$CC" # Let the user override the test.
20130else
20131  ac_prog_rejected=no
20132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133for as_dir in $PATH
20134do
20135  IFS=$as_save_IFS
20136  test -z "$as_dir" && as_dir=.
20137  for ac_exec_ext in '' $ac_executable_extensions; do
20138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20139    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20140       ac_prog_rejected=yes
20141       continue
20142     fi
20143    ac_cv_prog_CC="cc"
20144    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20145    break 2
20146  fi
20147done
20148done
20149IFS=$as_save_IFS
20150
20151if test $ac_prog_rejected = yes; then
20152  # We found a bogon in the path, so make sure we never use it.
20153  set dummy $ac_cv_prog_CC
20154  shift
20155  if test $# != 0; then
20156    # We chose a different compiler from the bogus one.
20157    # However, it has the same basename, so the bogon will be chosen
20158    # first if we set CC to just the basename; use the full file name.
20159    shift
20160    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20161  fi
20162fi
20163fi
20164fi
20165CC=$ac_cv_prog_CC
20166if test -n "$CC"; then
20167  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20168$as_echo "$CC" >&6; }
20169else
20170  { $as_echo "$as_me:$LINENO: result: no" >&5
20171$as_echo "no" >&6; }
20172fi
20173
20174
20175fi
20176if test -z "$CC"; then
20177  if test -n "$ac_tool_prefix"; then
20178  for ac_prog in cl.exe
20179  do
20180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20183$as_echo_n "checking for $ac_word... " >&6; }
20184if test "${ac_cv_prog_CC+set}" = set; then
20185  $as_echo_n "(cached) " >&6
20186else
20187  if test -n "$CC"; then
20188  ac_cv_prog_CC="$CC" # Let the user override the test.
20189else
20190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191for as_dir in $PATH
20192do
20193  IFS=$as_save_IFS
20194  test -z "$as_dir" && as_dir=.
20195  for ac_exec_ext in '' $ac_executable_extensions; do
20196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20198    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20199    break 2
20200  fi
20201done
20202done
20203IFS=$as_save_IFS
20204
20205fi
20206fi
20207CC=$ac_cv_prog_CC
20208if test -n "$CC"; then
20209  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20210$as_echo "$CC" >&6; }
20211else
20212  { $as_echo "$as_me:$LINENO: result: no" >&5
20213$as_echo "no" >&6; }
20214fi
20215
20216
20217    test -n "$CC" && break
20218  done
20219fi
20220if test -z "$CC"; then
20221  ac_ct_CC=$CC
20222  for ac_prog in cl.exe
20223do
20224  # Extract the first word of "$ac_prog", so it can be a program name with args.
20225set dummy $ac_prog; ac_word=$2
20226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20227$as_echo_n "checking for $ac_word... " >&6; }
20228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20229  $as_echo_n "(cached) " >&6
20230else
20231  if test -n "$ac_ct_CC"; then
20232  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20233else
20234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20235for as_dir in $PATH
20236do
20237  IFS=$as_save_IFS
20238  test -z "$as_dir" && as_dir=.
20239  for ac_exec_ext in '' $ac_executable_extensions; do
20240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20241    ac_cv_prog_ac_ct_CC="$ac_prog"
20242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20243    break 2
20244  fi
20245done
20246done
20247IFS=$as_save_IFS
20248
20249fi
20250fi
20251ac_ct_CC=$ac_cv_prog_ac_ct_CC
20252if test -n "$ac_ct_CC"; then
20253  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20254$as_echo "$ac_ct_CC" >&6; }
20255else
20256  { $as_echo "$as_me:$LINENO: result: no" >&5
20257$as_echo "no" >&6; }
20258fi
20259
20260
20261  test -n "$ac_ct_CC" && break
20262done
20263
20264  if test "x$ac_ct_CC" = x; then
20265    CC=""
20266  else
20267    case $cross_compiling:$ac_tool_warned in
20268yes:)
20269{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20271ac_tool_warned=yes ;;
20272esac
20273    CC=$ac_ct_CC
20274  fi
20275fi
20276
20277fi
20278
20279
20280test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20282{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20283See \`config.log' for more details." >&5
20284$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20285See \`config.log' for more details." >&2;}
20286   { (exit 1); exit 1; }; }; }
20287
20288# Provide some information about the compiler.
20289$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20290set X $ac_compile
20291ac_compiler=$2
20292{ (ac_try="$ac_compiler --version >&5"
20293case "(($ac_try" in
20294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295  *) ac_try_echo=$ac_try;;
20296esac
20297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20298$as_echo "$ac_try_echo") >&5
20299  (eval "$ac_compiler --version >&5") 2>&5
20300  ac_status=$?
20301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302  (exit $ac_status); }
20303{ (ac_try="$ac_compiler -v >&5"
20304case "(($ac_try" in
20305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306  *) ac_try_echo=$ac_try;;
20307esac
20308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309$as_echo "$ac_try_echo") >&5
20310  (eval "$ac_compiler -v >&5") 2>&5
20311  ac_status=$?
20312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313  (exit $ac_status); }
20314{ (ac_try="$ac_compiler -V >&5"
20315case "(($ac_try" in
20316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317  *) ac_try_echo=$ac_try;;
20318esac
20319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20320$as_echo "$ac_try_echo") >&5
20321  (eval "$ac_compiler -V >&5") 2>&5
20322  ac_status=$?
20323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); }
20325
20326{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20328if test "${ac_cv_c_compiler_gnu+set}" = set; then
20329  $as_echo_n "(cached) " >&6
20330else
20331  cat >conftest.$ac_ext <<_ACEOF
20332/* confdefs.h.  */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h.  */
20337
20338int
20339main ()
20340{
20341#ifndef __GNUC__
20342       choke me
20343#endif
20344
20345  ;
20346  return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext
20350if { (ac_try="$ac_compile"
20351case "(($ac_try" in
20352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353  *) ac_try_echo=$ac_try;;
20354esac
20355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20356$as_echo "$ac_try_echo") >&5
20357  (eval "$ac_compile") 2>conftest.er1
20358  ac_status=$?
20359  grep -v '^ *+' conftest.er1 >conftest.err
20360  rm -f conftest.er1
20361  cat conftest.err >&5
20362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); } && {
20364	 test -z "$ac_c_werror_flag" ||
20365	 test ! -s conftest.err
20366       } && test -s conftest.$ac_objext; then
20367  ac_compiler_gnu=yes
20368else
20369  $as_echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
20372	ac_compiler_gnu=no
20373fi
20374
20375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376ac_cv_c_compiler_gnu=$ac_compiler_gnu
20377
20378fi
20379{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20380$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20381if test $ac_compiler_gnu = yes; then
20382  GCC=yes
20383else
20384  GCC=
20385fi
20386ac_test_CFLAGS=${CFLAGS+set}
20387ac_save_CFLAGS=$CFLAGS
20388{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20389$as_echo_n "checking whether $CC accepts -g... " >&6; }
20390if test "${ac_cv_prog_cc_g+set}" = set; then
20391  $as_echo_n "(cached) " >&6
20392else
20393  ac_save_c_werror_flag=$ac_c_werror_flag
20394   ac_c_werror_flag=yes
20395   ac_cv_prog_cc_g=no
20396   CFLAGS="-g"
20397   cat >conftest.$ac_ext <<_ACEOF
20398/* confdefs.h.  */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h.  */
20403
20404int
20405main ()
20406{
20407
20408  ;
20409  return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (ac_try="$ac_compile"
20414case "(($ac_try" in
20415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416  *) ac_try_echo=$ac_try;;
20417esac
20418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419$as_echo "$ac_try_echo") >&5
20420  (eval "$ac_compile") 2>conftest.er1
20421  ac_status=$?
20422  grep -v '^ *+' conftest.er1 >conftest.err
20423  rm -f conftest.er1
20424  cat conftest.err >&5
20425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426  (exit $ac_status); } && {
20427	 test -z "$ac_c_werror_flag" ||
20428	 test ! -s conftest.err
20429       } && test -s conftest.$ac_objext; then
20430  ac_cv_prog_cc_g=yes
20431else
20432  $as_echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435	CFLAGS=""
20436      cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h.  */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h.  */
20442
20443int
20444main ()
20445{
20446
20447  ;
20448  return 0;
20449}
20450_ACEOF
20451rm -f conftest.$ac_objext
20452if { (ac_try="$ac_compile"
20453case "(($ac_try" in
20454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455  *) ac_try_echo=$ac_try;;
20456esac
20457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20458$as_echo "$ac_try_echo") >&5
20459  (eval "$ac_compile") 2>conftest.er1
20460  ac_status=$?
20461  grep -v '^ *+' conftest.er1 >conftest.err
20462  rm -f conftest.er1
20463  cat conftest.err >&5
20464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); } && {
20466	 test -z "$ac_c_werror_flag" ||
20467	 test ! -s conftest.err
20468       } && test -s conftest.$ac_objext; then
20469  :
20470else
20471  $as_echo "$as_me: failed program was:" >&5
20472sed 's/^/| /' conftest.$ac_ext >&5
20473
20474	ac_c_werror_flag=$ac_save_c_werror_flag
20475	 CFLAGS="-g"
20476	 cat >conftest.$ac_ext <<_ACEOF
20477/* confdefs.h.  */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h.  */
20482
20483int
20484main ()
20485{
20486
20487  ;
20488  return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (ac_try="$ac_compile"
20493case "(($ac_try" in
20494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495  *) ac_try_echo=$ac_try;;
20496esac
20497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20498$as_echo "$ac_try_echo") >&5
20499  (eval "$ac_compile") 2>conftest.er1
20500  ac_status=$?
20501  grep -v '^ *+' conftest.er1 >conftest.err
20502  rm -f conftest.er1
20503  cat conftest.err >&5
20504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505  (exit $ac_status); } && {
20506	 test -z "$ac_c_werror_flag" ||
20507	 test ! -s conftest.err
20508       } && test -s conftest.$ac_objext; then
20509  ac_cv_prog_cc_g=yes
20510else
20511  $as_echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514
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
20521fi
20522
20523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524   ac_c_werror_flag=$ac_save_c_werror_flag
20525fi
20526{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20527$as_echo "$ac_cv_prog_cc_g" >&6; }
20528if test "$ac_test_CFLAGS" = set; then
20529  CFLAGS=$ac_save_CFLAGS
20530elif test $ac_cv_prog_cc_g = yes; then
20531  if test "$GCC" = yes; then
20532    CFLAGS="-g -O2"
20533  else
20534    CFLAGS="-g"
20535  fi
20536else
20537  if test "$GCC" = yes; then
20538    CFLAGS="-O2"
20539  else
20540    CFLAGS=
20541  fi
20542fi
20543{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20544$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20545if test "${ac_cv_prog_cc_c89+set}" = set; then
20546  $as_echo_n "(cached) " >&6
20547else
20548  ac_cv_prog_cc_c89=no
20549ac_save_CC=$CC
20550cat >conftest.$ac_ext <<_ACEOF
20551/* confdefs.h.  */
20552_ACEOF
20553cat confdefs.h >>conftest.$ac_ext
20554cat >>conftest.$ac_ext <<_ACEOF
20555/* end confdefs.h.  */
20556#include <stdarg.h>
20557#include <stdio.h>
20558#include <sys/types.h>
20559#include <sys/stat.h>
20560/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20561struct buf { int x; };
20562FILE * (*rcsopen) (struct buf *, struct stat *, int);
20563static char *e (p, i)
20564     char **p;
20565     int i;
20566{
20567  return p[i];
20568}
20569static char *f (char * (*g) (char **, int), char **p, ...)
20570{
20571  char *s;
20572  va_list v;
20573  va_start (v,p);
20574  s = g (p, va_arg (v,int));
20575  va_end (v);
20576  return s;
20577}
20578
20579/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20580   function prototypes and stuff, but not '\xHH' hex character constants.
20581   These don't provoke an error unfortunately, instead are silently treated
20582   as 'x'.  The following induces an error, until -std is added to get
20583   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20584   array size at least.  It's necessary to write '\x00'==0 to get something
20585   that's true only with -std.  */
20586int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20587
20588/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20589   inside strings and character constants.  */
20590#define FOO(x) 'x'
20591int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20592
20593int test (int i, double x);
20594struct s1 {int (*f) (int a);};
20595struct s2 {int (*f) (double a);};
20596int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20597int argc;
20598char **argv;
20599int
20600main ()
20601{
20602return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20603  ;
20604  return 0;
20605}
20606_ACEOF
20607for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20608	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20609do
20610  CC="$ac_save_CC $ac_arg"
20611  rm -f conftest.$ac_objext
20612if { (ac_try="$ac_compile"
20613case "(($ac_try" in
20614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615  *) ac_try_echo=$ac_try;;
20616esac
20617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20618$as_echo "$ac_try_echo") >&5
20619  (eval "$ac_compile") 2>conftest.er1
20620  ac_status=$?
20621  grep -v '^ *+' conftest.er1 >conftest.err
20622  rm -f conftest.er1
20623  cat conftest.err >&5
20624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625  (exit $ac_status); } && {
20626	 test -z "$ac_c_werror_flag" ||
20627	 test ! -s conftest.err
20628       } && test -s conftest.$ac_objext; then
20629  ac_cv_prog_cc_c89=$ac_arg
20630else
20631  $as_echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
20634
20635fi
20636
20637rm -f core conftest.err conftest.$ac_objext
20638  test "x$ac_cv_prog_cc_c89" != "xno" && break
20639done
20640rm -f conftest.$ac_ext
20641CC=$ac_save_CC
20642
20643fi
20644# AC_CACHE_VAL
20645case "x$ac_cv_prog_cc_c89" in
20646  x)
20647    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20648$as_echo "none needed" >&6; } ;;
20649  xno)
20650    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20651$as_echo "unsupported" >&6; } ;;
20652  *)
20653    CC="$CC $ac_cv_prog_cc_c89"
20654    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20655$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20656esac
20657
20658
20659ac_ext=c
20660ac_cpp='$CPP $CPPFLAGS'
20661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
20665depcc="$CC"   am_compiler_list=
20666
20667{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20668$as_echo_n "checking dependency style of $depcc... " >&6; }
20669if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20670  $as_echo_n "(cached) " >&6
20671else
20672  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20673  # We make a subdir and do the tests there.  Otherwise we can end up
20674  # making bogus files that we don't know about and never remove.  For
20675  # instance it was reported that on HP-UX the gcc test will end up
20676  # making a dummy file named `D' -- because `-MD' means `put the output
20677  # in D'.
20678  mkdir conftest.dir
20679  # Copy depcomp to subdir because otherwise we won't find it if we're
20680  # using a relative directory.
20681  cp "$am_depcomp" conftest.dir
20682  cd conftest.dir
20683  # We will build objects and dependencies in a subdirectory because
20684  # it helps to detect inapplicable dependency modes.  For instance
20685  # both Tru64's cc and ICC support -MD to output dependencies as a
20686  # side effect of compilation, but ICC will put the dependencies in
20687  # the current directory while Tru64 will put them in the object
20688  # directory.
20689  mkdir sub
20690
20691  am_cv_CC_dependencies_compiler_type=none
20692  if test "$am_compiler_list" = ""; then
20693     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20694  fi
20695  for depmode in $am_compiler_list; do
20696    # Setup a source with many dependencies, because some compilers
20697    # like to wrap large dependency lists on column 80 (with \), and
20698    # we should not choose a depcomp mode which is confused by this.
20699    #
20700    # We need to recreate these files for each test, as the compiler may
20701    # overwrite some of them when testing with obscure command lines.
20702    # This happens at least with the AIX C compiler.
20703    : > sub/conftest.c
20704    for i in 1 2 3 4 5 6; do
20705      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20706      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20707      # Solaris 8's {/usr,}/bin/sh.
20708      touch sub/conftst$i.h
20709    done
20710    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20711
20712    case $depmode in
20713    nosideeffect)
20714      # after this tag, mechanisms are not by side-effect, so they'll
20715      # only be used when explicitly requested
20716      if test "x$enable_dependency_tracking" = xyes; then
20717	continue
20718      else
20719	break
20720      fi
20721      ;;
20722    none) break ;;
20723    esac
20724    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20725    # mode.  It turns out that the SunPro C++ compiler does not properly
20726    # handle `-M -o', and we need to detect this.
20727    if depmode=$depmode \
20728       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20729       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20730       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20731         >/dev/null 2>conftest.err &&
20732       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20733       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20734       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20735       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20736      # icc doesn't choke on unknown options, it will just issue warnings
20737      # or remarks (even with -Werror).  So we grep stderr for any message
20738      # that says an option was ignored or not supported.
20739      # When given -MP, icc 7.0 and 7.1 complain thusly:
20740      #   icc: Command line warning: ignoring option '-M'; no argument required
20741      # The diagnosis changed in icc 8.0:
20742      #   icc: Command line remark: option '-MP' not supported
20743      if (grep 'ignoring option' conftest.err ||
20744          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20745        am_cv_CC_dependencies_compiler_type=$depmode
20746        break
20747      fi
20748    fi
20749  done
20750
20751  cd ..
20752  rm -rf conftest.dir
20753else
20754  am_cv_CC_dependencies_compiler_type=none
20755fi
20756
20757fi
20758{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20759$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20760CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20761
20762 if
20763  test "x$enable_dependency_tracking" != xno \
20764  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20765  am__fastdepCC_TRUE=
20766  am__fastdepCC_FALSE='#'
20767else
20768  am__fastdepCC_TRUE='#'
20769  am__fastdepCC_FALSE=
20770fi
20771
20772
20773
20774
20775
20776
20777
20778# Check whether --with-xorg-module-dir was given.
20779if test "${with_xorg_module_dir+set}" = set; then
20780  withval=$with_xorg_module_dir; moduledir="$withval"
20781else
20782  moduledir="$libdir/xorg/modules"
20783fi
20784
20785
20786# Checks for extensions
20787
20788	SAVE_CFLAGS="$CFLAGS"
20789	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20790	cat >conftest.$ac_ext <<_ACEOF
20791/* confdefs.h.  */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h.  */
20796
20797#include "xorg-server.h"
20798#if !defined RANDR
20799#error RANDR not defined
20800#endif
20801
20802int
20803main ()
20804{
20805
20806  ;
20807  return 0;
20808}
20809_ACEOF
20810rm -f conftest.$ac_objext
20811if { (ac_try="$ac_compile"
20812case "(($ac_try" in
20813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814  *) ac_try_echo=$ac_try;;
20815esac
20816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20817$as_echo "$ac_try_echo") >&5
20818  (eval "$ac_compile") 2>conftest.er1
20819  ac_status=$?
20820  grep -v '^ *+' conftest.er1 >conftest.err
20821  rm -f conftest.er1
20822  cat conftest.err >&5
20823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824  (exit $ac_status); } && {
20825	 test -z "$ac_c_werror_flag" ||
20826	 test ! -s conftest.err
20827       } && test -s conftest.$ac_objext; then
20828  _EXT_CHECK=yes
20829else
20830  $as_echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833	_EXT_CHECK=no
20834fi
20835
20836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837	CFLAGS="$SAVE_CFLAGS"
20838	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20839$as_echo_n "checking if RANDR is defined... " >&6; }
20840	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20841$as_echo "$_EXT_CHECK" >&6; }
20842	if test "$_EXT_CHECK" != no; then
20843		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20844	fi
20845
20846
20847	SAVE_CFLAGS="$CFLAGS"
20848	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20849	cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h.  */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
20854/* end confdefs.h.  */
20855
20856#include "xorg-server.h"
20857#if !defined RENDER
20858#error RENDER not defined
20859#endif
20860
20861int
20862main ()
20863{
20864
20865  ;
20866  return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
20870if { (ac_try="$ac_compile"
20871case "(($ac_try" in
20872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873  *) ac_try_echo=$ac_try;;
20874esac
20875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20876$as_echo "$ac_try_echo") >&5
20877  (eval "$ac_compile") 2>conftest.er1
20878  ac_status=$?
20879  grep -v '^ *+' conftest.er1 >conftest.err
20880  rm -f conftest.er1
20881  cat conftest.err >&5
20882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883  (exit $ac_status); } && {
20884	 test -z "$ac_c_werror_flag" ||
20885	 test ! -s conftest.err
20886       } && test -s conftest.$ac_objext; then
20887  _EXT_CHECK=yes
20888else
20889  $as_echo "$as_me: failed program was:" >&5
20890sed 's/^/| /' conftest.$ac_ext >&5
20891
20892	_EXT_CHECK=no
20893fi
20894
20895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896	CFLAGS="$SAVE_CFLAGS"
20897	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20898$as_echo_n "checking if RENDER is defined... " >&6; }
20899	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20900$as_echo "$_EXT_CHECK" >&6; }
20901	if test "$_EXT_CHECK" != no; then
20902		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20903	fi
20904
20905
20906	SAVE_CFLAGS="$CFLAGS"
20907	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20908	cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h.  */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h.  */
20914
20915#include "xorg-server.h"
20916#if !defined XV
20917#error XV not defined
20918#endif
20919
20920int
20921main ()
20922{
20923
20924  ;
20925  return 0;
20926}
20927_ACEOF
20928rm -f conftest.$ac_objext
20929if { (ac_try="$ac_compile"
20930case "(($ac_try" in
20931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932  *) ac_try_echo=$ac_try;;
20933esac
20934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20935$as_echo "$ac_try_echo") >&5
20936  (eval "$ac_compile") 2>conftest.er1
20937  ac_status=$?
20938  grep -v '^ *+' conftest.er1 >conftest.err
20939  rm -f conftest.er1
20940  cat conftest.err >&5
20941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942  (exit $ac_status); } && {
20943	 test -z "$ac_c_werror_flag" ||
20944	 test ! -s conftest.err
20945       } && test -s conftest.$ac_objext; then
20946  _EXT_CHECK=yes
20947else
20948  $as_echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951	_EXT_CHECK=no
20952fi
20953
20954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955	CFLAGS="$SAVE_CFLAGS"
20956	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
20957$as_echo_n "checking if XV is defined... " >&6; }
20958	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20959$as_echo "$_EXT_CHECK" >&6; }
20960	if test "$_EXT_CHECK" != no; then
20961		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20962	fi
20963
20964
20965	SAVE_CFLAGS="$CFLAGS"
20966	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20967	cat >conftest.$ac_ext <<_ACEOF
20968/* confdefs.h.  */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h.  */
20973
20974#include "xorg-server.h"
20975#if !defined DPMSExtension
20976#error DPMSExtension not defined
20977#endif
20978
20979int
20980main ()
20981{
20982
20983  ;
20984  return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext
20988if { (ac_try="$ac_compile"
20989case "(($ac_try" in
20990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991  *) ac_try_echo=$ac_try;;
20992esac
20993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994$as_echo "$ac_try_echo") >&5
20995  (eval "$ac_compile") 2>conftest.er1
20996  ac_status=$?
20997  grep -v '^ *+' conftest.er1 >conftest.err
20998  rm -f conftest.er1
20999  cat conftest.err >&5
21000  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001  (exit $ac_status); } && {
21002	 test -z "$ac_c_werror_flag" ||
21003	 test ! -s conftest.err
21004       } && test -s conftest.$ac_objext; then
21005  _EXT_CHECK=yes
21006else
21007  $as_echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010	_EXT_CHECK=no
21011fi
21012
21013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014	CFLAGS="$SAVE_CFLAGS"
21015	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21016$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21017	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21018$as_echo "$_EXT_CHECK" >&6; }
21019	if test "$_EXT_CHECK" != no; then
21020		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21021	fi
21022
21023
21024# Checks for pkg-config packages
21025
21026
21027if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21028	if test -n "$ac_tool_prefix"; then
21029  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21030set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21032$as_echo_n "checking for $ac_word... " >&6; }
21033if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21034  $as_echo_n "(cached) " >&6
21035else
21036  case $PKG_CONFIG in
21037  [\\/]* | ?:[\\/]*)
21038  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21039  ;;
21040  *)
21041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042for as_dir in $PATH
21043do
21044  IFS=$as_save_IFS
21045  test -z "$as_dir" && as_dir=.
21046  for ac_exec_ext in '' $ac_executable_extensions; do
21047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21048    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21049    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21050    break 2
21051  fi
21052done
21053done
21054IFS=$as_save_IFS
21055
21056  ;;
21057esac
21058fi
21059PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21060if test -n "$PKG_CONFIG"; then
21061  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21062$as_echo "$PKG_CONFIG" >&6; }
21063else
21064  { $as_echo "$as_me:$LINENO: result: no" >&5
21065$as_echo "no" >&6; }
21066fi
21067
21068
21069fi
21070if test -z "$ac_cv_path_PKG_CONFIG"; then
21071  ac_pt_PKG_CONFIG=$PKG_CONFIG
21072  # Extract the first word of "pkg-config", so it can be a program name with args.
21073set dummy pkg-config; ac_word=$2
21074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21075$as_echo_n "checking for $ac_word... " >&6; }
21076if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21077  $as_echo_n "(cached) " >&6
21078else
21079  case $ac_pt_PKG_CONFIG in
21080  [\\/]* | ?:[\\/]*)
21081  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21082  ;;
21083  *)
21084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21085for as_dir in $PATH
21086do
21087  IFS=$as_save_IFS
21088  test -z "$as_dir" && as_dir=.
21089  for ac_exec_ext in '' $ac_executable_extensions; do
21090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21091    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21092    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21093    break 2
21094  fi
21095done
21096done
21097IFS=$as_save_IFS
21098
21099  ;;
21100esac
21101fi
21102ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21103if test -n "$ac_pt_PKG_CONFIG"; then
21104  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21105$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21106else
21107  { $as_echo "$as_me:$LINENO: result: no" >&5
21108$as_echo "no" >&6; }
21109fi
21110
21111  if test "x$ac_pt_PKG_CONFIG" = x; then
21112    PKG_CONFIG=""
21113  else
21114    case $cross_compiling:$ac_tool_warned in
21115yes:)
21116{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21118ac_tool_warned=yes ;;
21119esac
21120    PKG_CONFIG=$ac_pt_PKG_CONFIG
21121  fi
21122else
21123  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21124fi
21125
21126fi
21127if test -n "$PKG_CONFIG"; then
21128	_pkg_min_version=0.9.0
21129	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21130$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21131	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21132		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21133$as_echo "yes" >&6; }
21134	else
21135		{ $as_echo "$as_me:$LINENO: result: no" >&5
21136$as_echo "no" >&6; }
21137		PKG_CONFIG=""
21138	fi
21139
21140fi
21141
21142pkg_failed=no
21143{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21144$as_echo_n "checking for XORG... " >&6; }
21145
21146if test -n "$XORG_CFLAGS"; then
21147    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21148 elif test -n "$PKG_CONFIG"; then
21149    if test -n "$PKG_CONFIG" && \
21150    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21151  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21152  ac_status=$?
21153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154  (exit $ac_status); }; then
21155  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21156else
21157  pkg_failed=yes
21158fi
21159 else
21160    pkg_failed=untried
21161fi
21162if test -n "$XORG_LIBS"; then
21163    pkg_cv_XORG_LIBS="$XORG_LIBS"
21164 elif test -n "$PKG_CONFIG"; then
21165    if test -n "$PKG_CONFIG" && \
21166    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21167  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21168  ac_status=$?
21169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170  (exit $ac_status); }; then
21171  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21172else
21173  pkg_failed=yes
21174fi
21175 else
21176    pkg_failed=untried
21177fi
21178
21179
21180
21181if test $pkg_failed = yes; then
21182
21183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21184        _pkg_short_errors_supported=yes
21185else
21186        _pkg_short_errors_supported=no
21187fi
21188        if test $_pkg_short_errors_supported = yes; then
21189	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21190        else
21191	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21192        fi
21193	# Put the nasty error message in config.log where it belongs
21194	echo "$XORG_PKG_ERRORS" >&5
21195
21196	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21197
21198$XORG_PKG_ERRORS
21199
21200Consider adjusting the PKG_CONFIG_PATH environment variable if you
21201installed software in a non-standard prefix.
21202
21203Alternatively, you may set the environment variables XORG_CFLAGS
21204and XORG_LIBS to avoid the need to call pkg-config.
21205See the pkg-config man page for more details.
21206" >&5
21207$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21208
21209$XORG_PKG_ERRORS
21210
21211Consider adjusting the PKG_CONFIG_PATH environment variable if you
21212installed software in a non-standard prefix.
21213
21214Alternatively, you may set the environment variables XORG_CFLAGS
21215and XORG_LIBS to avoid the need to call pkg-config.
21216See the pkg-config man page for more details.
21217" >&2;}
21218   { (exit 1); exit 1; }; }
21219elif test $pkg_failed = untried; then
21220	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21222{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21223is in your PATH or set the PKG_CONFIG environment variable to the full
21224path to pkg-config.
21225
21226Alternatively, you may set the environment variables XORG_CFLAGS
21227and XORG_LIBS to avoid the need to call pkg-config.
21228See the pkg-config man page for more details.
21229
21230To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21231See \`config.log' for more details." >&5
21232$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21233is in your PATH or set the PKG_CONFIG environment variable to the full
21234path to pkg-config.
21235
21236Alternatively, you may set the environment variables XORG_CFLAGS
21237and XORG_LIBS to avoid the need to call pkg-config.
21238See the pkg-config man page for more details.
21239
21240To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21241See \`config.log' for more details." >&2;}
21242   { (exit 1); exit 1; }; }; }
21243else
21244	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21245	XORG_LIBS=$pkg_cv_XORG_LIBS
21246        { $as_echo "$as_me:$LINENO: result: yes" >&5
21247$as_echo "yes" >&6; }
21248	:
21249fi
21250sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21251
21252# Checks for libraries.
21253SAVE_CPPFLAGS="$CPPFLAGS"
21254CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21255{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21256$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21257if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21258  $as_echo_n "(cached) " >&6
21259else
21260  cat >conftest.$ac_ext <<_ACEOF
21261/* confdefs.h.  */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h.  */
21266#include "xorg-server.h"
21267
21268int
21269main ()
21270{
21271#ifndef XSERVER_LIBPCIACCESS
21272  (void) XSERVER_LIBPCIACCESS;
21273#endif
21274
21275  ;
21276  return 0;
21277}
21278_ACEOF
21279rm -f conftest.$ac_objext
21280if { (ac_try="$ac_compile"
21281case "(($ac_try" in
21282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283  *) ac_try_echo=$ac_try;;
21284esac
21285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21286$as_echo "$ac_try_echo") >&5
21287  (eval "$ac_compile") 2>conftest.er1
21288  ac_status=$?
21289  grep -v '^ *+' conftest.er1 >conftest.err
21290  rm -f conftest.er1
21291  cat conftest.err >&5
21292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293  (exit $ac_status); } && {
21294	 test -z "$ac_c_werror_flag" ||
21295	 test ! -s conftest.err
21296       } && test -s conftest.$ac_objext; then
21297  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21298else
21299  $as_echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
21302	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21303fi
21304
21305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306fi
21307{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21308$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21309if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21310  XSERVER_LIBPCIACCESS=yes
21311else
21312  XSERVER_LIBPCIACCESS=no
21313fi
21314
21315if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21316  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21317$as_echo_n "checking for xf1bpp.h... " >&6; }
21318if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21319  $as_echo_n "(cached) " >&6
21320fi
21321{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21322$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21323else
21324  # Is the header compilable?
21325{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
21326$as_echo_n "checking xf1bpp.h usability... " >&6; }
21327cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h.  */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h.  */
21333$ac_includes_default
21334#include <xf1bpp.h>
21335_ACEOF
21336rm -f conftest.$ac_objext
21337if { (ac_try="$ac_compile"
21338case "(($ac_try" in
21339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340  *) ac_try_echo=$ac_try;;
21341esac
21342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21343$as_echo "$ac_try_echo") >&5
21344  (eval "$ac_compile") 2>conftest.er1
21345  ac_status=$?
21346  grep -v '^ *+' conftest.er1 >conftest.err
21347  rm -f conftest.er1
21348  cat conftest.err >&5
21349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350  (exit $ac_status); } && {
21351	 test -z "$ac_c_werror_flag" ||
21352	 test ! -s conftest.err
21353       } && test -s conftest.$ac_objext; then
21354  ac_header_compiler=yes
21355else
21356  $as_echo "$as_me: failed program was:" >&5
21357sed 's/^/| /' conftest.$ac_ext >&5
21358
21359	ac_header_compiler=no
21360fi
21361
21362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21364$as_echo "$ac_header_compiler" >&6; }
21365
21366# Is the header present?
21367{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
21368$as_echo_n "checking xf1bpp.h presence... " >&6; }
21369cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h.  */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h.  */
21375#include <xf1bpp.h>
21376_ACEOF
21377if { (ac_try="$ac_cpp conftest.$ac_ext"
21378case "(($ac_try" in
21379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380  *) ac_try_echo=$ac_try;;
21381esac
21382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21383$as_echo "$ac_try_echo") >&5
21384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21385  ac_status=$?
21386  grep -v '^ *+' conftest.er1 >conftest.err
21387  rm -f conftest.er1
21388  cat conftest.err >&5
21389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390  (exit $ac_status); } >/dev/null && {
21391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21392	 test ! -s conftest.err
21393       }; then
21394  ac_header_preproc=yes
21395else
21396  $as_echo "$as_me: failed program was:" >&5
21397sed 's/^/| /' conftest.$ac_ext >&5
21398
21399  ac_header_preproc=no
21400fi
21401
21402rm -f conftest.err conftest.$ac_ext
21403{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21404$as_echo "$ac_header_preproc" >&6; }
21405
21406# So?  What about this header?
21407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21408  yes:no: )
21409    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21410$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21411    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
21412$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
21413    ac_header_preproc=yes
21414    ;;
21415  no:yes:* )
21416    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
21417$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
21418    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
21419$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
21420    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
21421$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
21422    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21423$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21424    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
21425$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
21426    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
21427$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
21428    ( cat <<\_ASBOX
21429## ---------------------------------------------------------------------- ##
21430## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21431## ---------------------------------------------------------------------- ##
21432_ASBOX
21433     ) | sed "s/^/$as_me: WARNING:     /" >&2
21434    ;;
21435esac
21436{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21437$as_echo_n "checking for xf1bpp.h... " >&6; }
21438if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21439  $as_echo_n "(cached) " >&6
21440else
21441  ac_cv_header_xf1bpp_h=$ac_header_preproc
21442fi
21443{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21444$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21445
21446fi
21447if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
21448
21449cat >>confdefs.h <<\_ACEOF
21450#define HAVE_XF1BPP 1
21451_ACEOF
21452
21453fi
21454
21455
21456if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21457  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21458$as_echo_n "checking for xf4bpp.h... " >&6; }
21459if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21460  $as_echo_n "(cached) " >&6
21461fi
21462{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21463$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21464else
21465  # Is the header compilable?
21466{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
21467$as_echo_n "checking xf4bpp.h usability... " >&6; }
21468cat >conftest.$ac_ext <<_ACEOF
21469/* confdefs.h.  */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h.  */
21474$ac_includes_default
21475#include <xf4bpp.h>
21476_ACEOF
21477rm -f conftest.$ac_objext
21478if { (ac_try="$ac_compile"
21479case "(($ac_try" in
21480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481  *) ac_try_echo=$ac_try;;
21482esac
21483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21484$as_echo "$ac_try_echo") >&5
21485  (eval "$ac_compile") 2>conftest.er1
21486  ac_status=$?
21487  grep -v '^ *+' conftest.er1 >conftest.err
21488  rm -f conftest.er1
21489  cat conftest.err >&5
21490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491  (exit $ac_status); } && {
21492	 test -z "$ac_c_werror_flag" ||
21493	 test ! -s conftest.err
21494       } && test -s conftest.$ac_objext; then
21495  ac_header_compiler=yes
21496else
21497  $as_echo "$as_me: failed program was:" >&5
21498sed 's/^/| /' conftest.$ac_ext >&5
21499
21500	ac_header_compiler=no
21501fi
21502
21503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21505$as_echo "$ac_header_compiler" >&6; }
21506
21507# Is the header present?
21508{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
21509$as_echo_n "checking xf4bpp.h presence... " >&6; }
21510cat >conftest.$ac_ext <<_ACEOF
21511/* confdefs.h.  */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h.  */
21516#include <xf4bpp.h>
21517_ACEOF
21518if { (ac_try="$ac_cpp conftest.$ac_ext"
21519case "(($ac_try" in
21520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521  *) ac_try_echo=$ac_try;;
21522esac
21523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21524$as_echo "$ac_try_echo") >&5
21525  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21526  ac_status=$?
21527  grep -v '^ *+' conftest.er1 >conftest.err
21528  rm -f conftest.er1
21529  cat conftest.err >&5
21530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531  (exit $ac_status); } >/dev/null && {
21532	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21533	 test ! -s conftest.err
21534       }; then
21535  ac_header_preproc=yes
21536else
21537  $as_echo "$as_me: failed program was:" >&5
21538sed 's/^/| /' conftest.$ac_ext >&5
21539
21540  ac_header_preproc=no
21541fi
21542
21543rm -f conftest.err conftest.$ac_ext
21544{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21545$as_echo "$ac_header_preproc" >&6; }
21546
21547# So?  What about this header?
21548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21549  yes:no: )
21550    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21551$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21552    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
21553$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
21554    ac_header_preproc=yes
21555    ;;
21556  no:yes:* )
21557    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
21558$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
21559    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
21560$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
21561    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
21562$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
21563    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21564$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21565    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
21566$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
21567    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
21568$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
21569    ( cat <<\_ASBOX
21570## ---------------------------------------------------------------------- ##
21571## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21572## ---------------------------------------------------------------------- ##
21573_ASBOX
21574     ) | sed "s/^/$as_me: WARNING:     /" >&2
21575    ;;
21576esac
21577{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21578$as_echo_n "checking for xf4bpp.h... " >&6; }
21579if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21580  $as_echo_n "(cached) " >&6
21581else
21582  ac_cv_header_xf4bpp_h=$ac_header_preproc
21583fi
21584{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21585$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21586
21587fi
21588if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
21589
21590cat >>confdefs.h <<\_ACEOF
21591#define HAVE_XF4BPP 1
21592_ACEOF
21593
21594fi
21595
21596
21597CPPFLAGS="$SAVE_CPPFLAGS"
21598
21599if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21600
21601pkg_failed=no
21602{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21603$as_echo_n "checking for PCIACCESS... " >&6; }
21604
21605if test -n "$PCIACCESS_CFLAGS"; then
21606    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21607 elif test -n "$PKG_CONFIG"; then
21608    if test -n "$PKG_CONFIG" && \
21609    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21610  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21611  ac_status=$?
21612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613  (exit $ac_status); }; then
21614  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21615else
21616  pkg_failed=yes
21617fi
21618 else
21619    pkg_failed=untried
21620fi
21621if test -n "$PCIACCESS_LIBS"; then
21622    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21623 elif test -n "$PKG_CONFIG"; then
21624    if test -n "$PKG_CONFIG" && \
21625    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21626  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21627  ac_status=$?
21628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629  (exit $ac_status); }; then
21630  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21631else
21632  pkg_failed=yes
21633fi
21634 else
21635    pkg_failed=untried
21636fi
21637
21638
21639
21640if test $pkg_failed = yes; then
21641
21642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21643        _pkg_short_errors_supported=yes
21644else
21645        _pkg_short_errors_supported=no
21646fi
21647        if test $_pkg_short_errors_supported = yes; then
21648	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21649        else
21650	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21651        fi
21652	# Put the nasty error message in config.log where it belongs
21653	echo "$PCIACCESS_PKG_ERRORS" >&5
21654
21655	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21656
21657$PCIACCESS_PKG_ERRORS
21658
21659Consider adjusting the PKG_CONFIG_PATH environment variable if you
21660installed software in a non-standard prefix.
21661
21662Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21663and PCIACCESS_LIBS to avoid the need to call pkg-config.
21664See the pkg-config man page for more details.
21665" >&5
21666$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21667
21668$PCIACCESS_PKG_ERRORS
21669
21670Consider adjusting the PKG_CONFIG_PATH environment variable if you
21671installed software in a non-standard prefix.
21672
21673Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21674and PCIACCESS_LIBS to avoid the need to call pkg-config.
21675See the pkg-config man page for more details.
21676" >&2;}
21677   { (exit 1); exit 1; }; }
21678elif test $pkg_failed = untried; then
21679	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21681{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21682is in your PATH or set the PKG_CONFIG environment variable to the full
21683path to pkg-config.
21684
21685Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21686and PCIACCESS_LIBS to avoid the need to call pkg-config.
21687See the pkg-config man page for more details.
21688
21689To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21690See \`config.log' for more details." >&5
21691$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21692is in your PATH or set the PKG_CONFIG environment variable to the full
21693path to pkg-config.
21694
21695Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21696and PCIACCESS_LIBS to avoid the need to call pkg-config.
21697See the pkg-config man page for more details.
21698
21699To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21700See \`config.log' for more details." >&2;}
21701   { (exit 1); exit 1; }; }; }
21702else
21703	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21704	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21705        { $as_echo "$as_me:$LINENO: result: yes" >&5
21706$as_echo "yes" >&6; }
21707	:
21708fi
21709    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21710fi
21711 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21712  XSERVER_LIBPCIACCESS_TRUE=
21713  XSERVER_LIBPCIACCESS_FALSE='#'
21714else
21715  XSERVER_LIBPCIACCESS_TRUE='#'
21716  XSERVER_LIBPCIACCESS_FALSE=
21717fi
21718
21719
21720save_CFLAGS="$CFLAGS"
21721CFLAGS="$XORG_CFLAGS"
21722{ $as_echo "$as_me:$LINENO: checking whether xf86ConfigIsaEntity is declared" >&5
21723$as_echo_n "checking whether xf86ConfigIsaEntity is declared... " >&6; }
21724if test "${ac_cv_have_decl_xf86ConfigIsaEntity+set}" = set; then
21725  $as_echo_n "(cached) " >&6
21726else
21727  cat >conftest.$ac_ext <<_ACEOF
21728/* confdefs.h.  */
21729_ACEOF
21730cat confdefs.h >>conftest.$ac_ext
21731cat >>conftest.$ac_ext <<_ACEOF
21732/* end confdefs.h.  */
21733#include "xf86.h"
21734
21735int
21736main ()
21737{
21738#ifndef xf86ConfigIsaEntity
21739  (void) xf86ConfigIsaEntity;
21740#endif
21741
21742  ;
21743  return 0;
21744}
21745_ACEOF
21746rm -f conftest.$ac_objext
21747if { (ac_try="$ac_compile"
21748case "(($ac_try" in
21749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750  *) ac_try_echo=$ac_try;;
21751esac
21752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21753$as_echo "$ac_try_echo") >&5
21754  (eval "$ac_compile") 2>conftest.er1
21755  ac_status=$?
21756  grep -v '^ *+' conftest.er1 >conftest.err
21757  rm -f conftest.er1
21758  cat conftest.err >&5
21759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760  (exit $ac_status); } && {
21761	 test -z "$ac_c_werror_flag" ||
21762	 test ! -s conftest.err
21763       } && test -s conftest.$ac_objext; then
21764  ac_cv_have_decl_xf86ConfigIsaEntity=yes
21765else
21766  $as_echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769	ac_cv_have_decl_xf86ConfigIsaEntity=no
21770fi
21771
21772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773fi
21774{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ConfigIsaEntity" >&5
21775$as_echo "$ac_cv_have_decl_xf86ConfigIsaEntity" >&6; }
21776if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = x""yes; then
21777
21778cat >>confdefs.h <<\_ACEOF
21779#define HAVE_ISA 1
21780_ACEOF
21781
21782fi
21783
21784CFLAGS="$save_CFLAGS"
21785
21786# Checks for header files.
21787{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21788$as_echo_n "checking for ANSI C header files... " >&6; }
21789if test "${ac_cv_header_stdc+set}" = set; then
21790  $as_echo_n "(cached) " >&6
21791else
21792  cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h.  */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h.  */
21798#include <stdlib.h>
21799#include <stdarg.h>
21800#include <string.h>
21801#include <float.h>
21802
21803int
21804main ()
21805{
21806
21807  ;
21808  return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (ac_try="$ac_compile"
21813case "(($ac_try" in
21814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815  *) ac_try_echo=$ac_try;;
21816esac
21817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21818$as_echo "$ac_try_echo") >&5
21819  (eval "$ac_compile") 2>conftest.er1
21820  ac_status=$?
21821  grep -v '^ *+' conftest.er1 >conftest.err
21822  rm -f conftest.er1
21823  cat conftest.err >&5
21824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825  (exit $ac_status); } && {
21826	 test -z "$ac_c_werror_flag" ||
21827	 test ! -s conftest.err
21828       } && test -s conftest.$ac_objext; then
21829  ac_cv_header_stdc=yes
21830else
21831  $as_echo "$as_me: failed program was:" >&5
21832sed 's/^/| /' conftest.$ac_ext >&5
21833
21834	ac_cv_header_stdc=no
21835fi
21836
21837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838
21839if test $ac_cv_header_stdc = yes; then
21840  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21841  cat >conftest.$ac_ext <<_ACEOF
21842/* confdefs.h.  */
21843_ACEOF
21844cat confdefs.h >>conftest.$ac_ext
21845cat >>conftest.$ac_ext <<_ACEOF
21846/* end confdefs.h.  */
21847#include <string.h>
21848
21849_ACEOF
21850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21851  $EGREP "memchr" >/dev/null 2>&1; then
21852  :
21853else
21854  ac_cv_header_stdc=no
21855fi
21856rm -f conftest*
21857
21858fi
21859
21860if test $ac_cv_header_stdc = yes; then
21861  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21862  cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h.  */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h.  */
21868#include <stdlib.h>
21869
21870_ACEOF
21871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21872  $EGREP "free" >/dev/null 2>&1; then
21873  :
21874else
21875  ac_cv_header_stdc=no
21876fi
21877rm -f conftest*
21878
21879fi
21880
21881if test $ac_cv_header_stdc = yes; then
21882  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21883  if test "$cross_compiling" = yes; then
21884  :
21885else
21886  cat >conftest.$ac_ext <<_ACEOF
21887/* confdefs.h.  */
21888_ACEOF
21889cat confdefs.h >>conftest.$ac_ext
21890cat >>conftest.$ac_ext <<_ACEOF
21891/* end confdefs.h.  */
21892#include <ctype.h>
21893#include <stdlib.h>
21894#if ((' ' & 0x0FF) == 0x020)
21895# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21896# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21897#else
21898# define ISLOWER(c) \
21899		   (('a' <= (c) && (c) <= 'i') \
21900		     || ('j' <= (c) && (c) <= 'r') \
21901		     || ('s' <= (c) && (c) <= 'z'))
21902# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21903#endif
21904
21905#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21906int
21907main ()
21908{
21909  int i;
21910  for (i = 0; i < 256; i++)
21911    if (XOR (islower (i), ISLOWER (i))
21912	|| toupper (i) != TOUPPER (i))
21913      return 2;
21914  return 0;
21915}
21916_ACEOF
21917rm -f conftest$ac_exeext
21918if { (ac_try="$ac_link"
21919case "(($ac_try" in
21920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921  *) ac_try_echo=$ac_try;;
21922esac
21923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21924$as_echo "$ac_try_echo") >&5
21925  (eval "$ac_link") 2>&5
21926  ac_status=$?
21927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21929  { (case "(($ac_try" in
21930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931  *) ac_try_echo=$ac_try;;
21932esac
21933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934$as_echo "$ac_try_echo") >&5
21935  (eval "$ac_try") 2>&5
21936  ac_status=$?
21937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938  (exit $ac_status); }; }; then
21939  :
21940else
21941  $as_echo "$as_me: program exited with status $ac_status" >&5
21942$as_echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
21944
21945( exit $ac_status )
21946ac_cv_header_stdc=no
21947fi
21948rm -rf conftest.dSYM
21949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21950fi
21951
21952
21953fi
21954fi
21955{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21956$as_echo "$ac_cv_header_stdc" >&6; }
21957if test $ac_cv_header_stdc = yes; then
21958
21959cat >>confdefs.h <<\_ACEOF
21960#define STDC_HEADERS 1
21961_ACEOF
21962
21963fi
21964
21965
21966# Checks for functions (often defined as inlines in compiler.h)
21967{ $as_echo "$as_me:$LINENO: checking for inb" >&5
21968$as_echo_n "checking for inb... " >&6; }
21969cat >conftest.$ac_ext <<_ACEOF
21970/* confdefs.h.  */
21971_ACEOF
21972cat confdefs.h >>conftest.$ac_ext
21973cat >>conftest.$ac_ext <<_ACEOF
21974/* end confdefs.h.  */
21975
21976#include "util/AsmMacros.h"
21977
21978int main() {
21979	int x = inb(0);
21980	return x;
21981}
21982
21983_ACEOF
21984rm -f conftest.$ac_objext conftest$ac_exeext
21985if { (ac_try="$ac_link"
21986case "(($ac_try" in
21987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988  *) ac_try_echo=$ac_try;;
21989esac
21990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21991$as_echo "$ac_try_echo") >&5
21992  (eval "$ac_link") 2>conftest.er1
21993  ac_status=$?
21994  grep -v '^ *+' conftest.er1 >conftest.err
21995  rm -f conftest.er1
21996  cat conftest.err >&5
21997  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998  (exit $ac_status); } && {
21999	 test -z "$ac_c_werror_flag" ||
22000	 test ! -s conftest.err
22001       } && test -s conftest$ac_exeext && {
22002	 test "$cross_compiling" = yes ||
22003	 $as_test_x conftest$ac_exeext
22004       }; then
22005  HAVE_INB=yes
22006else
22007  $as_echo "$as_me: failed program was:" >&5
22008sed 's/^/| /' conftest.$ac_ext >&5
22009
22010	HAVE_INB=no
22011fi
22012
22013rm -rf conftest.dSYM
22014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22015      conftest$ac_exeext conftest.$ac_ext
22016{ $as_echo "$as_me:$LINENO: result: $HAVE_INB" >&5
22017$as_echo "$HAVE_INB" >&6; }
22018 if test x$HAVE_INB = xyes; then
22019  BUILD_UTILS_TRUE=
22020  BUILD_UTILS_FALSE='#'
22021else
22022  BUILD_UTILS_TRUE='#'
22023  BUILD_UTILS_FALSE=
22024fi
22025
22026
22027
22028
22029
22030DRIVER_NAME=chips
22031
22032
22033
22034
22035
22036if test x$APP_MAN_SUFFIX = x    ; then
22037    APP_MAN_SUFFIX=1
22038fi
22039if test x$APP_MAN_DIR = x    ; then
22040    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22041fi
22042
22043if test x$LIB_MAN_SUFFIX = x    ; then
22044    LIB_MAN_SUFFIX=3
22045fi
22046if test x$LIB_MAN_DIR = x    ; then
22047    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22048fi
22049
22050if test x$FILE_MAN_SUFFIX = x    ; then
22051    case $host_os in
22052	solaris*)	FILE_MAN_SUFFIX=4  ;;
22053	*)		FILE_MAN_SUFFIX=5  ;;
22054    esac
22055fi
22056if test x$FILE_MAN_DIR = x    ; then
22057    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22058fi
22059
22060if test x$MISC_MAN_SUFFIX = x    ; then
22061    case $host_os in
22062	solaris*)	MISC_MAN_SUFFIX=5  ;;
22063	*)		MISC_MAN_SUFFIX=7  ;;
22064    esac
22065fi
22066if test x$MISC_MAN_DIR = x    ; then
22067    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22068fi
22069
22070if test x$DRIVER_MAN_SUFFIX = x    ; then
22071    case $host_os in
22072	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22073	*)		DRIVER_MAN_SUFFIX=4  ;;
22074    esac
22075fi
22076if test x$DRIVER_MAN_DIR = x    ; then
22077    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22078fi
22079
22080if test x$ADMIN_MAN_SUFFIX = x    ; then
22081    case $host_os in
22082	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22083	*)		ADMIN_MAN_SUFFIX=8  ;;
22084    esac
22085fi
22086if test x$ADMIN_MAN_DIR = x    ; then
22087    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22088fi
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106# Check whether --with-release-version was given.
22107if test "${with_release_version+set}" = set; then
22108  withval=$with_release_version; RELEASE_VERSION="$withval"
22109else
22110  RELEASE_VERSION=""
22111fi
22112
22113	if test "x$RELEASE_VERSION" != "x"; then
22114		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22115		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22116		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22117$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22118	fi
22119
22120cat >>confdefs.h <<_ACEOF
22121#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22122_ACEOF
22123
22124	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22125	if test "x$PVM" = "x"; then
22126		PVM="0"
22127	fi
22128
22129cat >>confdefs.h <<_ACEOF
22130#define PACKAGE_VERSION_MINOR $PVM
22131_ACEOF
22132
22133	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22134	if test "x$PVP" = "x"; then
22135		PVP="0"
22136	fi
22137
22138cat >>confdefs.h <<_ACEOF
22139#define PACKAGE_VERSION_PATCHLEVEL $PVP
22140_ACEOF
22141
22142
22143
22144
22145XORG_SGML_PATH=$prefix/share/sgml
22146HAVE_DEFS_ENT=
22147
22148if test x"$cross_compiling" = x"yes" ; then
22149  HAVE_DEFS_ENT=no
22150else
22151  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22152{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22153$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22154if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22155  $as_echo_n "(cached) " >&6
22156else
22157  test "$cross_compiling" = yes &&
22158  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22159$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22160   { (exit 1); exit 1; }; }
22161if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22162  eval "$as_ac_File=yes"
22163else
22164  eval "$as_ac_File=no"
22165fi
22166fi
22167ac_res=`eval 'as_val=${'$as_ac_File'}
22168		 $as_echo "$as_val"'`
22169	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22170$as_echo "$ac_res" >&6; }
22171as_val=`eval 'as_val=${'$as_ac_File'}
22172		 $as_echo "$as_val"'`
22173   if test "x$as_val" = x""yes; then
22174  HAVE_DEFS_ENT=yes
22175fi
22176
22177fi
22178
22179# Extract the first word of "linuxdoc", so it can be a program name with args.
22180set dummy linuxdoc; ac_word=$2
22181{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22182$as_echo_n "checking for $ac_word... " >&6; }
22183if test "${ac_cv_path_LINUXDOC+set}" = set; then
22184  $as_echo_n "(cached) " >&6
22185else
22186  case $LINUXDOC in
22187  [\\/]* | ?:[\\/]*)
22188  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22189  ;;
22190  *)
22191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22192for as_dir in $PATH
22193do
22194  IFS=$as_save_IFS
22195  test -z "$as_dir" && as_dir=.
22196  for ac_exec_ext in '' $ac_executable_extensions; do
22197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22198    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22199    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22200    break 2
22201  fi
22202done
22203done
22204IFS=$as_save_IFS
22205
22206  ;;
22207esac
22208fi
22209LINUXDOC=$ac_cv_path_LINUXDOC
22210if test -n "$LINUXDOC"; then
22211  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22212$as_echo "$LINUXDOC" >&6; }
22213else
22214  { $as_echo "$as_me:$LINENO: result: no" >&5
22215$as_echo "no" >&6; }
22216fi
22217
22218
22219# Extract the first word of "ps2pdf", so it can be a program name with args.
22220set dummy ps2pdf; ac_word=$2
22221{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22222$as_echo_n "checking for $ac_word... " >&6; }
22223if test "${ac_cv_path_PS2PDF+set}" = set; then
22224  $as_echo_n "(cached) " >&6
22225else
22226  case $PS2PDF in
22227  [\\/]* | ?:[\\/]*)
22228  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22229  ;;
22230  *)
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  for ac_exec_ext in '' $ac_executable_extensions; do
22237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22238    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22239    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22240    break 2
22241  fi
22242done
22243done
22244IFS=$as_save_IFS
22245
22246  ;;
22247esac
22248fi
22249PS2PDF=$ac_cv_path_PS2PDF
22250if test -n "$PS2PDF"; then
22251  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22252$as_echo "$PS2PDF" >&6; }
22253else
22254  { $as_echo "$as_me:$LINENO: result: no" >&5
22255$as_echo "no" >&6; }
22256fi
22257
22258
22259
22260{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22261$as_echo_n "checking Whether to build documentation... " >&6; }
22262
22263if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22264   BUILDDOC=yes
22265else
22266   BUILDDOC=no
22267fi
22268
22269 if test x$BUILDDOC = xyes; then
22270  BUILD_LINUXDOC_TRUE=
22271  BUILD_LINUXDOC_FALSE='#'
22272else
22273  BUILD_LINUXDOC_TRUE='#'
22274  BUILD_LINUXDOC_FALSE=
22275fi
22276
22277
22278{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22279$as_echo "$BUILDDOC" >&6; }
22280
22281{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22282$as_echo_n "checking Whether to build pdf documentation... " >&6; }
22283
22284if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22285   BUILDPDFDOC=yes
22286else
22287   BUILDPDFDOC=no
22288fi
22289
22290 if test x$BUILDPDFDOC = xyes; then
22291  BUILD_PDFDOC_TRUE=
22292  BUILD_PDFDOC_FALSE='#'
22293else
22294  BUILD_PDFDOC_TRUE='#'
22295  BUILD_PDFDOC_FALSE=
22296fi
22297
22298
22299{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22300$as_echo "$BUILDPDFDOC" >&6; }
22301
22302MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22303MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22304MAKE_PDF="$PS2PDF"
22305MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22306
22307
22308
22309
22310
22311
22312
22313ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
22314
22315cat >confcache <<\_ACEOF
22316# This file is a shell script that caches the results of configure
22317# tests run on this system so they can be shared between configure
22318# scripts and configure runs, see configure's option --config-cache.
22319# It is not useful on other systems.  If it contains results you don't
22320# want to keep, you may remove or edit it.
22321#
22322# config.status only pays attention to the cache file if you give it
22323# the --recheck option to rerun configure.
22324#
22325# `ac_cv_env_foo' variables (set or unset) will be overridden when
22326# loading this file, other *unset* `ac_cv_foo' will be assigned the
22327# following values.
22328
22329_ACEOF
22330
22331# The following way of writing the cache mishandles newlines in values,
22332# but we know of no workaround that is simple, portable, and efficient.
22333# So, we kill variables containing newlines.
22334# Ultrix sh set writes to stderr and can't be redirected directly,
22335# and sets the high bit in the cache file unless we assign to the vars.
22336(
22337  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22338    eval ac_val=\$$ac_var
22339    case $ac_val in #(
22340    *${as_nl}*)
22341      case $ac_var in #(
22342      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22344      esac
22345      case $ac_var in #(
22346      _ | IFS | as_nl) ;; #(
22347      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22348      *) $as_unset $ac_var ;;
22349      esac ;;
22350    esac
22351  done
22352
22353  (set) 2>&1 |
22354    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22355    *${as_nl}ac_space=\ *)
22356      # `set' does not quote correctly, so add quotes (double-quote
22357      # substitution turns \\\\ into \\, and sed turns \\ into \).
22358      sed -n \
22359	"s/'/'\\\\''/g;
22360	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22361      ;; #(
22362    *)
22363      # `set' quotes correctly as required by POSIX, so do not add quotes.
22364      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22365      ;;
22366    esac |
22367    sort
22368) |
22369  sed '
22370     /^ac_cv_env_/b end
22371     t clear
22372     :clear
22373     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22374     t end
22375     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22376     :end' >>confcache
22377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22378  if test -w "$cache_file"; then
22379    test "x$cache_file" != "x/dev/null" &&
22380      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22381$as_echo "$as_me: updating cache $cache_file" >&6;}
22382    cat confcache >$cache_file
22383  else
22384    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22385$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22386  fi
22387fi
22388rm -f confcache
22389
22390test "x$prefix" = xNONE && prefix=$ac_default_prefix
22391# Let make expand exec_prefix.
22392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22393
22394DEFS=-DHAVE_CONFIG_H
22395
22396ac_libobjs=
22397ac_ltlibobjs=
22398for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22399  # 1. Remove the extension, and $U if already installed.
22400  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22401  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22402  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22403  #    will be set to the directory where LIBOBJS objects are built.
22404  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22405  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22406done
22407LIBOBJS=$ac_libobjs
22408
22409LTLIBOBJS=$ac_ltlibobjs
22410
22411
22412if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22413  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22414Usually this means the macro was only invoked conditionally." >&5
22415$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22416Usually this means the macro was only invoked conditionally." >&2;}
22417   { (exit 1); exit 1; }; }
22418fi
22419if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22420  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22421Usually this means the macro was only invoked conditionally." >&5
22422$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22423Usually this means the macro was only invoked conditionally." >&2;}
22424   { (exit 1); exit 1; }; }
22425fi
22426if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22427  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22428Usually this means the macro was only invoked conditionally." >&5
22429$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22430Usually this means the macro was only invoked conditionally." >&2;}
22431   { (exit 1); exit 1; }; }
22432fi
22433if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22434  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22435Usually this means the macro was only invoked conditionally." >&5
22436$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22437Usually this means the macro was only invoked conditionally." >&2;}
22438   { (exit 1); exit 1; }; }
22439fi
22440if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22441  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22442Usually this means the macro was only invoked conditionally." >&5
22443$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22444Usually this means the macro was only invoked conditionally." >&2;}
22445   { (exit 1); exit 1; }; }
22446fi
22447if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22448  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22449Usually this means the macro was only invoked conditionally." >&5
22450$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22451Usually this means the macro was only invoked conditionally." >&2;}
22452   { (exit 1); exit 1; }; }
22453fi
22454if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
22455  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_UTILS\" was never defined.
22456Usually this means the macro was only invoked conditionally." >&5
22457$as_echo "$as_me: error: conditional \"BUILD_UTILS\" was never defined.
22458Usually this means the macro was only invoked conditionally." >&2;}
22459   { (exit 1); exit 1; }; }
22460fi
22461if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22462  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22463Usually this means the macro was only invoked conditionally." >&5
22464$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22465Usually this means the macro was only invoked conditionally." >&2;}
22466   { (exit 1); exit 1; }; }
22467fi
22468if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22469  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22470Usually this means the macro was only invoked conditionally." >&5
22471$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22472Usually this means the macro was only invoked conditionally." >&2;}
22473   { (exit 1); exit 1; }; }
22474fi
22475
22476: ${CONFIG_STATUS=./config.status}
22477ac_write_fail=0
22478ac_clean_files_save=$ac_clean_files
22479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22480{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22481$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22482cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22483#! $SHELL
22484# Generated by $as_me.
22485# Run this file to recreate the current configuration.
22486# Compiler output produced by configure, useful for debugging
22487# configure, is in config.log if it exists.
22488
22489debug=false
22490ac_cs_recheck=false
22491ac_cs_silent=false
22492SHELL=\${CONFIG_SHELL-$SHELL}
22493_ACEOF
22494
22495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22496## --------------------- ##
22497## M4sh Initialization.  ##
22498## --------------------- ##
22499
22500# Be more Bourne compatible
22501DUALCASE=1; export DUALCASE # for MKS sh
22502if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22503  emulate sh
22504  NULLCMD=:
22505  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22506  # is contrary to our usage.  Disable this feature.
22507  alias -g '${1+"$@"}'='"$@"'
22508  setopt NO_GLOB_SUBST
22509else
22510  case `(set -o) 2>/dev/null` in
22511  *posix*) set -o posix ;;
22512esac
22513
22514fi
22515
22516
22517
22518
22519# PATH needs CR
22520# Avoid depending upon Character Ranges.
22521as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22522as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22523as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22524as_cr_digits='0123456789'
22525as_cr_alnum=$as_cr_Letters$as_cr_digits
22526
22527as_nl='
22528'
22529export as_nl
22530# Printing a long string crashes Solaris 7 /usr/bin/printf.
22531as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22534if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22535  as_echo='printf %s\n'
22536  as_echo_n='printf %s'
22537else
22538  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22539    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22540    as_echo_n='/usr/ucb/echo -n'
22541  else
22542    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22543    as_echo_n_body='eval
22544      arg=$1;
22545      case $arg in
22546      *"$as_nl"*)
22547	expr "X$arg" : "X\\(.*\\)$as_nl";
22548	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22549      esac;
22550      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22551    '
22552    export as_echo_n_body
22553    as_echo_n='sh -c $as_echo_n_body as_echo'
22554  fi
22555  export as_echo_body
22556  as_echo='sh -c $as_echo_body as_echo'
22557fi
22558
22559# The user is always right.
22560if test "${PATH_SEPARATOR+set}" != set; then
22561  PATH_SEPARATOR=:
22562  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22563    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22564      PATH_SEPARATOR=';'
22565  }
22566fi
22567
22568# Support unset when possible.
22569if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22570  as_unset=unset
22571else
22572  as_unset=false
22573fi
22574
22575
22576# IFS
22577# We need space, tab and new line, in precisely that order.  Quoting is
22578# there to prevent editors from complaining about space-tab.
22579# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22580# splitting by setting IFS to empty value.)
22581IFS=" ""	$as_nl"
22582
22583# Find who we are.  Look in the path if we contain no directory separator.
22584case $0 in
22585  *[\\/]* ) as_myself=$0 ;;
22586  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22587for as_dir in $PATH
22588do
22589  IFS=$as_save_IFS
22590  test -z "$as_dir" && as_dir=.
22591  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22592done
22593IFS=$as_save_IFS
22594
22595     ;;
22596esac
22597# We did not find ourselves, most probably we were run as `sh COMMAND'
22598# in which case we are not to be found in the path.
22599if test "x$as_myself" = x; then
22600  as_myself=$0
22601fi
22602if test ! -f "$as_myself"; then
22603  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22604  { (exit 1); exit 1; }
22605fi
22606
22607# Work around bugs in pre-3.0 UWIN ksh.
22608for as_var in ENV MAIL MAILPATH
22609do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22610done
22611PS1='$ '
22612PS2='> '
22613PS4='+ '
22614
22615# NLS nuisances.
22616LC_ALL=C
22617export LC_ALL
22618LANGUAGE=C
22619export LANGUAGE
22620
22621# Required to use basename.
22622if expr a : '\(a\)' >/dev/null 2>&1 &&
22623   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22624  as_expr=expr
22625else
22626  as_expr=false
22627fi
22628
22629if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22630  as_basename=basename
22631else
22632  as_basename=false
22633fi
22634
22635
22636# Name of the executable.
22637as_me=`$as_basename -- "$0" ||
22638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22639	 X"$0" : 'X\(//\)$' \| \
22640	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22641$as_echo X/"$0" |
22642    sed '/^.*\/\([^/][^/]*\)\/*$/{
22643	    s//\1/
22644	    q
22645	  }
22646	  /^X\/\(\/\/\)$/{
22647	    s//\1/
22648	    q
22649	  }
22650	  /^X\/\(\/\).*/{
22651	    s//\1/
22652	    q
22653	  }
22654	  s/.*/./; q'`
22655
22656# CDPATH.
22657$as_unset CDPATH
22658
22659
22660
22661  as_lineno_1=$LINENO
22662  as_lineno_2=$LINENO
22663  test "x$as_lineno_1" != "x$as_lineno_2" &&
22664  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22665
22666  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22667  # uniformly replaced by the line number.  The first 'sed' inserts a
22668  # line-number line after each line using $LINENO; the second 'sed'
22669  # does the real work.  The second script uses 'N' to pair each
22670  # line-number line with the line containing $LINENO, and appends
22671  # trailing '-' during substitution so that $LINENO is not a special
22672  # case at line end.
22673  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22674  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22675  # E. McMahon (1931-1989) for sed's syntax.  :-)
22676  sed -n '
22677    p
22678    /[$]LINENO/=
22679  ' <$as_myself |
22680    sed '
22681      s/[$]LINENO.*/&-/
22682      t lineno
22683      b
22684      :lineno
22685      N
22686      :loop
22687      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22688      t loop
22689      s/-\n.*//
22690    ' >$as_me.lineno &&
22691  chmod +x "$as_me.lineno" ||
22692    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22693   { (exit 1); exit 1; }; }
22694
22695  # Don't try to exec as it changes $[0], causing all sort of problems
22696  # (the dirname of $[0] is not the place where we might find the
22697  # original and so on.  Autoconf is especially sensitive to this).
22698  . "./$as_me.lineno"
22699  # Exit status is that of the last command.
22700  exit
22701}
22702
22703
22704if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22705  as_dirname=dirname
22706else
22707  as_dirname=false
22708fi
22709
22710ECHO_C= ECHO_N= ECHO_T=
22711case `echo -n x` in
22712-n*)
22713  case `echo 'x\c'` in
22714  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22715  *)   ECHO_C='\c';;
22716  esac;;
22717*)
22718  ECHO_N='-n';;
22719esac
22720if expr a : '\(a\)' >/dev/null 2>&1 &&
22721   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22722  as_expr=expr
22723else
22724  as_expr=false
22725fi
22726
22727rm -f conf$$ conf$$.exe conf$$.file
22728if test -d conf$$.dir; then
22729  rm -f conf$$.dir/conf$$.file
22730else
22731  rm -f conf$$.dir
22732  mkdir conf$$.dir 2>/dev/null
22733fi
22734if (echo >conf$$.file) 2>/dev/null; then
22735  if ln -s conf$$.file conf$$ 2>/dev/null; then
22736    as_ln_s='ln -s'
22737    # ... but there are two gotchas:
22738    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22739    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22740    # In both cases, we have to default to `cp -p'.
22741    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22742      as_ln_s='cp -p'
22743  elif ln conf$$.file conf$$ 2>/dev/null; then
22744    as_ln_s=ln
22745  else
22746    as_ln_s='cp -p'
22747  fi
22748else
22749  as_ln_s='cp -p'
22750fi
22751rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22752rmdir conf$$.dir 2>/dev/null
22753
22754if mkdir -p . 2>/dev/null; then
22755  as_mkdir_p=:
22756else
22757  test -d ./-p && rmdir ./-p
22758  as_mkdir_p=false
22759fi
22760
22761if test -x / >/dev/null 2>&1; then
22762  as_test_x='test -x'
22763else
22764  if ls -dL / >/dev/null 2>&1; then
22765    as_ls_L_option=L
22766  else
22767    as_ls_L_option=
22768  fi
22769  as_test_x='
22770    eval sh -c '\''
22771      if test -d "$1"; then
22772	test -d "$1/.";
22773      else
22774	case $1 in
22775	-*)set "./$1";;
22776	esac;
22777	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22778	???[sx]*):;;*)false;;esac;fi
22779    '\'' sh
22780  '
22781fi
22782as_executable_p=$as_test_x
22783
22784# Sed expression to map a string onto a valid CPP name.
22785as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22786
22787# Sed expression to map a string onto a valid variable name.
22788as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22789
22790
22791exec 6>&1
22792
22793# Save the log message, to keep $[0] and so on meaningful, and to
22794# report actual input values of CONFIG_FILES etc. instead of their
22795# values after options handling.
22796ac_log="
22797This file was extended by xf86-video-chips $as_me 1.2.1, which was
22798generated by GNU Autoconf 2.63.  Invocation command line was
22799
22800  CONFIG_FILES    = $CONFIG_FILES
22801  CONFIG_HEADERS  = $CONFIG_HEADERS
22802  CONFIG_LINKS    = $CONFIG_LINKS
22803  CONFIG_COMMANDS = $CONFIG_COMMANDS
22804  $ $0 $@
22805
22806on `(hostname || uname -n) 2>/dev/null | sed 1q`
22807"
22808
22809_ACEOF
22810
22811case $ac_config_files in *"
22812"*) set x $ac_config_files; shift; ac_config_files=$*;;
22813esac
22814
22815case $ac_config_headers in *"
22816"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22817esac
22818
22819
22820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22821# Files that config.status was made for.
22822config_files="$ac_config_files"
22823config_headers="$ac_config_headers"
22824config_commands="$ac_config_commands"
22825
22826_ACEOF
22827
22828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829ac_cs_usage="\
22830\`$as_me' instantiates files from templates according to the
22831current configuration.
22832
22833Usage: $0 [OPTION]... [FILE]...
22834
22835  -h, --help       print this help, then exit
22836  -V, --version    print version number and configuration settings, then exit
22837  -q, --quiet, --silent
22838                   do not print progress messages
22839  -d, --debug      don't remove temporary files
22840      --recheck    update $as_me by reconfiguring in the same conditions
22841      --file=FILE[:TEMPLATE]
22842                   instantiate the configuration file FILE
22843      --header=FILE[:TEMPLATE]
22844                   instantiate the configuration header FILE
22845
22846Configuration files:
22847$config_files
22848
22849Configuration headers:
22850$config_headers
22851
22852Configuration commands:
22853$config_commands
22854
22855Report bugs to <bug-autoconf@gnu.org>."
22856
22857_ACEOF
22858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22859ac_cs_version="\\
22860xf86-video-chips config.status 1.2.1
22861configured by $0, generated by GNU Autoconf 2.63,
22862  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22863
22864Copyright (C) 2008 Free Software Foundation, Inc.
22865This config.status script is free software; the Free Software Foundation
22866gives unlimited permission to copy, distribute and modify it."
22867
22868ac_pwd='$ac_pwd'
22869srcdir='$srcdir'
22870INSTALL='$INSTALL'
22871MKDIR_P='$MKDIR_P'
22872AWK='$AWK'
22873test -n "\$AWK" || AWK=awk
22874_ACEOF
22875
22876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22877# The default lists apply if the user does not specify any file.
22878ac_need_defaults=:
22879while test $# != 0
22880do
22881  case $1 in
22882  --*=*)
22883    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22884    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22885    ac_shift=:
22886    ;;
22887  *)
22888    ac_option=$1
22889    ac_optarg=$2
22890    ac_shift=shift
22891    ;;
22892  esac
22893
22894  case $ac_option in
22895  # Handling of the options.
22896  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22897    ac_cs_recheck=: ;;
22898  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22899    $as_echo "$ac_cs_version"; exit ;;
22900  --debug | --debu | --deb | --de | --d | -d )
22901    debug=: ;;
22902  --file | --fil | --fi | --f )
22903    $ac_shift
22904    case $ac_optarg in
22905    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22906    esac
22907    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22908    ac_need_defaults=false;;
22909  --header | --heade | --head | --hea )
22910    $ac_shift
22911    case $ac_optarg in
22912    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22913    esac
22914    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22915    ac_need_defaults=false;;
22916  --he | --h)
22917    # Conflict between --help and --header
22918    { $as_echo "$as_me: error: ambiguous option: $1
22919Try \`$0 --help' for more information." >&2
22920   { (exit 1); exit 1; }; };;
22921  --help | --hel | -h )
22922    $as_echo "$ac_cs_usage"; exit ;;
22923  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22924  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22925    ac_cs_silent=: ;;
22926
22927  # This is an error.
22928  -*) { $as_echo "$as_me: error: unrecognized option: $1
22929Try \`$0 --help' for more information." >&2
22930   { (exit 1); exit 1; }; } ;;
22931
22932  *) ac_config_targets="$ac_config_targets $1"
22933     ac_need_defaults=false ;;
22934
22935  esac
22936  shift
22937done
22938
22939ac_configure_extra_args=
22940
22941if $ac_cs_silent; then
22942  exec 6>/dev/null
22943  ac_configure_extra_args="$ac_configure_extra_args --silent"
22944fi
22945
22946_ACEOF
22947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22948if \$ac_cs_recheck; then
22949  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22950  shift
22951  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22952  CONFIG_SHELL='$SHELL'
22953  export CONFIG_SHELL
22954  exec "\$@"
22955fi
22956
22957_ACEOF
22958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22959exec 5>>config.log
22960{
22961  echo
22962  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22963## Running $as_me. ##
22964_ASBOX
22965  $as_echo "$ac_log"
22966} >&5
22967
22968_ACEOF
22969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22970#
22971# INIT-COMMANDS
22972#
22973AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22974
22975_ACEOF
22976
22977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22978
22979# Handling of arguments.
22980for ac_config_target in $ac_config_targets
22981do
22982  case $ac_config_target in
22983    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22984    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22985    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22986    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22987    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22988    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22989
22990  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22991$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22992   { (exit 1); exit 1; }; };;
22993  esac
22994done
22995
22996
22997# If the user did not use the arguments to specify the items to instantiate,
22998# then the envvar interface is used.  Set only those that are not.
22999# We use the long form for the default assignment because of an extremely
23000# bizarre bug on SunOS 4.1.3.
23001if $ac_need_defaults; then
23002  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23003  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23004  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23005fi
23006
23007# Have a temporary directory for convenience.  Make it in the build tree
23008# simply because there is no reason against having it here, and in addition,
23009# creating and moving files from /tmp can sometimes cause problems.
23010# Hook for its removal unless debugging.
23011# Note that there is a small window in which the directory will not be cleaned:
23012# after its creation but before its name has been assigned to `$tmp'.
23013$debug ||
23014{
23015  tmp=
23016  trap 'exit_status=$?
23017  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23018' 0
23019  trap '{ (exit 1); exit 1; }' 1 2 13 15
23020}
23021# Create a (secure) tmp directory for tmp files.
23022
23023{
23024  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23025  test -n "$tmp" && test -d "$tmp"
23026}  ||
23027{
23028  tmp=./conf$$-$RANDOM
23029  (umask 077 && mkdir "$tmp")
23030} ||
23031{
23032   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23033   { (exit 1); exit 1; }
23034}
23035
23036# Set up the scripts for CONFIG_FILES section.
23037# No need to generate them if there are no CONFIG_FILES.
23038# This happens for instance with `./config.status config.h'.
23039if test -n "$CONFIG_FILES"; then
23040
23041
23042ac_cr='
23043'
23044ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23045if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23046  ac_cs_awk_cr='\\r'
23047else
23048  ac_cs_awk_cr=$ac_cr
23049fi
23050
23051echo 'BEGIN {' >"$tmp/subs1.awk" &&
23052_ACEOF
23053
23054
23055{
23056  echo "cat >conf$$subs.awk <<_ACEOF" &&
23057  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23058  echo "_ACEOF"
23059} >conf$$subs.sh ||
23060  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23061$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23062   { (exit 1); exit 1; }; }
23063ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23064ac_delim='%!_!# '
23065for ac_last_try in false false false false false :; do
23066  . ./conf$$subs.sh ||
23067    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23068$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23069   { (exit 1); exit 1; }; }
23070
23071  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23072  if test $ac_delim_n = $ac_delim_num; then
23073    break
23074  elif $ac_last_try; then
23075    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23076$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23077   { (exit 1); exit 1; }; }
23078  else
23079    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23080  fi
23081done
23082rm -f conf$$subs.sh
23083
23084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23085cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23086_ACEOF
23087sed -n '
23088h
23089s/^/S["/; s/!.*/"]=/
23090p
23091g
23092s/^[^!]*!//
23093:repl
23094t repl
23095s/'"$ac_delim"'$//
23096t delim
23097:nl
23098h
23099s/\(.\{148\}\).*/\1/
23100t more1
23101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23102p
23103n
23104b repl
23105:more1
23106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23107p
23108g
23109s/.\{148\}//
23110t nl
23111:delim
23112h
23113s/\(.\{148\}\).*/\1/
23114t more2
23115s/["\\]/\\&/g; s/^/"/; s/$/"/
23116p
23117b
23118:more2
23119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23120p
23121g
23122s/.\{148\}//
23123t delim
23124' <conf$$subs.awk | sed '
23125/^[^""]/{
23126  N
23127  s/\n//
23128}
23129' >>$CONFIG_STATUS || ac_write_fail=1
23130rm -f conf$$subs.awk
23131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23132_ACAWK
23133cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23134  for (key in S) S_is_set[key] = 1
23135  FS = ""
23136
23137}
23138{
23139  line = $ 0
23140  nfields = split(line, field, "@")
23141  substed = 0
23142  len = length(field[1])
23143  for (i = 2; i < nfields; i++) {
23144    key = field[i]
23145    keylen = length(key)
23146    if (S_is_set[key]) {
23147      value = S[key]
23148      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23149      len += length(value) + length(field[++i])
23150      substed = 1
23151    } else
23152      len += 1 + keylen
23153  }
23154
23155  print line
23156}
23157
23158_ACAWK
23159_ACEOF
23160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23162  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23163else
23164  cat
23165fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23166  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23167$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23168   { (exit 1); exit 1; }; }
23169_ACEOF
23170
23171# VPATH may cause trouble with some makes, so we remove $(srcdir),
23172# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23173# trailing colons and then remove the whole line if VPATH becomes empty
23174# (actually we leave an empty line to preserve line numbers).
23175if test "x$srcdir" = x.; then
23176  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23177s/:*\$(srcdir):*/:/
23178s/:*\${srcdir}:*/:/
23179s/:*@srcdir@:*/:/
23180s/^\([^=]*=[	 ]*\):*/\1/
23181s/:*$//
23182s/^[^=]*=[	 ]*$//
23183}'
23184fi
23185
23186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23187fi # test -n "$CONFIG_FILES"
23188
23189# Set up the scripts for CONFIG_HEADERS section.
23190# No need to generate them if there are no CONFIG_HEADERS.
23191# This happens for instance with `./config.status Makefile'.
23192if test -n "$CONFIG_HEADERS"; then
23193cat >"$tmp/defines.awk" <<\_ACAWK ||
23194BEGIN {
23195_ACEOF
23196
23197# Transform confdefs.h into an awk script `defines.awk', embedded as
23198# here-document in config.status, that substitutes the proper values into
23199# config.h.in to produce config.h.
23200
23201# Create a delimiter string that does not exist in confdefs.h, to ease
23202# handling of long lines.
23203ac_delim='%!_!# '
23204for ac_last_try in false false :; do
23205  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23206  if test -z "$ac_t"; then
23207    break
23208  elif $ac_last_try; then
23209    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23210$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23211   { (exit 1); exit 1; }; }
23212  else
23213    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23214  fi
23215done
23216
23217# For the awk script, D is an array of macro values keyed by name,
23218# likewise P contains macro parameters if any.  Preserve backslash
23219# newline sequences.
23220
23221ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23222sed -n '
23223s/.\{148\}/&'"$ac_delim"'/g
23224t rset
23225:rset
23226s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23227t def
23228d
23229:def
23230s/\\$//
23231t bsnl
23232s/["\\]/\\&/g
23233s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23234D["\1"]=" \3"/p
23235s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23236d
23237:bsnl
23238s/["\\]/\\&/g
23239s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23240D["\1"]=" \3\\\\\\n"\\/p
23241t cont
23242s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23243t cont
23244d
23245:cont
23246n
23247s/.\{148\}/&'"$ac_delim"'/g
23248t clear
23249:clear
23250s/\\$//
23251t bsnlc
23252s/["\\]/\\&/g; s/^/"/; s/$/"/p
23253d
23254:bsnlc
23255s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23256b cont
23257' <confdefs.h | sed '
23258s/'"$ac_delim"'/"\\\
23259"/g' >>$CONFIG_STATUS || ac_write_fail=1
23260
23261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23262  for (key in D) D_is_set[key] = 1
23263  FS = ""
23264}
23265/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23266  line = \$ 0
23267  split(line, arg, " ")
23268  if (arg[1] == "#") {
23269    defundef = arg[2]
23270    mac1 = arg[3]
23271  } else {
23272    defundef = substr(arg[1], 2)
23273    mac1 = arg[2]
23274  }
23275  split(mac1, mac2, "(") #)
23276  macro = mac2[1]
23277  prefix = substr(line, 1, index(line, defundef) - 1)
23278  if (D_is_set[macro]) {
23279    # Preserve the white space surrounding the "#".
23280    print prefix "define", macro P[macro] D[macro]
23281    next
23282  } else {
23283    # Replace #undef with comments.  This is necessary, for example,
23284    # in the case of _POSIX_SOURCE, which is predefined and required
23285    # on some systems where configure will not decide to define it.
23286    if (defundef == "undef") {
23287      print "/*", prefix defundef, macro, "*/"
23288      next
23289    }
23290  }
23291}
23292{ print }
23293_ACAWK
23294_ACEOF
23295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23296  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23297$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23298   { (exit 1); exit 1; }; }
23299fi # test -n "$CONFIG_HEADERS"
23300
23301
23302eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23303shift
23304for ac_tag
23305do
23306  case $ac_tag in
23307  :[FHLC]) ac_mode=$ac_tag; continue;;
23308  esac
23309  case $ac_mode$ac_tag in
23310  :[FHL]*:*);;
23311  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23312$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23313   { (exit 1); exit 1; }; };;
23314  :[FH]-) ac_tag=-:-;;
23315  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23316  esac
23317  ac_save_IFS=$IFS
23318  IFS=:
23319  set x $ac_tag
23320  IFS=$ac_save_IFS
23321  shift
23322  ac_file=$1
23323  shift
23324
23325  case $ac_mode in
23326  :L) ac_source=$1;;
23327  :[FH])
23328    ac_file_inputs=
23329    for ac_f
23330    do
23331      case $ac_f in
23332      -) ac_f="$tmp/stdin";;
23333      *) # Look for the file first in the build tree, then in the source tree
23334	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23335	 # because $ac_f cannot contain `:'.
23336	 test -f "$ac_f" ||
23337	   case $ac_f in
23338	   [\\/$]*) false;;
23339	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23340	   esac ||
23341	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23342$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23343   { (exit 1); exit 1; }; };;
23344      esac
23345      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23346      ac_file_inputs="$ac_file_inputs '$ac_f'"
23347    done
23348
23349    # Let's still pretend it is `configure' which instantiates (i.e., don't
23350    # use $as_me), people would be surprised to read:
23351    #    /* config.h.  Generated by config.status.  */
23352    configure_input='Generated from '`
23353	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23354	`' by configure.'
23355    if test x"$ac_file" != x-; then
23356      configure_input="$ac_file.  $configure_input"
23357      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23358$as_echo "$as_me: creating $ac_file" >&6;}
23359    fi
23360    # Neutralize special characters interpreted by sed in replacement strings.
23361    case $configure_input in #(
23362    *\&* | *\|* | *\\* )
23363       ac_sed_conf_input=`$as_echo "$configure_input" |
23364       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23365    *) ac_sed_conf_input=$configure_input;;
23366    esac
23367
23368    case $ac_tag in
23369    *:-:* | *:-) cat >"$tmp/stdin" \
23370      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23371$as_echo "$as_me: error: could not create $ac_file" >&2;}
23372   { (exit 1); exit 1; }; } ;;
23373    esac
23374    ;;
23375  esac
23376
23377  ac_dir=`$as_dirname -- "$ac_file" ||
23378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23379	 X"$ac_file" : 'X\(//\)[^/]' \| \
23380	 X"$ac_file" : 'X\(//\)$' \| \
23381	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23382$as_echo X"$ac_file" |
23383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23384	    s//\1/
23385	    q
23386	  }
23387	  /^X\(\/\/\)[^/].*/{
23388	    s//\1/
23389	    q
23390	  }
23391	  /^X\(\/\/\)$/{
23392	    s//\1/
23393	    q
23394	  }
23395	  /^X\(\/\).*/{
23396	    s//\1/
23397	    q
23398	  }
23399	  s/.*/./; q'`
23400  { as_dir="$ac_dir"
23401  case $as_dir in #(
23402  -*) as_dir=./$as_dir;;
23403  esac
23404  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23405    as_dirs=
23406    while :; do
23407      case $as_dir in #(
23408      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23409      *) as_qdir=$as_dir;;
23410      esac
23411      as_dirs="'$as_qdir' $as_dirs"
23412      as_dir=`$as_dirname -- "$as_dir" ||
23413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23414	 X"$as_dir" : 'X\(//\)[^/]' \| \
23415	 X"$as_dir" : 'X\(//\)$' \| \
23416	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23417$as_echo X"$as_dir" |
23418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23419	    s//\1/
23420	    q
23421	  }
23422	  /^X\(\/\/\)[^/].*/{
23423	    s//\1/
23424	    q
23425	  }
23426	  /^X\(\/\/\)$/{
23427	    s//\1/
23428	    q
23429	  }
23430	  /^X\(\/\).*/{
23431	    s//\1/
23432	    q
23433	  }
23434	  s/.*/./; q'`
23435      test -d "$as_dir" && break
23436    done
23437    test -z "$as_dirs" || eval "mkdir $as_dirs"
23438  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23439$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23440   { (exit 1); exit 1; }; }; }
23441  ac_builddir=.
23442
23443case "$ac_dir" in
23444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23445*)
23446  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23447  # A ".." for each directory in $ac_dir_suffix.
23448  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23449  case $ac_top_builddir_sub in
23450  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23451  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23452  esac ;;
23453esac
23454ac_abs_top_builddir=$ac_pwd
23455ac_abs_builddir=$ac_pwd$ac_dir_suffix
23456# for backward compatibility:
23457ac_top_builddir=$ac_top_build_prefix
23458
23459case $srcdir in
23460  .)  # We are building in place.
23461    ac_srcdir=.
23462    ac_top_srcdir=$ac_top_builddir_sub
23463    ac_abs_top_srcdir=$ac_pwd ;;
23464  [\\/]* | ?:[\\/]* )  # Absolute name.
23465    ac_srcdir=$srcdir$ac_dir_suffix;
23466    ac_top_srcdir=$srcdir
23467    ac_abs_top_srcdir=$srcdir ;;
23468  *) # Relative name.
23469    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23470    ac_top_srcdir=$ac_top_build_prefix$srcdir
23471    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23472esac
23473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23474
23475
23476  case $ac_mode in
23477  :F)
23478  #
23479  # CONFIG_FILE
23480  #
23481
23482  case $INSTALL in
23483  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23484  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23485  esac
23486  ac_MKDIR_P=$MKDIR_P
23487  case $MKDIR_P in
23488  [\\/$]* | ?:[\\/]* ) ;;
23489  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23490  esac
23491_ACEOF
23492
23493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23494# If the template does not know about datarootdir, expand it.
23495# FIXME: This hack should be removed a few years after 2.60.
23496ac_datarootdir_hack=; ac_datarootdir_seen=
23497
23498ac_sed_dataroot='
23499/datarootdir/ {
23500  p
23501  q
23502}
23503/@datadir@/p
23504/@docdir@/p
23505/@infodir@/p
23506/@localedir@/p
23507/@mandir@/p
23508'
23509case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23510*datarootdir*) ac_datarootdir_seen=yes;;
23511*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23512  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23513$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23514_ACEOF
23515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23516  ac_datarootdir_hack='
23517  s&@datadir@&$datadir&g
23518  s&@docdir@&$docdir&g
23519  s&@infodir@&$infodir&g
23520  s&@localedir@&$localedir&g
23521  s&@mandir@&$mandir&g
23522    s&\\\${datarootdir}&$datarootdir&g' ;;
23523esac
23524_ACEOF
23525
23526# Neutralize VPATH when `$srcdir' = `.'.
23527# Shell code in configure.ac might set extrasub.
23528# FIXME: do we really want to maintain this feature?
23529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23530ac_sed_extra="$ac_vpsub
23531$extrasub
23532_ACEOF
23533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23534:t
23535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23536s|@configure_input@|$ac_sed_conf_input|;t t
23537s&@top_builddir@&$ac_top_builddir_sub&;t t
23538s&@top_build_prefix@&$ac_top_build_prefix&;t t
23539s&@srcdir@&$ac_srcdir&;t t
23540s&@abs_srcdir@&$ac_abs_srcdir&;t t
23541s&@top_srcdir@&$ac_top_srcdir&;t t
23542s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23543s&@builddir@&$ac_builddir&;t t
23544s&@abs_builddir@&$ac_abs_builddir&;t t
23545s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23546s&@INSTALL@&$ac_INSTALL&;t t
23547s&@MKDIR_P@&$ac_MKDIR_P&;t t
23548$ac_datarootdir_hack
23549"
23550eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23551  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23552$as_echo "$as_me: error: could not create $ac_file" >&2;}
23553   { (exit 1); exit 1; }; }
23554
23555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23556  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23557  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23558  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23559which seems to be undefined.  Please make sure it is defined." >&5
23560$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23561which seems to be undefined.  Please make sure it is defined." >&2;}
23562
23563  rm -f "$tmp/stdin"
23564  case $ac_file in
23565  -) cat "$tmp/out" && rm -f "$tmp/out";;
23566  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23567  esac \
23568  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23569$as_echo "$as_me: error: could not create $ac_file" >&2;}
23570   { (exit 1); exit 1; }; }
23571 ;;
23572  :H)
23573  #
23574  # CONFIG_HEADER
23575  #
23576  if test x"$ac_file" != x-; then
23577    {
23578      $as_echo "/* $configure_input  */" \
23579      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23580    } >"$tmp/config.h" \
23581      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23582$as_echo "$as_me: error: could not create $ac_file" >&2;}
23583   { (exit 1); exit 1; }; }
23584    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23585      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23586$as_echo "$as_me: $ac_file is unchanged" >&6;}
23587    else
23588      rm -f "$ac_file"
23589      mv "$tmp/config.h" "$ac_file" \
23590	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23591$as_echo "$as_me: error: could not create $ac_file" >&2;}
23592   { (exit 1); exit 1; }; }
23593    fi
23594  else
23595    $as_echo "/* $configure_input  */" \
23596      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23597      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23598$as_echo "$as_me: error: could not create -" >&2;}
23599   { (exit 1); exit 1; }; }
23600  fi
23601# Compute "$ac_file"'s index in $config_headers.
23602_am_arg="$ac_file"
23603_am_stamp_count=1
23604for _am_header in $config_headers :; do
23605  case $_am_header in
23606    $_am_arg | $_am_arg:* )
23607      break ;;
23608    * )
23609      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23610  esac
23611done
23612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23614	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23615	 X"$_am_arg" : 'X\(//\)$' \| \
23616	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23617$as_echo X"$_am_arg" |
23618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23619	    s//\1/
23620	    q
23621	  }
23622	  /^X\(\/\/\)[^/].*/{
23623	    s//\1/
23624	    q
23625	  }
23626	  /^X\(\/\/\)$/{
23627	    s//\1/
23628	    q
23629	  }
23630	  /^X\(\/\).*/{
23631	    s//\1/
23632	    q
23633	  }
23634	  s/.*/./; q'`/stamp-h$_am_stamp_count
23635 ;;
23636
23637  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23638$as_echo "$as_me: executing $ac_file commands" >&6;}
23639 ;;
23640  esac
23641
23642
23643  case $ac_file$ac_mode in
23644    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23645  # Strip MF so we end up with the name of the file.
23646  mf=`echo "$mf" | sed -e 's/:.*$//'`
23647  # Check whether this is an Automake generated Makefile or not.
23648  # We used to match only the files named `Makefile.in', but
23649  # some people rename them; so instead we look at the file content.
23650  # Grep'ing the first line is not enough: some people post-process
23651  # each Makefile.in and add a new line on top of each file to say so.
23652  # Grep'ing the whole file is not good either: AIX grep has a line
23653  # limit of 2048, but all sed's we know have understand at least 4000.
23654  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23655    dirpart=`$as_dirname -- "$mf" ||
23656$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657	 X"$mf" : 'X\(//\)[^/]' \| \
23658	 X"$mf" : 'X\(//\)$' \| \
23659	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23660$as_echo X"$mf" |
23661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23662	    s//\1/
23663	    q
23664	  }
23665	  /^X\(\/\/\)[^/].*/{
23666	    s//\1/
23667	    q
23668	  }
23669	  /^X\(\/\/\)$/{
23670	    s//\1/
23671	    q
23672	  }
23673	  /^X\(\/\).*/{
23674	    s//\1/
23675	    q
23676	  }
23677	  s/.*/./; q'`
23678  else
23679    continue
23680  fi
23681  # Extract the definition of DEPDIR, am__include, and am__quote
23682  # from the Makefile without running `make'.
23683  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23684  test -z "$DEPDIR" && continue
23685  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23686  test -z "am__include" && continue
23687  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23688  # When using ansi2knr, U may be empty or an underscore; expand it
23689  U=`sed -n 's/^U = //p' < "$mf"`
23690  # Find all dependency output files, they are included files with
23691  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23692  # simplest approach to changing $(DEPDIR) to its actual value in the
23693  # expansion.
23694  for file in `sed -n "
23695    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23696       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23697    # Make sure the directory exists.
23698    test -f "$dirpart/$file" && continue
23699    fdir=`$as_dirname -- "$file" ||
23700$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701	 X"$file" : 'X\(//\)[^/]' \| \
23702	 X"$file" : 'X\(//\)$' \| \
23703	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23704$as_echo X"$file" |
23705    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23706	    s//\1/
23707	    q
23708	  }
23709	  /^X\(\/\/\)[^/].*/{
23710	    s//\1/
23711	    q
23712	  }
23713	  /^X\(\/\/\)$/{
23714	    s//\1/
23715	    q
23716	  }
23717	  /^X\(\/\).*/{
23718	    s//\1/
23719	    q
23720	  }
23721	  s/.*/./; q'`
23722    { as_dir=$dirpart/$fdir
23723  case $as_dir in #(
23724  -*) as_dir=./$as_dir;;
23725  esac
23726  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23727    as_dirs=
23728    while :; do
23729      case $as_dir in #(
23730      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23731      *) as_qdir=$as_dir;;
23732      esac
23733      as_dirs="'$as_qdir' $as_dirs"
23734      as_dir=`$as_dirname -- "$as_dir" ||
23735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736	 X"$as_dir" : 'X\(//\)[^/]' \| \
23737	 X"$as_dir" : 'X\(//\)$' \| \
23738	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23739$as_echo X"$as_dir" |
23740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741	    s//\1/
23742	    q
23743	  }
23744	  /^X\(\/\/\)[^/].*/{
23745	    s//\1/
23746	    q
23747	  }
23748	  /^X\(\/\/\)$/{
23749	    s//\1/
23750	    q
23751	  }
23752	  /^X\(\/\).*/{
23753	    s//\1/
23754	    q
23755	  }
23756	  s/.*/./; q'`
23757      test -d "$as_dir" && break
23758    done
23759    test -z "$as_dirs" || eval "mkdir $as_dirs"
23760  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23761$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23762   { (exit 1); exit 1; }; }; }
23763    # echo "creating $dirpart/$file"
23764    echo '# dummy' > "$dirpart/$file"
23765  done
23766done
23767 ;;
23768
23769  esac
23770done # for ac_tag
23771
23772
23773{ (exit 0); exit 0; }
23774_ACEOF
23775chmod +x $CONFIG_STATUS
23776ac_clean_files=$ac_clean_files_save
23777
23778test $ac_write_fail = 0 ||
23779  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23780$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23781   { (exit 1); exit 1; }; }
23782
23783
23784# configure is writing to config.log, and then calls config.status.
23785# config.status does its own redirection, appending to config.log.
23786# Unfortunately, on DOS this fails, as config.log is still kept open
23787# by configure, so config.status won't be able to write to it; its
23788# output is simply discarded.  So we exec the FD to /dev/null,
23789# effectively closing config.log, so it can be properly (re)opened and
23790# appended to by config.status.  When coming back to configure, we
23791# need to make the FD available again.
23792if test "$no_create" != yes; then
23793  ac_cs_success=:
23794  ac_config_status_args=
23795  test "$silent" = yes &&
23796    ac_config_status_args="$ac_config_status_args --quiet"
23797  exec 5>/dev/null
23798  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23799  exec 5>>config.log
23800  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23801  # would make configure fail if this is the last instruction.
23802  $ac_cs_success || { (exit 1); exit 1; }
23803fi
23804if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23805  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23806$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23807fi
23808
23809