configure revision 96ce994a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-rendition 4.2.3.
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-rendition'
752PACKAGE_TARNAME='xf86-video-rendition'
753PACKAGE_VERSION='4.2.3'
754PACKAGE_STRING='xf86-video-rendition 4.2.3'
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='am__EXEEXT_FALSE
795am__EXEEXT_TRUE
796LTLIBOBJS
797LIBOBJS
798MAKE_HTML
799MAKE_PDF
800MAKE_PS
801MAKE_TEXT
802BUILD_PDFDOC_FALSE
803BUILD_PDFDOC_TRUE
804BUILD_LINUXDOC_FALSE
805BUILD_LINUXDOC_TRUE
806PS2PDF
807LINUXDOC
808distcleancheck_listfiles
809CHANGELOG_CMD
810ADMIN_MAN_DIR
811DRIVER_MAN_DIR
812MISC_MAN_DIR
813FILE_MAN_DIR
814LIB_MAN_DIR
815APP_MAN_DIR
816ADMIN_MAN_SUFFIX
817DRIVER_MAN_SUFFIX
818MISC_MAN_SUFFIX
819FILE_MAN_SUFFIX
820LIB_MAN_SUFFIX
821APP_MAN_SUFFIX
822DRIVER_NAME
823moduledir
824XSERVER_LIBPCIACCESS_FALSE
825XSERVER_LIBPCIACCESS_TRUE
826PCIACCESS_LIBS
827PCIACCESS_CFLAGS
828XORG_LIBS
829XORG_CFLAGS
830PKG_CONFIG
831LIBTOOL
832ac_ct_F77
833FFLAGS
834F77
835CXXCPP
836am__fastdepCXX_FALSE
837am__fastdepCXX_TRUE
838CXXDEPMODE
839ac_ct_CXX
840CXXFLAGS
841CXX
842CPP
843NMEDIT
844DSYMUTIL
845RANLIB
846AR
847ECHO
848LN_S
849EGREP
850GREP
851SED
852am__fastdepCC_FALSE
853am__fastdepCC_TRUE
854CCDEPMODE
855AMDEPBACKSLASH
856AMDEP_FALSE
857AMDEP_TRUE
858am__quote
859am__include
860DEPDIR
861OBJEXT
862EXEEXT
863ac_ct_CC
864CPPFLAGS
865LDFLAGS
866CFLAGS
867CC
868host_os
869host_vendor
870host_cpu
871host
872build_os
873build_vendor
874build_cpu
875build
876MAINT
877MAINTAINER_MODE_FALSE
878MAINTAINER_MODE_TRUE
879am__untar
880am__tar
881AMTAR
882am__leading_dot
883SET_MAKE
884AWK
885mkdir_p
886MKDIR_P
887INSTALL_STRIP_PROGRAM
888STRIP
889install_sh
890MAKEINFO
891AUTOHEADER
892AUTOMAKE
893AUTOCONF
894ACLOCAL
895VERSION
896PACKAGE
897CYGPATH_W
898am__isrc
899INSTALL_DATA
900INSTALL_SCRIPT
901INSTALL_PROGRAM
902target_alias
903host_alias
904build_alias
905LIBS
906ECHO_T
907ECHO_N
908ECHO_C
909DEFS
910mandir
911localedir
912libdir
913psdir
914pdfdir
915dvidir
916htmldir
917infodir
918docdir
919oldincludedir
920includedir
921localstatedir
922sharedstatedir
923sysconfdir
924datadir
925datarootdir
926libexecdir
927sbindir
928bindir
929program_transform_name
930prefix
931exec_prefix
932PACKAGE_BUGREPORT
933PACKAGE_STRING
934PACKAGE_VERSION
935PACKAGE_TARNAME
936PACKAGE_NAME
937PATH_SEPARATOR
938SHELL'
939ac_subst_files=''
940ac_user_opts='
941enable_option_checking
942enable_maintainer_mode
943enable_static
944enable_shared
945enable_fast_install
946enable_dependency_tracking
947with_gnu_ld
948enable_libtool_lock
949with_pic
950with_tags
951with_xorg_module_dir
952with_release_version
953'
954      ac_precious_vars='build_alias
955host_alias
956target_alias
957CC
958CFLAGS
959LDFLAGS
960LIBS
961CPPFLAGS
962CPP
963CXX
964CXXFLAGS
965CCC
966CXXCPP
967F77
968FFLAGS
969PKG_CONFIG
970XORG_CFLAGS
971XORG_LIBS
972PCIACCESS_CFLAGS
973PCIACCESS_LIBS'
974
975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979ac_unrecognized_opts=
980ac_unrecognized_sep=
981# The variables have the same names as the options, with
982# dashes changed to underlines.
983cache_file=/dev/null
984exec_prefix=NONE
985no_create=
986no_recursion=
987prefix=NONE
988program_prefix=NONE
989program_suffix=NONE
990program_transform_name=s,x,x,
991silent=
992site=
993srcdir=
994verbose=
995x_includes=NONE
996x_libraries=NONE
997
998# Installation directory options.
999# These are left unexpanded so users can "make install exec_prefix=/foo"
1000# and all the variables that are supposed to be based on exec_prefix
1001# by default will actually change.
1002# Use braces instead of parens because sh, perl, etc. also accept them.
1003# (The list follows the same order as the GNU Coding Standards.)
1004bindir='${exec_prefix}/bin'
1005sbindir='${exec_prefix}/sbin'
1006libexecdir='${exec_prefix}/libexec'
1007datarootdir='${prefix}/share'
1008datadir='${datarootdir}'
1009sysconfdir='${prefix}/etc'
1010sharedstatedir='${prefix}/com'
1011localstatedir='${prefix}/var'
1012includedir='${prefix}/include'
1013oldincludedir='/usr/include'
1014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015infodir='${datarootdir}/info'
1016htmldir='${docdir}'
1017dvidir='${docdir}'
1018pdfdir='${docdir}'
1019psdir='${docdir}'
1020libdir='${exec_prefix}/lib'
1021localedir='${datarootdir}/locale'
1022mandir='${datarootdir}/man'
1023
1024ac_prev=
1025ac_dashdash=
1026for ac_option
1027do
1028  # If the previous option needs an argument, assign it.
1029  if test -n "$ac_prev"; then
1030    eval $ac_prev=\$ac_option
1031    ac_prev=
1032    continue
1033  fi
1034
1035  case $ac_option in
1036  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037  *)	ac_optarg=yes ;;
1038  esac
1039
1040  # Accept the important Cygnus configure options, so we can diagnose typos.
1041
1042  case $ac_dashdash$ac_option in
1043  --)
1044    ac_dashdash=yes ;;
1045
1046  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047    ac_prev=bindir ;;
1048  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049    bindir=$ac_optarg ;;
1050
1051  -build | --build | --buil | --bui | --bu)
1052    ac_prev=build_alias ;;
1053  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054    build_alias=$ac_optarg ;;
1055
1056  -cache-file | --cache-file | --cache-fil | --cache-fi \
1057  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058    ac_prev=cache_file ;;
1059  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061    cache_file=$ac_optarg ;;
1062
1063  --config-cache | -C)
1064    cache_file=config.cache ;;
1065
1066  -datadir | --datadir | --datadi | --datad)
1067    ac_prev=datadir ;;
1068  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069    datadir=$ac_optarg ;;
1070
1071  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072  | --dataroo | --dataro | --datar)
1073    ac_prev=datarootdir ;;
1074  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076    datarootdir=$ac_optarg ;;
1077
1078  -disable-* | --disable-*)
1079    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080    # Reject names that are not valid shell variable names.
1081    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1083   { (exit 1); exit 1; }; }
1084    ac_useropt_orig=$ac_useropt
1085    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086    case $ac_user_opts in
1087      *"
1088"enable_$ac_useropt"
1089"*) ;;
1090      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091	 ac_unrecognized_sep=', ';;
1092    esac
1093    eval enable_$ac_useropt=no ;;
1094
1095  -docdir | --docdir | --docdi | --doc | --do)
1096    ac_prev=docdir ;;
1097  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098    docdir=$ac_optarg ;;
1099
1100  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101    ac_prev=dvidir ;;
1102  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103    dvidir=$ac_optarg ;;
1104
1105  -enable-* | --enable-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1110   { (exit 1); exit 1; }; }
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124  | --exec | --exe | --ex)
1125    ac_prev=exec_prefix ;;
1126  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128  | --exec=* | --exe=* | --ex=*)
1129    exec_prefix=$ac_optarg ;;
1130
1131  -gas | --gas | --ga | --g)
1132    # Obsolete; use --with-gas.
1133    with_gas=yes ;;
1134
1135  -help | --help | --hel | --he | -h)
1136    ac_init_help=long ;;
1137  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138    ac_init_help=recursive ;;
1139  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140    ac_init_help=short ;;
1141
1142  -host | --host | --hos | --ho)
1143    ac_prev=host_alias ;;
1144  -host=* | --host=* | --hos=* | --ho=*)
1145    host_alias=$ac_optarg ;;
1146
1147  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148    ac_prev=htmldir ;;
1149  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150  | --ht=*)
1151    htmldir=$ac_optarg ;;
1152
1153  -includedir | --includedir | --includedi | --included | --include \
1154  | --includ | --inclu | --incl | --inc)
1155    ac_prev=includedir ;;
1156  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157  | --includ=* | --inclu=* | --incl=* | --inc=*)
1158    includedir=$ac_optarg ;;
1159
1160  -infodir | --infodir | --infodi | --infod | --info | --inf)
1161    ac_prev=infodir ;;
1162  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163    infodir=$ac_optarg ;;
1164
1165  -libdir | --libdir | --libdi | --libd)
1166    ac_prev=libdir ;;
1167  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168    libdir=$ac_optarg ;;
1169
1170  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171  | --libexe | --libex | --libe)
1172    ac_prev=libexecdir ;;
1173  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174  | --libexe=* | --libex=* | --libe=*)
1175    libexecdir=$ac_optarg ;;
1176
1177  -localedir | --localedir | --localedi | --localed | --locale)
1178    ac_prev=localedir ;;
1179  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180    localedir=$ac_optarg ;;
1181
1182  -localstatedir | --localstatedir | --localstatedi | --localstated \
1183  | --localstate | --localstat | --localsta | --localst | --locals)
1184    ac_prev=localstatedir ;;
1185  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187    localstatedir=$ac_optarg ;;
1188
1189  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190    ac_prev=mandir ;;
1191  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192    mandir=$ac_optarg ;;
1193
1194  -nfp | --nfp | --nf)
1195    # Obsolete; use --without-fp.
1196    with_fp=no ;;
1197
1198  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199  | --no-cr | --no-c | -n)
1200    no_create=yes ;;
1201
1202  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204    no_recursion=yes ;;
1205
1206  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208  | --oldin | --oldi | --old | --ol | --o)
1209    ac_prev=oldincludedir ;;
1210  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213    oldincludedir=$ac_optarg ;;
1214
1215  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216    ac_prev=prefix ;;
1217  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218    prefix=$ac_optarg ;;
1219
1220  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221  | --program-pre | --program-pr | --program-p)
1222    ac_prev=program_prefix ;;
1223  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225    program_prefix=$ac_optarg ;;
1226
1227  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228  | --program-suf | --program-su | --program-s)
1229    ac_prev=program_suffix ;;
1230  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232    program_suffix=$ac_optarg ;;
1233
1234  -program-transform-name | --program-transform-name \
1235  | --program-transform-nam | --program-transform-na \
1236  | --program-transform-n | --program-transform- \
1237  | --program-transform | --program-transfor \
1238  | --program-transfo | --program-transf \
1239  | --program-trans | --program-tran \
1240  | --progr-tra | --program-tr | --program-t)
1241    ac_prev=program_transform_name ;;
1242  -program-transform-name=* | --program-transform-name=* \
1243  | --program-transform-nam=* | --program-transform-na=* \
1244  | --program-transform-n=* | --program-transform-=* \
1245  | --program-transform=* | --program-transfor=* \
1246  | --program-transfo=* | --program-transf=* \
1247  | --program-trans=* | --program-tran=* \
1248  | --progr-tra=* | --program-tr=* | --program-t=*)
1249    program_transform_name=$ac_optarg ;;
1250
1251  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252    ac_prev=pdfdir ;;
1253  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254    pdfdir=$ac_optarg ;;
1255
1256  -psdir | --psdir | --psdi | --psd | --ps)
1257    ac_prev=psdir ;;
1258  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259    psdir=$ac_optarg ;;
1260
1261  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262  | -silent | --silent | --silen | --sile | --sil)
1263    silent=yes ;;
1264
1265  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266    ac_prev=sbindir ;;
1267  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268  | --sbi=* | --sb=*)
1269    sbindir=$ac_optarg ;;
1270
1271  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273  | --sharedst | --shareds | --shared | --share | --shar \
1274  | --sha | --sh)
1275    ac_prev=sharedstatedir ;;
1276  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279  | --sha=* | --sh=*)
1280    sharedstatedir=$ac_optarg ;;
1281
1282  -site | --site | --sit)
1283    ac_prev=site ;;
1284  -site=* | --site=* | --sit=*)
1285    site=$ac_optarg ;;
1286
1287  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288    ac_prev=srcdir ;;
1289  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290    srcdir=$ac_optarg ;;
1291
1292  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293  | --syscon | --sysco | --sysc | --sys | --sy)
1294    ac_prev=sysconfdir ;;
1295  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297    sysconfdir=$ac_optarg ;;
1298
1299  -target | --target | --targe | --targ | --tar | --ta | --t)
1300    ac_prev=target_alias ;;
1301  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302    target_alias=$ac_optarg ;;
1303
1304  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305    verbose=yes ;;
1306
1307  -version | --version | --versio | --versi | --vers | -V)
1308    ac_init_version=: ;;
1309
1310  -with-* | --with-*)
1311    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315   { (exit 1); exit 1; }; }
1316    ac_useropt_orig=$ac_useropt
1317    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318    case $ac_user_opts in
1319      *"
1320"with_$ac_useropt"
1321"*) ;;
1322      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323	 ac_unrecognized_sep=', ';;
1324    esac
1325    eval with_$ac_useropt=\$ac_optarg ;;
1326
1327  -without-* | --without-*)
1328    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329    # Reject names that are not valid shell variable names.
1330    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1332   { (exit 1); exit 1; }; }
1333    ac_useropt_orig=$ac_useropt
1334    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335    case $ac_user_opts in
1336      *"
1337"with_$ac_useropt"
1338"*) ;;
1339      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340	 ac_unrecognized_sep=', ';;
1341    esac
1342    eval with_$ac_useropt=no ;;
1343
1344  --x)
1345    # Obsolete; use --with-x.
1346    with_x=yes ;;
1347
1348  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349  | --x-incl | --x-inc | --x-in | --x-i)
1350    ac_prev=x_includes ;;
1351  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353    x_includes=$ac_optarg ;;
1354
1355  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357    ac_prev=x_libraries ;;
1358  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360    x_libraries=$ac_optarg ;;
1361
1362  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1363Try \`$0 --help' for more information." >&2
1364   { (exit 1); exit 1; }; }
1365    ;;
1366
1367  *=*)
1368    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369    # Reject names that are not valid shell variable names.
1370    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1371      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1372   { (exit 1); exit 1; }; }
1373    eval $ac_envvar=\$ac_optarg
1374    export $ac_envvar ;;
1375
1376  *)
1377    # FIXME: should be removed in autoconf 3.0.
1378    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1382    ;;
1383
1384  esac
1385done
1386
1387if test -n "$ac_prev"; then
1388  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1390   { (exit 1); exit 1; }; }
1391fi
1392
1393if test -n "$ac_unrecognized_opts"; then
1394  case $enable_option_checking in
1395    no) ;;
1396    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1397   { (exit 1); exit 1; }; } ;;
1398    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399  esac
1400fi
1401
1402# Check all directory arguments for consistency.
1403for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404		datadir sysconfdir sharedstatedir localstatedir includedir \
1405		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406		libdir localedir mandir
1407do
1408  eval ac_val=\$$ac_var
1409  # Remove trailing slashes.
1410  case $ac_val in
1411    */ )
1412      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413      eval $ac_var=\$ac_val;;
1414  esac
1415  # Be sure to have absolute directory names.
1416  case $ac_val in
1417    [\\/$]* | ?:[\\/]* )  continue;;
1418    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419  esac
1420  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1421   { (exit 1); exit 1; }; }
1422done
1423
1424# There might be people who depend on the old broken behavior: `$host'
1425# used to hold the argument of --host etc.
1426# FIXME: To remove some day.
1427build=$build_alias
1428host=$host_alias
1429target=$target_alias
1430
1431# FIXME: To remove some day.
1432if test "x$host_alias" != x; then
1433  if test "x$build_alias" = x; then
1434    cross_compiling=maybe
1435    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1436    If a cross compiler is detected then cross compile mode will be used." >&2
1437  elif test "x$build_alias" != "x$host_alias"; then
1438    cross_compiling=yes
1439  fi
1440fi
1441
1442ac_tool_prefix=
1443test -n "$host_alias" && ac_tool_prefix=$host_alias-
1444
1445test "$silent" = yes && exec 6>/dev/null
1446
1447
1448ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449ac_ls_di=`ls -di .` &&
1450ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1452   { (exit 1); exit 1; }; }
1453test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1455   { (exit 1); exit 1; }; }
1456
1457
1458# Find the source files, if location was not specified.
1459if test -z "$srcdir"; then
1460  ac_srcdir_defaulted=yes
1461  # Try the directory containing this script, then the parent directory.
1462  ac_confdir=`$as_dirname -- "$as_myself" ||
1463$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464	 X"$as_myself" : 'X\(//\)[^/]' \| \
1465	 X"$as_myself" : 'X\(//\)$' \| \
1466	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467$as_echo X"$as_myself" |
1468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469	    s//\1/
1470	    q
1471	  }
1472	  /^X\(\/\/\)[^/].*/{
1473	    s//\1/
1474	    q
1475	  }
1476	  /^X\(\/\/\)$/{
1477	    s//\1/
1478	    q
1479	  }
1480	  /^X\(\/\).*/{
1481	    s//\1/
1482	    q
1483	  }
1484	  s/.*/./; q'`
1485  srcdir=$ac_confdir
1486  if test ! -r "$srcdir/$ac_unique_file"; then
1487    srcdir=..
1488  fi
1489else
1490  ac_srcdir_defaulted=no
1491fi
1492if test ! -r "$srcdir/$ac_unique_file"; then
1493  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1495   { (exit 1); exit 1; }; }
1496fi
1497ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498ac_abs_confdir=`(
1499	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1500   { (exit 1); exit 1; }; }
1501	pwd)`
1502# When building in place, set srcdir=.
1503if test "$ac_abs_confdir" = "$ac_pwd"; then
1504  srcdir=.
1505fi
1506# Remove unnecessary trailing slashes from srcdir.
1507# Double slashes in file names in object file debugging info
1508# mess up M-x gdb in Emacs.
1509case $srcdir in
1510*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511esac
1512for ac_var in $ac_precious_vars; do
1513  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514  eval ac_env_${ac_var}_value=\$${ac_var}
1515  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1517done
1518
1519#
1520# Report the --help message.
1521#
1522if test "$ac_init_help" = "long"; then
1523  # Omit some internal or obsolete options to make the list less imposing.
1524  # This message is too long to be a string in the A/UX 3.1 sh.
1525  cat <<_ACEOF
1526\`configure' configures xf86-video-rendition 4.2.3 to adapt to many kinds of systems.
1527
1528Usage: $0 [OPTION]... [VAR=VALUE]...
1529
1530To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531VAR=VALUE.  See below for descriptions of some of the useful variables.
1532
1533Defaults for the options are specified in brackets.
1534
1535Configuration:
1536  -h, --help              display this help and exit
1537      --help=short        display options specific to this package
1538      --help=recursive    display the short help of all the included packages
1539  -V, --version           display version information and exit
1540  -q, --quiet, --silent   do not print \`checking...' messages
1541      --cache-file=FILE   cache test results in FILE [disabled]
1542  -C, --config-cache      alias for \`--cache-file=config.cache'
1543  -n, --no-create         do not create output files
1544      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1545
1546Installation directories:
1547  --prefix=PREFIX         install architecture-independent files in PREFIX
1548                          [$ac_default_prefix]
1549  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1550                          [PREFIX]
1551
1552By default, \`make install' will install all the files in
1553\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1554an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555for instance \`--prefix=\$HOME'.
1556
1557For better control, use the options below.
1558
1559Fine tuning of the installation directories:
1560  --bindir=DIR            user executables [EPREFIX/bin]
1561  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1562  --libexecdir=DIR        program executables [EPREFIX/libexec]
1563  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1564  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1565  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1566  --libdir=DIR            object code libraries [EPREFIX/lib]
1567  --includedir=DIR        C header files [PREFIX/include]
1568  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1569  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1570  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1571  --infodir=DIR           info documentation [DATAROOTDIR/info]
1572  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1573  --mandir=DIR            man documentation [DATAROOTDIR/man]
1574  --docdir=DIR            documentation root
1575                          [DATAROOTDIR/doc/xf86-video-rendition]
1576  --htmldir=DIR           html documentation [DOCDIR]
1577  --dvidir=DIR            dvi documentation [DOCDIR]
1578  --pdfdir=DIR            pdf documentation [DOCDIR]
1579  --psdir=DIR             ps documentation [DOCDIR]
1580_ACEOF
1581
1582  cat <<\_ACEOF
1583
1584Program names:
1585  --program-prefix=PREFIX            prepend PREFIX to installed program names
1586  --program-suffix=SUFFIX            append SUFFIX to installed program names
1587  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1588
1589System types:
1590  --build=BUILD     configure for building on BUILD [guessed]
1591  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1592_ACEOF
1593fi
1594
1595if test -n "$ac_init_help"; then
1596  case $ac_init_help in
1597     short | recursive ) echo "Configuration of xf86-video-rendition 4.2.3:";;
1598   esac
1599  cat <<\_ACEOF
1600
1601Optional Features:
1602  --disable-option-checking  ignore unrecognized --enable/--with options
1603  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1604  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1605  --enable-maintainer-mode  enable make rules and dependencies not useful
1606			  (and sometimes confusing) to the casual installer
1607  --enable-static[=PKGS]  build static libraries [default=no]
1608  --enable-shared[=PKGS]  build shared libraries [default=yes]
1609  --enable-fast-install[=PKGS]
1610                          optimize for fast installation [default=yes]
1611  --disable-dependency-tracking  speeds up one-time build
1612  --enable-dependency-tracking   do not reject slow dependency extractors
1613  --disable-libtool-lock  avoid locking (might break parallel builds)
1614
1615Optional Packages:
1616  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619  --with-pic              try to use only PIC/non-PIC objects [default=use
1620                          both]
1621  --with-tags[=TAGS]      include additional configurations [automatic]
1622  --with-xorg-module-dir=DIR
1623                          Default xorg module directory
1624                          [default=$libdir/xorg/modules]
1625  --with-release-version=STRING
1626                          Use release version string in package name
1627
1628Some influential environment variables:
1629  CC          C compiler command
1630  CFLAGS      C compiler flags
1631  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1632              nonstandard directory <lib dir>
1633  LIBS        libraries to pass to the linker, e.g. -l<library>
1634  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1635              you have headers in a nonstandard directory <include dir>
1636  CPP         C preprocessor
1637  CXX         C++ compiler command
1638  CXXFLAGS    C++ compiler flags
1639  CXXCPP      C++ preprocessor
1640  F77         Fortran 77 compiler command
1641  FFLAGS      Fortran 77 compiler flags
1642  PKG_CONFIG  path to pkg-config utility
1643  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1644  XORG_LIBS   linker flags for XORG, overriding pkg-config
1645  PCIACCESS_CFLAGS
1646              C compiler flags for PCIACCESS, overriding pkg-config
1647  PCIACCESS_LIBS
1648              linker flags for PCIACCESS, overriding pkg-config
1649
1650Use these variables to override the choices made by `configure' or to help
1651it to find libraries and programs with nonstandard names/locations.
1652
1653Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1654_ACEOF
1655ac_status=$?
1656fi
1657
1658if test "$ac_init_help" = "recursive"; then
1659  # If there are subdirs, report their specific --help.
1660  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661    test -d "$ac_dir" ||
1662      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663      continue
1664    ac_builddir=.
1665
1666case "$ac_dir" in
1667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668*)
1669  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670  # A ".." for each directory in $ac_dir_suffix.
1671  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672  case $ac_top_builddir_sub in
1673  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675  esac ;;
1676esac
1677ac_abs_top_builddir=$ac_pwd
1678ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679# for backward compatibility:
1680ac_top_builddir=$ac_top_build_prefix
1681
1682case $srcdir in
1683  .)  # We are building in place.
1684    ac_srcdir=.
1685    ac_top_srcdir=$ac_top_builddir_sub
1686    ac_abs_top_srcdir=$ac_pwd ;;
1687  [\\/]* | ?:[\\/]* )  # Absolute name.
1688    ac_srcdir=$srcdir$ac_dir_suffix;
1689    ac_top_srcdir=$srcdir
1690    ac_abs_top_srcdir=$srcdir ;;
1691  *) # Relative name.
1692    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693    ac_top_srcdir=$ac_top_build_prefix$srcdir
1694    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695esac
1696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698    cd "$ac_dir" || { ac_status=$?; continue; }
1699    # Check for guested configure.
1700    if test -f "$ac_srcdir/configure.gnu"; then
1701      echo &&
1702      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703    elif test -f "$ac_srcdir/configure"; then
1704      echo &&
1705      $SHELL "$ac_srcdir/configure" --help=recursive
1706    else
1707      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708    fi || ac_status=$?
1709    cd "$ac_pwd" || { ac_status=$?; break; }
1710  done
1711fi
1712
1713test -n "$ac_init_help" && exit $ac_status
1714if $ac_init_version; then
1715  cat <<\_ACEOF
1716xf86-video-rendition configure 4.2.3
1717generated by GNU Autoconf 2.63
1718
1719Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17202002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1721This configure script is free software; the Free Software Foundation
1722gives unlimited permission to copy, distribute and modify it.
1723_ACEOF
1724  exit
1725fi
1726cat >config.log <<_ACEOF
1727This file contains any messages produced by compilers while
1728running configure, to aid debugging if configure makes a mistake.
1729
1730It was created by xf86-video-rendition $as_me 4.2.3, which was
1731generated by GNU Autoconf 2.63.  Invocation command line was
1732
1733  $ $0 $@
1734
1735_ACEOF
1736exec 5>>config.log
1737{
1738cat <<_ASUNAME
1739## --------- ##
1740## Platform. ##
1741## --------- ##
1742
1743hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744uname -m = `(uname -m) 2>/dev/null || echo unknown`
1745uname -r = `(uname -r) 2>/dev/null || echo unknown`
1746uname -s = `(uname -s) 2>/dev/null || echo unknown`
1747uname -v = `(uname -v) 2>/dev/null || echo unknown`
1748
1749/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1751
1752/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1753/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1754/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1756/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1757/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1758/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1759
1760_ASUNAME
1761
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  $as_echo "PATH: $as_dir"
1768done
1769IFS=$as_save_IFS
1770
1771} >&5
1772
1773cat >&5 <<_ACEOF
1774
1775
1776## ----------- ##
1777## Core tests. ##
1778## ----------- ##
1779
1780_ACEOF
1781
1782
1783# Keep a trace of the command line.
1784# Strip out --no-create and --no-recursion so they do not pile up.
1785# Strip out --silent because we don't want to record it for future runs.
1786# Also quote any args containing shell meta-characters.
1787# Make two passes to allow for proper duplicate-argument suppression.
1788ac_configure_args=
1789ac_configure_args0=
1790ac_configure_args1=
1791ac_must_keep_next=false
1792for ac_pass in 1 2
1793do
1794  for ac_arg
1795  do
1796    case $ac_arg in
1797    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799    | -silent | --silent | --silen | --sile | --sil)
1800      continue ;;
1801    *\'*)
1802      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803    esac
1804    case $ac_pass in
1805    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1806    2)
1807      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1808      if test $ac_must_keep_next = true; then
1809	ac_must_keep_next=false # Got value, back to normal.
1810      else
1811	case $ac_arg in
1812	  *=* | --config-cache | -C | -disable-* | --disable-* \
1813	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815	  | -with-* | --with-* | -without-* | --without-* | --x)
1816	    case "$ac_configure_args0 " in
1817	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818	    esac
1819	    ;;
1820	  -* ) ac_must_keep_next=true ;;
1821	esac
1822      fi
1823      ac_configure_args="$ac_configure_args '$ac_arg'"
1824      ;;
1825    esac
1826  done
1827done
1828$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1829$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1830
1831# When interrupted or exit'd, cleanup temporary files, and complete
1832# config.log.  We remove comments because anyway the quotes in there
1833# would cause problems or look ugly.
1834# WARNING: Use '\'' to represent an apostrophe within the trap.
1835# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836trap 'exit_status=$?
1837  # Save into config.log some information that might help in debugging.
1838  {
1839    echo
1840
1841    cat <<\_ASBOX
1842## ---------------- ##
1843## Cache variables. ##
1844## ---------------- ##
1845_ASBOX
1846    echo
1847    # The following way of writing the cache mishandles newlines in values,
1848(
1849  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850    eval ac_val=\$$ac_var
1851    case $ac_val in #(
1852    *${as_nl}*)
1853      case $ac_var in #(
1854      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1855$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1856      esac
1857      case $ac_var in #(
1858      _ | IFS | as_nl) ;; #(
1859      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1860      *) $as_unset $ac_var ;;
1861      esac ;;
1862    esac
1863  done
1864  (set) 2>&1 |
1865    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1866    *${as_nl}ac_space=\ *)
1867      sed -n \
1868	"s/'\''/'\''\\\\'\'''\''/g;
1869	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870      ;; #(
1871    *)
1872      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873      ;;
1874    esac |
1875    sort
1876)
1877    echo
1878
1879    cat <<\_ASBOX
1880## ----------------- ##
1881## Output variables. ##
1882## ----------------- ##
1883_ASBOX
1884    echo
1885    for ac_var in $ac_subst_vars
1886    do
1887      eval ac_val=\$$ac_var
1888      case $ac_val in
1889      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890      esac
1891      $as_echo "$ac_var='\''$ac_val'\''"
1892    done | sort
1893    echo
1894
1895    if test -n "$ac_subst_files"; then
1896      cat <<\_ASBOX
1897## ------------------- ##
1898## File substitutions. ##
1899## ------------------- ##
1900_ASBOX
1901      echo
1902      for ac_var in $ac_subst_files
1903      do
1904	eval ac_val=\$$ac_var
1905	case $ac_val in
1906	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907	esac
1908	$as_echo "$ac_var='\''$ac_val'\''"
1909      done | sort
1910      echo
1911    fi
1912
1913    if test -s confdefs.h; then
1914      cat <<\_ASBOX
1915## ----------- ##
1916## confdefs.h. ##
1917## ----------- ##
1918_ASBOX
1919      echo
1920      cat confdefs.h
1921      echo
1922    fi
1923    test "$ac_signal" != 0 &&
1924      $as_echo "$as_me: caught signal $ac_signal"
1925    $as_echo "$as_me: exit $exit_status"
1926  } >&5
1927  rm -f core *.core core.conftest.* &&
1928    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929    exit $exit_status
1930' 0
1931for ac_signal in 1 2 13 15; do
1932  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933done
1934ac_signal=0
1935
1936# confdefs.h avoids OS command line length limits that DEFS can exceed.
1937rm -f -r conftest* confdefs.h
1938
1939# Predefined preprocessor variables.
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_NAME "$PACKAGE_NAME"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_VERSION "$PACKAGE_VERSION"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_STRING "$PACKAGE_STRING"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963_ACEOF
1964
1965
1966# Let the site file select an alternate cache file if it wants to.
1967# Prefer an explicitly selected file to automatically selected ones.
1968ac_site_file1=NONE
1969ac_site_file2=NONE
1970if test -n "$CONFIG_SITE"; then
1971  ac_site_file1=$CONFIG_SITE
1972elif test "x$prefix" != xNONE; then
1973  ac_site_file1=$prefix/share/config.site
1974  ac_site_file2=$prefix/etc/config.site
1975else
1976  ac_site_file1=$ac_default_prefix/share/config.site
1977  ac_site_file2=$ac_default_prefix/etc/config.site
1978fi
1979for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1980do
1981  test "x$ac_site_file" = xNONE && continue
1982  if test -r "$ac_site_file"; then
1983    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1985    sed 's/^/| /' "$ac_site_file" >&5
1986    . "$ac_site_file"
1987  fi
1988done
1989
1990if test -r "$cache_file"; then
1991  # Some versions of bash will fail to source /dev/null (special
1992  # files actually), so we avoid doing that.
1993  if test -f "$cache_file"; then
1994    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995$as_echo "$as_me: loading cache $cache_file" >&6;}
1996    case $cache_file in
1997      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998      *)                      . "./$cache_file";;
1999    esac
2000  fi
2001else
2002  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003$as_echo "$as_me: creating cache $cache_file" >&6;}
2004  >$cache_file
2005fi
2006
2007# Check that the precious variables saved in the cache have kept the same
2008# value.
2009ac_cache_corrupted=false
2010for ac_var in $ac_precious_vars; do
2011  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2012  eval ac_new_set=\$ac_env_${ac_var}_set
2013  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2014  eval ac_new_val=\$ac_env_${ac_var}_value
2015  case $ac_old_set,$ac_new_set in
2016    set,)
2017      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2018$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2019      ac_cache_corrupted=: ;;
2020    ,set)
2021      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2022$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2023      ac_cache_corrupted=: ;;
2024    ,);;
2025    *)
2026      if test "x$ac_old_val" != "x$ac_new_val"; then
2027	# differences in whitespace do not lead to failure.
2028	ac_old_val_w=`echo x $ac_old_val`
2029	ac_new_val_w=`echo x $ac_new_val`
2030	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2031	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033	  ac_cache_corrupted=:
2034	else
2035	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2036$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2037	  eval $ac_var=\$ac_old_val
2038	fi
2039	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2040$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2041	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2042$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2043      fi;;
2044  esac
2045  # Pass precious variables to config.status.
2046  if test "$ac_new_set" = set; then
2047    case $ac_new_val in
2048    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049    *) ac_arg=$ac_var=$ac_new_val ;;
2050    esac
2051    case " $ac_configure_args " in
2052      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2053      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054    esac
2055  fi
2056done
2057if $ac_cache_corrupted; then
2058  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2061$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2062  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2063$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2064   { (exit 1); exit 1; }; }
2065fi
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091ac_ext=c
2092ac_cpp='$CPP $CPPFLAGS'
2093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
2097
2098
2099
2100ac_config_headers="$ac_config_headers config.h"
2101
2102ac_aux_dir=
2103for ac_dir in . "$srcdir"/.; do
2104  if test -f "$ac_dir/install-sh"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/install-sh -c"
2107    break
2108  elif test -f "$ac_dir/install.sh"; then
2109    ac_aux_dir=$ac_dir
2110    ac_install_sh="$ac_aux_dir/install.sh -c"
2111    break
2112  elif test -f "$ac_dir/shtool"; then
2113    ac_aux_dir=$ac_dir
2114    ac_install_sh="$ac_aux_dir/shtool install -c"
2115    break
2116  fi
2117done
2118if test -z "$ac_aux_dir"; then
2119  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2120$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2121   { (exit 1); exit 1; }; }
2122fi
2123
2124# These three variables are undocumented and unsupported,
2125# and are intended to be withdrawn in a future Autoconf release.
2126# They can cause serious problems if a builder's source tree is in a directory
2127# whose full name contains unusual characters.
2128ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2129ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2130ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2131
2132
2133
2134am__api_version='1.11'
2135
2136# Find a good install program.  We prefer a C program (faster),
2137# so one script is as good as another.  But avoid the broken or
2138# incompatible versions:
2139# SysV /etc/install, /usr/sbin/install
2140# SunOS /usr/etc/install
2141# IRIX /sbin/install
2142# AIX /bin/install
2143# AmigaOS /C/install, which installs bootblocks on floppy discs
2144# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2145# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2146# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2147# OS/2's system install, which has a completely different semantic
2148# ./install, which can be erroneously created by make from ./install.sh.
2149# Reject install programs that cannot install multiple files.
2150{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2151$as_echo_n "checking for a BSD-compatible install... " >&6; }
2152if test -z "$INSTALL"; then
2153if test "${ac_cv_path_install+set}" = set; then
2154  $as_echo_n "(cached) " >&6
2155else
2156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159  IFS=$as_save_IFS
2160  test -z "$as_dir" && as_dir=.
2161  # Account for people who put trailing slashes in PATH elements.
2162case $as_dir/ in
2163  ./ | .// | /cC/* | \
2164  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2165  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2166  /usr/ucb/* ) ;;
2167  *)
2168    # OSF1 and SCO ODT 3.0 have their own names for install.
2169    # Don't use installbsd from OSF since it installs stuff as root
2170    # by default.
2171    for ac_prog in ginstall scoinst install; do
2172      for ac_exec_ext in '' $ac_executable_extensions; do
2173	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2174	  if test $ac_prog = install &&
2175	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176	    # AIX install.  It has an incompatible calling convention.
2177	    :
2178	  elif test $ac_prog = install &&
2179	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180	    # program-specific install script used by HP pwplus--don't use.
2181	    :
2182	  else
2183	    rm -rf conftest.one conftest.two conftest.dir
2184	    echo one > conftest.one
2185	    echo two > conftest.two
2186	    mkdir conftest.dir
2187	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2188	      test -s conftest.one && test -s conftest.two &&
2189	      test -s conftest.dir/conftest.one &&
2190	      test -s conftest.dir/conftest.two
2191	    then
2192	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2193	      break 3
2194	    fi
2195	  fi
2196	fi
2197      done
2198    done
2199    ;;
2200esac
2201
2202done
2203IFS=$as_save_IFS
2204
2205rm -rf conftest.one conftest.two conftest.dir
2206
2207fi
2208  if test "${ac_cv_path_install+set}" = set; then
2209    INSTALL=$ac_cv_path_install
2210  else
2211    # As a last resort, use the slow shell script.  Don't cache a
2212    # value for INSTALL within a source directory, because that will
2213    # break other packages using the cache if that directory is
2214    # removed, or if the value is a relative name.
2215    INSTALL=$ac_install_sh
2216  fi
2217fi
2218{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2219$as_echo "$INSTALL" >&6; }
2220
2221# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2222# It thinks the first close brace ends the variable substitution.
2223test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2224
2225test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2226
2227test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2228
2229{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2230$as_echo_n "checking whether build environment is sane... " >&6; }
2231# Just in case
2232sleep 1
2233echo timestamp > conftest.file
2234# Reject unsafe characters in $srcdir or the absolute working directory
2235# name.  Accept space and tab only in the latter.
2236am_lf='
2237'
2238case `pwd` in
2239  *[\\\"\#\$\&\'\`$am_lf]*)
2240    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2241$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2242   { (exit 1); exit 1; }; };;
2243esac
2244case $srcdir in
2245  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2246    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2247$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2248   { (exit 1); exit 1; }; };;
2249esac
2250
2251# Do `set' in a subshell so we don't clobber the current shell's
2252# arguments.  Must try -L first in case configure is actually a
2253# symlink; some systems play weird games with the mod time of symlinks
2254# (eg FreeBSD returns the mod time of the symlink's containing
2255# directory).
2256if (
2257   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2258   if test "$*" = "X"; then
2259      # -L didn't work.
2260      set X `ls -t "$srcdir/configure" conftest.file`
2261   fi
2262   rm -f conftest.file
2263   if test "$*" != "X $srcdir/configure conftest.file" \
2264      && test "$*" != "X conftest.file $srcdir/configure"; then
2265
2266      # If neither matched, then we have a broken ls.  This can happen
2267      # if, for instance, CONFIG_SHELL is bash and it inherits a
2268      # broken ls alias from the environment.  This has actually
2269      # happened.  Such a system could not be considered "sane".
2270      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2271alias in your environment" >&5
2272$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2273alias in your environment" >&2;}
2274   { (exit 1); exit 1; }; }
2275   fi
2276
2277   test "$2" = conftest.file
2278   )
2279then
2280   # Ok.
2281   :
2282else
2283   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2284Check your system clock" >&5
2285$as_echo "$as_me: error: newly created file is older than distributed files!
2286Check your system clock" >&2;}
2287   { (exit 1); exit 1; }; }
2288fi
2289{ $as_echo "$as_me:$LINENO: result: yes" >&5
2290$as_echo "yes" >&6; }
2291test "$program_prefix" != NONE &&
2292  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2293# Use a double $ so make ignores it.
2294test "$program_suffix" != NONE &&
2295  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2296# Double any \ or $.
2297# By default was `s,x,x', remove it if useless.
2298ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2299program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2300
2301# expand $ac_aux_dir to an absolute path
2302am_aux_dir=`cd $ac_aux_dir && pwd`
2303
2304if test x"${MISSING+set}" != xset; then
2305  case $am_aux_dir in
2306  *\ * | *\	*)
2307    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2308  *)
2309    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2310  esac
2311fi
2312# Use eval to expand $SHELL
2313if eval "$MISSING --run true"; then
2314  am_missing_run="$MISSING --run "
2315else
2316  am_missing_run=
2317  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2318$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2319fi
2320
2321if test x"${install_sh}" != xset; then
2322  case $am_aux_dir in
2323  *\ * | *\	*)
2324    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2325  *)
2326    install_sh="\${SHELL} $am_aux_dir/install-sh"
2327  esac
2328fi
2329
2330# Installed binaries are usually stripped using `strip' when the user
2331# run `make install-strip'.  However `strip' might not be the right
2332# tool to use in cross-compilation environments, therefore Automake
2333# will honor the `STRIP' environment variable to overrule this program.
2334if test "$cross_compiling" != no; then
2335  if test -n "$ac_tool_prefix"; then
2336  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2337set dummy ${ac_tool_prefix}strip; ac_word=$2
2338{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2339$as_echo_n "checking for $ac_word... " >&6; }
2340if test "${ac_cv_prog_STRIP+set}" = set; then
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test -n "$STRIP"; then
2344  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351  for ac_exec_ext in '' $ac_executable_extensions; do
2352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2354    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363STRIP=$ac_cv_prog_STRIP
2364if test -n "$STRIP"; then
2365  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2366$as_echo "$STRIP" >&6; }
2367else
2368  { $as_echo "$as_me:$LINENO: result: no" >&5
2369$as_echo "no" >&6; }
2370fi
2371
2372
2373fi
2374if test -z "$ac_cv_prog_STRIP"; then
2375  ac_ct_STRIP=$STRIP
2376  # Extract the first word of "strip", so it can be a program name with args.
2377set dummy strip; ac_word=$2
2378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
2380if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test -n "$ac_ct_STRIP"; then
2384  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391  for ac_exec_ext in '' $ac_executable_extensions; do
2392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393    ac_cv_prog_ac_ct_STRIP="strip"
2394    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2404if test -n "$ac_ct_STRIP"; then
2405  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2406$as_echo "$ac_ct_STRIP" >&6; }
2407else
2408  { $as_echo "$as_me:$LINENO: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412  if test "x$ac_ct_STRIP" = x; then
2413    STRIP=":"
2414  else
2415    case $cross_compiling:$ac_tool_warned in
2416yes:)
2417{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2419ac_tool_warned=yes ;;
2420esac
2421    STRIP=$ac_ct_STRIP
2422  fi
2423else
2424  STRIP="$ac_cv_prog_STRIP"
2425fi
2426
2427fi
2428INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2429
2430{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2431$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2432if test -z "$MKDIR_P"; then
2433  if test "${ac_cv_path_mkdir+set}" = set; then
2434  $as_echo_n "(cached) " >&6
2435else
2436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2438do
2439  IFS=$as_save_IFS
2440  test -z "$as_dir" && as_dir=.
2441  for ac_prog in mkdir gmkdir; do
2442	 for ac_exec_ext in '' $ac_executable_extensions; do
2443	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2444	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2445	     'mkdir (GNU coreutils) '* | \
2446	     'mkdir (coreutils) '* | \
2447	     'mkdir (fileutils) '4.1*)
2448	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2449	       break 3;;
2450	   esac
2451	 done
2452       done
2453done
2454IFS=$as_save_IFS
2455
2456fi
2457
2458  if test "${ac_cv_path_mkdir+set}" = set; then
2459    MKDIR_P="$ac_cv_path_mkdir -p"
2460  else
2461    # As a last resort, use the slow shell script.  Don't cache a
2462    # value for MKDIR_P within a source directory, because that will
2463    # break other packages using the cache if that directory is
2464    # removed, or if the value is a relative name.
2465    test -d ./--version && rmdir ./--version
2466    MKDIR_P="$ac_install_sh -d"
2467  fi
2468fi
2469{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2470$as_echo "$MKDIR_P" >&6; }
2471
2472mkdir_p="$MKDIR_P"
2473case $mkdir_p in
2474  [\\/$]* | ?:[\\/]*) ;;
2475  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2476esac
2477
2478for ac_prog in gawk mawk nawk awk
2479do
2480  # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if test "${ac_cv_prog_AWK+set}" = set; then
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test -n "$AWK"; then
2488  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495  for ac_exec_ext in '' $ac_executable_extensions; do
2496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497    ac_cv_prog_AWK="$ac_prog"
2498    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507AWK=$ac_cv_prog_AWK
2508if test -n "$AWK"; then
2509  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2510$as_echo "$AWK" >&6; }
2511else
2512  { $as_echo "$as_me:$LINENO: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516
2517  test -n "$AWK" && break
2518done
2519
2520{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2521$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2522set x ${MAKE-make}
2523ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2524if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2525  $as_echo_n "(cached) " >&6
2526else
2527  cat >conftest.make <<\_ACEOF
2528SHELL = /bin/sh
2529all:
2530	@echo '@@@%%%=$(MAKE)=@@@%%%'
2531_ACEOF
2532# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2533case `${MAKE-make} -f conftest.make 2>/dev/null` in
2534  *@@@%%%=?*=@@@%%%*)
2535    eval ac_cv_prog_make_${ac_make}_set=yes;;
2536  *)
2537    eval ac_cv_prog_make_${ac_make}_set=no;;
2538esac
2539rm -f conftest.make
2540fi
2541if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2542  { $as_echo "$as_me:$LINENO: result: yes" >&5
2543$as_echo "yes" >&6; }
2544  SET_MAKE=
2545else
2546  { $as_echo "$as_me:$LINENO: result: no" >&5
2547$as_echo "no" >&6; }
2548  SET_MAKE="MAKE=${MAKE-make}"
2549fi
2550
2551rm -rf .tst 2>/dev/null
2552mkdir .tst 2>/dev/null
2553if test -d .tst; then
2554  am__leading_dot=.
2555else
2556  am__leading_dot=_
2557fi
2558rmdir .tst 2>/dev/null
2559
2560if test "`cd $srcdir && pwd`" != "`pwd`"; then
2561  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2562  # is not polluted with repeated "-I."
2563  am__isrc=' -I$(srcdir)'
2564  # test to see if srcdir already configured
2565  if test -f $srcdir/config.status; then
2566    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2567$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2568   { (exit 1); exit 1; }; }
2569  fi
2570fi
2571
2572# test whether we have cygpath
2573if test -z "$CYGPATH_W"; then
2574  if (cygpath --version) >/dev/null 2>/dev/null; then
2575    CYGPATH_W='cygpath -w'
2576  else
2577    CYGPATH_W=echo
2578  fi
2579fi
2580
2581
2582# Define the identity of the package.
2583 PACKAGE='xf86-video-rendition'
2584 VERSION='4.2.3'
2585
2586
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE "$PACKAGE"
2589_ACEOF
2590
2591
2592cat >>confdefs.h <<_ACEOF
2593#define VERSION "$VERSION"
2594_ACEOF
2595
2596# Some tools Automake needs.
2597
2598ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2599
2600
2601AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2602
2603
2604AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2605
2606
2607AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2608
2609
2610MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2611
2612# We need awk for the "check" target.  The system "awk" is bad on
2613# some platforms.
2614# Always define AMTAR for backward compatibility.
2615
2616AMTAR=${AMTAR-"${am_missing_run}tar"}
2617
2618am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2619
2620
2621
2622
2623
2624
2625
2626{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2627$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2628    # Check whether --enable-maintainer-mode was given.
2629if test "${enable_maintainer_mode+set}" = set; then
2630  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2631else
2632  USE_MAINTAINER_MODE=no
2633fi
2634
2635  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2636$as_echo "$USE_MAINTAINER_MODE" >&6; }
2637   if test $USE_MAINTAINER_MODE = yes; then
2638  MAINTAINER_MODE_TRUE=
2639  MAINTAINER_MODE_FALSE='#'
2640else
2641  MAINTAINER_MODE_TRUE='#'
2642  MAINTAINER_MODE_FALSE=
2643fi
2644
2645  MAINT=$MAINTAINER_MODE_TRUE
2646
2647
2648
2649# Checks for programs.
2650# Check whether --enable-static was given.
2651if test "${enable_static+set}" = set; then
2652  enableval=$enable_static; p=${PACKAGE-default}
2653    case $enableval in
2654    yes) enable_static=yes ;;
2655    no) enable_static=no ;;
2656    *)
2657     enable_static=no
2658      # Look at the argument we got.  We use all the common list separators.
2659      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2660      for pkg in $enableval; do
2661	IFS="$lt_save_ifs"
2662	if test "X$pkg" = "X$p"; then
2663	  enable_static=yes
2664	fi
2665      done
2666      IFS="$lt_save_ifs"
2667      ;;
2668    esac
2669else
2670  enable_static=no
2671fi
2672
2673
2674
2675# Check whether --enable-shared was given.
2676if test "${enable_shared+set}" = set; then
2677  enableval=$enable_shared; p=${PACKAGE-default}
2678    case $enableval in
2679    yes) enable_shared=yes ;;
2680    no) enable_shared=no ;;
2681    *)
2682      enable_shared=no
2683      # Look at the argument we got.  We use all the common list separators.
2684      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2685      for pkg in $enableval; do
2686	IFS="$lt_save_ifs"
2687	if test "X$pkg" = "X$p"; then
2688	  enable_shared=yes
2689	fi
2690      done
2691      IFS="$lt_save_ifs"
2692      ;;
2693    esac
2694else
2695  enable_shared=yes
2696fi
2697
2698
2699# Check whether --enable-fast-install was given.
2700if test "${enable_fast_install+set}" = set; then
2701  enableval=$enable_fast_install; p=${PACKAGE-default}
2702    case $enableval in
2703    yes) enable_fast_install=yes ;;
2704    no) enable_fast_install=no ;;
2705    *)
2706      enable_fast_install=no
2707      # Look at the argument we got.  We use all the common list separators.
2708      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2709      for pkg in $enableval; do
2710	IFS="$lt_save_ifs"
2711	if test "X$pkg" = "X$p"; then
2712	  enable_fast_install=yes
2713	fi
2714      done
2715      IFS="$lt_save_ifs"
2716      ;;
2717    esac
2718else
2719  enable_fast_install=yes
2720fi
2721
2722
2723# Make sure we can run config.sub.
2724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2725  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2726$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2727   { (exit 1); exit 1; }; }
2728
2729{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2730$as_echo_n "checking build system type... " >&6; }
2731if test "${ac_cv_build+set}" = set; then
2732  $as_echo_n "(cached) " >&6
2733else
2734  ac_build_alias=$build_alias
2735test "x$ac_build_alias" = x &&
2736  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2737test "x$ac_build_alias" = x &&
2738  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2739$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2740   { (exit 1); exit 1; }; }
2741ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2743$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2744   { (exit 1); exit 1; }; }
2745
2746fi
2747{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2748$as_echo "$ac_cv_build" >&6; }
2749case $ac_cv_build in
2750*-*-*) ;;
2751*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2752$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2753   { (exit 1); exit 1; }; };;
2754esac
2755build=$ac_cv_build
2756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_build
2758shift
2759build_cpu=$1
2760build_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764build_os=$*
2765IFS=$ac_save_IFS
2766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767
2768
2769{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2770$as_echo_n "checking host system type... " >&6; }
2771if test "${ac_cv_host+set}" = set; then
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test "x$host_alias" = x; then
2775  ac_cv_host=$ac_cv_build
2776else
2777  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2779$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2780   { (exit 1); exit 1; }; }
2781fi
2782
2783fi
2784{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2785$as_echo "$ac_cv_host" >&6; }
2786case $ac_cv_host in
2787*-*-*) ;;
2788*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2789$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2790   { (exit 1); exit 1; }; };;
2791esac
2792host=$ac_cv_host
2793ac_save_IFS=$IFS; IFS='-'
2794set x $ac_cv_host
2795shift
2796host_cpu=$1
2797host_vendor=$2
2798shift; shift
2799# Remember, the first character of IFS is used to create $*,
2800# except with old shells:
2801host_os=$*
2802IFS=$ac_save_IFS
2803case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2804
2805
2806DEPDIR="${am__leading_dot}deps"
2807
2808ac_config_commands="$ac_config_commands depfiles"
2809
2810
2811am_make=${MAKE-make}
2812cat > confinc << 'END'
2813am__doit:
2814	@echo this is the am__doit target
2815.PHONY: am__doit
2816END
2817# If we don't find an include directive, just comment out the code.
2818{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2819$as_echo_n "checking for style of include used by $am_make... " >&6; }
2820am__include="#"
2821am__quote=
2822_am_result=none
2823# First try GNU make style include.
2824echo "include confinc" > confmf
2825# Ignore all kinds of additional output from `make'.
2826case `$am_make -s -f confmf 2> /dev/null` in #(
2827*the\ am__doit\ target*)
2828  am__include=include
2829  am__quote=
2830  _am_result=GNU
2831  ;;
2832esac
2833# Now try BSD make style include.
2834if test "$am__include" = "#"; then
2835   echo '.include "confinc"' > confmf
2836   case `$am_make -s -f confmf 2> /dev/null` in #(
2837   *the\ am__doit\ target*)
2838     am__include=.include
2839     am__quote="\""
2840     _am_result=BSD
2841     ;;
2842   esac
2843fi
2844
2845
2846{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2847$as_echo "$_am_result" >&6; }
2848rm -f confinc confmf
2849
2850# Check whether --enable-dependency-tracking was given.
2851if test "${enable_dependency_tracking+set}" = set; then
2852  enableval=$enable_dependency_tracking;
2853fi
2854
2855if test "x$enable_dependency_tracking" != xno; then
2856  am_depcomp="$ac_aux_dir/depcomp"
2857  AMDEPBACKSLASH='\'
2858fi
2859 if test "x$enable_dependency_tracking" != xno; then
2860  AMDEP_TRUE=
2861  AMDEP_FALSE='#'
2862else
2863  AMDEP_TRUE='#'
2864  AMDEP_FALSE=
2865fi
2866
2867
2868ac_ext=c
2869ac_cpp='$CPP $CPPFLAGS'
2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873if test -n "$ac_tool_prefix"; then
2874  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CC+set}" = set; then
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test -n "$CC"; then
2882  ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889  for ac_exec_ext in '' $ac_executable_extensions; do
2890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906  { $as_echo "$as_me:$LINENO: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911fi
2912if test -z "$ac_cv_prog_CC"; then
2913  ac_ct_CC=$CC
2914  # Extract the first word of "gcc", so it can be a program name with args.
2915set dummy gcc; ac_word=$2
2916{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$ac_ct_CC"; then
2922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929  for ac_exec_ext in '' $ac_executable_extensions; do
2930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931    ac_cv_prog_ac_ct_CC="gcc"
2932    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942if test -n "$ac_ct_CC"; then
2943  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2944$as_echo "$ac_ct_CC" >&6; }
2945else
2946  { $as_echo "$as_me:$LINENO: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950  if test "x$ac_ct_CC" = x; then
2951    CC=""
2952  else
2953    case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959    CC=$ac_ct_CC
2960  fi
2961else
2962  CC="$ac_cv_prog_CC"
2963fi
2964
2965if test -z "$CC"; then
2966          if test -n "$ac_tool_prefix"; then
2967    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}cc; ac_word=$2
2969{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if test "${ac_cv_prog_CC+set}" = set; then
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$CC"; then
2975  ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982  for ac_exec_ext in '' $ac_executable_extensions; do
2983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984    ac_cv_prog_CC="${ac_tool_prefix}cc"
2985    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994CC=$ac_cv_prog_CC
2995if test -n "$CC"; then
2996  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2997$as_echo "$CC" >&6; }
2998else
2999  { $as_echo "$as_me:$LINENO: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004  fi
3005fi
3006if test -z "$CC"; then
3007  # Extract the first word of "cc", so it can be a program name with args.
3008set dummy cc; ac_word=$2
3009{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_CC+set}" = set; then
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017  ac_prog_rejected=no
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023  for ac_exec_ext in '' $ac_executable_extensions; do
3024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026       ac_prog_rejected=yes
3027       continue
3028     fi
3029    ac_cv_prog_CC="cc"
3030    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034done
3035IFS=$as_save_IFS
3036
3037if test $ac_prog_rejected = yes; then
3038  # We found a bogon in the path, so make sure we never use it.
3039  set dummy $ac_cv_prog_CC
3040  shift
3041  if test $# != 0; then
3042    # We chose a different compiler from the bogus one.
3043    # However, it has the same basename, so the bogon will be chosen
3044    # first if we set CC to just the basename; use the full file name.
3045    shift
3046    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047  fi
3048fi
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
3053  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3054$as_echo "$CC" >&6; }
3055else
3056  { $as_echo "$as_me:$LINENO: result: no" >&5
3057$as_echo "no" >&6; }
3058fi
3059
3060
3061fi
3062if test -z "$CC"; then
3063  if test -n "$ac_tool_prefix"; then
3064  for ac_prog in cl.exe
3065  do
3066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3069$as_echo_n "checking for $ac_word... " >&6; }
3070if test "${ac_cv_prog_CC+set}" = set; then
3071  $as_echo_n "(cached) " >&6
3072else
3073  if test -n "$CC"; then
3074  ac_cv_prog_CC="$CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081  for ac_exec_ext in '' $ac_executable_extensions; do
3082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088done
3089IFS=$as_save_IFS
3090
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:$LINENO: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103    test -n "$CC" && break
3104  done
3105fi
3106if test -z "$CC"; then
3107  ac_ct_CC=$CC
3108  for ac_prog in cl.exe
3109do
3110  # Extract the first word of "$ac_prog", so it can be a program name with args.
3111set dummy $ac_prog; ac_word=$2
3112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$ac_ct_CC"; then
3118  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125  for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_ac_ct_CC="$ac_prog"
3128    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138if test -n "$ac_ct_CC"; then
3139  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3140$as_echo "$ac_ct_CC" >&6; }
3141else
3142  { $as_echo "$as_me:$LINENO: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147  test -n "$ac_ct_CC" && break
3148done
3149
3150  if test "x$ac_ct_CC" = x; then
3151    CC=""
3152  else
3153    case $cross_compiling:$ac_tool_warned in
3154yes:)
3155{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157ac_tool_warned=yes ;;
3158esac
3159    CC=$ac_ct_CC
3160  fi
3161fi
3162
3163fi
3164
3165
3166test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3169See \`config.log' for more details." >&5
3170$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3171See \`config.log' for more details." >&2;}
3172   { (exit 1); exit 1; }; }; }
3173
3174# Provide some information about the compiler.
3175$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3176set X $ac_compile
3177ac_compiler=$2
3178{ (ac_try="$ac_compiler --version >&5"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184$as_echo "$ac_try_echo") >&5
3185  (eval "$ac_compiler --version >&5") 2>&5
3186  ac_status=$?
3187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }
3189{ (ac_try="$ac_compiler -v >&5"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195$as_echo "$ac_try_echo") >&5
3196  (eval "$ac_compiler -v >&5") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200{ (ac_try="$ac_compiler -V >&5"
3201case "(($ac_try" in
3202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203  *) ac_try_echo=$ac_try;;
3204esac
3205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206$as_echo "$ac_try_echo") >&5
3207  (eval "$ac_compiler -V >&5") 2>&5
3208  ac_status=$?
3209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }
3211
3212cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h.  */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h.  */
3218
3219int
3220main ()
3221{
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227ac_clean_files_save=$ac_clean_files
3228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229# Try to create an executable without -o first, disregard a.out.
3230# It will help us diagnose broken compilers, and finding out an intuition
3231# of exeext.
3232{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3233$as_echo_n "checking for C compiler default output file name... " >&6; }
3234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236# The possible output files:
3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
3239ac_rmfiles=
3240for ac_file in $ac_files
3241do
3242  case $ac_file in
3243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245  esac
3246done
3247rm -f $ac_rmfiles
3248
3249if { (ac_try="$ac_link_default"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3255$as_echo "$ac_try_echo") >&5
3256  (eval "$ac_link_default") 2>&5
3257  ac_status=$?
3258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; then
3260  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3263# so that the user can short-circuit this test for compilers unknown to
3264# Autoconf.
3265for ac_file in $ac_files ''
3266do
3267  test -f "$ac_file" || continue
3268  case $ac_file in
3269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270	;;
3271    [ab].out )
3272	# We found the default executable, but exeext='' is most
3273	# certainly right.
3274	break;;
3275    *.* )
3276        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277	then :; else
3278	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279	fi
3280	# We set ac_cv_exeext here because the later test for it is not
3281	# safe: cross compilers may not add the suffix if given an `-o'
3282	# argument, so we may need to know it at that point already.
3283	# Even if this section looks crufty: it has the advantage of
3284	# actually working.
3285	break;;
3286    * )
3287	break;;
3288  esac
3289done
3290test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292else
3293  ac_file=''
3294fi
3295
3296{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3297$as_echo "$ac_file" >&6; }
3298if test -z "$ac_file"; then
3299  $as_echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
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: C compiler cannot create executables
3305See \`config.log' for more details." >&5
3306$as_echo "$as_me: error: C compiler cannot create executables
3307See \`config.log' for more details." >&2;}
3308   { (exit 77); exit 77; }; }; }
3309fi
3310
3311ac_exeext=$ac_cv_exeext
3312
3313# Check that the compiler produces executables we can run.  If not, either
3314# the compiler is broken, or we cross compile.
3315{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3316$as_echo_n "checking whether the C compiler works... " >&6; }
3317# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3318# If not cross compiling, check that we can run a simple program.
3319if test "$cross_compiling" != yes; then
3320  if { ac_try='./$ac_file'
3321  { (case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326$as_echo "$ac_try_echo") >&5
3327  (eval "$ac_try") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }; }; then
3331    cross_compiling=no
3332  else
3333    if test "$cross_compiling" = maybe; then
3334	cross_compiling=yes
3335    else
3336	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3339If you meant to cross compile, use \`--host'.
3340See \`config.log' for more details." >&5
3341$as_echo "$as_me: error: cannot run C compiled programs.
3342If you meant to cross compile, use \`--host'.
3343See \`config.log' for more details." >&2;}
3344   { (exit 1); exit 1; }; }; }
3345    fi
3346  fi
3347fi
3348{ $as_echo "$as_me:$LINENO: result: yes" >&5
3349$as_echo "yes" >&6; }
3350
3351rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3352ac_clean_files=$ac_clean_files_save
3353# Check that the compiler produces executables we can run.  If not, either
3354# the compiler is broken, or we cross compile.
3355{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3356$as_echo_n "checking whether we are cross compiling... " >&6; }
3357{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3358$as_echo "$cross_compiling" >&6; }
3359
3360{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3361$as_echo_n "checking for suffix of executables... " >&6; }
3362if { (ac_try="$ac_link"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368$as_echo "$ac_try_echo") >&5
3369  (eval "$ac_link") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; then
3373  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3375# work properly (i.e., refer to `conftest.exe'), while it won't with
3376# `rm'.
3377for ac_file in conftest.exe conftest conftest.*; do
3378  test -f "$ac_file" || continue
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382	  break;;
3383    * ) break;;
3384  esac
3385done
3386else
3387  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3390See \`config.log' for more details." >&5
3391$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3392See \`config.log' for more details." >&2;}
3393   { (exit 1); exit 1; }; }; }
3394fi
3395
3396rm -f conftest$ac_cv_exeext
3397{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3398$as_echo "$ac_cv_exeext" >&6; }
3399
3400rm -f conftest.$ac_ext
3401EXEEXT=$ac_cv_exeext
3402ac_exeext=$EXEEXT
3403{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3404$as_echo_n "checking for suffix of object files... " >&6; }
3405if test "${ac_cv_objext+set}" = set; then
3406  $as_echo_n "(cached) " >&6
3407else
3408  cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h.  */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h.  */
3414
3415int
3416main ()
3417{
3418
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423rm -f conftest.o conftest.obj
3424if { (ac_try="$ac_compile"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430$as_echo "$ac_try_echo") >&5
3431  (eval "$ac_compile") 2>&5
3432  ac_status=$?
3433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); }; then
3435  for ac_file in conftest.o conftest.obj conftest.*; do
3436  test -f "$ac_file" || continue;
3437  case $ac_file in
3438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440       break;;
3441  esac
3442done
3443else
3444  $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3450See \`config.log' for more details." >&5
3451$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3452See \`config.log' for more details." >&2;}
3453   { (exit 1); exit 1; }; }; }
3454fi
3455
3456rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457fi
3458{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3459$as_echo "$ac_cv_objext" >&6; }
3460OBJEXT=$ac_cv_objext
3461ac_objext=$OBJEXT
3462{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3463$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464if test "${ac_cv_c_compiler_gnu+set}" = set; then
3465  $as_echo_n "(cached) " >&6
3466else
3467  cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h.  */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h.  */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478       choke me
3479#endif
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (ac_try="$ac_compile"
3487case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492$as_echo "$ac_try_echo") >&5
3493  (eval "$ac_compile") 2>conftest.er1
3494  ac_status=$?
3495  grep -v '^ *+' conftest.er1 >conftest.err
3496  rm -f conftest.er1
3497  cat conftest.err >&5
3498  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); } && {
3500	 test -z "$ac_c_werror_flag" ||
3501	 test ! -s conftest.err
3502       } && test -s conftest.$ac_objext; then
3503  ac_compiler_gnu=yes
3504else
3505  $as_echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508	ac_compiler_gnu=no
3509fi
3510
3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514fi
3515{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3517if test $ac_compiler_gnu = yes; then
3518  GCC=yes
3519else
3520  GCC=
3521fi
3522ac_test_CFLAGS=${CFLAGS+set}
3523ac_save_CFLAGS=$CFLAGS
3524{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3525$as_echo_n "checking whether $CC accepts -g... " >&6; }
3526if test "${ac_cv_prog_cc_g+set}" = set; then
3527  $as_echo_n "(cached) " >&6
3528else
3529  ac_save_c_werror_flag=$ac_c_werror_flag
3530   ac_c_werror_flag=yes
3531   ac_cv_prog_cc_g=no
3532   CFLAGS="-g"
3533   cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h.  */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h.  */
3539
3540int
3541main ()
3542{
3543
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (ac_try="$ac_compile"
3550case "(($ac_try" in
3551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552  *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555$as_echo "$ac_try_echo") >&5
3556  (eval "$ac_compile") 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } && {
3563	 test -z "$ac_c_werror_flag" ||
3564	 test ! -s conftest.err
3565       } && test -s conftest.$ac_objext; then
3566  ac_cv_prog_cc_g=yes
3567else
3568  $as_echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571	CFLAGS=""
3572      cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h.  */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (ac_try="$ac_compile"
3589case "(($ac_try" in
3590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591  *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594$as_echo "$ac_try_echo") >&5
3595  (eval "$ac_compile") 2>conftest.er1
3596  ac_status=$?
3597  grep -v '^ *+' conftest.er1 >conftest.err
3598  rm -f conftest.er1
3599  cat conftest.err >&5
3600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); } && {
3602	 test -z "$ac_c_werror_flag" ||
3603	 test ! -s conftest.err
3604       } && test -s conftest.$ac_objext; then
3605  :
3606else
3607  $as_echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610	ac_c_werror_flag=$ac_save_c_werror_flag
3611	 CFLAGS="-g"
3612	 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h.  */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627rm -f conftest.$ac_objext
3628if { (ac_try="$ac_compile"
3629case "(($ac_try" in
3630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631  *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634$as_echo "$ac_try_echo") >&5
3635  (eval "$ac_compile") 2>conftest.er1
3636  ac_status=$?
3637  grep -v '^ *+' conftest.er1 >conftest.err
3638  rm -f conftest.er1
3639  cat conftest.err >&5
3640  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); } && {
3642	 test -z "$ac_c_werror_flag" ||
3643	 test ! -s conftest.err
3644       } && test -s conftest.$ac_objext; then
3645  ac_cv_prog_cc_g=yes
3646else
3647  $as_echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650
3651fi
3652
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi
3658
3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660   ac_c_werror_flag=$ac_save_c_werror_flag
3661fi
3662{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3663$as_echo "$ac_cv_prog_cc_g" >&6; }
3664if test "$ac_test_CFLAGS" = set; then
3665  CFLAGS=$ac_save_CFLAGS
3666elif test $ac_cv_prog_cc_g = yes; then
3667  if test "$GCC" = yes; then
3668    CFLAGS="-g -O2"
3669  else
3670    CFLAGS="-g"
3671  fi
3672else
3673  if test "$GCC" = yes; then
3674    CFLAGS="-O2"
3675  else
3676    CFLAGS=
3677  fi
3678fi
3679{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3680$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3681if test "${ac_cv_prog_cc_c89+set}" = set; then
3682  $as_echo_n "(cached) " >&6
3683else
3684  ac_cv_prog_cc_c89=no
3685ac_save_CC=$CC
3686cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h.  */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h.  */
3692#include <stdarg.h>
3693#include <stdio.h>
3694#include <sys/types.h>
3695#include <sys/stat.h>
3696/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3697struct buf { int x; };
3698FILE * (*rcsopen) (struct buf *, struct stat *, int);
3699static char *e (p, i)
3700     char **p;
3701     int i;
3702{
3703  return p[i];
3704}
3705static char *f (char * (*g) (char **, int), char **p, ...)
3706{
3707  char *s;
3708  va_list v;
3709  va_start (v,p);
3710  s = g (p, va_arg (v,int));
3711  va_end (v);
3712  return s;
3713}
3714
3715/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3716   function prototypes and stuff, but not '\xHH' hex character constants.
3717   These don't provoke an error unfortunately, instead are silently treated
3718   as 'x'.  The following induces an error, until -std is added to get
3719   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3720   array size at least.  It's necessary to write '\x00'==0 to get something
3721   that's true only with -std.  */
3722int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3723
3724/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3725   inside strings and character constants.  */
3726#define FOO(x) 'x'
3727int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3728
3729int test (int i, double x);
3730struct s1 {int (*f) (int a);};
3731struct s2 {int (*f) (double a);};
3732int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3733int argc;
3734char **argv;
3735int
3736main ()
3737{
3738return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3744	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3745do
3746  CC="$ac_save_CC $ac_arg"
3747  rm -f conftest.$ac_objext
3748if { (ac_try="$ac_compile"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754$as_echo "$ac_try_echo") >&5
3755  (eval "$ac_compile") 2>conftest.er1
3756  ac_status=$?
3757  grep -v '^ *+' conftest.er1 >conftest.err
3758  rm -f conftest.er1
3759  cat conftest.err >&5
3760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); } && {
3762	 test -z "$ac_c_werror_flag" ||
3763	 test ! -s conftest.err
3764       } && test -s conftest.$ac_objext; then
3765  ac_cv_prog_cc_c89=$ac_arg
3766else
3767  $as_echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770
3771fi
3772
3773rm -f core conftest.err conftest.$ac_objext
3774  test "x$ac_cv_prog_cc_c89" != "xno" && break
3775done
3776rm -f conftest.$ac_ext
3777CC=$ac_save_CC
3778
3779fi
3780# AC_CACHE_VAL
3781case "x$ac_cv_prog_cc_c89" in
3782  x)
3783    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3784$as_echo "none needed" >&6; } ;;
3785  xno)
3786    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3787$as_echo "unsupported" >&6; } ;;
3788  *)
3789    CC="$CC $ac_cv_prog_cc_c89"
3790    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3792esac
3793
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801depcc="$CC"   am_compiler_list=
3802
3803{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3804$as_echo_n "checking dependency style of $depcc... " >&6; }
3805if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3806  $as_echo_n "(cached) " >&6
3807else
3808  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3809  # We make a subdir and do the tests there.  Otherwise we can end up
3810  # making bogus files that we don't know about and never remove.  For
3811  # instance it was reported that on HP-UX the gcc test will end up
3812  # making a dummy file named `D' -- because `-MD' means `put the output
3813  # in D'.
3814  mkdir conftest.dir
3815  # Copy depcomp to subdir because otherwise we won't find it if we're
3816  # using a relative directory.
3817  cp "$am_depcomp" conftest.dir
3818  cd conftest.dir
3819  # We will build objects and dependencies in a subdirectory because
3820  # it helps to detect inapplicable dependency modes.  For instance
3821  # both Tru64's cc and ICC support -MD to output dependencies as a
3822  # side effect of compilation, but ICC will put the dependencies in
3823  # the current directory while Tru64 will put them in the object
3824  # directory.
3825  mkdir sub
3826
3827  am_cv_CC_dependencies_compiler_type=none
3828  if test "$am_compiler_list" = ""; then
3829     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3830  fi
3831  am__universal=false
3832  case " $depcc " in #(
3833     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3834     esac
3835
3836  for depmode in $am_compiler_list; do
3837    # Setup a source with many dependencies, because some compilers
3838    # like to wrap large dependency lists on column 80 (with \), and
3839    # we should not choose a depcomp mode which is confused by this.
3840    #
3841    # We need to recreate these files for each test, as the compiler may
3842    # overwrite some of them when testing with obscure command lines.
3843    # This happens at least with the AIX C compiler.
3844    : > sub/conftest.c
3845    for i in 1 2 3 4 5 6; do
3846      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3847      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3848      # Solaris 8's {/usr,}/bin/sh.
3849      touch sub/conftst$i.h
3850    done
3851    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3852
3853    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854    # mode.  It turns out that the SunPro C++ compiler does not properly
3855    # handle `-M -o', and we need to detect this.  Also, some Intel
3856    # versions had trouble with output in subdirs
3857    am__obj=sub/conftest.${OBJEXT-o}
3858    am__minus_obj="-o $am__obj"
3859    case $depmode in
3860    gcc)
3861      # This depmode causes a compiler race in universal mode.
3862      test "$am__universal" = false || continue
3863      ;;
3864    nosideeffect)
3865      # after this tag, mechanisms are not by side-effect, so they'll
3866      # only be used when explicitly requested
3867      if test "x$enable_dependency_tracking" = xyes; then
3868	continue
3869      else
3870	break
3871      fi
3872      ;;
3873    msvisualcpp | msvcmsys)
3874      # This compiler won't grok `-c -o', but also, the minuso test has
3875      # not run yet.  These depmodes are late enough in the game, and
3876      # so weak that their functioning should not be impacted.
3877      am__obj=conftest.${OBJEXT-o}
3878      am__minus_obj=
3879      ;;
3880    none) break ;;
3881    esac
3882    if depmode=$depmode \
3883       source=sub/conftest.c object=$am__obj \
3884       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3885       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3886         >/dev/null 2>conftest.err &&
3887       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3888       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3889       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3890       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3891      # icc doesn't choke on unknown options, it will just issue warnings
3892      # or remarks (even with -Werror).  So we grep stderr for any message
3893      # that says an option was ignored or not supported.
3894      # When given -MP, icc 7.0 and 7.1 complain thusly:
3895      #   icc: Command line warning: ignoring option '-M'; no argument required
3896      # The diagnosis changed in icc 8.0:
3897      #   icc: Command line remark: option '-MP' not supported
3898      if (grep 'ignoring option' conftest.err ||
3899          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3900        am_cv_CC_dependencies_compiler_type=$depmode
3901        break
3902      fi
3903    fi
3904  done
3905
3906  cd ..
3907  rm -rf conftest.dir
3908else
3909  am_cv_CC_dependencies_compiler_type=none
3910fi
3911
3912fi
3913{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3914$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3916
3917 if
3918  test "x$enable_dependency_tracking" != xno \
3919  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3920  am__fastdepCC_TRUE=
3921  am__fastdepCC_FALSE='#'
3922else
3923  am__fastdepCC_TRUE='#'
3924  am__fastdepCC_FALSE=
3925fi
3926
3927
3928{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3929$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3930if test "${lt_cv_path_SED+set}" = set; then
3931  $as_echo_n "(cached) " >&6
3932else
3933  # Loop through the user's path and test for sed and gsed.
3934# Then use that list of sed's as ones to test for truncation.
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940  for lt_ac_prog in sed gsed; do
3941    for ac_exec_ext in '' $ac_executable_extensions; do
3942      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3943        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3944      fi
3945    done
3946  done
3947done
3948IFS=$as_save_IFS
3949lt_ac_max=0
3950lt_ac_count=0
3951# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3952# along with /bin/sed that truncates output.
3953for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3954  test ! -f $lt_ac_sed && continue
3955  cat /dev/null > conftest.in
3956  lt_ac_count=0
3957  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3958  # Check for GNU sed and select it if it is found.
3959  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3960    lt_cv_path_SED=$lt_ac_sed
3961    break
3962  fi
3963  while true; do
3964    cat conftest.in conftest.in >conftest.tmp
3965    mv conftest.tmp conftest.in
3966    cp conftest.in conftest.nl
3967    echo >>conftest.nl
3968    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3969    cmp -s conftest.out conftest.nl || break
3970    # 10000 chars as input seems more than enough
3971    test $lt_ac_count -gt 10 && break
3972    lt_ac_count=`expr $lt_ac_count + 1`
3973    if test $lt_ac_count -gt $lt_ac_max; then
3974      lt_ac_max=$lt_ac_count
3975      lt_cv_path_SED=$lt_ac_sed
3976    fi
3977  done
3978done
3979
3980fi
3981
3982SED=$lt_cv_path_SED
3983
3984{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3985$as_echo "$SED" >&6; }
3986
3987{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3988$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3989if test "${ac_cv_path_GREP+set}" = set; then
3990  $as_echo_n "(cached) " >&6
3991else
3992  if test -z "$GREP"; then
3993  ac_path_GREP_found=false
3994  # Loop through the user's path and test for each of PROGNAME-LIST
3995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997do
3998  IFS=$as_save_IFS
3999  test -z "$as_dir" && as_dir=.
4000  for ac_prog in grep ggrep; do
4001    for ac_exec_ext in '' $ac_executable_extensions; do
4002      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004# Check for GNU ac_path_GREP and select it if it is found.
4005  # Check for GNU $ac_path_GREP
4006case `"$ac_path_GREP" --version 2>&1` in
4007*GNU*)
4008  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009*)
4010  ac_count=0
4011  $as_echo_n 0123456789 >"conftest.in"
4012  while :
4013  do
4014    cat "conftest.in" "conftest.in" >"conftest.tmp"
4015    mv "conftest.tmp" "conftest.in"
4016    cp "conftest.in" "conftest.nl"
4017    $as_echo 'GREP' >> "conftest.nl"
4018    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020    ac_count=`expr $ac_count + 1`
4021    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022      # Best one so far, save it but keep looking for a better one
4023      ac_cv_path_GREP="$ac_path_GREP"
4024      ac_path_GREP_max=$ac_count
4025    fi
4026    # 10*(2^10) chars as input seems more than enough
4027    test $ac_count -gt 10 && break
4028  done
4029  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030esac
4031
4032      $ac_path_GREP_found && break 3
4033    done
4034  done
4035done
4036IFS=$as_save_IFS
4037  if test -z "$ac_cv_path_GREP"; then
4038    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040   { (exit 1); exit 1; }; }
4041  fi
4042else
4043  ac_cv_path_GREP=$GREP
4044fi
4045
4046fi
4047{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048$as_echo "$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4050
4051
4052{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4053$as_echo_n "checking for egrep... " >&6; }
4054if test "${ac_cv_path_EGREP+set}" = set; then
4055  $as_echo_n "(cached) " >&6
4056else
4057  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058   then ac_cv_path_EGREP="$GREP -E"
4059   else
4060     if test -z "$EGREP"; then
4061  ac_path_EGREP_found=false
4062  # Loop through the user's path and test for each of PROGNAME-LIST
4063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068  for ac_prog in egrep; do
4069    for ac_exec_ext in '' $ac_executable_extensions; do
4070      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072# Check for GNU ac_path_EGREP and select it if it is found.
4073  # Check for GNU $ac_path_EGREP
4074case `"$ac_path_EGREP" --version 2>&1` in
4075*GNU*)
4076  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077*)
4078  ac_count=0
4079  $as_echo_n 0123456789 >"conftest.in"
4080  while :
4081  do
4082    cat "conftest.in" "conftest.in" >"conftest.tmp"
4083    mv "conftest.tmp" "conftest.in"
4084    cp "conftest.in" "conftest.nl"
4085    $as_echo 'EGREP' >> "conftest.nl"
4086    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088    ac_count=`expr $ac_count + 1`
4089    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090      # Best one so far, save it but keep looking for a better one
4091      ac_cv_path_EGREP="$ac_path_EGREP"
4092      ac_path_EGREP_max=$ac_count
4093    fi
4094    # 10*(2^10) chars as input seems more than enough
4095    test $ac_count -gt 10 && break
4096  done
4097  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098esac
4099
4100      $ac_path_EGREP_found && break 3
4101    done
4102  done
4103done
4104IFS=$as_save_IFS
4105  if test -z "$ac_cv_path_EGREP"; then
4106    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108   { (exit 1); exit 1; }; }
4109  fi
4110else
4111  ac_cv_path_EGREP=$EGREP
4112fi
4113
4114   fi
4115fi
4116{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117$as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4119
4120
4121
4122# Check whether --with-gnu-ld was given.
4123if test "${with_gnu_ld+set}" = set; then
4124  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4125else
4126  with_gnu_ld=no
4127fi
4128
4129ac_prog=ld
4130if test "$GCC" = yes; then
4131  # Check if gcc -print-prog-name=ld gives a path.
4132  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4133$as_echo_n "checking for ld used by $CC... " >&6; }
4134  case $host in
4135  *-*-mingw*)
4136    # gcc leaves a trailing carriage return which upsets mingw
4137    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4138  *)
4139    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4140  esac
4141  case $ac_prog in
4142    # Accept absolute paths.
4143    [\\/]* | ?:[\\/]*)
4144      re_direlt='/[^/][^/]*/\.\./'
4145      # Canonicalize the pathname of ld
4146      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4147      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4148	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4149      done
4150      test -z "$LD" && LD="$ac_prog"
4151      ;;
4152  "")
4153    # If it fails, then pretend we aren't using GCC.
4154    ac_prog=ld
4155    ;;
4156  *)
4157    # If it is relative, then search for the first ld in PATH.
4158    with_gnu_ld=unknown
4159    ;;
4160  esac
4161elif test "$with_gnu_ld" = yes; then
4162  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4163$as_echo_n "checking for GNU ld... " >&6; }
4164else
4165  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4166$as_echo_n "checking for non-GNU ld... " >&6; }
4167fi
4168if test "${lt_cv_path_LD+set}" = set; then
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -z "$LD"; then
4172  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4173  for ac_dir in $PATH; do
4174    IFS="$lt_save_ifs"
4175    test -z "$ac_dir" && ac_dir=.
4176    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4177      lt_cv_path_LD="$ac_dir/$ac_prog"
4178      # Check to see if the program is GNU ld.  I'd rather use --version,
4179      # but apparently some variants of GNU ld only accept -v.
4180      # Break only if it was the GNU/non-GNU ld that we prefer.
4181      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4182      *GNU* | *'with BFD'*)
4183	test "$with_gnu_ld" != no && break
4184	;;
4185      *)
4186	test "$with_gnu_ld" != yes && break
4187	;;
4188      esac
4189    fi
4190  done
4191  IFS="$lt_save_ifs"
4192else
4193  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4194fi
4195fi
4196
4197LD="$lt_cv_path_LD"
4198if test -n "$LD"; then
4199  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4200$as_echo "$LD" >&6; }
4201else
4202  { $as_echo "$as_me:$LINENO: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4206$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4207   { (exit 1); exit 1; }; }
4208{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4209$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4210if test "${lt_cv_prog_gnu_ld+set}" = set; then
4211  $as_echo_n "(cached) " >&6
4212else
4213  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4214case `$LD -v 2>&1 </dev/null` in
4215*GNU* | *'with BFD'*)
4216  lt_cv_prog_gnu_ld=yes
4217  ;;
4218*)
4219  lt_cv_prog_gnu_ld=no
4220  ;;
4221esac
4222fi
4223{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4224$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4225with_gnu_ld=$lt_cv_prog_gnu_ld
4226
4227
4228{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4229$as_echo_n "checking for $LD option to reload object files... " >&6; }
4230if test "${lt_cv_ld_reload_flag+set}" = set; then
4231  $as_echo_n "(cached) " >&6
4232else
4233  lt_cv_ld_reload_flag='-r'
4234fi
4235{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4236$as_echo "$lt_cv_ld_reload_flag" >&6; }
4237reload_flag=$lt_cv_ld_reload_flag
4238case $reload_flag in
4239"" | " "*) ;;
4240*) reload_flag=" $reload_flag" ;;
4241esac
4242reload_cmds='$LD$reload_flag -o $output$reload_objs'
4243case $host_os in
4244  darwin*)
4245    if test "$GCC" = yes; then
4246      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4247    else
4248      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4249    fi
4250    ;;
4251esac
4252
4253{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4254$as_echo_n "checking for BSD-compatible nm... " >&6; }
4255if test "${lt_cv_path_NM+set}" = set; then
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -n "$NM"; then
4259  # Let the user override the test.
4260  lt_cv_path_NM="$NM"
4261else
4262  lt_nm_to_check="${ac_tool_prefix}nm"
4263  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4264    lt_nm_to_check="$lt_nm_to_check nm"
4265  fi
4266  for lt_tmp_nm in $lt_nm_to_check; do
4267    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4268    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4269      IFS="$lt_save_ifs"
4270      test -z "$ac_dir" && ac_dir=.
4271      tmp_nm="$ac_dir/$lt_tmp_nm"
4272      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4273	# Check to see if the nm accepts a BSD-compat flag.
4274	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4275	#   nm: unknown option "B" ignored
4276	# Tru64's nm complains that /dev/null is an invalid object file
4277	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4278	*/dev/null* | *'Invalid file or object type'*)
4279	  lt_cv_path_NM="$tmp_nm -B"
4280	  break
4281	  ;;
4282	*)
4283	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4284	  */dev/null*)
4285	    lt_cv_path_NM="$tmp_nm -p"
4286	    break
4287	    ;;
4288	  *)
4289	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4290	    continue # so that we can try to find one that supports BSD flags
4291	    ;;
4292	  esac
4293	  ;;
4294	esac
4295      fi
4296    done
4297    IFS="$lt_save_ifs"
4298  done
4299  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4300fi
4301fi
4302{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4303$as_echo "$lt_cv_path_NM" >&6; }
4304NM="$lt_cv_path_NM"
4305
4306{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4307$as_echo_n "checking whether ln -s works... " >&6; }
4308LN_S=$as_ln_s
4309if test "$LN_S" = "ln -s"; then
4310  { $as_echo "$as_me:$LINENO: result: yes" >&5
4311$as_echo "yes" >&6; }
4312else
4313  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4314$as_echo "no, using $LN_S" >&6; }
4315fi
4316
4317{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4318$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4319if test "${lt_cv_deplibs_check_method+set}" = set; then
4320  $as_echo_n "(cached) " >&6
4321else
4322  lt_cv_file_magic_cmd='$MAGIC_CMD'
4323lt_cv_file_magic_test_file=
4324lt_cv_deplibs_check_method='unknown'
4325# Need to set the preceding variable on all platforms that support
4326# interlibrary dependencies.
4327# 'none' -- dependencies not supported.
4328# `unknown' -- same as none, but documents that we really don't know.
4329# 'pass_all' -- all dependencies passed with no checks.
4330# 'test_compile' -- check by making test program.
4331# 'file_magic [[regex]]' -- check by looking for files in library path
4332# which responds to the $file_magic_cmd with a given extended regex.
4333# If you have `file' or equivalent on your system and you're not sure
4334# whether `pass_all' will *always* work, you probably want this one.
4335
4336case $host_os in
4337aix[4-9]*)
4338  lt_cv_deplibs_check_method=pass_all
4339  ;;
4340
4341beos*)
4342  lt_cv_deplibs_check_method=pass_all
4343  ;;
4344
4345bsdi[45]*)
4346  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4347  lt_cv_file_magic_cmd='/usr/bin/file -L'
4348  lt_cv_file_magic_test_file=/shlib/libc.so
4349  ;;
4350
4351cygwin*)
4352  # func_win32_libid is a shell function defined in ltmain.sh
4353  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4354  lt_cv_file_magic_cmd='func_win32_libid'
4355  ;;
4356
4357mingw* | pw32*)
4358  # Base MSYS/MinGW do not provide the 'file' command needed by
4359  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4360  # unless we find 'file', for example because we are cross-compiling.
4361  if ( file / ) >/dev/null 2>&1; then
4362    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4363    lt_cv_file_magic_cmd='func_win32_libid'
4364  else
4365    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4366    lt_cv_file_magic_cmd='$OBJDUMP -f'
4367  fi
4368  ;;
4369
4370darwin* | rhapsody*)
4371  lt_cv_deplibs_check_method=pass_all
4372  ;;
4373
4374freebsd* | dragonfly*)
4375  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4376    case $host_cpu in
4377    i*86 )
4378      # Not sure whether the presence of OpenBSD here was a mistake.
4379      # Let's accept both of them until this is cleared up.
4380      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4381      lt_cv_file_magic_cmd=/usr/bin/file
4382      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4383      ;;
4384    esac
4385  else
4386    lt_cv_deplibs_check_method=pass_all
4387  fi
4388  ;;
4389
4390gnu*)
4391  lt_cv_deplibs_check_method=pass_all
4392  ;;
4393
4394hpux10.20* | hpux11*)
4395  lt_cv_file_magic_cmd=/usr/bin/file
4396  case $host_cpu in
4397  ia64*)
4398    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4399    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4400    ;;
4401  hppa*64*)
4402    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]'
4403    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4404    ;;
4405  *)
4406    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4407    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4408    ;;
4409  esac
4410  ;;
4411
4412interix[3-9]*)
4413  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4414  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4415  ;;
4416
4417irix5* | irix6* | nonstopux*)
4418  case $LD in
4419  *-32|*"-32 ") libmagic=32-bit;;
4420  *-n32|*"-n32 ") libmagic=N32;;
4421  *-64|*"-64 ") libmagic=64-bit;;
4422  *) libmagic=never-match;;
4423  esac
4424  lt_cv_deplibs_check_method=pass_all
4425  ;;
4426
4427# This must be Linux ELF.
4428linux* | k*bsd*-gnu)
4429  lt_cv_deplibs_check_method=pass_all
4430  ;;
4431
4432netbsd*)
4433  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4434    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4435  else
4436    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4437  fi
4438  ;;
4439
4440newos6*)
4441  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4442  lt_cv_file_magic_cmd=/usr/bin/file
4443  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4444  ;;
4445
4446nto-qnx*)
4447  lt_cv_deplibs_check_method=unknown
4448  ;;
4449
4450openbsd*)
4451  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4452    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4453  else
4454    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4455  fi
4456  ;;
4457
4458osf3* | osf4* | osf5*)
4459  lt_cv_deplibs_check_method=pass_all
4460  ;;
4461
4462rdos*)
4463  lt_cv_deplibs_check_method=pass_all
4464  ;;
4465
4466solaris*)
4467  lt_cv_deplibs_check_method=pass_all
4468  ;;
4469
4470sysv4 | sysv4.3*)
4471  case $host_vendor in
4472  motorola)
4473    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]'
4474    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4475    ;;
4476  ncr)
4477    lt_cv_deplibs_check_method=pass_all
4478    ;;
4479  sequent)
4480    lt_cv_file_magic_cmd='/bin/file'
4481    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4482    ;;
4483  sni)
4484    lt_cv_file_magic_cmd='/bin/file'
4485    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4486    lt_cv_file_magic_test_file=/lib/libc.so
4487    ;;
4488  siemens)
4489    lt_cv_deplibs_check_method=pass_all
4490    ;;
4491  pc)
4492    lt_cv_deplibs_check_method=pass_all
4493    ;;
4494  esac
4495  ;;
4496
4497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4498  lt_cv_deplibs_check_method=pass_all
4499  ;;
4500esac
4501
4502fi
4503{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4504$as_echo "$lt_cv_deplibs_check_method" >&6; }
4505file_magic_cmd=$lt_cv_file_magic_cmd
4506deplibs_check_method=$lt_cv_deplibs_check_method
4507test -z "$deplibs_check_method" && deplibs_check_method=unknown
4508
4509
4510
4511
4512# If no C compiler was specified, use CC.
4513LTCC=${LTCC-"$CC"}
4514
4515# If no C compiler flags were specified, use CFLAGS.
4516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4517
4518# Allow CC to be a program name with arguments.
4519compiler=$CC
4520
4521
4522# Check whether --enable-libtool-lock was given.
4523if test "${enable_libtool_lock+set}" = set; then
4524  enableval=$enable_libtool_lock;
4525fi
4526
4527test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4528
4529# Some flags need to be propagated to the compiler or linker for good
4530# libtool support.
4531case $host in
4532ia64-*-hpux*)
4533  # Find out which ABI we are using.
4534  echo 'int i;' > conftest.$ac_ext
4535  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536  (eval $ac_compile) 2>&5
4537  ac_status=$?
4538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); }; then
4540    case `/usr/bin/file conftest.$ac_objext` in
4541    *ELF-32*)
4542      HPUX_IA64_MODE="32"
4543      ;;
4544    *ELF-64*)
4545      HPUX_IA64_MODE="64"
4546      ;;
4547    esac
4548  fi
4549  rm -rf conftest*
4550  ;;
4551*-*-irix6*)
4552  # Find out which ABI we are using.
4553  echo '#line 4553 "configure"' > conftest.$ac_ext
4554  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555  (eval $ac_compile) 2>&5
4556  ac_status=$?
4557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; then
4559   if test "$lt_cv_prog_gnu_ld" = yes; then
4560    case `/usr/bin/file conftest.$ac_objext` in
4561    *32-bit*)
4562      LD="${LD-ld} -melf32bsmip"
4563      ;;
4564    *N32*)
4565      LD="${LD-ld} -melf32bmipn32"
4566      ;;
4567    *64-bit*)
4568      LD="${LD-ld} -melf64bmip"
4569      ;;
4570    esac
4571   else
4572    case `/usr/bin/file conftest.$ac_objext` in
4573    *32-bit*)
4574      LD="${LD-ld} -32"
4575      ;;
4576    *N32*)
4577      LD="${LD-ld} -n32"
4578      ;;
4579    *64-bit*)
4580      LD="${LD-ld} -64"
4581      ;;
4582    esac
4583   fi
4584  fi
4585  rm -rf conftest*
4586  ;;
4587
4588x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4589s390*-*linux*|sparc*-*linux*)
4590  # Find out which ABI we are using.
4591  echo 'int i;' > conftest.$ac_ext
4592  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593  (eval $ac_compile) 2>&5
4594  ac_status=$?
4595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); }; then
4597    case `/usr/bin/file conftest.o` in
4598    *32-bit*)
4599      case $host in
4600        x86_64-*kfreebsd*-gnu)
4601          LD="${LD-ld} -m elf_i386_fbsd"
4602          ;;
4603        x86_64-*linux*)
4604          LD="${LD-ld} -m elf_i386"
4605          ;;
4606        ppc64-*linux*|powerpc64-*linux*)
4607          LD="${LD-ld} -m elf32ppclinux"
4608          ;;
4609        s390x-*linux*)
4610          LD="${LD-ld} -m elf_s390"
4611          ;;
4612        sparc64-*linux*)
4613          LD="${LD-ld} -m elf32_sparc"
4614          ;;
4615      esac
4616      ;;
4617    *64-bit*)
4618      libsuff=64
4619      case $host in
4620        x86_64-*kfreebsd*-gnu)
4621          LD="${LD-ld} -m elf_x86_64_fbsd"
4622          ;;
4623        x86_64-*linux*)
4624          LD="${LD-ld} -m elf_x86_64"
4625          ;;
4626        ppc*-*linux*|powerpc*-*linux*)
4627          LD="${LD-ld} -m elf64ppc"
4628          ;;
4629        s390*-*linux*)
4630          LD="${LD-ld} -m elf64_s390"
4631          ;;
4632        sparc*-*linux*)
4633          LD="${LD-ld} -m elf64_sparc"
4634          ;;
4635      esac
4636      ;;
4637    esac
4638  fi
4639  rm -rf conftest*
4640  ;;
4641
4642*-*-sco3.2v5*)
4643  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4644  SAVE_CFLAGS="$CFLAGS"
4645  CFLAGS="$CFLAGS -belf"
4646  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4647$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4648if test "${lt_cv_cc_needs_belf+set}" = set; then
4649  $as_echo_n "(cached) " >&6
4650else
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
4657     cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h.  */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h.  */
4663
4664int
4665main ()
4666{
4667
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672rm -f conftest.$ac_objext conftest$ac_exeext
4673if { (ac_try="$ac_link"
4674case "(($ac_try" in
4675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676  *) ac_try_echo=$ac_try;;
4677esac
4678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679$as_echo "$ac_try_echo") >&5
4680  (eval "$ac_link") 2>conftest.er1
4681  ac_status=$?
4682  grep -v '^ *+' conftest.er1 >conftest.err
4683  rm -f conftest.er1
4684  cat conftest.err >&5
4685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); } && {
4687	 test -z "$ac_c_werror_flag" ||
4688	 test ! -s conftest.err
4689       } && test -s conftest$ac_exeext && {
4690	 test "$cross_compiling" = yes ||
4691	 $as_test_x conftest$ac_exeext
4692       }; then
4693  lt_cv_cc_needs_belf=yes
4694else
4695  $as_echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698	lt_cv_cc_needs_belf=no
4699fi
4700
4701rm -rf conftest.dSYM
4702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4703      conftest$ac_exeext conftest.$ac_ext
4704     ac_ext=c
4705ac_cpp='$CPP $CPPFLAGS'
4706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710fi
4711{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4712$as_echo "$lt_cv_cc_needs_belf" >&6; }
4713  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4714    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4715    CFLAGS="$SAVE_CFLAGS"
4716  fi
4717  ;;
4718sparc*-*solaris*)
4719  # Find out which ABI we are using.
4720  echo 'int i;' > conftest.$ac_ext
4721  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722  (eval $ac_compile) 2>&5
4723  ac_status=$?
4724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725  (exit $ac_status); }; then
4726    case `/usr/bin/file conftest.o` in
4727    *64-bit*)
4728      case $lt_cv_prog_gnu_ld in
4729      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4730      *)
4731        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4732	  LD="${LD-ld} -64"
4733	fi
4734	;;
4735      esac
4736      ;;
4737    esac
4738  fi
4739  rm -rf conftest*
4740  ;;
4741
4742
4743esac
4744
4745need_locks="$enable_libtool_lock"
4746
4747
4748ac_ext=c
4749ac_cpp='$CPP $CPPFLAGS'
4750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4754$as_echo_n "checking how to run the C preprocessor... " >&6; }
4755# On Suns, sometimes $CPP names a directory.
4756if test -n "$CPP" && test -d "$CPP"; then
4757  CPP=
4758fi
4759if test -z "$CPP"; then
4760  if test "${ac_cv_prog_CPP+set}" = set; then
4761  $as_echo_n "(cached) " >&6
4762else
4763      # Double quotes because CPP needs to be expanded
4764    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4765    do
4766      ac_preproc_ok=false
4767for ac_c_preproc_warn_flag in '' yes
4768do
4769  # Use a header file that comes with gcc, so configuring glibc
4770  # with a fresh cross-compiler works.
4771  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4772  # <limits.h> exists even on freestanding compilers.
4773  # On the NeXT, cc -E runs the code through the compiler's parser,
4774  # not just through cpp. "Syntax error" is here to catch this case.
4775  cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h.  */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h.  */
4781#ifdef __STDC__
4782# include <limits.h>
4783#else
4784# include <assert.h>
4785#endif
4786		     Syntax error
4787_ACEOF
4788if { (ac_try="$ac_cpp conftest.$ac_ext"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794$as_echo "$ac_try_echo") >&5
4795  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } >/dev/null && {
4802	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803	 test ! -s conftest.err
4804       }; then
4805  :
4806else
4807  $as_echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810  # Broken: fails on valid input.
4811continue
4812fi
4813
4814rm -f conftest.err conftest.$ac_ext
4815
4816  # OK, works on sane cases.  Now check whether nonexistent headers
4817  # can be detected and how.
4818  cat >conftest.$ac_ext <<_ACEOF
4819/* confdefs.h.  */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h.  */
4824#include <ac_nonexistent.h>
4825_ACEOF
4826if { (ac_try="$ac_cpp conftest.$ac_ext"
4827case "(($ac_try" in
4828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829  *) ac_try_echo=$ac_try;;
4830esac
4831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832$as_echo "$ac_try_echo") >&5
4833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } >/dev/null && {
4840	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4841	 test ! -s conftest.err
4842       }; then
4843  # Broken: success on invalid input.
4844continue
4845else
4846  $as_echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849  # Passes both tests.
4850ac_preproc_ok=:
4851break
4852fi
4853
4854rm -f conftest.err conftest.$ac_ext
4855
4856done
4857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4858rm -f conftest.err conftest.$ac_ext
4859if $ac_preproc_ok; then
4860  break
4861fi
4862
4863    done
4864    ac_cv_prog_CPP=$CPP
4865
4866fi
4867  CPP=$ac_cv_prog_CPP
4868else
4869  ac_cv_prog_CPP=$CPP
4870fi
4871{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4872$as_echo "$CPP" >&6; }
4873ac_preproc_ok=false
4874for ac_c_preproc_warn_flag in '' yes
4875do
4876  # Use a header file that comes with gcc, so configuring glibc
4877  # with a fresh cross-compiler works.
4878  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4879  # <limits.h> exists even on freestanding compilers.
4880  # On the NeXT, cc -E runs the code through the compiler's parser,
4881  # not just through cpp. "Syntax error" is here to catch this case.
4882  cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h.  */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h.  */
4888#ifdef __STDC__
4889# include <limits.h>
4890#else
4891# include <assert.h>
4892#endif
4893		     Syntax error
4894_ACEOF
4895if { (ac_try="$ac_cpp conftest.$ac_ext"
4896case "(($ac_try" in
4897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898  *) ac_try_echo=$ac_try;;
4899esac
4900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4901$as_echo "$ac_try_echo") >&5
4902  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } >/dev/null && {
4909	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4910	 test ! -s conftest.err
4911       }; then
4912  :
4913else
4914  $as_echo "$as_me: failed program was:" >&5
4915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917  # Broken: fails on valid input.
4918continue
4919fi
4920
4921rm -f conftest.err conftest.$ac_ext
4922
4923  # OK, works on sane cases.  Now check whether nonexistent headers
4924  # can be detected and how.
4925  cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931#include <ac_nonexistent.h>
4932_ACEOF
4933if { (ac_try="$ac_cpp conftest.$ac_ext"
4934case "(($ac_try" in
4935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936  *) ac_try_echo=$ac_try;;
4937esac
4938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4939$as_echo "$ac_try_echo") >&5
4940  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4941  ac_status=$?
4942  grep -v '^ *+' conftest.er1 >conftest.err
4943  rm -f conftest.er1
4944  cat conftest.err >&5
4945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); } >/dev/null && {
4947	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948	 test ! -s conftest.err
4949       }; then
4950  # Broken: success on invalid input.
4951continue
4952else
4953  $as_echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956  # Passes both tests.
4957ac_preproc_ok=:
4958break
4959fi
4960
4961rm -f conftest.err conftest.$ac_ext
4962
4963done
4964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965rm -f conftest.err conftest.$ac_ext
4966if $ac_preproc_ok; then
4967  :
4968else
4969  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4972See \`config.log' for more details." >&5
4973$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4974See \`config.log' for more details." >&2;}
4975   { (exit 1); exit 1; }; }; }
4976fi
4977
4978ac_ext=c
4979ac_cpp='$CPP $CPPFLAGS'
4980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984
4985{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4986$as_echo_n "checking for ANSI C header files... " >&6; }
4987if test "${ac_cv_header_stdc+set}" = set; then
4988  $as_echo_n "(cached) " >&6
4989else
4990  cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996#include <stdlib.h>
4997#include <stdarg.h>
4998#include <string.h>
4999#include <float.h>
5000
5001int
5002main ()
5003{
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009rm -f conftest.$ac_objext
5010if { (ac_try="$ac_compile"
5011case "(($ac_try" in
5012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013  *) ac_try_echo=$ac_try;;
5014esac
5015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5016$as_echo "$ac_try_echo") >&5
5017  (eval "$ac_compile") 2>conftest.er1
5018  ac_status=$?
5019  grep -v '^ *+' conftest.er1 >conftest.err
5020  rm -f conftest.er1
5021  cat conftest.err >&5
5022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } && {
5024	 test -z "$ac_c_werror_flag" ||
5025	 test ! -s conftest.err
5026       } && test -s conftest.$ac_objext; then
5027  ac_cv_header_stdc=yes
5028else
5029  $as_echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032	ac_cv_header_stdc=no
5033fi
5034
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036
5037if test $ac_cv_header_stdc = yes; then
5038  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5039  cat >conftest.$ac_ext <<_ACEOF
5040/* confdefs.h.  */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h.  */
5045#include <string.h>
5046
5047_ACEOF
5048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049  $EGREP "memchr" >/dev/null 2>&1; then
5050  :
5051else
5052  ac_cv_header_stdc=no
5053fi
5054rm -f conftest*
5055
5056fi
5057
5058if test $ac_cv_header_stdc = yes; then
5059  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5060  cat >conftest.$ac_ext <<_ACEOF
5061/* confdefs.h.  */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h.  */
5066#include <stdlib.h>
5067
5068_ACEOF
5069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5070  $EGREP "free" >/dev/null 2>&1; then
5071  :
5072else
5073  ac_cv_header_stdc=no
5074fi
5075rm -f conftest*
5076
5077fi
5078
5079if test $ac_cv_header_stdc = yes; then
5080  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5081  if test "$cross_compiling" = yes; then
5082  :
5083else
5084  cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h.  */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h.  */
5090#include <ctype.h>
5091#include <stdlib.h>
5092#if ((' ' & 0x0FF) == 0x020)
5093# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5094# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5095#else
5096# define ISLOWER(c) \
5097		   (('a' <= (c) && (c) <= 'i') \
5098		     || ('j' <= (c) && (c) <= 'r') \
5099		     || ('s' <= (c) && (c) <= 'z'))
5100# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5101#endif
5102
5103#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5104int
5105main ()
5106{
5107  int i;
5108  for (i = 0; i < 256; i++)
5109    if (XOR (islower (i), ISLOWER (i))
5110	|| toupper (i) != TOUPPER (i))
5111      return 2;
5112  return 0;
5113}
5114_ACEOF
5115rm -f conftest$ac_exeext
5116if { (ac_try="$ac_link"
5117case "(($ac_try" in
5118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119  *) ac_try_echo=$ac_try;;
5120esac
5121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122$as_echo "$ac_try_echo") >&5
5123  (eval "$ac_link") 2>&5
5124  ac_status=$?
5125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5127  { (case "(($ac_try" in
5128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129  *) ac_try_echo=$ac_try;;
5130esac
5131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132$as_echo "$ac_try_echo") >&5
5133  (eval "$ac_try") 2>&5
5134  ac_status=$?
5135  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  :
5138else
5139  $as_echo "$as_me: program exited with status $ac_status" >&5
5140$as_echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143( exit $ac_status )
5144ac_cv_header_stdc=no
5145fi
5146rm -rf conftest.dSYM
5147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5148fi
5149
5150
5151fi
5152fi
5153{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5154$as_echo "$ac_cv_header_stdc" >&6; }
5155if test $ac_cv_header_stdc = yes; then
5156
5157cat >>confdefs.h <<\_ACEOF
5158#define STDC_HEADERS 1
5159_ACEOF
5160
5161fi
5162
5163# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5174		  inttypes.h stdint.h unistd.h
5175do
5176as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5177{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5178$as_echo_n "checking for $ac_header... " >&6; }
5179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180  $as_echo_n "(cached) " >&6
5181else
5182  cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h.  */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h.  */
5188$ac_includes_default
5189
5190#include <$ac_header>
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (ac_try="$ac_compile"
5194case "(($ac_try" in
5195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196  *) ac_try_echo=$ac_try;;
5197esac
5198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199$as_echo "$ac_try_echo") >&5
5200  (eval "$ac_compile") 2>conftest.er1
5201  ac_status=$?
5202  grep -v '^ *+' conftest.er1 >conftest.err
5203  rm -f conftest.er1
5204  cat conftest.err >&5
5205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); } && {
5207	 test -z "$ac_c_werror_flag" ||
5208	 test ! -s conftest.err
5209       } && test -s conftest.$ac_objext; then
5210  eval "$as_ac_Header=yes"
5211else
5212  $as_echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215	eval "$as_ac_Header=no"
5216fi
5217
5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
5220ac_res=`eval 'as_val=${'$as_ac_Header'}
5221		 $as_echo "$as_val"'`
5222	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5223$as_echo "$ac_res" >&6; }
5224as_val=`eval 'as_val=${'$as_ac_Header'}
5225		 $as_echo "$as_val"'`
5226   if test "x$as_val" = x""yes; then
5227  cat >>confdefs.h <<_ACEOF
5228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229_ACEOF
5230
5231fi
5232
5233done
5234
5235
5236
5237for ac_header in dlfcn.h
5238do
5239as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5242$as_echo_n "checking for $ac_header... " >&6; }
5243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244  $as_echo_n "(cached) " >&6
5245fi
5246ac_res=`eval 'as_val=${'$as_ac_Header'}
5247		 $as_echo "$as_val"'`
5248	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5249$as_echo "$ac_res" >&6; }
5250else
5251  # Is the header compilable?
5252{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5253$as_echo_n "checking $ac_header usability... " >&6; }
5254cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h.  */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h.  */
5260$ac_includes_default
5261#include <$ac_header>
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270$as_echo "$ac_try_echo") >&5
5271  (eval "$ac_compile") 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } && {
5278	 test -z "$ac_c_werror_flag" ||
5279	 test ! -s conftest.err
5280       } && test -s conftest.$ac_objext; then
5281  ac_header_compiler=yes
5282else
5283  $as_echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286	ac_header_compiler=no
5287fi
5288
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291$as_echo "$ac_header_compiler" >&6; }
5292
5293# Is the header present?
5294{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295$as_echo_n "checking $ac_header presence... " >&6; }
5296cat >conftest.$ac_ext <<_ACEOF
5297/* confdefs.h.  */
5298_ACEOF
5299cat confdefs.h >>conftest.$ac_ext
5300cat >>conftest.$ac_ext <<_ACEOF
5301/* end confdefs.h.  */
5302#include <$ac_header>
5303_ACEOF
5304if { (ac_try="$ac_cpp conftest.$ac_ext"
5305case "(($ac_try" in
5306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307  *) ac_try_echo=$ac_try;;
5308esac
5309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310$as_echo "$ac_try_echo") >&5
5311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } >/dev/null && {
5318	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319	 test ! -s conftest.err
5320       }; then
5321  ac_header_preproc=yes
5322else
5323  $as_echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326  ac_header_preproc=no
5327fi
5328
5329rm -f conftest.err conftest.$ac_ext
5330{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331$as_echo "$ac_header_preproc" >&6; }
5332
5333# So?  What about this header?
5334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335  yes:no: )
5336    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340    ac_header_preproc=yes
5341    ;;
5342  no:yes:* )
5343    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5346$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5347    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5350$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5351    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355    ( cat <<\_ASBOX
5356## ---------------------------------------------------------------------- ##
5357## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5358## ---------------------------------------------------------------------- ##
5359_ASBOX
5360     ) | sed "s/^/$as_me: WARNING:     /" >&2
5361    ;;
5362esac
5363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5364$as_echo_n "checking for $ac_header... " >&6; }
5365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5366  $as_echo_n "(cached) " >&6
5367else
5368  eval "$as_ac_Header=\$ac_header_preproc"
5369fi
5370ac_res=`eval 'as_val=${'$as_ac_Header'}
5371		 $as_echo "$as_val"'`
5372	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5373$as_echo "$ac_res" >&6; }
5374
5375fi
5376as_val=`eval 'as_val=${'$as_ac_Header'}
5377		 $as_echo "$as_val"'`
5378   if test "x$as_val" = x""yes; then
5379  cat >>confdefs.h <<_ACEOF
5380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381_ACEOF
5382
5383fi
5384
5385done
5386
5387ac_ext=cpp
5388ac_cpp='$CXXCPP $CPPFLAGS'
5389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392if test -z "$CXX"; then
5393  if test -n "$CCC"; then
5394    CXX=$CCC
5395  else
5396    if test -n "$ac_tool_prefix"; then
5397  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398  do
5399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_prog_CXX+set}" = set; then
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$CXX"; then
5407  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414  for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5417    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426CXX=$ac_cv_prog_CXX
5427if test -n "$CXX"; then
5428  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5429$as_echo "$CXX" >&6; }
5430else
5431  { $as_echo "$as_me:$LINENO: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436    test -n "$CXX" && break
5437  done
5438fi
5439if test -z "$CXX"; then
5440  ac_ct_CXX=$CXX
5441  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5442do
5443  # Extract the first word of "$ac_prog", so it can be a program name with args.
5444set dummy $ac_prog; ac_word=$2
5445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
5447if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5448  $as_echo_n "(cached) " >&6
5449else
5450  if test -n "$ac_ct_CXX"; then
5451  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458  for ac_exec_ext in '' $ac_executable_extensions; do
5459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460    ac_cv_prog_ac_ct_CXX="$ac_prog"
5461    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465done
5466IFS=$as_save_IFS
5467
5468fi
5469fi
5470ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5471if test -n "$ac_ct_CXX"; then
5472  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5473$as_echo "$ac_ct_CXX" >&6; }
5474else
5475  { $as_echo "$as_me:$LINENO: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480  test -n "$ac_ct_CXX" && break
5481done
5482
5483  if test "x$ac_ct_CXX" = x; then
5484    CXX="g++"
5485  else
5486    case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492    CXX=$ac_ct_CXX
5493  fi
5494fi
5495
5496  fi
5497fi
5498# Provide some information about the compiler.
5499$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5500set X $ac_compile
5501ac_compiler=$2
5502{ (ac_try="$ac_compiler --version >&5"
5503case "(($ac_try" in
5504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505  *) ac_try_echo=$ac_try;;
5506esac
5507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5508$as_echo "$ac_try_echo") >&5
5509  (eval "$ac_compiler --version >&5") 2>&5
5510  ac_status=$?
5511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }
5513{ (ac_try="$ac_compiler -v >&5"
5514case "(($ac_try" in
5515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516  *) ac_try_echo=$ac_try;;
5517esac
5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519$as_echo "$ac_try_echo") >&5
5520  (eval "$ac_compiler -v >&5") 2>&5
5521  ac_status=$?
5522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }
5524{ (ac_try="$ac_compiler -V >&5"
5525case "(($ac_try" in
5526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527  *) ac_try_echo=$ac_try;;
5528esac
5529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5530$as_echo "$ac_try_echo") >&5
5531  (eval "$ac_compiler -V >&5") 2>&5
5532  ac_status=$?
5533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); }
5535
5536{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5537$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5538if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5539  $as_echo_n "(cached) " >&6
5540else
5541  cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h.  */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h.  */
5547
5548int
5549main ()
5550{
5551#ifndef __GNUC__
5552       choke me
5553#endif
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563  *) ac_try_echo=$ac_try;;
5564esac
5565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566$as_echo "$ac_try_echo") >&5
5567  (eval "$ac_compile") 2>conftest.er1
5568  ac_status=$?
5569  grep -v '^ *+' conftest.er1 >conftest.err
5570  rm -f conftest.er1
5571  cat conftest.err >&5
5572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); } && {
5574	 test -z "$ac_cxx_werror_flag" ||
5575	 test ! -s conftest.err
5576       } && test -s conftest.$ac_objext; then
5577  ac_compiler_gnu=yes
5578else
5579  $as_echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582	ac_compiler_gnu=no
5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5587
5588fi
5589{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5590$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5591if test $ac_compiler_gnu = yes; then
5592  GXX=yes
5593else
5594  GXX=
5595fi
5596ac_test_CXXFLAGS=${CXXFLAGS+set}
5597ac_save_CXXFLAGS=$CXXFLAGS
5598{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5599$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5600if test "${ac_cv_prog_cxx_g+set}" = set; then
5601  $as_echo_n "(cached) " >&6
5602else
5603  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5604   ac_cxx_werror_flag=yes
5605   ac_cv_prog_cxx_g=no
5606   CXXFLAGS="-g"
5607   cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h.  */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h.  */
5613
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626  *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630  (eval "$ac_compile") 2>conftest.er1
5631  ac_status=$?
5632  grep -v '^ *+' conftest.er1 >conftest.err
5633  rm -f conftest.er1
5634  cat conftest.err >&5
5635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } && {
5637	 test -z "$ac_cxx_werror_flag" ||
5638	 test ! -s conftest.err
5639       } && test -s conftest.$ac_objext; then
5640  ac_cv_prog_cxx_g=yes
5641else
5642  $as_echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645	CXXFLAGS=""
5646      cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h.  */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h.  */
5652
5653int
5654main ()
5655{
5656
5657  ;
5658  return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (ac_try="$ac_compile"
5663case "(($ac_try" in
5664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665  *) ac_try_echo=$ac_try;;
5666esac
5667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668$as_echo "$ac_try_echo") >&5
5669  (eval "$ac_compile") 2>conftest.er1
5670  ac_status=$?
5671  grep -v '^ *+' conftest.er1 >conftest.err
5672  rm -f conftest.er1
5673  cat conftest.err >&5
5674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } && {
5676	 test -z "$ac_cxx_werror_flag" ||
5677	 test ! -s conftest.err
5678       } && test -s conftest.$ac_objext; then
5679  :
5680else
5681  $as_echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5685	 CXXFLAGS="-g"
5686	 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h.  */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h.  */
5692
5693int
5694main ()
5695{
5696
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (ac_try="$ac_compile"
5703case "(($ac_try" in
5704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705  *) ac_try_echo=$ac_try;;
5706esac
5707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5708$as_echo "$ac_try_echo") >&5
5709  (eval "$ac_compile") 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } && {
5716	 test -z "$ac_cxx_werror_flag" ||
5717	 test ! -s conftest.err
5718       } && test -s conftest.$ac_objext; then
5719  ac_cv_prog_cxx_g=yes
5720else
5721  $as_echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728fi
5729
5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731fi
5732
5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5735fi
5736{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5737$as_echo "$ac_cv_prog_cxx_g" >&6; }
5738if test "$ac_test_CXXFLAGS" = set; then
5739  CXXFLAGS=$ac_save_CXXFLAGS
5740elif test $ac_cv_prog_cxx_g = yes; then
5741  if test "$GXX" = yes; then
5742    CXXFLAGS="-g -O2"
5743  else
5744    CXXFLAGS="-g"
5745  fi
5746else
5747  if test "$GXX" = yes; then
5748    CXXFLAGS="-O2"
5749  else
5750    CXXFLAGS=
5751  fi
5752fi
5753ac_ext=cpp
5754ac_cpp='$CXXCPP $CPPFLAGS'
5755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5758
5759depcc="$CXX"  am_compiler_list=
5760
5761{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5762$as_echo_n "checking dependency style of $depcc... " >&6; }
5763if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5767  # We make a subdir and do the tests there.  Otherwise we can end up
5768  # making bogus files that we don't know about and never remove.  For
5769  # instance it was reported that on HP-UX the gcc test will end up
5770  # making a dummy file named `D' -- because `-MD' means `put the output
5771  # in D'.
5772  mkdir conftest.dir
5773  # Copy depcomp to subdir because otherwise we won't find it if we're
5774  # using a relative directory.
5775  cp "$am_depcomp" conftest.dir
5776  cd conftest.dir
5777  # We will build objects and dependencies in a subdirectory because
5778  # it helps to detect inapplicable dependency modes.  For instance
5779  # both Tru64's cc and ICC support -MD to output dependencies as a
5780  # side effect of compilation, but ICC will put the dependencies in
5781  # the current directory while Tru64 will put them in the object
5782  # directory.
5783  mkdir sub
5784
5785  am_cv_CXX_dependencies_compiler_type=none
5786  if test "$am_compiler_list" = ""; then
5787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5788  fi
5789  am__universal=false
5790  case " $depcc " in #(
5791     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5792     esac
5793
5794  for depmode in $am_compiler_list; do
5795    # Setup a source with many dependencies, because some compilers
5796    # like to wrap large dependency lists on column 80 (with \), and
5797    # we should not choose a depcomp mode which is confused by this.
5798    #
5799    # We need to recreate these files for each test, as the compiler may
5800    # overwrite some of them when testing with obscure command lines.
5801    # This happens at least with the AIX C compiler.
5802    : > sub/conftest.c
5803    for i in 1 2 3 4 5 6; do
5804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5805      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5806      # Solaris 8's {/usr,}/bin/sh.
5807      touch sub/conftst$i.h
5808    done
5809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5810
5811    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5812    # mode.  It turns out that the SunPro C++ compiler does not properly
5813    # handle `-M -o', and we need to detect this.  Also, some Intel
5814    # versions had trouble with output in subdirs
5815    am__obj=sub/conftest.${OBJEXT-o}
5816    am__minus_obj="-o $am__obj"
5817    case $depmode in
5818    gcc)
5819      # This depmode causes a compiler race in universal mode.
5820      test "$am__universal" = false || continue
5821      ;;
5822    nosideeffect)
5823      # after this tag, mechanisms are not by side-effect, so they'll
5824      # only be used when explicitly requested
5825      if test "x$enable_dependency_tracking" = xyes; then
5826	continue
5827      else
5828	break
5829      fi
5830      ;;
5831    msvisualcpp | msvcmsys)
5832      # This compiler won't grok `-c -o', but also, the minuso test has
5833      # not run yet.  These depmodes are late enough in the game, and
5834      # so weak that their functioning should not be impacted.
5835      am__obj=conftest.${OBJEXT-o}
5836      am__minus_obj=
5837      ;;
5838    none) break ;;
5839    esac
5840    if depmode=$depmode \
5841       source=sub/conftest.c object=$am__obj \
5842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5843       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5844         >/dev/null 2>conftest.err &&
5845       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5846       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5847       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5848       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5849      # icc doesn't choke on unknown options, it will just issue warnings
5850      # or remarks (even with -Werror).  So we grep stderr for any message
5851      # that says an option was ignored or not supported.
5852      # When given -MP, icc 7.0 and 7.1 complain thusly:
5853      #   icc: Command line warning: ignoring option '-M'; no argument required
5854      # The diagnosis changed in icc 8.0:
5855      #   icc: Command line remark: option '-MP' not supported
5856      if (grep 'ignoring option' conftest.err ||
5857          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5858        am_cv_CXX_dependencies_compiler_type=$depmode
5859        break
5860      fi
5861    fi
5862  done
5863
5864  cd ..
5865  rm -rf conftest.dir
5866else
5867  am_cv_CXX_dependencies_compiler_type=none
5868fi
5869
5870fi
5871{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5872$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5873CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5874
5875 if
5876  test "x$enable_dependency_tracking" != xno \
5877  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5878  am__fastdepCXX_TRUE=
5879  am__fastdepCXX_FALSE='#'
5880else
5881  am__fastdepCXX_TRUE='#'
5882  am__fastdepCXX_FALSE=
5883fi
5884
5885
5886
5887
5888if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5889    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5890    (test "X$CXX" != "Xg++"))) ; then
5891  ac_ext=cpp
5892ac_cpp='$CXXCPP $CPPFLAGS'
5893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5896{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5897$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5898if test -z "$CXXCPP"; then
5899  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5900  $as_echo_n "(cached) " >&6
5901else
5902      # Double quotes because CXXCPP needs to be expanded
5903    for CXXCPP in "$CXX -E" "/lib/cpp"
5904    do
5905      ac_preproc_ok=false
5906for ac_cxx_preproc_warn_flag in '' yes
5907do
5908  # Use a header file that comes with gcc, so configuring glibc
5909  # with a fresh cross-compiler works.
5910  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911  # <limits.h> exists even on freestanding compilers.
5912  # On the NeXT, cc -E runs the code through the compiler's parser,
5913  # not just through cpp. "Syntax error" is here to catch this case.
5914  cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
5925		     Syntax error
5926_ACEOF
5927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930  *) ac_try_echo=$ac_try;;
5931esac
5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5933$as_echo "$ac_try_echo") >&5
5934  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935  ac_status=$?
5936  grep -v '^ *+' conftest.er1 >conftest.err
5937  rm -f conftest.er1
5938  cat conftest.err >&5
5939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } >/dev/null && {
5941	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5942	 test ! -s conftest.err
5943       }; then
5944  :
5945else
5946  $as_echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949  # Broken: fails on valid input.
5950continue
5951fi
5952
5953rm -f conftest.err conftest.$ac_ext
5954
5955  # OK, works on sane cases.  Now check whether nonexistent headers
5956  # can be detected and how.
5957  cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h.  */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h.  */
5963#include <ac_nonexistent.h>
5964_ACEOF
5965if { (ac_try="$ac_cpp conftest.$ac_ext"
5966case "(($ac_try" in
5967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968  *) ac_try_echo=$ac_try;;
5969esac
5970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971$as_echo "$ac_try_echo") >&5
5972  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973  ac_status=$?
5974  grep -v '^ *+' conftest.er1 >conftest.err
5975  rm -f conftest.er1
5976  cat conftest.err >&5
5977  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); } >/dev/null && {
5979	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5980	 test ! -s conftest.err
5981       }; then
5982  # Broken: success on invalid input.
5983continue
5984else
5985  $as_echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988  # Passes both tests.
5989ac_preproc_ok=:
5990break
5991fi
5992
5993rm -f conftest.err conftest.$ac_ext
5994
5995done
5996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5997rm -f conftest.err conftest.$ac_ext
5998if $ac_preproc_ok; then
5999  break
6000fi
6001
6002    done
6003    ac_cv_prog_CXXCPP=$CXXCPP
6004
6005fi
6006  CXXCPP=$ac_cv_prog_CXXCPP
6007else
6008  ac_cv_prog_CXXCPP=$CXXCPP
6009fi
6010{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6011$as_echo "$CXXCPP" >&6; }
6012ac_preproc_ok=false
6013for ac_cxx_preproc_warn_flag in '' yes
6014do
6015  # Use a header file that comes with gcc, so configuring glibc
6016  # with a fresh cross-compiler works.
6017  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018  # <limits.h> exists even on freestanding compilers.
6019  # On the NeXT, cc -E runs the code through the compiler's parser,
6020  # not just through cpp. "Syntax error" is here to catch this case.
6021  cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h.  */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h.  */
6027#ifdef __STDC__
6028# include <limits.h>
6029#else
6030# include <assert.h>
6031#endif
6032		     Syntax error
6033_ACEOF
6034if { (ac_try="$ac_cpp conftest.$ac_ext"
6035case "(($ac_try" in
6036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037  *) ac_try_echo=$ac_try;;
6038esac
6039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6040$as_echo "$ac_try_echo") >&5
6041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6042  ac_status=$?
6043  grep -v '^ *+' conftest.er1 >conftest.err
6044  rm -f conftest.er1
6045  cat conftest.err >&5
6046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); } >/dev/null && {
6048	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6049	 test ! -s conftest.err
6050       }; then
6051  :
6052else
6053  $as_echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056  # Broken: fails on valid input.
6057continue
6058fi
6059
6060rm -f conftest.err conftest.$ac_ext
6061
6062  # OK, works on sane cases.  Now check whether nonexistent headers
6063  # can be detected and how.
6064  cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h.  */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h.  */
6070#include <ac_nonexistent.h>
6071_ACEOF
6072if { (ac_try="$ac_cpp conftest.$ac_ext"
6073case "(($ac_try" in
6074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075  *) ac_try_echo=$ac_try;;
6076esac
6077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6078$as_echo "$ac_try_echo") >&5
6079  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6080  ac_status=$?
6081  grep -v '^ *+' conftest.er1 >conftest.err
6082  rm -f conftest.er1
6083  cat conftest.err >&5
6084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } >/dev/null && {
6086	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6087	 test ! -s conftest.err
6088       }; then
6089  # Broken: success on invalid input.
6090continue
6091else
6092  $as_echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095  # Passes both tests.
6096ac_preproc_ok=:
6097break
6098fi
6099
6100rm -f conftest.err conftest.$ac_ext
6101
6102done
6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104rm -f conftest.err conftest.$ac_ext
6105if $ac_preproc_ok; then
6106  :
6107else
6108  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6110{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6111See \`config.log' for more details." >&5
6112$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6113See \`config.log' for more details." >&2;}
6114   { (exit 1); exit 1; }; }; }
6115fi
6116
6117ac_ext=cpp
6118ac_cpp='$CXXCPP $CPPFLAGS'
6119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6122
6123fi
6124
6125
6126ac_ext=f
6127ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6128ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6130if test -n "$ac_tool_prefix"; then
6131  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
6132  do
6133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if test "${ac_cv_prog_F77+set}" = set; then
6138  $as_echo_n "(cached) " >&6
6139else
6140  if test -n "$F77"; then
6141  ac_cv_prog_F77="$F77" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148  for ac_exec_ext in '' $ac_executable_extensions; do
6149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6151    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160F77=$ac_cv_prog_F77
6161if test -n "$F77"; then
6162  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6163$as_echo "$F77" >&6; }
6164else
6165  { $as_echo "$as_me:$LINENO: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170    test -n "$F77" && break
6171  done
6172fi
6173if test -z "$F77"; then
6174  ac_ct_F77=$F77
6175  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
6176do
6177  # Extract the first word of "$ac_prog", so it can be a program name with args.
6178set dummy $ac_prog; ac_word=$2
6179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6182  $as_echo_n "(cached) " >&6
6183else
6184  if test -n "$ac_ct_F77"; then
6185  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192  for ac_exec_ext in '' $ac_executable_extensions; do
6193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194    ac_cv_prog_ac_ct_F77="$ac_prog"
6195    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204ac_ct_F77=$ac_cv_prog_ac_ct_F77
6205if test -n "$ac_ct_F77"; then
6206  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6207$as_echo "$ac_ct_F77" >&6; }
6208else
6209  { $as_echo "$as_me:$LINENO: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214  test -n "$ac_ct_F77" && break
6215done
6216
6217  if test "x$ac_ct_F77" = x; then
6218    F77=""
6219  else
6220    case $cross_compiling:$ac_tool_warned in
6221yes:)
6222{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224ac_tool_warned=yes ;;
6225esac
6226    F77=$ac_ct_F77
6227  fi
6228fi
6229
6230
6231# Provide some information about the compiler.
6232$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6233set X $ac_compile
6234ac_compiler=$2
6235{ (ac_try="$ac_compiler --version >&5"
6236case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241$as_echo "$ac_try_echo") >&5
6242  (eval "$ac_compiler --version >&5") 2>&5
6243  ac_status=$?
6244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); }
6246{ (ac_try="$ac_compiler -v >&5"
6247case "(($ac_try" in
6248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249  *) ac_try_echo=$ac_try;;
6250esac
6251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252$as_echo "$ac_try_echo") >&5
6253  (eval "$ac_compiler -v >&5") 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }
6257{ (ac_try="$ac_compiler -V >&5"
6258case "(($ac_try" in
6259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260  *) ac_try_echo=$ac_try;;
6261esac
6262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263$as_echo "$ac_try_echo") >&5
6264  (eval "$ac_compiler -V >&5") 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); }
6268rm -f a.out
6269
6270# If we don't use `.F' as extension, the preprocessor is not run on the
6271# input file.  (Note that this only needs to work for GNU compilers.)
6272ac_save_ext=$ac_ext
6273ac_ext=F
6274{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6275$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6276if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6277  $as_echo_n "(cached) " >&6
6278else
6279  cat >conftest.$ac_ext <<_ACEOF
6280      program main
6281#ifndef __GNUC__
6282       choke me
6283#endif
6284
6285      end
6286_ACEOF
6287rm -f conftest.$ac_objext
6288if { (ac_try="$ac_compile"
6289case "(($ac_try" in
6290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291  *) ac_try_echo=$ac_try;;
6292esac
6293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6294$as_echo "$ac_try_echo") >&5
6295  (eval "$ac_compile") 2>conftest.er1
6296  ac_status=$?
6297  grep -v '^ *+' conftest.er1 >conftest.err
6298  rm -f conftest.er1
6299  cat conftest.err >&5
6300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); } && {
6302	 test -z "$ac_f77_werror_flag" ||
6303	 test ! -s conftest.err
6304       } && test -s conftest.$ac_objext; then
6305  ac_compiler_gnu=yes
6306else
6307  $as_echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310	ac_compiler_gnu=no
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6315
6316fi
6317{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6318$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6319ac_ext=$ac_save_ext
6320ac_test_FFLAGS=${FFLAGS+set}
6321ac_save_FFLAGS=$FFLAGS
6322FFLAGS=
6323{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6324$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6325if test "${ac_cv_prog_f77_g+set}" = set; then
6326  $as_echo_n "(cached) " >&6
6327else
6328  FFLAGS=-g
6329cat >conftest.$ac_ext <<_ACEOF
6330      program main
6331
6332      end
6333_ACEOF
6334rm -f conftest.$ac_objext
6335if { (ac_try="$ac_compile"
6336case "(($ac_try" in
6337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338  *) ac_try_echo=$ac_try;;
6339esac
6340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6341$as_echo "$ac_try_echo") >&5
6342  (eval "$ac_compile") 2>conftest.er1
6343  ac_status=$?
6344  grep -v '^ *+' conftest.er1 >conftest.err
6345  rm -f conftest.er1
6346  cat conftest.err >&5
6347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); } && {
6349	 test -z "$ac_f77_werror_flag" ||
6350	 test ! -s conftest.err
6351       } && test -s conftest.$ac_objext; then
6352  ac_cv_prog_f77_g=yes
6353else
6354  $as_echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357	ac_cv_prog_f77_g=no
6358fi
6359
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361
6362fi
6363{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6364$as_echo "$ac_cv_prog_f77_g" >&6; }
6365if test "$ac_test_FFLAGS" = set; then
6366  FFLAGS=$ac_save_FFLAGS
6367elif test $ac_cv_prog_f77_g = yes; then
6368  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6369    FFLAGS="-g -O2"
6370  else
6371    FFLAGS="-g"
6372  fi
6373else
6374  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6375    FFLAGS="-O2"
6376  else
6377    FFLAGS=
6378  fi
6379fi
6380
6381if test $ac_compiler_gnu = yes; then
6382  G77=yes
6383else
6384  G77=
6385fi
6386ac_ext=c
6387ac_cpp='$CPP $CPPFLAGS'
6388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391
6392
6393
6394# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6395# find the maximum length of command line arguments
6396{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6397$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6398if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6399  $as_echo_n "(cached) " >&6
6400else
6401    i=0
6402  teststring="ABCD"
6403
6404  case $build_os in
6405  msdosdjgpp*)
6406    # On DJGPP, this test can blow up pretty badly due to problems in libc
6407    # (any single argument exceeding 2000 bytes causes a buffer overrun
6408    # during glob expansion).  Even if it were fixed, the result of this
6409    # check would be larger than it should be.
6410    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6411    ;;
6412
6413  gnu*)
6414    # Under GNU Hurd, this test is not required because there is
6415    # no limit to the length of command line arguments.
6416    # Libtool will interpret -1 as no limit whatsoever
6417    lt_cv_sys_max_cmd_len=-1;
6418    ;;
6419
6420  cygwin* | mingw*)
6421    # On Win9x/ME, this test blows up -- it succeeds, but takes
6422    # about 5 minutes as the teststring grows exponentially.
6423    # Worse, since 9x/ME are not pre-emptively multitasking,
6424    # you end up with a "frozen" computer, even though with patience
6425    # the test eventually succeeds (with a max line length of 256k).
6426    # Instead, let's just punt: use the minimum linelength reported by
6427    # all of the supported platforms: 8192 (on NT/2K/XP).
6428    lt_cv_sys_max_cmd_len=8192;
6429    ;;
6430
6431  amigaos*)
6432    # On AmigaOS with pdksh, this test takes hours, literally.
6433    # So we just punt and use a minimum line length of 8192.
6434    lt_cv_sys_max_cmd_len=8192;
6435    ;;
6436
6437  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6438    # This has been around since 386BSD, at least.  Likely further.
6439    if test -x /sbin/sysctl; then
6440      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6441    elif test -x /usr/sbin/sysctl; then
6442      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6443    else
6444      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6445    fi
6446    # And add a safety zone
6447    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6448    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6449    ;;
6450
6451  interix*)
6452    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6453    lt_cv_sys_max_cmd_len=196608
6454    ;;
6455
6456  osf*)
6457    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6458    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6459    # nice to cause kernel panics so lets avoid the loop below.
6460    # First set a reasonable default.
6461    lt_cv_sys_max_cmd_len=16384
6462    #
6463    if test -x /sbin/sysconfig; then
6464      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6465        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6466      esac
6467    fi
6468    ;;
6469  sco3.2v5*)
6470    lt_cv_sys_max_cmd_len=102400
6471    ;;
6472  sysv5* | sco5v6* | sysv4.2uw2*)
6473    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6474    if test -n "$kargmax"; then
6475      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6476    else
6477      lt_cv_sys_max_cmd_len=32768
6478    fi
6479    ;;
6480  *)
6481    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6482    if test -n "$lt_cv_sys_max_cmd_len"; then
6483      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6484      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6485    else
6486      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6487      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6488	       = "XX$teststring") >/dev/null 2>&1 &&
6489	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6490	      lt_cv_sys_max_cmd_len=$new_result &&
6491	      test $i != 17 # 1/2 MB should be enough
6492      do
6493        i=`expr $i + 1`
6494        teststring=$teststring$teststring
6495      done
6496      teststring=
6497      # Add a significant safety factor because C++ compilers can tack on massive
6498      # amounts of additional arguments before passing them to the linker.
6499      # It appears as though 1/2 is a usable value.
6500      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6501    fi
6502    ;;
6503  esac
6504
6505fi
6506
6507if test -n $lt_cv_sys_max_cmd_len ; then
6508  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6509$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6510else
6511  { $as_echo "$as_me:$LINENO: result: none" >&5
6512$as_echo "none" >&6; }
6513fi
6514
6515
6516
6517
6518
6519# Check for command to grab the raw symbol name followed by C symbol from nm.
6520{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6521$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6522if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6523  $as_echo_n "(cached) " >&6
6524else
6525
6526# These are sane defaults that work on at least a few old systems.
6527# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6528
6529# Character class describing NM global symbol codes.
6530symcode='[BCDEGRST]'
6531
6532# Regexp to match symbols that can be accessed directly from C.
6533sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6534
6535# Transform an extracted symbol line into a proper C declaration
6536lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6537
6538# Transform an extracted symbol line into symbol name and symbol address
6539lt_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'"
6540
6541# Define system-specific variables.
6542case $host_os in
6543aix*)
6544  symcode='[BCDT]'
6545  ;;
6546cygwin* | mingw* | pw32*)
6547  symcode='[ABCDGISTW]'
6548  ;;
6549hpux*) # Its linker distinguishes data from code symbols
6550  if test "$host_cpu" = ia64; then
6551    symcode='[ABCDEGRST]'
6552  fi
6553  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554  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'"
6555  ;;
6556linux* | k*bsd*-gnu)
6557  if test "$host_cpu" = ia64; then
6558    symcode='[ABCDGIRSTW]'
6559    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6560    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'"
6561  fi
6562  ;;
6563irix* | nonstopux*)
6564  symcode='[BCDEGRST]'
6565  ;;
6566osf*)
6567  symcode='[BCDEGQRST]'
6568  ;;
6569solaris*)
6570  symcode='[BDRT]'
6571  ;;
6572sco3.2v5*)
6573  symcode='[DT]'
6574  ;;
6575sysv4.2uw2*)
6576  symcode='[DT]'
6577  ;;
6578sysv5* | sco5v6* | unixware* | OpenUNIX*)
6579  symcode='[ABDT]'
6580  ;;
6581sysv4)
6582  symcode='[DFNSTU]'
6583  ;;
6584esac
6585
6586# Handle CRLF in mingw tool chain
6587opt_cr=
6588case $build_os in
6589mingw*)
6590  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6591  ;;
6592esac
6593
6594# If we're using GNU nm, then use its standard symbol codes.
6595case `$NM -V 2>&1` in
6596*GNU* | *'with BFD'*)
6597  symcode='[ABCDGIRSTW]' ;;
6598esac
6599
6600# Try without a prefix undercore, then with it.
6601for ac_symprfx in "" "_"; do
6602
6603  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6604  symxfrm="\\1 $ac_symprfx\\2 \\2"
6605
6606  # Write the raw and C identifiers.
6607  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6608
6609  # Check to see that the pipe works correctly.
6610  pipe_works=no
6611
6612  rm -f conftest*
6613  cat > conftest.$ac_ext <<EOF
6614#ifdef __cplusplus
6615extern "C" {
6616#endif
6617char nm_test_var;
6618void nm_test_func(){}
6619#ifdef __cplusplus
6620}
6621#endif
6622int main(){nm_test_var='a';nm_test_func();return(0);}
6623EOF
6624
6625  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626  (eval $ac_compile) 2>&5
6627  ac_status=$?
6628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); }; then
6630    # Now try to grab the symbols.
6631    nlist=conftest.nm
6632    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6633  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6634  ac_status=$?
6635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636  (exit $ac_status); } && test -s "$nlist"; then
6637      # Try sorting and uniquifying the output.
6638      if sort "$nlist" | uniq > "$nlist"T; then
6639	mv -f "$nlist"T "$nlist"
6640      else
6641	rm -f "$nlist"T
6642      fi
6643
6644      # Make sure that we snagged all the symbols we need.
6645      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6646	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6647	  cat <<EOF > conftest.$ac_ext
6648#ifdef __cplusplus
6649extern "C" {
6650#endif
6651
6652EOF
6653	  # Now generate the symbol file.
6654	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6655
6656	  cat <<EOF >> conftest.$ac_ext
6657#if defined (__STDC__) && __STDC__
6658# define lt_ptr_t void *
6659#else
6660# define lt_ptr_t char *
6661# define const
6662#endif
6663
6664/* The mapping between symbol names and symbols. */
6665const struct {
6666  const char *name;
6667  lt_ptr_t address;
6668}
6669lt_preloaded_symbols[] =
6670{
6671EOF
6672	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6673	  cat <<\EOF >> conftest.$ac_ext
6674  {0, (lt_ptr_t) 0}
6675};
6676
6677#ifdef __cplusplus
6678}
6679#endif
6680EOF
6681	  # Now try linking the two files.
6682	  mv conftest.$ac_objext conftstm.$ac_objext
6683	  lt_save_LIBS="$LIBS"
6684	  lt_save_CFLAGS="$CFLAGS"
6685	  LIBS="conftstm.$ac_objext"
6686	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6687	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688  (eval $ac_link) 2>&5
6689  ac_status=$?
6690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6692	    pipe_works=yes
6693	  fi
6694	  LIBS="$lt_save_LIBS"
6695	  CFLAGS="$lt_save_CFLAGS"
6696	else
6697	  echo "cannot find nm_test_func in $nlist" >&5
6698	fi
6699      else
6700	echo "cannot find nm_test_var in $nlist" >&5
6701      fi
6702    else
6703      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6704    fi
6705  else
6706    echo "$progname: failed program was:" >&5
6707    cat conftest.$ac_ext >&5
6708  fi
6709  rm -rf conftest* conftst*
6710
6711  # Do not use the global_symbol_pipe unless it works.
6712  if test "$pipe_works" = yes; then
6713    break
6714  else
6715    lt_cv_sys_global_symbol_pipe=
6716  fi
6717done
6718
6719fi
6720
6721if test -z "$lt_cv_sys_global_symbol_pipe"; then
6722  lt_cv_sys_global_symbol_to_cdecl=
6723fi
6724if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6725  { $as_echo "$as_me:$LINENO: result: failed" >&5
6726$as_echo "failed" >&6; }
6727else
6728  { $as_echo "$as_me:$LINENO: result: ok" >&5
6729$as_echo "ok" >&6; }
6730fi
6731
6732{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6733$as_echo_n "checking for objdir... " >&6; }
6734if test "${lt_cv_objdir+set}" = set; then
6735  $as_echo_n "(cached) " >&6
6736else
6737  rm -f .libs 2>/dev/null
6738mkdir .libs 2>/dev/null
6739if test -d .libs; then
6740  lt_cv_objdir=.libs
6741else
6742  # MS-DOS does not allow filenames that begin with a dot.
6743  lt_cv_objdir=_libs
6744fi
6745rmdir .libs 2>/dev/null
6746fi
6747{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6748$as_echo "$lt_cv_objdir" >&6; }
6749objdir=$lt_cv_objdir
6750
6751
6752
6753
6754
6755case $host_os in
6756aix3*)
6757  # AIX sometimes has problems with the GCC collect2 program.  For some
6758  # reason, if we set the COLLECT_NAMES environment variable, the problems
6759  # vanish in a puff of smoke.
6760  if test "X${COLLECT_NAMES+set}" != Xset; then
6761    COLLECT_NAMES=
6762    export COLLECT_NAMES
6763  fi
6764  ;;
6765esac
6766
6767# Sed substitution that helps us do robust quoting.  It backslashifies
6768# metacharacters that are still active within double-quoted strings.
6769Xsed='sed -e 1s/^X//'
6770sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6771
6772# Same as above, but do not quote variable references.
6773double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6774
6775# Sed substitution to delay expansion of an escaped shell variable in a
6776# double_quote_subst'ed string.
6777delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6778
6779# Sed substitution to avoid accidental globbing in evaled expressions
6780no_glob_subst='s/\*/\\\*/g'
6781
6782# Constants:
6783rm="rm -f"
6784
6785# Global variables:
6786default_ofile=libtool
6787can_build_shared=yes
6788
6789# All known linkers require a `.a' archive for static linking (except MSVC,
6790# which needs '.lib').
6791libext=a
6792ltmain="$ac_aux_dir/ltmain.sh"
6793ofile="$default_ofile"
6794with_gnu_ld="$lt_cv_prog_gnu_ld"
6795
6796if test -n "$ac_tool_prefix"; then
6797  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}ar; ac_word=$2
6799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
6801if test "${ac_cv_prog_AR+set}" = set; then
6802  $as_echo_n "(cached) " >&6
6803else
6804  if test -n "$AR"; then
6805  ac_cv_prog_AR="$AR" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810  IFS=$as_save_IFS
6811  test -z "$as_dir" && as_dir=.
6812  for ac_exec_ext in '' $ac_executable_extensions; do
6813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814    ac_cv_prog_AR="${ac_tool_prefix}ar"
6815    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824AR=$ac_cv_prog_AR
6825if test -n "$AR"; then
6826  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6827$as_echo "$AR" >&6; }
6828else
6829  { $as_echo "$as_me:$LINENO: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834fi
6835if test -z "$ac_cv_prog_AR"; then
6836  ac_ct_AR=$AR
6837  # Extract the first word of "ar", so it can be a program name with args.
6838set dummy ar; ac_word=$2
6839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6842  $as_echo_n "(cached) " >&6
6843else
6844  if test -n "$ac_ct_AR"; then
6845  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852  for ac_exec_ext in '' $ac_executable_extensions; do
6853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854    ac_cv_prog_ac_ct_AR="ar"
6855    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_AR=$ac_cv_prog_ac_ct_AR
6865if test -n "$ac_ct_AR"; then
6866  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6867$as_echo "$ac_ct_AR" >&6; }
6868else
6869  { $as_echo "$as_me:$LINENO: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873  if test "x$ac_ct_AR" = x; then
6874    AR="false"
6875  else
6876    case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882    AR=$ac_ct_AR
6883  fi
6884else
6885  AR="$ac_cv_prog_AR"
6886fi
6887
6888if test -n "$ac_tool_prefix"; then
6889  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if test "${ac_cv_prog_RANLIB+set}" = set; then
6894  $as_echo_n "(cached) " >&6
6895else
6896  if test -n "$RANLIB"; then
6897  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902  IFS=$as_save_IFS
6903  test -z "$as_dir" && as_dir=.
6904  for ac_exec_ext in '' $ac_executable_extensions; do
6905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908    break 2
6909  fi
6910done
6911done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916RANLIB=$ac_cv_prog_RANLIB
6917if test -n "$RANLIB"; then
6918  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6919$as_echo "$RANLIB" >&6; }
6920else
6921  { $as_echo "$as_me:$LINENO: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925
6926fi
6927if test -z "$ac_cv_prog_RANLIB"; then
6928  ac_ct_RANLIB=$RANLIB
6929  # Extract the first word of "ranlib", so it can be a program name with args.
6930set dummy ranlib; ac_word=$2
6931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934  $as_echo_n "(cached) " >&6
6935else
6936  if test -n "$ac_ct_RANLIB"; then
6937  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944  for ac_exec_ext in '' $ac_executable_extensions; do
6945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946    ac_cv_prog_ac_ct_RANLIB="ranlib"
6947    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957if test -n "$ac_ct_RANLIB"; then
6958  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959$as_echo "$ac_ct_RANLIB" >&6; }
6960else
6961  { $as_echo "$as_me:$LINENO: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965  if test "x$ac_ct_RANLIB" = x; then
6966    RANLIB=":"
6967  else
6968    case $cross_compiling:$ac_tool_warned in
6969yes:)
6970{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972ac_tool_warned=yes ;;
6973esac
6974    RANLIB=$ac_ct_RANLIB
6975  fi
6976else
6977  RANLIB="$ac_cv_prog_RANLIB"
6978fi
6979
6980if test -n "$ac_tool_prefix"; then
6981  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}strip; ac_word=$2
6983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if test "${ac_cv_prog_STRIP+set}" = set; then
6986  $as_echo_n "(cached) " >&6
6987else
6988  if test -n "$STRIP"; then
6989  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996  for ac_exec_ext in '' $ac_executable_extensions; do
6997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6999    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008STRIP=$ac_cv_prog_STRIP
7009if test -n "$STRIP"; then
7010  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7011$as_echo "$STRIP" >&6; }
7012else
7013  { $as_echo "$as_me:$LINENO: result: no" >&5
7014$as_echo "no" >&6; }
7015fi
7016
7017
7018fi
7019if test -z "$ac_cv_prog_STRIP"; then
7020  ac_ct_STRIP=$STRIP
7021  # Extract the first word of "strip", so it can be a program name with args.
7022set dummy strip; ac_word=$2
7023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$ac_ct_STRIP"; then
7029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036  for ac_exec_ext in '' $ac_executable_extensions; do
7037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038    ac_cv_prog_ac_ct_STRIP="strip"
7039    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7049if test -n "$ac_ct_STRIP"; then
7050  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7051$as_echo "$ac_ct_STRIP" >&6; }
7052else
7053  { $as_echo "$as_me:$LINENO: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057  if test "x$ac_ct_STRIP" = x; then
7058    STRIP=":"
7059  else
7060    case $cross_compiling:$ac_tool_warned in
7061yes:)
7062{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064ac_tool_warned=yes ;;
7065esac
7066    STRIP=$ac_ct_STRIP
7067  fi
7068else
7069  STRIP="$ac_cv_prog_STRIP"
7070fi
7071
7072
7073old_CC="$CC"
7074old_CFLAGS="$CFLAGS"
7075
7076# Set sane defaults for various variables
7077test -z "$AR" && AR=ar
7078test -z "$AR_FLAGS" && AR_FLAGS=cru
7079test -z "$AS" && AS=as
7080test -z "$CC" && CC=cc
7081test -z "$LTCC" && LTCC=$CC
7082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7083test -z "$DLLTOOL" && DLLTOOL=dlltool
7084test -z "$LD" && LD=ld
7085test -z "$LN_S" && LN_S="ln -s"
7086test -z "$MAGIC_CMD" && MAGIC_CMD=file
7087test -z "$NM" && NM=nm
7088test -z "$SED" && SED=sed
7089test -z "$OBJDUMP" && OBJDUMP=objdump
7090test -z "$RANLIB" && RANLIB=:
7091test -z "$STRIP" && STRIP=:
7092test -z "$ac_objext" && ac_objext=o
7093
7094# Determine commands to create old-style static archives.
7095old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096old_postinstall_cmds='chmod 644 $oldlib'
7097old_postuninstall_cmds=
7098
7099if test -n "$RANLIB"; then
7100  case $host_os in
7101  openbsd*)
7102    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7103    ;;
7104  *)
7105    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7106    ;;
7107  esac
7108  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7109fi
7110
7111for cc_temp in $compiler""; do
7112  case $cc_temp in
7113    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7114    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7115    \-*) ;;
7116    *) break;;
7117  esac
7118done
7119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7120
7121
7122# Only perform the check for file, if the check method requires it
7123case $deplibs_check_method in
7124file_magic*)
7125  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7126    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7127$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7128if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7129  $as_echo_n "(cached) " >&6
7130else
7131  case $MAGIC_CMD in
7132[\\/*] |  ?:[\\/]*)
7133  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7134  ;;
7135*)
7136  lt_save_MAGIC_CMD="$MAGIC_CMD"
7137  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139  for ac_dir in $ac_dummy; do
7140    IFS="$lt_save_ifs"
7141    test -z "$ac_dir" && ac_dir=.
7142    if test -f $ac_dir/${ac_tool_prefix}file; then
7143      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7144      if test -n "$file_magic_test_file"; then
7145	case $deplibs_check_method in
7146	"file_magic "*)
7147	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150	    $EGREP "$file_magic_regex" > /dev/null; then
7151	    :
7152	  else
7153	    cat <<EOF 1>&2
7154
7155*** Warning: the command libtool uses to detect shared libraries,
7156*** $file_magic_cmd, produces output that libtool cannot recognize.
7157*** The result is that libtool may fail to recognize shared libraries
7158*** as such.  This will affect the creation of libtool libraries that
7159*** depend on shared libraries, but programs linked with such libtool
7160*** libraries will work regardless of this problem.  Nevertheless, you
7161*** may want to report the problem to your system manager and/or to
7162*** bug-libtool@gnu.org
7163
7164EOF
7165	  fi ;;
7166	esac
7167      fi
7168      break
7169    fi
7170  done
7171  IFS="$lt_save_ifs"
7172  MAGIC_CMD="$lt_save_MAGIC_CMD"
7173  ;;
7174esac
7175fi
7176
7177MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178if test -n "$MAGIC_CMD"; then
7179  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7180$as_echo "$MAGIC_CMD" >&6; }
7181else
7182  { $as_echo "$as_me:$LINENO: result: no" >&5
7183$as_echo "no" >&6; }
7184fi
7185
7186if test -z "$lt_cv_path_MAGIC_CMD"; then
7187  if test -n "$ac_tool_prefix"; then
7188    { $as_echo "$as_me:$LINENO: checking for file" >&5
7189$as_echo_n "checking for file... " >&6; }
7190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7191  $as_echo_n "(cached) " >&6
7192else
7193  case $MAGIC_CMD in
7194[\\/*] |  ?:[\\/]*)
7195  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7196  ;;
7197*)
7198  lt_save_MAGIC_CMD="$MAGIC_CMD"
7199  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7201  for ac_dir in $ac_dummy; do
7202    IFS="$lt_save_ifs"
7203    test -z "$ac_dir" && ac_dir=.
7204    if test -f $ac_dir/file; then
7205      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7206      if test -n "$file_magic_test_file"; then
7207	case $deplibs_check_method in
7208	"file_magic "*)
7209	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7210	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7212	    $EGREP "$file_magic_regex" > /dev/null; then
7213	    :
7214	  else
7215	    cat <<EOF 1>&2
7216
7217*** Warning: the command libtool uses to detect shared libraries,
7218*** $file_magic_cmd, produces output that libtool cannot recognize.
7219*** The result is that libtool may fail to recognize shared libraries
7220*** as such.  This will affect the creation of libtool libraries that
7221*** depend on shared libraries, but programs linked with such libtool
7222*** libraries will work regardless of this problem.  Nevertheless, you
7223*** may want to report the problem to your system manager and/or to
7224*** bug-libtool@gnu.org
7225
7226EOF
7227	  fi ;;
7228	esac
7229      fi
7230      break
7231    fi
7232  done
7233  IFS="$lt_save_ifs"
7234  MAGIC_CMD="$lt_save_MAGIC_CMD"
7235  ;;
7236esac
7237fi
7238
7239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7240if test -n "$MAGIC_CMD"; then
7241  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7242$as_echo "$MAGIC_CMD" >&6; }
7243else
7244  { $as_echo "$as_me:$LINENO: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248  else
7249    MAGIC_CMD=:
7250  fi
7251fi
7252
7253  fi
7254  ;;
7255esac
7256
7257
7258  case $host_os in
7259    rhapsody* | darwin*)
7260    if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$DSYMUTIL"; then
7269  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276  for ac_exec_ext in '' $ac_executable_extensions; do
7277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289if test -n "$DSYMUTIL"; then
7290  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7291$as_echo "$DSYMUTIL" >&6; }
7292else
7293  { $as_echo "$as_me:$LINENO: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298fi
7299if test -z "$ac_cv_prog_DSYMUTIL"; then
7300  ac_ct_DSYMUTIL=$DSYMUTIL
7301  # Extract the first word of "dsymutil", so it can be a program name with args.
7302set dummy dsymutil; ac_word=$2
7303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$ac_ct_DSYMUTIL"; then
7309  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316  for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329if test -n "$ac_ct_DSYMUTIL"; then
7330  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7331$as_echo "$ac_ct_DSYMUTIL" >&6; }
7332else
7333  { $as_echo "$as_me:$LINENO: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337  if test "x$ac_ct_DSYMUTIL" = x; then
7338    DSYMUTIL=":"
7339  else
7340    case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346    DSYMUTIL=$ac_ct_DSYMUTIL
7347  fi
7348else
7349  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7350fi
7351
7352    if test -n "$ac_tool_prefix"; then
7353  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7354set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if test "${ac_cv_prog_NMEDIT+set}" = set; then
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$NMEDIT"; then
7361  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368  for ac_exec_ext in '' $ac_executable_extensions; do
7369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7371    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380NMEDIT=$ac_cv_prog_NMEDIT
7381if test -n "$NMEDIT"; then
7382  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7383$as_echo "$NMEDIT" >&6; }
7384else
7385  { $as_echo "$as_me:$LINENO: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389
7390fi
7391if test -z "$ac_cv_prog_NMEDIT"; then
7392  ac_ct_NMEDIT=$NMEDIT
7393  # Extract the first word of "nmedit", so it can be a program name with args.
7394set dummy nmedit; ac_word=$2
7395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7396$as_echo_n "checking for $ac_word... " >&6; }
7397if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7398  $as_echo_n "(cached) " >&6
7399else
7400  if test -n "$ac_ct_NMEDIT"; then
7401  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408  for ac_exec_ext in '' $ac_executable_extensions; do
7409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7411    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412    break 2
7413  fi
7414done
7415done
7416IFS=$as_save_IFS
7417
7418fi
7419fi
7420ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7421if test -n "$ac_ct_NMEDIT"; then
7422  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7423$as_echo "$ac_ct_NMEDIT" >&6; }
7424else
7425  { $as_echo "$as_me:$LINENO: result: no" >&5
7426$as_echo "no" >&6; }
7427fi
7428
7429  if test "x$ac_ct_NMEDIT" = x; then
7430    NMEDIT=":"
7431  else
7432    case $cross_compiling:$ac_tool_warned in
7433yes:)
7434{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436ac_tool_warned=yes ;;
7437esac
7438    NMEDIT=$ac_ct_NMEDIT
7439  fi
7440else
7441  NMEDIT="$ac_cv_prog_NMEDIT"
7442fi
7443
7444
7445    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7446$as_echo_n "checking for -single_module linker flag... " >&6; }
7447if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7448  $as_echo_n "(cached) " >&6
7449else
7450  lt_cv_apple_cc_single_mod=no
7451      if test -z "${LT_MULTI_MODULE}"; then
7452   # By default we will add the -single_module flag. You can override
7453   # by either setting the environment variable LT_MULTI_MODULE
7454   # non-empty at configure time, or by adding -multi_module to the
7455   # link flags.
7456   echo "int foo(void){return 1;}" > conftest.c
7457   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7458     -dynamiclib ${wl}-single_module conftest.c
7459   if test -f libconftest.dylib; then
7460     lt_cv_apple_cc_single_mod=yes
7461     rm -rf libconftest.dylib*
7462   fi
7463   rm conftest.c
7464      fi
7465fi
7466{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7467$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7468    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7469$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7470if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7471  $as_echo_n "(cached) " >&6
7472else
7473  lt_cv_ld_exported_symbols_list=no
7474      save_LDFLAGS=$LDFLAGS
7475      echo "_main" > conftest.sym
7476      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7477      cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h.  */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h.  */
7483
7484int
7485main ()
7486{
7487
7488  ;
7489  return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext conftest$ac_exeext
7493if { (ac_try="$ac_link"
7494case "(($ac_try" in
7495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496  *) ac_try_echo=$ac_try;;
7497esac
7498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7499$as_echo "$ac_try_echo") >&5
7500  (eval "$ac_link") 2>conftest.er1
7501  ac_status=$?
7502  grep -v '^ *+' conftest.er1 >conftest.err
7503  rm -f conftest.er1
7504  cat conftest.err >&5
7505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506  (exit $ac_status); } && {
7507	 test -z "$ac_c_werror_flag" ||
7508	 test ! -s conftest.err
7509       } && test -s conftest$ac_exeext && {
7510	 test "$cross_compiling" = yes ||
7511	 $as_test_x conftest$ac_exeext
7512       }; then
7513  lt_cv_ld_exported_symbols_list=yes
7514else
7515  $as_echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518	lt_cv_ld_exported_symbols_list=no
7519fi
7520
7521rm -rf conftest.dSYM
7522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7523      conftest$ac_exeext conftest.$ac_ext
7524   LDFLAGS="$save_LDFLAGS"
7525
7526fi
7527{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7528$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7529    case $host_os in
7530    rhapsody* | darwin1.[0123])
7531      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7532    darwin1.*)
7533     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7534    darwin*)
7535      # if running on 10.5 or later, the deployment target defaults
7536      # to the OS version, if on x86, and 10.4, the deployment
7537      # target defaults to 10.4. Don't you love it?
7538      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7539   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7540     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7541   10.[012]*)
7542     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7543   10.*)
7544     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7545      esac
7546    ;;
7547  esac
7548    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7549      _lt_dar_single_mod='$single_module'
7550    fi
7551    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7552      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7553    else
7554      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7555    fi
7556    if test "$DSYMUTIL" != ":"; then
7557      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7558    else
7559      _lt_dsymutil=
7560    fi
7561    ;;
7562  esac
7563
7564
7565enable_dlopen=no
7566enable_win32_dll=no
7567
7568# Check whether --enable-libtool-lock was given.
7569if test "${enable_libtool_lock+set}" = set; then
7570  enableval=$enable_libtool_lock;
7571fi
7572
7573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7574
7575
7576# Check whether --with-pic was given.
7577if test "${with_pic+set}" = set; then
7578  withval=$with_pic; pic_mode="$withval"
7579else
7580  pic_mode=default
7581fi
7582
7583test -z "$pic_mode" && pic_mode=default
7584
7585# Use C for the default configuration in the libtool script
7586tagname=
7587lt_save_CC="$CC"
7588ac_ext=c
7589ac_cpp='$CPP $CPPFLAGS'
7590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593
7594
7595# Source file extension for C test sources.
7596ac_ext=c
7597
7598# Object file extension for compiled C test sources.
7599objext=o
7600objext=$objext
7601
7602# Code to be used in simple compile tests
7603lt_simple_compile_test_code="int some_variable = 0;"
7604
7605# Code to be used in simple link tests
7606lt_simple_link_test_code='int main(){return(0);}'
7607
7608
7609# If no C compiler was specified, use CC.
7610LTCC=${LTCC-"$CC"}
7611
7612# If no C compiler flags were specified, use CFLAGS.
7613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7614
7615# Allow CC to be a program name with arguments.
7616compiler=$CC
7617
7618
7619# save warnings/boilerplate of simple test code
7620ac_outfile=conftest.$ac_objext
7621echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7622eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7623_lt_compiler_boilerplate=`cat conftest.err`
7624$rm conftest*
7625
7626ac_outfile=conftest.$ac_objext
7627echo "$lt_simple_link_test_code" >conftest.$ac_ext
7628eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7629_lt_linker_boilerplate=`cat conftest.err`
7630$rm -r conftest*
7631
7632
7633
7634lt_prog_compiler_no_builtin_flag=
7635
7636if test "$GCC" = yes; then
7637  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7638
7639
7640{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7641$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7642if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7643  $as_echo_n "(cached) " >&6
7644else
7645  lt_cv_prog_compiler_rtti_exceptions=no
7646  ac_outfile=conftest.$ac_objext
7647   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648   lt_compiler_flag="-fno-rtti -fno-exceptions"
7649   # Insert the option either (1) after the last *FLAGS variable, or
7650   # (2) before a word containing "conftest.", or (3) at the end.
7651   # Note that $ac_compile itself does not contain backslashes and begins
7652   # with a dollar sign (not a hyphen), so the echo should work correctly.
7653   # The option is referenced via a variable to avoid confusing sed.
7654   lt_compile=`echo "$ac_compile" | $SED \
7655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657   -e 's:$: $lt_compiler_flag:'`
7658   (eval echo "\"\$as_me:7658: $lt_compile\"" >&5)
7659   (eval "$lt_compile" 2>conftest.err)
7660   ac_status=$?
7661   cat conftest.err >&5
7662   echo "$as_me:7662: \$? = $ac_status" >&5
7663   if (exit $ac_status) && test -s "$ac_outfile"; then
7664     # The compiler can only warn and ignore the option if not recognized
7665     # So say no if there are warnings other than the usual output.
7666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669       lt_cv_prog_compiler_rtti_exceptions=yes
7670     fi
7671   fi
7672   $rm conftest*
7673
7674fi
7675{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7676$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7677
7678if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7679    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7680else
7681    :
7682fi
7683
7684fi
7685
7686lt_prog_compiler_wl=
7687lt_prog_compiler_pic=
7688lt_prog_compiler_static=
7689
7690{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7691$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7692
7693  if test "$GCC" = yes; then
7694    lt_prog_compiler_wl='-Wl,'
7695    lt_prog_compiler_static='-static'
7696
7697    case $host_os in
7698      aix*)
7699      # All AIX code is PIC.
7700      if test "$host_cpu" = ia64; then
7701	# AIX 5 now supports IA64 processor
7702	lt_prog_compiler_static='-Bstatic'
7703      fi
7704      ;;
7705
7706    amigaos*)
7707      # FIXME: we need at least 68020 code to build shared libraries, but
7708      # adding the `-m68020' flag to GCC prevents building anything better,
7709      # like `-m68040'.
7710      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7711      ;;
7712
7713    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7714      # PIC is the default for these OSes.
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      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7721      # (--disable-auto-import) libraries
7722      lt_prog_compiler_pic='-DDLL_EXPORT'
7723      ;;
7724
7725    darwin* | rhapsody*)
7726      # PIC is the default on this platform
7727      # Common symbols not allowed in MH_DYLIB files
7728      lt_prog_compiler_pic='-fno-common'
7729      ;;
7730
7731    interix[3-9]*)
7732      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7733      # Instead, we relocate shared libraries at runtime.
7734      ;;
7735
7736    msdosdjgpp*)
7737      # Just because we use GCC doesn't mean we suddenly get shared libraries
7738      # on systems that don't support them.
7739      lt_prog_compiler_can_build_shared=no
7740      enable_shared=no
7741      ;;
7742
7743    sysv4*MP*)
7744      if test -d /usr/nec; then
7745	lt_prog_compiler_pic=-Kconform_pic
7746      fi
7747      ;;
7748
7749    hpux*)
7750      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7751      # not for PA HP-UX.
7752      case $host_cpu in
7753      hppa*64*|ia64*)
7754	# +Z the default
7755	;;
7756      *)
7757	lt_prog_compiler_pic='-fPIC'
7758	;;
7759      esac
7760      ;;
7761
7762    *)
7763      lt_prog_compiler_pic='-fPIC'
7764      ;;
7765    esac
7766  else
7767    # PORTME Check for flag to pass linker flags through the system compiler.
7768    case $host_os in
7769    aix*)
7770      lt_prog_compiler_wl='-Wl,'
7771      if test "$host_cpu" = ia64; then
7772	# AIX 5 now supports IA64 processor
7773	lt_prog_compiler_static='-Bstatic'
7774      else
7775	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7776      fi
7777      ;;
7778      darwin*)
7779        # PIC is the default on this platform
7780        # Common symbols not allowed in MH_DYLIB files
7781       case $cc_basename in
7782         xlc*)
7783         lt_prog_compiler_pic='-qnocommon'
7784         lt_prog_compiler_wl='-Wl,'
7785         ;;
7786       esac
7787       ;;
7788
7789    mingw* | cygwin* | pw32* | os2*)
7790      # This hack is so that the source file can tell whether it is being
7791      # built for inclusion in a dll (and should export symbols for example).
7792      lt_prog_compiler_pic='-DDLL_EXPORT'
7793      ;;
7794
7795    hpux9* | hpux10* | hpux11*)
7796      lt_prog_compiler_wl='-Wl,'
7797      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7798      # not for PA HP-UX.
7799      case $host_cpu in
7800      hppa*64*|ia64*)
7801	# +Z the default
7802	;;
7803      *)
7804	lt_prog_compiler_pic='+Z'
7805	;;
7806      esac
7807      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7808      lt_prog_compiler_static='${wl}-a ${wl}archive'
7809      ;;
7810
7811    irix5* | irix6* | nonstopux*)
7812      lt_prog_compiler_wl='-Wl,'
7813      # PIC (with -KPIC) is the default.
7814      lt_prog_compiler_static='-non_shared'
7815      ;;
7816
7817    newsos6)
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      ;;
7821
7822    linux* | k*bsd*-gnu)
7823      case $cc_basename in
7824      icc* | ecc*)
7825	lt_prog_compiler_wl='-Wl,'
7826	lt_prog_compiler_pic='-KPIC'
7827	lt_prog_compiler_static='-static'
7828        ;;
7829      pgcc* | pgf77* | pgf90* | pgf95*)
7830        # Portland Group compilers (*not* the Pentium gcc compiler,
7831	# which looks to be a dead project)
7832	lt_prog_compiler_wl='-Wl,'
7833	lt_prog_compiler_pic='-fpic'
7834	lt_prog_compiler_static='-Bstatic'
7835        ;;
7836      ccc*)
7837        lt_prog_compiler_wl='-Wl,'
7838        # All Alpha code is PIC.
7839        lt_prog_compiler_static='-non_shared'
7840        ;;
7841      *)
7842        case `$CC -V 2>&1 | sed 5q` in
7843	*Sun\ C*)
7844	  # Sun C 5.9
7845	  lt_prog_compiler_pic='-KPIC'
7846	  lt_prog_compiler_static='-Bstatic'
7847	  lt_prog_compiler_wl='-Wl,'
7848	  ;;
7849	*Sun\ F*)
7850	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7851	  lt_prog_compiler_pic='-KPIC'
7852	  lt_prog_compiler_static='-Bstatic'
7853	  lt_prog_compiler_wl=''
7854	  ;;
7855	esac
7856	;;
7857      esac
7858      ;;
7859
7860    osf3* | osf4* | osf5*)
7861      lt_prog_compiler_wl='-Wl,'
7862      # All OSF/1 code is PIC.
7863      lt_prog_compiler_static='-non_shared'
7864      ;;
7865
7866    rdos*)
7867      lt_prog_compiler_static='-non_shared'
7868      ;;
7869
7870    solaris*)
7871      lt_prog_compiler_pic='-KPIC'
7872      lt_prog_compiler_static='-Bstatic'
7873      case $cc_basename in
7874      f77* | f90* | f95*)
7875	lt_prog_compiler_wl='-Qoption ld ';;
7876      *)
7877	lt_prog_compiler_wl='-Wl,';;
7878      esac
7879      ;;
7880
7881    sunos4*)
7882      lt_prog_compiler_wl='-Qoption ld '
7883      lt_prog_compiler_pic='-PIC'
7884      lt_prog_compiler_static='-Bstatic'
7885      ;;
7886
7887    sysv4 | sysv4.2uw2* | sysv4.3*)
7888      lt_prog_compiler_wl='-Wl,'
7889      lt_prog_compiler_pic='-KPIC'
7890      lt_prog_compiler_static='-Bstatic'
7891      ;;
7892
7893    sysv4*MP*)
7894      if test -d /usr/nec ;then
7895	lt_prog_compiler_pic='-Kconform_pic'
7896	lt_prog_compiler_static='-Bstatic'
7897      fi
7898      ;;
7899
7900    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7901      lt_prog_compiler_wl='-Wl,'
7902      lt_prog_compiler_pic='-KPIC'
7903      lt_prog_compiler_static='-Bstatic'
7904      ;;
7905
7906    unicos*)
7907      lt_prog_compiler_wl='-Wl,'
7908      lt_prog_compiler_can_build_shared=no
7909      ;;
7910
7911    uts4*)
7912      lt_prog_compiler_pic='-pic'
7913      lt_prog_compiler_static='-Bstatic'
7914      ;;
7915
7916    *)
7917      lt_prog_compiler_can_build_shared=no
7918      ;;
7919    esac
7920  fi
7921
7922{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7923$as_echo "$lt_prog_compiler_pic" >&6; }
7924
7925#
7926# Check to make sure the PIC flag actually works.
7927#
7928if test -n "$lt_prog_compiler_pic"; then
7929
7930{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7931$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7932if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7933  $as_echo_n "(cached) " >&6
7934else
7935  lt_cv_prog_compiler_pic_works=no
7936  ac_outfile=conftest.$ac_objext
7937   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7938   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7939   # Insert the option either (1) after the last *FLAGS variable, or
7940   # (2) before a word containing "conftest.", or (3) at the end.
7941   # Note that $ac_compile itself does not contain backslashes and begins
7942   # with a dollar sign (not a hyphen), so the echo should work correctly.
7943   # The option is referenced via a variable to avoid confusing sed.
7944   lt_compile=`echo "$ac_compile" | $SED \
7945   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947   -e 's:$: $lt_compiler_flag:'`
7948   (eval echo "\"\$as_me:7948: $lt_compile\"" >&5)
7949   (eval "$lt_compile" 2>conftest.err)
7950   ac_status=$?
7951   cat conftest.err >&5
7952   echo "$as_me:7952: \$? = $ac_status" >&5
7953   if (exit $ac_status) && test -s "$ac_outfile"; then
7954     # The compiler can only warn and ignore the option if not recognized
7955     # So say no if there are warnings other than the usual output.
7956     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7957     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7958     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7959       lt_cv_prog_compiler_pic_works=yes
7960     fi
7961   fi
7962   $rm conftest*
7963
7964fi
7965{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7966$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7967
7968if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7969    case $lt_prog_compiler_pic in
7970     "" | " "*) ;;
7971     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7972     esac
7973else
7974    lt_prog_compiler_pic=
7975     lt_prog_compiler_can_build_shared=no
7976fi
7977
7978fi
7979case $host_os in
7980  # For platforms which do not support PIC, -DPIC is meaningless:
7981  *djgpp*)
7982    lt_prog_compiler_pic=
7983    ;;
7984  *)
7985    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7986    ;;
7987esac
7988
7989#
7990# Check to make sure the static flag actually works.
7991#
7992wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7993{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7994$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7995if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7996  $as_echo_n "(cached) " >&6
7997else
7998  lt_cv_prog_compiler_static_works=no
7999   save_LDFLAGS="$LDFLAGS"
8000   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8001   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8002   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8003     # The linker can only warn and ignore the option if not recognized
8004     # So say no if there are warnings
8005     if test -s conftest.err; then
8006       # Append any errors to the config.log.
8007       cat conftest.err 1>&5
8008       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8009       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8010       if diff conftest.exp conftest.er2 >/dev/null; then
8011         lt_cv_prog_compiler_static_works=yes
8012       fi
8013     else
8014       lt_cv_prog_compiler_static_works=yes
8015     fi
8016   fi
8017   $rm -r conftest*
8018   LDFLAGS="$save_LDFLAGS"
8019
8020fi
8021{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8022$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8023
8024if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8025    :
8026else
8027    lt_prog_compiler_static=
8028fi
8029
8030
8031{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8033if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8034  $as_echo_n "(cached) " >&6
8035else
8036  lt_cv_prog_compiler_c_o=no
8037   $rm -r conftest 2>/dev/null
8038   mkdir conftest
8039   cd conftest
8040   mkdir out
8041   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8042
8043   lt_compiler_flag="-o out/conftest2.$ac_objext"
8044   # Insert the option either (1) after the last *FLAGS variable, or
8045   # (2) before a word containing "conftest.", or (3) at the end.
8046   # Note that $ac_compile itself does not contain backslashes and begins
8047   # with a dollar sign (not a hyphen), so the echo should work correctly.
8048   lt_compile=`echo "$ac_compile" | $SED \
8049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051   -e 's:$: $lt_compiler_flag:'`
8052   (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053   (eval "$lt_compile" 2>out/conftest.err)
8054   ac_status=$?
8055   cat out/conftest.err >&5
8056   echo "$as_me:8056: \$? = $ac_status" >&5
8057   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8058   then
8059     # The compiler can only warn and ignore the option if not recognized
8060     # So say no if there are warnings
8061     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8062     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8063     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8064       lt_cv_prog_compiler_c_o=yes
8065     fi
8066   fi
8067   chmod u+w . 2>&5
8068   $rm conftest*
8069   # SGI C++ compiler will create directory out/ii_files/ for
8070   # template instantiation
8071   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8072   $rm out/* && rmdir out
8073   cd ..
8074   rmdir conftest
8075   $rm conftest*
8076
8077fi
8078{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8079$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8080
8081
8082hard_links="nottested"
8083if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8084  # do not overwrite the value of need_locks provided by the user
8085  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8086$as_echo_n "checking if we can lock with hard links... " >&6; }
8087  hard_links=yes
8088  $rm conftest*
8089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090  touch conftest.a
8091  ln conftest.a conftest.b 2>&5 || hard_links=no
8092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8094$as_echo "$hard_links" >&6; }
8095  if test "$hard_links" = no; then
8096    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8097$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8098    need_locks=warn
8099  fi
8100else
8101  need_locks=no
8102fi
8103
8104{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8106
8107  runpath_var=
8108  allow_undefined_flag=
8109  enable_shared_with_static_runtimes=no
8110  archive_cmds=
8111  archive_expsym_cmds=
8112  old_archive_From_new_cmds=
8113  old_archive_from_expsyms_cmds=
8114  export_dynamic_flag_spec=
8115  whole_archive_flag_spec=
8116  thread_safe_flag_spec=
8117  hardcode_libdir_flag_spec=
8118  hardcode_libdir_flag_spec_ld=
8119  hardcode_libdir_separator=
8120  hardcode_direct=no
8121  hardcode_minus_L=no
8122  hardcode_shlibpath_var=unsupported
8123  link_all_deplibs=unknown
8124  hardcode_automatic=no
8125  module_cmds=
8126  module_expsym_cmds=
8127  always_export_symbols=no
8128  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129  # include_expsyms should be a list of space-separated symbols to be *always*
8130  # included in the symbol list
8131  include_expsyms=
8132  # exclude_expsyms can be an extended regexp of symbols to exclude
8133  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8134  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8135  # as well as any symbol that contains `d'.
8136  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8137  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8138  # platforms (ab)use it in PIC code, but their linkers get confused if
8139  # the symbol is explicitly referenced.  Since portable code cannot
8140  # rely on this symbol name, it's probably fine to never include it in
8141  # preloaded symbol tables.
8142  # Exclude shared library initialization/finalization symbols.
8143  extract_expsyms_cmds=
8144  # Just being paranoid about ensuring that cc_basename is set.
8145  for cc_temp in $compiler""; do
8146  case $cc_temp in
8147    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8148    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8149    \-*) ;;
8150    *) break;;
8151  esac
8152done
8153cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8154
8155  case $host_os in
8156  cygwin* | mingw* | pw32*)
8157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8158    # When not using gcc, we currently assume that we are using
8159    # Microsoft Visual C++.
8160    if test "$GCC" != yes; then
8161      with_gnu_ld=no
8162    fi
8163    ;;
8164  interix*)
8165    # we just hope/assume this is gcc and not c89 (= MSVC++)
8166    with_gnu_ld=yes
8167    ;;
8168  openbsd*)
8169    with_gnu_ld=no
8170    ;;
8171  esac
8172
8173  ld_shlibs=yes
8174  if test "$with_gnu_ld" = yes; then
8175    # If archive_cmds runs LD, not CC, wlarc should be empty
8176    wlarc='${wl}'
8177
8178    # Set some defaults for GNU ld with shared library support. These
8179    # are reset later if shared libraries are not supported. Putting them
8180    # here allows them to be overridden if necessary.
8181    runpath_var=LD_RUN_PATH
8182    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8183    export_dynamic_flag_spec='${wl}--export-dynamic'
8184    # ancient GNU ld didn't support --whole-archive et. al.
8185    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8186	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8187      else
8188  	whole_archive_flag_spec=
8189    fi
8190    supports_anon_versioning=no
8191    case `$LD -v 2>/dev/null` in
8192      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8193      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8194      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8195      *\ 2.11.*) ;; # other 2.11 versions
8196      *) supports_anon_versioning=yes ;;
8197    esac
8198
8199    # See if GNU ld supports shared libraries.
8200    case $host_os in
8201    aix[3-9]*)
8202      # On AIX/PPC, the GNU linker is very broken
8203      if test "$host_cpu" != ia64; then
8204	ld_shlibs=no
8205	cat <<EOF 1>&2
8206
8207*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8208*** to be unable to reliably create shared libraries on AIX.
8209*** Therefore, libtool is disabling shared libraries support.  If you
8210*** really care for shared libraries, you may want to modify your PATH
8211*** so that a non-GNU linker is found, and then restart.
8212
8213EOF
8214      fi
8215      ;;
8216
8217    amigaos*)
8218      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)'
8219      hardcode_libdir_flag_spec='-L$libdir'
8220      hardcode_minus_L=yes
8221
8222      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8223      # that the semantics of dynamic libraries on AmigaOS, at least up
8224      # to version 4, is to share data among multiple programs linked
8225      # with the same dynamic library.  Since this doesn't match the
8226      # behavior of shared libraries on other platforms, we can't use
8227      # them.
8228      ld_shlibs=no
8229      ;;
8230
8231    beos*)
8232      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8233	allow_undefined_flag=unsupported
8234	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8235	# support --undefined.  This deserves some investigation.  FIXME
8236	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237      else
8238	ld_shlibs=no
8239      fi
8240      ;;
8241
8242    cygwin* | mingw* | pw32*)
8243      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8244      # as there is no search path for DLLs.
8245      hardcode_libdir_flag_spec='-L$libdir'
8246      allow_undefined_flag=unsupported
8247      always_export_symbols=no
8248      enable_shared_with_static_runtimes=yes
8249      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8250
8251      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8252        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8253	# If the export-symbols file already is a .def file (1st line
8254	# is EXPORTS), use it as is; otherwise, prepend...
8255	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8256	  cp $export_symbols $output_objdir/$soname.def;
8257	else
8258	  echo EXPORTS > $output_objdir/$soname.def;
8259	  cat $export_symbols >> $output_objdir/$soname.def;
8260	fi~
8261	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8262      else
8263	ld_shlibs=no
8264      fi
8265      ;;
8266
8267    interix[3-9]*)
8268      hardcode_direct=no
8269      hardcode_shlibpath_var=no
8270      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8271      export_dynamic_flag_spec='${wl}-E'
8272      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8273      # Instead, shared libraries are loaded at an image base (0x10000000 by
8274      # default) and relocated if they conflict, which is a slow very memory
8275      # consuming and fragmenting process.  To avoid this, we pick a random,
8276      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8277      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8278      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8279      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'
8280      ;;
8281
8282    gnu* | linux* | k*bsd*-gnu)
8283      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8284	tmp_addflag=
8285	case $cc_basename,$host_cpu in
8286	pgcc*)				# Portland Group C compiler
8287	  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'
8288	  tmp_addflag=' $pic_flag'
8289	  ;;
8290	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8291	  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'
8292	  tmp_addflag=' $pic_flag -Mnomain' ;;
8293	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8294	  tmp_addflag=' -i_dynamic' ;;
8295	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8296	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8297	ifc* | ifort*)			# Intel Fortran compiler
8298	  tmp_addflag=' -nofor_main' ;;
8299	esac
8300	case `$CC -V 2>&1 | sed 5q` in
8301	*Sun\ C*)			# Sun C 5.9
8302	  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'
8303	  tmp_sharedflag='-G' ;;
8304	*Sun\ F*)			# Sun Fortran 8.3
8305	  tmp_sharedflag='-G' ;;
8306	*)
8307	  tmp_sharedflag='-shared' ;;
8308	esac
8309	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310
8311	if test $supports_anon_versioning = yes; then
8312	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8313  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8314  $echo "local: *; };" >> $output_objdir/$libname.ver~
8315	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8316	fi
8317      else
8318	ld_shlibs=no
8319      fi
8320      ;;
8321
8322    netbsd*)
8323      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8324	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8325	wlarc=
8326      else
8327	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329      fi
8330      ;;
8331
8332    solaris*)
8333      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8334	ld_shlibs=no
8335	cat <<EOF 1>&2
8336
8337*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8338*** create shared libraries on Solaris systems.  Therefore, libtool
8339*** is disabling shared libraries support.  We urge you to upgrade GNU
8340*** binutils to release 2.9.1 or newer.  Another option is to modify
8341*** your PATH or compiler configuration so that the native linker is
8342*** used, and then restart.
8343
8344EOF
8345      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8346	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8348      else
8349	ld_shlibs=no
8350      fi
8351      ;;
8352
8353    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8354      case `$LD -v 2>&1` in
8355        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8356	ld_shlibs=no
8357	cat <<_LT_EOF 1>&2
8358
8359*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8360*** reliably create shared libraries on SCO systems.  Therefore, libtool
8361*** is disabling shared libraries support.  We urge you to upgrade GNU
8362*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8363*** your PATH or compiler configuration so that the native linker is
8364*** used, and then restart.
8365
8366_LT_EOF
8367	;;
8368	*)
8369	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8371	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8372	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8373	  else
8374	    ld_shlibs=no
8375	  fi
8376	;;
8377      esac
8378      ;;
8379
8380    sunos4*)
8381      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382      wlarc=
8383      hardcode_direct=yes
8384      hardcode_shlibpath_var=no
8385      ;;
8386
8387    *)
8388      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391      else
8392	ld_shlibs=no
8393      fi
8394      ;;
8395    esac
8396
8397    if test "$ld_shlibs" = no; then
8398      runpath_var=
8399      hardcode_libdir_flag_spec=
8400      export_dynamic_flag_spec=
8401      whole_archive_flag_spec=
8402    fi
8403  else
8404    # PORTME fill in a description of your system's linker (not GNU ld)
8405    case $host_os in
8406    aix3*)
8407      allow_undefined_flag=unsupported
8408      always_export_symbols=yes
8409      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'
8410      # Note: this linker hardcodes the directories in LIBPATH if there
8411      # are no directories specified by -L.
8412      hardcode_minus_L=yes
8413      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8414	# Neither direct hardcoding nor static linking is supported with a
8415	# broken collect2.
8416	hardcode_direct=unsupported
8417      fi
8418      ;;
8419
8420    aix[4-9]*)
8421      if test "$host_cpu" = ia64; then
8422	# On IA64, the linker does run time linking by default, so we don't
8423	# have to do anything special.
8424	aix_use_runtimelinking=no
8425	exp_sym_flag='-Bexport'
8426	no_entry_flag=""
8427      else
8428	# If we're using GNU nm, then we don't want the "-C" option.
8429	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8430	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8431	  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'
8432	else
8433	  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'
8434	fi
8435	aix_use_runtimelinking=no
8436
8437	# Test if we are trying to use run time linking or normal
8438	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8439	# need to do runtime linking.
8440	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8441	  for ld_flag in $LDFLAGS; do
8442  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8443  	    aix_use_runtimelinking=yes
8444  	    break
8445  	  fi
8446	  done
8447	  ;;
8448	esac
8449
8450	exp_sym_flag='-bexport'
8451	no_entry_flag='-bnoentry'
8452      fi
8453
8454      # When large executables or shared objects are built, AIX ld can
8455      # have problems creating the table of contents.  If linking a library
8456      # or program results in "error TOC overflow" add -mminimal-toc to
8457      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8458      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8459
8460      archive_cmds=''
8461      hardcode_direct=yes
8462      hardcode_libdir_separator=':'
8463      link_all_deplibs=yes
8464
8465      if test "$GCC" = yes; then
8466	case $host_os in aix4.[012]|aix4.[012].*)
8467	# We only want to do this on AIX 4.2 and lower, the check
8468	# below for broken collect2 doesn't work under 4.3+
8469	  collect2name=`${CC} -print-prog-name=collect2`
8470	  if test -f "$collect2name" && \
8471  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8472	  then
8473  	  # We have reworked collect2
8474  	  :
8475	  else
8476  	  # We have old collect2
8477  	  hardcode_direct=unsupported
8478  	  # It fails to find uninstalled libraries when the uninstalled
8479  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8480  	  # to unsupported forces relinking
8481  	  hardcode_minus_L=yes
8482  	  hardcode_libdir_flag_spec='-L$libdir'
8483  	  hardcode_libdir_separator=
8484	  fi
8485	  ;;
8486	esac
8487	shared_flag='-shared'
8488	if test "$aix_use_runtimelinking" = yes; then
8489	  shared_flag="$shared_flag "'${wl}-G'
8490	fi
8491      else
8492	# not using gcc
8493	if test "$host_cpu" = ia64; then
8494  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8495  	# chokes on -Wl,-G. The following line is correct:
8496	  shared_flag='-G'
8497	else
8498	  if test "$aix_use_runtimelinking" = yes; then
8499	    shared_flag='${wl}-G'
8500	  else
8501	    shared_flag='${wl}-bM:SRE'
8502	  fi
8503	fi
8504      fi
8505
8506      # It seems that -bexpall does not export symbols beginning with
8507      # underscore (_), so it is better to generate a list of symbols to export.
8508      always_export_symbols=yes
8509      if test "$aix_use_runtimelinking" = yes; then
8510	# Warning - without using the other runtime loading flags (-brtl),
8511	# -berok will link without error, but may produce a broken library.
8512	allow_undefined_flag='-berok'
8513       # Determine the default libpath from the value encoded in an empty executable.
8514       cat >conftest.$ac_ext <<_ACEOF
8515/* confdefs.h.  */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h.  */
8520
8521int
8522main ()
8523{
8524
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529rm -f conftest.$ac_objext conftest$ac_exeext
8530if { (ac_try="$ac_link"
8531case "(($ac_try" in
8532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533  *) ac_try_echo=$ac_try;;
8534esac
8535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536$as_echo "$ac_try_echo") >&5
8537  (eval "$ac_link") 2>conftest.er1
8538  ac_status=$?
8539  grep -v '^ *+' conftest.er1 >conftest.err
8540  rm -f conftest.er1
8541  cat conftest.err >&5
8542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); } && {
8544	 test -z "$ac_c_werror_flag" ||
8545	 test ! -s conftest.err
8546       } && test -s conftest$ac_exeext && {
8547	 test "$cross_compiling" = yes ||
8548	 $as_test_x conftest$ac_exeext
8549       }; then
8550
8551lt_aix_libpath_sed='
8552    /Import File Strings/,/^$/ {
8553	/^0/ {
8554	    s/^0  *\(.*\)$/\1/
8555	    p
8556	}
8557    }'
8558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559# Check for a 64-bit object if we didn't find anything.
8560if test -z "$aix_libpath"; then
8561  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8562fi
8563else
8564  $as_echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567
8568fi
8569
8570rm -rf conftest.dSYM
8571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572      conftest$ac_exeext conftest.$ac_ext
8573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8574
8575       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8576	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"
8577       else
8578	if test "$host_cpu" = ia64; then
8579	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8580	  allow_undefined_flag="-z nodefs"
8581	  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"
8582	else
8583	 # Determine the default libpath from the value encoded in an empty executable.
8584	 cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h.  */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h.  */
8590
8591int
8592main ()
8593{
8594
8595  ;
8596  return 0;
8597}
8598_ACEOF
8599rm -f conftest.$ac_objext conftest$ac_exeext
8600if { (ac_try="$ac_link"
8601case "(($ac_try" in
8602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603  *) ac_try_echo=$ac_try;;
8604esac
8605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8606$as_echo "$ac_try_echo") >&5
8607  (eval "$ac_link") 2>conftest.er1
8608  ac_status=$?
8609  grep -v '^ *+' conftest.er1 >conftest.err
8610  rm -f conftest.er1
8611  cat conftest.err >&5
8612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613  (exit $ac_status); } && {
8614	 test -z "$ac_c_werror_flag" ||
8615	 test ! -s conftest.err
8616       } && test -s conftest$ac_exeext && {
8617	 test "$cross_compiling" = yes ||
8618	 $as_test_x conftest$ac_exeext
8619       }; then
8620
8621lt_aix_libpath_sed='
8622    /Import File Strings/,/^$/ {
8623	/^0/ {
8624	    s/^0  *\(.*\)$/\1/
8625	    p
8626	}
8627    }'
8628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629# Check for a 64-bit object if we didn't find anything.
8630if test -z "$aix_libpath"; then
8631  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8632fi
8633else
8634  $as_echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637
8638fi
8639
8640rm -rf conftest.dSYM
8641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8642      conftest$ac_exeext conftest.$ac_ext
8643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8644
8645	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8646	  # Warning - without using the other run time loading flags,
8647	  # -berok will link without error, but may produce a broken library.
8648	  no_undefined_flag=' ${wl}-bernotok'
8649	  allow_undefined_flag=' ${wl}-berok'
8650	  # Exported symbols can be pulled into shared objects from archives
8651	  whole_archive_flag_spec='$convenience'
8652	  archive_cmds_need_lc=yes
8653	  # This is similar to how AIX traditionally builds its shared libraries.
8654	  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'
8655	fi
8656      fi
8657      ;;
8658
8659    amigaos*)
8660      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)'
8661      hardcode_libdir_flag_spec='-L$libdir'
8662      hardcode_minus_L=yes
8663      # see comment about different semantics on the GNU ld section
8664      ld_shlibs=no
8665      ;;
8666
8667    bsdi[45]*)
8668      export_dynamic_flag_spec=-rdynamic
8669      ;;
8670
8671    cygwin* | mingw* | pw32*)
8672      # When not using gcc, we currently assume that we are using
8673      # Microsoft Visual C++.
8674      # hardcode_libdir_flag_spec is actually meaningless, as there is
8675      # no search path for DLLs.
8676      hardcode_libdir_flag_spec=' '
8677      allow_undefined_flag=unsupported
8678      # Tell ltmain to make .lib files, not .a files.
8679      libext=lib
8680      # Tell ltmain to make .dll files, not .so files.
8681      shrext_cmds=".dll"
8682      # FIXME: Setting linknames here is a bad hack.
8683      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8684      # The linker will automatically build a .lib file if we build a DLL.
8685      old_archive_From_new_cmds='true'
8686      # FIXME: Should let the user specify the lib program.
8687      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8688      fix_srcfile_path='`cygpath -w "$srcfile"`'
8689      enable_shared_with_static_runtimes=yes
8690      ;;
8691
8692    darwin* | rhapsody*)
8693      case $host_os in
8694        rhapsody* | darwin1.[012])
8695         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8696         ;;
8697       *) # Darwin 1.3 on
8698         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8699           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8700         else
8701           case ${MACOSX_DEPLOYMENT_TARGET} in
8702             10.[012])
8703               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8704               ;;
8705             10.*)
8706               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8707               ;;
8708           esac
8709         fi
8710         ;;
8711      esac
8712      archive_cmds_need_lc=no
8713      hardcode_direct=no
8714      hardcode_automatic=yes
8715      hardcode_shlibpath_var=unsupported
8716      whole_archive_flag_spec=''
8717      link_all_deplibs=yes
8718    if test "$GCC" = yes ; then
8719    	output_verbose_link_cmd='echo'
8720        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8721        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8722        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}"
8723        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}"
8724    else
8725      case $cc_basename in
8726        xlc*)
8727         output_verbose_link_cmd='echo'
8728         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8729         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8730          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8731         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}'
8732          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}'
8733          ;;
8734       *)
8735         ld_shlibs=no
8736          ;;
8737      esac
8738    fi
8739      ;;
8740
8741    dgux*)
8742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_shlibpath_var=no
8745      ;;
8746
8747    freebsd1*)
8748      ld_shlibs=no
8749      ;;
8750
8751    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8752    # support.  Future versions do this automatically, but an explicit c++rt0.o
8753    # does not break anything, and helps significantly (at the cost of a little
8754    # extra space).
8755    freebsd2.2*)
8756      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8757      hardcode_libdir_flag_spec='-R$libdir'
8758      hardcode_direct=yes
8759      hardcode_shlibpath_var=no
8760      ;;
8761
8762    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8763    freebsd2*)
8764      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8765      hardcode_direct=yes
8766      hardcode_minus_L=yes
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8771    freebsd* | dragonfly*)
8772      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8773      hardcode_libdir_flag_spec='-R$libdir'
8774      hardcode_direct=yes
8775      hardcode_shlibpath_var=no
8776      ;;
8777
8778    hpux9*)
8779      if test "$GCC" = yes; then
8780	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'
8781      else
8782	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'
8783      fi
8784      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8785      hardcode_libdir_separator=:
8786      hardcode_direct=yes
8787
8788      # hardcode_minus_L: Not really in the search PATH,
8789      # but as the default location of the library.
8790      hardcode_minus_L=yes
8791      export_dynamic_flag_spec='${wl}-E'
8792      ;;
8793
8794    hpux10*)
8795      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8796	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8797      else
8798	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8799      fi
8800      if test "$with_gnu_ld" = no; then
8801	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802	hardcode_libdir_separator=:
8803
8804	hardcode_direct=yes
8805	export_dynamic_flag_spec='${wl}-E'
8806
8807	# hardcode_minus_L: Not really in the search PATH,
8808	# but as the default location of the library.
8809	hardcode_minus_L=yes
8810      fi
8811      ;;
8812
8813    hpux11*)
8814      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8815	case $host_cpu in
8816	hppa*64*)
8817	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818	  ;;
8819	ia64*)
8820	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	*)
8823	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8824	  ;;
8825	esac
8826      else
8827	case $host_cpu in
8828	hppa*64*)
8829	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830	  ;;
8831	ia64*)
8832	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8833	  ;;
8834	*)
8835	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836	  ;;
8837	esac
8838      fi
8839      if test "$with_gnu_ld" = no; then
8840	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8841	hardcode_libdir_separator=:
8842
8843	case $host_cpu in
8844	hppa*64*|ia64*)
8845	  hardcode_libdir_flag_spec_ld='+b $libdir'
8846	  hardcode_direct=no
8847	  hardcode_shlibpath_var=no
8848	  ;;
8849	*)
8850	  hardcode_direct=yes
8851	  export_dynamic_flag_spec='${wl}-E'
8852
8853	  # hardcode_minus_L: Not really in the search PATH,
8854	  # but as the default location of the library.
8855	  hardcode_minus_L=yes
8856	  ;;
8857	esac
8858      fi
8859      ;;
8860
8861    irix5* | irix6* | nonstopux*)
8862      if test "$GCC" = yes; then
8863	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'
8864      else
8865	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'
8866	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8867      fi
8868      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8869      hardcode_libdir_separator=:
8870      link_all_deplibs=yes
8871      ;;
8872
8873    netbsd*)
8874      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8875	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8876      else
8877	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8878      fi
8879      hardcode_libdir_flag_spec='-R$libdir'
8880      hardcode_direct=yes
8881      hardcode_shlibpath_var=no
8882      ;;
8883
8884    newsos6)
8885      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886      hardcode_direct=yes
8887      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888      hardcode_libdir_separator=:
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    openbsd*)
8893      if test -f /usr/libexec/ld.so; then
8894	hardcode_direct=yes
8895	hardcode_shlibpath_var=no
8896	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8897	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8898	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8899	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900	  export_dynamic_flag_spec='${wl}-E'
8901	else
8902	  case $host_os in
8903	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8904	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905	     hardcode_libdir_flag_spec='-R$libdir'
8906	     ;;
8907	   *)
8908	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8910	     ;;
8911	  esac
8912        fi
8913      else
8914	ld_shlibs=no
8915      fi
8916      ;;
8917
8918    os2*)
8919      hardcode_libdir_flag_spec='-L$libdir'
8920      hardcode_minus_L=yes
8921      allow_undefined_flag=unsupported
8922      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'
8923      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8924      ;;
8925
8926    osf3*)
8927      if test "$GCC" = yes; then
8928	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8929	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'
8930      else
8931	allow_undefined_flag=' -expect_unresolved \*'
8932	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'
8933      fi
8934      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935      hardcode_libdir_separator=:
8936      ;;
8937
8938    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8939      if test "$GCC" = yes; then
8940	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8941	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'
8942	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943      else
8944	allow_undefined_flag=' -expect_unresolved \*'
8945	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'
8946	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8947	$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'
8948
8949	# Both c and cxx compiler support -rpath directly
8950	hardcode_libdir_flag_spec='-rpath $libdir'
8951      fi
8952      hardcode_libdir_separator=:
8953      ;;
8954
8955    solaris*)
8956      no_undefined_flag=' -z text'
8957      if test "$GCC" = yes; then
8958	wlarc='${wl}'
8959	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8961	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8962      else
8963	wlarc=''
8964	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8966  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8967      fi
8968      hardcode_libdir_flag_spec='-R$libdir'
8969      hardcode_shlibpath_var=no
8970      case $host_os in
8971      solaris2.[0-5] | solaris2.[0-5].*) ;;
8972      *)
8973	# The compiler driver will combine and reorder linker options,
8974	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8975	# but is careful enough not to reorder.
8976 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8977	if test "$GCC" = yes; then
8978	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8979	else
8980	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8981	fi
8982	;;
8983      esac
8984      link_all_deplibs=yes
8985      ;;
8986
8987    sunos4*)
8988      if test "x$host_vendor" = xsequent; then
8989	# Use $CC to link under sequent, because it throws in some extra .o
8990	# files that make .init and .fini sections work.
8991	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8992      else
8993	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8994      fi
8995      hardcode_libdir_flag_spec='-L$libdir'
8996      hardcode_direct=yes
8997      hardcode_minus_L=yes
8998      hardcode_shlibpath_var=no
8999      ;;
9000
9001    sysv4)
9002      case $host_vendor in
9003	sni)
9004	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005	  hardcode_direct=yes # is this really true???
9006	;;
9007	siemens)
9008	  ## LD is ld it makes a PLAMLIB
9009	  ## CC just makes a GrossModule.
9010	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9011	  reload_cmds='$CC -r -o $output$reload_objs'
9012	  hardcode_direct=no
9013        ;;
9014	motorola)
9015	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9017	;;
9018      esac
9019      runpath_var='LD_RUN_PATH'
9020      hardcode_shlibpath_var=no
9021      ;;
9022
9023    sysv4.3*)
9024      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025      hardcode_shlibpath_var=no
9026      export_dynamic_flag_spec='-Bexport'
9027      ;;
9028
9029    sysv4*MP*)
9030      if test -d /usr/nec; then
9031	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032	hardcode_shlibpath_var=no
9033	runpath_var=LD_RUN_PATH
9034	hardcode_runpath_var=yes
9035	ld_shlibs=yes
9036      fi
9037      ;;
9038
9039    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9040      no_undefined_flag='${wl}-z,text'
9041      archive_cmds_need_lc=no
9042      hardcode_shlibpath_var=no
9043      runpath_var='LD_RUN_PATH'
9044
9045      if test "$GCC" = yes; then
9046	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048      else
9049	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051      fi
9052      ;;
9053
9054    sysv5* | sco3.2v5* | sco5v6*)
9055      # Note: We can NOT use -z defs as we might desire, because we do not
9056      # link with -lc, and that would cause any symbols used from libc to
9057      # always be unresolved, which means just about no library would
9058      # ever link correctly.  If we're not using GNU ld we use -z text
9059      # though, which does catch some bad symbols but isn't as heavy-handed
9060      # as -z defs.
9061      no_undefined_flag='${wl}-z,text'
9062      allow_undefined_flag='${wl}-z,nodefs'
9063      archive_cmds_need_lc=no
9064      hardcode_shlibpath_var=no
9065      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9066      hardcode_libdir_separator=':'
9067      link_all_deplibs=yes
9068      export_dynamic_flag_spec='${wl}-Bexport'
9069      runpath_var='LD_RUN_PATH'
9070
9071      if test "$GCC" = yes; then
9072	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074      else
9075	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077      fi
9078      ;;
9079
9080    uts4*)
9081      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082      hardcode_libdir_flag_spec='-L$libdir'
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    *)
9087      ld_shlibs=no
9088      ;;
9089    esac
9090  fi
9091
9092{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9093$as_echo "$ld_shlibs" >&6; }
9094test "$ld_shlibs" = no && can_build_shared=no
9095
9096#
9097# Do we need to explicitly link libc?
9098#
9099case "x$archive_cmds_need_lc" in
9100x|xyes)
9101  # Assume -lc should be added
9102  archive_cmds_need_lc=yes
9103
9104  if test "$enable_shared" = yes && test "$GCC" = yes; then
9105    case $archive_cmds in
9106    *'~'*)
9107      # FIXME: we may have to deal with multi-command sequences.
9108      ;;
9109    '$CC '*)
9110      # Test whether the compiler implicitly links with -lc since on some
9111      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9112      # to ld, don't add -lc before -lgcc.
9113      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9114$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9115      $rm conftest*
9116      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117
9118      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119  (eval $ac_compile) 2>&5
9120  ac_status=$?
9121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); } 2>conftest.err; then
9123        soname=conftest
9124        lib=conftest
9125        libobjs=conftest.$ac_objext
9126        deplibs=
9127        wl=$lt_prog_compiler_wl
9128	pic_flag=$lt_prog_compiler_pic
9129        compiler_flags=-v
9130        linker_flags=-v
9131        verstring=
9132        output_objdir=.
9133        libname=conftest
9134        lt_save_allow_undefined_flag=$allow_undefined_flag
9135        allow_undefined_flag=
9136        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9137  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9138  ac_status=$?
9139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }
9141        then
9142	  archive_cmds_need_lc=no
9143        else
9144	  archive_cmds_need_lc=yes
9145        fi
9146        allow_undefined_flag=$lt_save_allow_undefined_flag
9147      else
9148        cat conftest.err 1>&5
9149      fi
9150      $rm conftest*
9151      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9152$as_echo "$archive_cmds_need_lc" >&6; }
9153      ;;
9154    esac
9155  fi
9156  ;;
9157esac
9158
9159{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9160$as_echo_n "checking dynamic linker characteristics... " >&6; }
9161library_names_spec=
9162libname_spec='lib$name'
9163soname_spec=
9164shrext_cmds=".so"
9165postinstall_cmds=
9166postuninstall_cmds=
9167finish_cmds=
9168finish_eval=
9169shlibpath_var=
9170shlibpath_overrides_runpath=unknown
9171version_type=none
9172dynamic_linker="$host_os ld.so"
9173sys_lib_dlsearch_path_spec="/lib /usr/lib"
9174
9175if test "$GCC" = yes; then
9176  case $host_os in
9177    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9178    *) lt_awk_arg="/^libraries:/" ;;
9179  esac
9180  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9182    # if the path contains ";" then we assume it to be the separator
9183    # otherwise default to the standard path separator (i.e. ":") - it is
9184    # assumed that no part of a normal pathname contains ";" but that should
9185    # okay in the real world where ";" in dirpaths is itself problematic.
9186    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9187  else
9188    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9189  fi
9190  # Ok, now we have the path, separated by spaces, we can step through it
9191  # and add multilib dir if necessary.
9192  lt_tmp_lt_search_path_spec=
9193  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9194  for lt_sys_path in $lt_search_path_spec; do
9195    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9196      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9197    else
9198      test -d "$lt_sys_path" && \
9199	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9200    fi
9201  done
9202  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9203BEGIN {RS=" "; FS="/|\n";} {
9204  lt_foo="";
9205  lt_count=0;
9206  for (lt_i = NF; lt_i > 0; lt_i--) {
9207    if ($lt_i != "" && $lt_i != ".") {
9208      if ($lt_i == "..") {
9209        lt_count++;
9210      } else {
9211        if (lt_count == 0) {
9212          lt_foo="/" $lt_i lt_foo;
9213        } else {
9214          lt_count--;
9215        }
9216      }
9217    }
9218  }
9219  if (lt_foo != "") { lt_freq[lt_foo]++; }
9220  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9221}'`
9222  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9223else
9224  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9225fi
9226need_lib_prefix=unknown
9227hardcode_into_libs=no
9228
9229# when you set need_version to no, make sure it does not cause -set_version
9230# flags to be left without arguments
9231need_version=unknown
9232
9233case $host_os in
9234aix3*)
9235  version_type=linux
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9237  shlibpath_var=LIBPATH
9238
9239  # AIX 3 has no versioning support, so we append a major version to the name.
9240  soname_spec='${libname}${release}${shared_ext}$major'
9241  ;;
9242
9243aix[4-9]*)
9244  version_type=linux
9245  need_lib_prefix=no
9246  need_version=no
9247  hardcode_into_libs=yes
9248  if test "$host_cpu" = ia64; then
9249    # AIX 5 supports IA64
9250    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9251    shlibpath_var=LD_LIBRARY_PATH
9252  else
9253    # With GCC up to 2.95.x, collect2 would create an import file
9254    # for dependence libraries.  The import file would start with
9255    # the line `#! .'.  This would cause the generated library to
9256    # depend on `.', always an invalid library.  This was fixed in
9257    # development snapshots of GCC prior to 3.0.
9258    case $host_os in
9259      aix4 | aix4.[01] | aix4.[01].*)
9260      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9261	   echo ' yes '
9262	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9263	:
9264      else
9265	can_build_shared=no
9266      fi
9267      ;;
9268    esac
9269    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9270    # soname into executable. Probably we can add versioning support to
9271    # collect2, so additional links can be useful in future.
9272    if test "$aix_use_runtimelinking" = yes; then
9273      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9274      # instead of lib<name>.a to let people know that these are not
9275      # typical AIX shared libraries.
9276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277    else
9278      # We preserve .a as extension for shared libraries through AIX4.2
9279      # and later when we are not doing run time linking.
9280      library_names_spec='${libname}${release}.a $libname.a'
9281      soname_spec='${libname}${release}${shared_ext}$major'
9282    fi
9283    shlibpath_var=LIBPATH
9284  fi
9285  ;;
9286
9287amigaos*)
9288  library_names_spec='$libname.ixlibrary $libname.a'
9289  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9290  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'
9291  ;;
9292
9293beos*)
9294  library_names_spec='${libname}${shared_ext}'
9295  dynamic_linker="$host_os ld.so"
9296  shlibpath_var=LIBRARY_PATH
9297  ;;
9298
9299bsdi[45]*)
9300  version_type=linux
9301  need_version=no
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303  soname_spec='${libname}${release}${shared_ext}$major'
9304  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9305  shlibpath_var=LD_LIBRARY_PATH
9306  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9307  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9308  # the default ld.so.conf also contains /usr/contrib/lib and
9309  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9310  # libtool to hard-code these into programs
9311  ;;
9312
9313cygwin* | mingw* | pw32*)
9314  version_type=windows
9315  shrext_cmds=".dll"
9316  need_version=no
9317  need_lib_prefix=no
9318
9319  case $GCC,$host_os in
9320  yes,cygwin* | yes,mingw* | yes,pw32*)
9321    library_names_spec='$libname.dll.a'
9322    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9323    postinstall_cmds='base_file=`basename \${file}`~
9324      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9325      dldir=$destdir/`dirname \$dlpath`~
9326      test -d \$dldir || mkdir -p \$dldir~
9327      $install_prog $dir/$dlname \$dldir/$dlname~
9328      chmod a+x \$dldir/$dlname'
9329    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9330      dlpath=$dir/\$dldll~
9331       $rm \$dlpath'
9332    shlibpath_overrides_runpath=yes
9333
9334    case $host_os in
9335    cygwin*)
9336      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9337      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9339      ;;
9340    mingw*)
9341      # MinGW DLLs use traditional 'lib' prefix
9342      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9343      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9344      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9345        # It is most probably a Windows format PATH printed by
9346        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9347        # path with ; separators, and with drive letters. We can handle the
9348        # drive letters (cygwin fileutils understands them), so leave them,
9349        # especially as we might pass files found there to a mingw objdump,
9350        # which wouldn't understand a cygwinified path. Ahh.
9351        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9352      else
9353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9354      fi
9355      ;;
9356    pw32*)
9357      # pw32 DLLs use 'pw' prefix rather than 'lib'
9358      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359      ;;
9360    esac
9361    ;;
9362
9363  *)
9364    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9365    ;;
9366  esac
9367  dynamic_linker='Win32 ld.exe'
9368  # FIXME: first we should search . and the directory the executable is in
9369  shlibpath_var=PATH
9370  ;;
9371
9372darwin* | rhapsody*)
9373  dynamic_linker="$host_os dyld"
9374  version_type=darwin
9375  need_lib_prefix=no
9376  need_version=no
9377  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9378  soname_spec='${libname}${release}${major}$shared_ext'
9379  shlibpath_overrides_runpath=yes
9380  shlibpath_var=DYLD_LIBRARY_PATH
9381  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9382
9383  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9384  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9385  ;;
9386
9387dgux*)
9388  version_type=linux
9389  need_lib_prefix=no
9390  need_version=no
9391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9392  soname_spec='${libname}${release}${shared_ext}$major'
9393  shlibpath_var=LD_LIBRARY_PATH
9394  ;;
9395
9396freebsd1*)
9397  dynamic_linker=no
9398  ;;
9399
9400freebsd* | dragonfly*)
9401  # DragonFly does not have aout.  When/if they implement a new
9402  # versioning mechanism, adjust this.
9403  if test -x /usr/bin/objformat; then
9404    objformat=`/usr/bin/objformat`
9405  else
9406    case $host_os in
9407    freebsd[123]*) objformat=aout ;;
9408    *) objformat=elf ;;
9409    esac
9410  fi
9411  version_type=freebsd-$objformat
9412  case $version_type in
9413    freebsd-elf*)
9414      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9415      need_version=no
9416      need_lib_prefix=no
9417      ;;
9418    freebsd-*)
9419      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9420      need_version=yes
9421      ;;
9422  esac
9423  shlibpath_var=LD_LIBRARY_PATH
9424  case $host_os in
9425  freebsd2*)
9426    shlibpath_overrides_runpath=yes
9427    ;;
9428  freebsd3.[01]* | freebsdelf3.[01]*)
9429    shlibpath_overrides_runpath=yes
9430    hardcode_into_libs=yes
9431    ;;
9432  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9433  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9434    shlibpath_overrides_runpath=no
9435    hardcode_into_libs=yes
9436    ;;
9437  *) # from 4.6 on, and DragonFly
9438    shlibpath_overrides_runpath=yes
9439    hardcode_into_libs=yes
9440    ;;
9441  esac
9442  ;;
9443
9444gnu*)
9445  version_type=linux
9446  need_lib_prefix=no
9447  need_version=no
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9449  soname_spec='${libname}${release}${shared_ext}$major'
9450  shlibpath_var=LD_LIBRARY_PATH
9451  hardcode_into_libs=yes
9452  ;;
9453
9454hpux9* | hpux10* | hpux11*)
9455  # Give a soname corresponding to the major version so that dld.sl refuses to
9456  # link against other versions.
9457  version_type=sunos
9458  need_lib_prefix=no
9459  need_version=no
9460  case $host_cpu in
9461  ia64*)
9462    shrext_cmds='.so'
9463    hardcode_into_libs=yes
9464    dynamic_linker="$host_os dld.so"
9465    shlibpath_var=LD_LIBRARY_PATH
9466    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468    soname_spec='${libname}${release}${shared_ext}$major'
9469    if test "X$HPUX_IA64_MODE" = X32; then
9470      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9471    else
9472      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9473    fi
9474    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9475    ;;
9476   hppa*64*)
9477     shrext_cmds='.sl'
9478     hardcode_into_libs=yes
9479     dynamic_linker="$host_os dld.sl"
9480     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483     soname_spec='${libname}${release}${shared_ext}$major'
9484     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486     ;;
9487   *)
9488    shrext_cmds='.sl'
9489    dynamic_linker="$host_os dld.sl"
9490    shlibpath_var=SHLIB_PATH
9491    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493    soname_spec='${libname}${release}${shared_ext}$major'
9494    ;;
9495  esac
9496  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9497  postinstall_cmds='chmod 555 $lib'
9498  ;;
9499
9500interix[3-9]*)
9501  version_type=linux
9502  need_lib_prefix=no
9503  need_version=no
9504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9505  soname_spec='${libname}${release}${shared_ext}$major'
9506  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=no
9509  hardcode_into_libs=yes
9510  ;;
9511
9512irix5* | irix6* | nonstopux*)
9513  case $host_os in
9514    nonstopux*) version_type=nonstopux ;;
9515    *)
9516	if test "$lt_cv_prog_gnu_ld" = yes; then
9517		version_type=linux
9518	else
9519		version_type=irix
9520	fi ;;
9521  esac
9522  need_lib_prefix=no
9523  need_version=no
9524  soname_spec='${libname}${release}${shared_ext}$major'
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9526  case $host_os in
9527  irix5* | nonstopux*)
9528    libsuff= shlibsuff=
9529    ;;
9530  *)
9531    case $LD in # libtool.m4 will add one of these switches to LD
9532    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9533      libsuff= shlibsuff= libmagic=32-bit;;
9534    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9535      libsuff=32 shlibsuff=N32 libmagic=N32;;
9536    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9537      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9538    *) libsuff= shlibsuff= libmagic=never-match;;
9539    esac
9540    ;;
9541  esac
9542  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9543  shlibpath_overrides_runpath=no
9544  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9545  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9546  hardcode_into_libs=yes
9547  ;;
9548
9549# No shared lib support for Linux oldld, aout, or coff.
9550linux*oldld* | linux*aout* | linux*coff*)
9551  dynamic_linker=no
9552  ;;
9553
9554# This must be Linux ELF.
9555linux* | k*bsd*-gnu)
9556  version_type=linux
9557  need_lib_prefix=no
9558  need_version=no
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9562  shlibpath_var=LD_LIBRARY_PATH
9563  shlibpath_overrides_runpath=no
9564  # This implies no fast_install, which is unacceptable.
9565  # Some rework will be needed to allow for fast_install
9566  # before this can be enabled.
9567  hardcode_into_libs=yes
9568  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9569  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9570
9571  # Append ld.so.conf contents to the search path
9572  if test -f /etc/ld.so.conf; then
9573    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' ' '`
9574    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9575  fi
9576
9577  # We used to test for /lib/ld.so.1 and disable shared libraries on
9578  # powerpc, because MkLinux only supported shared libraries with the
9579  # GNU dynamic linker.  Since this was broken with cross compilers,
9580  # most powerpc-linux boxes support dynamic linking these days and
9581  # people can always --disable-shared, the test was removed, and we
9582  # assume the GNU/Linux dynamic linker is in use.
9583  dynamic_linker='GNU/Linux ld.so'
9584  ;;
9585
9586netbsd*)
9587  version_type=sunos
9588  need_lib_prefix=no
9589  need_version=no
9590  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9592    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9593    dynamic_linker='NetBSD (a.out) ld.so'
9594  else
9595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9596    soname_spec='${libname}${release}${shared_ext}$major'
9597    dynamic_linker='NetBSD ld.elf_so'
9598  fi
9599  shlibpath_var=LD_LIBRARY_PATH
9600  shlibpath_overrides_runpath=yes
9601  hardcode_into_libs=yes
9602  ;;
9603
9604newsos6)
9605  version_type=linux
9606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=yes
9609  ;;
9610
9611nto-qnx*)
9612  version_type=linux
9613  need_lib_prefix=no
9614  need_version=no
9615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616  soname_spec='${libname}${release}${shared_ext}$major'
9617  shlibpath_var=LD_LIBRARY_PATH
9618  shlibpath_overrides_runpath=yes
9619  ;;
9620
9621openbsd*)
9622  version_type=sunos
9623  sys_lib_dlsearch_path_spec="/usr/lib"
9624  need_lib_prefix=no
9625  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9626  case $host_os in
9627    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9628    *)                         need_version=no  ;;
9629  esac
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634    case $host_os in
9635      openbsd2.[89] | openbsd2.[89].*)
9636	shlibpath_overrides_runpath=no
9637	;;
9638      *)
9639	shlibpath_overrides_runpath=yes
9640	;;
9641      esac
9642  else
9643    shlibpath_overrides_runpath=yes
9644  fi
9645  ;;
9646
9647os2*)
9648  libname_spec='$name'
9649  shrext_cmds=".dll"
9650  need_lib_prefix=no
9651  library_names_spec='$libname${shared_ext} $libname.a'
9652  dynamic_linker='OS/2 ld.exe'
9653  shlibpath_var=LIBPATH
9654  ;;
9655
9656osf3* | osf4* | osf5*)
9657  version_type=osf
9658  need_lib_prefix=no
9659  need_version=no
9660  soname_spec='${libname}${release}${shared_ext}$major'
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9665  ;;
9666
9667rdos*)
9668  dynamic_linker=no
9669  ;;
9670
9671solaris*)
9672  version_type=linux
9673  need_lib_prefix=no
9674  need_version=no
9675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676  soname_spec='${libname}${release}${shared_ext}$major'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  shlibpath_overrides_runpath=yes
9679  hardcode_into_libs=yes
9680  # ldd complains unless libraries are executable
9681  postinstall_cmds='chmod +x $lib'
9682  ;;
9683
9684sunos4*)
9685  version_type=sunos
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=yes
9690  if test "$with_gnu_ld" = yes; then
9691    need_lib_prefix=no
9692  fi
9693  need_version=yes
9694  ;;
9695
9696sysv4 | sysv4.3*)
9697  version_type=linux
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  case $host_vendor in
9702    sni)
9703      shlibpath_overrides_runpath=no
9704      need_lib_prefix=no
9705      export_dynamic_flag_spec='${wl}-Blargedynsym'
9706      runpath_var=LD_RUN_PATH
9707      ;;
9708    siemens)
9709      need_lib_prefix=no
9710      ;;
9711    motorola)
9712      need_lib_prefix=no
9713      need_version=no
9714      shlibpath_overrides_runpath=no
9715      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9716      ;;
9717  esac
9718  ;;
9719
9720sysv4*MP*)
9721  if test -d /usr/nec ;then
9722    version_type=linux
9723    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9724    soname_spec='$libname${shared_ext}.$major'
9725    shlibpath_var=LD_LIBRARY_PATH
9726  fi
9727  ;;
9728
9729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9730  version_type=freebsd-elf
9731  need_lib_prefix=no
9732  need_version=no
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9734  soname_spec='${libname}${release}${shared_ext}$major'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  hardcode_into_libs=yes
9737  if test "$with_gnu_ld" = yes; then
9738    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9739    shlibpath_overrides_runpath=no
9740  else
9741    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9742    shlibpath_overrides_runpath=yes
9743    case $host_os in
9744      sco3.2v5*)
9745        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9746	;;
9747    esac
9748  fi
9749  sys_lib_dlsearch_path_spec='/usr/lib'
9750  ;;
9751
9752uts4*)
9753  version_type=linux
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  ;;
9758
9759*)
9760  dynamic_linker=no
9761  ;;
9762esac
9763{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9764$as_echo "$dynamic_linker" >&6; }
9765test "$dynamic_linker" = no && can_build_shared=no
9766
9767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9768  $as_echo_n "(cached) " >&6
9769else
9770  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9771fi
9772
9773sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9774if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9775  $as_echo_n "(cached) " >&6
9776else
9777  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9778fi
9779
9780sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9781
9782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9783if test "$GCC" = yes; then
9784  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9785fi
9786
9787{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9788$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9789hardcode_action=
9790if test -n "$hardcode_libdir_flag_spec" || \
9791   test -n "$runpath_var" || \
9792   test "X$hardcode_automatic" = "Xyes" ; then
9793
9794  # We can hardcode non-existant directories.
9795  if test "$hardcode_direct" != no &&
9796     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9797     # have to relink, otherwise we might link with an installed library
9798     # when we should be linking with a yet-to-be-installed one
9799     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9800     test "$hardcode_minus_L" != no; then
9801    # Linking always hardcodes the temporary library directory.
9802    hardcode_action=relink
9803  else
9804    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9805    hardcode_action=immediate
9806  fi
9807else
9808  # We cannot hardcode anything, or else we can only hardcode existing
9809  # directories.
9810  hardcode_action=unsupported
9811fi
9812{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9813$as_echo "$hardcode_action" >&6; }
9814
9815if test "$hardcode_action" = relink; then
9816  # Fast installation is not supported
9817  enable_fast_install=no
9818elif test "$shlibpath_overrides_runpath" = yes ||
9819     test "$enable_shared" = no; then
9820  # Fast installation is not necessary
9821  enable_fast_install=needless
9822fi
9823
9824striplib=
9825old_striplib=
9826{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9827$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9828if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9829  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9830  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9831  { $as_echo "$as_me:$LINENO: result: yes" >&5
9832$as_echo "yes" >&6; }
9833else
9834# FIXME - insert some real tests, host_os isn't really good enough
9835  case $host_os in
9836   darwin*)
9837       if test -n "$STRIP" ; then
9838         striplib="$STRIP -x"
9839         old_striplib="$STRIP -S"
9840         { $as_echo "$as_me:$LINENO: result: yes" >&5
9841$as_echo "yes" >&6; }
9842       else
9843  { $as_echo "$as_me:$LINENO: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846       ;;
9847   *)
9848  { $as_echo "$as_me:$LINENO: result: no" >&5
9849$as_echo "no" >&6; }
9850    ;;
9851  esac
9852fi
9853
9854if test "x$enable_dlopen" != xyes; then
9855  enable_dlopen=unknown
9856  enable_dlopen_self=unknown
9857  enable_dlopen_self_static=unknown
9858else
9859  lt_cv_dlopen=no
9860  lt_cv_dlopen_libs=
9861
9862  case $host_os in
9863  beos*)
9864    lt_cv_dlopen="load_add_on"
9865    lt_cv_dlopen_libs=
9866    lt_cv_dlopen_self=yes
9867    ;;
9868
9869  mingw* | pw32*)
9870    lt_cv_dlopen="LoadLibrary"
9871    lt_cv_dlopen_libs=
9872   ;;
9873
9874  cygwin*)
9875    lt_cv_dlopen="dlopen"
9876    lt_cv_dlopen_libs=
9877   ;;
9878
9879  darwin*)
9880  # if libdl is installed we need to link against it
9881    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9882$as_echo_n "checking for dlopen in -ldl... " >&6; }
9883if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9884  $as_echo_n "(cached) " >&6
9885else
9886  ac_check_lib_save_LIBS=$LIBS
9887LIBS="-ldl  $LIBS"
9888cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h.  */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h.  */
9894
9895/* Override any GCC internal prototype to avoid an error.
9896   Use char because int might match the return type of a GCC
9897   builtin and then its argument prototype would still apply.  */
9898#ifdef __cplusplus
9899extern "C"
9900#endif
9901char dlopen ();
9902int
9903main ()
9904{
9905return dlopen ();
9906  ;
9907  return 0;
9908}
9909_ACEOF
9910rm -f conftest.$ac_objext conftest$ac_exeext
9911if { (ac_try="$ac_link"
9912case "(($ac_try" in
9913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914  *) ac_try_echo=$ac_try;;
9915esac
9916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917$as_echo "$ac_try_echo") >&5
9918  (eval "$ac_link") 2>conftest.er1
9919  ac_status=$?
9920  grep -v '^ *+' conftest.er1 >conftest.err
9921  rm -f conftest.er1
9922  cat conftest.err >&5
9923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924  (exit $ac_status); } && {
9925	 test -z "$ac_c_werror_flag" ||
9926	 test ! -s conftest.err
9927       } && test -s conftest$ac_exeext && {
9928	 test "$cross_compiling" = yes ||
9929	 $as_test_x conftest$ac_exeext
9930       }; then
9931  ac_cv_lib_dl_dlopen=yes
9932else
9933  $as_echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936	ac_cv_lib_dl_dlopen=no
9937fi
9938
9939rm -rf conftest.dSYM
9940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9941      conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9946if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9947  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948else
9949
9950    lt_cv_dlopen="dyld"
9951    lt_cv_dlopen_libs=
9952    lt_cv_dlopen_self=yes
9953
9954fi
9955
9956   ;;
9957
9958  *)
9959    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9960$as_echo_n "checking for shl_load... " >&6; }
9961if test "${ac_cv_func_shl_load+set}" = set; then
9962  $as_echo_n "(cached) " >&6
9963else
9964  cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h.  */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h.  */
9970/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972#define shl_load innocuous_shl_load
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975    which can conflict with char shl_load (); below.
9976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977    <limits.h> exists even on freestanding compilers.  */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef shl_load
9986
9987/* Override any GCC internal prototype to avoid an error.
9988   Use char because int might match the return type of a GCC
9989   builtin and then its argument prototype would still apply.  */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993char shl_load ();
9994/* The GNU C library defines this for functions which it implements
9995    to always fail with ENOSYS.  Some functions are actually named
9996    something starting with __ and the normal name is an alias.  */
9997#if defined __stub_shl_load || defined __stub___shl_load
9998choke me
9999#endif
10000
10001int
10002main ()
10003{
10004return shl_load ();
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013  *) ac_try_echo=$ac_try;;
10014esac
10015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016$as_echo "$ac_try_echo") >&5
10017  (eval "$ac_link") 2>conftest.er1
10018  ac_status=$?
10019  grep -v '^ *+' conftest.er1 >conftest.err
10020  rm -f conftest.er1
10021  cat conftest.err >&5
10022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); } && {
10024	 test -z "$ac_c_werror_flag" ||
10025	 test ! -s conftest.err
10026       } && test -s conftest$ac_exeext && {
10027	 test "$cross_compiling" = yes ||
10028	 $as_test_x conftest$ac_exeext
10029       }; then
10030  ac_cv_func_shl_load=yes
10031else
10032  $as_echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035	ac_cv_func_shl_load=no
10036fi
10037
10038rm -rf conftest.dSYM
10039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040      conftest$ac_exeext conftest.$ac_ext
10041fi
10042{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10043$as_echo "$ac_cv_func_shl_load" >&6; }
10044if test "x$ac_cv_func_shl_load" = x""yes; then
10045  lt_cv_dlopen="shl_load"
10046else
10047  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10048$as_echo_n "checking for shl_load in -ldld... " >&6; }
10049if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10050  $as_echo_n "(cached) " >&6
10051else
10052  ac_check_lib_save_LIBS=$LIBS
10053LIBS="-ldld  $LIBS"
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h.  */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h.  */
10060
10061/* Override any GCC internal prototype to avoid an error.
10062   Use char because int might match the return type of a GCC
10063   builtin and then its argument prototype would still apply.  */
10064#ifdef __cplusplus
10065extern "C"
10066#endif
10067char shl_load ();
10068int
10069main ()
10070{
10071return shl_load ();
10072  ;
10073  return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
10077if { (ac_try="$ac_link"
10078case "(($ac_try" in
10079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080  *) ac_try_echo=$ac_try;;
10081esac
10082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083$as_echo "$ac_try_echo") >&5
10084  (eval "$ac_link") 2>conftest.er1
10085  ac_status=$?
10086  grep -v '^ *+' conftest.er1 >conftest.err
10087  rm -f conftest.er1
10088  cat conftest.err >&5
10089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090  (exit $ac_status); } && {
10091	 test -z "$ac_c_werror_flag" ||
10092	 test ! -s conftest.err
10093       } && test -s conftest$ac_exeext && {
10094	 test "$cross_compiling" = yes ||
10095	 $as_test_x conftest$ac_exeext
10096       }; then
10097  ac_cv_lib_dld_shl_load=yes
10098else
10099  $as_echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102	ac_cv_lib_dld_shl_load=no
10103fi
10104
10105rm -rf conftest.dSYM
10106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107      conftest$ac_exeext conftest.$ac_ext
10108LIBS=$ac_check_lib_save_LIBS
10109fi
10110{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10111$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10112if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10113  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10114else
10115  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10116$as_echo_n "checking for dlopen... " >&6; }
10117if test "${ac_cv_func_dlopen+set}" = set; then
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h.  */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h.  */
10126/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10127   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10128#define dlopen innocuous_dlopen
10129
10130/* System header to define __stub macros and hopefully few prototypes,
10131    which can conflict with char dlopen (); below.
10132    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133    <limits.h> exists even on freestanding compilers.  */
10134
10135#ifdef __STDC__
10136# include <limits.h>
10137#else
10138# include <assert.h>
10139#endif
10140
10141#undef dlopen
10142
10143/* Override any GCC internal prototype to avoid an error.
10144   Use char because int might match the return type of a GCC
10145   builtin and then its argument prototype would still apply.  */
10146#ifdef __cplusplus
10147extern "C"
10148#endif
10149char dlopen ();
10150/* The GNU C library defines this for functions which it implements
10151    to always fail with ENOSYS.  Some functions are actually named
10152    something starting with __ and the normal name is an alias.  */
10153#if defined __stub_dlopen || defined __stub___dlopen
10154choke me
10155#endif
10156
10157int
10158main ()
10159{
10160return dlopen ();
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165rm -f conftest.$ac_objext conftest$ac_exeext
10166if { (ac_try="$ac_link"
10167case "(($ac_try" in
10168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169  *) ac_try_echo=$ac_try;;
10170esac
10171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172$as_echo "$ac_try_echo") >&5
10173  (eval "$ac_link") 2>conftest.er1
10174  ac_status=$?
10175  grep -v '^ *+' conftest.er1 >conftest.err
10176  rm -f conftest.er1
10177  cat conftest.err >&5
10178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179  (exit $ac_status); } && {
10180	 test -z "$ac_c_werror_flag" ||
10181	 test ! -s conftest.err
10182       } && test -s conftest$ac_exeext && {
10183	 test "$cross_compiling" = yes ||
10184	 $as_test_x conftest$ac_exeext
10185       }; then
10186  ac_cv_func_dlopen=yes
10187else
10188  $as_echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191	ac_cv_func_dlopen=no
10192fi
10193
10194rm -rf conftest.dSYM
10195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196      conftest$ac_exeext conftest.$ac_ext
10197fi
10198{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10199$as_echo "$ac_cv_func_dlopen" >&6; }
10200if test "x$ac_cv_func_dlopen" = x""yes; then
10201  lt_cv_dlopen="dlopen"
10202else
10203  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204$as_echo_n "checking for dlopen in -ldl... " >&6; }
10205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206  $as_echo_n "(cached) " >&6
10207else
10208  ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldl  $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218   Use char because int might match the return type of a GCC
10219   builtin and then its argument prototype would still apply.  */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dlopen ();
10224int
10225main ()
10226{
10227return dlopen ();
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (ac_try="$ac_link"
10234case "(($ac_try" in
10235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236  *) ac_try_echo=$ac_try;;
10237esac
10238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239$as_echo "$ac_try_echo") >&5
10240  (eval "$ac_link") 2>conftest.er1
10241  ac_status=$?
10242  grep -v '^ *+' conftest.er1 >conftest.err
10243  rm -f conftest.er1
10244  cat conftest.err >&5
10245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); } && {
10247	 test -z "$ac_c_werror_flag" ||
10248	 test ! -s conftest.err
10249       } && test -s conftest$ac_exeext && {
10250	 test "$cross_compiling" = yes ||
10251	 $as_test_x conftest$ac_exeext
10252       }; then
10253  ac_cv_lib_dl_dlopen=yes
10254else
10255  $as_echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258	ac_cv_lib_dl_dlopen=no
10259fi
10260
10261rm -rf conftest.dSYM
10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263      conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10268if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270else
10271  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10272$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10273if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10274  $as_echo_n "(cached) " >&6
10275else
10276  ac_check_lib_save_LIBS=$LIBS
10277LIBS="-lsvld  $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h.  */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h.  */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286   Use char because int might match the return type of a GCC
10287   builtin and then its argument prototype would still apply.  */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char dlopen ();
10292int
10293main ()
10294{
10295return dlopen ();
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304  *) ac_try_echo=$ac_try;;
10305esac
10306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
10308  (eval "$ac_link") 2>conftest.er1
10309  ac_status=$?
10310  grep -v '^ *+' conftest.er1 >conftest.err
10311  rm -f conftest.er1
10312  cat conftest.err >&5
10313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); } && {
10315	 test -z "$ac_c_werror_flag" ||
10316	 test ! -s conftest.err
10317       } && test -s conftest$ac_exeext && {
10318	 test "$cross_compiling" = yes ||
10319	 $as_test_x conftest$ac_exeext
10320       }; then
10321  ac_cv_lib_svld_dlopen=yes
10322else
10323  $as_echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326	ac_cv_lib_svld_dlopen=no
10327fi
10328
10329rm -rf conftest.dSYM
10330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331      conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS
10333fi
10334{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10336if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10337  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10338else
10339  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10340$as_echo_n "checking for dld_link in -ldld... " >&6; }
10341if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10342  $as_echo_n "(cached) " >&6
10343else
10344  ac_check_lib_save_LIBS=$LIBS
10345LIBS="-ldld  $LIBS"
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h.  */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h.  */
10352
10353/* Override any GCC internal prototype to avoid an error.
10354   Use char because int might match the return type of a GCC
10355   builtin and then its argument prototype would still apply.  */
10356#ifdef __cplusplus
10357extern "C"
10358#endif
10359char dld_link ();
10360int
10361main ()
10362{
10363return dld_link ();
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372  *) ac_try_echo=$ac_try;;
10373esac
10374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10375$as_echo "$ac_try_echo") >&5
10376  (eval "$ac_link") 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } && {
10383	 test -z "$ac_c_werror_flag" ||
10384	 test ! -s conftest.err
10385       } && test -s conftest$ac_exeext && {
10386	 test "$cross_compiling" = yes ||
10387	 $as_test_x conftest$ac_exeext
10388       }; then
10389  ac_cv_lib_dld_dld_link=yes
10390else
10391  $as_echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394	ac_cv_lib_dld_dld_link=no
10395fi
10396
10397rm -rf conftest.dSYM
10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399      conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10404if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10405  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10406fi
10407
10408
10409fi
10410
10411
10412fi
10413
10414
10415fi
10416
10417
10418fi
10419
10420
10421fi
10422
10423    ;;
10424  esac
10425
10426  if test "x$lt_cv_dlopen" != xno; then
10427    enable_dlopen=yes
10428  else
10429    enable_dlopen=no
10430  fi
10431
10432  case $lt_cv_dlopen in
10433  dlopen)
10434    save_CPPFLAGS="$CPPFLAGS"
10435    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10436
10437    save_LDFLAGS="$LDFLAGS"
10438    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10439
10440    save_LIBS="$LIBS"
10441    LIBS="$lt_cv_dlopen_libs $LIBS"
10442
10443    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10445if test "${lt_cv_dlopen_self+set}" = set; then
10446  $as_echo_n "(cached) " >&6
10447else
10448  	  if test "$cross_compiling" = yes; then :
10449  lt_cv_dlopen_self=cross
10450else
10451  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452  lt_status=$lt_dlunknown
10453  cat > conftest.$ac_ext <<EOF
10454#line 10454 "configure"
10455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462
10463#ifdef RTLD_GLOBAL
10464#  define LT_DLGLOBAL		RTLD_GLOBAL
10465#else
10466#  ifdef DL_GLOBAL
10467#    define LT_DLGLOBAL		DL_GLOBAL
10468#  else
10469#    define LT_DLGLOBAL		0
10470#  endif
10471#endif
10472
10473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474   find out it does not work in some platform. */
10475#ifndef LT_DLLAZY_OR_NOW
10476#  ifdef RTLD_LAZY
10477#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10478#  else
10479#    ifdef DL_LAZY
10480#      define LT_DLLAZY_OR_NOW		DL_LAZY
10481#    else
10482#      ifdef RTLD_NOW
10483#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10484#      else
10485#        ifdef DL_NOW
10486#          define LT_DLLAZY_OR_NOW	DL_NOW
10487#        else
10488#          define LT_DLLAZY_OR_NOW	0
10489#        endif
10490#      endif
10491#    endif
10492#  endif
10493#endif
10494
10495#ifdef __cplusplus
10496extern "C" void exit (int);
10497#endif
10498
10499void fnord() { int i=42;}
10500int main ()
10501{
10502  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503  int status = $lt_dlunknown;
10504
10505  if (self)
10506    {
10507      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10508      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509      /* dlclose (self); */
10510    }
10511  else
10512    puts (dlerror ());
10513
10514    exit (status);
10515}
10516EOF
10517  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518  (eval $ac_link) 2>&5
10519  ac_status=$?
10520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522    (./conftest; exit; ) >&5 2>/dev/null
10523    lt_status=$?
10524    case x$lt_status in
10525      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10526      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10527      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10528    esac
10529  else :
10530    # compilation failed
10531    lt_cv_dlopen_self=no
10532  fi
10533fi
10534rm -fr conftest*
10535
10536
10537fi
10538{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10539$as_echo "$lt_cv_dlopen_self" >&6; }
10540
10541    if test "x$lt_cv_dlopen_self" = xyes; then
10542      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10543      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10544$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10545if test "${lt_cv_dlopen_self_static+set}" = set; then
10546  $as_echo_n "(cached) " >&6
10547else
10548  	  if test "$cross_compiling" = yes; then :
10549  lt_cv_dlopen_self_static=cross
10550else
10551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552  lt_status=$lt_dlunknown
10553  cat > conftest.$ac_ext <<EOF
10554#line 10554 "configure"
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562
10563#ifdef RTLD_GLOBAL
10564#  define LT_DLGLOBAL		RTLD_GLOBAL
10565#else
10566#  ifdef DL_GLOBAL
10567#    define LT_DLGLOBAL		DL_GLOBAL
10568#  else
10569#    define LT_DLGLOBAL		0
10570#  endif
10571#endif
10572
10573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574   find out it does not work in some platform. */
10575#ifndef LT_DLLAZY_OR_NOW
10576#  ifdef RTLD_LAZY
10577#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10578#  else
10579#    ifdef DL_LAZY
10580#      define LT_DLLAZY_OR_NOW		DL_LAZY
10581#    else
10582#      ifdef RTLD_NOW
10583#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10584#      else
10585#        ifdef DL_NOW
10586#          define LT_DLLAZY_OR_NOW	DL_NOW
10587#        else
10588#          define LT_DLLAZY_OR_NOW	0
10589#        endif
10590#      endif
10591#    endif
10592#  endif
10593#endif
10594
10595#ifdef __cplusplus
10596extern "C" void exit (int);
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603  int status = $lt_dlunknown;
10604
10605  if (self)
10606    {
10607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609      /* dlclose (self); */
10610    }
10611  else
10612    puts (dlerror ());
10613
10614    exit (status);
10615}
10616EOF
10617  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618  (eval $ac_link) 2>&5
10619  ac_status=$?
10620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622    (./conftest; exit; ) >&5 2>/dev/null
10623    lt_status=$?
10624    case x$lt_status in
10625      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10626      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10627      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10628    esac
10629  else :
10630    # compilation failed
10631    lt_cv_dlopen_self_static=no
10632  fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10639$as_echo "$lt_cv_dlopen_self_static" >&6; }
10640    fi
10641
10642    CPPFLAGS="$save_CPPFLAGS"
10643    LDFLAGS="$save_LDFLAGS"
10644    LIBS="$save_LIBS"
10645    ;;
10646  esac
10647
10648  case $lt_cv_dlopen_self in
10649  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10650  *) enable_dlopen_self=unknown ;;
10651  esac
10652
10653  case $lt_cv_dlopen_self_static in
10654  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10655  *) enable_dlopen_self_static=unknown ;;
10656  esac
10657fi
10658
10659
10660# Report which library types will actually be built
10661{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10662$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10663{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10664$as_echo "$can_build_shared" >&6; }
10665
10666{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10667$as_echo_n "checking whether to build shared libraries... " >&6; }
10668test "$can_build_shared" = "no" && enable_shared=no
10669
10670# On AIX, shared libraries and static libraries use the same namespace, and
10671# are all built from PIC.
10672case $host_os in
10673aix3*)
10674  test "$enable_shared" = yes && enable_static=no
10675  if test -n "$RANLIB"; then
10676    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677    postinstall_cmds='$RANLIB $lib'
10678  fi
10679  ;;
10680
10681aix[4-9]*)
10682  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10683    test "$enable_shared" = yes && enable_static=no
10684  fi
10685    ;;
10686esac
10687{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10688$as_echo "$enable_shared" >&6; }
10689
10690{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10691$as_echo_n "checking whether to build static libraries... " >&6; }
10692# Make sure either enable_shared or enable_static is yes.
10693test "$enable_shared" = yes || enable_static=yes
10694{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10695$as_echo "$enable_static" >&6; }
10696
10697# The else clause should only fire when bootstrapping the
10698# libtool distribution, otherwise you forgot to ship ltmain.sh
10699# with your package, and you will get complaints that there are
10700# no rules to generate ltmain.sh.
10701if test -f "$ltmain"; then
10702  # See if we are running on zsh, and set the options which allow our commands through
10703  # without removal of \ escapes.
10704  if test -n "${ZSH_VERSION+set}" ; then
10705    setopt NO_GLOB_SUBST
10706  fi
10707  # Now quote all the things that may contain metacharacters while being
10708  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10709  # variables and quote the copies for generation of the libtool script.
10710  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10711    SED SHELL STRIP \
10712    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10713    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10714    deplibs_check_method reload_flag reload_cmds need_locks \
10715    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10716    lt_cv_sys_global_symbol_to_c_name_address \
10717    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10718    old_postinstall_cmds old_postuninstall_cmds \
10719    compiler \
10720    CC \
10721    LD \
10722    lt_prog_compiler_wl \
10723    lt_prog_compiler_pic \
10724    lt_prog_compiler_static \
10725    lt_prog_compiler_no_builtin_flag \
10726    export_dynamic_flag_spec \
10727    thread_safe_flag_spec \
10728    whole_archive_flag_spec \
10729    enable_shared_with_static_runtimes \
10730    old_archive_cmds \
10731    old_archive_from_new_cmds \
10732    predep_objects \
10733    postdep_objects \
10734    predeps \
10735    postdeps \
10736    compiler_lib_search_path \
10737    compiler_lib_search_dirs \
10738    archive_cmds \
10739    archive_expsym_cmds \
10740    postinstall_cmds \
10741    postuninstall_cmds \
10742    old_archive_from_expsyms_cmds \
10743    allow_undefined_flag \
10744    no_undefined_flag \
10745    export_symbols_cmds \
10746    hardcode_libdir_flag_spec \
10747    hardcode_libdir_flag_spec_ld \
10748    hardcode_libdir_separator \
10749    hardcode_automatic \
10750    module_cmds \
10751    module_expsym_cmds \
10752    lt_cv_prog_compiler_c_o \
10753    fix_srcfile_path \
10754    exclude_expsyms \
10755    include_expsyms; do
10756
10757    case $var in
10758    old_archive_cmds | \
10759    old_archive_from_new_cmds | \
10760    archive_cmds | \
10761    archive_expsym_cmds | \
10762    module_cmds | \
10763    module_expsym_cmds | \
10764    old_archive_from_expsyms_cmds | \
10765    export_symbols_cmds | \
10766    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10767    postinstall_cmds | postuninstall_cmds | \
10768    old_postinstall_cmds | old_postuninstall_cmds | \
10769    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10770      # Double-quote double-evaled strings.
10771      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10772      ;;
10773    *)
10774      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10775      ;;
10776    esac
10777  done
10778
10779  case $lt_echo in
10780  *'\$0 --fallback-echo"')
10781    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10782    ;;
10783  esac
10784
10785cfgfile="${ofile}T"
10786  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10787  $rm -f "$cfgfile"
10788  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10789$as_echo "$as_me: creating $ofile" >&6;}
10790
10791  cat <<__EOF__ >> "$cfgfile"
10792#! $SHELL
10793
10794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10797#
10798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10799# Free Software Foundation, Inc.
10800#
10801# This file is part of GNU Libtool:
10802# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10803#
10804# This program is free software; you can redistribute it and/or modify
10805# it under the terms of the GNU General Public License as published by
10806# the Free Software Foundation; either version 2 of the License, or
10807# (at your option) any later version.
10808#
10809# This program is distributed in the hope that it will be useful, but
10810# WITHOUT ANY WARRANTY; without even the implied warranty of
10811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10812# General Public License for more details.
10813#
10814# You should have received a copy of the GNU General Public License
10815# along with this program; if not, write to the Free Software
10816# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10817#
10818# As a special exception to the GNU General Public License, if you
10819# distribute this file as part of a program that contains a
10820# configuration script generated by Autoconf, you may include it under
10821# the same distribution terms that you use for the rest of that program.
10822
10823# A sed program that does not truncate output.
10824SED=$lt_SED
10825
10826# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10827Xsed="$SED -e 1s/^X//"
10828
10829# The HP-UX ksh and POSIX shell print the target directory to stdout
10830# if CDPATH is set.
10831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10832
10833# The names of the tagged configurations supported by this script.
10834available_tags=
10835
10836# ### BEGIN LIBTOOL CONFIG
10837
10838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10839
10840# Shell to use when invoking shell scripts.
10841SHELL=$lt_SHELL
10842
10843# Whether or not to build shared libraries.
10844build_libtool_libs=$enable_shared
10845
10846# Whether or not to build static libraries.
10847build_old_libs=$enable_static
10848
10849# Whether or not to add -lc for building shared libraries.
10850build_libtool_need_lc=$archive_cmds_need_lc
10851
10852# Whether or not to disallow shared libs when runtime libs are static
10853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10854
10855# Whether or not to optimize for fast installation.
10856fast_install=$enable_fast_install
10857
10858# The host system.
10859host_alias=$host_alias
10860host=$host
10861host_os=$host_os
10862
10863# The build system.
10864build_alias=$build_alias
10865build=$build
10866build_os=$build_os
10867
10868# An echo program that does not interpret backslashes.
10869echo=$lt_echo
10870
10871# The archiver.
10872AR=$lt_AR
10873AR_FLAGS=$lt_AR_FLAGS
10874
10875# A C compiler.
10876LTCC=$lt_LTCC
10877
10878# LTCC compiler flags.
10879LTCFLAGS=$lt_LTCFLAGS
10880
10881# A language-specific compiler.
10882CC=$lt_compiler
10883
10884# Is the compiler the GNU C compiler?
10885with_gcc=$GCC
10886
10887# An ERE matcher.
10888EGREP=$lt_EGREP
10889
10890# The linker used to build libraries.
10891LD=$lt_LD
10892
10893# Whether we need hard or soft links.
10894LN_S=$lt_LN_S
10895
10896# A BSD-compatible nm program.
10897NM=$lt_NM
10898
10899# A symbol stripping program
10900STRIP=$lt_STRIP
10901
10902# Used to examine libraries when file_magic_cmd begins "file"
10903MAGIC_CMD=$MAGIC_CMD
10904
10905# Used on cygwin: DLL creation program.
10906DLLTOOL="$DLLTOOL"
10907
10908# Used on cygwin: object dumper.
10909OBJDUMP="$OBJDUMP"
10910
10911# Used on cygwin: assembler.
10912AS="$AS"
10913
10914# The name of the directory that contains temporary libtool files.
10915objdir=$objdir
10916
10917# How to create reloadable object files.
10918reload_flag=$lt_reload_flag
10919reload_cmds=$lt_reload_cmds
10920
10921# How to pass a linker flag through the compiler.
10922wl=$lt_lt_prog_compiler_wl
10923
10924# Object file suffix (normally "o").
10925objext="$ac_objext"
10926
10927# Old archive suffix (normally "a").
10928libext="$libext"
10929
10930# Shared library suffix (normally ".so").
10931shrext_cmds='$shrext_cmds'
10932
10933# Executable file suffix (normally "").
10934exeext="$exeext"
10935
10936# Additional compiler flags for building library objects.
10937pic_flag=$lt_lt_prog_compiler_pic
10938pic_mode=$pic_mode
10939
10940# What is the maximum length of a command?
10941max_cmd_len=$lt_cv_sys_max_cmd_len
10942
10943# Does compiler simultaneously support -c and -o options?
10944compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10945
10946# Must we lock files when doing compilation?
10947need_locks=$lt_need_locks
10948
10949# Do we need the lib prefix for modules?
10950need_lib_prefix=$need_lib_prefix
10951
10952# Do we need a version for libraries?
10953need_version=$need_version
10954
10955# Whether dlopen is supported.
10956dlopen_support=$enable_dlopen
10957
10958# Whether dlopen of programs is supported.
10959dlopen_self=$enable_dlopen_self
10960
10961# Whether dlopen of statically linked programs is supported.
10962dlopen_self_static=$enable_dlopen_self_static
10963
10964# Compiler flag to prevent dynamic linking.
10965link_static_flag=$lt_lt_prog_compiler_static
10966
10967# Compiler flag to turn off builtin functions.
10968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10969
10970# Compiler flag to allow reflexive dlopens.
10971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10972
10973# Compiler flag to generate shared objects directly from archives.
10974whole_archive_flag_spec=$lt_whole_archive_flag_spec
10975
10976# Compiler flag to generate thread-safe objects.
10977thread_safe_flag_spec=$lt_thread_safe_flag_spec
10978
10979# Library versioning type.
10980version_type=$version_type
10981
10982# Format of library name prefix.
10983libname_spec=$lt_libname_spec
10984
10985# List of archive names.  First name is the real one, the rest are links.
10986# The last name is the one that the linker finds with -lNAME.
10987library_names_spec=$lt_library_names_spec
10988
10989# The coded name of the library, if different from the real name.
10990soname_spec=$lt_soname_spec
10991
10992# Commands used to build and install an old-style archive.
10993RANLIB=$lt_RANLIB
10994old_archive_cmds=$lt_old_archive_cmds
10995old_postinstall_cmds=$lt_old_postinstall_cmds
10996old_postuninstall_cmds=$lt_old_postuninstall_cmds
10997
10998# Create an old-style archive from a shared archive.
10999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11000
11001# Create a temporary old-style archive to link instead of a shared archive.
11002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11003
11004# Commands used to build and install a shared archive.
11005archive_cmds=$lt_archive_cmds
11006archive_expsym_cmds=$lt_archive_expsym_cmds
11007postinstall_cmds=$lt_postinstall_cmds
11008postuninstall_cmds=$lt_postuninstall_cmds
11009
11010# Commands used to build a loadable module (assumed same as above if empty)
11011module_cmds=$lt_module_cmds
11012module_expsym_cmds=$lt_module_expsym_cmds
11013
11014# Commands to strip libraries.
11015old_striplib=$lt_old_striplib
11016striplib=$lt_striplib
11017
11018# Dependencies to place before the objects being linked to create a
11019# shared library.
11020predep_objects=$lt_predep_objects
11021
11022# Dependencies to place after the objects being linked to create a
11023# shared library.
11024postdep_objects=$lt_postdep_objects
11025
11026# Dependencies to place before the objects being linked to create a
11027# shared library.
11028predeps=$lt_predeps
11029
11030# Dependencies to place after the objects being linked to create a
11031# shared library.
11032postdeps=$lt_postdeps
11033
11034# The directories searched by this compiler when creating a shared
11035# library
11036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11037
11038# The library search path used internally by the compiler when linking
11039# a shared library.
11040compiler_lib_search_path=$lt_compiler_lib_search_path
11041
11042# Method to check whether dependent libraries are shared objects.
11043deplibs_check_method=$lt_deplibs_check_method
11044
11045# Command to use when deplibs_check_method == file_magic.
11046file_magic_cmd=$lt_file_magic_cmd
11047
11048# Flag that allows shared libraries with undefined symbols to be built.
11049allow_undefined_flag=$lt_allow_undefined_flag
11050
11051# Flag that forces no undefined symbols.
11052no_undefined_flag=$lt_no_undefined_flag
11053
11054# Commands used to finish a libtool library installation in a directory.
11055finish_cmds=$lt_finish_cmds
11056
11057# Same as above, but a single script fragment to be evaled but not shown.
11058finish_eval=$lt_finish_eval
11059
11060# Take the output of nm and produce a listing of raw symbols and C names.
11061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11062
11063# Transform the output of nm in a proper C declaration
11064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11065
11066# Transform the output of nm in a C name address pair
11067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11068
11069# This is the shared library runtime path variable.
11070runpath_var=$runpath_var
11071
11072# This is the shared library path variable.
11073shlibpath_var=$shlibpath_var
11074
11075# Is shlibpath searched before the hard-coded library search path?
11076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11077
11078# How to hardcode a shared library path into an executable.
11079hardcode_action=$hardcode_action
11080
11081# Whether we should hardcode library paths into libraries.
11082hardcode_into_libs=$hardcode_into_libs
11083
11084# Flag to hardcode \$libdir into a binary during linking.
11085# This must work even if \$libdir does not exist.
11086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11087
11088# If ld is used when linking, flag to hardcode \$libdir into
11089# a binary during linking. This must work even if \$libdir does
11090# not exist.
11091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11092
11093# Whether we need a single -rpath flag with a separated argument.
11094hardcode_libdir_separator=$lt_hardcode_libdir_separator
11095
11096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11097# resulting binary.
11098hardcode_direct=$hardcode_direct
11099
11100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11101# resulting binary.
11102hardcode_minus_L=$hardcode_minus_L
11103
11104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11105# the resulting binary.
11106hardcode_shlibpath_var=$hardcode_shlibpath_var
11107
11108# Set to yes if building a shared library automatically hardcodes DIR into the library
11109# and all subsequent libraries and executables linked against it.
11110hardcode_automatic=$hardcode_automatic
11111
11112# Variables whose values should be saved in libtool wrapper scripts and
11113# restored at relink time.
11114variables_saved_for_relink="$variables_saved_for_relink"
11115
11116# Whether libtool must link a program against all its dependency libraries.
11117link_all_deplibs=$link_all_deplibs
11118
11119# Compile-time system search path for libraries
11120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11121
11122# Run-time system search path for libraries
11123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11124
11125# Fix the shell variable \$srcfile for the compiler.
11126fix_srcfile_path=$lt_fix_srcfile_path
11127
11128# Set to yes if exported symbols are required.
11129always_export_symbols=$always_export_symbols
11130
11131# The commands to list exported symbols.
11132export_symbols_cmds=$lt_export_symbols_cmds
11133
11134# The commands to extract the exported symbol list from a shared archive.
11135extract_expsyms_cmds=$lt_extract_expsyms_cmds
11136
11137# Symbols that should not be listed in the preloaded symbols.
11138exclude_expsyms=$lt_exclude_expsyms
11139
11140# Symbols that must always be exported.
11141include_expsyms=$lt_include_expsyms
11142
11143# ### END LIBTOOL CONFIG
11144
11145__EOF__
11146
11147
11148  case $host_os in
11149  aix3*)
11150    cat <<\EOF >> "$cfgfile"
11151
11152# AIX sometimes has problems with the GCC collect2 program.  For some
11153# reason, if we set the COLLECT_NAMES environment variable, the problems
11154# vanish in a puff of smoke.
11155if test "X${COLLECT_NAMES+set}" != Xset; then
11156  COLLECT_NAMES=
11157  export COLLECT_NAMES
11158fi
11159EOF
11160    ;;
11161  esac
11162
11163  # We use sed instead of cat because bash on DJGPP gets confused if
11164  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11165  # text mode, it properly converts lines to CR/LF.  This bash problem
11166  # is reportedly fixed, but why not run on old versions too?
11167  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11168
11169  mv -f "$cfgfile" "$ofile" || \
11170    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11171  chmod +x "$ofile"
11172
11173else
11174  # If there is no Makefile yet, we rely on a make rule to execute
11175  # `config.status --recheck' to rerun these tests and create the
11176  # libtool script then.
11177  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11178  if test -f "$ltmain_in"; then
11179    test -f Makefile && make "$ltmain"
11180  fi
11181fi
11182
11183
11184ac_ext=c
11185ac_cpp='$CPP $CPPFLAGS'
11186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188ac_compiler_gnu=$ac_cv_c_compiler_gnu
11189
11190CC="$lt_save_CC"
11191
11192
11193# Check whether --with-tags was given.
11194if test "${with_tags+set}" = set; then
11195  withval=$with_tags; tagnames="$withval"
11196fi
11197
11198
11199if test -f "$ltmain" && test -n "$tagnames"; then
11200  if test ! -f "${ofile}"; then
11201    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11202$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11203  fi
11204
11205  if test -z "$LTCC"; then
11206    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11207    if test -z "$LTCC"; then
11208      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11209$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11210    else
11211      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11212$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11213    fi
11214  fi
11215  if test -z "$LTCFLAGS"; then
11216    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11217  fi
11218
11219  # Extract list of available tagged configurations in $ofile.
11220  # Note that this assumes the entire list is on one line.
11221  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11222
11223  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11224  for tagname in $tagnames; do
11225    IFS="$lt_save_ifs"
11226    # Check whether tagname contains only valid characters
11227    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11228    "") ;;
11229    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11230$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11231   { (exit 1); exit 1; }; }
11232	;;
11233    esac
11234
11235    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11236    then
11237      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11238$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11239   { (exit 1); exit 1; }; }
11240    fi
11241
11242    # Update the list of available tags.
11243    if test -n "$tagname"; then
11244      echo appending configuration tag \"$tagname\" to $ofile
11245
11246      case $tagname in
11247      CXX)
11248	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11249	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11250	    (test "X$CXX" != "Xg++"))) ; then
11251	  ac_ext=cpp
11252ac_cpp='$CXXCPP $CPPFLAGS'
11253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11256
11257
11258
11259
11260archive_cmds_need_lc_CXX=no
11261allow_undefined_flag_CXX=
11262always_export_symbols_CXX=no
11263archive_expsym_cmds_CXX=
11264export_dynamic_flag_spec_CXX=
11265hardcode_direct_CXX=no
11266hardcode_libdir_flag_spec_CXX=
11267hardcode_libdir_flag_spec_ld_CXX=
11268hardcode_libdir_separator_CXX=
11269hardcode_minus_L_CXX=no
11270hardcode_shlibpath_var_CXX=unsupported
11271hardcode_automatic_CXX=no
11272module_cmds_CXX=
11273module_expsym_cmds_CXX=
11274link_all_deplibs_CXX=unknown
11275old_archive_cmds_CXX=$old_archive_cmds
11276no_undefined_flag_CXX=
11277whole_archive_flag_spec_CXX=
11278enable_shared_with_static_runtimes_CXX=no
11279
11280# Dependencies to place before and after the object being linked:
11281predep_objects_CXX=
11282postdep_objects_CXX=
11283predeps_CXX=
11284postdeps_CXX=
11285compiler_lib_search_path_CXX=
11286compiler_lib_search_dirs_CXX=
11287
11288# Source file extension for C++ test sources.
11289ac_ext=cpp
11290
11291# Object file extension for compiled C++ test sources.
11292objext=o
11293objext_CXX=$objext
11294
11295# Code to be used in simple compile tests
11296lt_simple_compile_test_code="int some_variable = 0;"
11297
11298# Code to be used in simple link tests
11299lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11300
11301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11302
11303# If no C compiler was specified, use CC.
11304LTCC=${LTCC-"$CC"}
11305
11306# If no C compiler flags were specified, use CFLAGS.
11307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11308
11309# Allow CC to be a program name with arguments.
11310compiler=$CC
11311
11312
11313# save warnings/boilerplate of simple test code
11314ac_outfile=conftest.$ac_objext
11315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317_lt_compiler_boilerplate=`cat conftest.err`
11318$rm conftest*
11319
11320ac_outfile=conftest.$ac_objext
11321echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323_lt_linker_boilerplate=`cat conftest.err`
11324$rm -r conftest*
11325
11326
11327# Allow CC to be a program name with arguments.
11328lt_save_CC=$CC
11329lt_save_LD=$LD
11330lt_save_GCC=$GCC
11331GCC=$GXX
11332lt_save_with_gnu_ld=$with_gnu_ld
11333lt_save_path_LD=$lt_cv_path_LD
11334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336else
11337  $as_unset lt_cv_prog_gnu_ld
11338fi
11339if test -n "${lt_cv_path_LDCXX+set}"; then
11340  lt_cv_path_LD=$lt_cv_path_LDCXX
11341else
11342  $as_unset lt_cv_path_LD
11343fi
11344test -z "${LDCXX+set}" || LD=$LDCXX
11345CC=${CXX-"c++"}
11346compiler=$CC
11347compiler_CXX=$CC
11348for cc_temp in $compiler""; do
11349  case $cc_temp in
11350    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11351    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352    \-*) ;;
11353    *) break;;
11354  esac
11355done
11356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11357
11358
11359# We don't want -fno-exception wen compiling C++ code, so set the
11360# no_builtin_flag separately
11361if test "$GXX" = yes; then
11362  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11363else
11364  lt_prog_compiler_no_builtin_flag_CXX=
11365fi
11366
11367if test "$GXX" = yes; then
11368  # Set up default GNU C++ configuration
11369
11370
11371# Check whether --with-gnu-ld was given.
11372if test "${with_gnu_ld+set}" = set; then
11373  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11374else
11375  with_gnu_ld=no
11376fi
11377
11378ac_prog=ld
11379if test "$GCC" = yes; then
11380  # Check if gcc -print-prog-name=ld gives a path.
11381  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11382$as_echo_n "checking for ld used by $CC... " >&6; }
11383  case $host in
11384  *-*-mingw*)
11385    # gcc leaves a trailing carriage return which upsets mingw
11386    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11387  *)
11388    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389  esac
11390  case $ac_prog in
11391    # Accept absolute paths.
11392    [\\/]* | ?:[\\/]*)
11393      re_direlt='/[^/][^/]*/\.\./'
11394      # Canonicalize the pathname of ld
11395      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11396      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11397	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11398      done
11399      test -z "$LD" && LD="$ac_prog"
11400      ;;
11401  "")
11402    # If it fails, then pretend we aren't using GCC.
11403    ac_prog=ld
11404    ;;
11405  *)
11406    # If it is relative, then search for the first ld in PATH.
11407    with_gnu_ld=unknown
11408    ;;
11409  esac
11410elif test "$with_gnu_ld" = yes; then
11411  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11412$as_echo_n "checking for GNU ld... " >&6; }
11413else
11414  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11415$as_echo_n "checking for non-GNU ld... " >&6; }
11416fi
11417if test "${lt_cv_path_LD+set}" = set; then
11418  $as_echo_n "(cached) " >&6
11419else
11420  if test -z "$LD"; then
11421  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422  for ac_dir in $PATH; do
11423    IFS="$lt_save_ifs"
11424    test -z "$ac_dir" && ac_dir=.
11425    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426      lt_cv_path_LD="$ac_dir/$ac_prog"
11427      # Check to see if the program is GNU ld.  I'd rather use --version,
11428      # but apparently some variants of GNU ld only accept -v.
11429      # Break only if it was the GNU/non-GNU ld that we prefer.
11430      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431      *GNU* | *'with BFD'*)
11432	test "$with_gnu_ld" != no && break
11433	;;
11434      *)
11435	test "$with_gnu_ld" != yes && break
11436	;;
11437      esac
11438    fi
11439  done
11440  IFS="$lt_save_ifs"
11441else
11442  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11443fi
11444fi
11445
11446LD="$lt_cv_path_LD"
11447if test -n "$LD"; then
11448  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11449$as_echo "$LD" >&6; }
11450else
11451  { $as_echo "$as_me:$LINENO: result: no" >&5
11452$as_echo "no" >&6; }
11453fi
11454test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456   { (exit 1); exit 1; }; }
11457{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11459if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460  $as_echo_n "(cached) " >&6
11461else
11462  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11463case `$LD -v 2>&1 </dev/null` in
11464*GNU* | *'with BFD'*)
11465  lt_cv_prog_gnu_ld=yes
11466  ;;
11467*)
11468  lt_cv_prog_gnu_ld=no
11469  ;;
11470esac
11471fi
11472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11473$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11474with_gnu_ld=$lt_cv_prog_gnu_ld
11475
11476
11477
11478  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11479  # archiving commands below assume that GNU ld is being used.
11480  if test "$with_gnu_ld" = yes; then
11481    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482    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'
11483
11484    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11485    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486
11487    # If archive_cmds runs LD, not CC, wlarc should be empty
11488    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11489    #     investigate it a little bit more. (MM)
11490    wlarc='${wl}'
11491
11492    # ancient GNU ld didn't support --whole-archive et. al.
11493    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11494	grep 'no-whole-archive' > /dev/null; then
11495      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11496    else
11497      whole_archive_flag_spec_CXX=
11498    fi
11499  else
11500    with_gnu_ld=no
11501    wlarc=
11502
11503    # A generic and very simple default shared library creation
11504    # command for GNU C++ for the case where it uses the native
11505    # linker, instead of GNU ld.  If possible, this setting should
11506    # overridden to take advantage of the native linker features on
11507    # the platform it is being used on.
11508    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509  fi
11510
11511  # Commands to make compiler produce verbose output that lists
11512  # what "hidden" libraries, object files and flags are used when
11513  # linking a shared library.
11514  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515
11516else
11517  GXX=no
11518  with_gnu_ld=no
11519  wlarc=
11520fi
11521
11522# PORTME: fill in a description of your system's C++ link characteristics
11523{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11525ld_shlibs_CXX=yes
11526case $host_os in
11527  aix3*)
11528    # FIXME: insert proper C++ library support
11529    ld_shlibs_CXX=no
11530    ;;
11531  aix[4-9]*)
11532    if test "$host_cpu" = ia64; then
11533      # On IA64, the linker does run time linking by default, so we don't
11534      # have to do anything special.
11535      aix_use_runtimelinking=no
11536      exp_sym_flag='-Bexport'
11537      no_entry_flag=""
11538    else
11539      aix_use_runtimelinking=no
11540
11541      # Test if we are trying to use run time linking or normal
11542      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543      # need to do runtime linking.
11544      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11545	for ld_flag in $LDFLAGS; do
11546	  case $ld_flag in
11547	  *-brtl*)
11548	    aix_use_runtimelinking=yes
11549	    break
11550	    ;;
11551	  esac
11552	done
11553	;;
11554      esac
11555
11556      exp_sym_flag='-bexport'
11557      no_entry_flag='-bnoentry'
11558    fi
11559
11560    # When large executables or shared objects are built, AIX ld can
11561    # have problems creating the table of contents.  If linking a library
11562    # or program results in "error TOC overflow" add -mminimal-toc to
11563    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11564    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11565
11566    archive_cmds_CXX=''
11567    hardcode_direct_CXX=yes
11568    hardcode_libdir_separator_CXX=':'
11569    link_all_deplibs_CXX=yes
11570
11571    if test "$GXX" = yes; then
11572      case $host_os in aix4.[012]|aix4.[012].*)
11573      # We only want to do this on AIX 4.2 and lower, the check
11574      # below for broken collect2 doesn't work under 4.3+
11575	collect2name=`${CC} -print-prog-name=collect2`
11576	if test -f "$collect2name" && \
11577	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11578	then
11579	  # We have reworked collect2
11580	  :
11581	else
11582	  # We have old collect2
11583	  hardcode_direct_CXX=unsupported
11584	  # It fails to find uninstalled libraries when the uninstalled
11585	  # path is not listed in the libpath.  Setting hardcode_minus_L
11586	  # to unsupported forces relinking
11587	  hardcode_minus_L_CXX=yes
11588	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11589	  hardcode_libdir_separator_CXX=
11590	fi
11591	;;
11592      esac
11593      shared_flag='-shared'
11594      if test "$aix_use_runtimelinking" = yes; then
11595	shared_flag="$shared_flag "'${wl}-G'
11596      fi
11597    else
11598      # not using gcc
11599      if test "$host_cpu" = ia64; then
11600	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11601	# chokes on -Wl,-G. The following line is correct:
11602	shared_flag='-G'
11603      else
11604	if test "$aix_use_runtimelinking" = yes; then
11605	  shared_flag='${wl}-G'
11606	else
11607	  shared_flag='${wl}-bM:SRE'
11608	fi
11609      fi
11610    fi
11611
11612    # It seems that -bexpall does not export symbols beginning with
11613    # underscore (_), so it is better to generate a list of symbols to export.
11614    always_export_symbols_CXX=yes
11615    if test "$aix_use_runtimelinking" = yes; then
11616      # Warning - without using the other runtime loading flags (-brtl),
11617      # -berok will link without error, but may produce a broken library.
11618      allow_undefined_flag_CXX='-berok'
11619      # Determine the default libpath from the value encoded in an empty executable.
11620      cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h.  */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h.  */
11626
11627int
11628main ()
11629{
11630
11631  ;
11632  return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext conftest$ac_exeext
11636if { (ac_try="$ac_link"
11637case "(($ac_try" in
11638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639  *) ac_try_echo=$ac_try;;
11640esac
11641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642$as_echo "$ac_try_echo") >&5
11643  (eval "$ac_link") 2>conftest.er1
11644  ac_status=$?
11645  grep -v '^ *+' conftest.er1 >conftest.err
11646  rm -f conftest.er1
11647  cat conftest.err >&5
11648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); } && {
11650	 test -z "$ac_cxx_werror_flag" ||
11651	 test ! -s conftest.err
11652       } && test -s conftest$ac_exeext && {
11653	 test "$cross_compiling" = yes ||
11654	 $as_test_x conftest$ac_exeext
11655       }; then
11656
11657lt_aix_libpath_sed='
11658    /Import File Strings/,/^$/ {
11659	/^0/ {
11660	    s/^0  *\(.*\)$/\1/
11661	    p
11662	}
11663    }'
11664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665# Check for a 64-bit object if we didn't find anything.
11666if test -z "$aix_libpath"; then
11667  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11668fi
11669else
11670  $as_echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673
11674fi
11675
11676rm -rf conftest.dSYM
11677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11678      conftest$ac_exeext conftest.$ac_ext
11679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11680
11681      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11682
11683      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"
11684     else
11685      if test "$host_cpu" = ia64; then
11686	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11687	allow_undefined_flag_CXX="-z nodefs"
11688	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"
11689      else
11690	# Determine the default libpath from the value encoded in an empty executable.
11691	cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697
11698int
11699main ()
11700{
11701
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (ac_try="$ac_link"
11708case "(($ac_try" in
11709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710  *) ac_try_echo=$ac_try;;
11711esac
11712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713$as_echo "$ac_try_echo") >&5
11714  (eval "$ac_link") 2>conftest.er1
11715  ac_status=$?
11716  grep -v '^ *+' conftest.er1 >conftest.err
11717  rm -f conftest.er1
11718  cat conftest.err >&5
11719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720  (exit $ac_status); } && {
11721	 test -z "$ac_cxx_werror_flag" ||
11722	 test ! -s conftest.err
11723       } && test -s conftest$ac_exeext && {
11724	 test "$cross_compiling" = yes ||
11725	 $as_test_x conftest$ac_exeext
11726       }; then
11727
11728lt_aix_libpath_sed='
11729    /Import File Strings/,/^$/ {
11730	/^0/ {
11731	    s/^0  *\(.*\)$/\1/
11732	    p
11733	}
11734    }'
11735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736# Check for a 64-bit object if we didn't find anything.
11737if test -z "$aix_libpath"; then
11738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11739fi
11740else
11741  $as_echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744
11745fi
11746
11747rm -rf conftest.dSYM
11748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749      conftest$ac_exeext conftest.$ac_ext
11750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11751
11752	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11753	# Warning - without using the other run time loading flags,
11754	# -berok will link without error, but may produce a broken library.
11755	no_undefined_flag_CXX=' ${wl}-bernotok'
11756	allow_undefined_flag_CXX=' ${wl}-berok'
11757	# Exported symbols can be pulled into shared objects from archives
11758	whole_archive_flag_spec_CXX='$convenience'
11759	archive_cmds_need_lc_CXX=yes
11760	# This is similar to how AIX traditionally builds its shared libraries.
11761	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'
11762      fi
11763    fi
11764    ;;
11765
11766  beos*)
11767    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11768      allow_undefined_flag_CXX=unsupported
11769      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11770      # support --undefined.  This deserves some investigation.  FIXME
11771      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772    else
11773      ld_shlibs_CXX=no
11774    fi
11775    ;;
11776
11777  chorus*)
11778    case $cc_basename in
11779      *)
11780	# FIXME: insert proper C++ library support
11781	ld_shlibs_CXX=no
11782	;;
11783    esac
11784    ;;
11785
11786  cygwin* | mingw* | pw32*)
11787    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11788    # as there is no search path for DLLs.
11789    hardcode_libdir_flag_spec_CXX='-L$libdir'
11790    allow_undefined_flag_CXX=unsupported
11791    always_export_symbols_CXX=no
11792    enable_shared_with_static_runtimes_CXX=yes
11793
11794    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11795      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'
11796      # If the export-symbols file already is a .def file (1st line
11797      # is EXPORTS), use it as is; otherwise, prepend...
11798      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11799	cp $export_symbols $output_objdir/$soname.def;
11800      else
11801	echo EXPORTS > $output_objdir/$soname.def;
11802	cat $export_symbols >> $output_objdir/$soname.def;
11803      fi~
11804      $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'
11805    else
11806      ld_shlibs_CXX=no
11807    fi
11808  ;;
11809      darwin* | rhapsody*)
11810      archive_cmds_need_lc_CXX=no
11811      hardcode_direct_CXX=no
11812      hardcode_automatic_CXX=yes
11813      hardcode_shlibpath_var_CXX=unsupported
11814      whole_archive_flag_spec_CXX=''
11815      link_all_deplibs_CXX=yes
11816      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11817      if test "$GXX" = yes ; then
11818      output_verbose_link_cmd='echo'
11819      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}"
11820      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11821      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}"
11822      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}"
11823      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11824        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}"
11825        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}"
11826      fi
11827      else
11828      case $cc_basename in
11829        xlc*)
11830         output_verbose_link_cmd='echo'
11831          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'
11832          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11833          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11834          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}'
11835          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}'
11836          ;;
11837       *)
11838         ld_shlibs_CXX=no
11839          ;;
11840      esac
11841      fi
11842        ;;
11843
11844  dgux*)
11845    case $cc_basename in
11846      ec++*)
11847	# FIXME: insert proper C++ library support
11848	ld_shlibs_CXX=no
11849	;;
11850      ghcx*)
11851	# Green Hills C++ Compiler
11852	# FIXME: insert proper C++ library support
11853	ld_shlibs_CXX=no
11854	;;
11855      *)
11856	# FIXME: insert proper C++ library support
11857	ld_shlibs_CXX=no
11858	;;
11859    esac
11860    ;;
11861  freebsd[12]*)
11862    # C++ shared libraries reported to be fairly broken before switch to ELF
11863    ld_shlibs_CXX=no
11864    ;;
11865  freebsd-elf*)
11866    archive_cmds_need_lc_CXX=no
11867    ;;
11868  freebsd* | dragonfly*)
11869    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11870    # conventions
11871    ld_shlibs_CXX=yes
11872    ;;
11873  gnu*)
11874    ;;
11875  hpux9*)
11876    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11877    hardcode_libdir_separator_CXX=:
11878    export_dynamic_flag_spec_CXX='${wl}-E'
11879    hardcode_direct_CXX=yes
11880    hardcode_minus_L_CXX=yes # Not in the search PATH,
11881				# but as the default
11882				# location of the library.
11883
11884    case $cc_basename in
11885    CC*)
11886      # FIXME: insert proper C++ library support
11887      ld_shlibs_CXX=no
11888      ;;
11889    aCC*)
11890      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'
11891      # Commands to make compiler produce verbose output that lists
11892      # what "hidden" libraries, object files and flags are used when
11893      # linking a shared library.
11894      #
11895      # There doesn't appear to be a way to prevent this compiler from
11896      # explicitly linking system object files so we need to strip them
11897      # from the output so that they don't get included in the library
11898      # dependencies.
11899      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'
11900      ;;
11901    *)
11902      if test "$GXX" = yes; then
11903        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'
11904      else
11905        # FIXME: insert proper C++ library support
11906        ld_shlibs_CXX=no
11907      fi
11908      ;;
11909    esac
11910    ;;
11911  hpux10*|hpux11*)
11912    if test $with_gnu_ld = no; then
11913      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11914      hardcode_libdir_separator_CXX=:
11915
11916      case $host_cpu in
11917      hppa*64*|ia64*) ;;
11918      *)
11919	export_dynamic_flag_spec_CXX='${wl}-E'
11920        ;;
11921      esac
11922    fi
11923    case $host_cpu in
11924    hppa*64*|ia64*)
11925      hardcode_direct_CXX=no
11926      hardcode_shlibpath_var_CXX=no
11927      ;;
11928    *)
11929      hardcode_direct_CXX=yes
11930      hardcode_minus_L_CXX=yes # Not in the search PATH,
11931					      # but as the default
11932					      # location of the library.
11933      ;;
11934    esac
11935
11936    case $cc_basename in
11937      CC*)
11938	# FIXME: insert proper C++ library support
11939	ld_shlibs_CXX=no
11940	;;
11941      aCC*)
11942	case $host_cpu in
11943	hppa*64*)
11944	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945	  ;;
11946	ia64*)
11947	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11948	  ;;
11949	*)
11950	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11951	  ;;
11952	esac
11953	# Commands to make compiler produce verbose output that lists
11954	# what "hidden" libraries, object files and flags are used when
11955	# linking a shared library.
11956	#
11957	# There doesn't appear to be a way to prevent this compiler from
11958	# explicitly linking system object files so we need to strip them
11959	# from the output so that they don't get included in the library
11960	# dependencies.
11961	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'
11962	;;
11963      *)
11964	if test "$GXX" = yes; then
11965	  if test $with_gnu_ld = no; then
11966	    case $host_cpu in
11967	    hppa*64*)
11968	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11969	      ;;
11970	    ia64*)
11971	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972	      ;;
11973	    *)
11974	      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'
11975	      ;;
11976	    esac
11977	  fi
11978	else
11979	  # FIXME: insert proper C++ library support
11980	  ld_shlibs_CXX=no
11981	fi
11982	;;
11983    esac
11984    ;;
11985  interix[3-9]*)
11986    hardcode_direct_CXX=no
11987    hardcode_shlibpath_var_CXX=no
11988    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11989    export_dynamic_flag_spec_CXX='${wl}-E'
11990    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11991    # Instead, shared libraries are loaded at an image base (0x10000000 by
11992    # default) and relocated if they conflict, which is a slow very memory
11993    # consuming and fragmenting process.  To avoid this, we pick a random,
11994    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11995    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11996    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'
11997    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'
11998    ;;
11999  irix5* | irix6*)
12000    case $cc_basename in
12001      CC*)
12002	# SGI C++
12003	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'
12004
12005	# Archives containing C++ object files must be created using
12006	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12007	# necessary to make sure instantiated templates are included
12008	# in the archive.
12009	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12010	;;
12011      *)
12012	if test "$GXX" = yes; then
12013	  if test "$with_gnu_ld" = no; then
12014	    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'
12015	  else
12016	    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'
12017	  fi
12018	fi
12019	link_all_deplibs_CXX=yes
12020	;;
12021    esac
12022    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023    hardcode_libdir_separator_CXX=:
12024    ;;
12025  linux* | k*bsd*-gnu)
12026    case $cc_basename in
12027      KCC*)
12028	# Kuck and Associates, Inc. (KAI) C++ Compiler
12029
12030	# KCC will only create a shared library if the output file
12031	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12032	# to its proper name (with version) after linking.
12033	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'
12034	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'
12035	# Commands to make compiler produce verbose output that lists
12036	# what "hidden" libraries, object files and flags are used when
12037	# linking a shared library.
12038	#
12039	# There doesn't appear to be a way to prevent this compiler from
12040	# explicitly linking system object files so we need to strip them
12041	# from the output so that they don't get included in the library
12042	# dependencies.
12043	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'
12044
12045	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12046	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12047
12048	# Archives containing C++ object files must be created using
12049	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12050	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12051	;;
12052      icpc*)
12053	# Intel C++
12054	with_gnu_ld=yes
12055	# version 8.0 and above of icpc choke on multiply defined symbols
12056	# if we add $predep_objects and $postdep_objects, however 7.1 and
12057	# earlier do not add the objects themselves.
12058	case `$CC -V 2>&1` in
12059	*"Version 7."*)
12060  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061  	  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'
12062	  ;;
12063	*)  # Version 8.0 or newer
12064	  tmp_idyn=
12065	  case $host_cpu in
12066	    ia64*) tmp_idyn=' -i_dynamic';;
12067	  esac
12068  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12069	  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'
12070	  ;;
12071	esac
12072	archive_cmds_need_lc_CXX=no
12073	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12075	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12076	;;
12077      pgCC* | pgcpp*)
12078        # Portland Group C++ compiler
12079	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12080  	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'
12081
12082	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12083	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12084	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'
12085        ;;
12086      cxx*)
12087	# Compaq C++
12088	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12089	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'
12090
12091	runpath_var=LD_RUN_PATH
12092	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12093	hardcode_libdir_separator_CXX=:
12094
12095	# Commands to make compiler produce verbose output that lists
12096	# what "hidden" libraries, object files and flags are used when
12097	# linking a shared library.
12098	#
12099	# There doesn't appear to be a way to prevent this compiler from
12100	# explicitly linking system object files so we need to strip them
12101	# from the output so that they don't get included in the library
12102	# dependencies.
12103	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'
12104	;;
12105      *)
12106	case `$CC -V 2>&1 | sed 5q` in
12107	*Sun\ C*)
12108	  # Sun C++ 5.9
12109	  no_undefined_flag_CXX=' -zdefs'
12110	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12111	  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'
12112	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12113	  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'
12114
12115	  # Not sure whether something based on
12116	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12117	  # would be better.
12118	  output_verbose_link_cmd='echo'
12119
12120	  # Archives containing C++ object files must be created using
12121	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12122	  # necessary to make sure instantiated templates are included
12123	  # in the archive.
12124	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12125	  ;;
12126	esac
12127	;;
12128    esac
12129    ;;
12130  lynxos*)
12131    # FIXME: insert proper C++ library support
12132    ld_shlibs_CXX=no
12133    ;;
12134  m88k*)
12135    # FIXME: insert proper C++ library support
12136    ld_shlibs_CXX=no
12137    ;;
12138  mvs*)
12139    case $cc_basename in
12140      cxx*)
12141	# FIXME: insert proper C++ library support
12142	ld_shlibs_CXX=no
12143	;;
12144      *)
12145	# FIXME: insert proper C++ library support
12146	ld_shlibs_CXX=no
12147	;;
12148    esac
12149    ;;
12150  netbsd*)
12151    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12152      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12153      wlarc=
12154      hardcode_libdir_flag_spec_CXX='-R$libdir'
12155      hardcode_direct_CXX=yes
12156      hardcode_shlibpath_var_CXX=no
12157    fi
12158    # Workaround some broken pre-1.5 toolchains
12159    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12160    ;;
12161  openbsd2*)
12162    # C++ shared libraries are fairly broken
12163    ld_shlibs_CXX=no
12164    ;;
12165  openbsd*)
12166    if test -f /usr/libexec/ld.so; then
12167      hardcode_direct_CXX=yes
12168      hardcode_shlibpath_var_CXX=no
12169      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12170      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12171      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12172	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12173	export_dynamic_flag_spec_CXX='${wl}-E'
12174	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12175      fi
12176      output_verbose_link_cmd='echo'
12177    else
12178      ld_shlibs_CXX=no
12179    fi
12180    ;;
12181  osf3*)
12182    case $cc_basename in
12183      KCC*)
12184	# Kuck and Associates, Inc. (KAI) C++ Compiler
12185
12186	# KCC will only create a shared library if the output file
12187	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12188	# to its proper name (with version) after linking.
12189	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'
12190
12191	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12192	hardcode_libdir_separator_CXX=:
12193
12194	# Archives containing C++ object files must be created using
12195	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12196	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12197
12198	;;
12199      RCC*)
12200	# Rational C++ 2.4.1
12201	# FIXME: insert proper C++ library support
12202	ld_shlibs_CXX=no
12203	;;
12204      cxx*)
12205	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12206	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'
12207
12208	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12209	hardcode_libdir_separator_CXX=:
12210
12211	# Commands to make compiler produce verbose output that lists
12212	# what "hidden" libraries, object files and flags are used when
12213	# linking a shared library.
12214	#
12215	# There doesn't appear to be a way to prevent this compiler from
12216	# explicitly linking system object files so we need to strip them
12217	# from the output so that they don't get included in the library
12218	# dependencies.
12219	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'
12220	;;
12221      *)
12222	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224	  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'
12225
12226	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227	  hardcode_libdir_separator_CXX=:
12228
12229	  # Commands to make compiler produce verbose output that lists
12230	  # what "hidden" libraries, object files and flags are used when
12231	  # linking a shared library.
12232	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
12234	else
12235	  # FIXME: insert proper C++ library support
12236	  ld_shlibs_CXX=no
12237	fi
12238	;;
12239    esac
12240    ;;
12241  osf4* | osf5*)
12242    case $cc_basename in
12243      KCC*)
12244	# Kuck and Associates, Inc. (KAI) C++ Compiler
12245
12246	# KCC will only create a shared library if the output file
12247	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12248	# to its proper name (with version) after linking.
12249	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'
12250
12251	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12252	hardcode_libdir_separator_CXX=:
12253
12254	# Archives containing C++ object files must be created using
12255	# the KAI C++ compiler.
12256	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12257	;;
12258      RCC*)
12259	# Rational C++ 2.4.1
12260	# FIXME: insert proper C++ library support
12261	ld_shlibs_CXX=no
12262	;;
12263      cxx*)
12264	allow_undefined_flag_CXX=' -expect_unresolved \*'
12265	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'
12266	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12267	  echo "-hidden">> $lib.exp~
12268	  $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~
12269	  $rm $lib.exp'
12270
12271	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12272	hardcode_libdir_separator_CXX=:
12273
12274	# Commands to make compiler produce verbose output that lists
12275	# what "hidden" libraries, object files and flags are used when
12276	# linking a shared library.
12277	#
12278	# There doesn't appear to be a way to prevent this compiler from
12279	# explicitly linking system object files so we need to strip them
12280	# from the output so that they don't get included in the library
12281	# dependencies.
12282	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'
12283	;;
12284      *)
12285	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12286	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12287	 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'
12288
12289	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12290	  hardcode_libdir_separator_CXX=:
12291
12292	  # Commands to make compiler produce verbose output that lists
12293	  # what "hidden" libraries, object files and flags are used when
12294	  # linking a shared library.
12295	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12296
12297	else
12298	  # FIXME: insert proper C++ library support
12299	  ld_shlibs_CXX=no
12300	fi
12301	;;
12302    esac
12303    ;;
12304  psos*)
12305    # FIXME: insert proper C++ library support
12306    ld_shlibs_CXX=no
12307    ;;
12308  sunos4*)
12309    case $cc_basename in
12310      CC*)
12311	# Sun C++ 4.x
12312	# FIXME: insert proper C++ library support
12313	ld_shlibs_CXX=no
12314	;;
12315      lcc*)
12316	# Lucid
12317	# FIXME: insert proper C++ library support
12318	ld_shlibs_CXX=no
12319	;;
12320      *)
12321	# FIXME: insert proper C++ library support
12322	ld_shlibs_CXX=no
12323	;;
12324    esac
12325    ;;
12326  solaris*)
12327    case $cc_basename in
12328      CC*)
12329	# Sun C++ 4.2, 5.x and Centerline C++
12330        archive_cmds_need_lc_CXX=yes
12331	no_undefined_flag_CXX=' -zdefs'
12332	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12333	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12334	$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'
12335
12336	hardcode_libdir_flag_spec_CXX='-R$libdir'
12337	hardcode_shlibpath_var_CXX=no
12338	case $host_os in
12339	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12340	  *)
12341	    # The compiler driver will combine and reorder linker options,
12342	    # but understands `-z linker_flag'.
12343	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12344	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12345	    ;;
12346	esac
12347	link_all_deplibs_CXX=yes
12348
12349	output_verbose_link_cmd='echo'
12350
12351	# Archives containing C++ object files must be created using
12352	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12353	# necessary to make sure instantiated templates are included
12354	# in the archive.
12355	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12356	;;
12357      gcx*)
12358	# Green Hills C++ Compiler
12359	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360
12361	# The C++ compiler must be used to create the archive.
12362	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12363	;;
12364      *)
12365	# GNU C++ compiler with Solaris linker
12366	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12367	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12368	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12369	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12370	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12371		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12372
12373	    # Commands to make compiler produce verbose output that lists
12374	    # what "hidden" libraries, object files and flags are used when
12375	    # linking a shared library.
12376	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12377	  else
12378	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12379	    # platform.
12380	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12382		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383
12384	    # Commands to make compiler produce verbose output that lists
12385	    # what "hidden" libraries, object files and flags are used when
12386	    # linking a shared library.
12387	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12388	  fi
12389
12390	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12391	  case $host_os in
12392	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12393	  *)
12394	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12395	    ;;
12396	  esac
12397	fi
12398	;;
12399    esac
12400    ;;
12401  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12402    no_undefined_flag_CXX='${wl}-z,text'
12403    archive_cmds_need_lc_CXX=no
12404    hardcode_shlibpath_var_CXX=no
12405    runpath_var='LD_RUN_PATH'
12406
12407    case $cc_basename in
12408      CC*)
12409	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12411	;;
12412      *)
12413	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415	;;
12416    esac
12417    ;;
12418  sysv5* | sco3.2v5* | sco5v6*)
12419    # Note: We can NOT use -z defs as we might desire, because we do not
12420    # link with -lc, and that would cause any symbols used from libc to
12421    # always be unresolved, which means just about no library would
12422    # ever link correctly.  If we're not using GNU ld we use -z text
12423    # though, which does catch some bad symbols but isn't as heavy-handed
12424    # as -z defs.
12425    # For security reasons, it is highly recommended that you always
12426    # use absolute paths for naming shared libraries, and exclude the
12427    # DT_RUNPATH tag from executables and libraries.  But doing so
12428    # requires that you compile everything twice, which is a pain.
12429    # So that behaviour is only enabled if SCOABSPATH is set to a
12430    # non-empty value in the environment.  Most likely only useful for
12431    # creating official distributions of packages.
12432    # This is a hack until libtool officially supports absolute path
12433    # names for shared libraries.
12434    no_undefined_flag_CXX='${wl}-z,text'
12435    allow_undefined_flag_CXX='${wl}-z,nodefs'
12436    archive_cmds_need_lc_CXX=no
12437    hardcode_shlibpath_var_CXX=no
12438    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12439    hardcode_libdir_separator_CXX=':'
12440    link_all_deplibs_CXX=yes
12441    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12442    runpath_var='LD_RUN_PATH'
12443
12444    case $cc_basename in
12445      CC*)
12446	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12447	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12448	;;
12449      *)
12450	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12451	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12452	;;
12453    esac
12454    ;;
12455  tandem*)
12456    case $cc_basename in
12457      NCC*)
12458	# NonStop-UX NCC 3.20
12459	# FIXME: insert proper C++ library support
12460	ld_shlibs_CXX=no
12461	;;
12462      *)
12463	# FIXME: insert proper C++ library support
12464	ld_shlibs_CXX=no
12465	;;
12466    esac
12467    ;;
12468  vxworks*)
12469    # FIXME: insert proper C++ library support
12470    ld_shlibs_CXX=no
12471    ;;
12472  *)
12473    # FIXME: insert proper C++ library support
12474    ld_shlibs_CXX=no
12475    ;;
12476esac
12477{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12478$as_echo "$ld_shlibs_CXX" >&6; }
12479test "$ld_shlibs_CXX" = no && can_build_shared=no
12480
12481GCC_CXX="$GXX"
12482LD_CXX="$LD"
12483
12484cat > conftest.$ac_ext <<EOF
12485class Foo
12486{
12487public:
12488  Foo (void) { a = 0; }
12489private:
12490  int a;
12491};
12492EOF
12493
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495  (eval $ac_compile) 2>&5
12496  ac_status=$?
12497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498  (exit $ac_status); }; then
12499  # Parse the compiler output and extract the necessary
12500  # objects, libraries and library flags.
12501
12502  # Sentinel used to keep track of whether or not we are before
12503  # the conftest object file.
12504  pre_test_object_deps_done=no
12505
12506  # The `*' in the case matches for architectures that use `case' in
12507  # $output_verbose_cmd can trigger glob expansion during the loop
12508  # eval without this substitution.
12509  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12510
12511  for p in `eval $output_verbose_link_cmd`; do
12512    case $p in
12513
12514    -L* | -R* | -l*)
12515       # Some compilers place space between "-{L,R}" and the path.
12516       # Remove the space.
12517       if test $p = "-L" \
12518	  || test $p = "-R"; then
12519	 prev=$p
12520	 continue
12521       else
12522	 prev=
12523       fi
12524
12525       if test "$pre_test_object_deps_done" = no; then
12526	 case $p in
12527	 -L* | -R*)
12528	   # Internal compiler library paths should come after those
12529	   # provided the user.  The postdeps already come after the
12530	   # user supplied libs so there is no need to process them.
12531	   if test -z "$compiler_lib_search_path_CXX"; then
12532	     compiler_lib_search_path_CXX="${prev}${p}"
12533	   else
12534	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12535	   fi
12536	   ;;
12537	 # The "-l" case would never come before the object being
12538	 # linked, so don't bother handling this case.
12539	 esac
12540       else
12541	 if test -z "$postdeps_CXX"; then
12542	   postdeps_CXX="${prev}${p}"
12543	 else
12544	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12545	 fi
12546       fi
12547       ;;
12548
12549    *.$objext)
12550       # This assumes that the test object file only shows up
12551       # once in the compiler output.
12552       if test "$p" = "conftest.$objext"; then
12553	 pre_test_object_deps_done=yes
12554	 continue
12555       fi
12556
12557       if test "$pre_test_object_deps_done" = no; then
12558	 if test -z "$predep_objects_CXX"; then
12559	   predep_objects_CXX="$p"
12560	 else
12561	   predep_objects_CXX="$predep_objects_CXX $p"
12562	 fi
12563       else
12564	 if test -z "$postdep_objects_CXX"; then
12565	   postdep_objects_CXX="$p"
12566	 else
12567	   postdep_objects_CXX="$postdep_objects_CXX $p"
12568	 fi
12569       fi
12570       ;;
12571
12572    *) ;; # Ignore the rest.
12573
12574    esac
12575  done
12576
12577  # Clean up.
12578  rm -f a.out a.exe
12579else
12580  echo "libtool.m4: error: problem compiling CXX test program"
12581fi
12582
12583$rm -f confest.$objext
12584
12585compiler_lib_search_dirs_CXX=
12586if test -n "$compiler_lib_search_path_CXX"; then
12587  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12588fi
12589
12590# PORTME: override above test on systems where it is broken
12591case $host_os in
12592interix[3-9]*)
12593  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12594  # hack all around it, let's just trust "g++" to DTRT.
12595  predep_objects_CXX=
12596  postdep_objects_CXX=
12597  postdeps_CXX=
12598  ;;
12599
12600linux*)
12601  case `$CC -V 2>&1 | sed 5q` in
12602  *Sun\ C*)
12603    # Sun C++ 5.9
12604    #
12605    # The more standards-conforming stlport4 library is
12606    # incompatible with the Cstd library. Avoid specifying
12607    # it if it's in CXXFLAGS. Ignore libCrun as
12608    # -library=stlport4 depends on it.
12609    case " $CXX $CXXFLAGS " in
12610    *" -library=stlport4 "*)
12611      solaris_use_stlport4=yes
12612      ;;
12613    esac
12614    if test "$solaris_use_stlport4" != yes; then
12615      postdeps_CXX='-library=Cstd -library=Crun'
12616    fi
12617    ;;
12618  esac
12619  ;;
12620
12621solaris*)
12622  case $cc_basename in
12623  CC*)
12624    # The more standards-conforming stlport4 library is
12625    # incompatible with the Cstd library. Avoid specifying
12626    # it if it's in CXXFLAGS. Ignore libCrun as
12627    # -library=stlport4 depends on it.
12628    case " $CXX $CXXFLAGS " in
12629    *" -library=stlport4 "*)
12630      solaris_use_stlport4=yes
12631      ;;
12632    esac
12633
12634    # Adding this requires a known-good setup of shared libraries for
12635    # Sun compiler versions before 5.6, else PIC objects from an old
12636    # archive will be linked into the output, leading to subtle bugs.
12637    if test "$solaris_use_stlport4" != yes; then
12638      postdeps_CXX='-library=Cstd -library=Crun'
12639    fi
12640    ;;
12641  esac
12642  ;;
12643esac
12644
12645case " $postdeps_CXX " in
12646*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12647esac
12648
12649lt_prog_compiler_wl_CXX=
12650lt_prog_compiler_pic_CXX=
12651lt_prog_compiler_static_CXX=
12652
12653{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12654$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12655
12656  # C++ specific cases for pic, static, wl, etc.
12657  if test "$GXX" = yes; then
12658    lt_prog_compiler_wl_CXX='-Wl,'
12659    lt_prog_compiler_static_CXX='-static'
12660
12661    case $host_os in
12662    aix*)
12663      # All AIX code is PIC.
12664      if test "$host_cpu" = ia64; then
12665	# AIX 5 now supports IA64 processor
12666	lt_prog_compiler_static_CXX='-Bstatic'
12667      fi
12668      ;;
12669    amigaos*)
12670      # FIXME: we need at least 68020 code to build shared libraries, but
12671      # adding the `-m68020' flag to GCC prevents building anything better,
12672      # like `-m68040'.
12673      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12674      ;;
12675    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12676      # PIC is the default for these OSes.
12677      ;;
12678    mingw* | cygwin* | os2* | pw32*)
12679      # This hack is so that the source file can tell whether it is being
12680      # built for inclusion in a dll (and should export symbols for example).
12681      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12682      # (--disable-auto-import) libraries
12683      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12684      ;;
12685    darwin* | rhapsody*)
12686      # PIC is the default on this platform
12687      # Common symbols not allowed in MH_DYLIB files
12688      lt_prog_compiler_pic_CXX='-fno-common'
12689      ;;
12690    *djgpp*)
12691      # DJGPP does not support shared libraries at all
12692      lt_prog_compiler_pic_CXX=
12693      ;;
12694    interix[3-9]*)
12695      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12696      # Instead, we relocate shared libraries at runtime.
12697      ;;
12698    sysv4*MP*)
12699      if test -d /usr/nec; then
12700	lt_prog_compiler_pic_CXX=-Kconform_pic
12701      fi
12702      ;;
12703    hpux*)
12704      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12705      # not for PA HP-UX.
12706      case $host_cpu in
12707      hppa*64*|ia64*)
12708	;;
12709      *)
12710	lt_prog_compiler_pic_CXX='-fPIC'
12711	;;
12712      esac
12713      ;;
12714    *)
12715      lt_prog_compiler_pic_CXX='-fPIC'
12716      ;;
12717    esac
12718  else
12719    case $host_os in
12720      aix[4-9]*)
12721	# All AIX code is PIC.
12722	if test "$host_cpu" = ia64; then
12723	  # AIX 5 now supports IA64 processor
12724	  lt_prog_compiler_static_CXX='-Bstatic'
12725	else
12726	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12727	fi
12728	;;
12729      chorus*)
12730	case $cc_basename in
12731	cxch68*)
12732	  # Green Hills C++ Compiler
12733	  # _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"
12734	  ;;
12735	esac
12736	;;
12737       darwin*)
12738         # PIC is the default on this platform
12739         # Common symbols not allowed in MH_DYLIB files
12740         case $cc_basename in
12741           xlc*)
12742           lt_prog_compiler_pic_CXX='-qnocommon'
12743           lt_prog_compiler_wl_CXX='-Wl,'
12744           ;;
12745         esac
12746       ;;
12747      dgux*)
12748	case $cc_basename in
12749	  ec++*)
12750	    lt_prog_compiler_pic_CXX='-KPIC'
12751	    ;;
12752	  ghcx*)
12753	    # Green Hills C++ Compiler
12754	    lt_prog_compiler_pic_CXX='-pic'
12755	    ;;
12756	  *)
12757	    ;;
12758	esac
12759	;;
12760      freebsd* | dragonfly*)
12761	# FreeBSD uses GNU C++
12762	;;
12763      hpux9* | hpux10* | hpux11*)
12764	case $cc_basename in
12765	  CC*)
12766	    lt_prog_compiler_wl_CXX='-Wl,'
12767	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12768	    if test "$host_cpu" != ia64; then
12769	      lt_prog_compiler_pic_CXX='+Z'
12770	    fi
12771	    ;;
12772	  aCC*)
12773	    lt_prog_compiler_wl_CXX='-Wl,'
12774	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12775	    case $host_cpu in
12776	    hppa*64*|ia64*)
12777	      # +Z the default
12778	      ;;
12779	    *)
12780	      lt_prog_compiler_pic_CXX='+Z'
12781	      ;;
12782	    esac
12783	    ;;
12784	  *)
12785	    ;;
12786	esac
12787	;;
12788      interix*)
12789	# This is c89, which is MS Visual C++ (no shared libs)
12790	# Anyone wants to do a port?
12791	;;
12792      irix5* | irix6* | nonstopux*)
12793	case $cc_basename in
12794	  CC*)
12795	    lt_prog_compiler_wl_CXX='-Wl,'
12796	    lt_prog_compiler_static_CXX='-non_shared'
12797	    # CC pic flag -KPIC is the default.
12798	    ;;
12799	  *)
12800	    ;;
12801	esac
12802	;;
12803      linux* | k*bsd*-gnu)
12804	case $cc_basename in
12805	  KCC*)
12806	    # KAI C++ Compiler
12807	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12808	    lt_prog_compiler_pic_CXX='-fPIC'
12809	    ;;
12810	  icpc* | ecpc*)
12811	    # Intel C++
12812	    lt_prog_compiler_wl_CXX='-Wl,'
12813	    lt_prog_compiler_pic_CXX='-KPIC'
12814	    lt_prog_compiler_static_CXX='-static'
12815	    ;;
12816	  pgCC* | pgcpp*)
12817	    # Portland Group C++ compiler.
12818	    lt_prog_compiler_wl_CXX='-Wl,'
12819	    lt_prog_compiler_pic_CXX='-fpic'
12820	    lt_prog_compiler_static_CXX='-Bstatic'
12821	    ;;
12822	  cxx*)
12823	    # Compaq C++
12824	    # Make sure the PIC flag is empty.  It appears that all Alpha
12825	    # Linux and Compaq Tru64 Unix objects are PIC.
12826	    lt_prog_compiler_pic_CXX=
12827	    lt_prog_compiler_static_CXX='-non_shared'
12828	    ;;
12829	  *)
12830	    case `$CC -V 2>&1 | sed 5q` in
12831	    *Sun\ C*)
12832	      # Sun C++ 5.9
12833	      lt_prog_compiler_pic_CXX='-KPIC'
12834	      lt_prog_compiler_static_CXX='-Bstatic'
12835	      lt_prog_compiler_wl_CXX='-Qoption ld '
12836	      ;;
12837	    esac
12838	    ;;
12839	esac
12840	;;
12841      lynxos*)
12842	;;
12843      m88k*)
12844	;;
12845      mvs*)
12846	case $cc_basename in
12847	  cxx*)
12848	    lt_prog_compiler_pic_CXX='-W c,exportall'
12849	    ;;
12850	  *)
12851	    ;;
12852	esac
12853	;;
12854      netbsd*)
12855	;;
12856      osf3* | osf4* | osf5*)
12857	case $cc_basename in
12858	  KCC*)
12859	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12860	    ;;
12861	  RCC*)
12862	    # Rational C++ 2.4.1
12863	    lt_prog_compiler_pic_CXX='-pic'
12864	    ;;
12865	  cxx*)
12866	    # Digital/Compaq C++
12867	    lt_prog_compiler_wl_CXX='-Wl,'
12868	    # Make sure the PIC flag is empty.  It appears that all Alpha
12869	    # Linux and Compaq Tru64 Unix objects are PIC.
12870	    lt_prog_compiler_pic_CXX=
12871	    lt_prog_compiler_static_CXX='-non_shared'
12872	    ;;
12873	  *)
12874	    ;;
12875	esac
12876	;;
12877      psos*)
12878	;;
12879      solaris*)
12880	case $cc_basename in
12881	  CC*)
12882	    # Sun C++ 4.2, 5.x and Centerline C++
12883	    lt_prog_compiler_pic_CXX='-KPIC'
12884	    lt_prog_compiler_static_CXX='-Bstatic'
12885	    lt_prog_compiler_wl_CXX='-Qoption ld '
12886	    ;;
12887	  gcx*)
12888	    # Green Hills C++ Compiler
12889	    lt_prog_compiler_pic_CXX='-PIC'
12890	    ;;
12891	  *)
12892	    ;;
12893	esac
12894	;;
12895      sunos4*)
12896	case $cc_basename in
12897	  CC*)
12898	    # Sun C++ 4.x
12899	    lt_prog_compiler_pic_CXX='-pic'
12900	    lt_prog_compiler_static_CXX='-Bstatic'
12901	    ;;
12902	  lcc*)
12903	    # Lucid
12904	    lt_prog_compiler_pic_CXX='-pic'
12905	    ;;
12906	  *)
12907	    ;;
12908	esac
12909	;;
12910      tandem*)
12911	case $cc_basename in
12912	  NCC*)
12913	    # NonStop-UX NCC 3.20
12914	    lt_prog_compiler_pic_CXX='-KPIC'
12915	    ;;
12916	  *)
12917	    ;;
12918	esac
12919	;;
12920      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12921	case $cc_basename in
12922	  CC*)
12923	    lt_prog_compiler_wl_CXX='-Wl,'
12924	    lt_prog_compiler_pic_CXX='-KPIC'
12925	    lt_prog_compiler_static_CXX='-Bstatic'
12926	    ;;
12927	esac
12928	;;
12929      vxworks*)
12930	;;
12931      *)
12932	lt_prog_compiler_can_build_shared_CXX=no
12933	;;
12934    esac
12935  fi
12936
12937{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12938$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12939
12940#
12941# Check to make sure the PIC flag actually works.
12942#
12943if test -n "$lt_prog_compiler_pic_CXX"; then
12944
12945{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12946$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12947if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12948  $as_echo_n "(cached) " >&6
12949else
12950  lt_cv_prog_compiler_pic_works_CXX=no
12951  ac_outfile=conftest.$ac_objext
12952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12953   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12954   # Insert the option either (1) after the last *FLAGS variable, or
12955   # (2) before a word containing "conftest.", or (3) at the end.
12956   # Note that $ac_compile itself does not contain backslashes and begins
12957   # with a dollar sign (not a hyphen), so the echo should work correctly.
12958   # The option is referenced via a variable to avoid confusing sed.
12959   lt_compile=`echo "$ac_compile" | $SED \
12960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12962   -e 's:$: $lt_compiler_flag:'`
12963   (eval echo "\"\$as_me:12963: $lt_compile\"" >&5)
12964   (eval "$lt_compile" 2>conftest.err)
12965   ac_status=$?
12966   cat conftest.err >&5
12967   echo "$as_me:12967: \$? = $ac_status" >&5
12968   if (exit $ac_status) && test -s "$ac_outfile"; then
12969     # The compiler can only warn and ignore the option if not recognized
12970     # So say no if there are warnings other than the usual output.
12971     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12972     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12973     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12974       lt_cv_prog_compiler_pic_works_CXX=yes
12975     fi
12976   fi
12977   $rm conftest*
12978
12979fi
12980{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12981$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12982
12983if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12984    case $lt_prog_compiler_pic_CXX in
12985     "" | " "*) ;;
12986     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12987     esac
12988else
12989    lt_prog_compiler_pic_CXX=
12990     lt_prog_compiler_can_build_shared_CXX=no
12991fi
12992
12993fi
12994case $host_os in
12995  # For platforms which do not support PIC, -DPIC is meaningless:
12996  *djgpp*)
12997    lt_prog_compiler_pic_CXX=
12998    ;;
12999  *)
13000    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13001    ;;
13002esac
13003
13004#
13005# Check to make sure the static flag actually works.
13006#
13007wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13008{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13009$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13010if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13011  $as_echo_n "(cached) " >&6
13012else
13013  lt_cv_prog_compiler_static_works_CXX=no
13014   save_LDFLAGS="$LDFLAGS"
13015   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13016   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13017   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13018     # The linker can only warn and ignore the option if not recognized
13019     # So say no if there are warnings
13020     if test -s conftest.err; then
13021       # Append any errors to the config.log.
13022       cat conftest.err 1>&5
13023       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13024       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13025       if diff conftest.exp conftest.er2 >/dev/null; then
13026         lt_cv_prog_compiler_static_works_CXX=yes
13027       fi
13028     else
13029       lt_cv_prog_compiler_static_works_CXX=yes
13030     fi
13031   fi
13032   $rm -r conftest*
13033   LDFLAGS="$save_LDFLAGS"
13034
13035fi
13036{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13037$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13038
13039if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13040    :
13041else
13042    lt_prog_compiler_static_CXX=
13043fi
13044
13045
13046{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13048if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13049  $as_echo_n "(cached) " >&6
13050else
13051  lt_cv_prog_compiler_c_o_CXX=no
13052   $rm -r conftest 2>/dev/null
13053   mkdir conftest
13054   cd conftest
13055   mkdir out
13056   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13057
13058   lt_compiler_flag="-o out/conftest2.$ac_objext"
13059   # Insert the option either (1) after the last *FLAGS variable, or
13060   # (2) before a word containing "conftest.", or (3) at the end.
13061   # Note that $ac_compile itself does not contain backslashes and begins
13062   # with a dollar sign (not a hyphen), so the echo should work correctly.
13063   lt_compile=`echo "$ac_compile" | $SED \
13064   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13065   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13066   -e 's:$: $lt_compiler_flag:'`
13067   (eval echo "\"\$as_me:13067: $lt_compile\"" >&5)
13068   (eval "$lt_compile" 2>out/conftest.err)
13069   ac_status=$?
13070   cat out/conftest.err >&5
13071   echo "$as_me:13071: \$? = $ac_status" >&5
13072   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13073   then
13074     # The compiler can only warn and ignore the option if not recognized
13075     # So say no if there are warnings
13076     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13077     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13078     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13079       lt_cv_prog_compiler_c_o_CXX=yes
13080     fi
13081   fi
13082   chmod u+w . 2>&5
13083   $rm conftest*
13084   # SGI C++ compiler will create directory out/ii_files/ for
13085   # template instantiation
13086   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13087   $rm out/* && rmdir out
13088   cd ..
13089   rmdir conftest
13090   $rm conftest*
13091
13092fi
13093{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13094$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13095
13096
13097hard_links="nottested"
13098if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13099  # do not overwrite the value of need_locks provided by the user
13100  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101$as_echo_n "checking if we can lock with hard links... " >&6; }
13102  hard_links=yes
13103  $rm conftest*
13104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105  touch conftest.a
13106  ln conftest.a conftest.b 2>&5 || hard_links=no
13107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13109$as_echo "$hard_links" >&6; }
13110  if test "$hard_links" = no; then
13111    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13113    need_locks=warn
13114  fi
13115else
13116  need_locks=no
13117fi
13118
13119{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13121
13122  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123  case $host_os in
13124  aix[4-9]*)
13125    # If we're using GNU nm, then we don't want the "-C" option.
13126    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13127    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13128      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'
13129    else
13130      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'
13131    fi
13132    ;;
13133  pw32*)
13134    export_symbols_cmds_CXX="$ltdll_cmds"
13135  ;;
13136  cygwin* | mingw*)
13137    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'
13138  ;;
13139  *)
13140    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13141  ;;
13142  esac
13143  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13144
13145{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13146$as_echo "$ld_shlibs_CXX" >&6; }
13147test "$ld_shlibs_CXX" = no && can_build_shared=no
13148
13149#
13150# Do we need to explicitly link libc?
13151#
13152case "x$archive_cmds_need_lc_CXX" in
13153x|xyes)
13154  # Assume -lc should be added
13155  archive_cmds_need_lc_CXX=yes
13156
13157  if test "$enable_shared" = yes && test "$GCC" = yes; then
13158    case $archive_cmds_CXX in
13159    *'~'*)
13160      # FIXME: we may have to deal with multi-command sequences.
13161      ;;
13162    '$CC '*)
13163      # Test whether the compiler implicitly links with -lc since on some
13164      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13165      # to ld, don't add -lc before -lgcc.
13166      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13167$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13168      $rm conftest*
13169      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13170
13171      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172  (eval $ac_compile) 2>&5
13173  ac_status=$?
13174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175  (exit $ac_status); } 2>conftest.err; then
13176        soname=conftest
13177        lib=conftest
13178        libobjs=conftest.$ac_objext
13179        deplibs=
13180        wl=$lt_prog_compiler_wl_CXX
13181	pic_flag=$lt_prog_compiler_pic_CXX
13182        compiler_flags=-v
13183        linker_flags=-v
13184        verstring=
13185        output_objdir=.
13186        libname=conftest
13187        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13188        allow_undefined_flag_CXX=
13189        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13190  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13191  ac_status=$?
13192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193  (exit $ac_status); }
13194        then
13195	  archive_cmds_need_lc_CXX=no
13196        else
13197	  archive_cmds_need_lc_CXX=yes
13198        fi
13199        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13200      else
13201        cat conftest.err 1>&5
13202      fi
13203      $rm conftest*
13204      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13205$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13206      ;;
13207    esac
13208  fi
13209  ;;
13210esac
13211
13212{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13213$as_echo_n "checking dynamic linker characteristics... " >&6; }
13214library_names_spec=
13215libname_spec='lib$name'
13216soname_spec=
13217shrext_cmds=".so"
13218postinstall_cmds=
13219postuninstall_cmds=
13220finish_cmds=
13221finish_eval=
13222shlibpath_var=
13223shlibpath_overrides_runpath=unknown
13224version_type=none
13225dynamic_linker="$host_os ld.so"
13226sys_lib_dlsearch_path_spec="/lib /usr/lib"
13227
13228need_lib_prefix=unknown
13229hardcode_into_libs=no
13230
13231# when you set need_version to no, make sure it does not cause -set_version
13232# flags to be left without arguments
13233need_version=unknown
13234
13235case $host_os in
13236aix3*)
13237  version_type=linux
13238  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13239  shlibpath_var=LIBPATH
13240
13241  # AIX 3 has no versioning support, so we append a major version to the name.
13242  soname_spec='${libname}${release}${shared_ext}$major'
13243  ;;
13244
13245aix[4-9]*)
13246  version_type=linux
13247  need_lib_prefix=no
13248  need_version=no
13249  hardcode_into_libs=yes
13250  if test "$host_cpu" = ia64; then
13251    # AIX 5 supports IA64
13252    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13253    shlibpath_var=LD_LIBRARY_PATH
13254  else
13255    # With GCC up to 2.95.x, collect2 would create an import file
13256    # for dependence libraries.  The import file would start with
13257    # the line `#! .'.  This would cause the generated library to
13258    # depend on `.', always an invalid library.  This was fixed in
13259    # development snapshots of GCC prior to 3.0.
13260    case $host_os in
13261      aix4 | aix4.[01] | aix4.[01].*)
13262      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13263	   echo ' yes '
13264	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13265	:
13266      else
13267	can_build_shared=no
13268      fi
13269      ;;
13270    esac
13271    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13272    # soname into executable. Probably we can add versioning support to
13273    # collect2, so additional links can be useful in future.
13274    if test "$aix_use_runtimelinking" = yes; then
13275      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13276      # instead of lib<name>.a to let people know that these are not
13277      # typical AIX shared libraries.
13278      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279    else
13280      # We preserve .a as extension for shared libraries through AIX4.2
13281      # and later when we are not doing run time linking.
13282      library_names_spec='${libname}${release}.a $libname.a'
13283      soname_spec='${libname}${release}${shared_ext}$major'
13284    fi
13285    shlibpath_var=LIBPATH
13286  fi
13287  ;;
13288
13289amigaos*)
13290  library_names_spec='$libname.ixlibrary $libname.a'
13291  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13292  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'
13293  ;;
13294
13295beos*)
13296  library_names_spec='${libname}${shared_ext}'
13297  dynamic_linker="$host_os ld.so"
13298  shlibpath_var=LIBRARY_PATH
13299  ;;
13300
13301bsdi[45]*)
13302  version_type=linux
13303  need_version=no
13304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305  soname_spec='${libname}${release}${shared_ext}$major'
13306  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13307  shlibpath_var=LD_LIBRARY_PATH
13308  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13309  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13310  # the default ld.so.conf also contains /usr/contrib/lib and
13311  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13312  # libtool to hard-code these into programs
13313  ;;
13314
13315cygwin* | mingw* | pw32*)
13316  version_type=windows
13317  shrext_cmds=".dll"
13318  need_version=no
13319  need_lib_prefix=no
13320
13321  case $GCC,$host_os in
13322  yes,cygwin* | yes,mingw* | yes,pw32*)
13323    library_names_spec='$libname.dll.a'
13324    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13325    postinstall_cmds='base_file=`basename \${file}`~
13326      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13327      dldir=$destdir/`dirname \$dlpath`~
13328      test -d \$dldir || mkdir -p \$dldir~
13329      $install_prog $dir/$dlname \$dldir/$dlname~
13330      chmod a+x \$dldir/$dlname'
13331    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13332      dlpath=$dir/\$dldll~
13333       $rm \$dlpath'
13334    shlibpath_overrides_runpath=yes
13335
13336    case $host_os in
13337    cygwin*)
13338      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13339      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13341      ;;
13342    mingw*)
13343      # MinGW DLLs use traditional 'lib' prefix
13344      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13345      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13346      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13347        # It is most probably a Windows format PATH printed by
13348        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13349        # path with ; separators, and with drive letters. We can handle the
13350        # drive letters (cygwin fileutils understands them), so leave them,
13351        # especially as we might pass files found there to a mingw objdump,
13352        # which wouldn't understand a cygwinified path. Ahh.
13353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13354      else
13355        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13356      fi
13357      ;;
13358    pw32*)
13359      # pw32 DLLs use 'pw' prefix rather than 'lib'
13360      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13361      ;;
13362    esac
13363    ;;
13364
13365  *)
13366    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13367    ;;
13368  esac
13369  dynamic_linker='Win32 ld.exe'
13370  # FIXME: first we should search . and the directory the executable is in
13371  shlibpath_var=PATH
13372  ;;
13373
13374darwin* | rhapsody*)
13375  dynamic_linker="$host_os dyld"
13376  version_type=darwin
13377  need_lib_prefix=no
13378  need_version=no
13379  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13380  soname_spec='${libname}${release}${major}$shared_ext'
13381  shlibpath_overrides_runpath=yes
13382  shlibpath_var=DYLD_LIBRARY_PATH
13383  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13384
13385  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13386  ;;
13387
13388dgux*)
13389  version_type=linux
13390  need_lib_prefix=no
13391  need_version=no
13392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13393  soname_spec='${libname}${release}${shared_ext}$major'
13394  shlibpath_var=LD_LIBRARY_PATH
13395  ;;
13396
13397freebsd1*)
13398  dynamic_linker=no
13399  ;;
13400
13401freebsd* | dragonfly*)
13402  # DragonFly does not have aout.  When/if they implement a new
13403  # versioning mechanism, adjust this.
13404  if test -x /usr/bin/objformat; then
13405    objformat=`/usr/bin/objformat`
13406  else
13407    case $host_os in
13408    freebsd[123]*) objformat=aout ;;
13409    *) objformat=elf ;;
13410    esac
13411  fi
13412  version_type=freebsd-$objformat
13413  case $version_type in
13414    freebsd-elf*)
13415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13416      need_version=no
13417      need_lib_prefix=no
13418      ;;
13419    freebsd-*)
13420      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13421      need_version=yes
13422      ;;
13423  esac
13424  shlibpath_var=LD_LIBRARY_PATH
13425  case $host_os in
13426  freebsd2*)
13427    shlibpath_overrides_runpath=yes
13428    ;;
13429  freebsd3.[01]* | freebsdelf3.[01]*)
13430    shlibpath_overrides_runpath=yes
13431    hardcode_into_libs=yes
13432    ;;
13433  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13434  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13435    shlibpath_overrides_runpath=no
13436    hardcode_into_libs=yes
13437    ;;
13438  *) # from 4.6 on, and DragonFly
13439    shlibpath_overrides_runpath=yes
13440    hardcode_into_libs=yes
13441    ;;
13442  esac
13443  ;;
13444
13445gnu*)
13446  version_type=linux
13447  need_lib_prefix=no
13448  need_version=no
13449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13450  soname_spec='${libname}${release}${shared_ext}$major'
13451  shlibpath_var=LD_LIBRARY_PATH
13452  hardcode_into_libs=yes
13453  ;;
13454
13455hpux9* | hpux10* | hpux11*)
13456  # Give a soname corresponding to the major version so that dld.sl refuses to
13457  # link against other versions.
13458  version_type=sunos
13459  need_lib_prefix=no
13460  need_version=no
13461  case $host_cpu in
13462  ia64*)
13463    shrext_cmds='.so'
13464    hardcode_into_libs=yes
13465    dynamic_linker="$host_os dld.so"
13466    shlibpath_var=LD_LIBRARY_PATH
13467    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469    soname_spec='${libname}${release}${shared_ext}$major'
13470    if test "X$HPUX_IA64_MODE" = X32; then
13471      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13472    else
13473      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13474    fi
13475    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476    ;;
13477   hppa*64*)
13478     shrext_cmds='.sl'
13479     hardcode_into_libs=yes
13480     dynamic_linker="$host_os dld.sl"
13481     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484     soname_spec='${libname}${release}${shared_ext}$major'
13485     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13486     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13487     ;;
13488   *)
13489    shrext_cmds='.sl'
13490    dynamic_linker="$host_os dld.sl"
13491    shlibpath_var=SHLIB_PATH
13492    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494    soname_spec='${libname}${release}${shared_ext}$major'
13495    ;;
13496  esac
13497  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13498  postinstall_cmds='chmod 555 $lib'
13499  ;;
13500
13501interix[3-9]*)
13502  version_type=linux
13503  need_lib_prefix=no
13504  need_version=no
13505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13506  soname_spec='${libname}${release}${shared_ext}$major'
13507  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13508  shlibpath_var=LD_LIBRARY_PATH
13509  shlibpath_overrides_runpath=no
13510  hardcode_into_libs=yes
13511  ;;
13512
13513irix5* | irix6* | nonstopux*)
13514  case $host_os in
13515    nonstopux*) version_type=nonstopux ;;
13516    *)
13517	if test "$lt_cv_prog_gnu_ld" = yes; then
13518		version_type=linux
13519	else
13520		version_type=irix
13521	fi ;;
13522  esac
13523  need_lib_prefix=no
13524  need_version=no
13525  soname_spec='${libname}${release}${shared_ext}$major'
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13527  case $host_os in
13528  irix5* | nonstopux*)
13529    libsuff= shlibsuff=
13530    ;;
13531  *)
13532    case $LD in # libtool.m4 will add one of these switches to LD
13533    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13534      libsuff= shlibsuff= libmagic=32-bit;;
13535    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13536      libsuff=32 shlibsuff=N32 libmagic=N32;;
13537    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13538      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13539    *) libsuff= shlibsuff= libmagic=never-match;;
13540    esac
13541    ;;
13542  esac
13543  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13544  shlibpath_overrides_runpath=no
13545  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13546  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13547  hardcode_into_libs=yes
13548  ;;
13549
13550# No shared lib support for Linux oldld, aout, or coff.
13551linux*oldld* | linux*aout* | linux*coff*)
13552  dynamic_linker=no
13553  ;;
13554
13555# This must be Linux ELF.
13556linux* | k*bsd*-gnu)
13557  version_type=linux
13558  need_lib_prefix=no
13559  need_version=no
13560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561  soname_spec='${libname}${release}${shared_ext}$major'
13562  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13563  shlibpath_var=LD_LIBRARY_PATH
13564  shlibpath_overrides_runpath=no
13565  # This implies no fast_install, which is unacceptable.
13566  # Some rework will be needed to allow for fast_install
13567  # before this can be enabled.
13568  hardcode_into_libs=yes
13569  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13570  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13571
13572  # Append ld.so.conf contents to the search path
13573  if test -f /etc/ld.so.conf; then
13574    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' ' '`
13575    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13576  fi
13577
13578  # We used to test for /lib/ld.so.1 and disable shared libraries on
13579  # powerpc, because MkLinux only supported shared libraries with the
13580  # GNU dynamic linker.  Since this was broken with cross compilers,
13581  # most powerpc-linux boxes support dynamic linking these days and
13582  # people can always --disable-shared, the test was removed, and we
13583  # assume the GNU/Linux dynamic linker is in use.
13584  dynamic_linker='GNU/Linux ld.so'
13585  ;;
13586
13587netbsd*)
13588  version_type=sunos
13589  need_lib_prefix=no
13590  need_version=no
13591  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13593    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13594    dynamic_linker='NetBSD (a.out) ld.so'
13595  else
13596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13597    soname_spec='${libname}${release}${shared_ext}$major'
13598    dynamic_linker='NetBSD ld.elf_so'
13599  fi
13600  shlibpath_var=LD_LIBRARY_PATH
13601  shlibpath_overrides_runpath=yes
13602  hardcode_into_libs=yes
13603  ;;
13604
13605newsos6)
13606  version_type=linux
13607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608  shlibpath_var=LD_LIBRARY_PATH
13609  shlibpath_overrides_runpath=yes
13610  ;;
13611
13612nto-qnx*)
13613  version_type=linux
13614  need_lib_prefix=no
13615  need_version=no
13616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617  soname_spec='${libname}${release}${shared_ext}$major'
13618  shlibpath_var=LD_LIBRARY_PATH
13619  shlibpath_overrides_runpath=yes
13620  ;;
13621
13622openbsd*)
13623  version_type=sunos
13624  sys_lib_dlsearch_path_spec="/usr/lib"
13625  need_lib_prefix=no
13626  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13627  case $host_os in
13628    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13629    *)                         need_version=no  ;;
13630  esac
13631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13632  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13633  shlibpath_var=LD_LIBRARY_PATH
13634  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13635    case $host_os in
13636      openbsd2.[89] | openbsd2.[89].*)
13637	shlibpath_overrides_runpath=no
13638	;;
13639      *)
13640	shlibpath_overrides_runpath=yes
13641	;;
13642      esac
13643  else
13644    shlibpath_overrides_runpath=yes
13645  fi
13646  ;;
13647
13648os2*)
13649  libname_spec='$name'
13650  shrext_cmds=".dll"
13651  need_lib_prefix=no
13652  library_names_spec='$libname${shared_ext} $libname.a'
13653  dynamic_linker='OS/2 ld.exe'
13654  shlibpath_var=LIBPATH
13655  ;;
13656
13657osf3* | osf4* | osf5*)
13658  version_type=osf
13659  need_lib_prefix=no
13660  need_version=no
13661  soname_spec='${libname}${release}${shared_ext}$major'
13662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663  shlibpath_var=LD_LIBRARY_PATH
13664  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13665  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13666  ;;
13667
13668rdos*)
13669  dynamic_linker=no
13670  ;;
13671
13672solaris*)
13673  version_type=linux
13674  need_lib_prefix=no
13675  need_version=no
13676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677  soname_spec='${libname}${release}${shared_ext}$major'
13678  shlibpath_var=LD_LIBRARY_PATH
13679  shlibpath_overrides_runpath=yes
13680  hardcode_into_libs=yes
13681  # ldd complains unless libraries are executable
13682  postinstall_cmds='chmod +x $lib'
13683  ;;
13684
13685sunos4*)
13686  version_type=sunos
13687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13688  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13689  shlibpath_var=LD_LIBRARY_PATH
13690  shlibpath_overrides_runpath=yes
13691  if test "$with_gnu_ld" = yes; then
13692    need_lib_prefix=no
13693  fi
13694  need_version=yes
13695  ;;
13696
13697sysv4 | sysv4.3*)
13698  version_type=linux
13699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700  soname_spec='${libname}${release}${shared_ext}$major'
13701  shlibpath_var=LD_LIBRARY_PATH
13702  case $host_vendor in
13703    sni)
13704      shlibpath_overrides_runpath=no
13705      need_lib_prefix=no
13706      export_dynamic_flag_spec='${wl}-Blargedynsym'
13707      runpath_var=LD_RUN_PATH
13708      ;;
13709    siemens)
13710      need_lib_prefix=no
13711      ;;
13712    motorola)
13713      need_lib_prefix=no
13714      need_version=no
13715      shlibpath_overrides_runpath=no
13716      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13717      ;;
13718  esac
13719  ;;
13720
13721sysv4*MP*)
13722  if test -d /usr/nec ;then
13723    version_type=linux
13724    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13725    soname_spec='$libname${shared_ext}.$major'
13726    shlibpath_var=LD_LIBRARY_PATH
13727  fi
13728  ;;
13729
13730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13731  version_type=freebsd-elf
13732  need_lib_prefix=no
13733  need_version=no
13734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13735  soname_spec='${libname}${release}${shared_ext}$major'
13736  shlibpath_var=LD_LIBRARY_PATH
13737  hardcode_into_libs=yes
13738  if test "$with_gnu_ld" = yes; then
13739    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13740    shlibpath_overrides_runpath=no
13741  else
13742    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13743    shlibpath_overrides_runpath=yes
13744    case $host_os in
13745      sco3.2v5*)
13746        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13747	;;
13748    esac
13749  fi
13750  sys_lib_dlsearch_path_spec='/usr/lib'
13751  ;;
13752
13753uts4*)
13754  version_type=linux
13755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756  soname_spec='${libname}${release}${shared_ext}$major'
13757  shlibpath_var=LD_LIBRARY_PATH
13758  ;;
13759
13760*)
13761  dynamic_linker=no
13762  ;;
13763esac
13764{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13765$as_echo "$dynamic_linker" >&6; }
13766test "$dynamic_linker" = no && can_build_shared=no
13767
13768if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13769  $as_echo_n "(cached) " >&6
13770else
13771  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13772fi
13773
13774sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13775if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13776  $as_echo_n "(cached) " >&6
13777else
13778  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13779fi
13780
13781sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13782
13783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13784if test "$GCC" = yes; then
13785  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13786fi
13787
13788{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13789$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13790hardcode_action_CXX=
13791if test -n "$hardcode_libdir_flag_spec_CXX" || \
13792   test -n "$runpath_var_CXX" || \
13793   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13794
13795  # We can hardcode non-existant directories.
13796  if test "$hardcode_direct_CXX" != no &&
13797     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13798     # have to relink, otherwise we might link with an installed library
13799     # when we should be linking with a yet-to-be-installed one
13800     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13801     test "$hardcode_minus_L_CXX" != no; then
13802    # Linking always hardcodes the temporary library directory.
13803    hardcode_action_CXX=relink
13804  else
13805    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13806    hardcode_action_CXX=immediate
13807  fi
13808else
13809  # We cannot hardcode anything, or else we can only hardcode existing
13810  # directories.
13811  hardcode_action_CXX=unsupported
13812fi
13813{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13814$as_echo "$hardcode_action_CXX" >&6; }
13815
13816if test "$hardcode_action_CXX" = relink; then
13817  # Fast installation is not supported
13818  enable_fast_install=no
13819elif test "$shlibpath_overrides_runpath" = yes ||
13820     test "$enable_shared" = no; then
13821  # Fast installation is not necessary
13822  enable_fast_install=needless
13823fi
13824
13825
13826# The else clause should only fire when bootstrapping the
13827# libtool distribution, otherwise you forgot to ship ltmain.sh
13828# with your package, and you will get complaints that there are
13829# no rules to generate ltmain.sh.
13830if test -f "$ltmain"; then
13831  # See if we are running on zsh, and set the options which allow our commands through
13832  # without removal of \ escapes.
13833  if test -n "${ZSH_VERSION+set}" ; then
13834    setopt NO_GLOB_SUBST
13835  fi
13836  # Now quote all the things that may contain metacharacters while being
13837  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13838  # variables and quote the copies for generation of the libtool script.
13839  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13840    SED SHELL STRIP \
13841    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13842    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13843    deplibs_check_method reload_flag reload_cmds need_locks \
13844    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13845    lt_cv_sys_global_symbol_to_c_name_address \
13846    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13847    old_postinstall_cmds old_postuninstall_cmds \
13848    compiler_CXX \
13849    CC_CXX \
13850    LD_CXX \
13851    lt_prog_compiler_wl_CXX \
13852    lt_prog_compiler_pic_CXX \
13853    lt_prog_compiler_static_CXX \
13854    lt_prog_compiler_no_builtin_flag_CXX \
13855    export_dynamic_flag_spec_CXX \
13856    thread_safe_flag_spec_CXX \
13857    whole_archive_flag_spec_CXX \
13858    enable_shared_with_static_runtimes_CXX \
13859    old_archive_cmds_CXX \
13860    old_archive_from_new_cmds_CXX \
13861    predep_objects_CXX \
13862    postdep_objects_CXX \
13863    predeps_CXX \
13864    postdeps_CXX \
13865    compiler_lib_search_path_CXX \
13866    compiler_lib_search_dirs_CXX \
13867    archive_cmds_CXX \
13868    archive_expsym_cmds_CXX \
13869    postinstall_cmds_CXX \
13870    postuninstall_cmds_CXX \
13871    old_archive_from_expsyms_cmds_CXX \
13872    allow_undefined_flag_CXX \
13873    no_undefined_flag_CXX \
13874    export_symbols_cmds_CXX \
13875    hardcode_libdir_flag_spec_CXX \
13876    hardcode_libdir_flag_spec_ld_CXX \
13877    hardcode_libdir_separator_CXX \
13878    hardcode_automatic_CXX \
13879    module_cmds_CXX \
13880    module_expsym_cmds_CXX \
13881    lt_cv_prog_compiler_c_o_CXX \
13882    fix_srcfile_path_CXX \
13883    exclude_expsyms_CXX \
13884    include_expsyms_CXX; do
13885
13886    case $var in
13887    old_archive_cmds_CXX | \
13888    old_archive_from_new_cmds_CXX | \
13889    archive_cmds_CXX | \
13890    archive_expsym_cmds_CXX | \
13891    module_cmds_CXX | \
13892    module_expsym_cmds_CXX | \
13893    old_archive_from_expsyms_cmds_CXX | \
13894    export_symbols_cmds_CXX | \
13895    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13896    postinstall_cmds | postuninstall_cmds | \
13897    old_postinstall_cmds | old_postuninstall_cmds | \
13898    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13899      # Double-quote double-evaled strings.
13900      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13901      ;;
13902    *)
13903      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13904      ;;
13905    esac
13906  done
13907
13908  case $lt_echo in
13909  *'\$0 --fallback-echo"')
13910    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13911    ;;
13912  esac
13913
13914cfgfile="$ofile"
13915
13916  cat <<__EOF__ >> "$cfgfile"
13917# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13918
13919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13920
13921# Shell to use when invoking shell scripts.
13922SHELL=$lt_SHELL
13923
13924# Whether or not to build shared libraries.
13925build_libtool_libs=$enable_shared
13926
13927# Whether or not to build static libraries.
13928build_old_libs=$enable_static
13929
13930# Whether or not to add -lc for building shared libraries.
13931build_libtool_need_lc=$archive_cmds_need_lc_CXX
13932
13933# Whether or not to disallow shared libs when runtime libs are static
13934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13935
13936# Whether or not to optimize for fast installation.
13937fast_install=$enable_fast_install
13938
13939# The host system.
13940host_alias=$host_alias
13941host=$host
13942host_os=$host_os
13943
13944# The build system.
13945build_alias=$build_alias
13946build=$build
13947build_os=$build_os
13948
13949# An echo program that does not interpret backslashes.
13950echo=$lt_echo
13951
13952# The archiver.
13953AR=$lt_AR
13954AR_FLAGS=$lt_AR_FLAGS
13955
13956# A C compiler.
13957LTCC=$lt_LTCC
13958
13959# LTCC compiler flags.
13960LTCFLAGS=$lt_LTCFLAGS
13961
13962# A language-specific compiler.
13963CC=$lt_compiler_CXX
13964
13965# Is the compiler the GNU C compiler?
13966with_gcc=$GCC_CXX
13967
13968# An ERE matcher.
13969EGREP=$lt_EGREP
13970
13971# The linker used to build libraries.
13972LD=$lt_LD_CXX
13973
13974# Whether we need hard or soft links.
13975LN_S=$lt_LN_S
13976
13977# A BSD-compatible nm program.
13978NM=$lt_NM
13979
13980# A symbol stripping program
13981STRIP=$lt_STRIP
13982
13983# Used to examine libraries when file_magic_cmd begins "file"
13984MAGIC_CMD=$MAGIC_CMD
13985
13986# Used on cygwin: DLL creation program.
13987DLLTOOL="$DLLTOOL"
13988
13989# Used on cygwin: object dumper.
13990OBJDUMP="$OBJDUMP"
13991
13992# Used on cygwin: assembler.
13993AS="$AS"
13994
13995# The name of the directory that contains temporary libtool files.
13996objdir=$objdir
13997
13998# How to create reloadable object files.
13999reload_flag=$lt_reload_flag
14000reload_cmds=$lt_reload_cmds
14001
14002# How to pass a linker flag through the compiler.
14003wl=$lt_lt_prog_compiler_wl_CXX
14004
14005# Object file suffix (normally "o").
14006objext="$ac_objext"
14007
14008# Old archive suffix (normally "a").
14009libext="$libext"
14010
14011# Shared library suffix (normally ".so").
14012shrext_cmds='$shrext_cmds'
14013
14014# Executable file suffix (normally "").
14015exeext="$exeext"
14016
14017# Additional compiler flags for building library objects.
14018pic_flag=$lt_lt_prog_compiler_pic_CXX
14019pic_mode=$pic_mode
14020
14021# What is the maximum length of a command?
14022max_cmd_len=$lt_cv_sys_max_cmd_len
14023
14024# Does compiler simultaneously support -c and -o options?
14025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14026
14027# Must we lock files when doing compilation?
14028need_locks=$lt_need_locks
14029
14030# Do we need the lib prefix for modules?
14031need_lib_prefix=$need_lib_prefix
14032
14033# Do we need a version for libraries?
14034need_version=$need_version
14035
14036# Whether dlopen is supported.
14037dlopen_support=$enable_dlopen
14038
14039# Whether dlopen of programs is supported.
14040dlopen_self=$enable_dlopen_self
14041
14042# Whether dlopen of statically linked programs is supported.
14043dlopen_self_static=$enable_dlopen_self_static
14044
14045# Compiler flag to prevent dynamic linking.
14046link_static_flag=$lt_lt_prog_compiler_static_CXX
14047
14048# Compiler flag to turn off builtin functions.
14049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14050
14051# Compiler flag to allow reflexive dlopens.
14052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14053
14054# Compiler flag to generate shared objects directly from archives.
14055whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14056
14057# Compiler flag to generate thread-safe objects.
14058thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14059
14060# Library versioning type.
14061version_type=$version_type
14062
14063# Format of library name prefix.
14064libname_spec=$lt_libname_spec
14065
14066# List of archive names.  First name is the real one, the rest are links.
14067# The last name is the one that the linker finds with -lNAME.
14068library_names_spec=$lt_library_names_spec
14069
14070# The coded name of the library, if different from the real name.
14071soname_spec=$lt_soname_spec
14072
14073# Commands used to build and install an old-style archive.
14074RANLIB=$lt_RANLIB
14075old_archive_cmds=$lt_old_archive_cmds_CXX
14076old_postinstall_cmds=$lt_old_postinstall_cmds
14077old_postuninstall_cmds=$lt_old_postuninstall_cmds
14078
14079# Create an old-style archive from a shared archive.
14080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14081
14082# Create a temporary old-style archive to link instead of a shared archive.
14083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14084
14085# Commands used to build and install a shared archive.
14086archive_cmds=$lt_archive_cmds_CXX
14087archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14088postinstall_cmds=$lt_postinstall_cmds
14089postuninstall_cmds=$lt_postuninstall_cmds
14090
14091# Commands used to build a loadable module (assumed same as above if empty)
14092module_cmds=$lt_module_cmds_CXX
14093module_expsym_cmds=$lt_module_expsym_cmds_CXX
14094
14095# Commands to strip libraries.
14096old_striplib=$lt_old_striplib
14097striplib=$lt_striplib
14098
14099# Dependencies to place before the objects being linked to create a
14100# shared library.
14101predep_objects=$lt_predep_objects_CXX
14102
14103# Dependencies to place after the objects being linked to create a
14104# shared library.
14105postdep_objects=$lt_postdep_objects_CXX
14106
14107# Dependencies to place before the objects being linked to create a
14108# shared library.
14109predeps=$lt_predeps_CXX
14110
14111# Dependencies to place after the objects being linked to create a
14112# shared library.
14113postdeps=$lt_postdeps_CXX
14114
14115# The directories searched by this compiler when creating a shared
14116# library
14117compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14118
14119# The library search path used internally by the compiler when linking
14120# a shared library.
14121compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14122
14123# Method to check whether dependent libraries are shared objects.
14124deplibs_check_method=$lt_deplibs_check_method
14125
14126# Command to use when deplibs_check_method == file_magic.
14127file_magic_cmd=$lt_file_magic_cmd
14128
14129# Flag that allows shared libraries with undefined symbols to be built.
14130allow_undefined_flag=$lt_allow_undefined_flag_CXX
14131
14132# Flag that forces no undefined symbols.
14133no_undefined_flag=$lt_no_undefined_flag_CXX
14134
14135# Commands used to finish a libtool library installation in a directory.
14136finish_cmds=$lt_finish_cmds
14137
14138# Same as above, but a single script fragment to be evaled but not shown.
14139finish_eval=$lt_finish_eval
14140
14141# Take the output of nm and produce a listing of raw symbols and C names.
14142global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14143
14144# Transform the output of nm in a proper C declaration
14145global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14146
14147# Transform the output of nm in a C name address pair
14148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14149
14150# This is the shared library runtime path variable.
14151runpath_var=$runpath_var
14152
14153# This is the shared library path variable.
14154shlibpath_var=$shlibpath_var
14155
14156# Is shlibpath searched before the hard-coded library search path?
14157shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14158
14159# How to hardcode a shared library path into an executable.
14160hardcode_action=$hardcode_action_CXX
14161
14162# Whether we should hardcode library paths into libraries.
14163hardcode_into_libs=$hardcode_into_libs
14164
14165# Flag to hardcode \$libdir into a binary during linking.
14166# This must work even if \$libdir does not exist.
14167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14168
14169# If ld is used when linking, flag to hardcode \$libdir into
14170# a binary during linking. This must work even if \$libdir does
14171# not exist.
14172hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14173
14174# Whether we need a single -rpath flag with a separated argument.
14175hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14176
14177# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14178# resulting binary.
14179hardcode_direct=$hardcode_direct_CXX
14180
14181# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14182# resulting binary.
14183hardcode_minus_L=$hardcode_minus_L_CXX
14184
14185# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14186# the resulting binary.
14187hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14188
14189# Set to yes if building a shared library automatically hardcodes DIR into the library
14190# and all subsequent libraries and executables linked against it.
14191hardcode_automatic=$hardcode_automatic_CXX
14192
14193# Variables whose values should be saved in libtool wrapper scripts and
14194# restored at relink time.
14195variables_saved_for_relink="$variables_saved_for_relink"
14196
14197# Whether libtool must link a program against all its dependency libraries.
14198link_all_deplibs=$link_all_deplibs_CXX
14199
14200# Compile-time system search path for libraries
14201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14202
14203# Run-time system search path for libraries
14204sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14205
14206# Fix the shell variable \$srcfile for the compiler.
14207fix_srcfile_path=$lt_fix_srcfile_path
14208
14209# Set to yes if exported symbols are required.
14210always_export_symbols=$always_export_symbols_CXX
14211
14212# The commands to list exported symbols.
14213export_symbols_cmds=$lt_export_symbols_cmds_CXX
14214
14215# The commands to extract the exported symbol list from a shared archive.
14216extract_expsyms_cmds=$lt_extract_expsyms_cmds
14217
14218# Symbols that should not be listed in the preloaded symbols.
14219exclude_expsyms=$lt_exclude_expsyms_CXX
14220
14221# Symbols that must always be exported.
14222include_expsyms=$lt_include_expsyms_CXX
14223
14224# ### END LIBTOOL TAG CONFIG: $tagname
14225
14226__EOF__
14227
14228
14229else
14230  # If there is no Makefile yet, we rely on a make rule to execute
14231  # `config.status --recheck' to rerun these tests and create the
14232  # libtool script then.
14233  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14234  if test -f "$ltmain_in"; then
14235    test -f Makefile && make "$ltmain"
14236  fi
14237fi
14238
14239
14240ac_ext=c
14241ac_cpp='$CPP $CPPFLAGS'
14242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244ac_compiler_gnu=$ac_cv_c_compiler_gnu
14245
14246CC=$lt_save_CC
14247LDCXX=$LD
14248LD=$lt_save_LD
14249GCC=$lt_save_GCC
14250with_gnu_ldcxx=$with_gnu_ld
14251with_gnu_ld=$lt_save_with_gnu_ld
14252lt_cv_path_LDCXX=$lt_cv_path_LD
14253lt_cv_path_LD=$lt_save_path_LD
14254lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14255lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14256
14257	else
14258	  tagname=""
14259	fi
14260	;;
14261
14262      F77)
14263	if test -n "$F77" && test "X$F77" != "Xno"; then
14264
14265ac_ext=f
14266ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14267ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14269
14270
14271archive_cmds_need_lc_F77=no
14272allow_undefined_flag_F77=
14273always_export_symbols_F77=no
14274archive_expsym_cmds_F77=
14275export_dynamic_flag_spec_F77=
14276hardcode_direct_F77=no
14277hardcode_libdir_flag_spec_F77=
14278hardcode_libdir_flag_spec_ld_F77=
14279hardcode_libdir_separator_F77=
14280hardcode_minus_L_F77=no
14281hardcode_automatic_F77=no
14282module_cmds_F77=
14283module_expsym_cmds_F77=
14284link_all_deplibs_F77=unknown
14285old_archive_cmds_F77=$old_archive_cmds
14286no_undefined_flag_F77=
14287whole_archive_flag_spec_F77=
14288enable_shared_with_static_runtimes_F77=no
14289
14290# Source file extension for f77 test sources.
14291ac_ext=f
14292
14293# Object file extension for compiled f77 test sources.
14294objext=o
14295objext_F77=$objext
14296
14297# Code to be used in simple compile tests
14298lt_simple_compile_test_code="\
14299      subroutine t
14300      return
14301      end
14302"
14303
14304# Code to be used in simple link tests
14305lt_simple_link_test_code="\
14306      program t
14307      end
14308"
14309
14310# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14311
14312# If no C compiler was specified, use CC.
14313LTCC=${LTCC-"$CC"}
14314
14315# If no C compiler flags were specified, use CFLAGS.
14316LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14317
14318# Allow CC to be a program name with arguments.
14319compiler=$CC
14320
14321
14322# save warnings/boilerplate of simple test code
14323ac_outfile=conftest.$ac_objext
14324echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14325eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14326_lt_compiler_boilerplate=`cat conftest.err`
14327$rm conftest*
14328
14329ac_outfile=conftest.$ac_objext
14330echo "$lt_simple_link_test_code" >conftest.$ac_ext
14331eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14332_lt_linker_boilerplate=`cat conftest.err`
14333$rm -r conftest*
14334
14335
14336# Allow CC to be a program name with arguments.
14337lt_save_CC="$CC"
14338CC=${F77-"f77"}
14339compiler=$CC
14340compiler_F77=$CC
14341for cc_temp in $compiler""; do
14342  case $cc_temp in
14343    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14344    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14345    \-*) ;;
14346    *) break;;
14347  esac
14348done
14349cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14350
14351
14352{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14353$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14354{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14355$as_echo "$can_build_shared" >&6; }
14356
14357{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14358$as_echo_n "checking whether to build shared libraries... " >&6; }
14359test "$can_build_shared" = "no" && enable_shared=no
14360
14361# On AIX, shared libraries and static libraries use the same namespace, and
14362# are all built from PIC.
14363case $host_os in
14364aix3*)
14365  test "$enable_shared" = yes && enable_static=no
14366  if test -n "$RANLIB"; then
14367    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14368    postinstall_cmds='$RANLIB $lib'
14369  fi
14370  ;;
14371aix[4-9]*)
14372  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14373    test "$enable_shared" = yes && enable_static=no
14374  fi
14375  ;;
14376esac
14377{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14378$as_echo "$enable_shared" >&6; }
14379
14380{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14381$as_echo_n "checking whether to build static libraries... " >&6; }
14382# Make sure either enable_shared or enable_static is yes.
14383test "$enable_shared" = yes || enable_static=yes
14384{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14385$as_echo "$enable_static" >&6; }
14386
14387GCC_F77="$G77"
14388LD_F77="$LD"
14389
14390lt_prog_compiler_wl_F77=
14391lt_prog_compiler_pic_F77=
14392lt_prog_compiler_static_F77=
14393
14394{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14395$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14396
14397  if test "$GCC" = yes; then
14398    lt_prog_compiler_wl_F77='-Wl,'
14399    lt_prog_compiler_static_F77='-static'
14400
14401    case $host_os in
14402      aix*)
14403      # All AIX code is PIC.
14404      if test "$host_cpu" = ia64; then
14405	# AIX 5 now supports IA64 processor
14406	lt_prog_compiler_static_F77='-Bstatic'
14407      fi
14408      ;;
14409
14410    amigaos*)
14411      # FIXME: we need at least 68020 code to build shared libraries, but
14412      # adding the `-m68020' flag to GCC prevents building anything better,
14413      # like `-m68040'.
14414      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14415      ;;
14416
14417    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14418      # PIC is the default for these OSes.
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      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14425      # (--disable-auto-import) libraries
14426      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14427      ;;
14428
14429    darwin* | rhapsody*)
14430      # PIC is the default on this platform
14431      # Common symbols not allowed in MH_DYLIB files
14432      lt_prog_compiler_pic_F77='-fno-common'
14433      ;;
14434
14435    interix[3-9]*)
14436      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437      # Instead, we relocate shared libraries at runtime.
14438      ;;
14439
14440    msdosdjgpp*)
14441      # Just because we use GCC doesn't mean we suddenly get shared libraries
14442      # on systems that don't support them.
14443      lt_prog_compiler_can_build_shared_F77=no
14444      enable_shared=no
14445      ;;
14446
14447    sysv4*MP*)
14448      if test -d /usr/nec; then
14449	lt_prog_compiler_pic_F77=-Kconform_pic
14450      fi
14451      ;;
14452
14453    hpux*)
14454      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14455      # not for PA HP-UX.
14456      case $host_cpu in
14457      hppa*64*|ia64*)
14458	# +Z the default
14459	;;
14460      *)
14461	lt_prog_compiler_pic_F77='-fPIC'
14462	;;
14463      esac
14464      ;;
14465
14466    *)
14467      lt_prog_compiler_pic_F77='-fPIC'
14468      ;;
14469    esac
14470  else
14471    # PORTME Check for flag to pass linker flags through the system compiler.
14472    case $host_os in
14473    aix*)
14474      lt_prog_compiler_wl_F77='-Wl,'
14475      if test "$host_cpu" = ia64; then
14476	# AIX 5 now supports IA64 processor
14477	lt_prog_compiler_static_F77='-Bstatic'
14478      else
14479	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14480      fi
14481      ;;
14482      darwin*)
14483        # PIC is the default on this platform
14484        # Common symbols not allowed in MH_DYLIB files
14485       case $cc_basename in
14486         xlc*)
14487         lt_prog_compiler_pic_F77='-qnocommon'
14488         lt_prog_compiler_wl_F77='-Wl,'
14489         ;;
14490       esac
14491       ;;
14492
14493    mingw* | cygwin* | pw32* | os2*)
14494      # This hack is so that the source file can tell whether it is being
14495      # built for inclusion in a dll (and should export symbols for example).
14496      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14497      ;;
14498
14499    hpux9* | hpux10* | hpux11*)
14500      lt_prog_compiler_wl_F77='-Wl,'
14501      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14502      # not for PA HP-UX.
14503      case $host_cpu in
14504      hppa*64*|ia64*)
14505	# +Z the default
14506	;;
14507      *)
14508	lt_prog_compiler_pic_F77='+Z'
14509	;;
14510      esac
14511      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14512      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14513      ;;
14514
14515    irix5* | irix6* | nonstopux*)
14516      lt_prog_compiler_wl_F77='-Wl,'
14517      # PIC (with -KPIC) is the default.
14518      lt_prog_compiler_static_F77='-non_shared'
14519      ;;
14520
14521    newsos6)
14522      lt_prog_compiler_pic_F77='-KPIC'
14523      lt_prog_compiler_static_F77='-Bstatic'
14524      ;;
14525
14526    linux* | k*bsd*-gnu)
14527      case $cc_basename in
14528      icc* | ecc*)
14529	lt_prog_compiler_wl_F77='-Wl,'
14530	lt_prog_compiler_pic_F77='-KPIC'
14531	lt_prog_compiler_static_F77='-static'
14532        ;;
14533      pgcc* | pgf77* | pgf90* | pgf95*)
14534        # Portland Group compilers (*not* the Pentium gcc compiler,
14535	# which looks to be a dead project)
14536	lt_prog_compiler_wl_F77='-Wl,'
14537	lt_prog_compiler_pic_F77='-fpic'
14538	lt_prog_compiler_static_F77='-Bstatic'
14539        ;;
14540      ccc*)
14541        lt_prog_compiler_wl_F77='-Wl,'
14542        # All Alpha code is PIC.
14543        lt_prog_compiler_static_F77='-non_shared'
14544        ;;
14545      *)
14546        case `$CC -V 2>&1 | sed 5q` in
14547	*Sun\ C*)
14548	  # Sun C 5.9
14549	  lt_prog_compiler_pic_F77='-KPIC'
14550	  lt_prog_compiler_static_F77='-Bstatic'
14551	  lt_prog_compiler_wl_F77='-Wl,'
14552	  ;;
14553	*Sun\ F*)
14554	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14555	  lt_prog_compiler_pic_F77='-KPIC'
14556	  lt_prog_compiler_static_F77='-Bstatic'
14557	  lt_prog_compiler_wl_F77=''
14558	  ;;
14559	esac
14560	;;
14561      esac
14562      ;;
14563
14564    osf3* | osf4* | osf5*)
14565      lt_prog_compiler_wl_F77='-Wl,'
14566      # All OSF/1 code is PIC.
14567      lt_prog_compiler_static_F77='-non_shared'
14568      ;;
14569
14570    rdos*)
14571      lt_prog_compiler_static_F77='-non_shared'
14572      ;;
14573
14574    solaris*)
14575      lt_prog_compiler_pic_F77='-KPIC'
14576      lt_prog_compiler_static_F77='-Bstatic'
14577      case $cc_basename in
14578      f77* | f90* | f95*)
14579	lt_prog_compiler_wl_F77='-Qoption ld ';;
14580      *)
14581	lt_prog_compiler_wl_F77='-Wl,';;
14582      esac
14583      ;;
14584
14585    sunos4*)
14586      lt_prog_compiler_wl_F77='-Qoption ld '
14587      lt_prog_compiler_pic_F77='-PIC'
14588      lt_prog_compiler_static_F77='-Bstatic'
14589      ;;
14590
14591    sysv4 | sysv4.2uw2* | sysv4.3*)
14592      lt_prog_compiler_wl_F77='-Wl,'
14593      lt_prog_compiler_pic_F77='-KPIC'
14594      lt_prog_compiler_static_F77='-Bstatic'
14595      ;;
14596
14597    sysv4*MP*)
14598      if test -d /usr/nec ;then
14599	lt_prog_compiler_pic_F77='-Kconform_pic'
14600	lt_prog_compiler_static_F77='-Bstatic'
14601      fi
14602      ;;
14603
14604    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14605      lt_prog_compiler_wl_F77='-Wl,'
14606      lt_prog_compiler_pic_F77='-KPIC'
14607      lt_prog_compiler_static_F77='-Bstatic'
14608      ;;
14609
14610    unicos*)
14611      lt_prog_compiler_wl_F77='-Wl,'
14612      lt_prog_compiler_can_build_shared_F77=no
14613      ;;
14614
14615    uts4*)
14616      lt_prog_compiler_pic_F77='-pic'
14617      lt_prog_compiler_static_F77='-Bstatic'
14618      ;;
14619
14620    *)
14621      lt_prog_compiler_can_build_shared_F77=no
14622      ;;
14623    esac
14624  fi
14625
14626{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14627$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14628
14629#
14630# Check to make sure the PIC flag actually works.
14631#
14632if test -n "$lt_prog_compiler_pic_F77"; then
14633
14634{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14635$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14636if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14637  $as_echo_n "(cached) " >&6
14638else
14639  lt_cv_prog_compiler_pic_works_F77=no
14640  ac_outfile=conftest.$ac_objext
14641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14642   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14643   # Insert the option either (1) after the last *FLAGS variable, or
14644   # (2) before a word containing "conftest.", or (3) at the end.
14645   # Note that $ac_compile itself does not contain backslashes and begins
14646   # with a dollar sign (not a hyphen), so the echo should work correctly.
14647   # The option is referenced via a variable to avoid confusing sed.
14648   lt_compile=`echo "$ac_compile" | $SED \
14649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14651   -e 's:$: $lt_compiler_flag:'`
14652   (eval echo "\"\$as_me:14652: $lt_compile\"" >&5)
14653   (eval "$lt_compile" 2>conftest.err)
14654   ac_status=$?
14655   cat conftest.err >&5
14656   echo "$as_me:14656: \$? = $ac_status" >&5
14657   if (exit $ac_status) && test -s "$ac_outfile"; then
14658     # The compiler can only warn and ignore the option if not recognized
14659     # So say no if there are warnings other than the usual output.
14660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14661     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14662     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14663       lt_cv_prog_compiler_pic_works_F77=yes
14664     fi
14665   fi
14666   $rm conftest*
14667
14668fi
14669{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14670$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14671
14672if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14673    case $lt_prog_compiler_pic_F77 in
14674     "" | " "*) ;;
14675     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14676     esac
14677else
14678    lt_prog_compiler_pic_F77=
14679     lt_prog_compiler_can_build_shared_F77=no
14680fi
14681
14682fi
14683case $host_os in
14684  # For platforms which do not support PIC, -DPIC is meaningless:
14685  *djgpp*)
14686    lt_prog_compiler_pic_F77=
14687    ;;
14688  *)
14689    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14690    ;;
14691esac
14692
14693#
14694# Check to make sure the static flag actually works.
14695#
14696wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14697{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14698$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14699if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14700  $as_echo_n "(cached) " >&6
14701else
14702  lt_cv_prog_compiler_static_works_F77=no
14703   save_LDFLAGS="$LDFLAGS"
14704   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14705   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14706   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14707     # The linker can only warn and ignore the option if not recognized
14708     # So say no if there are warnings
14709     if test -s conftest.err; then
14710       # Append any errors to the config.log.
14711       cat conftest.err 1>&5
14712       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14713       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14714       if diff conftest.exp conftest.er2 >/dev/null; then
14715         lt_cv_prog_compiler_static_works_F77=yes
14716       fi
14717     else
14718       lt_cv_prog_compiler_static_works_F77=yes
14719     fi
14720   fi
14721   $rm -r conftest*
14722   LDFLAGS="$save_LDFLAGS"
14723
14724fi
14725{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14726$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14727
14728if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14729    :
14730else
14731    lt_prog_compiler_static_F77=
14732fi
14733
14734
14735{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14736$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14737if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14738  $as_echo_n "(cached) " >&6
14739else
14740  lt_cv_prog_compiler_c_o_F77=no
14741   $rm -r conftest 2>/dev/null
14742   mkdir conftest
14743   cd conftest
14744   mkdir out
14745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14746
14747   lt_compiler_flag="-o out/conftest2.$ac_objext"
14748   # Insert the option either (1) after the last *FLAGS variable, or
14749   # (2) before a word containing "conftest.", or (3) at the end.
14750   # Note that $ac_compile itself does not contain backslashes and begins
14751   # with a dollar sign (not a hyphen), so the echo should work correctly.
14752   lt_compile=`echo "$ac_compile" | $SED \
14753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14755   -e 's:$: $lt_compiler_flag:'`
14756   (eval echo "\"\$as_me:14756: $lt_compile\"" >&5)
14757   (eval "$lt_compile" 2>out/conftest.err)
14758   ac_status=$?
14759   cat out/conftest.err >&5
14760   echo "$as_me:14760: \$? = $ac_status" >&5
14761   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14762   then
14763     # The compiler can only warn and ignore the option if not recognized
14764     # So say no if there are warnings
14765     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14766     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14767     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14768       lt_cv_prog_compiler_c_o_F77=yes
14769     fi
14770   fi
14771   chmod u+w . 2>&5
14772   $rm conftest*
14773   # SGI C++ compiler will create directory out/ii_files/ for
14774   # template instantiation
14775   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14776   $rm out/* && rmdir out
14777   cd ..
14778   rmdir conftest
14779   $rm conftest*
14780
14781fi
14782{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14783$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14784
14785
14786hard_links="nottested"
14787if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14788  # do not overwrite the value of need_locks provided by the user
14789  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14790$as_echo_n "checking if we can lock with hard links... " >&6; }
14791  hard_links=yes
14792  $rm conftest*
14793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14794  touch conftest.a
14795  ln conftest.a conftest.b 2>&5 || hard_links=no
14796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14797  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14798$as_echo "$hard_links" >&6; }
14799  if test "$hard_links" = no; then
14800    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14801$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14802    need_locks=warn
14803  fi
14804else
14805  need_locks=no
14806fi
14807
14808{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14809$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14810
14811  runpath_var=
14812  allow_undefined_flag_F77=
14813  enable_shared_with_static_runtimes_F77=no
14814  archive_cmds_F77=
14815  archive_expsym_cmds_F77=
14816  old_archive_From_new_cmds_F77=
14817  old_archive_from_expsyms_cmds_F77=
14818  export_dynamic_flag_spec_F77=
14819  whole_archive_flag_spec_F77=
14820  thread_safe_flag_spec_F77=
14821  hardcode_libdir_flag_spec_F77=
14822  hardcode_libdir_flag_spec_ld_F77=
14823  hardcode_libdir_separator_F77=
14824  hardcode_direct_F77=no
14825  hardcode_minus_L_F77=no
14826  hardcode_shlibpath_var_F77=unsupported
14827  link_all_deplibs_F77=unknown
14828  hardcode_automatic_F77=no
14829  module_cmds_F77=
14830  module_expsym_cmds_F77=
14831  always_export_symbols_F77=no
14832  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14833  # include_expsyms should be a list of space-separated symbols to be *always*
14834  # included in the symbol list
14835  include_expsyms_F77=
14836  # exclude_expsyms can be an extended regexp of symbols to exclude
14837  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14838  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14839  # as well as any symbol that contains `d'.
14840  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14841  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14842  # platforms (ab)use it in PIC code, but their linkers get confused if
14843  # the symbol is explicitly referenced.  Since portable code cannot
14844  # rely on this symbol name, it's probably fine to never include it in
14845  # preloaded symbol tables.
14846  # Exclude shared library initialization/finalization symbols.
14847  extract_expsyms_cmds=
14848  # Just being paranoid about ensuring that cc_basename is set.
14849  for cc_temp in $compiler""; do
14850  case $cc_temp in
14851    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14852    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14853    \-*) ;;
14854    *) break;;
14855  esac
14856done
14857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14858
14859  case $host_os in
14860  cygwin* | mingw* | pw32*)
14861    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14862    # When not using gcc, we currently assume that we are using
14863    # Microsoft Visual C++.
14864    if test "$GCC" != yes; then
14865      with_gnu_ld=no
14866    fi
14867    ;;
14868  interix*)
14869    # we just hope/assume this is gcc and not c89 (= MSVC++)
14870    with_gnu_ld=yes
14871    ;;
14872  openbsd*)
14873    with_gnu_ld=no
14874    ;;
14875  esac
14876
14877  ld_shlibs_F77=yes
14878  if test "$with_gnu_ld" = yes; then
14879    # If archive_cmds runs LD, not CC, wlarc should be empty
14880    wlarc='${wl}'
14881
14882    # Set some defaults for GNU ld with shared library support. These
14883    # are reset later if shared libraries are not supported. Putting them
14884    # here allows them to be overridden if necessary.
14885    runpath_var=LD_RUN_PATH
14886    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14887    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14888    # ancient GNU ld didn't support --whole-archive et. al.
14889    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14890	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14891      else
14892  	whole_archive_flag_spec_F77=
14893    fi
14894    supports_anon_versioning=no
14895    case `$LD -v 2>/dev/null` in
14896      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14897      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14898      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14899      *\ 2.11.*) ;; # other 2.11 versions
14900      *) supports_anon_versioning=yes ;;
14901    esac
14902
14903    # See if GNU ld supports shared libraries.
14904    case $host_os in
14905    aix[3-9]*)
14906      # On AIX/PPC, the GNU linker is very broken
14907      if test "$host_cpu" != ia64; then
14908	ld_shlibs_F77=no
14909	cat <<EOF 1>&2
14910
14911*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14912*** to be unable to reliably create shared libraries on AIX.
14913*** Therefore, libtool is disabling shared libraries support.  If you
14914*** really care for shared libraries, you may want to modify your PATH
14915*** so that a non-GNU linker is found, and then restart.
14916
14917EOF
14918      fi
14919      ;;
14920
14921    amigaos*)
14922      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)'
14923      hardcode_libdir_flag_spec_F77='-L$libdir'
14924      hardcode_minus_L_F77=yes
14925
14926      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14927      # that the semantics of dynamic libraries on AmigaOS, at least up
14928      # to version 4, is to share data among multiple programs linked
14929      # with the same dynamic library.  Since this doesn't match the
14930      # behavior of shared libraries on other platforms, we can't use
14931      # them.
14932      ld_shlibs_F77=no
14933      ;;
14934
14935    beos*)
14936      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14937	allow_undefined_flag_F77=unsupported
14938	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14939	# support --undefined.  This deserves some investigation.  FIXME
14940	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14941      else
14942	ld_shlibs_F77=no
14943      fi
14944      ;;
14945
14946    cygwin* | mingw* | pw32*)
14947      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14948      # as there is no search path for DLLs.
14949      hardcode_libdir_flag_spec_F77='-L$libdir'
14950      allow_undefined_flag_F77=unsupported
14951      always_export_symbols_F77=no
14952      enable_shared_with_static_runtimes_F77=yes
14953      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14954
14955      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14956        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14957	# If the export-symbols file already is a .def file (1st line
14958	# is EXPORTS), use it as is; otherwise, prepend...
14959	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14960	  cp $export_symbols $output_objdir/$soname.def;
14961	else
14962	  echo EXPORTS > $output_objdir/$soname.def;
14963	  cat $export_symbols >> $output_objdir/$soname.def;
14964	fi~
14965	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14966      else
14967	ld_shlibs_F77=no
14968      fi
14969      ;;
14970
14971    interix[3-9]*)
14972      hardcode_direct_F77=no
14973      hardcode_shlibpath_var_F77=no
14974      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14975      export_dynamic_flag_spec_F77='${wl}-E'
14976      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14977      # Instead, shared libraries are loaded at an image base (0x10000000 by
14978      # default) and relocated if they conflict, which is a slow very memory
14979      # consuming and fragmenting process.  To avoid this, we pick a random,
14980      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14981      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14982      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'
14983      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'
14984      ;;
14985
14986    gnu* | linux* | k*bsd*-gnu)
14987      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988	tmp_addflag=
14989	case $cc_basename,$host_cpu in
14990	pgcc*)				# Portland Group C compiler
14991	  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'
14992	  tmp_addflag=' $pic_flag'
14993	  ;;
14994	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14995	  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'
14996	  tmp_addflag=' $pic_flag -Mnomain' ;;
14997	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14998	  tmp_addflag=' -i_dynamic' ;;
14999	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15000	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15001	ifc* | ifort*)			# Intel Fortran compiler
15002	  tmp_addflag=' -nofor_main' ;;
15003	esac
15004	case `$CC -V 2>&1 | sed 5q` in
15005	*Sun\ C*)			# Sun C 5.9
15006	  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'
15007	  tmp_sharedflag='-G' ;;
15008	*Sun\ F*)			# Sun Fortran 8.3
15009	  tmp_sharedflag='-G' ;;
15010	*)
15011	  tmp_sharedflag='-shared' ;;
15012	esac
15013	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014
15015	if test $supports_anon_versioning = yes; then
15016	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15017  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15018  $echo "local: *; };" >> $output_objdir/$libname.ver~
15019	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15020	fi
15021      else
15022	ld_shlibs_F77=no
15023      fi
15024      ;;
15025
15026    netbsd*)
15027      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15028	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15029	wlarc=
15030      else
15031	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15033      fi
15034      ;;
15035
15036    solaris*)
15037      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15038	ld_shlibs_F77=no
15039	cat <<EOF 1>&2
15040
15041*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15042*** create shared libraries on Solaris systems.  Therefore, libtool
15043*** is disabling shared libraries support.  We urge you to upgrade GNU
15044*** binutils to release 2.9.1 or newer.  Another option is to modify
15045*** your PATH or compiler configuration so that the native linker is
15046*** used, and then restart.
15047
15048EOF
15049      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052      else
15053	ld_shlibs_F77=no
15054      fi
15055      ;;
15056
15057    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15058      case `$LD -v 2>&1` in
15059        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15060	ld_shlibs_F77=no
15061	cat <<_LT_EOF 1>&2
15062
15063*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15064*** reliably create shared libraries on SCO systems.  Therefore, libtool
15065*** is disabling shared libraries support.  We urge you to upgrade GNU
15066*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15067*** your PATH or compiler configuration so that the native linker is
15068*** used, and then restart.
15069
15070_LT_EOF
15071	;;
15072	*)
15073	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15075	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15076	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15077	  else
15078	    ld_shlibs_F77=no
15079	  fi
15080	;;
15081      esac
15082      ;;
15083
15084    sunos4*)
15085      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15086      wlarc=
15087      hardcode_direct_F77=yes
15088      hardcode_shlibpath_var_F77=no
15089      ;;
15090
15091    *)
15092      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15093	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15095      else
15096	ld_shlibs_F77=no
15097      fi
15098      ;;
15099    esac
15100
15101    if test "$ld_shlibs_F77" = no; then
15102      runpath_var=
15103      hardcode_libdir_flag_spec_F77=
15104      export_dynamic_flag_spec_F77=
15105      whole_archive_flag_spec_F77=
15106    fi
15107  else
15108    # PORTME fill in a description of your system's linker (not GNU ld)
15109    case $host_os in
15110    aix3*)
15111      allow_undefined_flag_F77=unsupported
15112      always_export_symbols_F77=yes
15113      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'
15114      # Note: this linker hardcodes the directories in LIBPATH if there
15115      # are no directories specified by -L.
15116      hardcode_minus_L_F77=yes
15117      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15118	# Neither direct hardcoding nor static linking is supported with a
15119	# broken collect2.
15120	hardcode_direct_F77=unsupported
15121      fi
15122      ;;
15123
15124    aix[4-9]*)
15125      if test "$host_cpu" = ia64; then
15126	# On IA64, the linker does run time linking by default, so we don't
15127	# have to do anything special.
15128	aix_use_runtimelinking=no
15129	exp_sym_flag='-Bexport'
15130	no_entry_flag=""
15131      else
15132	# If we're using GNU nm, then we don't want the "-C" option.
15133	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15134	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15135	  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'
15136	else
15137	  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'
15138	fi
15139	aix_use_runtimelinking=no
15140
15141	# Test if we are trying to use run time linking or normal
15142	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143	# need to do runtime linking.
15144	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145	  for ld_flag in $LDFLAGS; do
15146  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147  	    aix_use_runtimelinking=yes
15148  	    break
15149  	  fi
15150	  done
15151	  ;;
15152	esac
15153
15154	exp_sym_flag='-bexport'
15155	no_entry_flag='-bnoentry'
15156      fi
15157
15158      # When large executables or shared objects are built, AIX ld can
15159      # have problems creating the table of contents.  If linking a library
15160      # or program results in "error TOC overflow" add -mminimal-toc to
15161      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15162      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15163
15164      archive_cmds_F77=''
15165      hardcode_direct_F77=yes
15166      hardcode_libdir_separator_F77=':'
15167      link_all_deplibs_F77=yes
15168
15169      if test "$GCC" = yes; then
15170	case $host_os in aix4.[012]|aix4.[012].*)
15171	# We only want to do this on AIX 4.2 and lower, the check
15172	# below for broken collect2 doesn't work under 4.3+
15173	  collect2name=`${CC} -print-prog-name=collect2`
15174	  if test -f "$collect2name" && \
15175  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15176	  then
15177  	  # We have reworked collect2
15178  	  :
15179	  else
15180  	  # We have old collect2
15181  	  hardcode_direct_F77=unsupported
15182  	  # It fails to find uninstalled libraries when the uninstalled
15183  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15184  	  # to unsupported forces relinking
15185  	  hardcode_minus_L_F77=yes
15186  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15187  	  hardcode_libdir_separator_F77=
15188	  fi
15189	  ;;
15190	esac
15191	shared_flag='-shared'
15192	if test "$aix_use_runtimelinking" = yes; then
15193	  shared_flag="$shared_flag "'${wl}-G'
15194	fi
15195      else
15196	# not using gcc
15197	if test "$host_cpu" = ia64; then
15198  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15199  	# chokes on -Wl,-G. The following line is correct:
15200	  shared_flag='-G'
15201	else
15202	  if test "$aix_use_runtimelinking" = yes; then
15203	    shared_flag='${wl}-G'
15204	  else
15205	    shared_flag='${wl}-bM:SRE'
15206	  fi
15207	fi
15208      fi
15209
15210      # It seems that -bexpall does not export symbols beginning with
15211      # underscore (_), so it is better to generate a list of symbols to export.
15212      always_export_symbols_F77=yes
15213      if test "$aix_use_runtimelinking" = yes; then
15214	# Warning - without using the other runtime loading flags (-brtl),
15215	# -berok will link without error, but may produce a broken library.
15216	allow_undefined_flag_F77='-berok'
15217       # Determine the default libpath from the value encoded in an empty executable.
15218       cat >conftest.$ac_ext <<_ACEOF
15219      program main
15220
15221      end
15222_ACEOF
15223rm -f conftest.$ac_objext conftest$ac_exeext
15224if { (ac_try="$ac_link"
15225case "(($ac_try" in
15226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227  *) ac_try_echo=$ac_try;;
15228esac
15229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230$as_echo "$ac_try_echo") >&5
15231  (eval "$ac_link") 2>conftest.er1
15232  ac_status=$?
15233  grep -v '^ *+' conftest.er1 >conftest.err
15234  rm -f conftest.er1
15235  cat conftest.err >&5
15236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237  (exit $ac_status); } && {
15238	 test -z "$ac_f77_werror_flag" ||
15239	 test ! -s conftest.err
15240       } && test -s conftest$ac_exeext && {
15241	 test "$cross_compiling" = yes ||
15242	 $as_test_x conftest$ac_exeext
15243       }; then
15244
15245lt_aix_libpath_sed='
15246    /Import File Strings/,/^$/ {
15247	/^0/ {
15248	    s/^0  *\(.*\)$/\1/
15249	    p
15250	}
15251    }'
15252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15253# Check for a 64-bit object if we didn't find anything.
15254if test -z "$aix_libpath"; then
15255  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15256fi
15257else
15258  $as_echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261
15262fi
15263
15264rm -rf conftest.dSYM
15265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266      conftest$ac_exeext conftest.$ac_ext
15267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15268
15269       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15270	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"
15271       else
15272	if test "$host_cpu" = ia64; then
15273	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15274	  allow_undefined_flag_F77="-z nodefs"
15275	  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"
15276	else
15277	 # Determine the default libpath from the value encoded in an empty executable.
15278	 cat >conftest.$ac_ext <<_ACEOF
15279      program main
15280
15281      end
15282_ACEOF
15283rm -f conftest.$ac_objext conftest$ac_exeext
15284if { (ac_try="$ac_link"
15285case "(($ac_try" in
15286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287  *) ac_try_echo=$ac_try;;
15288esac
15289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15290$as_echo "$ac_try_echo") >&5
15291  (eval "$ac_link") 2>conftest.er1
15292  ac_status=$?
15293  grep -v '^ *+' conftest.er1 >conftest.err
15294  rm -f conftest.er1
15295  cat conftest.err >&5
15296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297  (exit $ac_status); } && {
15298	 test -z "$ac_f77_werror_flag" ||
15299	 test ! -s conftest.err
15300       } && test -s conftest$ac_exeext && {
15301	 test "$cross_compiling" = yes ||
15302	 $as_test_x conftest$ac_exeext
15303       }; then
15304
15305lt_aix_libpath_sed='
15306    /Import File Strings/,/^$/ {
15307	/^0/ {
15308	    s/^0  *\(.*\)$/\1/
15309	    p
15310	}
15311    }'
15312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15313# Check for a 64-bit object if we didn't find anything.
15314if test -z "$aix_libpath"; then
15315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15316fi
15317else
15318  $as_echo "$as_me: failed program was:" >&5
15319sed 's/^/| /' conftest.$ac_ext >&5
15320
15321
15322fi
15323
15324rm -rf conftest.dSYM
15325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326      conftest$ac_exeext conftest.$ac_ext
15327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15328
15329	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15330	  # Warning - without using the other run time loading flags,
15331	  # -berok will link without error, but may produce a broken library.
15332	  no_undefined_flag_F77=' ${wl}-bernotok'
15333	  allow_undefined_flag_F77=' ${wl}-berok'
15334	  # Exported symbols can be pulled into shared objects from archives
15335	  whole_archive_flag_spec_F77='$convenience'
15336	  archive_cmds_need_lc_F77=yes
15337	  # This is similar to how AIX traditionally builds its shared libraries.
15338	  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'
15339	fi
15340      fi
15341      ;;
15342
15343    amigaos*)
15344      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)'
15345      hardcode_libdir_flag_spec_F77='-L$libdir'
15346      hardcode_minus_L_F77=yes
15347      # see comment about different semantics on the GNU ld section
15348      ld_shlibs_F77=no
15349      ;;
15350
15351    bsdi[45]*)
15352      export_dynamic_flag_spec_F77=-rdynamic
15353      ;;
15354
15355    cygwin* | mingw* | pw32*)
15356      # When not using gcc, we currently assume that we are using
15357      # Microsoft Visual C++.
15358      # hardcode_libdir_flag_spec is actually meaningless, as there is
15359      # no search path for DLLs.
15360      hardcode_libdir_flag_spec_F77=' '
15361      allow_undefined_flag_F77=unsupported
15362      # Tell ltmain to make .lib files, not .a files.
15363      libext=lib
15364      # Tell ltmain to make .dll files, not .so files.
15365      shrext_cmds=".dll"
15366      # FIXME: Setting linknames here is a bad hack.
15367      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15368      # The linker will automatically build a .lib file if we build a DLL.
15369      old_archive_From_new_cmds_F77='true'
15370      # FIXME: Should let the user specify the lib program.
15371      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15372      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15373      enable_shared_with_static_runtimes_F77=yes
15374      ;;
15375
15376    darwin* | rhapsody*)
15377      case $host_os in
15378        rhapsody* | darwin1.[012])
15379         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15380         ;;
15381       *) # Darwin 1.3 on
15382         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15383           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15384         else
15385           case ${MACOSX_DEPLOYMENT_TARGET} in
15386             10.[012])
15387               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15388               ;;
15389             10.*)
15390               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15391               ;;
15392           esac
15393         fi
15394         ;;
15395      esac
15396      archive_cmds_need_lc_F77=no
15397      hardcode_direct_F77=no
15398      hardcode_automatic_F77=yes
15399      hardcode_shlibpath_var_F77=unsupported
15400      whole_archive_flag_spec_F77=''
15401      link_all_deplibs_F77=yes
15402    if test "$GCC" = yes ; then
15403    	output_verbose_link_cmd='echo'
15404        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}"
15405        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15406        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}"
15407        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}"
15408    else
15409      case $cc_basename in
15410        xlc*)
15411         output_verbose_link_cmd='echo'
15412         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15413         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15414          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15415         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}'
15416          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}'
15417          ;;
15418       *)
15419         ld_shlibs_F77=no
15420          ;;
15421      esac
15422    fi
15423      ;;
15424
15425    dgux*)
15426      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427      hardcode_libdir_flag_spec_F77='-L$libdir'
15428      hardcode_shlibpath_var_F77=no
15429      ;;
15430
15431    freebsd1*)
15432      ld_shlibs_F77=no
15433      ;;
15434
15435    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15436    # support.  Future versions do this automatically, but an explicit c++rt0.o
15437    # does not break anything, and helps significantly (at the cost of a little
15438    # extra space).
15439    freebsd2.2*)
15440      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15441      hardcode_libdir_flag_spec_F77='-R$libdir'
15442      hardcode_direct_F77=yes
15443      hardcode_shlibpath_var_F77=no
15444      ;;
15445
15446    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15447    freebsd2*)
15448      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15449      hardcode_direct_F77=yes
15450      hardcode_minus_L_F77=yes
15451      hardcode_shlibpath_var_F77=no
15452      ;;
15453
15454    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15455    freebsd* | dragonfly*)
15456      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15457      hardcode_libdir_flag_spec_F77='-R$libdir'
15458      hardcode_direct_F77=yes
15459      hardcode_shlibpath_var_F77=no
15460      ;;
15461
15462    hpux9*)
15463      if test "$GCC" = yes; then
15464	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'
15465      else
15466	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'
15467      fi
15468      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15469      hardcode_libdir_separator_F77=:
15470      hardcode_direct_F77=yes
15471
15472      # hardcode_minus_L: Not really in the search PATH,
15473      # but as the default location of the library.
15474      hardcode_minus_L_F77=yes
15475      export_dynamic_flag_spec_F77='${wl}-E'
15476      ;;
15477
15478    hpux10*)
15479      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15480	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15481      else
15482	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15483      fi
15484      if test "$with_gnu_ld" = no; then
15485	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486	hardcode_libdir_separator_F77=:
15487
15488	hardcode_direct_F77=yes
15489	export_dynamic_flag_spec_F77='${wl}-E'
15490
15491	# hardcode_minus_L: Not really in the search PATH,
15492	# but as the default location of the library.
15493	hardcode_minus_L_F77=yes
15494      fi
15495      ;;
15496
15497    hpux11*)
15498      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15499	case $host_cpu in
15500	hppa*64*)
15501	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502	  ;;
15503	ia64*)
15504	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15505	  ;;
15506	*)
15507	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15508	  ;;
15509	esac
15510      else
15511	case $host_cpu in
15512	hppa*64*)
15513	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514	  ;;
15515	ia64*)
15516	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15517	  ;;
15518	*)
15519	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15520	  ;;
15521	esac
15522      fi
15523      if test "$with_gnu_ld" = no; then
15524	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15525	hardcode_libdir_separator_F77=:
15526
15527	case $host_cpu in
15528	hppa*64*|ia64*)
15529	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15530	  hardcode_direct_F77=no
15531	  hardcode_shlibpath_var_F77=no
15532	  ;;
15533	*)
15534	  hardcode_direct_F77=yes
15535	  export_dynamic_flag_spec_F77='${wl}-E'
15536
15537	  # hardcode_minus_L: Not really in the search PATH,
15538	  # but as the default location of the library.
15539	  hardcode_minus_L_F77=yes
15540	  ;;
15541	esac
15542      fi
15543      ;;
15544
15545    irix5* | irix6* | nonstopux*)
15546      if test "$GCC" = yes; then
15547	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'
15548      else
15549	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'
15550	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15551      fi
15552      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15553      hardcode_libdir_separator_F77=:
15554      link_all_deplibs_F77=yes
15555      ;;
15556
15557    netbsd*)
15558      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15559	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15560      else
15561	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15562      fi
15563      hardcode_libdir_flag_spec_F77='-R$libdir'
15564      hardcode_direct_F77=yes
15565      hardcode_shlibpath_var_F77=no
15566      ;;
15567
15568    newsos6)
15569      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570      hardcode_direct_F77=yes
15571      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15572      hardcode_libdir_separator_F77=:
15573      hardcode_shlibpath_var_F77=no
15574      ;;
15575
15576    openbsd*)
15577      if test -f /usr/libexec/ld.so; then
15578	hardcode_direct_F77=yes
15579	hardcode_shlibpath_var_F77=no
15580	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15581	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15582	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15583	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15584	  export_dynamic_flag_spec_F77='${wl}-E'
15585	else
15586	  case $host_os in
15587	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15588	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589	     hardcode_libdir_flag_spec_F77='-R$libdir'
15590	     ;;
15591	   *)
15592	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15593	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15594	     ;;
15595	  esac
15596        fi
15597      else
15598	ld_shlibs_F77=no
15599      fi
15600      ;;
15601
15602    os2*)
15603      hardcode_libdir_flag_spec_F77='-L$libdir'
15604      hardcode_minus_L_F77=yes
15605      allow_undefined_flag_F77=unsupported
15606      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'
15607      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15608      ;;
15609
15610    osf3*)
15611      if test "$GCC" = yes; then
15612	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15613	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'
15614      else
15615	allow_undefined_flag_F77=' -expect_unresolved \*'
15616	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'
15617      fi
15618      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619      hardcode_libdir_separator_F77=:
15620      ;;
15621
15622    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15623      if test "$GCC" = yes; then
15624	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15625	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'
15626	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15627      else
15628	allow_undefined_flag_F77=' -expect_unresolved \*'
15629	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'
15630	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~
15631	$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'
15632
15633	# Both c and cxx compiler support -rpath directly
15634	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15635      fi
15636      hardcode_libdir_separator_F77=:
15637      ;;
15638
15639    solaris*)
15640      no_undefined_flag_F77=' -z text'
15641      if test "$GCC" = yes; then
15642	wlarc='${wl}'
15643	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15645	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15646      else
15647	wlarc=''
15648	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15650  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15651      fi
15652      hardcode_libdir_flag_spec_F77='-R$libdir'
15653      hardcode_shlibpath_var_F77=no
15654      case $host_os in
15655      solaris2.[0-5] | solaris2.[0-5].*) ;;
15656      *)
15657	# The compiler driver will combine and reorder linker options,
15658	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15659	# but is careful enough not to reorder.
15660 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15661	if test "$GCC" = yes; then
15662	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15663	else
15664	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15665	fi
15666	;;
15667      esac
15668      link_all_deplibs_F77=yes
15669      ;;
15670
15671    sunos4*)
15672      if test "x$host_vendor" = xsequent; then
15673	# Use $CC to link under sequent, because it throws in some extra .o
15674	# files that make .init and .fini sections work.
15675	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15676      else
15677	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15678      fi
15679      hardcode_libdir_flag_spec_F77='-L$libdir'
15680      hardcode_direct_F77=yes
15681      hardcode_minus_L_F77=yes
15682      hardcode_shlibpath_var_F77=no
15683      ;;
15684
15685    sysv4)
15686      case $host_vendor in
15687	sni)
15688	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15689	  hardcode_direct_F77=yes # is this really true???
15690	;;
15691	siemens)
15692	  ## LD is ld it makes a PLAMLIB
15693	  ## CC just makes a GrossModule.
15694	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15695	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15696	  hardcode_direct_F77=no
15697        ;;
15698	motorola)
15699	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15701	;;
15702      esac
15703      runpath_var='LD_RUN_PATH'
15704      hardcode_shlibpath_var_F77=no
15705      ;;
15706
15707    sysv4.3*)
15708      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709      hardcode_shlibpath_var_F77=no
15710      export_dynamic_flag_spec_F77='-Bexport'
15711      ;;
15712
15713    sysv4*MP*)
15714      if test -d /usr/nec; then
15715	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716	hardcode_shlibpath_var_F77=no
15717	runpath_var=LD_RUN_PATH
15718	hardcode_runpath_var=yes
15719	ld_shlibs_F77=yes
15720      fi
15721      ;;
15722
15723    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15724      no_undefined_flag_F77='${wl}-z,text'
15725      archive_cmds_need_lc_F77=no
15726      hardcode_shlibpath_var_F77=no
15727      runpath_var='LD_RUN_PATH'
15728
15729      if test "$GCC" = yes; then
15730	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732      else
15733	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15735      fi
15736      ;;
15737
15738    sysv5* | sco3.2v5* | sco5v6*)
15739      # Note: We can NOT use -z defs as we might desire, because we do not
15740      # link with -lc, and that would cause any symbols used from libc to
15741      # always be unresolved, which means just about no library would
15742      # ever link correctly.  If we're not using GNU ld we use -z text
15743      # though, which does catch some bad symbols but isn't as heavy-handed
15744      # as -z defs.
15745      no_undefined_flag_F77='${wl}-z,text'
15746      allow_undefined_flag_F77='${wl}-z,nodefs'
15747      archive_cmds_need_lc_F77=no
15748      hardcode_shlibpath_var_F77=no
15749      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15750      hardcode_libdir_separator_F77=':'
15751      link_all_deplibs_F77=yes
15752      export_dynamic_flag_spec_F77='${wl}-Bexport'
15753      runpath_var='LD_RUN_PATH'
15754
15755      if test "$GCC" = yes; then
15756	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758      else
15759	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15760	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761      fi
15762      ;;
15763
15764    uts4*)
15765      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15766      hardcode_libdir_flag_spec_F77='-L$libdir'
15767      hardcode_shlibpath_var_F77=no
15768      ;;
15769
15770    *)
15771      ld_shlibs_F77=no
15772      ;;
15773    esac
15774  fi
15775
15776{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15777$as_echo "$ld_shlibs_F77" >&6; }
15778test "$ld_shlibs_F77" = no && can_build_shared=no
15779
15780#
15781# Do we need to explicitly link libc?
15782#
15783case "x$archive_cmds_need_lc_F77" in
15784x|xyes)
15785  # Assume -lc should be added
15786  archive_cmds_need_lc_F77=yes
15787
15788  if test "$enable_shared" = yes && test "$GCC" = yes; then
15789    case $archive_cmds_F77 in
15790    *'~'*)
15791      # FIXME: we may have to deal with multi-command sequences.
15792      ;;
15793    '$CC '*)
15794      # Test whether the compiler implicitly links with -lc since on some
15795      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15796      # to ld, don't add -lc before -lgcc.
15797      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15798$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15799      $rm conftest*
15800      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15801
15802      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15803  (eval $ac_compile) 2>&5
15804  ac_status=$?
15805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806  (exit $ac_status); } 2>conftest.err; then
15807        soname=conftest
15808        lib=conftest
15809        libobjs=conftest.$ac_objext
15810        deplibs=
15811        wl=$lt_prog_compiler_wl_F77
15812	pic_flag=$lt_prog_compiler_pic_F77
15813        compiler_flags=-v
15814        linker_flags=-v
15815        verstring=
15816        output_objdir=.
15817        libname=conftest
15818        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15819        allow_undefined_flag_F77=
15820        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15821  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15822  ac_status=$?
15823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824  (exit $ac_status); }
15825        then
15826	  archive_cmds_need_lc_F77=no
15827        else
15828	  archive_cmds_need_lc_F77=yes
15829        fi
15830        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15831      else
15832        cat conftest.err 1>&5
15833      fi
15834      $rm conftest*
15835      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15836$as_echo "$archive_cmds_need_lc_F77" >&6; }
15837      ;;
15838    esac
15839  fi
15840  ;;
15841esac
15842
15843{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15844$as_echo_n "checking dynamic linker characteristics... " >&6; }
15845library_names_spec=
15846libname_spec='lib$name'
15847soname_spec=
15848shrext_cmds=".so"
15849postinstall_cmds=
15850postuninstall_cmds=
15851finish_cmds=
15852finish_eval=
15853shlibpath_var=
15854shlibpath_overrides_runpath=unknown
15855version_type=none
15856dynamic_linker="$host_os ld.so"
15857sys_lib_dlsearch_path_spec="/lib /usr/lib"
15858
15859need_lib_prefix=unknown
15860hardcode_into_libs=no
15861
15862# when you set need_version to no, make sure it does not cause -set_version
15863# flags to be left without arguments
15864need_version=unknown
15865
15866case $host_os in
15867aix3*)
15868  version_type=linux
15869  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15870  shlibpath_var=LIBPATH
15871
15872  # AIX 3 has no versioning support, so we append a major version to the name.
15873  soname_spec='${libname}${release}${shared_ext}$major'
15874  ;;
15875
15876aix[4-9]*)
15877  version_type=linux
15878  need_lib_prefix=no
15879  need_version=no
15880  hardcode_into_libs=yes
15881  if test "$host_cpu" = ia64; then
15882    # AIX 5 supports IA64
15883    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15884    shlibpath_var=LD_LIBRARY_PATH
15885  else
15886    # With GCC up to 2.95.x, collect2 would create an import file
15887    # for dependence libraries.  The import file would start with
15888    # the line `#! .'.  This would cause the generated library to
15889    # depend on `.', always an invalid library.  This was fixed in
15890    # development snapshots of GCC prior to 3.0.
15891    case $host_os in
15892      aix4 | aix4.[01] | aix4.[01].*)
15893      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15894	   echo ' yes '
15895	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15896	:
15897      else
15898	can_build_shared=no
15899      fi
15900      ;;
15901    esac
15902    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15903    # soname into executable. Probably we can add versioning support to
15904    # collect2, so additional links can be useful in future.
15905    if test "$aix_use_runtimelinking" = yes; then
15906      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15907      # instead of lib<name>.a to let people know that these are not
15908      # typical AIX shared libraries.
15909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910    else
15911      # We preserve .a as extension for shared libraries through AIX4.2
15912      # and later when we are not doing run time linking.
15913      library_names_spec='${libname}${release}.a $libname.a'
15914      soname_spec='${libname}${release}${shared_ext}$major'
15915    fi
15916    shlibpath_var=LIBPATH
15917  fi
15918  ;;
15919
15920amigaos*)
15921  library_names_spec='$libname.ixlibrary $libname.a'
15922  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15923  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'
15924  ;;
15925
15926beos*)
15927  library_names_spec='${libname}${shared_ext}'
15928  dynamic_linker="$host_os ld.so"
15929  shlibpath_var=LIBRARY_PATH
15930  ;;
15931
15932bsdi[45]*)
15933  version_type=linux
15934  need_version=no
15935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15936  soname_spec='${libname}${release}${shared_ext}$major'
15937  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15938  shlibpath_var=LD_LIBRARY_PATH
15939  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15940  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15941  # the default ld.so.conf also contains /usr/contrib/lib and
15942  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15943  # libtool to hard-code these into programs
15944  ;;
15945
15946cygwin* | mingw* | pw32*)
15947  version_type=windows
15948  shrext_cmds=".dll"
15949  need_version=no
15950  need_lib_prefix=no
15951
15952  case $GCC,$host_os in
15953  yes,cygwin* | yes,mingw* | yes,pw32*)
15954    library_names_spec='$libname.dll.a'
15955    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15956    postinstall_cmds='base_file=`basename \${file}`~
15957      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15958      dldir=$destdir/`dirname \$dlpath`~
15959      test -d \$dldir || mkdir -p \$dldir~
15960      $install_prog $dir/$dlname \$dldir/$dlname~
15961      chmod a+x \$dldir/$dlname'
15962    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15963      dlpath=$dir/\$dldll~
15964       $rm \$dlpath'
15965    shlibpath_overrides_runpath=yes
15966
15967    case $host_os in
15968    cygwin*)
15969      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15970      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15971      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15972      ;;
15973    mingw*)
15974      # MinGW DLLs use traditional 'lib' prefix
15975      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15976      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15977      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15978        # It is most probably a Windows format PATH printed by
15979        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15980        # path with ; separators, and with drive letters. We can handle the
15981        # drive letters (cygwin fileutils understands them), so leave them,
15982        # especially as we might pass files found there to a mingw objdump,
15983        # which wouldn't understand a cygwinified path. Ahh.
15984        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15985      else
15986        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15987      fi
15988      ;;
15989    pw32*)
15990      # pw32 DLLs use 'pw' prefix rather than 'lib'
15991      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15992      ;;
15993    esac
15994    ;;
15995
15996  *)
15997    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15998    ;;
15999  esac
16000  dynamic_linker='Win32 ld.exe'
16001  # FIXME: first we should search . and the directory the executable is in
16002  shlibpath_var=PATH
16003  ;;
16004
16005darwin* | rhapsody*)
16006  dynamic_linker="$host_os dyld"
16007  version_type=darwin
16008  need_lib_prefix=no
16009  need_version=no
16010  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16011  soname_spec='${libname}${release}${major}$shared_ext'
16012  shlibpath_overrides_runpath=yes
16013  shlibpath_var=DYLD_LIBRARY_PATH
16014  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16015
16016  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16017  ;;
16018
16019dgux*)
16020  version_type=linux
16021  need_lib_prefix=no
16022  need_version=no
16023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16024  soname_spec='${libname}${release}${shared_ext}$major'
16025  shlibpath_var=LD_LIBRARY_PATH
16026  ;;
16027
16028freebsd1*)
16029  dynamic_linker=no
16030  ;;
16031
16032freebsd* | dragonfly*)
16033  # DragonFly does not have aout.  When/if they implement a new
16034  # versioning mechanism, adjust this.
16035  if test -x /usr/bin/objformat; then
16036    objformat=`/usr/bin/objformat`
16037  else
16038    case $host_os in
16039    freebsd[123]*) objformat=aout ;;
16040    *) objformat=elf ;;
16041    esac
16042  fi
16043  version_type=freebsd-$objformat
16044  case $version_type in
16045    freebsd-elf*)
16046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16047      need_version=no
16048      need_lib_prefix=no
16049      ;;
16050    freebsd-*)
16051      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16052      need_version=yes
16053      ;;
16054  esac
16055  shlibpath_var=LD_LIBRARY_PATH
16056  case $host_os in
16057  freebsd2*)
16058    shlibpath_overrides_runpath=yes
16059    ;;
16060  freebsd3.[01]* | freebsdelf3.[01]*)
16061    shlibpath_overrides_runpath=yes
16062    hardcode_into_libs=yes
16063    ;;
16064  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16065  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16066    shlibpath_overrides_runpath=no
16067    hardcode_into_libs=yes
16068    ;;
16069  *) # from 4.6 on, and DragonFly
16070    shlibpath_overrides_runpath=yes
16071    hardcode_into_libs=yes
16072    ;;
16073  esac
16074  ;;
16075
16076gnu*)
16077  version_type=linux
16078  need_lib_prefix=no
16079  need_version=no
16080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16081  soname_spec='${libname}${release}${shared_ext}$major'
16082  shlibpath_var=LD_LIBRARY_PATH
16083  hardcode_into_libs=yes
16084  ;;
16085
16086hpux9* | hpux10* | hpux11*)
16087  # Give a soname corresponding to the major version so that dld.sl refuses to
16088  # link against other versions.
16089  version_type=sunos
16090  need_lib_prefix=no
16091  need_version=no
16092  case $host_cpu in
16093  ia64*)
16094    shrext_cmds='.so'
16095    hardcode_into_libs=yes
16096    dynamic_linker="$host_os dld.so"
16097    shlibpath_var=LD_LIBRARY_PATH
16098    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100    soname_spec='${libname}${release}${shared_ext}$major'
16101    if test "X$HPUX_IA64_MODE" = X32; then
16102      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16103    else
16104      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16105    fi
16106    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16107    ;;
16108   hppa*64*)
16109     shrext_cmds='.sl'
16110     hardcode_into_libs=yes
16111     dynamic_linker="$host_os dld.sl"
16112     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115     soname_spec='${libname}${release}${shared_ext}$major'
16116     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16117     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16118     ;;
16119   *)
16120    shrext_cmds='.sl'
16121    dynamic_linker="$host_os dld.sl"
16122    shlibpath_var=SHLIB_PATH
16123    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16124    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125    soname_spec='${libname}${release}${shared_ext}$major'
16126    ;;
16127  esac
16128  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16129  postinstall_cmds='chmod 555 $lib'
16130  ;;
16131
16132interix[3-9]*)
16133  version_type=linux
16134  need_lib_prefix=no
16135  need_version=no
16136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16137  soname_spec='${libname}${release}${shared_ext}$major'
16138  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16139  shlibpath_var=LD_LIBRARY_PATH
16140  shlibpath_overrides_runpath=no
16141  hardcode_into_libs=yes
16142  ;;
16143
16144irix5* | irix6* | nonstopux*)
16145  case $host_os in
16146    nonstopux*) version_type=nonstopux ;;
16147    *)
16148	if test "$lt_cv_prog_gnu_ld" = yes; then
16149		version_type=linux
16150	else
16151		version_type=irix
16152	fi ;;
16153  esac
16154  need_lib_prefix=no
16155  need_version=no
16156  soname_spec='${libname}${release}${shared_ext}$major'
16157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16158  case $host_os in
16159  irix5* | nonstopux*)
16160    libsuff= shlibsuff=
16161    ;;
16162  *)
16163    case $LD in # libtool.m4 will add one of these switches to LD
16164    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16165      libsuff= shlibsuff= libmagic=32-bit;;
16166    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16167      libsuff=32 shlibsuff=N32 libmagic=N32;;
16168    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16169      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16170    *) libsuff= shlibsuff= libmagic=never-match;;
16171    esac
16172    ;;
16173  esac
16174  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16175  shlibpath_overrides_runpath=no
16176  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16177  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16178  hardcode_into_libs=yes
16179  ;;
16180
16181# No shared lib support for Linux oldld, aout, or coff.
16182linux*oldld* | linux*aout* | linux*coff*)
16183  dynamic_linker=no
16184  ;;
16185
16186# This must be Linux ELF.
16187linux* | k*bsd*-gnu)
16188  version_type=linux
16189  need_lib_prefix=no
16190  need_version=no
16191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192  soname_spec='${libname}${release}${shared_ext}$major'
16193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16194  shlibpath_var=LD_LIBRARY_PATH
16195  shlibpath_overrides_runpath=no
16196  # This implies no fast_install, which is unacceptable.
16197  # Some rework will be needed to allow for fast_install
16198  # before this can be enabled.
16199  hardcode_into_libs=yes
16200  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16201  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16202
16203  # Append ld.so.conf contents to the search path
16204  if test -f /etc/ld.so.conf; then
16205    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' ' '`
16206    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16207  fi
16208
16209  # We used to test for /lib/ld.so.1 and disable shared libraries on
16210  # powerpc, because MkLinux only supported shared libraries with the
16211  # GNU dynamic linker.  Since this was broken with cross compilers,
16212  # most powerpc-linux boxes support dynamic linking these days and
16213  # people can always --disable-shared, the test was removed, and we
16214  # assume the GNU/Linux dynamic linker is in use.
16215  dynamic_linker='GNU/Linux ld.so'
16216  ;;
16217
16218netbsd*)
16219  version_type=sunos
16220  need_lib_prefix=no
16221  need_version=no
16222  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16224    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16225    dynamic_linker='NetBSD (a.out) ld.so'
16226  else
16227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16228    soname_spec='${libname}${release}${shared_ext}$major'
16229    dynamic_linker='NetBSD ld.elf_so'
16230  fi
16231  shlibpath_var=LD_LIBRARY_PATH
16232  shlibpath_overrides_runpath=yes
16233  hardcode_into_libs=yes
16234  ;;
16235
16236newsos6)
16237  version_type=linux
16238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239  shlibpath_var=LD_LIBRARY_PATH
16240  shlibpath_overrides_runpath=yes
16241  ;;
16242
16243nto-qnx*)
16244  version_type=linux
16245  need_lib_prefix=no
16246  need_version=no
16247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248  soname_spec='${libname}${release}${shared_ext}$major'
16249  shlibpath_var=LD_LIBRARY_PATH
16250  shlibpath_overrides_runpath=yes
16251  ;;
16252
16253openbsd*)
16254  version_type=sunos
16255  sys_lib_dlsearch_path_spec="/usr/lib"
16256  need_lib_prefix=no
16257  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16258  case $host_os in
16259    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16260    *)                         need_version=no  ;;
16261  esac
16262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264  shlibpath_var=LD_LIBRARY_PATH
16265  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16266    case $host_os in
16267      openbsd2.[89] | openbsd2.[89].*)
16268	shlibpath_overrides_runpath=no
16269	;;
16270      *)
16271	shlibpath_overrides_runpath=yes
16272	;;
16273      esac
16274  else
16275    shlibpath_overrides_runpath=yes
16276  fi
16277  ;;
16278
16279os2*)
16280  libname_spec='$name'
16281  shrext_cmds=".dll"
16282  need_lib_prefix=no
16283  library_names_spec='$libname${shared_ext} $libname.a'
16284  dynamic_linker='OS/2 ld.exe'
16285  shlibpath_var=LIBPATH
16286  ;;
16287
16288osf3* | osf4* | osf5*)
16289  version_type=osf
16290  need_lib_prefix=no
16291  need_version=no
16292  soname_spec='${libname}${release}${shared_ext}$major'
16293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294  shlibpath_var=LD_LIBRARY_PATH
16295  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16296  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16297  ;;
16298
16299rdos*)
16300  dynamic_linker=no
16301  ;;
16302
16303solaris*)
16304  version_type=linux
16305  need_lib_prefix=no
16306  need_version=no
16307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308  soname_spec='${libname}${release}${shared_ext}$major'
16309  shlibpath_var=LD_LIBRARY_PATH
16310  shlibpath_overrides_runpath=yes
16311  hardcode_into_libs=yes
16312  # ldd complains unless libraries are executable
16313  postinstall_cmds='chmod +x $lib'
16314  ;;
16315
16316sunos4*)
16317  version_type=sunos
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16319  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  if test "$with_gnu_ld" = yes; then
16323    need_lib_prefix=no
16324  fi
16325  need_version=yes
16326  ;;
16327
16328sysv4 | sysv4.3*)
16329  version_type=linux
16330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331  soname_spec='${libname}${release}${shared_ext}$major'
16332  shlibpath_var=LD_LIBRARY_PATH
16333  case $host_vendor in
16334    sni)
16335      shlibpath_overrides_runpath=no
16336      need_lib_prefix=no
16337      export_dynamic_flag_spec='${wl}-Blargedynsym'
16338      runpath_var=LD_RUN_PATH
16339      ;;
16340    siemens)
16341      need_lib_prefix=no
16342      ;;
16343    motorola)
16344      need_lib_prefix=no
16345      need_version=no
16346      shlibpath_overrides_runpath=no
16347      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16348      ;;
16349  esac
16350  ;;
16351
16352sysv4*MP*)
16353  if test -d /usr/nec ;then
16354    version_type=linux
16355    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16356    soname_spec='$libname${shared_ext}.$major'
16357    shlibpath_var=LD_LIBRARY_PATH
16358  fi
16359  ;;
16360
16361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16362  version_type=freebsd-elf
16363  need_lib_prefix=no
16364  need_version=no
16365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16366  soname_spec='${libname}${release}${shared_ext}$major'
16367  shlibpath_var=LD_LIBRARY_PATH
16368  hardcode_into_libs=yes
16369  if test "$with_gnu_ld" = yes; then
16370    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16371    shlibpath_overrides_runpath=no
16372  else
16373    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16374    shlibpath_overrides_runpath=yes
16375    case $host_os in
16376      sco3.2v5*)
16377        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16378	;;
16379    esac
16380  fi
16381  sys_lib_dlsearch_path_spec='/usr/lib'
16382  ;;
16383
16384uts4*)
16385  version_type=linux
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387  soname_spec='${libname}${release}${shared_ext}$major'
16388  shlibpath_var=LD_LIBRARY_PATH
16389  ;;
16390
16391*)
16392  dynamic_linker=no
16393  ;;
16394esac
16395{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16396$as_echo "$dynamic_linker" >&6; }
16397test "$dynamic_linker" = no && can_build_shared=no
16398
16399if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16400  $as_echo_n "(cached) " >&6
16401else
16402  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16403fi
16404
16405sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16406if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16407  $as_echo_n "(cached) " >&6
16408else
16409  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16410fi
16411
16412sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16413
16414variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16415if test "$GCC" = yes; then
16416  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16417fi
16418
16419{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16420$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16421hardcode_action_F77=
16422if test -n "$hardcode_libdir_flag_spec_F77" || \
16423   test -n "$runpath_var_F77" || \
16424   test "X$hardcode_automatic_F77" = "Xyes" ; then
16425
16426  # We can hardcode non-existant directories.
16427  if test "$hardcode_direct_F77" != no &&
16428     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16429     # have to relink, otherwise we might link with an installed library
16430     # when we should be linking with a yet-to-be-installed one
16431     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16432     test "$hardcode_minus_L_F77" != no; then
16433    # Linking always hardcodes the temporary library directory.
16434    hardcode_action_F77=relink
16435  else
16436    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16437    hardcode_action_F77=immediate
16438  fi
16439else
16440  # We cannot hardcode anything, or else we can only hardcode existing
16441  # directories.
16442  hardcode_action_F77=unsupported
16443fi
16444{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16445$as_echo "$hardcode_action_F77" >&6; }
16446
16447if test "$hardcode_action_F77" = relink; then
16448  # Fast installation is not supported
16449  enable_fast_install=no
16450elif test "$shlibpath_overrides_runpath" = yes ||
16451     test "$enable_shared" = no; then
16452  # Fast installation is not necessary
16453  enable_fast_install=needless
16454fi
16455
16456
16457# The else clause should only fire when bootstrapping the
16458# libtool distribution, otherwise you forgot to ship ltmain.sh
16459# with your package, and you will get complaints that there are
16460# no rules to generate ltmain.sh.
16461if test -f "$ltmain"; then
16462  # See if we are running on zsh, and set the options which allow our commands through
16463  # without removal of \ escapes.
16464  if test -n "${ZSH_VERSION+set}" ; then
16465    setopt NO_GLOB_SUBST
16466  fi
16467  # Now quote all the things that may contain metacharacters while being
16468  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16469  # variables and quote the copies for generation of the libtool script.
16470  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16471    SED SHELL STRIP \
16472    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16473    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16474    deplibs_check_method reload_flag reload_cmds need_locks \
16475    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16476    lt_cv_sys_global_symbol_to_c_name_address \
16477    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16478    old_postinstall_cmds old_postuninstall_cmds \
16479    compiler_F77 \
16480    CC_F77 \
16481    LD_F77 \
16482    lt_prog_compiler_wl_F77 \
16483    lt_prog_compiler_pic_F77 \
16484    lt_prog_compiler_static_F77 \
16485    lt_prog_compiler_no_builtin_flag_F77 \
16486    export_dynamic_flag_spec_F77 \
16487    thread_safe_flag_spec_F77 \
16488    whole_archive_flag_spec_F77 \
16489    enable_shared_with_static_runtimes_F77 \
16490    old_archive_cmds_F77 \
16491    old_archive_from_new_cmds_F77 \
16492    predep_objects_F77 \
16493    postdep_objects_F77 \
16494    predeps_F77 \
16495    postdeps_F77 \
16496    compiler_lib_search_path_F77 \
16497    compiler_lib_search_dirs_F77 \
16498    archive_cmds_F77 \
16499    archive_expsym_cmds_F77 \
16500    postinstall_cmds_F77 \
16501    postuninstall_cmds_F77 \
16502    old_archive_from_expsyms_cmds_F77 \
16503    allow_undefined_flag_F77 \
16504    no_undefined_flag_F77 \
16505    export_symbols_cmds_F77 \
16506    hardcode_libdir_flag_spec_F77 \
16507    hardcode_libdir_flag_spec_ld_F77 \
16508    hardcode_libdir_separator_F77 \
16509    hardcode_automatic_F77 \
16510    module_cmds_F77 \
16511    module_expsym_cmds_F77 \
16512    lt_cv_prog_compiler_c_o_F77 \
16513    fix_srcfile_path_F77 \
16514    exclude_expsyms_F77 \
16515    include_expsyms_F77; do
16516
16517    case $var in
16518    old_archive_cmds_F77 | \
16519    old_archive_from_new_cmds_F77 | \
16520    archive_cmds_F77 | \
16521    archive_expsym_cmds_F77 | \
16522    module_cmds_F77 | \
16523    module_expsym_cmds_F77 | \
16524    old_archive_from_expsyms_cmds_F77 | \
16525    export_symbols_cmds_F77 | \
16526    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16527    postinstall_cmds | postuninstall_cmds | \
16528    old_postinstall_cmds | old_postuninstall_cmds | \
16529    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16530      # Double-quote double-evaled strings.
16531      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16532      ;;
16533    *)
16534      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16535      ;;
16536    esac
16537  done
16538
16539  case $lt_echo in
16540  *'\$0 --fallback-echo"')
16541    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16542    ;;
16543  esac
16544
16545cfgfile="$ofile"
16546
16547  cat <<__EOF__ >> "$cfgfile"
16548# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16549
16550# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16551
16552# Shell to use when invoking shell scripts.
16553SHELL=$lt_SHELL
16554
16555# Whether or not to build shared libraries.
16556build_libtool_libs=$enable_shared
16557
16558# Whether or not to build static libraries.
16559build_old_libs=$enable_static
16560
16561# Whether or not to add -lc for building shared libraries.
16562build_libtool_need_lc=$archive_cmds_need_lc_F77
16563
16564# Whether or not to disallow shared libs when runtime libs are static
16565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16566
16567# Whether or not to optimize for fast installation.
16568fast_install=$enable_fast_install
16569
16570# The host system.
16571host_alias=$host_alias
16572host=$host
16573host_os=$host_os
16574
16575# The build system.
16576build_alias=$build_alias
16577build=$build
16578build_os=$build_os
16579
16580# An echo program that does not interpret backslashes.
16581echo=$lt_echo
16582
16583# The archiver.
16584AR=$lt_AR
16585AR_FLAGS=$lt_AR_FLAGS
16586
16587# A C compiler.
16588LTCC=$lt_LTCC
16589
16590# LTCC compiler flags.
16591LTCFLAGS=$lt_LTCFLAGS
16592
16593# A language-specific compiler.
16594CC=$lt_compiler_F77
16595
16596# Is the compiler the GNU C compiler?
16597with_gcc=$GCC_F77
16598
16599# An ERE matcher.
16600EGREP=$lt_EGREP
16601
16602# The linker used to build libraries.
16603LD=$lt_LD_F77
16604
16605# Whether we need hard or soft links.
16606LN_S=$lt_LN_S
16607
16608# A BSD-compatible nm program.
16609NM=$lt_NM
16610
16611# A symbol stripping program
16612STRIP=$lt_STRIP
16613
16614# Used to examine libraries when file_magic_cmd begins "file"
16615MAGIC_CMD=$MAGIC_CMD
16616
16617# Used on cygwin: DLL creation program.
16618DLLTOOL="$DLLTOOL"
16619
16620# Used on cygwin: object dumper.
16621OBJDUMP="$OBJDUMP"
16622
16623# Used on cygwin: assembler.
16624AS="$AS"
16625
16626# The name of the directory that contains temporary libtool files.
16627objdir=$objdir
16628
16629# How to create reloadable object files.
16630reload_flag=$lt_reload_flag
16631reload_cmds=$lt_reload_cmds
16632
16633# How to pass a linker flag through the compiler.
16634wl=$lt_lt_prog_compiler_wl_F77
16635
16636# Object file suffix (normally "o").
16637objext="$ac_objext"
16638
16639# Old archive suffix (normally "a").
16640libext="$libext"
16641
16642# Shared library suffix (normally ".so").
16643shrext_cmds='$shrext_cmds'
16644
16645# Executable file suffix (normally "").
16646exeext="$exeext"
16647
16648# Additional compiler flags for building library objects.
16649pic_flag=$lt_lt_prog_compiler_pic_F77
16650pic_mode=$pic_mode
16651
16652# What is the maximum length of a command?
16653max_cmd_len=$lt_cv_sys_max_cmd_len
16654
16655# Does compiler simultaneously support -c and -o options?
16656compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16657
16658# Must we lock files when doing compilation?
16659need_locks=$lt_need_locks
16660
16661# Do we need the lib prefix for modules?
16662need_lib_prefix=$need_lib_prefix
16663
16664# Do we need a version for libraries?
16665need_version=$need_version
16666
16667# Whether dlopen is supported.
16668dlopen_support=$enable_dlopen
16669
16670# Whether dlopen of programs is supported.
16671dlopen_self=$enable_dlopen_self
16672
16673# Whether dlopen of statically linked programs is supported.
16674dlopen_self_static=$enable_dlopen_self_static
16675
16676# Compiler flag to prevent dynamic linking.
16677link_static_flag=$lt_lt_prog_compiler_static_F77
16678
16679# Compiler flag to turn off builtin functions.
16680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16681
16682# Compiler flag to allow reflexive dlopens.
16683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16684
16685# Compiler flag to generate shared objects directly from archives.
16686whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16687
16688# Compiler flag to generate thread-safe objects.
16689thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16690
16691# Library versioning type.
16692version_type=$version_type
16693
16694# Format of library name prefix.
16695libname_spec=$lt_libname_spec
16696
16697# List of archive names.  First name is the real one, the rest are links.
16698# The last name is the one that the linker finds with -lNAME.
16699library_names_spec=$lt_library_names_spec
16700
16701# The coded name of the library, if different from the real name.
16702soname_spec=$lt_soname_spec
16703
16704# Commands used to build and install an old-style archive.
16705RANLIB=$lt_RANLIB
16706old_archive_cmds=$lt_old_archive_cmds_F77
16707old_postinstall_cmds=$lt_old_postinstall_cmds
16708old_postuninstall_cmds=$lt_old_postuninstall_cmds
16709
16710# Create an old-style archive from a shared archive.
16711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16712
16713# Create a temporary old-style archive to link instead of a shared archive.
16714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16715
16716# Commands used to build and install a shared archive.
16717archive_cmds=$lt_archive_cmds_F77
16718archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16719postinstall_cmds=$lt_postinstall_cmds
16720postuninstall_cmds=$lt_postuninstall_cmds
16721
16722# Commands used to build a loadable module (assumed same as above if empty)
16723module_cmds=$lt_module_cmds_F77
16724module_expsym_cmds=$lt_module_expsym_cmds_F77
16725
16726# Commands to strip libraries.
16727old_striplib=$lt_old_striplib
16728striplib=$lt_striplib
16729
16730# Dependencies to place before the objects being linked to create a
16731# shared library.
16732predep_objects=$lt_predep_objects_F77
16733
16734# Dependencies to place after the objects being linked to create a
16735# shared library.
16736postdep_objects=$lt_postdep_objects_F77
16737
16738# Dependencies to place before the objects being linked to create a
16739# shared library.
16740predeps=$lt_predeps_F77
16741
16742# Dependencies to place after the objects being linked to create a
16743# shared library.
16744postdeps=$lt_postdeps_F77
16745
16746# The directories searched by this compiler when creating a shared
16747# library
16748compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16749
16750# The library search path used internally by the compiler when linking
16751# a shared library.
16752compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16753
16754# Method to check whether dependent libraries are shared objects.
16755deplibs_check_method=$lt_deplibs_check_method
16756
16757# Command to use when deplibs_check_method == file_magic.
16758file_magic_cmd=$lt_file_magic_cmd
16759
16760# Flag that allows shared libraries with undefined symbols to be built.
16761allow_undefined_flag=$lt_allow_undefined_flag_F77
16762
16763# Flag that forces no undefined symbols.
16764no_undefined_flag=$lt_no_undefined_flag_F77
16765
16766# Commands used to finish a libtool library installation in a directory.
16767finish_cmds=$lt_finish_cmds
16768
16769# Same as above, but a single script fragment to be evaled but not shown.
16770finish_eval=$lt_finish_eval
16771
16772# Take the output of nm and produce a listing of raw symbols and C names.
16773global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16774
16775# Transform the output of nm in a proper C declaration
16776global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16777
16778# Transform the output of nm in a C name address pair
16779global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16780
16781# This is the shared library runtime path variable.
16782runpath_var=$runpath_var
16783
16784# This is the shared library path variable.
16785shlibpath_var=$shlibpath_var
16786
16787# Is shlibpath searched before the hard-coded library search path?
16788shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16789
16790# How to hardcode a shared library path into an executable.
16791hardcode_action=$hardcode_action_F77
16792
16793# Whether we should hardcode library paths into libraries.
16794hardcode_into_libs=$hardcode_into_libs
16795
16796# Flag to hardcode \$libdir into a binary during linking.
16797# This must work even if \$libdir does not exist.
16798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16799
16800# If ld is used when linking, flag to hardcode \$libdir into
16801# a binary during linking. This must work even if \$libdir does
16802# not exist.
16803hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16804
16805# Whether we need a single -rpath flag with a separated argument.
16806hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16807
16808# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16809# resulting binary.
16810hardcode_direct=$hardcode_direct_F77
16811
16812# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16813# resulting binary.
16814hardcode_minus_L=$hardcode_minus_L_F77
16815
16816# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16817# the resulting binary.
16818hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16819
16820# Set to yes if building a shared library automatically hardcodes DIR into the library
16821# and all subsequent libraries and executables linked against it.
16822hardcode_automatic=$hardcode_automatic_F77
16823
16824# Variables whose values should be saved in libtool wrapper scripts and
16825# restored at relink time.
16826variables_saved_for_relink="$variables_saved_for_relink"
16827
16828# Whether libtool must link a program against all its dependency libraries.
16829link_all_deplibs=$link_all_deplibs_F77
16830
16831# Compile-time system search path for libraries
16832sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16833
16834# Run-time system search path for libraries
16835sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16836
16837# Fix the shell variable \$srcfile for the compiler.
16838fix_srcfile_path=$lt_fix_srcfile_path
16839
16840# Set to yes if exported symbols are required.
16841always_export_symbols=$always_export_symbols_F77
16842
16843# The commands to list exported symbols.
16844export_symbols_cmds=$lt_export_symbols_cmds_F77
16845
16846# The commands to extract the exported symbol list from a shared archive.
16847extract_expsyms_cmds=$lt_extract_expsyms_cmds
16848
16849# Symbols that should not be listed in the preloaded symbols.
16850exclude_expsyms=$lt_exclude_expsyms_F77
16851
16852# Symbols that must always be exported.
16853include_expsyms=$lt_include_expsyms_F77
16854
16855# ### END LIBTOOL TAG CONFIG: $tagname
16856
16857__EOF__
16858
16859
16860else
16861  # If there is no Makefile yet, we rely on a make rule to execute
16862  # `config.status --recheck' to rerun these tests and create the
16863  # libtool script then.
16864  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16865  if test -f "$ltmain_in"; then
16866    test -f Makefile && make "$ltmain"
16867  fi
16868fi
16869
16870
16871ac_ext=c
16872ac_cpp='$CPP $CPPFLAGS'
16873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875ac_compiler_gnu=$ac_cv_c_compiler_gnu
16876
16877CC="$lt_save_CC"
16878
16879	else
16880	  tagname=""
16881	fi
16882	;;
16883
16884      GCJ)
16885	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16886
16887
16888# Source file extension for Java test sources.
16889ac_ext=java
16890
16891# Object file extension for compiled Java test sources.
16892objext=o
16893objext_GCJ=$objext
16894
16895# Code to be used in simple compile tests
16896lt_simple_compile_test_code="class foo {}"
16897
16898# Code to be used in simple link tests
16899lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16900
16901# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16902
16903# If no C compiler was specified, use CC.
16904LTCC=${LTCC-"$CC"}
16905
16906# If no C compiler flags were specified, use CFLAGS.
16907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16908
16909# Allow CC to be a program name with arguments.
16910compiler=$CC
16911
16912
16913# save warnings/boilerplate of simple test code
16914ac_outfile=conftest.$ac_objext
16915echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16917_lt_compiler_boilerplate=`cat conftest.err`
16918$rm conftest*
16919
16920ac_outfile=conftest.$ac_objext
16921echo "$lt_simple_link_test_code" >conftest.$ac_ext
16922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923_lt_linker_boilerplate=`cat conftest.err`
16924$rm -r conftest*
16925
16926
16927# Allow CC to be a program name with arguments.
16928lt_save_CC="$CC"
16929CC=${GCJ-"gcj"}
16930compiler=$CC
16931compiler_GCJ=$CC
16932for cc_temp in $compiler""; do
16933  case $cc_temp in
16934    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16935    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16936    \-*) ;;
16937    *) break;;
16938  esac
16939done
16940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16941
16942
16943# GCJ did not exist at the time GCC didn't implicitly link libc in.
16944archive_cmds_need_lc_GCJ=no
16945
16946old_archive_cmds_GCJ=$old_archive_cmds
16947
16948
16949lt_prog_compiler_no_builtin_flag_GCJ=
16950
16951if test "$GCC" = yes; then
16952  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16953
16954
16955{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16956$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16957if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16958  $as_echo_n "(cached) " >&6
16959else
16960  lt_cv_prog_compiler_rtti_exceptions=no
16961  ac_outfile=conftest.$ac_objext
16962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16963   lt_compiler_flag="-fno-rtti -fno-exceptions"
16964   # Insert the option either (1) after the last *FLAGS variable, or
16965   # (2) before a word containing "conftest.", or (3) at the end.
16966   # Note that $ac_compile itself does not contain backslashes and begins
16967   # with a dollar sign (not a hyphen), so the echo should work correctly.
16968   # The option is referenced via a variable to avoid confusing sed.
16969   lt_compile=`echo "$ac_compile" | $SED \
16970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16972   -e 's:$: $lt_compiler_flag:'`
16973   (eval echo "\"\$as_me:16973: $lt_compile\"" >&5)
16974   (eval "$lt_compile" 2>conftest.err)
16975   ac_status=$?
16976   cat conftest.err >&5
16977   echo "$as_me:16977: \$? = $ac_status" >&5
16978   if (exit $ac_status) && test -s "$ac_outfile"; then
16979     # The compiler can only warn and ignore the option if not recognized
16980     # So say no if there are warnings other than the usual output.
16981     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16982     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16983     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16984       lt_cv_prog_compiler_rtti_exceptions=yes
16985     fi
16986   fi
16987   $rm conftest*
16988
16989fi
16990{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16991$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16992
16993if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16994    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16995else
16996    :
16997fi
16998
16999fi
17000
17001lt_prog_compiler_wl_GCJ=
17002lt_prog_compiler_pic_GCJ=
17003lt_prog_compiler_static_GCJ=
17004
17005{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17006$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17007
17008  if test "$GCC" = yes; then
17009    lt_prog_compiler_wl_GCJ='-Wl,'
17010    lt_prog_compiler_static_GCJ='-static'
17011
17012    case $host_os in
17013      aix*)
17014      # All AIX code is PIC.
17015      if test "$host_cpu" = ia64; then
17016	# AIX 5 now supports IA64 processor
17017	lt_prog_compiler_static_GCJ='-Bstatic'
17018      fi
17019      ;;
17020
17021    amigaos*)
17022      # FIXME: we need at least 68020 code to build shared libraries, but
17023      # adding the `-m68020' flag to GCC prevents building anything better,
17024      # like `-m68040'.
17025      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17026      ;;
17027
17028    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17029      # PIC is the default for these OSes.
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      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17036      # (--disable-auto-import) libraries
17037
17038      ;;
17039
17040    darwin* | rhapsody*)
17041      # PIC is the default on this platform
17042      # Common symbols not allowed in MH_DYLIB files
17043      lt_prog_compiler_pic_GCJ='-fno-common'
17044      ;;
17045
17046    interix[3-9]*)
17047      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17048      # Instead, we relocate shared libraries at runtime.
17049      ;;
17050
17051    msdosdjgpp*)
17052      # Just because we use GCC doesn't mean we suddenly get shared libraries
17053      # on systems that don't support them.
17054      lt_prog_compiler_can_build_shared_GCJ=no
17055      enable_shared=no
17056      ;;
17057
17058    sysv4*MP*)
17059      if test -d /usr/nec; then
17060	lt_prog_compiler_pic_GCJ=-Kconform_pic
17061      fi
17062      ;;
17063
17064    hpux*)
17065      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17066      # not for PA HP-UX.
17067      case $host_cpu in
17068      hppa*64*|ia64*)
17069	# +Z the default
17070	;;
17071      *)
17072	lt_prog_compiler_pic_GCJ='-fPIC'
17073	;;
17074      esac
17075      ;;
17076
17077    *)
17078      lt_prog_compiler_pic_GCJ='-fPIC'
17079      ;;
17080    esac
17081  else
17082    # PORTME Check for flag to pass linker flags through the system compiler.
17083    case $host_os in
17084    aix*)
17085      lt_prog_compiler_wl_GCJ='-Wl,'
17086      if test "$host_cpu" = ia64; then
17087	# AIX 5 now supports IA64 processor
17088	lt_prog_compiler_static_GCJ='-Bstatic'
17089      else
17090	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17091      fi
17092      ;;
17093      darwin*)
17094        # PIC is the default on this platform
17095        # Common symbols not allowed in MH_DYLIB files
17096       case $cc_basename in
17097         xlc*)
17098         lt_prog_compiler_pic_GCJ='-qnocommon'
17099         lt_prog_compiler_wl_GCJ='-Wl,'
17100         ;;
17101       esac
17102       ;;
17103
17104    mingw* | cygwin* | pw32* | os2*)
17105      # This hack is so that the source file can tell whether it is being
17106      # built for inclusion in a dll (and should export symbols for example).
17107
17108      ;;
17109
17110    hpux9* | hpux10* | hpux11*)
17111      lt_prog_compiler_wl_GCJ='-Wl,'
17112      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113      # not for PA HP-UX.
17114      case $host_cpu in
17115      hppa*64*|ia64*)
17116	# +Z the default
17117	;;
17118      *)
17119	lt_prog_compiler_pic_GCJ='+Z'
17120	;;
17121      esac
17122      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17123      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17124      ;;
17125
17126    irix5* | irix6* | nonstopux*)
17127      lt_prog_compiler_wl_GCJ='-Wl,'
17128      # PIC (with -KPIC) is the default.
17129      lt_prog_compiler_static_GCJ='-non_shared'
17130      ;;
17131
17132    newsos6)
17133      lt_prog_compiler_pic_GCJ='-KPIC'
17134      lt_prog_compiler_static_GCJ='-Bstatic'
17135      ;;
17136
17137    linux* | k*bsd*-gnu)
17138      case $cc_basename in
17139      icc* | ecc*)
17140	lt_prog_compiler_wl_GCJ='-Wl,'
17141	lt_prog_compiler_pic_GCJ='-KPIC'
17142	lt_prog_compiler_static_GCJ='-static'
17143        ;;
17144      pgcc* | pgf77* | pgf90* | pgf95*)
17145        # Portland Group compilers (*not* the Pentium gcc compiler,
17146	# which looks to be a dead project)
17147	lt_prog_compiler_wl_GCJ='-Wl,'
17148	lt_prog_compiler_pic_GCJ='-fpic'
17149	lt_prog_compiler_static_GCJ='-Bstatic'
17150        ;;
17151      ccc*)
17152        lt_prog_compiler_wl_GCJ='-Wl,'
17153        # All Alpha code is PIC.
17154        lt_prog_compiler_static_GCJ='-non_shared'
17155        ;;
17156      *)
17157        case `$CC -V 2>&1 | sed 5q` in
17158	*Sun\ C*)
17159	  # Sun C 5.9
17160	  lt_prog_compiler_pic_GCJ='-KPIC'
17161	  lt_prog_compiler_static_GCJ='-Bstatic'
17162	  lt_prog_compiler_wl_GCJ='-Wl,'
17163	  ;;
17164	*Sun\ F*)
17165	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17166	  lt_prog_compiler_pic_GCJ='-KPIC'
17167	  lt_prog_compiler_static_GCJ='-Bstatic'
17168	  lt_prog_compiler_wl_GCJ=''
17169	  ;;
17170	esac
17171	;;
17172      esac
17173      ;;
17174
17175    osf3* | osf4* | osf5*)
17176      lt_prog_compiler_wl_GCJ='-Wl,'
17177      # All OSF/1 code is PIC.
17178      lt_prog_compiler_static_GCJ='-non_shared'
17179      ;;
17180
17181    rdos*)
17182      lt_prog_compiler_static_GCJ='-non_shared'
17183      ;;
17184
17185    solaris*)
17186      lt_prog_compiler_pic_GCJ='-KPIC'
17187      lt_prog_compiler_static_GCJ='-Bstatic'
17188      case $cc_basename in
17189      f77* | f90* | f95*)
17190	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17191      *)
17192	lt_prog_compiler_wl_GCJ='-Wl,';;
17193      esac
17194      ;;
17195
17196    sunos4*)
17197      lt_prog_compiler_wl_GCJ='-Qoption ld '
17198      lt_prog_compiler_pic_GCJ='-PIC'
17199      lt_prog_compiler_static_GCJ='-Bstatic'
17200      ;;
17201
17202    sysv4 | sysv4.2uw2* | sysv4.3*)
17203      lt_prog_compiler_wl_GCJ='-Wl,'
17204      lt_prog_compiler_pic_GCJ='-KPIC'
17205      lt_prog_compiler_static_GCJ='-Bstatic'
17206      ;;
17207
17208    sysv4*MP*)
17209      if test -d /usr/nec ;then
17210	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17211	lt_prog_compiler_static_GCJ='-Bstatic'
17212      fi
17213      ;;
17214
17215    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17216      lt_prog_compiler_wl_GCJ='-Wl,'
17217      lt_prog_compiler_pic_GCJ='-KPIC'
17218      lt_prog_compiler_static_GCJ='-Bstatic'
17219      ;;
17220
17221    unicos*)
17222      lt_prog_compiler_wl_GCJ='-Wl,'
17223      lt_prog_compiler_can_build_shared_GCJ=no
17224      ;;
17225
17226    uts4*)
17227      lt_prog_compiler_pic_GCJ='-pic'
17228      lt_prog_compiler_static_GCJ='-Bstatic'
17229      ;;
17230
17231    *)
17232      lt_prog_compiler_can_build_shared_GCJ=no
17233      ;;
17234    esac
17235  fi
17236
17237{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17238$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17239
17240#
17241# Check to make sure the PIC flag actually works.
17242#
17243if test -n "$lt_prog_compiler_pic_GCJ"; then
17244
17245{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17247if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17248  $as_echo_n "(cached) " >&6
17249else
17250  lt_cv_prog_compiler_pic_works_GCJ=no
17251  ac_outfile=conftest.$ac_objext
17252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17253   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17254   # Insert the option either (1) after the last *FLAGS variable, or
17255   # (2) before a word containing "conftest.", or (3) at the end.
17256   # Note that $ac_compile itself does not contain backslashes and begins
17257   # with a dollar sign (not a hyphen), so the echo should work correctly.
17258   # The option is referenced via a variable to avoid confusing sed.
17259   lt_compile=`echo "$ac_compile" | $SED \
17260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17262   -e 's:$: $lt_compiler_flag:'`
17263   (eval echo "\"\$as_me:17263: $lt_compile\"" >&5)
17264   (eval "$lt_compile" 2>conftest.err)
17265   ac_status=$?
17266   cat conftest.err >&5
17267   echo "$as_me:17267: \$? = $ac_status" >&5
17268   if (exit $ac_status) && test -s "$ac_outfile"; then
17269     # The compiler can only warn and ignore the option if not recognized
17270     # So say no if there are warnings other than the usual output.
17271     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17272     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17273     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17274       lt_cv_prog_compiler_pic_works_GCJ=yes
17275     fi
17276   fi
17277   $rm conftest*
17278
17279fi
17280{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17281$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17282
17283if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17284    case $lt_prog_compiler_pic_GCJ in
17285     "" | " "*) ;;
17286     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17287     esac
17288else
17289    lt_prog_compiler_pic_GCJ=
17290     lt_prog_compiler_can_build_shared_GCJ=no
17291fi
17292
17293fi
17294case $host_os in
17295  # For platforms which do not support PIC, -DPIC is meaningless:
17296  *djgpp*)
17297    lt_prog_compiler_pic_GCJ=
17298    ;;
17299  *)
17300    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17301    ;;
17302esac
17303
17304#
17305# Check to make sure the static flag actually works.
17306#
17307wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17308{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17309$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17310if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17311  $as_echo_n "(cached) " >&6
17312else
17313  lt_cv_prog_compiler_static_works_GCJ=no
17314   save_LDFLAGS="$LDFLAGS"
17315   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17316   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17317   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17318     # The linker can only warn and ignore the option if not recognized
17319     # So say no if there are warnings
17320     if test -s conftest.err; then
17321       # Append any errors to the config.log.
17322       cat conftest.err 1>&5
17323       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17324       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325       if diff conftest.exp conftest.er2 >/dev/null; then
17326         lt_cv_prog_compiler_static_works_GCJ=yes
17327       fi
17328     else
17329       lt_cv_prog_compiler_static_works_GCJ=yes
17330     fi
17331   fi
17332   $rm -r conftest*
17333   LDFLAGS="$save_LDFLAGS"
17334
17335fi
17336{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17337$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17338
17339if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17340    :
17341else
17342    lt_prog_compiler_static_GCJ=
17343fi
17344
17345
17346{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17347$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17348if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17349  $as_echo_n "(cached) " >&6
17350else
17351  lt_cv_prog_compiler_c_o_GCJ=no
17352   $rm -r conftest 2>/dev/null
17353   mkdir conftest
17354   cd conftest
17355   mkdir out
17356   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17357
17358   lt_compiler_flag="-o out/conftest2.$ac_objext"
17359   # Insert the option either (1) after the last *FLAGS variable, or
17360   # (2) before a word containing "conftest.", or (3) at the end.
17361   # Note that $ac_compile itself does not contain backslashes and begins
17362   # with a dollar sign (not a hyphen), so the echo should work correctly.
17363   lt_compile=`echo "$ac_compile" | $SED \
17364   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17366   -e 's:$: $lt_compiler_flag:'`
17367   (eval echo "\"\$as_me:17367: $lt_compile\"" >&5)
17368   (eval "$lt_compile" 2>out/conftest.err)
17369   ac_status=$?
17370   cat out/conftest.err >&5
17371   echo "$as_me:17371: \$? = $ac_status" >&5
17372   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17373   then
17374     # The compiler can only warn and ignore the option if not recognized
17375     # So say no if there are warnings
17376     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17377     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17378     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17379       lt_cv_prog_compiler_c_o_GCJ=yes
17380     fi
17381   fi
17382   chmod u+w . 2>&5
17383   $rm conftest*
17384   # SGI C++ compiler will create directory out/ii_files/ for
17385   # template instantiation
17386   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17387   $rm out/* && rmdir out
17388   cd ..
17389   rmdir conftest
17390   $rm conftest*
17391
17392fi
17393{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17394$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17395
17396
17397hard_links="nottested"
17398if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17399  # do not overwrite the value of need_locks provided by the user
17400  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17401$as_echo_n "checking if we can lock with hard links... " >&6; }
17402  hard_links=yes
17403  $rm conftest*
17404  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17405  touch conftest.a
17406  ln conftest.a conftest.b 2>&5 || hard_links=no
17407  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17408  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17409$as_echo "$hard_links" >&6; }
17410  if test "$hard_links" = no; then
17411    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17412$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17413    need_locks=warn
17414  fi
17415else
17416  need_locks=no
17417fi
17418
17419{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17420$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17421
17422  runpath_var=
17423  allow_undefined_flag_GCJ=
17424  enable_shared_with_static_runtimes_GCJ=no
17425  archive_cmds_GCJ=
17426  archive_expsym_cmds_GCJ=
17427  old_archive_From_new_cmds_GCJ=
17428  old_archive_from_expsyms_cmds_GCJ=
17429  export_dynamic_flag_spec_GCJ=
17430  whole_archive_flag_spec_GCJ=
17431  thread_safe_flag_spec_GCJ=
17432  hardcode_libdir_flag_spec_GCJ=
17433  hardcode_libdir_flag_spec_ld_GCJ=
17434  hardcode_libdir_separator_GCJ=
17435  hardcode_direct_GCJ=no
17436  hardcode_minus_L_GCJ=no
17437  hardcode_shlibpath_var_GCJ=unsupported
17438  link_all_deplibs_GCJ=unknown
17439  hardcode_automatic_GCJ=no
17440  module_cmds_GCJ=
17441  module_expsym_cmds_GCJ=
17442  always_export_symbols_GCJ=no
17443  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17444  # include_expsyms should be a list of space-separated symbols to be *always*
17445  # included in the symbol list
17446  include_expsyms_GCJ=
17447  # exclude_expsyms can be an extended regexp of symbols to exclude
17448  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17449  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17450  # as well as any symbol that contains `d'.
17451  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17452  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17453  # platforms (ab)use it in PIC code, but their linkers get confused if
17454  # the symbol is explicitly referenced.  Since portable code cannot
17455  # rely on this symbol name, it's probably fine to never include it in
17456  # preloaded symbol tables.
17457  # Exclude shared library initialization/finalization symbols.
17458  extract_expsyms_cmds=
17459  # Just being paranoid about ensuring that cc_basename is set.
17460  for cc_temp in $compiler""; do
17461  case $cc_temp in
17462    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17463    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17464    \-*) ;;
17465    *) break;;
17466  esac
17467done
17468cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17469
17470  case $host_os in
17471  cygwin* | mingw* | pw32*)
17472    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17473    # When not using gcc, we currently assume that we are using
17474    # Microsoft Visual C++.
17475    if test "$GCC" != yes; then
17476      with_gnu_ld=no
17477    fi
17478    ;;
17479  interix*)
17480    # we just hope/assume this is gcc and not c89 (= MSVC++)
17481    with_gnu_ld=yes
17482    ;;
17483  openbsd*)
17484    with_gnu_ld=no
17485    ;;
17486  esac
17487
17488  ld_shlibs_GCJ=yes
17489  if test "$with_gnu_ld" = yes; then
17490    # If archive_cmds runs LD, not CC, wlarc should be empty
17491    wlarc='${wl}'
17492
17493    # Set some defaults for GNU ld with shared library support. These
17494    # are reset later if shared libraries are not supported. Putting them
17495    # here allows them to be overridden if necessary.
17496    runpath_var=LD_RUN_PATH
17497    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17498    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17499    # ancient GNU ld didn't support --whole-archive et. al.
17500    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17501	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17502      else
17503  	whole_archive_flag_spec_GCJ=
17504    fi
17505    supports_anon_versioning=no
17506    case `$LD -v 2>/dev/null` in
17507      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17508      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17509      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17510      *\ 2.11.*) ;; # other 2.11 versions
17511      *) supports_anon_versioning=yes ;;
17512    esac
17513
17514    # See if GNU ld supports shared libraries.
17515    case $host_os in
17516    aix[3-9]*)
17517      # On AIX/PPC, the GNU linker is very broken
17518      if test "$host_cpu" != ia64; then
17519	ld_shlibs_GCJ=no
17520	cat <<EOF 1>&2
17521
17522*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17523*** to be unable to reliably create shared libraries on AIX.
17524*** Therefore, libtool is disabling shared libraries support.  If you
17525*** really care for shared libraries, you may want to modify your PATH
17526*** so that a non-GNU linker is found, and then restart.
17527
17528EOF
17529      fi
17530      ;;
17531
17532    amigaos*)
17533      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)'
17534      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535      hardcode_minus_L_GCJ=yes
17536
17537      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17538      # that the semantics of dynamic libraries on AmigaOS, at least up
17539      # to version 4, is to share data among multiple programs linked
17540      # with the same dynamic library.  Since this doesn't match the
17541      # behavior of shared libraries on other platforms, we can't use
17542      # them.
17543      ld_shlibs_GCJ=no
17544      ;;
17545
17546    beos*)
17547      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548	allow_undefined_flag_GCJ=unsupported
17549	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17550	# support --undefined.  This deserves some investigation.  FIXME
17551	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552      else
17553	ld_shlibs_GCJ=no
17554      fi
17555      ;;
17556
17557    cygwin* | mingw* | pw32*)
17558      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17559      # as there is no search path for DLLs.
17560      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561      allow_undefined_flag_GCJ=unsupported
17562      always_export_symbols_GCJ=no
17563      enable_shared_with_static_runtimes_GCJ=yes
17564      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17565
17566      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17567        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568	# If the export-symbols file already is a .def file (1st line
17569	# is EXPORTS), use it as is; otherwise, prepend...
17570	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17571	  cp $export_symbols $output_objdir/$soname.def;
17572	else
17573	  echo EXPORTS > $output_objdir/$soname.def;
17574	  cat $export_symbols >> $output_objdir/$soname.def;
17575	fi~
17576	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17577      else
17578	ld_shlibs_GCJ=no
17579      fi
17580      ;;
17581
17582    interix[3-9]*)
17583      hardcode_direct_GCJ=no
17584      hardcode_shlibpath_var_GCJ=no
17585      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17586      export_dynamic_flag_spec_GCJ='${wl}-E'
17587      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17588      # Instead, shared libraries are loaded at an image base (0x10000000 by
17589      # default) and relocated if they conflict, which is a slow very memory
17590      # consuming and fragmenting process.  To avoid this, we pick a random,
17591      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17592      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17593      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'
17594      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'
17595      ;;
17596
17597    gnu* | linux* | k*bsd*-gnu)
17598      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17599	tmp_addflag=
17600	case $cc_basename,$host_cpu in
17601	pgcc*)				# Portland Group C compiler
17602	  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'
17603	  tmp_addflag=' $pic_flag'
17604	  ;;
17605	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17606	  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'
17607	  tmp_addflag=' $pic_flag -Mnomain' ;;
17608	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17609	  tmp_addflag=' -i_dynamic' ;;
17610	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17611	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17612	ifc* | ifort*)			# Intel Fortran compiler
17613	  tmp_addflag=' -nofor_main' ;;
17614	esac
17615	case `$CC -V 2>&1 | sed 5q` in
17616	*Sun\ C*)			# Sun C 5.9
17617	  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'
17618	  tmp_sharedflag='-G' ;;
17619	*Sun\ F*)			# Sun Fortran 8.3
17620	  tmp_sharedflag='-G' ;;
17621	*)
17622	  tmp_sharedflag='-shared' ;;
17623	esac
17624	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625
17626	if test $supports_anon_versioning = yes; then
17627	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17628  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17629  $echo "local: *; };" >> $output_objdir/$libname.ver~
17630	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17631	fi
17632      else
17633	ld_shlibs_GCJ=no
17634      fi
17635      ;;
17636
17637    netbsd*)
17638      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17639	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17640	wlarc=
17641      else
17642	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17643	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17644      fi
17645      ;;
17646
17647    solaris*)
17648      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17649	ld_shlibs_GCJ=no
17650	cat <<EOF 1>&2
17651
17652*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17653*** create shared libraries on Solaris systems.  Therefore, libtool
17654*** is disabling shared libraries support.  We urge you to upgrade GNU
17655*** binutils to release 2.9.1 or newer.  Another option is to modify
17656*** your PATH or compiler configuration so that the native linker is
17657*** used, and then restart.
17658
17659EOF
17660      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17661	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17662	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17663      else
17664	ld_shlibs_GCJ=no
17665      fi
17666      ;;
17667
17668    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17669      case `$LD -v 2>&1` in
17670        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17671	ld_shlibs_GCJ=no
17672	cat <<_LT_EOF 1>&2
17673
17674*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17675*** reliably create shared libraries on SCO systems.  Therefore, libtool
17676*** is disabling shared libraries support.  We urge you to upgrade GNU
17677*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17678*** your PATH or compiler configuration so that the native linker is
17679*** used, and then restart.
17680
17681_LT_EOF
17682	;;
17683	*)
17684	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17685	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17686	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17687	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17688	  else
17689	    ld_shlibs_GCJ=no
17690	  fi
17691	;;
17692      esac
17693      ;;
17694
17695    sunos4*)
17696      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17697      wlarc=
17698      hardcode_direct_GCJ=yes
17699      hardcode_shlibpath_var_GCJ=no
17700      ;;
17701
17702    *)
17703      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17704	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17705	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17706      else
17707	ld_shlibs_GCJ=no
17708      fi
17709      ;;
17710    esac
17711
17712    if test "$ld_shlibs_GCJ" = no; then
17713      runpath_var=
17714      hardcode_libdir_flag_spec_GCJ=
17715      export_dynamic_flag_spec_GCJ=
17716      whole_archive_flag_spec_GCJ=
17717    fi
17718  else
17719    # PORTME fill in a description of your system's linker (not GNU ld)
17720    case $host_os in
17721    aix3*)
17722      allow_undefined_flag_GCJ=unsupported
17723      always_export_symbols_GCJ=yes
17724      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'
17725      # Note: this linker hardcodes the directories in LIBPATH if there
17726      # are no directories specified by -L.
17727      hardcode_minus_L_GCJ=yes
17728      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17729	# Neither direct hardcoding nor static linking is supported with a
17730	# broken collect2.
17731	hardcode_direct_GCJ=unsupported
17732      fi
17733      ;;
17734
17735    aix[4-9]*)
17736      if test "$host_cpu" = ia64; then
17737	# On IA64, the linker does run time linking by default, so we don't
17738	# have to do anything special.
17739	aix_use_runtimelinking=no
17740	exp_sym_flag='-Bexport'
17741	no_entry_flag=""
17742      else
17743	# If we're using GNU nm, then we don't want the "-C" option.
17744	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17745	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17746	  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'
17747	else
17748	  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'
17749	fi
17750	aix_use_runtimelinking=no
17751
17752	# Test if we are trying to use run time linking or normal
17753	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17754	# need to do runtime linking.
17755	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17756	  for ld_flag in $LDFLAGS; do
17757  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17758  	    aix_use_runtimelinking=yes
17759  	    break
17760  	  fi
17761	  done
17762	  ;;
17763	esac
17764
17765	exp_sym_flag='-bexport'
17766	no_entry_flag='-bnoentry'
17767      fi
17768
17769      # When large executables or shared objects are built, AIX ld can
17770      # have problems creating the table of contents.  If linking a library
17771      # or program results in "error TOC overflow" add -mminimal-toc to
17772      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17773      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17774
17775      archive_cmds_GCJ=''
17776      hardcode_direct_GCJ=yes
17777      hardcode_libdir_separator_GCJ=':'
17778      link_all_deplibs_GCJ=yes
17779
17780      if test "$GCC" = yes; then
17781	case $host_os in aix4.[012]|aix4.[012].*)
17782	# We only want to do this on AIX 4.2 and lower, the check
17783	# below for broken collect2 doesn't work under 4.3+
17784	  collect2name=`${CC} -print-prog-name=collect2`
17785	  if test -f "$collect2name" && \
17786  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17787	  then
17788  	  # We have reworked collect2
17789  	  :
17790	  else
17791  	  # We have old collect2
17792  	  hardcode_direct_GCJ=unsupported
17793  	  # It fails to find uninstalled libraries when the uninstalled
17794  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17795  	  # to unsupported forces relinking
17796  	  hardcode_minus_L_GCJ=yes
17797  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17798  	  hardcode_libdir_separator_GCJ=
17799	  fi
17800	  ;;
17801	esac
17802	shared_flag='-shared'
17803	if test "$aix_use_runtimelinking" = yes; then
17804	  shared_flag="$shared_flag "'${wl}-G'
17805	fi
17806      else
17807	# not using gcc
17808	if test "$host_cpu" = ia64; then
17809  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17810  	# chokes on -Wl,-G. The following line is correct:
17811	  shared_flag='-G'
17812	else
17813	  if test "$aix_use_runtimelinking" = yes; then
17814	    shared_flag='${wl}-G'
17815	  else
17816	    shared_flag='${wl}-bM:SRE'
17817	  fi
17818	fi
17819      fi
17820
17821      # It seems that -bexpall does not export symbols beginning with
17822      # underscore (_), so it is better to generate a list of symbols to export.
17823      always_export_symbols_GCJ=yes
17824      if test "$aix_use_runtimelinking" = yes; then
17825	# Warning - without using the other runtime loading flags (-brtl),
17826	# -berok will link without error, but may produce a broken library.
17827	allow_undefined_flag_GCJ='-berok'
17828       # Determine the default libpath from the value encoded in an empty executable.
17829       cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h.  */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h.  */
17835
17836int
17837main ()
17838{
17839
17840  ;
17841  return 0;
17842}
17843_ACEOF
17844rm -f conftest.$ac_objext conftest$ac_exeext
17845if { (ac_try="$ac_link"
17846case "(($ac_try" in
17847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848  *) ac_try_echo=$ac_try;;
17849esac
17850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17851$as_echo "$ac_try_echo") >&5
17852  (eval "$ac_link") 2>conftest.er1
17853  ac_status=$?
17854  grep -v '^ *+' conftest.er1 >conftest.err
17855  rm -f conftest.er1
17856  cat conftest.err >&5
17857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858  (exit $ac_status); } && {
17859	 test -z "$ac_c_werror_flag" ||
17860	 test ! -s conftest.err
17861       } && test -s conftest$ac_exeext && {
17862	 test "$cross_compiling" = yes ||
17863	 $as_test_x conftest$ac_exeext
17864       }; then
17865
17866lt_aix_libpath_sed='
17867    /Import File Strings/,/^$/ {
17868	/^0/ {
17869	    s/^0  *\(.*\)$/\1/
17870	    p
17871	}
17872    }'
17873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17874# Check for a 64-bit object if we didn't find anything.
17875if test -z "$aix_libpath"; then
17876  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17877fi
17878else
17879  $as_echo "$as_me: failed program was:" >&5
17880sed 's/^/| /' conftest.$ac_ext >&5
17881
17882
17883fi
17884
17885rm -rf conftest.dSYM
17886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17887      conftest$ac_exeext conftest.$ac_ext
17888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17889
17890       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17891	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"
17892       else
17893	if test "$host_cpu" = ia64; then
17894	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17895	  allow_undefined_flag_GCJ="-z nodefs"
17896	  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"
17897	else
17898	 # Determine the default libpath from the value encoded in an empty executable.
17899	 cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h.  */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h.  */
17905
17906int
17907main ()
17908{
17909
17910  ;
17911  return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext conftest$ac_exeext
17915if { (ac_try="$ac_link"
17916case "(($ac_try" in
17917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918  *) ac_try_echo=$ac_try;;
17919esac
17920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921$as_echo "$ac_try_echo") >&5
17922  (eval "$ac_link") 2>conftest.er1
17923  ac_status=$?
17924  grep -v '^ *+' conftest.er1 >conftest.err
17925  rm -f conftest.er1
17926  cat conftest.err >&5
17927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928  (exit $ac_status); } && {
17929	 test -z "$ac_c_werror_flag" ||
17930	 test ! -s conftest.err
17931       } && test -s conftest$ac_exeext && {
17932	 test "$cross_compiling" = yes ||
17933	 $as_test_x conftest$ac_exeext
17934       }; then
17935
17936lt_aix_libpath_sed='
17937    /Import File Strings/,/^$/ {
17938	/^0/ {
17939	    s/^0  *\(.*\)$/\1/
17940	    p
17941	}
17942    }'
17943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944# Check for a 64-bit object if we didn't find anything.
17945if test -z "$aix_libpath"; then
17946  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17947fi
17948else
17949  $as_echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952
17953fi
17954
17955rm -rf conftest.dSYM
17956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17957      conftest$ac_exeext conftest.$ac_ext
17958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17959
17960	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17961	  # Warning - without using the other run time loading flags,
17962	  # -berok will link without error, but may produce a broken library.
17963	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17964	  allow_undefined_flag_GCJ=' ${wl}-berok'
17965	  # Exported symbols can be pulled into shared objects from archives
17966	  whole_archive_flag_spec_GCJ='$convenience'
17967	  archive_cmds_need_lc_GCJ=yes
17968	  # This is similar to how AIX traditionally builds its shared libraries.
17969	  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'
17970	fi
17971      fi
17972      ;;
17973
17974    amigaos*)
17975      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)'
17976      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17977      hardcode_minus_L_GCJ=yes
17978      # see comment about different semantics on the GNU ld section
17979      ld_shlibs_GCJ=no
17980      ;;
17981
17982    bsdi[45]*)
17983      export_dynamic_flag_spec_GCJ=-rdynamic
17984      ;;
17985
17986    cygwin* | mingw* | pw32*)
17987      # When not using gcc, we currently assume that we are using
17988      # Microsoft Visual C++.
17989      # hardcode_libdir_flag_spec is actually meaningless, as there is
17990      # no search path for DLLs.
17991      hardcode_libdir_flag_spec_GCJ=' '
17992      allow_undefined_flag_GCJ=unsupported
17993      # Tell ltmain to make .lib files, not .a files.
17994      libext=lib
17995      # Tell ltmain to make .dll files, not .so files.
17996      shrext_cmds=".dll"
17997      # FIXME: Setting linknames here is a bad hack.
17998      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17999      # The linker will automatically build a .lib file if we build a DLL.
18000      old_archive_From_new_cmds_GCJ='true'
18001      # FIXME: Should let the user specify the lib program.
18002      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18003      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18004      enable_shared_with_static_runtimes_GCJ=yes
18005      ;;
18006
18007    darwin* | rhapsody*)
18008      case $host_os in
18009        rhapsody* | darwin1.[012])
18010         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18011         ;;
18012       *) # Darwin 1.3 on
18013         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18014           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18015         else
18016           case ${MACOSX_DEPLOYMENT_TARGET} in
18017             10.[012])
18018               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18019               ;;
18020             10.*)
18021               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18022               ;;
18023           esac
18024         fi
18025         ;;
18026      esac
18027      archive_cmds_need_lc_GCJ=no
18028      hardcode_direct_GCJ=no
18029      hardcode_automatic_GCJ=yes
18030      hardcode_shlibpath_var_GCJ=unsupported
18031      whole_archive_flag_spec_GCJ=''
18032      link_all_deplibs_GCJ=yes
18033    if test "$GCC" = yes ; then
18034    	output_verbose_link_cmd='echo'
18035        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}"
18036        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18037        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}"
18038        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}"
18039    else
18040      case $cc_basename in
18041        xlc*)
18042         output_verbose_link_cmd='echo'
18043         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18044         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18045          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18046         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}'
18047          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}'
18048          ;;
18049       *)
18050         ld_shlibs_GCJ=no
18051          ;;
18052      esac
18053    fi
18054      ;;
18055
18056    dgux*)
18057      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18059      hardcode_shlibpath_var_GCJ=no
18060      ;;
18061
18062    freebsd1*)
18063      ld_shlibs_GCJ=no
18064      ;;
18065
18066    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18067    # support.  Future versions do this automatically, but an explicit c++rt0.o
18068    # does not break anything, and helps significantly (at the cost of a little
18069    # extra space).
18070    freebsd2.2*)
18071      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18072      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18073      hardcode_direct_GCJ=yes
18074      hardcode_shlibpath_var_GCJ=no
18075      ;;
18076
18077    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18078    freebsd2*)
18079      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18080      hardcode_direct_GCJ=yes
18081      hardcode_minus_L_GCJ=yes
18082      hardcode_shlibpath_var_GCJ=no
18083      ;;
18084
18085    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18086    freebsd* | dragonfly*)
18087      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18088      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18089      hardcode_direct_GCJ=yes
18090      hardcode_shlibpath_var_GCJ=no
18091      ;;
18092
18093    hpux9*)
18094      if test "$GCC" = yes; then
18095	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'
18096      else
18097	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'
18098      fi
18099      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18100      hardcode_libdir_separator_GCJ=:
18101      hardcode_direct_GCJ=yes
18102
18103      # hardcode_minus_L: Not really in the search PATH,
18104      # but as the default location of the library.
18105      hardcode_minus_L_GCJ=yes
18106      export_dynamic_flag_spec_GCJ='${wl}-E'
18107      ;;
18108
18109    hpux10*)
18110      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18111	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18112      else
18113	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18114      fi
18115      if test "$with_gnu_ld" = no; then
18116	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18117	hardcode_libdir_separator_GCJ=:
18118
18119	hardcode_direct_GCJ=yes
18120	export_dynamic_flag_spec_GCJ='${wl}-E'
18121
18122	# hardcode_minus_L: Not really in the search PATH,
18123	# but as the default location of the library.
18124	hardcode_minus_L_GCJ=yes
18125      fi
18126      ;;
18127
18128    hpux11*)
18129      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18130	case $host_cpu in
18131	hppa*64*)
18132	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133	  ;;
18134	ia64*)
18135	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18136	  ;;
18137	*)
18138	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18139	  ;;
18140	esac
18141      else
18142	case $host_cpu in
18143	hppa*64*)
18144	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145	  ;;
18146	ia64*)
18147	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18148	  ;;
18149	*)
18150	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18151	  ;;
18152	esac
18153      fi
18154      if test "$with_gnu_ld" = no; then
18155	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18156	hardcode_libdir_separator_GCJ=:
18157
18158	case $host_cpu in
18159	hppa*64*|ia64*)
18160	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18161	  hardcode_direct_GCJ=no
18162	  hardcode_shlibpath_var_GCJ=no
18163	  ;;
18164	*)
18165	  hardcode_direct_GCJ=yes
18166	  export_dynamic_flag_spec_GCJ='${wl}-E'
18167
18168	  # hardcode_minus_L: Not really in the search PATH,
18169	  # but as the default location of the library.
18170	  hardcode_minus_L_GCJ=yes
18171	  ;;
18172	esac
18173      fi
18174      ;;
18175
18176    irix5* | irix6* | nonstopux*)
18177      if test "$GCC" = yes; then
18178	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'
18179      else
18180	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'
18181	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18182      fi
18183      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18184      hardcode_libdir_separator_GCJ=:
18185      link_all_deplibs_GCJ=yes
18186      ;;
18187
18188    netbsd*)
18189      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18190	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18191      else
18192	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18193      fi
18194      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195      hardcode_direct_GCJ=yes
18196      hardcode_shlibpath_var_GCJ=no
18197      ;;
18198
18199    newsos6)
18200      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18201      hardcode_direct_GCJ=yes
18202      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18203      hardcode_libdir_separator_GCJ=:
18204      hardcode_shlibpath_var_GCJ=no
18205      ;;
18206
18207    openbsd*)
18208      if test -f /usr/libexec/ld.so; then
18209	hardcode_direct_GCJ=yes
18210	hardcode_shlibpath_var_GCJ=no
18211	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18212	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18213	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18214	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18215	  export_dynamic_flag_spec_GCJ='${wl}-E'
18216	else
18217	  case $host_os in
18218	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18219	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18220	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18221	     ;;
18222	   *)
18223	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18224	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18225	     ;;
18226	  esac
18227        fi
18228      else
18229	ld_shlibs_GCJ=no
18230      fi
18231      ;;
18232
18233    os2*)
18234      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18235      hardcode_minus_L_GCJ=yes
18236      allow_undefined_flag_GCJ=unsupported
18237      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'
18238      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18239      ;;
18240
18241    osf3*)
18242      if test "$GCC" = yes; then
18243	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18244	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'
18245      else
18246	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18247	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'
18248      fi
18249      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18250      hardcode_libdir_separator_GCJ=:
18251      ;;
18252
18253    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18254      if test "$GCC" = yes; then
18255	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18256	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'
18257	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18258      else
18259	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18260	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'
18261	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~
18262	$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'
18263
18264	# Both c and cxx compiler support -rpath directly
18265	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18266      fi
18267      hardcode_libdir_separator_GCJ=:
18268      ;;
18269
18270    solaris*)
18271      no_undefined_flag_GCJ=' -z text'
18272      if test "$GCC" = yes; then
18273	wlarc='${wl}'
18274	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18275	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18276	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18277      else
18278	wlarc=''
18279	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18281  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18282      fi
18283      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18284      hardcode_shlibpath_var_GCJ=no
18285      case $host_os in
18286      solaris2.[0-5] | solaris2.[0-5].*) ;;
18287      *)
18288	# The compiler driver will combine and reorder linker options,
18289	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18290	# but is careful enough not to reorder.
18291 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18292	if test "$GCC" = yes; then
18293	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18294	else
18295	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18296	fi
18297	;;
18298      esac
18299      link_all_deplibs_GCJ=yes
18300      ;;
18301
18302    sunos4*)
18303      if test "x$host_vendor" = xsequent; then
18304	# Use $CC to link under sequent, because it throws in some extra .o
18305	# files that make .init and .fini sections work.
18306	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18307      else
18308	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18309      fi
18310      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18311      hardcode_direct_GCJ=yes
18312      hardcode_minus_L_GCJ=yes
18313      hardcode_shlibpath_var_GCJ=no
18314      ;;
18315
18316    sysv4)
18317      case $host_vendor in
18318	sni)
18319	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320	  hardcode_direct_GCJ=yes # is this really true???
18321	;;
18322	siemens)
18323	  ## LD is ld it makes a PLAMLIB
18324	  ## CC just makes a GrossModule.
18325	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18326	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18327	  hardcode_direct_GCJ=no
18328        ;;
18329	motorola)
18330	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18332	;;
18333      esac
18334      runpath_var='LD_RUN_PATH'
18335      hardcode_shlibpath_var_GCJ=no
18336      ;;
18337
18338    sysv4.3*)
18339      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340      hardcode_shlibpath_var_GCJ=no
18341      export_dynamic_flag_spec_GCJ='-Bexport'
18342      ;;
18343
18344    sysv4*MP*)
18345      if test -d /usr/nec; then
18346	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347	hardcode_shlibpath_var_GCJ=no
18348	runpath_var=LD_RUN_PATH
18349	hardcode_runpath_var=yes
18350	ld_shlibs_GCJ=yes
18351      fi
18352      ;;
18353
18354    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18355      no_undefined_flag_GCJ='${wl}-z,text'
18356      archive_cmds_need_lc_GCJ=no
18357      hardcode_shlibpath_var_GCJ=no
18358      runpath_var='LD_RUN_PATH'
18359
18360      if test "$GCC" = yes; then
18361	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363      else
18364	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18366      fi
18367      ;;
18368
18369    sysv5* | sco3.2v5* | sco5v6*)
18370      # Note: We can NOT use -z defs as we might desire, because we do not
18371      # link with -lc, and that would cause any symbols used from libc to
18372      # always be unresolved, which means just about no library would
18373      # ever link correctly.  If we're not using GNU ld we use -z text
18374      # though, which does catch some bad symbols but isn't as heavy-handed
18375      # as -z defs.
18376      no_undefined_flag_GCJ='${wl}-z,text'
18377      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18378      archive_cmds_need_lc_GCJ=no
18379      hardcode_shlibpath_var_GCJ=no
18380      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18381      hardcode_libdir_separator_GCJ=':'
18382      link_all_deplibs_GCJ=yes
18383      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18384      runpath_var='LD_RUN_PATH'
18385
18386      if test "$GCC" = yes; then
18387	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389      else
18390	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392      fi
18393      ;;
18394
18395    uts4*)
18396      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18397      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18398      hardcode_shlibpath_var_GCJ=no
18399      ;;
18400
18401    *)
18402      ld_shlibs_GCJ=no
18403      ;;
18404    esac
18405  fi
18406
18407{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18408$as_echo "$ld_shlibs_GCJ" >&6; }
18409test "$ld_shlibs_GCJ" = no && can_build_shared=no
18410
18411#
18412# Do we need to explicitly link libc?
18413#
18414case "x$archive_cmds_need_lc_GCJ" in
18415x|xyes)
18416  # Assume -lc should be added
18417  archive_cmds_need_lc_GCJ=yes
18418
18419  if test "$enable_shared" = yes && test "$GCC" = yes; then
18420    case $archive_cmds_GCJ in
18421    *'~'*)
18422      # FIXME: we may have to deal with multi-command sequences.
18423      ;;
18424    '$CC '*)
18425      # Test whether the compiler implicitly links with -lc since on some
18426      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18427      # to ld, don't add -lc before -lgcc.
18428      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18429$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18430      $rm conftest*
18431      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18432
18433      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434  (eval $ac_compile) 2>&5
18435  ac_status=$?
18436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437  (exit $ac_status); } 2>conftest.err; then
18438        soname=conftest
18439        lib=conftest
18440        libobjs=conftest.$ac_objext
18441        deplibs=
18442        wl=$lt_prog_compiler_wl_GCJ
18443	pic_flag=$lt_prog_compiler_pic_GCJ
18444        compiler_flags=-v
18445        linker_flags=-v
18446        verstring=
18447        output_objdir=.
18448        libname=conftest
18449        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18450        allow_undefined_flag_GCJ=
18451        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18452  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18453  ac_status=$?
18454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455  (exit $ac_status); }
18456        then
18457	  archive_cmds_need_lc_GCJ=no
18458        else
18459	  archive_cmds_need_lc_GCJ=yes
18460        fi
18461        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18462      else
18463        cat conftest.err 1>&5
18464      fi
18465      $rm conftest*
18466      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18467$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18468      ;;
18469    esac
18470  fi
18471  ;;
18472esac
18473
18474{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18475$as_echo_n "checking dynamic linker characteristics... " >&6; }
18476library_names_spec=
18477libname_spec='lib$name'
18478soname_spec=
18479shrext_cmds=".so"
18480postinstall_cmds=
18481postuninstall_cmds=
18482finish_cmds=
18483finish_eval=
18484shlibpath_var=
18485shlibpath_overrides_runpath=unknown
18486version_type=none
18487dynamic_linker="$host_os ld.so"
18488sys_lib_dlsearch_path_spec="/lib /usr/lib"
18489
18490need_lib_prefix=unknown
18491hardcode_into_libs=no
18492
18493# when you set need_version to no, make sure it does not cause -set_version
18494# flags to be left without arguments
18495need_version=unknown
18496
18497case $host_os in
18498aix3*)
18499  version_type=linux
18500  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18501  shlibpath_var=LIBPATH
18502
18503  # AIX 3 has no versioning support, so we append a major version to the name.
18504  soname_spec='${libname}${release}${shared_ext}$major'
18505  ;;
18506
18507aix[4-9]*)
18508  version_type=linux
18509  need_lib_prefix=no
18510  need_version=no
18511  hardcode_into_libs=yes
18512  if test "$host_cpu" = ia64; then
18513    # AIX 5 supports IA64
18514    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18515    shlibpath_var=LD_LIBRARY_PATH
18516  else
18517    # With GCC up to 2.95.x, collect2 would create an import file
18518    # for dependence libraries.  The import file would start with
18519    # the line `#! .'.  This would cause the generated library to
18520    # depend on `.', always an invalid library.  This was fixed in
18521    # development snapshots of GCC prior to 3.0.
18522    case $host_os in
18523      aix4 | aix4.[01] | aix4.[01].*)
18524      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18525	   echo ' yes '
18526	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18527	:
18528      else
18529	can_build_shared=no
18530      fi
18531      ;;
18532    esac
18533    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18534    # soname into executable. Probably we can add versioning support to
18535    # collect2, so additional links can be useful in future.
18536    if test "$aix_use_runtimelinking" = yes; then
18537      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18538      # instead of lib<name>.a to let people know that these are not
18539      # typical AIX shared libraries.
18540      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541    else
18542      # We preserve .a as extension for shared libraries through AIX4.2
18543      # and later when we are not doing run time linking.
18544      library_names_spec='${libname}${release}.a $libname.a'
18545      soname_spec='${libname}${release}${shared_ext}$major'
18546    fi
18547    shlibpath_var=LIBPATH
18548  fi
18549  ;;
18550
18551amigaos*)
18552  library_names_spec='$libname.ixlibrary $libname.a'
18553  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18554  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'
18555  ;;
18556
18557beos*)
18558  library_names_spec='${libname}${shared_ext}'
18559  dynamic_linker="$host_os ld.so"
18560  shlibpath_var=LIBRARY_PATH
18561  ;;
18562
18563bsdi[45]*)
18564  version_type=linux
18565  need_version=no
18566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567  soname_spec='${libname}${release}${shared_ext}$major'
18568  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18569  shlibpath_var=LD_LIBRARY_PATH
18570  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18571  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18572  # the default ld.so.conf also contains /usr/contrib/lib and
18573  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18574  # libtool to hard-code these into programs
18575  ;;
18576
18577cygwin* | mingw* | pw32*)
18578  version_type=windows
18579  shrext_cmds=".dll"
18580  need_version=no
18581  need_lib_prefix=no
18582
18583  case $GCC,$host_os in
18584  yes,cygwin* | yes,mingw* | yes,pw32*)
18585    library_names_spec='$libname.dll.a'
18586    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18587    postinstall_cmds='base_file=`basename \${file}`~
18588      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18589      dldir=$destdir/`dirname \$dlpath`~
18590      test -d \$dldir || mkdir -p \$dldir~
18591      $install_prog $dir/$dlname \$dldir/$dlname~
18592      chmod a+x \$dldir/$dlname'
18593    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18594      dlpath=$dir/\$dldll~
18595       $rm \$dlpath'
18596    shlibpath_overrides_runpath=yes
18597
18598    case $host_os in
18599    cygwin*)
18600      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18601      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18602      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18603      ;;
18604    mingw*)
18605      # MinGW DLLs use traditional 'lib' prefix
18606      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18607      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18608      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18609        # It is most probably a Windows format PATH printed by
18610        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18611        # path with ; separators, and with drive letters. We can handle the
18612        # drive letters (cygwin fileutils understands them), so leave them,
18613        # especially as we might pass files found there to a mingw objdump,
18614        # which wouldn't understand a cygwinified path. Ahh.
18615        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18616      else
18617        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18618      fi
18619      ;;
18620    pw32*)
18621      # pw32 DLLs use 'pw' prefix rather than 'lib'
18622      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18623      ;;
18624    esac
18625    ;;
18626
18627  *)
18628    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18629    ;;
18630  esac
18631  dynamic_linker='Win32 ld.exe'
18632  # FIXME: first we should search . and the directory the executable is in
18633  shlibpath_var=PATH
18634  ;;
18635
18636darwin* | rhapsody*)
18637  dynamic_linker="$host_os dyld"
18638  version_type=darwin
18639  need_lib_prefix=no
18640  need_version=no
18641  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18642  soname_spec='${libname}${release}${major}$shared_ext'
18643  shlibpath_overrides_runpath=yes
18644  shlibpath_var=DYLD_LIBRARY_PATH
18645  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18646
18647  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18648  ;;
18649
18650dgux*)
18651  version_type=linux
18652  need_lib_prefix=no
18653  need_version=no
18654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18655  soname_spec='${libname}${release}${shared_ext}$major'
18656  shlibpath_var=LD_LIBRARY_PATH
18657  ;;
18658
18659freebsd1*)
18660  dynamic_linker=no
18661  ;;
18662
18663freebsd* | dragonfly*)
18664  # DragonFly does not have aout.  When/if they implement a new
18665  # versioning mechanism, adjust this.
18666  if test -x /usr/bin/objformat; then
18667    objformat=`/usr/bin/objformat`
18668  else
18669    case $host_os in
18670    freebsd[123]*) objformat=aout ;;
18671    *) objformat=elf ;;
18672    esac
18673  fi
18674  version_type=freebsd-$objformat
18675  case $version_type in
18676    freebsd-elf*)
18677      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18678      need_version=no
18679      need_lib_prefix=no
18680      ;;
18681    freebsd-*)
18682      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18683      need_version=yes
18684      ;;
18685  esac
18686  shlibpath_var=LD_LIBRARY_PATH
18687  case $host_os in
18688  freebsd2*)
18689    shlibpath_overrides_runpath=yes
18690    ;;
18691  freebsd3.[01]* | freebsdelf3.[01]*)
18692    shlibpath_overrides_runpath=yes
18693    hardcode_into_libs=yes
18694    ;;
18695  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18696  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18697    shlibpath_overrides_runpath=no
18698    hardcode_into_libs=yes
18699    ;;
18700  *) # from 4.6 on, and DragonFly
18701    shlibpath_overrides_runpath=yes
18702    hardcode_into_libs=yes
18703    ;;
18704  esac
18705  ;;
18706
18707gnu*)
18708  version_type=linux
18709  need_lib_prefix=no
18710  need_version=no
18711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18712  soname_spec='${libname}${release}${shared_ext}$major'
18713  shlibpath_var=LD_LIBRARY_PATH
18714  hardcode_into_libs=yes
18715  ;;
18716
18717hpux9* | hpux10* | hpux11*)
18718  # Give a soname corresponding to the major version so that dld.sl refuses to
18719  # link against other versions.
18720  version_type=sunos
18721  need_lib_prefix=no
18722  need_version=no
18723  case $host_cpu in
18724  ia64*)
18725    shrext_cmds='.so'
18726    hardcode_into_libs=yes
18727    dynamic_linker="$host_os dld.so"
18728    shlibpath_var=LD_LIBRARY_PATH
18729    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18730    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731    soname_spec='${libname}${release}${shared_ext}$major'
18732    if test "X$HPUX_IA64_MODE" = X32; then
18733      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18734    else
18735      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18736    fi
18737    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18738    ;;
18739   hppa*64*)
18740     shrext_cmds='.sl'
18741     hardcode_into_libs=yes
18742     dynamic_linker="$host_os dld.sl"
18743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746     soname_spec='${libname}${release}${shared_ext}$major'
18747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18749     ;;
18750   *)
18751    shrext_cmds='.sl'
18752    dynamic_linker="$host_os dld.sl"
18753    shlibpath_var=SHLIB_PATH
18754    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756    soname_spec='${libname}${release}${shared_ext}$major'
18757    ;;
18758  esac
18759  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18760  postinstall_cmds='chmod 555 $lib'
18761  ;;
18762
18763interix[3-9]*)
18764  version_type=linux
18765  need_lib_prefix=no
18766  need_version=no
18767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18768  soname_spec='${libname}${release}${shared_ext}$major'
18769  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18770  shlibpath_var=LD_LIBRARY_PATH
18771  shlibpath_overrides_runpath=no
18772  hardcode_into_libs=yes
18773  ;;
18774
18775irix5* | irix6* | nonstopux*)
18776  case $host_os in
18777    nonstopux*) version_type=nonstopux ;;
18778    *)
18779	if test "$lt_cv_prog_gnu_ld" = yes; then
18780		version_type=linux
18781	else
18782		version_type=irix
18783	fi ;;
18784  esac
18785  need_lib_prefix=no
18786  need_version=no
18787  soname_spec='${libname}${release}${shared_ext}$major'
18788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18789  case $host_os in
18790  irix5* | nonstopux*)
18791    libsuff= shlibsuff=
18792    ;;
18793  *)
18794    case $LD in # libtool.m4 will add one of these switches to LD
18795    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18796      libsuff= shlibsuff= libmagic=32-bit;;
18797    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18798      libsuff=32 shlibsuff=N32 libmagic=N32;;
18799    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18800      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18801    *) libsuff= shlibsuff= libmagic=never-match;;
18802    esac
18803    ;;
18804  esac
18805  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18806  shlibpath_overrides_runpath=no
18807  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18808  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18809  hardcode_into_libs=yes
18810  ;;
18811
18812# No shared lib support for Linux oldld, aout, or coff.
18813linux*oldld* | linux*aout* | linux*coff*)
18814  dynamic_linker=no
18815  ;;
18816
18817# This must be Linux ELF.
18818linux* | k*bsd*-gnu)
18819  version_type=linux
18820  need_lib_prefix=no
18821  need_version=no
18822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18823  soname_spec='${libname}${release}${shared_ext}$major'
18824  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18825  shlibpath_var=LD_LIBRARY_PATH
18826  shlibpath_overrides_runpath=no
18827  # This implies no fast_install, which is unacceptable.
18828  # Some rework will be needed to allow for fast_install
18829  # before this can be enabled.
18830  hardcode_into_libs=yes
18831  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18832  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18833
18834  # Append ld.so.conf contents to the search path
18835  if test -f /etc/ld.so.conf; then
18836    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' ' '`
18837    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18838  fi
18839
18840  # We used to test for /lib/ld.so.1 and disable shared libraries on
18841  # powerpc, because MkLinux only supported shared libraries with the
18842  # GNU dynamic linker.  Since this was broken with cross compilers,
18843  # most powerpc-linux boxes support dynamic linking these days and
18844  # people can always --disable-shared, the test was removed, and we
18845  # assume the GNU/Linux dynamic linker is in use.
18846  dynamic_linker='GNU/Linux ld.so'
18847  ;;
18848
18849netbsd*)
18850  version_type=sunos
18851  need_lib_prefix=no
18852  need_version=no
18853  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18854    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18855    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18856    dynamic_linker='NetBSD (a.out) ld.so'
18857  else
18858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18859    soname_spec='${libname}${release}${shared_ext}$major'
18860    dynamic_linker='NetBSD ld.elf_so'
18861  fi
18862  shlibpath_var=LD_LIBRARY_PATH
18863  shlibpath_overrides_runpath=yes
18864  hardcode_into_libs=yes
18865  ;;
18866
18867newsos6)
18868  version_type=linux
18869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870  shlibpath_var=LD_LIBRARY_PATH
18871  shlibpath_overrides_runpath=yes
18872  ;;
18873
18874nto-qnx*)
18875  version_type=linux
18876  need_lib_prefix=no
18877  need_version=no
18878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879  soname_spec='${libname}${release}${shared_ext}$major'
18880  shlibpath_var=LD_LIBRARY_PATH
18881  shlibpath_overrides_runpath=yes
18882  ;;
18883
18884openbsd*)
18885  version_type=sunos
18886  sys_lib_dlsearch_path_spec="/usr/lib"
18887  need_lib_prefix=no
18888  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18889  case $host_os in
18890    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18891    *)                         need_version=no  ;;
18892  esac
18893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18894  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18895  shlibpath_var=LD_LIBRARY_PATH
18896  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18897    case $host_os in
18898      openbsd2.[89] | openbsd2.[89].*)
18899	shlibpath_overrides_runpath=no
18900	;;
18901      *)
18902	shlibpath_overrides_runpath=yes
18903	;;
18904      esac
18905  else
18906    shlibpath_overrides_runpath=yes
18907  fi
18908  ;;
18909
18910os2*)
18911  libname_spec='$name'
18912  shrext_cmds=".dll"
18913  need_lib_prefix=no
18914  library_names_spec='$libname${shared_ext} $libname.a'
18915  dynamic_linker='OS/2 ld.exe'
18916  shlibpath_var=LIBPATH
18917  ;;
18918
18919osf3* | osf4* | osf5*)
18920  version_type=osf
18921  need_lib_prefix=no
18922  need_version=no
18923  soname_spec='${libname}${release}${shared_ext}$major'
18924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925  shlibpath_var=LD_LIBRARY_PATH
18926  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18927  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18928  ;;
18929
18930rdos*)
18931  dynamic_linker=no
18932  ;;
18933
18934solaris*)
18935  version_type=linux
18936  need_lib_prefix=no
18937  need_version=no
18938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939  soname_spec='${libname}${release}${shared_ext}$major'
18940  shlibpath_var=LD_LIBRARY_PATH
18941  shlibpath_overrides_runpath=yes
18942  hardcode_into_libs=yes
18943  # ldd complains unless libraries are executable
18944  postinstall_cmds='chmod +x $lib'
18945  ;;
18946
18947sunos4*)
18948  version_type=sunos
18949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18950  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  shlibpath_overrides_runpath=yes
18953  if test "$with_gnu_ld" = yes; then
18954    need_lib_prefix=no
18955  fi
18956  need_version=yes
18957  ;;
18958
18959sysv4 | sysv4.3*)
18960  version_type=linux
18961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18962  soname_spec='${libname}${release}${shared_ext}$major'
18963  shlibpath_var=LD_LIBRARY_PATH
18964  case $host_vendor in
18965    sni)
18966      shlibpath_overrides_runpath=no
18967      need_lib_prefix=no
18968      export_dynamic_flag_spec='${wl}-Blargedynsym'
18969      runpath_var=LD_RUN_PATH
18970      ;;
18971    siemens)
18972      need_lib_prefix=no
18973      ;;
18974    motorola)
18975      need_lib_prefix=no
18976      need_version=no
18977      shlibpath_overrides_runpath=no
18978      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18979      ;;
18980  esac
18981  ;;
18982
18983sysv4*MP*)
18984  if test -d /usr/nec ;then
18985    version_type=linux
18986    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18987    soname_spec='$libname${shared_ext}.$major'
18988    shlibpath_var=LD_LIBRARY_PATH
18989  fi
18990  ;;
18991
18992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18993  version_type=freebsd-elf
18994  need_lib_prefix=no
18995  need_version=no
18996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18997  soname_spec='${libname}${release}${shared_ext}$major'
18998  shlibpath_var=LD_LIBRARY_PATH
18999  hardcode_into_libs=yes
19000  if test "$with_gnu_ld" = yes; then
19001    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19002    shlibpath_overrides_runpath=no
19003  else
19004    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19005    shlibpath_overrides_runpath=yes
19006    case $host_os in
19007      sco3.2v5*)
19008        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19009	;;
19010    esac
19011  fi
19012  sys_lib_dlsearch_path_spec='/usr/lib'
19013  ;;
19014
19015uts4*)
19016  version_type=linux
19017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018  soname_spec='${libname}${release}${shared_ext}$major'
19019  shlibpath_var=LD_LIBRARY_PATH
19020  ;;
19021
19022*)
19023  dynamic_linker=no
19024  ;;
19025esac
19026{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19027$as_echo "$dynamic_linker" >&6; }
19028test "$dynamic_linker" = no && can_build_shared=no
19029
19030if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19031  $as_echo_n "(cached) " >&6
19032else
19033  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19034fi
19035
19036sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19037if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19038  $as_echo_n "(cached) " >&6
19039else
19040  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19041fi
19042
19043sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19044
19045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19046if test "$GCC" = yes; then
19047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19048fi
19049
19050{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19051$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19052hardcode_action_GCJ=
19053if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19054   test -n "$runpath_var_GCJ" || \
19055   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19056
19057  # We can hardcode non-existant directories.
19058  if test "$hardcode_direct_GCJ" != no &&
19059     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19060     # have to relink, otherwise we might link with an installed library
19061     # when we should be linking with a yet-to-be-installed one
19062     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19063     test "$hardcode_minus_L_GCJ" != no; then
19064    # Linking always hardcodes the temporary library directory.
19065    hardcode_action_GCJ=relink
19066  else
19067    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19068    hardcode_action_GCJ=immediate
19069  fi
19070else
19071  # We cannot hardcode anything, or else we can only hardcode existing
19072  # directories.
19073  hardcode_action_GCJ=unsupported
19074fi
19075{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19076$as_echo "$hardcode_action_GCJ" >&6; }
19077
19078if test "$hardcode_action_GCJ" = relink; then
19079  # Fast installation is not supported
19080  enable_fast_install=no
19081elif test "$shlibpath_overrides_runpath" = yes ||
19082     test "$enable_shared" = no; then
19083  # Fast installation is not necessary
19084  enable_fast_install=needless
19085fi
19086
19087
19088# The else clause should only fire when bootstrapping the
19089# libtool distribution, otherwise you forgot to ship ltmain.sh
19090# with your package, and you will get complaints that there are
19091# no rules to generate ltmain.sh.
19092if test -f "$ltmain"; then
19093  # See if we are running on zsh, and set the options which allow our commands through
19094  # without removal of \ escapes.
19095  if test -n "${ZSH_VERSION+set}" ; then
19096    setopt NO_GLOB_SUBST
19097  fi
19098  # Now quote all the things that may contain metacharacters while being
19099  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19100  # variables and quote the copies for generation of the libtool script.
19101  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19102    SED SHELL STRIP \
19103    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19104    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19105    deplibs_check_method reload_flag reload_cmds need_locks \
19106    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19107    lt_cv_sys_global_symbol_to_c_name_address \
19108    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19109    old_postinstall_cmds old_postuninstall_cmds \
19110    compiler_GCJ \
19111    CC_GCJ \
19112    LD_GCJ \
19113    lt_prog_compiler_wl_GCJ \
19114    lt_prog_compiler_pic_GCJ \
19115    lt_prog_compiler_static_GCJ \
19116    lt_prog_compiler_no_builtin_flag_GCJ \
19117    export_dynamic_flag_spec_GCJ \
19118    thread_safe_flag_spec_GCJ \
19119    whole_archive_flag_spec_GCJ \
19120    enable_shared_with_static_runtimes_GCJ \
19121    old_archive_cmds_GCJ \
19122    old_archive_from_new_cmds_GCJ \
19123    predep_objects_GCJ \
19124    postdep_objects_GCJ \
19125    predeps_GCJ \
19126    postdeps_GCJ \
19127    compiler_lib_search_path_GCJ \
19128    compiler_lib_search_dirs_GCJ \
19129    archive_cmds_GCJ \
19130    archive_expsym_cmds_GCJ \
19131    postinstall_cmds_GCJ \
19132    postuninstall_cmds_GCJ \
19133    old_archive_from_expsyms_cmds_GCJ \
19134    allow_undefined_flag_GCJ \
19135    no_undefined_flag_GCJ \
19136    export_symbols_cmds_GCJ \
19137    hardcode_libdir_flag_spec_GCJ \
19138    hardcode_libdir_flag_spec_ld_GCJ \
19139    hardcode_libdir_separator_GCJ \
19140    hardcode_automatic_GCJ \
19141    module_cmds_GCJ \
19142    module_expsym_cmds_GCJ \
19143    lt_cv_prog_compiler_c_o_GCJ \
19144    fix_srcfile_path_GCJ \
19145    exclude_expsyms_GCJ \
19146    include_expsyms_GCJ; do
19147
19148    case $var in
19149    old_archive_cmds_GCJ | \
19150    old_archive_from_new_cmds_GCJ | \
19151    archive_cmds_GCJ | \
19152    archive_expsym_cmds_GCJ | \
19153    module_cmds_GCJ | \
19154    module_expsym_cmds_GCJ | \
19155    old_archive_from_expsyms_cmds_GCJ | \
19156    export_symbols_cmds_GCJ | \
19157    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19158    postinstall_cmds | postuninstall_cmds | \
19159    old_postinstall_cmds | old_postuninstall_cmds | \
19160    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19161      # Double-quote double-evaled strings.
19162      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19163      ;;
19164    *)
19165      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19166      ;;
19167    esac
19168  done
19169
19170  case $lt_echo in
19171  *'\$0 --fallback-echo"')
19172    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19173    ;;
19174  esac
19175
19176cfgfile="$ofile"
19177
19178  cat <<__EOF__ >> "$cfgfile"
19179# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19180
19181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19182
19183# Shell to use when invoking shell scripts.
19184SHELL=$lt_SHELL
19185
19186# Whether or not to build shared libraries.
19187build_libtool_libs=$enable_shared
19188
19189# Whether or not to build static libraries.
19190build_old_libs=$enable_static
19191
19192# Whether or not to add -lc for building shared libraries.
19193build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19194
19195# Whether or not to disallow shared libs when runtime libs are static
19196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19197
19198# Whether or not to optimize for fast installation.
19199fast_install=$enable_fast_install
19200
19201# The host system.
19202host_alias=$host_alias
19203host=$host
19204host_os=$host_os
19205
19206# The build system.
19207build_alias=$build_alias
19208build=$build
19209build_os=$build_os
19210
19211# An echo program that does not interpret backslashes.
19212echo=$lt_echo
19213
19214# The archiver.
19215AR=$lt_AR
19216AR_FLAGS=$lt_AR_FLAGS
19217
19218# A C compiler.
19219LTCC=$lt_LTCC
19220
19221# LTCC compiler flags.
19222LTCFLAGS=$lt_LTCFLAGS
19223
19224# A language-specific compiler.
19225CC=$lt_compiler_GCJ
19226
19227# Is the compiler the GNU C compiler?
19228with_gcc=$GCC_GCJ
19229
19230# An ERE matcher.
19231EGREP=$lt_EGREP
19232
19233# The linker used to build libraries.
19234LD=$lt_LD_GCJ
19235
19236# Whether we need hard or soft links.
19237LN_S=$lt_LN_S
19238
19239# A BSD-compatible nm program.
19240NM=$lt_NM
19241
19242# A symbol stripping program
19243STRIP=$lt_STRIP
19244
19245# Used to examine libraries when file_magic_cmd begins "file"
19246MAGIC_CMD=$MAGIC_CMD
19247
19248# Used on cygwin: DLL creation program.
19249DLLTOOL="$DLLTOOL"
19250
19251# Used on cygwin: object dumper.
19252OBJDUMP="$OBJDUMP"
19253
19254# Used on cygwin: assembler.
19255AS="$AS"
19256
19257# The name of the directory that contains temporary libtool files.
19258objdir=$objdir
19259
19260# How to create reloadable object files.
19261reload_flag=$lt_reload_flag
19262reload_cmds=$lt_reload_cmds
19263
19264# How to pass a linker flag through the compiler.
19265wl=$lt_lt_prog_compiler_wl_GCJ
19266
19267# Object file suffix (normally "o").
19268objext="$ac_objext"
19269
19270# Old archive suffix (normally "a").
19271libext="$libext"
19272
19273# Shared library suffix (normally ".so").
19274shrext_cmds='$shrext_cmds'
19275
19276# Executable file suffix (normally "").
19277exeext="$exeext"
19278
19279# Additional compiler flags for building library objects.
19280pic_flag=$lt_lt_prog_compiler_pic_GCJ
19281pic_mode=$pic_mode
19282
19283# What is the maximum length of a command?
19284max_cmd_len=$lt_cv_sys_max_cmd_len
19285
19286# Does compiler simultaneously support -c and -o options?
19287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19288
19289# Must we lock files when doing compilation?
19290need_locks=$lt_need_locks
19291
19292# Do we need the lib prefix for modules?
19293need_lib_prefix=$need_lib_prefix
19294
19295# Do we need a version for libraries?
19296need_version=$need_version
19297
19298# Whether dlopen is supported.
19299dlopen_support=$enable_dlopen
19300
19301# Whether dlopen of programs is supported.
19302dlopen_self=$enable_dlopen_self
19303
19304# Whether dlopen of statically linked programs is supported.
19305dlopen_self_static=$enable_dlopen_self_static
19306
19307# Compiler flag to prevent dynamic linking.
19308link_static_flag=$lt_lt_prog_compiler_static_GCJ
19309
19310# Compiler flag to turn off builtin functions.
19311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19312
19313# Compiler flag to allow reflexive dlopens.
19314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19315
19316# Compiler flag to generate shared objects directly from archives.
19317whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19318
19319# Compiler flag to generate thread-safe objects.
19320thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19321
19322# Library versioning type.
19323version_type=$version_type
19324
19325# Format of library name prefix.
19326libname_spec=$lt_libname_spec
19327
19328# List of archive names.  First name is the real one, the rest are links.
19329# The last name is the one that the linker finds with -lNAME.
19330library_names_spec=$lt_library_names_spec
19331
19332# The coded name of the library, if different from the real name.
19333soname_spec=$lt_soname_spec
19334
19335# Commands used to build and install an old-style archive.
19336RANLIB=$lt_RANLIB
19337old_archive_cmds=$lt_old_archive_cmds_GCJ
19338old_postinstall_cmds=$lt_old_postinstall_cmds
19339old_postuninstall_cmds=$lt_old_postuninstall_cmds
19340
19341# Create an old-style archive from a shared archive.
19342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19343
19344# Create a temporary old-style archive to link instead of a shared archive.
19345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19346
19347# Commands used to build and install a shared archive.
19348archive_cmds=$lt_archive_cmds_GCJ
19349archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19350postinstall_cmds=$lt_postinstall_cmds
19351postuninstall_cmds=$lt_postuninstall_cmds
19352
19353# Commands used to build a loadable module (assumed same as above if empty)
19354module_cmds=$lt_module_cmds_GCJ
19355module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19356
19357# Commands to strip libraries.
19358old_striplib=$lt_old_striplib
19359striplib=$lt_striplib
19360
19361# Dependencies to place before the objects being linked to create a
19362# shared library.
19363predep_objects=$lt_predep_objects_GCJ
19364
19365# Dependencies to place after the objects being linked to create a
19366# shared library.
19367postdep_objects=$lt_postdep_objects_GCJ
19368
19369# Dependencies to place before the objects being linked to create a
19370# shared library.
19371predeps=$lt_predeps_GCJ
19372
19373# Dependencies to place after the objects being linked to create a
19374# shared library.
19375postdeps=$lt_postdeps_GCJ
19376
19377# The directories searched by this compiler when creating a shared
19378# library
19379compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19380
19381# The library search path used internally by the compiler when linking
19382# a shared library.
19383compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19384
19385# Method to check whether dependent libraries are shared objects.
19386deplibs_check_method=$lt_deplibs_check_method
19387
19388# Command to use when deplibs_check_method == file_magic.
19389file_magic_cmd=$lt_file_magic_cmd
19390
19391# Flag that allows shared libraries with undefined symbols to be built.
19392allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19393
19394# Flag that forces no undefined symbols.
19395no_undefined_flag=$lt_no_undefined_flag_GCJ
19396
19397# Commands used to finish a libtool library installation in a directory.
19398finish_cmds=$lt_finish_cmds
19399
19400# Same as above, but a single script fragment to be evaled but not shown.
19401finish_eval=$lt_finish_eval
19402
19403# Take the output of nm and produce a listing of raw symbols and C names.
19404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19405
19406# Transform the output of nm in a proper C declaration
19407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19408
19409# Transform the output of nm in a C name address pair
19410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19411
19412# This is the shared library runtime path variable.
19413runpath_var=$runpath_var
19414
19415# This is the shared library path variable.
19416shlibpath_var=$shlibpath_var
19417
19418# Is shlibpath searched before the hard-coded library search path?
19419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19420
19421# How to hardcode a shared library path into an executable.
19422hardcode_action=$hardcode_action_GCJ
19423
19424# Whether we should hardcode library paths into libraries.
19425hardcode_into_libs=$hardcode_into_libs
19426
19427# Flag to hardcode \$libdir into a binary during linking.
19428# This must work even if \$libdir does not exist.
19429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19430
19431# If ld is used when linking, flag to hardcode \$libdir into
19432# a binary during linking. This must work even if \$libdir does
19433# not exist.
19434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19435
19436# Whether we need a single -rpath flag with a separated argument.
19437hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19438
19439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19440# resulting binary.
19441hardcode_direct=$hardcode_direct_GCJ
19442
19443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19444# resulting binary.
19445hardcode_minus_L=$hardcode_minus_L_GCJ
19446
19447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19448# the resulting binary.
19449hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19450
19451# Set to yes if building a shared library automatically hardcodes DIR into the library
19452# and all subsequent libraries and executables linked against it.
19453hardcode_automatic=$hardcode_automatic_GCJ
19454
19455# Variables whose values should be saved in libtool wrapper scripts and
19456# restored at relink time.
19457variables_saved_for_relink="$variables_saved_for_relink"
19458
19459# Whether libtool must link a program against all its dependency libraries.
19460link_all_deplibs=$link_all_deplibs_GCJ
19461
19462# Compile-time system search path for libraries
19463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19464
19465# Run-time system search path for libraries
19466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19467
19468# Fix the shell variable \$srcfile for the compiler.
19469fix_srcfile_path=$lt_fix_srcfile_path
19470
19471# Set to yes if exported symbols are required.
19472always_export_symbols=$always_export_symbols_GCJ
19473
19474# The commands to list exported symbols.
19475export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19476
19477# The commands to extract the exported symbol list from a shared archive.
19478extract_expsyms_cmds=$lt_extract_expsyms_cmds
19479
19480# Symbols that should not be listed in the preloaded symbols.
19481exclude_expsyms=$lt_exclude_expsyms_GCJ
19482
19483# Symbols that must always be exported.
19484include_expsyms=$lt_include_expsyms_GCJ
19485
19486# ### END LIBTOOL TAG CONFIG: $tagname
19487
19488__EOF__
19489
19490
19491else
19492  # If there is no Makefile yet, we rely on a make rule to execute
19493  # `config.status --recheck' to rerun these tests and create the
19494  # libtool script then.
19495  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19496  if test -f "$ltmain_in"; then
19497    test -f Makefile && make "$ltmain"
19498  fi
19499fi
19500
19501
19502ac_ext=c
19503ac_cpp='$CPP $CPPFLAGS'
19504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19506ac_compiler_gnu=$ac_cv_c_compiler_gnu
19507
19508CC="$lt_save_CC"
19509
19510	else
19511	  tagname=""
19512	fi
19513	;;
19514
19515      RC)
19516
19517
19518# Source file extension for RC test sources.
19519ac_ext=rc
19520
19521# Object file extension for compiled RC test sources.
19522objext=o
19523objext_RC=$objext
19524
19525# Code to be used in simple compile tests
19526lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19527
19528# Code to be used in simple link tests
19529lt_simple_link_test_code="$lt_simple_compile_test_code"
19530
19531# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19532
19533# If no C compiler was specified, use CC.
19534LTCC=${LTCC-"$CC"}
19535
19536# If no C compiler flags were specified, use CFLAGS.
19537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19538
19539# Allow CC to be a program name with arguments.
19540compiler=$CC
19541
19542
19543# save warnings/boilerplate of simple test code
19544ac_outfile=conftest.$ac_objext
19545echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19546eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19547_lt_compiler_boilerplate=`cat conftest.err`
19548$rm conftest*
19549
19550ac_outfile=conftest.$ac_objext
19551echo "$lt_simple_link_test_code" >conftest.$ac_ext
19552eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19553_lt_linker_boilerplate=`cat conftest.err`
19554$rm -r conftest*
19555
19556
19557# Allow CC to be a program name with arguments.
19558lt_save_CC="$CC"
19559CC=${RC-"windres"}
19560compiler=$CC
19561compiler_RC=$CC
19562for cc_temp in $compiler""; do
19563  case $cc_temp in
19564    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19565    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19566    \-*) ;;
19567    *) break;;
19568  esac
19569done
19570cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19571
19572lt_cv_prog_compiler_c_o_RC=yes
19573
19574# The else clause should only fire when bootstrapping the
19575# libtool distribution, otherwise you forgot to ship ltmain.sh
19576# with your package, and you will get complaints that there are
19577# no rules to generate ltmain.sh.
19578if test -f "$ltmain"; then
19579  # See if we are running on zsh, and set the options which allow our commands through
19580  # without removal of \ escapes.
19581  if test -n "${ZSH_VERSION+set}" ; then
19582    setopt NO_GLOB_SUBST
19583  fi
19584  # Now quote all the things that may contain metacharacters while being
19585  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19586  # variables and quote the copies for generation of the libtool script.
19587  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19588    SED SHELL STRIP \
19589    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19590    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19591    deplibs_check_method reload_flag reload_cmds need_locks \
19592    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19593    lt_cv_sys_global_symbol_to_c_name_address \
19594    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19595    old_postinstall_cmds old_postuninstall_cmds \
19596    compiler_RC \
19597    CC_RC \
19598    LD_RC \
19599    lt_prog_compiler_wl_RC \
19600    lt_prog_compiler_pic_RC \
19601    lt_prog_compiler_static_RC \
19602    lt_prog_compiler_no_builtin_flag_RC \
19603    export_dynamic_flag_spec_RC \
19604    thread_safe_flag_spec_RC \
19605    whole_archive_flag_spec_RC \
19606    enable_shared_with_static_runtimes_RC \
19607    old_archive_cmds_RC \
19608    old_archive_from_new_cmds_RC \
19609    predep_objects_RC \
19610    postdep_objects_RC \
19611    predeps_RC \
19612    postdeps_RC \
19613    compiler_lib_search_path_RC \
19614    compiler_lib_search_dirs_RC \
19615    archive_cmds_RC \
19616    archive_expsym_cmds_RC \
19617    postinstall_cmds_RC \
19618    postuninstall_cmds_RC \
19619    old_archive_from_expsyms_cmds_RC \
19620    allow_undefined_flag_RC \
19621    no_undefined_flag_RC \
19622    export_symbols_cmds_RC \
19623    hardcode_libdir_flag_spec_RC \
19624    hardcode_libdir_flag_spec_ld_RC \
19625    hardcode_libdir_separator_RC \
19626    hardcode_automatic_RC \
19627    module_cmds_RC \
19628    module_expsym_cmds_RC \
19629    lt_cv_prog_compiler_c_o_RC \
19630    fix_srcfile_path_RC \
19631    exclude_expsyms_RC \
19632    include_expsyms_RC; do
19633
19634    case $var in
19635    old_archive_cmds_RC | \
19636    old_archive_from_new_cmds_RC | \
19637    archive_cmds_RC | \
19638    archive_expsym_cmds_RC | \
19639    module_cmds_RC | \
19640    module_expsym_cmds_RC | \
19641    old_archive_from_expsyms_cmds_RC | \
19642    export_symbols_cmds_RC | \
19643    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19644    postinstall_cmds | postuninstall_cmds | \
19645    old_postinstall_cmds | old_postuninstall_cmds | \
19646    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19647      # Double-quote double-evaled strings.
19648      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19649      ;;
19650    *)
19651      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19652      ;;
19653    esac
19654  done
19655
19656  case $lt_echo in
19657  *'\$0 --fallback-echo"')
19658    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19659    ;;
19660  esac
19661
19662cfgfile="$ofile"
19663
19664  cat <<__EOF__ >> "$cfgfile"
19665# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19666
19667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19668
19669# Shell to use when invoking shell scripts.
19670SHELL=$lt_SHELL
19671
19672# Whether or not to build shared libraries.
19673build_libtool_libs=$enable_shared
19674
19675# Whether or not to build static libraries.
19676build_old_libs=$enable_static
19677
19678# Whether or not to add -lc for building shared libraries.
19679build_libtool_need_lc=$archive_cmds_need_lc_RC
19680
19681# Whether or not to disallow shared libs when runtime libs are static
19682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19683
19684# Whether or not to optimize for fast installation.
19685fast_install=$enable_fast_install
19686
19687# The host system.
19688host_alias=$host_alias
19689host=$host
19690host_os=$host_os
19691
19692# The build system.
19693build_alias=$build_alias
19694build=$build
19695build_os=$build_os
19696
19697# An echo program that does not interpret backslashes.
19698echo=$lt_echo
19699
19700# The archiver.
19701AR=$lt_AR
19702AR_FLAGS=$lt_AR_FLAGS
19703
19704# A C compiler.
19705LTCC=$lt_LTCC
19706
19707# LTCC compiler flags.
19708LTCFLAGS=$lt_LTCFLAGS
19709
19710# A language-specific compiler.
19711CC=$lt_compiler_RC
19712
19713# Is the compiler the GNU C compiler?
19714with_gcc=$GCC_RC
19715
19716# An ERE matcher.
19717EGREP=$lt_EGREP
19718
19719# The linker used to build libraries.
19720LD=$lt_LD_RC
19721
19722# Whether we need hard or soft links.
19723LN_S=$lt_LN_S
19724
19725# A BSD-compatible nm program.
19726NM=$lt_NM
19727
19728# A symbol stripping program
19729STRIP=$lt_STRIP
19730
19731# Used to examine libraries when file_magic_cmd begins "file"
19732MAGIC_CMD=$MAGIC_CMD
19733
19734# Used on cygwin: DLL creation program.
19735DLLTOOL="$DLLTOOL"
19736
19737# Used on cygwin: object dumper.
19738OBJDUMP="$OBJDUMP"
19739
19740# Used on cygwin: assembler.
19741AS="$AS"
19742
19743# The name of the directory that contains temporary libtool files.
19744objdir=$objdir
19745
19746# How to create reloadable object files.
19747reload_flag=$lt_reload_flag
19748reload_cmds=$lt_reload_cmds
19749
19750# How to pass a linker flag through the compiler.
19751wl=$lt_lt_prog_compiler_wl_RC
19752
19753# Object file suffix (normally "o").
19754objext="$ac_objext"
19755
19756# Old archive suffix (normally "a").
19757libext="$libext"
19758
19759# Shared library suffix (normally ".so").
19760shrext_cmds='$shrext_cmds'
19761
19762# Executable file suffix (normally "").
19763exeext="$exeext"
19764
19765# Additional compiler flags for building library objects.
19766pic_flag=$lt_lt_prog_compiler_pic_RC
19767pic_mode=$pic_mode
19768
19769# What is the maximum length of a command?
19770max_cmd_len=$lt_cv_sys_max_cmd_len
19771
19772# Does compiler simultaneously support -c and -o options?
19773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19774
19775# Must we lock files when doing compilation?
19776need_locks=$lt_need_locks
19777
19778# Do we need the lib prefix for modules?
19779need_lib_prefix=$need_lib_prefix
19780
19781# Do we need a version for libraries?
19782need_version=$need_version
19783
19784# Whether dlopen is supported.
19785dlopen_support=$enable_dlopen
19786
19787# Whether dlopen of programs is supported.
19788dlopen_self=$enable_dlopen_self
19789
19790# Whether dlopen of statically linked programs is supported.
19791dlopen_self_static=$enable_dlopen_self_static
19792
19793# Compiler flag to prevent dynamic linking.
19794link_static_flag=$lt_lt_prog_compiler_static_RC
19795
19796# Compiler flag to turn off builtin functions.
19797no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19798
19799# Compiler flag to allow reflexive dlopens.
19800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19801
19802# Compiler flag to generate shared objects directly from archives.
19803whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19804
19805# Compiler flag to generate thread-safe objects.
19806thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19807
19808# Library versioning type.
19809version_type=$version_type
19810
19811# Format of library name prefix.
19812libname_spec=$lt_libname_spec
19813
19814# List of archive names.  First name is the real one, the rest are links.
19815# The last name is the one that the linker finds with -lNAME.
19816library_names_spec=$lt_library_names_spec
19817
19818# The coded name of the library, if different from the real name.
19819soname_spec=$lt_soname_spec
19820
19821# Commands used to build and install an old-style archive.
19822RANLIB=$lt_RANLIB
19823old_archive_cmds=$lt_old_archive_cmds_RC
19824old_postinstall_cmds=$lt_old_postinstall_cmds
19825old_postuninstall_cmds=$lt_old_postuninstall_cmds
19826
19827# Create an old-style archive from a shared archive.
19828old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19829
19830# Create a temporary old-style archive to link instead of a shared archive.
19831old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19832
19833# Commands used to build and install a shared archive.
19834archive_cmds=$lt_archive_cmds_RC
19835archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19836postinstall_cmds=$lt_postinstall_cmds
19837postuninstall_cmds=$lt_postuninstall_cmds
19838
19839# Commands used to build a loadable module (assumed same as above if empty)
19840module_cmds=$lt_module_cmds_RC
19841module_expsym_cmds=$lt_module_expsym_cmds_RC
19842
19843# Commands to strip libraries.
19844old_striplib=$lt_old_striplib
19845striplib=$lt_striplib
19846
19847# Dependencies to place before the objects being linked to create a
19848# shared library.
19849predep_objects=$lt_predep_objects_RC
19850
19851# Dependencies to place after the objects being linked to create a
19852# shared library.
19853postdep_objects=$lt_postdep_objects_RC
19854
19855# Dependencies to place before the objects being linked to create a
19856# shared library.
19857predeps=$lt_predeps_RC
19858
19859# Dependencies to place after the objects being linked to create a
19860# shared library.
19861postdeps=$lt_postdeps_RC
19862
19863# The directories searched by this compiler when creating a shared
19864# library
19865compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19866
19867# The library search path used internally by the compiler when linking
19868# a shared library.
19869compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19870
19871# Method to check whether dependent libraries are shared objects.
19872deplibs_check_method=$lt_deplibs_check_method
19873
19874# Command to use when deplibs_check_method == file_magic.
19875file_magic_cmd=$lt_file_magic_cmd
19876
19877# Flag that allows shared libraries with undefined symbols to be built.
19878allow_undefined_flag=$lt_allow_undefined_flag_RC
19879
19880# Flag that forces no undefined symbols.
19881no_undefined_flag=$lt_no_undefined_flag_RC
19882
19883# Commands used to finish a libtool library installation in a directory.
19884finish_cmds=$lt_finish_cmds
19885
19886# Same as above, but a single script fragment to be evaled but not shown.
19887finish_eval=$lt_finish_eval
19888
19889# Take the output of nm and produce a listing of raw symbols and C names.
19890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19891
19892# Transform the output of nm in a proper C declaration
19893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19894
19895# Transform the output of nm in a C name address pair
19896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19897
19898# This is the shared library runtime path variable.
19899runpath_var=$runpath_var
19900
19901# This is the shared library path variable.
19902shlibpath_var=$shlibpath_var
19903
19904# Is shlibpath searched before the hard-coded library search path?
19905shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19906
19907# How to hardcode a shared library path into an executable.
19908hardcode_action=$hardcode_action_RC
19909
19910# Whether we should hardcode library paths into libraries.
19911hardcode_into_libs=$hardcode_into_libs
19912
19913# Flag to hardcode \$libdir into a binary during linking.
19914# This must work even if \$libdir does not exist.
19915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19916
19917# If ld is used when linking, flag to hardcode \$libdir into
19918# a binary during linking. This must work even if \$libdir does
19919# not exist.
19920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19921
19922# Whether we need a single -rpath flag with a separated argument.
19923hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19924
19925# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19926# resulting binary.
19927hardcode_direct=$hardcode_direct_RC
19928
19929# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19930# resulting binary.
19931hardcode_minus_L=$hardcode_minus_L_RC
19932
19933# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19934# the resulting binary.
19935hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19936
19937# Set to yes if building a shared library automatically hardcodes DIR into the library
19938# and all subsequent libraries and executables linked against it.
19939hardcode_automatic=$hardcode_automatic_RC
19940
19941# Variables whose values should be saved in libtool wrapper scripts and
19942# restored at relink time.
19943variables_saved_for_relink="$variables_saved_for_relink"
19944
19945# Whether libtool must link a program against all its dependency libraries.
19946link_all_deplibs=$link_all_deplibs_RC
19947
19948# Compile-time system search path for libraries
19949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19950
19951# Run-time system search path for libraries
19952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19953
19954# Fix the shell variable \$srcfile for the compiler.
19955fix_srcfile_path=$lt_fix_srcfile_path
19956
19957# Set to yes if exported symbols are required.
19958always_export_symbols=$always_export_symbols_RC
19959
19960# The commands to list exported symbols.
19961export_symbols_cmds=$lt_export_symbols_cmds_RC
19962
19963# The commands to extract the exported symbol list from a shared archive.
19964extract_expsyms_cmds=$lt_extract_expsyms_cmds
19965
19966# Symbols that should not be listed in the preloaded symbols.
19967exclude_expsyms=$lt_exclude_expsyms_RC
19968
19969# Symbols that must always be exported.
19970include_expsyms=$lt_include_expsyms_RC
19971
19972# ### END LIBTOOL TAG CONFIG: $tagname
19973
19974__EOF__
19975
19976
19977else
19978  # If there is no Makefile yet, we rely on a make rule to execute
19979  # `config.status --recheck' to rerun these tests and create the
19980  # libtool script then.
19981  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19982  if test -f "$ltmain_in"; then
19983    test -f Makefile && make "$ltmain"
19984  fi
19985fi
19986
19987
19988ac_ext=c
19989ac_cpp='$CPP $CPPFLAGS'
19990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19992ac_compiler_gnu=$ac_cv_c_compiler_gnu
19993
19994CC="$lt_save_CC"
19995
19996	;;
19997
19998      *)
19999	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20000$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20001   { (exit 1); exit 1; }; }
20002	;;
20003      esac
20004
20005      # Append the new tag name to the list of available tags.
20006      if test -n "$tagname" ; then
20007      available_tags="$available_tags $tagname"
20008    fi
20009    fi
20010  done
20011  IFS="$lt_save_ifs"
20012
20013  # Now substitute the updated list of available tags.
20014  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20015    mv "${ofile}T" "$ofile"
20016    chmod +x "$ofile"
20017  else
20018    rm -f "${ofile}T"
20019    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20020$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20021   { (exit 1); exit 1; }; }
20022  fi
20023fi
20024
20025
20026
20027# This can be used to rebuild libtool when needed
20028LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20029
20030# Always use our own libtool.
20031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20032
20033# Prevent multiple expansion
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054ac_ext=c
20055ac_cpp='$CPP $CPPFLAGS'
20056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20058ac_compiler_gnu=$ac_cv_c_compiler_gnu
20059if test -n "$ac_tool_prefix"; then
20060  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20061set dummy ${ac_tool_prefix}gcc; ac_word=$2
20062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20063$as_echo_n "checking for $ac_word... " >&6; }
20064if test "${ac_cv_prog_CC+set}" = set; then
20065  $as_echo_n "(cached) " >&6
20066else
20067  if test -n "$CC"; then
20068  ac_cv_prog_CC="$CC" # Let the user override the test.
20069else
20070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071for as_dir in $PATH
20072do
20073  IFS=$as_save_IFS
20074  test -z "$as_dir" && as_dir=.
20075  for ac_exec_ext in '' $ac_executable_extensions; do
20076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20078    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20079    break 2
20080  fi
20081done
20082done
20083IFS=$as_save_IFS
20084
20085fi
20086fi
20087CC=$ac_cv_prog_CC
20088if test -n "$CC"; then
20089  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20090$as_echo "$CC" >&6; }
20091else
20092  { $as_echo "$as_me:$LINENO: result: no" >&5
20093$as_echo "no" >&6; }
20094fi
20095
20096
20097fi
20098if test -z "$ac_cv_prog_CC"; then
20099  ac_ct_CC=$CC
20100  # Extract the first word of "gcc", so it can be a program name with args.
20101set dummy gcc; ac_word=$2
20102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20103$as_echo_n "checking for $ac_word... " >&6; }
20104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20105  $as_echo_n "(cached) " >&6
20106else
20107  if test -n "$ac_ct_CC"; then
20108  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20109else
20110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20111for as_dir in $PATH
20112do
20113  IFS=$as_save_IFS
20114  test -z "$as_dir" && as_dir=.
20115  for ac_exec_ext in '' $ac_executable_extensions; do
20116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20117    ac_cv_prog_ac_ct_CC="gcc"
20118    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20119    break 2
20120  fi
20121done
20122done
20123IFS=$as_save_IFS
20124
20125fi
20126fi
20127ac_ct_CC=$ac_cv_prog_ac_ct_CC
20128if test -n "$ac_ct_CC"; then
20129  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20130$as_echo "$ac_ct_CC" >&6; }
20131else
20132  { $as_echo "$as_me:$LINENO: result: no" >&5
20133$as_echo "no" >&6; }
20134fi
20135
20136  if test "x$ac_ct_CC" = x; then
20137    CC=""
20138  else
20139    case $cross_compiling:$ac_tool_warned in
20140yes:)
20141{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20143ac_tool_warned=yes ;;
20144esac
20145    CC=$ac_ct_CC
20146  fi
20147else
20148  CC="$ac_cv_prog_CC"
20149fi
20150
20151if test -z "$CC"; then
20152          if test -n "$ac_tool_prefix"; then
20153    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20154set dummy ${ac_tool_prefix}cc; ac_word=$2
20155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20156$as_echo_n "checking for $ac_word... " >&6; }
20157if test "${ac_cv_prog_CC+set}" = set; then
20158  $as_echo_n "(cached) " >&6
20159else
20160  if test -n "$CC"; then
20161  ac_cv_prog_CC="$CC" # Let the user override the test.
20162else
20163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20164for as_dir in $PATH
20165do
20166  IFS=$as_save_IFS
20167  test -z "$as_dir" && as_dir=.
20168  for ac_exec_ext in '' $ac_executable_extensions; do
20169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20170    ac_cv_prog_CC="${ac_tool_prefix}cc"
20171    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20172    break 2
20173  fi
20174done
20175done
20176IFS=$as_save_IFS
20177
20178fi
20179fi
20180CC=$ac_cv_prog_CC
20181if test -n "$CC"; then
20182  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20183$as_echo "$CC" >&6; }
20184else
20185  { $as_echo "$as_me:$LINENO: result: no" >&5
20186$as_echo "no" >&6; }
20187fi
20188
20189
20190  fi
20191fi
20192if test -z "$CC"; then
20193  # Extract the first word of "cc", so it can be a program name with args.
20194set dummy cc; ac_word=$2
20195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20196$as_echo_n "checking for $ac_word... " >&6; }
20197if test "${ac_cv_prog_CC+set}" = set; then
20198  $as_echo_n "(cached) " >&6
20199else
20200  if test -n "$CC"; then
20201  ac_cv_prog_CC="$CC" # Let the user override the test.
20202else
20203  ac_prog_rejected=no
20204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205for as_dir in $PATH
20206do
20207  IFS=$as_save_IFS
20208  test -z "$as_dir" && as_dir=.
20209  for ac_exec_ext in '' $ac_executable_extensions; do
20210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20211    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20212       ac_prog_rejected=yes
20213       continue
20214     fi
20215    ac_cv_prog_CC="cc"
20216    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20217    break 2
20218  fi
20219done
20220done
20221IFS=$as_save_IFS
20222
20223if test $ac_prog_rejected = yes; then
20224  # We found a bogon in the path, so make sure we never use it.
20225  set dummy $ac_cv_prog_CC
20226  shift
20227  if test $# != 0; then
20228    # We chose a different compiler from the bogus one.
20229    # However, it has the same basename, so the bogon will be chosen
20230    # first if we set CC to just the basename; use the full file name.
20231    shift
20232    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20233  fi
20234fi
20235fi
20236fi
20237CC=$ac_cv_prog_CC
20238if test -n "$CC"; then
20239  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20240$as_echo "$CC" >&6; }
20241else
20242  { $as_echo "$as_me:$LINENO: result: no" >&5
20243$as_echo "no" >&6; }
20244fi
20245
20246
20247fi
20248if test -z "$CC"; then
20249  if test -n "$ac_tool_prefix"; then
20250  for ac_prog in cl.exe
20251  do
20252    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20253set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20255$as_echo_n "checking for $ac_word... " >&6; }
20256if test "${ac_cv_prog_CC+set}" = set; then
20257  $as_echo_n "(cached) " >&6
20258else
20259  if test -n "$CC"; then
20260  ac_cv_prog_CC="$CC" # Let the user override the test.
20261else
20262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20263for as_dir in $PATH
20264do
20265  IFS=$as_save_IFS
20266  test -z "$as_dir" && as_dir=.
20267  for ac_exec_ext in '' $ac_executable_extensions; do
20268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20269    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20270    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20271    break 2
20272  fi
20273done
20274done
20275IFS=$as_save_IFS
20276
20277fi
20278fi
20279CC=$ac_cv_prog_CC
20280if test -n "$CC"; then
20281  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20282$as_echo "$CC" >&6; }
20283else
20284  { $as_echo "$as_me:$LINENO: result: no" >&5
20285$as_echo "no" >&6; }
20286fi
20287
20288
20289    test -n "$CC" && break
20290  done
20291fi
20292if test -z "$CC"; then
20293  ac_ct_CC=$CC
20294  for ac_prog in cl.exe
20295do
20296  # Extract the first word of "$ac_prog", so it can be a program name with args.
20297set dummy $ac_prog; ac_word=$2
20298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20299$as_echo_n "checking for $ac_word... " >&6; }
20300if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20301  $as_echo_n "(cached) " >&6
20302else
20303  if test -n "$ac_ct_CC"; then
20304  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20305else
20306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20307for as_dir in $PATH
20308do
20309  IFS=$as_save_IFS
20310  test -z "$as_dir" && as_dir=.
20311  for ac_exec_ext in '' $ac_executable_extensions; do
20312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20313    ac_cv_prog_ac_ct_CC="$ac_prog"
20314    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20315    break 2
20316  fi
20317done
20318done
20319IFS=$as_save_IFS
20320
20321fi
20322fi
20323ac_ct_CC=$ac_cv_prog_ac_ct_CC
20324if test -n "$ac_ct_CC"; then
20325  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20326$as_echo "$ac_ct_CC" >&6; }
20327else
20328  { $as_echo "$as_me:$LINENO: result: no" >&5
20329$as_echo "no" >&6; }
20330fi
20331
20332
20333  test -n "$ac_ct_CC" && break
20334done
20335
20336  if test "x$ac_ct_CC" = x; then
20337    CC=""
20338  else
20339    case $cross_compiling:$ac_tool_warned in
20340yes:)
20341{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20343ac_tool_warned=yes ;;
20344esac
20345    CC=$ac_ct_CC
20346  fi
20347fi
20348
20349fi
20350
20351
20352test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20354{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20355See \`config.log' for more details." >&5
20356$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20357See \`config.log' for more details." >&2;}
20358   { (exit 1); exit 1; }; }; }
20359
20360# Provide some information about the compiler.
20361$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20362set X $ac_compile
20363ac_compiler=$2
20364{ (ac_try="$ac_compiler --version >&5"
20365case "(($ac_try" in
20366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367  *) ac_try_echo=$ac_try;;
20368esac
20369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20370$as_echo "$ac_try_echo") >&5
20371  (eval "$ac_compiler --version >&5") 2>&5
20372  ac_status=$?
20373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374  (exit $ac_status); }
20375{ (ac_try="$ac_compiler -v >&5"
20376case "(($ac_try" in
20377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378  *) ac_try_echo=$ac_try;;
20379esac
20380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20381$as_echo "$ac_try_echo") >&5
20382  (eval "$ac_compiler -v >&5") 2>&5
20383  ac_status=$?
20384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385  (exit $ac_status); }
20386{ (ac_try="$ac_compiler -V >&5"
20387case "(($ac_try" in
20388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389  *) ac_try_echo=$ac_try;;
20390esac
20391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392$as_echo "$ac_try_echo") >&5
20393  (eval "$ac_compiler -V >&5") 2>&5
20394  ac_status=$?
20395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396  (exit $ac_status); }
20397
20398{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20399$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20400if test "${ac_cv_c_compiler_gnu+set}" = set; then
20401  $as_echo_n "(cached) " >&6
20402else
20403  cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h.  */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h.  */
20409
20410int
20411main ()
20412{
20413#ifndef __GNUC__
20414       choke me
20415#endif
20416
20417  ;
20418  return 0;
20419}
20420_ACEOF
20421rm -f conftest.$ac_objext
20422if { (ac_try="$ac_compile"
20423case "(($ac_try" in
20424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425  *) ac_try_echo=$ac_try;;
20426esac
20427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20428$as_echo "$ac_try_echo") >&5
20429  (eval "$ac_compile") 2>conftest.er1
20430  ac_status=$?
20431  grep -v '^ *+' conftest.er1 >conftest.err
20432  rm -f conftest.er1
20433  cat conftest.err >&5
20434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435  (exit $ac_status); } && {
20436	 test -z "$ac_c_werror_flag" ||
20437	 test ! -s conftest.err
20438       } && test -s conftest.$ac_objext; then
20439  ac_compiler_gnu=yes
20440else
20441  $as_echo "$as_me: failed program was:" >&5
20442sed 's/^/| /' conftest.$ac_ext >&5
20443
20444	ac_compiler_gnu=no
20445fi
20446
20447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448ac_cv_c_compiler_gnu=$ac_compiler_gnu
20449
20450fi
20451{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20452$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20453if test $ac_compiler_gnu = yes; then
20454  GCC=yes
20455else
20456  GCC=
20457fi
20458ac_test_CFLAGS=${CFLAGS+set}
20459ac_save_CFLAGS=$CFLAGS
20460{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20461$as_echo_n "checking whether $CC accepts -g... " >&6; }
20462if test "${ac_cv_prog_cc_g+set}" = set; then
20463  $as_echo_n "(cached) " >&6
20464else
20465  ac_save_c_werror_flag=$ac_c_werror_flag
20466   ac_c_werror_flag=yes
20467   ac_cv_prog_cc_g=no
20468   CFLAGS="-g"
20469   cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h.  */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h.  */
20475
20476int
20477main ()
20478{
20479
20480  ;
20481  return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (ac_try="$ac_compile"
20486case "(($ac_try" in
20487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488  *) ac_try_echo=$ac_try;;
20489esac
20490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20491$as_echo "$ac_try_echo") >&5
20492  (eval "$ac_compile") 2>conftest.er1
20493  ac_status=$?
20494  grep -v '^ *+' conftest.er1 >conftest.err
20495  rm -f conftest.er1
20496  cat conftest.err >&5
20497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498  (exit $ac_status); } && {
20499	 test -z "$ac_c_werror_flag" ||
20500	 test ! -s conftest.err
20501       } && test -s conftest.$ac_objext; then
20502  ac_cv_prog_cc_g=yes
20503else
20504  $as_echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507	CFLAGS=""
20508      cat >conftest.$ac_ext <<_ACEOF
20509/* confdefs.h.  */
20510_ACEOF
20511cat confdefs.h >>conftest.$ac_ext
20512cat >>conftest.$ac_ext <<_ACEOF
20513/* end confdefs.h.  */
20514
20515int
20516main ()
20517{
20518
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523rm -f conftest.$ac_objext
20524if { (ac_try="$ac_compile"
20525case "(($ac_try" in
20526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527  *) ac_try_echo=$ac_try;;
20528esac
20529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20530$as_echo "$ac_try_echo") >&5
20531  (eval "$ac_compile") 2>conftest.er1
20532  ac_status=$?
20533  grep -v '^ *+' conftest.er1 >conftest.err
20534  rm -f conftest.er1
20535  cat conftest.err >&5
20536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537  (exit $ac_status); } && {
20538	 test -z "$ac_c_werror_flag" ||
20539	 test ! -s conftest.err
20540       } && test -s conftest.$ac_objext; then
20541  :
20542else
20543  $as_echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
20546	ac_c_werror_flag=$ac_save_c_werror_flag
20547	 CFLAGS="-g"
20548	 cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h.  */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h.  */
20554
20555int
20556main ()
20557{
20558
20559  ;
20560  return 0;
20561}
20562_ACEOF
20563rm -f conftest.$ac_objext
20564if { (ac_try="$ac_compile"
20565case "(($ac_try" in
20566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567  *) ac_try_echo=$ac_try;;
20568esac
20569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20570$as_echo "$ac_try_echo") >&5
20571  (eval "$ac_compile") 2>conftest.er1
20572  ac_status=$?
20573  grep -v '^ *+' conftest.er1 >conftest.err
20574  rm -f conftest.er1
20575  cat conftest.err >&5
20576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577  (exit $ac_status); } && {
20578	 test -z "$ac_c_werror_flag" ||
20579	 test ! -s conftest.err
20580       } && test -s conftest.$ac_objext; then
20581  ac_cv_prog_cc_g=yes
20582else
20583  $as_echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586
20587fi
20588
20589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590fi
20591
20592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593fi
20594
20595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596   ac_c_werror_flag=$ac_save_c_werror_flag
20597fi
20598{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20599$as_echo "$ac_cv_prog_cc_g" >&6; }
20600if test "$ac_test_CFLAGS" = set; then
20601  CFLAGS=$ac_save_CFLAGS
20602elif test $ac_cv_prog_cc_g = yes; then
20603  if test "$GCC" = yes; then
20604    CFLAGS="-g -O2"
20605  else
20606    CFLAGS="-g"
20607  fi
20608else
20609  if test "$GCC" = yes; then
20610    CFLAGS="-O2"
20611  else
20612    CFLAGS=
20613  fi
20614fi
20615{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20616$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20617if test "${ac_cv_prog_cc_c89+set}" = set; then
20618  $as_echo_n "(cached) " >&6
20619else
20620  ac_cv_prog_cc_c89=no
20621ac_save_CC=$CC
20622cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h.  */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h.  */
20628#include <stdarg.h>
20629#include <stdio.h>
20630#include <sys/types.h>
20631#include <sys/stat.h>
20632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20633struct buf { int x; };
20634FILE * (*rcsopen) (struct buf *, struct stat *, int);
20635static char *e (p, i)
20636     char **p;
20637     int i;
20638{
20639  return p[i];
20640}
20641static char *f (char * (*g) (char **, int), char **p, ...)
20642{
20643  char *s;
20644  va_list v;
20645  va_start (v,p);
20646  s = g (p, va_arg (v,int));
20647  va_end (v);
20648  return s;
20649}
20650
20651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20652   function prototypes and stuff, but not '\xHH' hex character constants.
20653   These don't provoke an error unfortunately, instead are silently treated
20654   as 'x'.  The following induces an error, until -std is added to get
20655   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20656   array size at least.  It's necessary to write '\x00'==0 to get something
20657   that's true only with -std.  */
20658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20659
20660/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20661   inside strings and character constants.  */
20662#define FOO(x) 'x'
20663int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20664
20665int test (int i, double x);
20666struct s1 {int (*f) (int a);};
20667struct s2 {int (*f) (double a);};
20668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20669int argc;
20670char **argv;
20671int
20672main ()
20673{
20674return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20675  ;
20676  return 0;
20677}
20678_ACEOF
20679for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20680	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20681do
20682  CC="$ac_save_CC $ac_arg"
20683  rm -f conftest.$ac_objext
20684if { (ac_try="$ac_compile"
20685case "(($ac_try" in
20686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687  *) ac_try_echo=$ac_try;;
20688esac
20689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20690$as_echo "$ac_try_echo") >&5
20691  (eval "$ac_compile") 2>conftest.er1
20692  ac_status=$?
20693  grep -v '^ *+' conftest.er1 >conftest.err
20694  rm -f conftest.er1
20695  cat conftest.err >&5
20696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697  (exit $ac_status); } && {
20698	 test -z "$ac_c_werror_flag" ||
20699	 test ! -s conftest.err
20700       } && test -s conftest.$ac_objext; then
20701  ac_cv_prog_cc_c89=$ac_arg
20702else
20703  $as_echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706
20707fi
20708
20709rm -f core conftest.err conftest.$ac_objext
20710  test "x$ac_cv_prog_cc_c89" != "xno" && break
20711done
20712rm -f conftest.$ac_ext
20713CC=$ac_save_CC
20714
20715fi
20716# AC_CACHE_VAL
20717case "x$ac_cv_prog_cc_c89" in
20718  x)
20719    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20720$as_echo "none needed" >&6; } ;;
20721  xno)
20722    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20723$as_echo "unsupported" >&6; } ;;
20724  *)
20725    CC="$CC $ac_cv_prog_cc_c89"
20726    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20727$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20728esac
20729
20730
20731ac_ext=c
20732ac_cpp='$CPP $CPPFLAGS'
20733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20735ac_compiler_gnu=$ac_cv_c_compiler_gnu
20736
20737depcc="$CC"   am_compiler_list=
20738
20739{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20740$as_echo_n "checking dependency style of $depcc... " >&6; }
20741if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20742  $as_echo_n "(cached) " >&6
20743else
20744  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20745  # We make a subdir and do the tests there.  Otherwise we can end up
20746  # making bogus files that we don't know about and never remove.  For
20747  # instance it was reported that on HP-UX the gcc test will end up
20748  # making a dummy file named `D' -- because `-MD' means `put the output
20749  # in D'.
20750  mkdir conftest.dir
20751  # Copy depcomp to subdir because otherwise we won't find it if we're
20752  # using a relative directory.
20753  cp "$am_depcomp" conftest.dir
20754  cd conftest.dir
20755  # We will build objects and dependencies in a subdirectory because
20756  # it helps to detect inapplicable dependency modes.  For instance
20757  # both Tru64's cc and ICC support -MD to output dependencies as a
20758  # side effect of compilation, but ICC will put the dependencies in
20759  # the current directory while Tru64 will put them in the object
20760  # directory.
20761  mkdir sub
20762
20763  am_cv_CC_dependencies_compiler_type=none
20764  if test "$am_compiler_list" = ""; then
20765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20766  fi
20767  am__universal=false
20768  case " $depcc " in #(
20769     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20770     esac
20771
20772  for depmode in $am_compiler_list; do
20773    # Setup a source with many dependencies, because some compilers
20774    # like to wrap large dependency lists on column 80 (with \), and
20775    # we should not choose a depcomp mode which is confused by this.
20776    #
20777    # We need to recreate these files for each test, as the compiler may
20778    # overwrite some of them when testing with obscure command lines.
20779    # This happens at least with the AIX C compiler.
20780    : > sub/conftest.c
20781    for i in 1 2 3 4 5 6; do
20782      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20783      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20784      # Solaris 8's {/usr,}/bin/sh.
20785      touch sub/conftst$i.h
20786    done
20787    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20788
20789    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20790    # mode.  It turns out that the SunPro C++ compiler does not properly
20791    # handle `-M -o', and we need to detect this.  Also, some Intel
20792    # versions had trouble with output in subdirs
20793    am__obj=sub/conftest.${OBJEXT-o}
20794    am__minus_obj="-o $am__obj"
20795    case $depmode in
20796    gcc)
20797      # This depmode causes a compiler race in universal mode.
20798      test "$am__universal" = false || continue
20799      ;;
20800    nosideeffect)
20801      # after this tag, mechanisms are not by side-effect, so they'll
20802      # only be used when explicitly requested
20803      if test "x$enable_dependency_tracking" = xyes; then
20804	continue
20805      else
20806	break
20807      fi
20808      ;;
20809    msvisualcpp | msvcmsys)
20810      # This compiler won't grok `-c -o', but also, the minuso test has
20811      # not run yet.  These depmodes are late enough in the game, and
20812      # so weak that their functioning should not be impacted.
20813      am__obj=conftest.${OBJEXT-o}
20814      am__minus_obj=
20815      ;;
20816    none) break ;;
20817    esac
20818    if depmode=$depmode \
20819       source=sub/conftest.c object=$am__obj \
20820       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20821       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20822         >/dev/null 2>conftest.err &&
20823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20825       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20826       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20827      # icc doesn't choke on unknown options, it will just issue warnings
20828      # or remarks (even with -Werror).  So we grep stderr for any message
20829      # that says an option was ignored or not supported.
20830      # When given -MP, icc 7.0 and 7.1 complain thusly:
20831      #   icc: Command line warning: ignoring option '-M'; no argument required
20832      # The diagnosis changed in icc 8.0:
20833      #   icc: Command line remark: option '-MP' not supported
20834      if (grep 'ignoring option' conftest.err ||
20835          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20836        am_cv_CC_dependencies_compiler_type=$depmode
20837        break
20838      fi
20839    fi
20840  done
20841
20842  cd ..
20843  rm -rf conftest.dir
20844else
20845  am_cv_CC_dependencies_compiler_type=none
20846fi
20847
20848fi
20849{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20852
20853 if
20854  test "x$enable_dependency_tracking" != xno \
20855  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20856  am__fastdepCC_TRUE=
20857  am__fastdepCC_FALSE='#'
20858else
20859  am__fastdepCC_TRUE='#'
20860  am__fastdepCC_FALSE=
20861fi
20862
20863
20864
20865
20866
20867
20868
20869# Check whether --with-xorg-module-dir was given.
20870if test "${with_xorg_module_dir+set}" = set; then
20871  withval=$with_xorg_module_dir; moduledir="$withval"
20872else
20873  moduledir="$libdir/xorg/modules"
20874fi
20875
20876
20877# Checks for extensions
20878
20879	SAVE_CFLAGS="$CFLAGS"
20880	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20881	cat >conftest.$ac_ext <<_ACEOF
20882/* confdefs.h.  */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h.  */
20887
20888#include "xorg-server.h"
20889#if !defined RANDR
20890#error RANDR not defined
20891#endif
20892
20893int
20894main ()
20895{
20896
20897  ;
20898  return 0;
20899}
20900_ACEOF
20901rm -f conftest.$ac_objext
20902if { (ac_try="$ac_compile"
20903case "(($ac_try" in
20904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905  *) ac_try_echo=$ac_try;;
20906esac
20907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20908$as_echo "$ac_try_echo") >&5
20909  (eval "$ac_compile") 2>conftest.er1
20910  ac_status=$?
20911  grep -v '^ *+' conftest.er1 >conftest.err
20912  rm -f conftest.er1
20913  cat conftest.err >&5
20914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915  (exit $ac_status); } && {
20916	 test -z "$ac_c_werror_flag" ||
20917	 test ! -s conftest.err
20918       } && test -s conftest.$ac_objext; then
20919  _EXT_CHECK=yes
20920else
20921  $as_echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924	_EXT_CHECK=no
20925fi
20926
20927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928	CFLAGS="$SAVE_CFLAGS"
20929	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20930$as_echo_n "checking if RANDR is defined... " >&6; }
20931	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20932$as_echo "$_EXT_CHECK" >&6; }
20933	if test "$_EXT_CHECK" != no; then
20934		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20935	fi
20936
20937
20938	SAVE_CFLAGS="$CFLAGS"
20939	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20940	cat >conftest.$ac_ext <<_ACEOF
20941/* confdefs.h.  */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h.  */
20946
20947#include "xorg-server.h"
20948#if !defined RENDER
20949#error RENDER not defined
20950#endif
20951
20952int
20953main ()
20954{
20955
20956  ;
20957  return 0;
20958}
20959_ACEOF
20960rm -f conftest.$ac_objext
20961if { (ac_try="$ac_compile"
20962case "(($ac_try" in
20963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964  *) ac_try_echo=$ac_try;;
20965esac
20966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20967$as_echo "$ac_try_echo") >&5
20968  (eval "$ac_compile") 2>conftest.er1
20969  ac_status=$?
20970  grep -v '^ *+' conftest.er1 >conftest.err
20971  rm -f conftest.er1
20972  cat conftest.err >&5
20973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974  (exit $ac_status); } && {
20975	 test -z "$ac_c_werror_flag" ||
20976	 test ! -s conftest.err
20977       } && test -s conftest.$ac_objext; then
20978  _EXT_CHECK=yes
20979else
20980  $as_echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983	_EXT_CHECK=no
20984fi
20985
20986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987	CFLAGS="$SAVE_CFLAGS"
20988	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20989$as_echo_n "checking if RENDER is defined... " >&6; }
20990	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20991$as_echo "$_EXT_CHECK" >&6; }
20992	if test "$_EXT_CHECK" != no; then
20993		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20994	fi
20995
20996
20997	SAVE_CFLAGS="$CFLAGS"
20998	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20999	cat >conftest.$ac_ext <<_ACEOF
21000/* confdefs.h.  */
21001_ACEOF
21002cat confdefs.h >>conftest.$ac_ext
21003cat >>conftest.$ac_ext <<_ACEOF
21004/* end confdefs.h.  */
21005
21006#include "xorg-server.h"
21007#if !defined DPMSExtension
21008#error DPMSExtension not defined
21009#endif
21010
21011int
21012main ()
21013{
21014
21015  ;
21016  return 0;
21017}
21018_ACEOF
21019rm -f conftest.$ac_objext
21020if { (ac_try="$ac_compile"
21021case "(($ac_try" in
21022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023  *) ac_try_echo=$ac_try;;
21024esac
21025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026$as_echo "$ac_try_echo") >&5
21027  (eval "$ac_compile") 2>conftest.er1
21028  ac_status=$?
21029  grep -v '^ *+' conftest.er1 >conftest.err
21030  rm -f conftest.er1
21031  cat conftest.err >&5
21032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033  (exit $ac_status); } && {
21034	 test -z "$ac_c_werror_flag" ||
21035	 test ! -s conftest.err
21036       } && test -s conftest.$ac_objext; then
21037  _EXT_CHECK=yes
21038else
21039  $as_echo "$as_me: failed program was:" >&5
21040sed 's/^/| /' conftest.$ac_ext >&5
21041
21042	_EXT_CHECK=no
21043fi
21044
21045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046	CFLAGS="$SAVE_CFLAGS"
21047	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21048$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21049	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21050$as_echo "$_EXT_CHECK" >&6; }
21051	if test "$_EXT_CHECK" != no; then
21052		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21053	fi
21054
21055
21056# Checks for pkg-config packages
21057
21058
21059if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21060	if test -n "$ac_tool_prefix"; then
21061  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21062set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21064$as_echo_n "checking for $ac_word... " >&6; }
21065if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21066  $as_echo_n "(cached) " >&6
21067else
21068  case $PKG_CONFIG in
21069  [\\/]* | ?:[\\/]*)
21070  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21071  ;;
21072  *)
21073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21074for as_dir in $PATH
21075do
21076  IFS=$as_save_IFS
21077  test -z "$as_dir" && as_dir=.
21078  for ac_exec_ext in '' $ac_executable_extensions; do
21079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21080    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21081    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21082    break 2
21083  fi
21084done
21085done
21086IFS=$as_save_IFS
21087
21088  ;;
21089esac
21090fi
21091PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21092if test -n "$PKG_CONFIG"; then
21093  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21094$as_echo "$PKG_CONFIG" >&6; }
21095else
21096  { $as_echo "$as_me:$LINENO: result: no" >&5
21097$as_echo "no" >&6; }
21098fi
21099
21100
21101fi
21102if test -z "$ac_cv_path_PKG_CONFIG"; then
21103  ac_pt_PKG_CONFIG=$PKG_CONFIG
21104  # Extract the first word of "pkg-config", so it can be a program name with args.
21105set dummy pkg-config; ac_word=$2
21106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21107$as_echo_n "checking for $ac_word... " >&6; }
21108if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21109  $as_echo_n "(cached) " >&6
21110else
21111  case $ac_pt_PKG_CONFIG in
21112  [\\/]* | ?:[\\/]*)
21113  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21114  ;;
21115  *)
21116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21117for as_dir in $PATH
21118do
21119  IFS=$as_save_IFS
21120  test -z "$as_dir" && as_dir=.
21121  for ac_exec_ext in '' $ac_executable_extensions; do
21122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21123    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21124    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21125    break 2
21126  fi
21127done
21128done
21129IFS=$as_save_IFS
21130
21131  ;;
21132esac
21133fi
21134ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21135if test -n "$ac_pt_PKG_CONFIG"; then
21136  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21137$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21138else
21139  { $as_echo "$as_me:$LINENO: result: no" >&5
21140$as_echo "no" >&6; }
21141fi
21142
21143  if test "x$ac_pt_PKG_CONFIG" = x; then
21144    PKG_CONFIG=""
21145  else
21146    case $cross_compiling:$ac_tool_warned in
21147yes:)
21148{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21150ac_tool_warned=yes ;;
21151esac
21152    PKG_CONFIG=$ac_pt_PKG_CONFIG
21153  fi
21154else
21155  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21156fi
21157
21158fi
21159if test -n "$PKG_CONFIG"; then
21160	_pkg_min_version=0.9.0
21161	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21162$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21163	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21164		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21165$as_echo "yes" >&6; }
21166	else
21167		{ $as_echo "$as_me:$LINENO: result: no" >&5
21168$as_echo "no" >&6; }
21169		PKG_CONFIG=""
21170	fi
21171
21172fi
21173
21174pkg_failed=no
21175{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21176$as_echo_n "checking for XORG... " >&6; }
21177
21178if test -n "$XORG_CFLAGS"; then
21179    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21180 elif test -n "$PKG_CONFIG"; then
21181    if test -n "$PKG_CONFIG" && \
21182    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21183  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21184  ac_status=$?
21185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186  (exit $ac_status); }; then
21187  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21188else
21189  pkg_failed=yes
21190fi
21191 else
21192    pkg_failed=untried
21193fi
21194if test -n "$XORG_LIBS"; then
21195    pkg_cv_XORG_LIBS="$XORG_LIBS"
21196 elif test -n "$PKG_CONFIG"; then
21197    if test -n "$PKG_CONFIG" && \
21198    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21199  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21200  ac_status=$?
21201  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202  (exit $ac_status); }; then
21203  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21204else
21205  pkg_failed=yes
21206fi
21207 else
21208    pkg_failed=untried
21209fi
21210
21211
21212
21213if test $pkg_failed = yes; then
21214
21215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21216        _pkg_short_errors_supported=yes
21217else
21218        _pkg_short_errors_supported=no
21219fi
21220        if test $_pkg_short_errors_supported = yes; then
21221	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21222        else
21223	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21224        fi
21225	# Put the nasty error message in config.log where it belongs
21226	echo "$XORG_PKG_ERRORS" >&5
21227
21228	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21229
21230$XORG_PKG_ERRORS
21231
21232Consider adjusting the PKG_CONFIG_PATH environment variable if you
21233installed software in a non-standard prefix.
21234
21235Alternatively, you may set the environment variables XORG_CFLAGS
21236and XORG_LIBS to avoid the need to call pkg-config.
21237See the pkg-config man page for more details.
21238" >&5
21239$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21240
21241$XORG_PKG_ERRORS
21242
21243Consider adjusting the PKG_CONFIG_PATH environment variable if you
21244installed software in a non-standard prefix.
21245
21246Alternatively, you may set the environment variables XORG_CFLAGS
21247and XORG_LIBS to avoid the need to call pkg-config.
21248See the pkg-config man page for more details.
21249" >&2;}
21250   { (exit 1); exit 1; }; }
21251elif test $pkg_failed = untried; then
21252	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21254{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21255is in your PATH or set the PKG_CONFIG environment variable to the full
21256path to pkg-config.
21257
21258Alternatively, you may set the environment variables XORG_CFLAGS
21259and XORG_LIBS to avoid the need to call pkg-config.
21260See the pkg-config man page for more details.
21261
21262To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21263See \`config.log' for more details." >&5
21264$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21265is in your PATH or set the PKG_CONFIG environment variable to the full
21266path to pkg-config.
21267
21268Alternatively, you may set the environment variables XORG_CFLAGS
21269and XORG_LIBS to avoid the need to call pkg-config.
21270See the pkg-config man page for more details.
21271
21272To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21273See \`config.log' for more details." >&2;}
21274   { (exit 1); exit 1; }; }; }
21275else
21276	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21277	XORG_LIBS=$pkg_cv_XORG_LIBS
21278        { $as_echo "$as_me:$LINENO: result: yes" >&5
21279$as_echo "yes" >&6; }
21280	:
21281fi
21282sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21283
21284# Checks for libraries.
21285SAVE_CPPFLAGS="$CPPFLAGS"
21286CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21287{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21288$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21289if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21290  $as_echo_n "(cached) " >&6
21291else
21292  cat >conftest.$ac_ext <<_ACEOF
21293/* confdefs.h.  */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h.  */
21298#include "xorg-server.h"
21299
21300int
21301main ()
21302{
21303#ifndef XSERVER_LIBPCIACCESS
21304  (void) XSERVER_LIBPCIACCESS;
21305#endif
21306
21307  ;
21308  return 0;
21309}
21310_ACEOF
21311rm -f conftest.$ac_objext
21312if { (ac_try="$ac_compile"
21313case "(($ac_try" in
21314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315  *) ac_try_echo=$ac_try;;
21316esac
21317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21318$as_echo "$ac_try_echo") >&5
21319  (eval "$ac_compile") 2>conftest.er1
21320  ac_status=$?
21321  grep -v '^ *+' conftest.er1 >conftest.err
21322  rm -f conftest.er1
21323  cat conftest.err >&5
21324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325  (exit $ac_status); } && {
21326	 test -z "$ac_c_werror_flag" ||
21327	 test ! -s conftest.err
21328       } && test -s conftest.$ac_objext; then
21329  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21330else
21331  $as_echo "$as_me: failed program was:" >&5
21332sed 's/^/| /' conftest.$ac_ext >&5
21333
21334	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21335fi
21336
21337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338fi
21339{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21340$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21341if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21342  XSERVER_LIBPCIACCESS=yes
21343else
21344  XSERVER_LIBPCIACCESS=no
21345fi
21346
21347if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21348  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21349$as_echo_n "checking for xf1bpp.h... " >&6; }
21350if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21351  $as_echo_n "(cached) " >&6
21352fi
21353{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21354$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21355else
21356  # Is the header compilable?
21357{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
21358$as_echo_n "checking xf1bpp.h usability... " >&6; }
21359cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h.  */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h.  */
21365$ac_includes_default
21366#include <xf1bpp.h>
21367_ACEOF
21368rm -f conftest.$ac_objext
21369if { (ac_try="$ac_compile"
21370case "(($ac_try" in
21371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372  *) ac_try_echo=$ac_try;;
21373esac
21374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21375$as_echo "$ac_try_echo") >&5
21376  (eval "$ac_compile") 2>conftest.er1
21377  ac_status=$?
21378  grep -v '^ *+' conftest.er1 >conftest.err
21379  rm -f conftest.er1
21380  cat conftest.err >&5
21381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382  (exit $ac_status); } && {
21383	 test -z "$ac_c_werror_flag" ||
21384	 test ! -s conftest.err
21385       } && test -s conftest.$ac_objext; then
21386  ac_header_compiler=yes
21387else
21388  $as_echo "$as_me: failed program was:" >&5
21389sed 's/^/| /' conftest.$ac_ext >&5
21390
21391	ac_header_compiler=no
21392fi
21393
21394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21396$as_echo "$ac_header_compiler" >&6; }
21397
21398# Is the header present?
21399{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
21400$as_echo_n "checking xf1bpp.h presence... " >&6; }
21401cat >conftest.$ac_ext <<_ACEOF
21402/* confdefs.h.  */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h.  */
21407#include <xf1bpp.h>
21408_ACEOF
21409if { (ac_try="$ac_cpp conftest.$ac_ext"
21410case "(($ac_try" in
21411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412  *) ac_try_echo=$ac_try;;
21413esac
21414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21415$as_echo "$ac_try_echo") >&5
21416  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21417  ac_status=$?
21418  grep -v '^ *+' conftest.er1 >conftest.err
21419  rm -f conftest.er1
21420  cat conftest.err >&5
21421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422  (exit $ac_status); } >/dev/null && {
21423	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21424	 test ! -s conftest.err
21425       }; then
21426  ac_header_preproc=yes
21427else
21428  $as_echo "$as_me: failed program was:" >&5
21429sed 's/^/| /' conftest.$ac_ext >&5
21430
21431  ac_header_preproc=no
21432fi
21433
21434rm -f conftest.err conftest.$ac_ext
21435{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21436$as_echo "$ac_header_preproc" >&6; }
21437
21438# So?  What about this header?
21439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21440  yes:no: )
21441    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21442$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21443    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
21444$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
21445    ac_header_preproc=yes
21446    ;;
21447  no:yes:* )
21448    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
21449$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
21450    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
21451$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
21452    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
21453$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
21454    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21455$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21456    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
21457$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
21458    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
21459$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
21460    ( cat <<\_ASBOX
21461## ---------------------------------------------------------------------- ##
21462## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21463## ---------------------------------------------------------------------- ##
21464_ASBOX
21465     ) | sed "s/^/$as_me: WARNING:     /" >&2
21466    ;;
21467esac
21468{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21469$as_echo_n "checking for xf1bpp.h... " >&6; }
21470if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21471  $as_echo_n "(cached) " >&6
21472else
21473  ac_cv_header_xf1bpp_h=$ac_header_preproc
21474fi
21475{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21476$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21477
21478fi
21479if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
21480
21481cat >>confdefs.h <<\_ACEOF
21482#define HAVE_XF1BPP 1
21483_ACEOF
21484
21485fi
21486
21487
21488if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21489  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21490$as_echo_n "checking for xf4bpp.h... " >&6; }
21491if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21492  $as_echo_n "(cached) " >&6
21493fi
21494{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21495$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21496else
21497  # Is the header compilable?
21498{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
21499$as_echo_n "checking xf4bpp.h usability... " >&6; }
21500cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h.  */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h.  */
21506$ac_includes_default
21507#include <xf4bpp.h>
21508_ACEOF
21509rm -f conftest.$ac_objext
21510if { (ac_try="$ac_compile"
21511case "(($ac_try" in
21512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513  *) ac_try_echo=$ac_try;;
21514esac
21515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21516$as_echo "$ac_try_echo") >&5
21517  (eval "$ac_compile") 2>conftest.er1
21518  ac_status=$?
21519  grep -v '^ *+' conftest.er1 >conftest.err
21520  rm -f conftest.er1
21521  cat conftest.err >&5
21522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523  (exit $ac_status); } && {
21524	 test -z "$ac_c_werror_flag" ||
21525	 test ! -s conftest.err
21526       } && test -s conftest.$ac_objext; then
21527  ac_header_compiler=yes
21528else
21529  $as_echo "$as_me: failed program was:" >&5
21530sed 's/^/| /' conftest.$ac_ext >&5
21531
21532	ac_header_compiler=no
21533fi
21534
21535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21537$as_echo "$ac_header_compiler" >&6; }
21538
21539# Is the header present?
21540{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
21541$as_echo_n "checking xf4bpp.h presence... " >&6; }
21542cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h.  */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h.  */
21548#include <xf4bpp.h>
21549_ACEOF
21550if { (ac_try="$ac_cpp conftest.$ac_ext"
21551case "(($ac_try" in
21552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553  *) ac_try_echo=$ac_try;;
21554esac
21555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21556$as_echo "$ac_try_echo") >&5
21557  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21558  ac_status=$?
21559  grep -v '^ *+' conftest.er1 >conftest.err
21560  rm -f conftest.er1
21561  cat conftest.err >&5
21562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563  (exit $ac_status); } >/dev/null && {
21564	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21565	 test ! -s conftest.err
21566       }; then
21567  ac_header_preproc=yes
21568else
21569  $as_echo "$as_me: failed program was:" >&5
21570sed 's/^/| /' conftest.$ac_ext >&5
21571
21572  ac_header_preproc=no
21573fi
21574
21575rm -f conftest.err conftest.$ac_ext
21576{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21577$as_echo "$ac_header_preproc" >&6; }
21578
21579# So?  What about this header?
21580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21581  yes:no: )
21582    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21583$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21584    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
21585$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
21586    ac_header_preproc=yes
21587    ;;
21588  no:yes:* )
21589    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
21590$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
21591    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
21592$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
21593    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
21594$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
21595    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21596$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21597    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
21598$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
21599    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
21600$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
21601    ( cat <<\_ASBOX
21602## ---------------------------------------------------------------------- ##
21603## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21604## ---------------------------------------------------------------------- ##
21605_ASBOX
21606     ) | sed "s/^/$as_me: WARNING:     /" >&2
21607    ;;
21608esac
21609{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21610$as_echo_n "checking for xf4bpp.h... " >&6; }
21611if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21612  $as_echo_n "(cached) " >&6
21613else
21614  ac_cv_header_xf4bpp_h=$ac_header_preproc
21615fi
21616{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21617$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21618
21619fi
21620if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
21621
21622cat >>confdefs.h <<\_ACEOF
21623#define HAVE_XF4BPP 1
21624_ACEOF
21625
21626fi
21627
21628
21629CPPFLAGS="$SAVE_CPPFLAGS"
21630
21631if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21632
21633pkg_failed=no
21634{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21635$as_echo_n "checking for PCIACCESS... " >&6; }
21636
21637if test -n "$PCIACCESS_CFLAGS"; then
21638    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21639 elif test -n "$PKG_CONFIG"; then
21640    if test -n "$PKG_CONFIG" && \
21641    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21642  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21643  ac_status=$?
21644  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645  (exit $ac_status); }; then
21646  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21647else
21648  pkg_failed=yes
21649fi
21650 else
21651    pkg_failed=untried
21652fi
21653if test -n "$PCIACCESS_LIBS"; then
21654    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21655 elif test -n "$PKG_CONFIG"; then
21656    if test -n "$PKG_CONFIG" && \
21657    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21658  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21659  ac_status=$?
21660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661  (exit $ac_status); }; then
21662  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21663else
21664  pkg_failed=yes
21665fi
21666 else
21667    pkg_failed=untried
21668fi
21669
21670
21671
21672if test $pkg_failed = yes; then
21673
21674if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21675        _pkg_short_errors_supported=yes
21676else
21677        _pkg_short_errors_supported=no
21678fi
21679        if test $_pkg_short_errors_supported = yes; then
21680	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21681        else
21682	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21683        fi
21684	# Put the nasty error message in config.log where it belongs
21685	echo "$PCIACCESS_PKG_ERRORS" >&5
21686
21687	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21688
21689$PCIACCESS_PKG_ERRORS
21690
21691Consider adjusting the PKG_CONFIG_PATH environment variable if you
21692installed software in a non-standard prefix.
21693
21694Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21695and PCIACCESS_LIBS to avoid the need to call pkg-config.
21696See the pkg-config man page for more details.
21697" >&5
21698$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21699
21700$PCIACCESS_PKG_ERRORS
21701
21702Consider adjusting the PKG_CONFIG_PATH environment variable if you
21703installed software in a non-standard prefix.
21704
21705Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21706and PCIACCESS_LIBS to avoid the need to call pkg-config.
21707See the pkg-config man page for more details.
21708" >&2;}
21709   { (exit 1); exit 1; }; }
21710elif test $pkg_failed = untried; then
21711	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21713{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21714is in your PATH or set the PKG_CONFIG environment variable to the full
21715path to pkg-config.
21716
21717Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21718and PCIACCESS_LIBS to avoid the need to call pkg-config.
21719See the pkg-config man page for more details.
21720
21721To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21722See \`config.log' for more details." >&5
21723$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21724is in your PATH or set the PKG_CONFIG environment variable to the full
21725path to pkg-config.
21726
21727Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21728and PCIACCESS_LIBS to avoid the need to call pkg-config.
21729See the pkg-config man page for more details.
21730
21731To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21732See \`config.log' for more details." >&2;}
21733   { (exit 1); exit 1; }; }; }
21734else
21735	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21736	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21737        { $as_echo "$as_me:$LINENO: result: yes" >&5
21738$as_echo "yes" >&6; }
21739	:
21740fi
21741    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21742fi
21743 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21744  XSERVER_LIBPCIACCESS_TRUE=
21745  XSERVER_LIBPCIACCESS_FALSE='#'
21746else
21747  XSERVER_LIBPCIACCESS_TRUE='#'
21748  XSERVER_LIBPCIACCESS_FALSE=
21749fi
21750
21751
21752# Checks for header files.
21753{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21754$as_echo_n "checking for ANSI C header files... " >&6; }
21755if test "${ac_cv_header_stdc+set}" = set; then
21756  $as_echo_n "(cached) " >&6
21757else
21758  cat >conftest.$ac_ext <<_ACEOF
21759/* confdefs.h.  */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h.  */
21764#include <stdlib.h>
21765#include <stdarg.h>
21766#include <string.h>
21767#include <float.h>
21768
21769int
21770main ()
21771{
21772
21773  ;
21774  return 0;
21775}
21776_ACEOF
21777rm -f conftest.$ac_objext
21778if { (ac_try="$ac_compile"
21779case "(($ac_try" in
21780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781  *) ac_try_echo=$ac_try;;
21782esac
21783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784$as_echo "$ac_try_echo") >&5
21785  (eval "$ac_compile") 2>conftest.er1
21786  ac_status=$?
21787  grep -v '^ *+' conftest.er1 >conftest.err
21788  rm -f conftest.er1
21789  cat conftest.err >&5
21790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791  (exit $ac_status); } && {
21792	 test -z "$ac_c_werror_flag" ||
21793	 test ! -s conftest.err
21794       } && test -s conftest.$ac_objext; then
21795  ac_cv_header_stdc=yes
21796else
21797  $as_echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800	ac_cv_header_stdc=no
21801fi
21802
21803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804
21805if test $ac_cv_header_stdc = yes; then
21806  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21807  cat >conftest.$ac_ext <<_ACEOF
21808/* confdefs.h.  */
21809_ACEOF
21810cat confdefs.h >>conftest.$ac_ext
21811cat >>conftest.$ac_ext <<_ACEOF
21812/* end confdefs.h.  */
21813#include <string.h>
21814
21815_ACEOF
21816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21817  $EGREP "memchr" >/dev/null 2>&1; then
21818  :
21819else
21820  ac_cv_header_stdc=no
21821fi
21822rm -f conftest*
21823
21824fi
21825
21826if test $ac_cv_header_stdc = yes; then
21827  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21828  cat >conftest.$ac_ext <<_ACEOF
21829/* confdefs.h.  */
21830_ACEOF
21831cat confdefs.h >>conftest.$ac_ext
21832cat >>conftest.$ac_ext <<_ACEOF
21833/* end confdefs.h.  */
21834#include <stdlib.h>
21835
21836_ACEOF
21837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21838  $EGREP "free" >/dev/null 2>&1; then
21839  :
21840else
21841  ac_cv_header_stdc=no
21842fi
21843rm -f conftest*
21844
21845fi
21846
21847if test $ac_cv_header_stdc = yes; then
21848  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21849  if test "$cross_compiling" = yes; then
21850  :
21851else
21852  cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h.  */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h.  */
21858#include <ctype.h>
21859#include <stdlib.h>
21860#if ((' ' & 0x0FF) == 0x020)
21861# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21862# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21863#else
21864# define ISLOWER(c) \
21865		   (('a' <= (c) && (c) <= 'i') \
21866		     || ('j' <= (c) && (c) <= 'r') \
21867		     || ('s' <= (c) && (c) <= 'z'))
21868# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21869#endif
21870
21871#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21872int
21873main ()
21874{
21875  int i;
21876  for (i = 0; i < 256; i++)
21877    if (XOR (islower (i), ISLOWER (i))
21878	|| toupper (i) != TOUPPER (i))
21879      return 2;
21880  return 0;
21881}
21882_ACEOF
21883rm -f conftest$ac_exeext
21884if { (ac_try="$ac_link"
21885case "(($ac_try" in
21886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887  *) ac_try_echo=$ac_try;;
21888esac
21889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890$as_echo "$ac_try_echo") >&5
21891  (eval "$ac_link") 2>&5
21892  ac_status=$?
21893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21895  { (case "(($ac_try" in
21896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897  *) ac_try_echo=$ac_try;;
21898esac
21899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21900$as_echo "$ac_try_echo") >&5
21901  (eval "$ac_try") 2>&5
21902  ac_status=$?
21903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904  (exit $ac_status); }; }; then
21905  :
21906else
21907  $as_echo "$as_me: program exited with status $ac_status" >&5
21908$as_echo "$as_me: failed program was:" >&5
21909sed 's/^/| /' conftest.$ac_ext >&5
21910
21911( exit $ac_status )
21912ac_cv_header_stdc=no
21913fi
21914rm -rf conftest.dSYM
21915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21916fi
21917
21918
21919fi
21920fi
21921{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21922$as_echo "$ac_cv_header_stdc" >&6; }
21923if test $ac_cv_header_stdc = yes; then
21924
21925cat >>confdefs.h <<\_ACEOF
21926#define STDC_HEADERS 1
21927_ACEOF
21928
21929fi
21930
21931
21932
21933for ac_header in elf.h elf_abi.h
21934do
21935as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21937  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21938$as_echo_n "checking for $ac_header... " >&6; }
21939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21940  $as_echo_n "(cached) " >&6
21941fi
21942ac_res=`eval 'as_val=${'$as_ac_Header'}
21943		 $as_echo "$as_val"'`
21944	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21945$as_echo "$ac_res" >&6; }
21946else
21947  # Is the header compilable?
21948{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21949$as_echo_n "checking $ac_header usability... " >&6; }
21950cat >conftest.$ac_ext <<_ACEOF
21951/* confdefs.h.  */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h.  */
21956$ac_includes_default
21957#include <$ac_header>
21958_ACEOF
21959rm -f conftest.$ac_objext
21960if { (ac_try="$ac_compile"
21961case "(($ac_try" in
21962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963  *) ac_try_echo=$ac_try;;
21964esac
21965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21966$as_echo "$ac_try_echo") >&5
21967  (eval "$ac_compile") 2>conftest.er1
21968  ac_status=$?
21969  grep -v '^ *+' conftest.er1 >conftest.err
21970  rm -f conftest.er1
21971  cat conftest.err >&5
21972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973  (exit $ac_status); } && {
21974	 test -z "$ac_c_werror_flag" ||
21975	 test ! -s conftest.err
21976       } && test -s conftest.$ac_objext; then
21977  ac_header_compiler=yes
21978else
21979  $as_echo "$as_me: failed program was:" >&5
21980sed 's/^/| /' conftest.$ac_ext >&5
21981
21982	ac_header_compiler=no
21983fi
21984
21985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21987$as_echo "$ac_header_compiler" >&6; }
21988
21989# Is the header present?
21990{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21991$as_echo_n "checking $ac_header presence... " >&6; }
21992cat >conftest.$ac_ext <<_ACEOF
21993/* confdefs.h.  */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h.  */
21998#include <$ac_header>
21999_ACEOF
22000if { (ac_try="$ac_cpp conftest.$ac_ext"
22001case "(($ac_try" in
22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003  *) ac_try_echo=$ac_try;;
22004esac
22005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22006$as_echo "$ac_try_echo") >&5
22007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22008  ac_status=$?
22009  grep -v '^ *+' conftest.er1 >conftest.err
22010  rm -f conftest.er1
22011  cat conftest.err >&5
22012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); } >/dev/null && {
22014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22015	 test ! -s conftest.err
22016       }; then
22017  ac_header_preproc=yes
22018else
22019  $as_echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022  ac_header_preproc=no
22023fi
22024
22025rm -f conftest.err conftest.$ac_ext
22026{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22027$as_echo "$ac_header_preproc" >&6; }
22028
22029# So?  What about this header?
22030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22031  yes:no: )
22032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22033$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22035$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22036    ac_header_preproc=yes
22037    ;;
22038  no:yes:* )
22039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22040$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22042$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22044$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22046$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22047    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22048$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22050$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22051    ( cat <<\_ASBOX
22052## ---------------------------------------------------------------------- ##
22053## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22054## ---------------------------------------------------------------------- ##
22055_ASBOX
22056     ) | sed "s/^/$as_me: WARNING:     /" >&2
22057    ;;
22058esac
22059{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22060$as_echo_n "checking for $ac_header... " >&6; }
22061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22062  $as_echo_n "(cached) " >&6
22063else
22064  eval "$as_ac_Header=\$ac_header_preproc"
22065fi
22066ac_res=`eval 'as_val=${'$as_ac_Header'}
22067		 $as_echo "$as_val"'`
22068	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22069$as_echo "$ac_res" >&6; }
22070
22071fi
22072as_val=`eval 'as_val=${'$as_ac_Header'}
22073		 $as_echo "$as_val"'`
22074   if test "x$as_val" = x""yes; then
22075  cat >>confdefs.h <<_ACEOF
22076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22077_ACEOF
22078
22079fi
22080
22081done
22082
22083
22084
22085
22086
22087DRIVER_NAME=rendition
22088
22089
22090
22091
22092
22093if test x$APP_MAN_SUFFIX = x    ; then
22094    APP_MAN_SUFFIX=1
22095fi
22096if test x$APP_MAN_DIR = x    ; then
22097    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22098fi
22099
22100if test x$LIB_MAN_SUFFIX = x    ; then
22101    LIB_MAN_SUFFIX=3
22102fi
22103if test x$LIB_MAN_DIR = x    ; then
22104    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22105fi
22106
22107if test x$FILE_MAN_SUFFIX = x    ; then
22108    case $host_os in
22109	solaris*)	FILE_MAN_SUFFIX=4  ;;
22110	*)		FILE_MAN_SUFFIX=5  ;;
22111    esac
22112fi
22113if test x$FILE_MAN_DIR = x    ; then
22114    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22115fi
22116
22117if test x$MISC_MAN_SUFFIX = x    ; then
22118    case $host_os in
22119	solaris*)	MISC_MAN_SUFFIX=5  ;;
22120	*)		MISC_MAN_SUFFIX=7  ;;
22121    esac
22122fi
22123if test x$MISC_MAN_DIR = x    ; then
22124    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22125fi
22126
22127if test x$DRIVER_MAN_SUFFIX = x    ; then
22128    case $host_os in
22129	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22130	*)		DRIVER_MAN_SUFFIX=4  ;;
22131    esac
22132fi
22133if test x$DRIVER_MAN_DIR = x    ; then
22134    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22135fi
22136
22137if test x$ADMIN_MAN_SUFFIX = x    ; then
22138    case $host_os in
22139	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22140	*)		ADMIN_MAN_SUFFIX=8  ;;
22141    esac
22142fi
22143if test x$ADMIN_MAN_DIR = x    ; then
22144    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22145fi
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163# Check whether --with-release-version was given.
22164if test "${with_release_version+set}" = set; then
22165  withval=$with_release_version; RELEASE_VERSION="$withval"
22166else
22167  RELEASE_VERSION=""
22168fi
22169
22170	if test "x$RELEASE_VERSION" != "x"; then
22171		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22172		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22173		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22174$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22175	fi
22176
22177cat >>confdefs.h <<_ACEOF
22178#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22179_ACEOF
22180
22181	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22182	if test "x$PVM" = "x"; then
22183		PVM="0"
22184	fi
22185
22186cat >>confdefs.h <<_ACEOF
22187#define PACKAGE_VERSION_MINOR $PVM
22188_ACEOF
22189
22190	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22191	if test "x$PVP" = "x"; then
22192		PVP="0"
22193	fi
22194
22195cat >>confdefs.h <<_ACEOF
22196#define PACKAGE_VERSION_PATCHLEVEL $PVP
22197_ACEOF
22198
22199
22200
22201CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22202mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22203echo 'git directory not found: installing possibly empty changelog.' >&2)"
22204
22205distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22206
22207
22208
22209
22210if test x$XORG_SGML_PATH = x ; then
22211    XORG_SGML_PATH=$prefix/share/sgml
22212fi
22213HAVE_DEFS_ENT=
22214
22215if test x"$cross_compiling" = x"yes" ; then
22216  HAVE_DEFS_ENT=no
22217else
22218  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22219{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22220$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22221if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22222  $as_echo_n "(cached) " >&6
22223else
22224  test "$cross_compiling" = yes &&
22225  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22226$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22227   { (exit 1); exit 1; }; }
22228if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22229  eval "$as_ac_File=yes"
22230else
22231  eval "$as_ac_File=no"
22232fi
22233fi
22234ac_res=`eval 'as_val=${'$as_ac_File'}
22235		 $as_echo "$as_val"'`
22236	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22237$as_echo "$ac_res" >&6; }
22238as_val=`eval 'as_val=${'$as_ac_File'}
22239		 $as_echo "$as_val"'`
22240   if test "x$as_val" = x""yes; then
22241  HAVE_DEFS_ENT=yes
22242fi
22243
22244fi
22245
22246# Extract the first word of "linuxdoc", so it can be a program name with args.
22247set dummy linuxdoc; ac_word=$2
22248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22249$as_echo_n "checking for $ac_word... " >&6; }
22250if test "${ac_cv_path_LINUXDOC+set}" = set; then
22251  $as_echo_n "(cached) " >&6
22252else
22253  case $LINUXDOC in
22254  [\\/]* | ?:[\\/]*)
22255  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22256  ;;
22257  *)
22258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22259for as_dir in $PATH
22260do
22261  IFS=$as_save_IFS
22262  test -z "$as_dir" && as_dir=.
22263  for ac_exec_ext in '' $ac_executable_extensions; do
22264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22265    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22266    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22267    break 2
22268  fi
22269done
22270done
22271IFS=$as_save_IFS
22272
22273  ;;
22274esac
22275fi
22276LINUXDOC=$ac_cv_path_LINUXDOC
22277if test -n "$LINUXDOC"; then
22278  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22279$as_echo "$LINUXDOC" >&6; }
22280else
22281  { $as_echo "$as_me:$LINENO: result: no" >&5
22282$as_echo "no" >&6; }
22283fi
22284
22285
22286# Extract the first word of "ps2pdf", so it can be a program name with args.
22287set dummy ps2pdf; ac_word=$2
22288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22289$as_echo_n "checking for $ac_word... " >&6; }
22290if test "${ac_cv_path_PS2PDF+set}" = set; then
22291  $as_echo_n "(cached) " >&6
22292else
22293  case $PS2PDF in
22294  [\\/]* | ?:[\\/]*)
22295  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22296  ;;
22297  *)
22298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22299for as_dir in $PATH
22300do
22301  IFS=$as_save_IFS
22302  test -z "$as_dir" && as_dir=.
22303  for ac_exec_ext in '' $ac_executable_extensions; do
22304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22305    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22306    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22307    break 2
22308  fi
22309done
22310done
22311IFS=$as_save_IFS
22312
22313  ;;
22314esac
22315fi
22316PS2PDF=$ac_cv_path_PS2PDF
22317if test -n "$PS2PDF"; then
22318  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22319$as_echo "$PS2PDF" >&6; }
22320else
22321  { $as_echo "$as_me:$LINENO: result: no" >&5
22322$as_echo "no" >&6; }
22323fi
22324
22325
22326
22327{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22328$as_echo_n "checking Whether to build documentation... " >&6; }
22329
22330if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22331   BUILDDOC=yes
22332else
22333   BUILDDOC=no
22334fi
22335
22336 if test x$BUILDDOC = xyes; then
22337  BUILD_LINUXDOC_TRUE=
22338  BUILD_LINUXDOC_FALSE='#'
22339else
22340  BUILD_LINUXDOC_TRUE='#'
22341  BUILD_LINUXDOC_FALSE=
22342fi
22343
22344
22345{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22346$as_echo "$BUILDDOC" >&6; }
22347
22348{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22349$as_echo_n "checking Whether to build pdf documentation... " >&6; }
22350
22351if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22352   BUILDPDFDOC=yes
22353else
22354   BUILDPDFDOC=no
22355fi
22356
22357 if test x$BUILDPDFDOC = xyes; then
22358  BUILD_PDFDOC_TRUE=
22359  BUILD_PDFDOC_FALSE='#'
22360else
22361  BUILD_PDFDOC_TRUE='#'
22362  BUILD_PDFDOC_FALSE=
22363fi
22364
22365
22366{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22367$as_echo "$BUILDPDFDOC" >&6; }
22368
22369MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22370MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22371MAKE_PDF="$PS2PDF"
22372MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22373
22374
22375
22376
22377
22378
22379
22380ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22381
22382cat >confcache <<\_ACEOF
22383# This file is a shell script that caches the results of configure
22384# tests run on this system so they can be shared between configure
22385# scripts and configure runs, see configure's option --config-cache.
22386# It is not useful on other systems.  If it contains results you don't
22387# want to keep, you may remove or edit it.
22388#
22389# config.status only pays attention to the cache file if you give it
22390# the --recheck option to rerun configure.
22391#
22392# `ac_cv_env_foo' variables (set or unset) will be overridden when
22393# loading this file, other *unset* `ac_cv_foo' will be assigned the
22394# following values.
22395
22396_ACEOF
22397
22398# The following way of writing the cache mishandles newlines in values,
22399# but we know of no workaround that is simple, portable, and efficient.
22400# So, we kill variables containing newlines.
22401# Ultrix sh set writes to stderr and can't be redirected directly,
22402# and sets the high bit in the cache file unless we assign to the vars.
22403(
22404  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22405    eval ac_val=\$$ac_var
22406    case $ac_val in #(
22407    *${as_nl}*)
22408      case $ac_var in #(
22409      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22410$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22411      esac
22412      case $ac_var in #(
22413      _ | IFS | as_nl) ;; #(
22414      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22415      *) $as_unset $ac_var ;;
22416      esac ;;
22417    esac
22418  done
22419
22420  (set) 2>&1 |
22421    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22422    *${as_nl}ac_space=\ *)
22423      # `set' does not quote correctly, so add quotes (double-quote
22424      # substitution turns \\\\ into \\, and sed turns \\ into \).
22425      sed -n \
22426	"s/'/'\\\\''/g;
22427	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22428      ;; #(
22429    *)
22430      # `set' quotes correctly as required by POSIX, so do not add quotes.
22431      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22432      ;;
22433    esac |
22434    sort
22435) |
22436  sed '
22437     /^ac_cv_env_/b end
22438     t clear
22439     :clear
22440     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22441     t end
22442     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22443     :end' >>confcache
22444if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22445  if test -w "$cache_file"; then
22446    test "x$cache_file" != "x/dev/null" &&
22447      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22448$as_echo "$as_me: updating cache $cache_file" >&6;}
22449    cat confcache >$cache_file
22450  else
22451    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22452$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22453  fi
22454fi
22455rm -f confcache
22456
22457test "x$prefix" = xNONE && prefix=$ac_default_prefix
22458# Let make expand exec_prefix.
22459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22460
22461DEFS=-DHAVE_CONFIG_H
22462
22463ac_libobjs=
22464ac_ltlibobjs=
22465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22466  # 1. Remove the extension, and $U if already installed.
22467  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22468  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22469  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22470  #    will be set to the directory where LIBOBJS objects are built.
22471  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22472  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22473done
22474LIBOBJS=$ac_libobjs
22475
22476LTLIBOBJS=$ac_ltlibobjs
22477
22478
22479 if test -n "$EXEEXT"; then
22480  am__EXEEXT_TRUE=
22481  am__EXEEXT_FALSE='#'
22482else
22483  am__EXEEXT_TRUE='#'
22484  am__EXEEXT_FALSE=
22485fi
22486
22487if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22488  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22489Usually this means the macro was only invoked conditionally." >&5
22490$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22491Usually this means the macro was only invoked conditionally." >&2;}
22492   { (exit 1); exit 1; }; }
22493fi
22494if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22495  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22496Usually this means the macro was only invoked conditionally." >&5
22497$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22498Usually this means the macro was only invoked conditionally." >&2;}
22499   { (exit 1); exit 1; }; }
22500fi
22501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22502  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22503Usually this means the macro was only invoked conditionally." >&5
22504$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22505Usually this means the macro was only invoked conditionally." >&2;}
22506   { (exit 1); exit 1; }; }
22507fi
22508if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22509  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22510Usually this means the macro was only invoked conditionally." >&5
22511$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22512Usually this means the macro was only invoked conditionally." >&2;}
22513   { (exit 1); exit 1; }; }
22514fi
22515if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22516  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22517Usually this means the macro was only invoked conditionally." >&5
22518$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22519Usually this means the macro was only invoked conditionally." >&2;}
22520   { (exit 1); exit 1; }; }
22521fi
22522if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22523  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22524Usually this means the macro was only invoked conditionally." >&5
22525$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22526Usually this means the macro was only invoked conditionally." >&2;}
22527   { (exit 1); exit 1; }; }
22528fi
22529if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22530  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22531Usually this means the macro was only invoked conditionally." >&5
22532$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22533Usually this means the macro was only invoked conditionally." >&2;}
22534   { (exit 1); exit 1; }; }
22535fi
22536if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22537  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22538Usually this means the macro was only invoked conditionally." >&5
22539$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22540Usually this means the macro was only invoked conditionally." >&2;}
22541   { (exit 1); exit 1; }; }
22542fi
22543
22544: ${CONFIG_STATUS=./config.status}
22545ac_write_fail=0
22546ac_clean_files_save=$ac_clean_files
22547ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22548{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22550cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22551#! $SHELL
22552# Generated by $as_me.
22553# Run this file to recreate the current configuration.
22554# Compiler output produced by configure, useful for debugging
22555# configure, is in config.log if it exists.
22556
22557debug=false
22558ac_cs_recheck=false
22559ac_cs_silent=false
22560SHELL=\${CONFIG_SHELL-$SHELL}
22561_ACEOF
22562
22563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22564## --------------------- ##
22565## M4sh Initialization.  ##
22566## --------------------- ##
22567
22568# Be more Bourne compatible
22569DUALCASE=1; export DUALCASE # for MKS sh
22570if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22571  emulate sh
22572  NULLCMD=:
22573  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22574  # is contrary to our usage.  Disable this feature.
22575  alias -g '${1+"$@"}'='"$@"'
22576  setopt NO_GLOB_SUBST
22577else
22578  case `(set -o) 2>/dev/null` in
22579  *posix*) set -o posix ;;
22580esac
22581
22582fi
22583
22584
22585
22586
22587# PATH needs CR
22588# Avoid depending upon Character Ranges.
22589as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22590as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22591as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22592as_cr_digits='0123456789'
22593as_cr_alnum=$as_cr_Letters$as_cr_digits
22594
22595as_nl='
22596'
22597export as_nl
22598# Printing a long string crashes Solaris 7 /usr/bin/printf.
22599as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22600as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22602if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22603  as_echo='printf %s\n'
22604  as_echo_n='printf %s'
22605else
22606  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22607    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22608    as_echo_n='/usr/ucb/echo -n'
22609  else
22610    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22611    as_echo_n_body='eval
22612      arg=$1;
22613      case $arg in
22614      *"$as_nl"*)
22615	expr "X$arg" : "X\\(.*\\)$as_nl";
22616	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22617      esac;
22618      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22619    '
22620    export as_echo_n_body
22621    as_echo_n='sh -c $as_echo_n_body as_echo'
22622  fi
22623  export as_echo_body
22624  as_echo='sh -c $as_echo_body as_echo'
22625fi
22626
22627# The user is always right.
22628if test "${PATH_SEPARATOR+set}" != set; then
22629  PATH_SEPARATOR=:
22630  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22631    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22632      PATH_SEPARATOR=';'
22633  }
22634fi
22635
22636# Support unset when possible.
22637if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22638  as_unset=unset
22639else
22640  as_unset=false
22641fi
22642
22643
22644# IFS
22645# We need space, tab and new line, in precisely that order.  Quoting is
22646# there to prevent editors from complaining about space-tab.
22647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22648# splitting by setting IFS to empty value.)
22649IFS=" ""	$as_nl"
22650
22651# Find who we are.  Look in the path if we contain no directory separator.
22652case $0 in
22653  *[\\/]* ) as_myself=$0 ;;
22654  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22655for as_dir in $PATH
22656do
22657  IFS=$as_save_IFS
22658  test -z "$as_dir" && as_dir=.
22659  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22660done
22661IFS=$as_save_IFS
22662
22663     ;;
22664esac
22665# We did not find ourselves, most probably we were run as `sh COMMAND'
22666# in which case we are not to be found in the path.
22667if test "x$as_myself" = x; then
22668  as_myself=$0
22669fi
22670if test ! -f "$as_myself"; then
22671  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22672  { (exit 1); exit 1; }
22673fi
22674
22675# Work around bugs in pre-3.0 UWIN ksh.
22676for as_var in ENV MAIL MAILPATH
22677do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22678done
22679PS1='$ '
22680PS2='> '
22681PS4='+ '
22682
22683# NLS nuisances.
22684LC_ALL=C
22685export LC_ALL
22686LANGUAGE=C
22687export LANGUAGE
22688
22689# Required to use basename.
22690if expr a : '\(a\)' >/dev/null 2>&1 &&
22691   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22692  as_expr=expr
22693else
22694  as_expr=false
22695fi
22696
22697if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22698  as_basename=basename
22699else
22700  as_basename=false
22701fi
22702
22703
22704# Name of the executable.
22705as_me=`$as_basename -- "$0" ||
22706$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22707	 X"$0" : 'X\(//\)$' \| \
22708	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22709$as_echo X/"$0" |
22710    sed '/^.*\/\([^/][^/]*\)\/*$/{
22711	    s//\1/
22712	    q
22713	  }
22714	  /^X\/\(\/\/\)$/{
22715	    s//\1/
22716	    q
22717	  }
22718	  /^X\/\(\/\).*/{
22719	    s//\1/
22720	    q
22721	  }
22722	  s/.*/./; q'`
22723
22724# CDPATH.
22725$as_unset CDPATH
22726
22727
22728
22729  as_lineno_1=$LINENO
22730  as_lineno_2=$LINENO
22731  test "x$as_lineno_1" != "x$as_lineno_2" &&
22732  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22733
22734  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22735  # uniformly replaced by the line number.  The first 'sed' inserts a
22736  # line-number line after each line using $LINENO; the second 'sed'
22737  # does the real work.  The second script uses 'N' to pair each
22738  # line-number line with the line containing $LINENO, and appends
22739  # trailing '-' during substitution so that $LINENO is not a special
22740  # case at line end.
22741  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22742  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22743  # E. McMahon (1931-1989) for sed's syntax.  :-)
22744  sed -n '
22745    p
22746    /[$]LINENO/=
22747  ' <$as_myself |
22748    sed '
22749      s/[$]LINENO.*/&-/
22750      t lineno
22751      b
22752      :lineno
22753      N
22754      :loop
22755      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22756      t loop
22757      s/-\n.*//
22758    ' >$as_me.lineno &&
22759  chmod +x "$as_me.lineno" ||
22760    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22761   { (exit 1); exit 1; }; }
22762
22763  # Don't try to exec as it changes $[0], causing all sort of problems
22764  # (the dirname of $[0] is not the place where we might find the
22765  # original and so on.  Autoconf is especially sensitive to this).
22766  . "./$as_me.lineno"
22767  # Exit status is that of the last command.
22768  exit
22769}
22770
22771
22772if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22773  as_dirname=dirname
22774else
22775  as_dirname=false
22776fi
22777
22778ECHO_C= ECHO_N= ECHO_T=
22779case `echo -n x` in
22780-n*)
22781  case `echo 'x\c'` in
22782  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22783  *)   ECHO_C='\c';;
22784  esac;;
22785*)
22786  ECHO_N='-n';;
22787esac
22788if expr a : '\(a\)' >/dev/null 2>&1 &&
22789   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22790  as_expr=expr
22791else
22792  as_expr=false
22793fi
22794
22795rm -f conf$$ conf$$.exe conf$$.file
22796if test -d conf$$.dir; then
22797  rm -f conf$$.dir/conf$$.file
22798else
22799  rm -f conf$$.dir
22800  mkdir conf$$.dir 2>/dev/null
22801fi
22802if (echo >conf$$.file) 2>/dev/null; then
22803  if ln -s conf$$.file conf$$ 2>/dev/null; then
22804    as_ln_s='ln -s'
22805    # ... but there are two gotchas:
22806    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22807    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22808    # In both cases, we have to default to `cp -p'.
22809    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22810      as_ln_s='cp -p'
22811  elif ln conf$$.file conf$$ 2>/dev/null; then
22812    as_ln_s=ln
22813  else
22814    as_ln_s='cp -p'
22815  fi
22816else
22817  as_ln_s='cp -p'
22818fi
22819rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22820rmdir conf$$.dir 2>/dev/null
22821
22822if mkdir -p . 2>/dev/null; then
22823  as_mkdir_p=:
22824else
22825  test -d ./-p && rmdir ./-p
22826  as_mkdir_p=false
22827fi
22828
22829if test -x / >/dev/null 2>&1; then
22830  as_test_x='test -x'
22831else
22832  if ls -dL / >/dev/null 2>&1; then
22833    as_ls_L_option=L
22834  else
22835    as_ls_L_option=
22836  fi
22837  as_test_x='
22838    eval sh -c '\''
22839      if test -d "$1"; then
22840	test -d "$1/.";
22841      else
22842	case $1 in
22843	-*)set "./$1";;
22844	esac;
22845	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22846	???[sx]*):;;*)false;;esac;fi
22847    '\'' sh
22848  '
22849fi
22850as_executable_p=$as_test_x
22851
22852# Sed expression to map a string onto a valid CPP name.
22853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22854
22855# Sed expression to map a string onto a valid variable name.
22856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22857
22858
22859exec 6>&1
22860
22861# Save the log message, to keep $[0] and so on meaningful, and to
22862# report actual input values of CONFIG_FILES etc. instead of their
22863# values after options handling.
22864ac_log="
22865This file was extended by xf86-video-rendition $as_me 4.2.3, which was
22866generated by GNU Autoconf 2.63.  Invocation command line was
22867
22868  CONFIG_FILES    = $CONFIG_FILES
22869  CONFIG_HEADERS  = $CONFIG_HEADERS
22870  CONFIG_LINKS    = $CONFIG_LINKS
22871  CONFIG_COMMANDS = $CONFIG_COMMANDS
22872  $ $0 $@
22873
22874on `(hostname || uname -n) 2>/dev/null | sed 1q`
22875"
22876
22877_ACEOF
22878
22879case $ac_config_files in *"
22880"*) set x $ac_config_files; shift; ac_config_files=$*;;
22881esac
22882
22883case $ac_config_headers in *"
22884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22885esac
22886
22887
22888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22889# Files that config.status was made for.
22890config_files="$ac_config_files"
22891config_headers="$ac_config_headers"
22892config_commands="$ac_config_commands"
22893
22894_ACEOF
22895
22896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22897ac_cs_usage="\
22898\`$as_me' instantiates files from templates according to the
22899current configuration.
22900
22901Usage: $0 [OPTION]... [FILE]...
22902
22903  -h, --help       print this help, then exit
22904  -V, --version    print version number and configuration settings, then exit
22905  -q, --quiet, --silent
22906                   do not print progress messages
22907  -d, --debug      don't remove temporary files
22908      --recheck    update $as_me by reconfiguring in the same conditions
22909      --file=FILE[:TEMPLATE]
22910                   instantiate the configuration file FILE
22911      --header=FILE[:TEMPLATE]
22912                   instantiate the configuration header FILE
22913
22914Configuration files:
22915$config_files
22916
22917Configuration headers:
22918$config_headers
22919
22920Configuration commands:
22921$config_commands
22922
22923Report bugs to <bug-autoconf@gnu.org>."
22924
22925_ACEOF
22926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22927ac_cs_version="\\
22928xf86-video-rendition config.status 4.2.3
22929configured by $0, generated by GNU Autoconf 2.63,
22930  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22931
22932Copyright (C) 2008 Free Software Foundation, Inc.
22933This config.status script is free software; the Free Software Foundation
22934gives unlimited permission to copy, distribute and modify it."
22935
22936ac_pwd='$ac_pwd'
22937srcdir='$srcdir'
22938INSTALL='$INSTALL'
22939MKDIR_P='$MKDIR_P'
22940AWK='$AWK'
22941test -n "\$AWK" || AWK=awk
22942_ACEOF
22943
22944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22945# The default lists apply if the user does not specify any file.
22946ac_need_defaults=:
22947while test $# != 0
22948do
22949  case $1 in
22950  --*=*)
22951    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22952    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22953    ac_shift=:
22954    ;;
22955  *)
22956    ac_option=$1
22957    ac_optarg=$2
22958    ac_shift=shift
22959    ;;
22960  esac
22961
22962  case $ac_option in
22963  # Handling of the options.
22964  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22965    ac_cs_recheck=: ;;
22966  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22967    $as_echo "$ac_cs_version"; exit ;;
22968  --debug | --debu | --deb | --de | --d | -d )
22969    debug=: ;;
22970  --file | --fil | --fi | --f )
22971    $ac_shift
22972    case $ac_optarg in
22973    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22974    esac
22975    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22976    ac_need_defaults=false;;
22977  --header | --heade | --head | --hea )
22978    $ac_shift
22979    case $ac_optarg in
22980    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22981    esac
22982    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22983    ac_need_defaults=false;;
22984  --he | --h)
22985    # Conflict between --help and --header
22986    { $as_echo "$as_me: error: ambiguous option: $1
22987Try \`$0 --help' for more information." >&2
22988   { (exit 1); exit 1; }; };;
22989  --help | --hel | -h )
22990    $as_echo "$ac_cs_usage"; exit ;;
22991  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22992  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22993    ac_cs_silent=: ;;
22994
22995  # This is an error.
22996  -*) { $as_echo "$as_me: error: unrecognized option: $1
22997Try \`$0 --help' for more information." >&2
22998   { (exit 1); exit 1; }; } ;;
22999
23000  *) ac_config_targets="$ac_config_targets $1"
23001     ac_need_defaults=false ;;
23002
23003  esac
23004  shift
23005done
23006
23007ac_configure_extra_args=
23008
23009if $ac_cs_silent; then
23010  exec 6>/dev/null
23011  ac_configure_extra_args="$ac_configure_extra_args --silent"
23012fi
23013
23014_ACEOF
23015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23016if \$ac_cs_recheck; then
23017  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23018  shift
23019  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23020  CONFIG_SHELL='$SHELL'
23021  export CONFIG_SHELL
23022  exec "\$@"
23023fi
23024
23025_ACEOF
23026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23027exec 5>>config.log
23028{
23029  echo
23030  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23031## Running $as_me. ##
23032_ASBOX
23033  $as_echo "$ac_log"
23034} >&5
23035
23036_ACEOF
23037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23038#
23039# INIT-COMMANDS
23040#
23041AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23042
23043_ACEOF
23044
23045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23046
23047# Handling of arguments.
23048for ac_config_target in $ac_config_targets
23049do
23050  case $ac_config_target in
23051    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23052    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23053    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23054    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23055    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23056
23057  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23058$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23059   { (exit 1); exit 1; }; };;
23060  esac
23061done
23062
23063
23064# If the user did not use the arguments to specify the items to instantiate,
23065# then the envvar interface is used.  Set only those that are not.
23066# We use the long form for the default assignment because of an extremely
23067# bizarre bug on SunOS 4.1.3.
23068if $ac_need_defaults; then
23069  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23070  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23071  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23072fi
23073
23074# Have a temporary directory for convenience.  Make it in the build tree
23075# simply because there is no reason against having it here, and in addition,
23076# creating and moving files from /tmp can sometimes cause problems.
23077# Hook for its removal unless debugging.
23078# Note that there is a small window in which the directory will not be cleaned:
23079# after its creation but before its name has been assigned to `$tmp'.
23080$debug ||
23081{
23082  tmp=
23083  trap 'exit_status=$?
23084  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23085' 0
23086  trap '{ (exit 1); exit 1; }' 1 2 13 15
23087}
23088# Create a (secure) tmp directory for tmp files.
23089
23090{
23091  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23092  test -n "$tmp" && test -d "$tmp"
23093}  ||
23094{
23095  tmp=./conf$$-$RANDOM
23096  (umask 077 && mkdir "$tmp")
23097} ||
23098{
23099   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23100   { (exit 1); exit 1; }
23101}
23102
23103# Set up the scripts for CONFIG_FILES section.
23104# No need to generate them if there are no CONFIG_FILES.
23105# This happens for instance with `./config.status config.h'.
23106if test -n "$CONFIG_FILES"; then
23107
23108
23109ac_cr='
23110'
23111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23113  ac_cs_awk_cr='\\r'
23114else
23115  ac_cs_awk_cr=$ac_cr
23116fi
23117
23118echo 'BEGIN {' >"$tmp/subs1.awk" &&
23119_ACEOF
23120
23121
23122{
23123  echo "cat >conf$$subs.awk <<_ACEOF" &&
23124  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23125  echo "_ACEOF"
23126} >conf$$subs.sh ||
23127  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23128$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23129   { (exit 1); exit 1; }; }
23130ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23131ac_delim='%!_!# '
23132for ac_last_try in false false false false false :; do
23133  . ./conf$$subs.sh ||
23134    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23135$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23136   { (exit 1); exit 1; }; }
23137
23138  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23139  if test $ac_delim_n = $ac_delim_num; then
23140    break
23141  elif $ac_last_try; then
23142    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23143$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23144   { (exit 1); exit 1; }; }
23145  else
23146    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23147  fi
23148done
23149rm -f conf$$subs.sh
23150
23151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23152cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23153_ACEOF
23154sed -n '
23155h
23156s/^/S["/; s/!.*/"]=/
23157p
23158g
23159s/^[^!]*!//
23160:repl
23161t repl
23162s/'"$ac_delim"'$//
23163t delim
23164:nl
23165h
23166s/\(.\{148\}\).*/\1/
23167t more1
23168s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23169p
23170n
23171b repl
23172:more1
23173s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23174p
23175g
23176s/.\{148\}//
23177t nl
23178:delim
23179h
23180s/\(.\{148\}\).*/\1/
23181t more2
23182s/["\\]/\\&/g; s/^/"/; s/$/"/
23183p
23184b
23185:more2
23186s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23187p
23188g
23189s/.\{148\}//
23190t delim
23191' <conf$$subs.awk | sed '
23192/^[^""]/{
23193  N
23194  s/\n//
23195}
23196' >>$CONFIG_STATUS || ac_write_fail=1
23197rm -f conf$$subs.awk
23198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23199_ACAWK
23200cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23201  for (key in S) S_is_set[key] = 1
23202  FS = ""
23203
23204}
23205{
23206  line = $ 0
23207  nfields = split(line, field, "@")
23208  substed = 0
23209  len = length(field[1])
23210  for (i = 2; i < nfields; i++) {
23211    key = field[i]
23212    keylen = length(key)
23213    if (S_is_set[key]) {
23214      value = S[key]
23215      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23216      len += length(value) + length(field[++i])
23217      substed = 1
23218    } else
23219      len += 1 + keylen
23220  }
23221
23222  print line
23223}
23224
23225_ACAWK
23226_ACEOF
23227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23228if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23229  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23230else
23231  cat
23232fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23233  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23234$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23235   { (exit 1); exit 1; }; }
23236_ACEOF
23237
23238# VPATH may cause trouble with some makes, so we remove $(srcdir),
23239# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23240# trailing colons and then remove the whole line if VPATH becomes empty
23241# (actually we leave an empty line to preserve line numbers).
23242if test "x$srcdir" = x.; then
23243  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23244s/:*\$(srcdir):*/:/
23245s/:*\${srcdir}:*/:/
23246s/:*@srcdir@:*/:/
23247s/^\([^=]*=[	 ]*\):*/\1/
23248s/:*$//
23249s/^[^=]*=[	 ]*$//
23250}'
23251fi
23252
23253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23254fi # test -n "$CONFIG_FILES"
23255
23256# Set up the scripts for CONFIG_HEADERS section.
23257# No need to generate them if there are no CONFIG_HEADERS.
23258# This happens for instance with `./config.status Makefile'.
23259if test -n "$CONFIG_HEADERS"; then
23260cat >"$tmp/defines.awk" <<\_ACAWK ||
23261BEGIN {
23262_ACEOF
23263
23264# Transform confdefs.h into an awk script `defines.awk', embedded as
23265# here-document in config.status, that substitutes the proper values into
23266# config.h.in to produce config.h.
23267
23268# Create a delimiter string that does not exist in confdefs.h, to ease
23269# handling of long lines.
23270ac_delim='%!_!# '
23271for ac_last_try in false false :; do
23272  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23273  if test -z "$ac_t"; then
23274    break
23275  elif $ac_last_try; then
23276    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23277$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23278   { (exit 1); exit 1; }; }
23279  else
23280    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23281  fi
23282done
23283
23284# For the awk script, D is an array of macro values keyed by name,
23285# likewise P contains macro parameters if any.  Preserve backslash
23286# newline sequences.
23287
23288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23289sed -n '
23290s/.\{148\}/&'"$ac_delim"'/g
23291t rset
23292:rset
23293s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23294t def
23295d
23296:def
23297s/\\$//
23298t bsnl
23299s/["\\]/\\&/g
23300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23301D["\1"]=" \3"/p
23302s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23303d
23304:bsnl
23305s/["\\]/\\&/g
23306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23307D["\1"]=" \3\\\\\\n"\\/p
23308t cont
23309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23310t cont
23311d
23312:cont
23313n
23314s/.\{148\}/&'"$ac_delim"'/g
23315t clear
23316:clear
23317s/\\$//
23318t bsnlc
23319s/["\\]/\\&/g; s/^/"/; s/$/"/p
23320d
23321:bsnlc
23322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23323b cont
23324' <confdefs.h | sed '
23325s/'"$ac_delim"'/"\\\
23326"/g' >>$CONFIG_STATUS || ac_write_fail=1
23327
23328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23329  for (key in D) D_is_set[key] = 1
23330  FS = ""
23331}
23332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23333  line = \$ 0
23334  split(line, arg, " ")
23335  if (arg[1] == "#") {
23336    defundef = arg[2]
23337    mac1 = arg[3]
23338  } else {
23339    defundef = substr(arg[1], 2)
23340    mac1 = arg[2]
23341  }
23342  split(mac1, mac2, "(") #)
23343  macro = mac2[1]
23344  prefix = substr(line, 1, index(line, defundef) - 1)
23345  if (D_is_set[macro]) {
23346    # Preserve the white space surrounding the "#".
23347    print prefix "define", macro P[macro] D[macro]
23348    next
23349  } else {
23350    # Replace #undef with comments.  This is necessary, for example,
23351    # in the case of _POSIX_SOURCE, which is predefined and required
23352    # on some systems where configure will not decide to define it.
23353    if (defundef == "undef") {
23354      print "/*", prefix defundef, macro, "*/"
23355      next
23356    }
23357  }
23358}
23359{ print }
23360_ACAWK
23361_ACEOF
23362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23363  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23364$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23365   { (exit 1); exit 1; }; }
23366fi # test -n "$CONFIG_HEADERS"
23367
23368
23369eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23370shift
23371for ac_tag
23372do
23373  case $ac_tag in
23374  :[FHLC]) ac_mode=$ac_tag; continue;;
23375  esac
23376  case $ac_mode$ac_tag in
23377  :[FHL]*:*);;
23378  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23379$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23380   { (exit 1); exit 1; }; };;
23381  :[FH]-) ac_tag=-:-;;
23382  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23383  esac
23384  ac_save_IFS=$IFS
23385  IFS=:
23386  set x $ac_tag
23387  IFS=$ac_save_IFS
23388  shift
23389  ac_file=$1
23390  shift
23391
23392  case $ac_mode in
23393  :L) ac_source=$1;;
23394  :[FH])
23395    ac_file_inputs=
23396    for ac_f
23397    do
23398      case $ac_f in
23399      -) ac_f="$tmp/stdin";;
23400      *) # Look for the file first in the build tree, then in the source tree
23401	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23402	 # because $ac_f cannot contain `:'.
23403	 test -f "$ac_f" ||
23404	   case $ac_f in
23405	   [\\/$]*) false;;
23406	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23407	   esac ||
23408	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23409$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23410   { (exit 1); exit 1; }; };;
23411      esac
23412      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23413      ac_file_inputs="$ac_file_inputs '$ac_f'"
23414    done
23415
23416    # Let's still pretend it is `configure' which instantiates (i.e., don't
23417    # use $as_me), people would be surprised to read:
23418    #    /* config.h.  Generated by config.status.  */
23419    configure_input='Generated from '`
23420	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23421	`' by configure.'
23422    if test x"$ac_file" != x-; then
23423      configure_input="$ac_file.  $configure_input"
23424      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23425$as_echo "$as_me: creating $ac_file" >&6;}
23426    fi
23427    # Neutralize special characters interpreted by sed in replacement strings.
23428    case $configure_input in #(
23429    *\&* | *\|* | *\\* )
23430       ac_sed_conf_input=`$as_echo "$configure_input" |
23431       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23432    *) ac_sed_conf_input=$configure_input;;
23433    esac
23434
23435    case $ac_tag in
23436    *:-:* | *:-) cat >"$tmp/stdin" \
23437      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23438$as_echo "$as_me: error: could not create $ac_file" >&2;}
23439   { (exit 1); exit 1; }; } ;;
23440    esac
23441    ;;
23442  esac
23443
23444  ac_dir=`$as_dirname -- "$ac_file" ||
23445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23446	 X"$ac_file" : 'X\(//\)[^/]' \| \
23447	 X"$ac_file" : 'X\(//\)$' \| \
23448	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23449$as_echo X"$ac_file" |
23450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23451	    s//\1/
23452	    q
23453	  }
23454	  /^X\(\/\/\)[^/].*/{
23455	    s//\1/
23456	    q
23457	  }
23458	  /^X\(\/\/\)$/{
23459	    s//\1/
23460	    q
23461	  }
23462	  /^X\(\/\).*/{
23463	    s//\1/
23464	    q
23465	  }
23466	  s/.*/./; q'`
23467  { as_dir="$ac_dir"
23468  case $as_dir in #(
23469  -*) as_dir=./$as_dir;;
23470  esac
23471  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23472    as_dirs=
23473    while :; do
23474      case $as_dir in #(
23475      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23476      *) as_qdir=$as_dir;;
23477      esac
23478      as_dirs="'$as_qdir' $as_dirs"
23479      as_dir=`$as_dirname -- "$as_dir" ||
23480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23481	 X"$as_dir" : 'X\(//\)[^/]' \| \
23482	 X"$as_dir" : 'X\(//\)$' \| \
23483	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23484$as_echo X"$as_dir" |
23485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23486	    s//\1/
23487	    q
23488	  }
23489	  /^X\(\/\/\)[^/].*/{
23490	    s//\1/
23491	    q
23492	  }
23493	  /^X\(\/\/\)$/{
23494	    s//\1/
23495	    q
23496	  }
23497	  /^X\(\/\).*/{
23498	    s//\1/
23499	    q
23500	  }
23501	  s/.*/./; q'`
23502      test -d "$as_dir" && break
23503    done
23504    test -z "$as_dirs" || eval "mkdir $as_dirs"
23505  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23506$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23507   { (exit 1); exit 1; }; }; }
23508  ac_builddir=.
23509
23510case "$ac_dir" in
23511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23512*)
23513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23514  # A ".." for each directory in $ac_dir_suffix.
23515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23516  case $ac_top_builddir_sub in
23517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23519  esac ;;
23520esac
23521ac_abs_top_builddir=$ac_pwd
23522ac_abs_builddir=$ac_pwd$ac_dir_suffix
23523# for backward compatibility:
23524ac_top_builddir=$ac_top_build_prefix
23525
23526case $srcdir in
23527  .)  # We are building in place.
23528    ac_srcdir=.
23529    ac_top_srcdir=$ac_top_builddir_sub
23530    ac_abs_top_srcdir=$ac_pwd ;;
23531  [\\/]* | ?:[\\/]* )  # Absolute name.
23532    ac_srcdir=$srcdir$ac_dir_suffix;
23533    ac_top_srcdir=$srcdir
23534    ac_abs_top_srcdir=$srcdir ;;
23535  *) # Relative name.
23536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23537    ac_top_srcdir=$ac_top_build_prefix$srcdir
23538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23539esac
23540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23541
23542
23543  case $ac_mode in
23544  :F)
23545  #
23546  # CONFIG_FILE
23547  #
23548
23549  case $INSTALL in
23550  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23551  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23552  esac
23553  ac_MKDIR_P=$MKDIR_P
23554  case $MKDIR_P in
23555  [\\/$]* | ?:[\\/]* ) ;;
23556  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23557  esac
23558_ACEOF
23559
23560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23561# If the template does not know about datarootdir, expand it.
23562# FIXME: This hack should be removed a few years after 2.60.
23563ac_datarootdir_hack=; ac_datarootdir_seen=
23564
23565ac_sed_dataroot='
23566/datarootdir/ {
23567  p
23568  q
23569}
23570/@datadir@/p
23571/@docdir@/p
23572/@infodir@/p
23573/@localedir@/p
23574/@mandir@/p
23575'
23576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23577*datarootdir*) ac_datarootdir_seen=yes;;
23578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23579  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23580$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23581_ACEOF
23582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23583  ac_datarootdir_hack='
23584  s&@datadir@&$datadir&g
23585  s&@docdir@&$docdir&g
23586  s&@infodir@&$infodir&g
23587  s&@localedir@&$localedir&g
23588  s&@mandir@&$mandir&g
23589    s&\\\${datarootdir}&$datarootdir&g' ;;
23590esac
23591_ACEOF
23592
23593# Neutralize VPATH when `$srcdir' = `.'.
23594# Shell code in configure.ac might set extrasub.
23595# FIXME: do we really want to maintain this feature?
23596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23597ac_sed_extra="$ac_vpsub
23598$extrasub
23599_ACEOF
23600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23601:t
23602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23603s|@configure_input@|$ac_sed_conf_input|;t t
23604s&@top_builddir@&$ac_top_builddir_sub&;t t
23605s&@top_build_prefix@&$ac_top_build_prefix&;t t
23606s&@srcdir@&$ac_srcdir&;t t
23607s&@abs_srcdir@&$ac_abs_srcdir&;t t
23608s&@top_srcdir@&$ac_top_srcdir&;t t
23609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23610s&@builddir@&$ac_builddir&;t t
23611s&@abs_builddir@&$ac_abs_builddir&;t t
23612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23613s&@INSTALL@&$ac_INSTALL&;t t
23614s&@MKDIR_P@&$ac_MKDIR_P&;t t
23615$ac_datarootdir_hack
23616"
23617eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23618  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23619$as_echo "$as_me: error: could not create $ac_file" >&2;}
23620   { (exit 1); exit 1; }; }
23621
23622test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23623  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23624  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23625  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23626which seems to be undefined.  Please make sure it is defined." >&5
23627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23628which seems to be undefined.  Please make sure it is defined." >&2;}
23629
23630  rm -f "$tmp/stdin"
23631  case $ac_file in
23632  -) cat "$tmp/out" && rm -f "$tmp/out";;
23633  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23634  esac \
23635  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23636$as_echo "$as_me: error: could not create $ac_file" >&2;}
23637   { (exit 1); exit 1; }; }
23638 ;;
23639  :H)
23640  #
23641  # CONFIG_HEADER
23642  #
23643  if test x"$ac_file" != x-; then
23644    {
23645      $as_echo "/* $configure_input  */" \
23646      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23647    } >"$tmp/config.h" \
23648      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23649$as_echo "$as_me: error: could not create $ac_file" >&2;}
23650   { (exit 1); exit 1; }; }
23651    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23652      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23653$as_echo "$as_me: $ac_file is unchanged" >&6;}
23654    else
23655      rm -f "$ac_file"
23656      mv "$tmp/config.h" "$ac_file" \
23657	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23658$as_echo "$as_me: error: could not create $ac_file" >&2;}
23659   { (exit 1); exit 1; }; }
23660    fi
23661  else
23662    $as_echo "/* $configure_input  */" \
23663      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23664      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23665$as_echo "$as_me: error: could not create -" >&2;}
23666   { (exit 1); exit 1; }; }
23667  fi
23668# Compute "$ac_file"'s index in $config_headers.
23669_am_arg="$ac_file"
23670_am_stamp_count=1
23671for _am_header in $config_headers :; do
23672  case $_am_header in
23673    $_am_arg | $_am_arg:* )
23674      break ;;
23675    * )
23676      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23677  esac
23678done
23679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23681	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23682	 X"$_am_arg" : 'X\(//\)$' \| \
23683	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23684$as_echo X"$_am_arg" |
23685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23686	    s//\1/
23687	    q
23688	  }
23689	  /^X\(\/\/\)[^/].*/{
23690	    s//\1/
23691	    q
23692	  }
23693	  /^X\(\/\/\)$/{
23694	    s//\1/
23695	    q
23696	  }
23697	  /^X\(\/\).*/{
23698	    s//\1/
23699	    q
23700	  }
23701	  s/.*/./; q'`/stamp-h$_am_stamp_count
23702 ;;
23703
23704  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23705$as_echo "$as_me: executing $ac_file commands" >&6;}
23706 ;;
23707  esac
23708
23709
23710  case $ac_file$ac_mode in
23711    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23712  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23713  # are listed without --file.  Let's play safe and only enable the eval
23714  # if we detect the quoting.
23715  case $CONFIG_FILES in
23716  *\'*) eval set x "$CONFIG_FILES" ;;
23717  *)   set x $CONFIG_FILES ;;
23718  esac
23719  shift
23720  for mf
23721  do
23722    # Strip MF so we end up with the name of the file.
23723    mf=`echo "$mf" | sed -e 's/:.*$//'`
23724    # Check whether this is an Automake generated Makefile or not.
23725    # We used to match only the files named `Makefile.in', but
23726    # some people rename them; so instead we look at the file content.
23727    # Grep'ing the first line is not enough: some people post-process
23728    # each Makefile.in and add a new line on top of each file to say so.
23729    # Grep'ing the whole file is not good either: AIX grep has a line
23730    # limit of 2048, but all sed's we know have understand at least 4000.
23731    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23732      dirpart=`$as_dirname -- "$mf" ||
23733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23734	 X"$mf" : 'X\(//\)[^/]' \| \
23735	 X"$mf" : 'X\(//\)$' \| \
23736	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23737$as_echo X"$mf" |
23738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23739	    s//\1/
23740	    q
23741	  }
23742	  /^X\(\/\/\)[^/].*/{
23743	    s//\1/
23744	    q
23745	  }
23746	  /^X\(\/\/\)$/{
23747	    s//\1/
23748	    q
23749	  }
23750	  /^X\(\/\).*/{
23751	    s//\1/
23752	    q
23753	  }
23754	  s/.*/./; q'`
23755    else
23756      continue
23757    fi
23758    # Extract the definition of DEPDIR, am__include, and am__quote
23759    # from the Makefile without running `make'.
23760    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23761    test -z "$DEPDIR" && continue
23762    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23763    test -z "am__include" && continue
23764    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23765    # When using ansi2knr, U may be empty or an underscore; expand it
23766    U=`sed -n 's/^U = //p' < "$mf"`
23767    # Find all dependency output files, they are included files with
23768    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23769    # simplest approach to changing $(DEPDIR) to its actual value in the
23770    # expansion.
23771    for file in `sed -n "
23772      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23773	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23774      # Make sure the directory exists.
23775      test -f "$dirpart/$file" && continue
23776      fdir=`$as_dirname -- "$file" ||
23777$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23778	 X"$file" : 'X\(//\)[^/]' \| \
23779	 X"$file" : 'X\(//\)$' \| \
23780	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23781$as_echo X"$file" |
23782    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23783	    s//\1/
23784	    q
23785	  }
23786	  /^X\(\/\/\)[^/].*/{
23787	    s//\1/
23788	    q
23789	  }
23790	  /^X\(\/\/\)$/{
23791	    s//\1/
23792	    q
23793	  }
23794	  /^X\(\/\).*/{
23795	    s//\1/
23796	    q
23797	  }
23798	  s/.*/./; q'`
23799      { as_dir=$dirpart/$fdir
23800  case $as_dir in #(
23801  -*) as_dir=./$as_dir;;
23802  esac
23803  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23804    as_dirs=
23805    while :; do
23806      case $as_dir in #(
23807      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23808      *) as_qdir=$as_dir;;
23809      esac
23810      as_dirs="'$as_qdir' $as_dirs"
23811      as_dir=`$as_dirname -- "$as_dir" ||
23812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23813	 X"$as_dir" : 'X\(//\)[^/]' \| \
23814	 X"$as_dir" : 'X\(//\)$' \| \
23815	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23816$as_echo X"$as_dir" |
23817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23818	    s//\1/
23819	    q
23820	  }
23821	  /^X\(\/\/\)[^/].*/{
23822	    s//\1/
23823	    q
23824	  }
23825	  /^X\(\/\/\)$/{
23826	    s//\1/
23827	    q
23828	  }
23829	  /^X\(\/\).*/{
23830	    s//\1/
23831	    q
23832	  }
23833	  s/.*/./; q'`
23834      test -d "$as_dir" && break
23835    done
23836    test -z "$as_dirs" || eval "mkdir $as_dirs"
23837  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23838$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23839   { (exit 1); exit 1; }; }; }
23840      # echo "creating $dirpart/$file"
23841      echo '# dummy' > "$dirpart/$file"
23842    done
23843  done
23844}
23845 ;;
23846
23847  esac
23848done # for ac_tag
23849
23850
23851{ (exit 0); exit 0; }
23852_ACEOF
23853chmod +x $CONFIG_STATUS
23854ac_clean_files=$ac_clean_files_save
23855
23856test $ac_write_fail = 0 ||
23857  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23858$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23859   { (exit 1); exit 1; }; }
23860
23861
23862# configure is writing to config.log, and then calls config.status.
23863# config.status does its own redirection, appending to config.log.
23864# Unfortunately, on DOS this fails, as config.log is still kept open
23865# by configure, so config.status won't be able to write to it; its
23866# output is simply discarded.  So we exec the FD to /dev/null,
23867# effectively closing config.log, so it can be properly (re)opened and
23868# appended to by config.status.  When coming back to configure, we
23869# need to make the FD available again.
23870if test "$no_create" != yes; then
23871  ac_cs_success=:
23872  ac_config_status_args=
23873  test "$silent" = yes &&
23874    ac_config_status_args="$ac_config_status_args --quiet"
23875  exec 5>/dev/null
23876  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23877  exec 5>>config.log
23878  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23879  # would make configure fail if this is the last instruction.
23880  $ac_cs_success || { (exit 1); exit 1; }
23881fi
23882if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23883  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23884$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23885fi
23886
23887