configure revision 1ae1b5e8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xf86-video-cirrus 1.3.0.
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 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  # Zsh 3.x and 4.x performs 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
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='xf86-video-cirrus'
730PACKAGE_TARNAME='xf86-video-cirrus'
731PACKAGE_VERSION='1.3.0'
732PACKAGE_STRING='xf86-video-cirrus 1.3.0'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735ac_unique_file="Makefile.am"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831MAINTAINER_MODE_TRUE
832MAINTAINER_MODE_FALSE
833MAINT
834build
835build_cpu
836build_vendor
837build_os
838host
839host_cpu
840host_vendor
841host_os
842CC
843CFLAGS
844LDFLAGS
845CPPFLAGS
846ac_ct_CC
847EXEEXT
848OBJEXT
849DEPDIR
850am__include
851am__quote
852AMDEP_TRUE
853AMDEP_FALSE
854AMDEPBACKSLASH
855CCDEPMODE
856am__fastdepCC_TRUE
857am__fastdepCC_FALSE
858GREP
859EGREP
860LN_S
861ECHO
862AR
863RANLIB
864CPP
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876CWARNFLAGS
877PKG_CONFIG
878XORG_CFLAGS
879XORG_LIBS
880PCIACCESS_CFLAGS
881PCIACCESS_LIBS
882XSERVER_LIBPCIACCESS_TRUE
883XSERVER_LIBPCIACCESS_FALSE
884moduledir
885DRIVER_NAME
886APP_MAN_SUFFIX
887LIB_MAN_SUFFIX
888FILE_MAN_SUFFIX
889MISC_MAN_SUFFIX
890DRIVER_MAN_SUFFIX
891ADMIN_MAN_SUFFIX
892APP_MAN_DIR
893LIB_MAN_DIR
894FILE_MAN_DIR
895MISC_MAN_DIR
896DRIVER_MAN_DIR
897ADMIN_MAN_DIR
898CHANGELOG_CMD
899distcleancheck_listfiles
900LIBOBJS
901LTLIBOBJS'
902ac_subst_files=''
903      ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CPP
912CXX
913CXXFLAGS
914CCC
915CXXCPP
916F77
917FFLAGS
918PKG_CONFIG
919XORG_CFLAGS
920XORG_LIBS
921PCIACCESS_CFLAGS
922PCIACCESS_LIBS'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928# The variables have the same names as the options, with
929# dashes changed to underlines.
930cache_file=/dev/null
931exec_prefix=NONE
932no_create=
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
941verbose=
942x_includes=NONE
943x_libraries=NONE
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
950# (The list follows the same order as the GNU Coding Standards.)
951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
959includedir='${prefix}/include'
960oldincludedir='/usr/include'
961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
970
971ac_prev=
972ac_dashdash=
973for ac_option
974do
975  # If the previous option needs an argument, assign it.
976  if test -n "$ac_prev"; then
977    eval $ac_prev=\$ac_option
978    ac_prev=
979    continue
980  fi
981
982  case $ac_option in
983  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984  *)	ac_optarg=yes ;;
985  esac
986
987  # Accept the important Cygnus configure options, so we can diagnose typos.
988
989  case $ac_dashdash$ac_option in
990  --)
991    ac_dashdash=yes ;;
992
993  -bindir | --bindir | --bindi | --bind | --bin | --bi)
994    ac_prev=bindir ;;
995  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996    bindir=$ac_optarg ;;
997
998  -build | --build | --buil | --bui | --bu)
999    ac_prev=build_alias ;;
1000  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001    build_alias=$ac_optarg ;;
1002
1003  -cache-file | --cache-file | --cache-fil | --cache-fi \
1004  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005    ac_prev=cache_file ;;
1006  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008    cache_file=$ac_optarg ;;
1009
1010  --config-cache | -C)
1011    cache_file=config.cache ;;
1012
1013  -datadir | --datadir | --datadi | --datad)
1014    ac_prev=datadir ;;
1015  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016    datadir=$ac_optarg ;;
1017
1018  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019  | --dataroo | --dataro | --datar)
1020    ac_prev=datarootdir ;;
1021  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023    datarootdir=$ac_optarg ;;
1024
1025  -disable-* | --disable-*)
1026    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027    # Reject names that are not valid shell variable names.
1028    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030   { (exit 1); exit 1; }; }
1031    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032    eval enable_$ac_feature=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049   { (exit 1); exit 1; }; }
1050    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051    eval enable_$ac_feature=\$ac_optarg ;;
1052
1053  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055  | --exec | --exe | --ex)
1056    ac_prev=exec_prefix ;;
1057  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059  | --exec=* | --exe=* | --ex=*)
1060    exec_prefix=$ac_optarg ;;
1061
1062  -gas | --gas | --ga | --g)
1063    # Obsolete; use --with-gas.
1064    with_gas=yes ;;
1065
1066  -help | --help | --hel | --he | -h)
1067    ac_init_help=long ;;
1068  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069    ac_init_help=recursive ;;
1070  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071    ac_init_help=short ;;
1072
1073  -host | --host | --hos | --ho)
1074    ac_prev=host_alias ;;
1075  -host=* | --host=* | --hos=* | --ho=*)
1076    host_alias=$ac_optarg ;;
1077
1078  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079    ac_prev=htmldir ;;
1080  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081  | --ht=*)
1082    htmldir=$ac_optarg ;;
1083
1084  -includedir | --includedir | --includedi | --included | --include \
1085  | --includ | --inclu | --incl | --inc)
1086    ac_prev=includedir ;;
1087  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088  | --includ=* | --inclu=* | --incl=* | --inc=*)
1089    includedir=$ac_optarg ;;
1090
1091  -infodir | --infodir | --infodi | --infod | --info | --inf)
1092    ac_prev=infodir ;;
1093  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094    infodir=$ac_optarg ;;
1095
1096  -libdir | --libdir | --libdi | --libd)
1097    ac_prev=libdir ;;
1098  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099    libdir=$ac_optarg ;;
1100
1101  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102  | --libexe | --libex | --libe)
1103    ac_prev=libexecdir ;;
1104  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105  | --libexe=* | --libex=* | --libe=*)
1106    libexecdir=$ac_optarg ;;
1107
1108  -localedir | --localedir | --localedi | --localed | --locale)
1109    ac_prev=localedir ;;
1110  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111    localedir=$ac_optarg ;;
1112
1113  -localstatedir | --localstatedir | --localstatedi | --localstated \
1114  | --localstate | --localstat | --localsta | --localst | --locals)
1115    ac_prev=localstatedir ;;
1116  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118    localstatedir=$ac_optarg ;;
1119
1120  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121    ac_prev=mandir ;;
1122  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123    mandir=$ac_optarg ;;
1124
1125  -nfp | --nfp | --nf)
1126    # Obsolete; use --without-fp.
1127    with_fp=no ;;
1128
1129  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130  | --no-cr | --no-c | -n)
1131    no_create=yes ;;
1132
1133  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135    no_recursion=yes ;;
1136
1137  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139  | --oldin | --oldi | --old | --ol | --o)
1140    ac_prev=oldincludedir ;;
1141  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144    oldincludedir=$ac_optarg ;;
1145
1146  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147    ac_prev=prefix ;;
1148  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149    prefix=$ac_optarg ;;
1150
1151  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152  | --program-pre | --program-pr | --program-p)
1153    ac_prev=program_prefix ;;
1154  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156    program_prefix=$ac_optarg ;;
1157
1158  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159  | --program-suf | --program-su | --program-s)
1160    ac_prev=program_suffix ;;
1161  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163    program_suffix=$ac_optarg ;;
1164
1165  -program-transform-name | --program-transform-name \
1166  | --program-transform-nam | --program-transform-na \
1167  | --program-transform-n | --program-transform- \
1168  | --program-transform | --program-transfor \
1169  | --program-transfo | --program-transf \
1170  | --program-trans | --program-tran \
1171  | --progr-tra | --program-tr | --program-t)
1172    ac_prev=program_transform_name ;;
1173  -program-transform-name=* | --program-transform-name=* \
1174  | --program-transform-nam=* | --program-transform-na=* \
1175  | --program-transform-n=* | --program-transform-=* \
1176  | --program-transform=* | --program-transfor=* \
1177  | --program-transfo=* | --program-transf=* \
1178  | --program-trans=* | --program-tran=* \
1179  | --progr-tra=* | --program-tr=* | --program-t=*)
1180    program_transform_name=$ac_optarg ;;
1181
1182  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183    ac_prev=pdfdir ;;
1184  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185    pdfdir=$ac_optarg ;;
1186
1187  -psdir | --psdir | --psdi | --psd | --ps)
1188    ac_prev=psdir ;;
1189  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190    psdir=$ac_optarg ;;
1191
1192  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193  | -silent | --silent | --silen | --sile | --sil)
1194    silent=yes ;;
1195
1196  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197    ac_prev=sbindir ;;
1198  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199  | --sbi=* | --sb=*)
1200    sbindir=$ac_optarg ;;
1201
1202  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204  | --sharedst | --shareds | --shared | --share | --shar \
1205  | --sha | --sh)
1206    ac_prev=sharedstatedir ;;
1207  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210  | --sha=* | --sh=*)
1211    sharedstatedir=$ac_optarg ;;
1212
1213  -site | --site | --sit)
1214    ac_prev=site ;;
1215  -site=* | --site=* | --sit=*)
1216    site=$ac_optarg ;;
1217
1218  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219    ac_prev=srcdir ;;
1220  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221    srcdir=$ac_optarg ;;
1222
1223  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224  | --syscon | --sysco | --sysc | --sys | --sy)
1225    ac_prev=sysconfdir ;;
1226  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228    sysconfdir=$ac_optarg ;;
1229
1230  -target | --target | --targe | --targ | --tar | --ta | --t)
1231    ac_prev=target_alias ;;
1232  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233    target_alias=$ac_optarg ;;
1234
1235  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236    verbose=yes ;;
1237
1238  -version | --version | --versio | --versi | --vers | -V)
1239    ac_init_version=: ;;
1240
1241  -with-* | --with-*)
1242    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      { echo "$as_me: error: invalid package name: $ac_package" >&2
1246   { (exit 1); exit 1; }; }
1247    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248    eval with_$ac_package=\$ac_optarg ;;
1249
1250  -without-* | --without-*)
1251    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254      { echo "$as_me: error: invalid package name: $ac_package" >&2
1255   { (exit 1); exit 1; }; }
1256    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257    eval with_$ac_package=no ;;
1258
1259  --x)
1260    # Obsolete; use --with-x.
1261    with_x=yes ;;
1262
1263  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264  | --x-incl | --x-inc | --x-in | --x-i)
1265    ac_prev=x_includes ;;
1266  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268    x_includes=$ac_optarg ;;
1269
1270  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272    ac_prev=x_libraries ;;
1273  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275    x_libraries=$ac_optarg ;;
1276
1277  -*) { echo "$as_me: error: unrecognized option: $ac_option
1278Try \`$0 --help' for more information." >&2
1279   { (exit 1); exit 1; }; }
1280    ;;
1281
1282  *=*)
1283    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1286      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1287   { (exit 1); exit 1; }; }
1288    eval $ac_envvar=\$ac_optarg
1289    export $ac_envvar ;;
1290
1291  *)
1292    # FIXME: should be removed in autoconf 3.0.
1293    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297    ;;
1298
1299  esac
1300done
1301
1302if test -n "$ac_prev"; then
1303  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304  { echo "$as_me: error: missing argument to $ac_option" >&2
1305   { (exit 1); exit 1; }; }
1306fi
1307
1308# Be sure to have absolute directory names.
1309for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310		datadir sysconfdir sharedstatedir localstatedir includedir \
1311		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312		libdir localedir mandir
1313do
1314  eval ac_val=\$$ac_var
1315  case $ac_val in
1316    [\\/$]* | ?:[\\/]* )  continue;;
1317    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318  esac
1319  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1320   { (exit 1); exit 1; }; }
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332  if test "x$build_alias" = x; then
1333    cross_compiling=maybe
1334    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335    If a cross compiler is detected then cross compile mode will be used." >&2
1336  elif test "x$build_alias" != "x$host_alias"; then
1337    cross_compiling=yes
1338  fi
1339fi
1340
1341ac_tool_prefix=
1342test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344test "$silent" = yes && exec 6>/dev/null
1345
1346
1347ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348ac_ls_di=`ls -di .` &&
1349ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350  { echo "$as_me: error: Working directory cannot be determined" >&2
1351   { (exit 1); exit 1; }; }
1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353  { echo "$as_me: error: pwd does not report name of working directory" >&2
1354   { (exit 1); exit 1; }; }
1355
1356
1357# Find the source files, if location was not specified.
1358if test -z "$srcdir"; then
1359  ac_srcdir_defaulted=yes
1360  # Try the directory containing this script, then the parent directory.
1361  ac_confdir=`$as_dirname -- "$0" ||
1362$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363	 X"$0" : 'X\(//\)[^/]' \| \
1364	 X"$0" : 'X\(//\)$' \| \
1365	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1366echo X"$0" |
1367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)[^/].*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\/\)$/{
1376	    s//\1/
1377	    q
1378	  }
1379	  /^X\(\/\).*/{
1380	    s//\1/
1381	    q
1382	  }
1383	  s/.*/./; q'`
1384  srcdir=$ac_confdir
1385  if test ! -r "$srcdir/$ac_unique_file"; then
1386    srcdir=..
1387  fi
1388else
1389  ac_srcdir_defaulted=no
1390fi
1391if test ! -r "$srcdir/$ac_unique_file"; then
1392  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394   { (exit 1); exit 1; }; }
1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
1398	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1399   { (exit 1); exit 1; }; }
1400	pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403  srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
1411for ac_var in $ac_precious_vars; do
1412  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413  eval ac_env_${ac_var}_value=\$${ac_var}
1414  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422  # Omit some internal or obsolete options to make the list less imposing.
1423  # This message is too long to be a string in the A/UX 3.1 sh.
1424  cat <<_ACEOF
1425\`configure' configures xf86-video-cirrus 1.3.0 to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435  -h, --help              display this help and exit
1436      --help=short        display options specific to this package
1437      --help=recursive    display the short help of all the included packages
1438  -V, --version           display version information and exit
1439  -q, --quiet, --silent   do not print \`checking...' messages
1440      --cache-file=FILE   cache test results in FILE [disabled]
1441  -C, --config-cache      alias for \`--cache-file=config.cache'
1442  -n, --no-create         do not create output files
1443      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445Installation directories:
1446  --prefix=PREFIX         install architecture-independent files in PREFIX
1447			  [$ac_default_prefix]
1448  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449			  [PREFIX]
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
1459  --bindir=DIR           user executables [EPREFIX/bin]
1460  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1461  --libexecdir=DIR       program executables [EPREFIX/libexec]
1462  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1463  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1464  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1465  --libdir=DIR           object code libraries [EPREFIX/lib]
1466  --includedir=DIR       C header files [PREFIX/include]
1467  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1468  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1469  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1470  --infodir=DIR          info documentation [DATAROOTDIR/info]
1471  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1472  --mandir=DIR           man documentation [DATAROOTDIR/man]
1473  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-video-cirrus]
1474  --htmldir=DIR          html documentation [DOCDIR]
1475  --dvidir=DIR           dvi documentation [DOCDIR]
1476  --pdfdir=DIR           pdf documentation [DOCDIR]
1477  --psdir=DIR            ps documentation [DOCDIR]
1478_ACEOF
1479
1480  cat <<\_ACEOF
1481
1482Program names:
1483  --program-prefix=PREFIX            prepend PREFIX to installed program names
1484  --program-suffix=SUFFIX            append SUFFIX to installed program names
1485  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487System types:
1488  --build=BUILD     configure for building on BUILD [guessed]
1489  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490_ACEOF
1491fi
1492
1493if test -n "$ac_init_help"; then
1494  case $ac_init_help in
1495     short | recursive ) echo "Configuration of xf86-video-cirrus 1.3.0:";;
1496   esac
1497  cat <<\_ACEOF
1498
1499Optional Features:
1500  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502  --enable-maintainer-mode  enable make rules and dependencies not useful
1503			  (and sometimes confusing) to the casual installer
1504  --enable-static[=PKGS]  build static libraries [default=no]
1505  --enable-shared[=PKGS]  build shared libraries [default=yes]
1506  --enable-fast-install[=PKGS]
1507                          optimize for fast installation [default=yes]
1508  --disable-dependency-tracking  speeds up one-time build
1509  --enable-dependency-tracking   do not reject slow dependency extractors
1510  --disable-libtool-lock  avoid locking (might break parallel builds)
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1516  --with-pic              try to use only PIC/non-PIC objects [default=use
1517                          both]
1518  --with-tags[=TAGS]      include additional configurations [automatic]
1519  --with-xorg-module-dir=DIR
1520                          Default xorg module directory
1521                          [default=$libdir/xorg/modules]
1522  --with-release-version=STRING
1523                          Use release version string in package name
1524
1525Some influential environment variables:
1526  CC          C compiler command
1527  CFLAGS      C compiler flags
1528  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529              nonstandard directory <lib dir>
1530  LIBS        libraries to pass to the linker, e.g. -l<library>
1531  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532              you have headers in a nonstandard directory <include dir>
1533  CPP         C preprocessor
1534  CXX         C++ compiler command
1535  CXXFLAGS    C++ compiler flags
1536  CXXCPP      C++ preprocessor
1537  F77         Fortran 77 compiler command
1538  FFLAGS      Fortran 77 compiler flags
1539  PKG_CONFIG  path to pkg-config utility
1540  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1541  XORG_LIBS   linker flags for XORG, overriding pkg-config
1542  PCIACCESS_CFLAGS
1543              C compiler flags for PCIACCESS, overriding pkg-config
1544  PCIACCESS_LIBS
1545              linker flags for PCIACCESS, overriding pkg-config
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556  # If there are subdirs, report their specific --help.
1557  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558    test -d "$ac_dir" || continue
1559    ac_builddir=.
1560
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565  # A ".." for each directory in $ac_dir_suffix.
1566  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567  case $ac_top_builddir_sub in
1568  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570  esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
1576
1577case $srcdir in
1578  .)  # We are building in place.
1579    ac_srcdir=.
1580    ac_top_srcdir=$ac_top_builddir_sub
1581    ac_abs_top_srcdir=$ac_pwd ;;
1582  [\\/]* | ?:[\\/]* )  # Absolute name.
1583    ac_srcdir=$srcdir$ac_dir_suffix;
1584    ac_top_srcdir=$srcdir
1585    ac_abs_top_srcdir=$srcdir ;;
1586  *) # Relative name.
1587    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588    ac_top_srcdir=$ac_top_build_prefix$srcdir
1589    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590esac
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593    cd "$ac_dir" || { ac_status=$?; continue; }
1594    # Check for guested configure.
1595    if test -f "$ac_srcdir/configure.gnu"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598    elif test -f "$ac_srcdir/configure"; then
1599      echo &&
1600      $SHELL "$ac_srcdir/configure" --help=recursive
1601    else
1602      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603    fi || ac_status=$?
1604    cd "$ac_pwd" || { ac_status=$?; break; }
1605  done
1606fi
1607
1608test -n "$ac_init_help" && exit $ac_status
1609if $ac_init_version; then
1610  cat <<\_ACEOF
1611xf86-video-cirrus configure 1.3.0
1612generated by GNU Autoconf 2.61
1613
1614Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621cat >config.log <<_ACEOF
1622This file contains any messages produced by compilers while
1623running configure, to aid debugging if configure makes a mistake.
1624
1625It was created by xf86-video-cirrus $as_me 1.3.0, which was
1626generated by GNU Autoconf 2.61.  Invocation command line was
1627
1628  $ $0 $@
1629
1630_ACEOF
1631exec 5>>config.log
1632{
1633cat <<_ASUNAME
1634## --------- ##
1635## Platform. ##
1636## --------- ##
1637
1638hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1646
1647/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1648/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1649/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1651/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1652/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1653/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1654
1655_ASUNAME
1656
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  echo "PATH: $as_dir"
1663done
1664IFS=$as_save_IFS
1665
1666} >&5
1667
1668cat >&5 <<_ACEOF
1669
1670
1671## ----------- ##
1672## Core tests. ##
1673## ----------- ##
1674
1675_ACEOF
1676
1677
1678# Keep a trace of the command line.
1679# Strip out --no-create and --no-recursion so they do not pile up.
1680# Strip out --silent because we don't want to record it for future runs.
1681# Also quote any args containing shell meta-characters.
1682# Make two passes to allow for proper duplicate-argument suppression.
1683ac_configure_args=
1684ac_configure_args0=
1685ac_configure_args1=
1686ac_must_keep_next=false
1687for ac_pass in 1 2
1688do
1689  for ac_arg
1690  do
1691    case $ac_arg in
1692    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694    | -silent | --silent | --silen | --sile | --sil)
1695      continue ;;
1696    *\'*)
1697      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698    esac
1699    case $ac_pass in
1700    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701    2)
1702      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703      if test $ac_must_keep_next = true; then
1704	ac_must_keep_next=false # Got value, back to normal.
1705      else
1706	case $ac_arg in
1707	  *=* | --config-cache | -C | -disable-* | --disable-* \
1708	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710	  | -with-* | --with-* | -without-* | --without-* | --x)
1711	    case "$ac_configure_args0 " in
1712	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713	    esac
1714	    ;;
1715	  -* ) ac_must_keep_next=true ;;
1716	esac
1717      fi
1718      ac_configure_args="$ac_configure_args '$ac_arg'"
1719      ;;
1720    esac
1721  done
1722done
1723$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726# When interrupted or exit'd, cleanup temporary files, and complete
1727# config.log.  We remove comments because anyway the quotes in there
1728# would cause problems or look ugly.
1729# WARNING: Use '\'' to represent an apostrophe within the trap.
1730# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731trap 'exit_status=$?
1732  # Save into config.log some information that might help in debugging.
1733  {
1734    echo
1735
1736    cat <<\_ASBOX
1737## ---------------- ##
1738## Cache variables. ##
1739## ---------------- ##
1740_ASBOX
1741    echo
1742    # The following way of writing the cache mishandles newlines in values,
1743(
1744  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745    eval ac_val=\$$ac_var
1746    case $ac_val in #(
1747    *${as_nl}*)
1748      case $ac_var in #(
1749      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751      esac
1752      case $ac_var in #(
1753      _ | IFS | as_nl) ;; #(
1754      *) $as_unset $ac_var ;;
1755      esac ;;
1756    esac
1757  done
1758  (set) 2>&1 |
1759    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760    *${as_nl}ac_space=\ *)
1761      sed -n \
1762	"s/'\''/'\''\\\\'\'''\''/g;
1763	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764      ;; #(
1765    *)
1766      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767      ;;
1768    esac |
1769    sort
1770)
1771    echo
1772
1773    cat <<\_ASBOX
1774## ----------------- ##
1775## Output variables. ##
1776## ----------------- ##
1777_ASBOX
1778    echo
1779    for ac_var in $ac_subst_vars
1780    do
1781      eval ac_val=\$$ac_var
1782      case $ac_val in
1783      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784      esac
1785      echo "$ac_var='\''$ac_val'\''"
1786    done | sort
1787    echo
1788
1789    if test -n "$ac_subst_files"; then
1790      cat <<\_ASBOX
1791## ------------------- ##
1792## File substitutions. ##
1793## ------------------- ##
1794_ASBOX
1795      echo
1796      for ac_var in $ac_subst_files
1797      do
1798	eval ac_val=\$$ac_var
1799	case $ac_val in
1800	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801	esac
1802	echo "$ac_var='\''$ac_val'\''"
1803      done | sort
1804      echo
1805    fi
1806
1807    if test -s confdefs.h; then
1808      cat <<\_ASBOX
1809## ----------- ##
1810## confdefs.h. ##
1811## ----------- ##
1812_ASBOX
1813      echo
1814      cat confdefs.h
1815      echo
1816    fi
1817    test "$ac_signal" != 0 &&
1818      echo "$as_me: caught signal $ac_signal"
1819    echo "$as_me: exit $exit_status"
1820  } >&5
1821  rm -f core *.core core.conftest.* &&
1822    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823    exit $exit_status
1824' 0
1825for ac_signal in 1 2 13 15; do
1826  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827done
1828ac_signal=0
1829
1830# confdefs.h avoids OS command line length limits that DEFS can exceed.
1831rm -f -r conftest* confdefs.h
1832
1833# Predefined preprocessor variables.
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_NAME "$PACKAGE_NAME"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_VERSION "$PACKAGE_VERSION"
1847_ACEOF
1848
1849
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_STRING "$PACKAGE_STRING"
1852_ACEOF
1853
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857_ACEOF
1858
1859
1860# Let the site file select an alternate cache file if it wants to.
1861# Prefer explicitly selected file to automatically selected ones.
1862if test -n "$CONFIG_SITE"; then
1863  set x "$CONFIG_SITE"
1864elif test "x$prefix" != xNONE; then
1865  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866else
1867  set x "$ac_default_prefix/share/config.site" \
1868	"$ac_default_prefix/etc/config.site"
1869fi
1870shift
1871for ac_site_file
1872do
1873  if test -r "$ac_site_file"; then
1874    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875echo "$as_me: loading site script $ac_site_file" >&6;}
1876    sed 's/^/| /' "$ac_site_file" >&5
1877    . "$ac_site_file"
1878  fi
1879done
1880
1881if test -r "$cache_file"; then
1882  # Some versions of bash will fail to source /dev/null (special
1883  # files actually), so we avoid doing that.
1884  if test -f "$cache_file"; then
1885    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886echo "$as_me: loading cache $cache_file" >&6;}
1887    case $cache_file in
1888      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889      *)                      . "./$cache_file";;
1890    esac
1891  fi
1892else
1893  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894echo "$as_me: creating cache $cache_file" >&6;}
1895  >$cache_file
1896fi
1897
1898# Check that the precious variables saved in the cache have kept the same
1899# value.
1900ac_cache_corrupted=false
1901for ac_var in $ac_precious_vars; do
1902  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903  eval ac_new_set=\$ac_env_${ac_var}_set
1904  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905  eval ac_new_val=\$ac_env_${ac_var}_value
1906  case $ac_old_set,$ac_new_set in
1907    set,)
1908      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910      ac_cache_corrupted=: ;;
1911    ,set)
1912      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914      ac_cache_corrupted=: ;;
1915    ,);;
1916    *)
1917      if test "x$ac_old_val" != "x$ac_new_val"; then
1918	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1921echo "$as_me:   former value:  $ac_old_val" >&2;}
1922	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1923echo "$as_me:   current value: $ac_new_val" >&2;}
1924	ac_cache_corrupted=:
1925      fi;;
1926  esac
1927  # Pass precious variables to config.status.
1928  if test "$ac_new_set" = set; then
1929    case $ac_new_val in
1930    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931    *) ac_arg=$ac_var=$ac_new_val ;;
1932    esac
1933    case " $ac_configure_args " in
1934      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936    esac
1937  fi
1938done
1939if $ac_cache_corrupted; then
1940  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944   { (exit 1); exit 1; }; }
1945fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978
1979
1980ac_config_headers="$ac_config_headers config.h"
1981
1982ac_aux_dir=
1983for ac_dir in . "$srcdir"/.; do
1984  if test -f "$ac_dir/install-sh"; then
1985    ac_aux_dir=$ac_dir
1986    ac_install_sh="$ac_aux_dir/install-sh -c"
1987    break
1988  elif test -f "$ac_dir/install.sh"; then
1989    ac_aux_dir=$ac_dir
1990    ac_install_sh="$ac_aux_dir/install.sh -c"
1991    break
1992  elif test -f "$ac_dir/shtool"; then
1993    ac_aux_dir=$ac_dir
1994    ac_install_sh="$ac_aux_dir/shtool install -c"
1995    break
1996  fi
1997done
1998if test -z "$ac_aux_dir"; then
1999  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2000echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2001   { (exit 1); exit 1; }; }
2002fi
2003
2004# These three variables are undocumented and unsupported,
2005# and are intended to be withdrawn in a future Autoconf release.
2006# They can cause serious problems if a builder's source tree is in a directory
2007# whose full name contains unusual characters.
2008ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2009ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2010ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2011
2012
2013
2014am__api_version='1.10'
2015
2016# Find a good install program.  We prefer a C program (faster),
2017# so one script is as good as another.  But avoid the broken or
2018# incompatible versions:
2019# SysV /etc/install, /usr/sbin/install
2020# SunOS /usr/etc/install
2021# IRIX /sbin/install
2022# AIX /bin/install
2023# AmigaOS /C/install, which installs bootblocks on floppy discs
2024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2027# OS/2's system install, which has a completely different semantic
2028# ./install, which can be erroneously created by make from ./install.sh.
2029{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2030echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2031if test -z "$INSTALL"; then
2032if test "${ac_cv_path_install+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040  # Account for people who put trailing slashes in PATH elements.
2041case $as_dir/ in
2042  ./ | .// | /cC/* | \
2043  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2044  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2045  /usr/ucb/* ) ;;
2046  *)
2047    # OSF1 and SCO ODT 3.0 have their own names for install.
2048    # Don't use installbsd from OSF since it installs stuff as root
2049    # by default.
2050    for ac_prog in ginstall scoinst install; do
2051      for ac_exec_ext in '' $ac_executable_extensions; do
2052	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2053	  if test $ac_prog = install &&
2054	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055	    # AIX install.  It has an incompatible calling convention.
2056	    :
2057	  elif test $ac_prog = install &&
2058	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2059	    # program-specific install script used by HP pwplus--don't use.
2060	    :
2061	  else
2062	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2063	    break 3
2064	  fi
2065	fi
2066      done
2067    done
2068    ;;
2069esac
2070done
2071IFS=$as_save_IFS
2072
2073
2074fi
2075  if test "${ac_cv_path_install+set}" = set; then
2076    INSTALL=$ac_cv_path_install
2077  else
2078    # As a last resort, use the slow shell script.  Don't cache a
2079    # value for INSTALL within a source directory, because that will
2080    # break other packages using the cache if that directory is
2081    # removed, or if the value is a relative name.
2082    INSTALL=$ac_install_sh
2083  fi
2084fi
2085{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2086echo "${ECHO_T}$INSTALL" >&6; }
2087
2088# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089# It thinks the first close brace ends the variable substitution.
2090test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2091
2092test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2093
2094test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2095
2096{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2097echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2098# Just in case
2099sleep 1
2100echo timestamp > conftest.file
2101# Do `set' in a subshell so we don't clobber the current shell's
2102# arguments.  Must try -L first in case configure is actually a
2103# symlink; some systems play weird games with the mod time of symlinks
2104# (eg FreeBSD returns the mod time of the symlink's containing
2105# directory).
2106if (
2107   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2108   if test "$*" = "X"; then
2109      # -L didn't work.
2110      set X `ls -t $srcdir/configure conftest.file`
2111   fi
2112   rm -f conftest.file
2113   if test "$*" != "X $srcdir/configure conftest.file" \
2114      && test "$*" != "X conftest.file $srcdir/configure"; then
2115
2116      # If neither matched, then we have a broken ls.  This can happen
2117      # if, for instance, CONFIG_SHELL is bash and it inherits a
2118      # broken ls alias from the environment.  This has actually
2119      # happened.  Such a system could not be considered "sane".
2120      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2121alias in your environment" >&5
2122echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2123alias in your environment" >&2;}
2124   { (exit 1); exit 1; }; }
2125   fi
2126
2127   test "$2" = conftest.file
2128   )
2129then
2130   # Ok.
2131   :
2132else
2133   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2134Check your system clock" >&5
2135echo "$as_me: error: newly created file is older than distributed files!
2136Check your system clock" >&2;}
2137   { (exit 1); exit 1; }; }
2138fi
2139{ echo "$as_me:$LINENO: result: yes" >&5
2140echo "${ECHO_T}yes" >&6; }
2141test "$program_prefix" != NONE &&
2142  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2143# Use a double $ so make ignores it.
2144test "$program_suffix" != NONE &&
2145  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2146# Double any \ or $.  echo might interpret backslashes.
2147# By default was `s,x,x', remove it if useless.
2148cat <<\_ACEOF >conftest.sed
2149s/[\\$]/&&/g;s/;s,x,x,$//
2150_ACEOF
2151program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2152rm -f conftest.sed
2153
2154# expand $ac_aux_dir to an absolute path
2155am_aux_dir=`cd $ac_aux_dir && pwd`
2156
2157test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2158# Use eval to expand $SHELL
2159if eval "$MISSING --run true"; then
2160  am_missing_run="$MISSING --run "
2161else
2162  am_missing_run=
2163  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2164echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2165fi
2166
2167{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2168echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2169if test -z "$MKDIR_P"; then
2170  if test "${ac_cv_path_mkdir+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178  for ac_prog in mkdir gmkdir; do
2179	 for ac_exec_ext in '' $ac_executable_extensions; do
2180	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2181	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2182	     'mkdir (GNU coreutils) '* | \
2183	     'mkdir (coreutils) '* | \
2184	     'mkdir (fileutils) '4.1*)
2185	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2186	       break 3;;
2187	   esac
2188	 done
2189       done
2190done
2191IFS=$as_save_IFS
2192
2193fi
2194
2195  if test "${ac_cv_path_mkdir+set}" = set; then
2196    MKDIR_P="$ac_cv_path_mkdir -p"
2197  else
2198    # As a last resort, use the slow shell script.  Don't cache a
2199    # value for MKDIR_P within a source directory, because that will
2200    # break other packages using the cache if that directory is
2201    # removed, or if the value is a relative name.
2202    test -d ./--version && rmdir ./--version
2203    MKDIR_P="$ac_install_sh -d"
2204  fi
2205fi
2206{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2207echo "${ECHO_T}$MKDIR_P" >&6; }
2208
2209mkdir_p="$MKDIR_P"
2210case $mkdir_p in
2211  [\\/$]* | ?:[\\/]*) ;;
2212  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2213esac
2214
2215for ac_prog in gawk mawk nawk awk
2216do
2217  # Extract the first word of "$ac_prog", so it can be a program name with args.
2218set dummy $ac_prog; ac_word=$2
2219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221if test "${ac_cv_prog_AWK+set}" = set; then
2222  echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224  if test -n "$AWK"; then
2225  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2226else
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232  for ac_exec_ext in '' $ac_executable_extensions; do
2233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234    ac_cv_prog_AWK="$ac_prog"
2235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236    break 2
2237  fi
2238done
2239done
2240IFS=$as_save_IFS
2241
2242fi
2243fi
2244AWK=$ac_cv_prog_AWK
2245if test -n "$AWK"; then
2246  { echo "$as_me:$LINENO: result: $AWK" >&5
2247echo "${ECHO_T}$AWK" >&6; }
2248else
2249  { echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6; }
2251fi
2252
2253
2254  test -n "$AWK" && break
2255done
2256
2257{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2258echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2259set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2260if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2261  echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263  cat >conftest.make <<\_ACEOF
2264SHELL = /bin/sh
2265all:
2266	@echo '@@@%%%=$(MAKE)=@@@%%%'
2267_ACEOF
2268# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2269case `${MAKE-make} -f conftest.make 2>/dev/null` in
2270  *@@@%%%=?*=@@@%%%*)
2271    eval ac_cv_prog_make_${ac_make}_set=yes;;
2272  *)
2273    eval ac_cv_prog_make_${ac_make}_set=no;;
2274esac
2275rm -f conftest.make
2276fi
2277if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2278  { echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6; }
2280  SET_MAKE=
2281else
2282  { echo "$as_me:$LINENO: result: no" >&5
2283echo "${ECHO_T}no" >&6; }
2284  SET_MAKE="MAKE=${MAKE-make}"
2285fi
2286
2287rm -rf .tst 2>/dev/null
2288mkdir .tst 2>/dev/null
2289if test -d .tst; then
2290  am__leading_dot=.
2291else
2292  am__leading_dot=_
2293fi
2294rmdir .tst 2>/dev/null
2295
2296if test "`cd $srcdir && pwd`" != "`pwd`"; then
2297  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2298  # is not polluted with repeated "-I."
2299  am__isrc=' -I$(srcdir)'
2300  # test to see if srcdir already configured
2301  if test -f $srcdir/config.status; then
2302    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2303echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2304   { (exit 1); exit 1; }; }
2305  fi
2306fi
2307
2308# test whether we have cygpath
2309if test -z "$CYGPATH_W"; then
2310  if (cygpath --version) >/dev/null 2>/dev/null; then
2311    CYGPATH_W='cygpath -w'
2312  else
2313    CYGPATH_W=echo
2314  fi
2315fi
2316
2317
2318# Define the identity of the package.
2319 PACKAGE='xf86-video-cirrus'
2320 VERSION='1.3.0'
2321
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE "$PACKAGE"
2325_ACEOF
2326
2327
2328cat >>confdefs.h <<_ACEOF
2329#define VERSION "$VERSION"
2330_ACEOF
2331
2332# Some tools Automake needs.
2333
2334ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2335
2336
2337AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2338
2339
2340AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2341
2342
2343AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2344
2345
2346MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2347
2348install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2349
2350# Installed binaries are usually stripped using `strip' when the user
2351# run `make install-strip'.  However `strip' might not be the right
2352# tool to use in cross-compilation environments, therefore Automake
2353# will honor the `STRIP' environment variable to overrule this program.
2354if test "$cross_compiling" != no; then
2355  if test -n "$ac_tool_prefix"; then
2356  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2357set dummy ${ac_tool_prefix}strip; ac_word=$2
2358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360if test "${ac_cv_prog_STRIP+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  if test -n "$STRIP"; then
2364  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369  IFS=$as_save_IFS
2370  test -z "$as_dir" && as_dir=.
2371  for ac_exec_ext in '' $ac_executable_extensions; do
2372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375    break 2
2376  fi
2377done
2378done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383STRIP=$ac_cv_prog_STRIP
2384if test -n "$STRIP"; then
2385  { echo "$as_me:$LINENO: result: $STRIP" >&5
2386echo "${ECHO_T}$STRIP" >&6; }
2387else
2388  { echo "$as_me:$LINENO: result: no" >&5
2389echo "${ECHO_T}no" >&6; }
2390fi
2391
2392
2393fi
2394if test -z "$ac_cv_prog_STRIP"; then
2395  ac_ct_STRIP=$STRIP
2396  # Extract the first word of "strip", so it can be a program name with args.
2397set dummy strip; ac_word=$2
2398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2401  echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403  if test -n "$ac_ct_STRIP"; then
2404  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411  for ac_exec_ext in '' $ac_executable_extensions; do
2412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413    ac_cv_prog_ac_ct_STRIP="strip"
2414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415    break 2
2416  fi
2417done
2418done
2419IFS=$as_save_IFS
2420
2421fi
2422fi
2423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2424if test -n "$ac_ct_STRIP"; then
2425  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2426echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2427else
2428  { echo "$as_me:$LINENO: result: no" >&5
2429echo "${ECHO_T}no" >&6; }
2430fi
2431
2432  if test "x$ac_ct_STRIP" = x; then
2433    STRIP=":"
2434  else
2435    case $cross_compiling:$ac_tool_warned in
2436yes:)
2437{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438whose name does not start with the host triplet.  If you think this
2439configuration is useful to you, please write to autoconf@gnu.org." >&5
2440echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441whose name does not start with the host triplet.  If you think this
2442configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443ac_tool_warned=yes ;;
2444esac
2445    STRIP=$ac_ct_STRIP
2446  fi
2447else
2448  STRIP="$ac_cv_prog_STRIP"
2449fi
2450
2451fi
2452INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453
2454# We need awk for the "check" target.  The system "awk" is bad on
2455# some platforms.
2456# Always define AMTAR for backward compatibility.
2457
2458AMTAR=${AMTAR-"${am_missing_run}tar"}
2459
2460am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2461
2462
2463
2464
2465
2466
2467{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2468echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2469    # Check whether --enable-maintainer-mode was given.
2470if test "${enable_maintainer_mode+set}" = set; then
2471  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2472else
2473  USE_MAINTAINER_MODE=no
2474fi
2475
2476  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2477echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2478   if test $USE_MAINTAINER_MODE = yes; then
2479  MAINTAINER_MODE_TRUE=
2480  MAINTAINER_MODE_FALSE='#'
2481else
2482  MAINTAINER_MODE_TRUE='#'
2483  MAINTAINER_MODE_FALSE=
2484fi
2485
2486  MAINT=$MAINTAINER_MODE_TRUE
2487
2488
2489
2490# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503# Checks for programs.
2504# Check whether --enable-static was given.
2505if test "${enable_static+set}" = set; then
2506  enableval=$enable_static; p=${PACKAGE-default}
2507    case $enableval in
2508    yes) enable_static=yes ;;
2509    no) enable_static=no ;;
2510    *)
2511     enable_static=no
2512      # Look at the argument we got.  We use all the common list separators.
2513      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2514      for pkg in $enableval; do
2515	IFS="$lt_save_ifs"
2516	if test "X$pkg" = "X$p"; then
2517	  enable_static=yes
2518	fi
2519      done
2520      IFS="$lt_save_ifs"
2521      ;;
2522    esac
2523else
2524  enable_static=no
2525fi
2526
2527
2528
2529# Check whether --enable-shared was given.
2530if test "${enable_shared+set}" = set; then
2531  enableval=$enable_shared; p=${PACKAGE-default}
2532    case $enableval in
2533    yes) enable_shared=yes ;;
2534    no) enable_shared=no ;;
2535    *)
2536      enable_shared=no
2537      # Look at the argument we got.  We use all the common list separators.
2538      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2539      for pkg in $enableval; do
2540	IFS="$lt_save_ifs"
2541	if test "X$pkg" = "X$p"; then
2542	  enable_shared=yes
2543	fi
2544      done
2545      IFS="$lt_save_ifs"
2546      ;;
2547    esac
2548else
2549  enable_shared=yes
2550fi
2551
2552
2553# Check whether --enable-fast-install was given.
2554if test "${enable_fast_install+set}" = set; then
2555  enableval=$enable_fast_install; p=${PACKAGE-default}
2556    case $enableval in
2557    yes) enable_fast_install=yes ;;
2558    no) enable_fast_install=no ;;
2559    *)
2560      enable_fast_install=no
2561      # Look at the argument we got.  We use all the common list separators.
2562      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2563      for pkg in $enableval; do
2564	IFS="$lt_save_ifs"
2565	if test "X$pkg" = "X$p"; then
2566	  enable_fast_install=yes
2567	fi
2568      done
2569      IFS="$lt_save_ifs"
2570      ;;
2571    esac
2572else
2573  enable_fast_install=yes
2574fi
2575
2576
2577# Make sure we can run config.sub.
2578$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2579  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2580echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2581   { (exit 1); exit 1; }; }
2582
2583{ echo "$as_me:$LINENO: checking build system type" >&5
2584echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2585if test "${ac_cv_build+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  ac_build_alias=$build_alias
2589test "x$ac_build_alias" = x &&
2590  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2591test "x$ac_build_alias" = x &&
2592  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2593echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2594   { (exit 1); exit 1; }; }
2595ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2597echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2598   { (exit 1); exit 1; }; }
2599
2600fi
2601{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2602echo "${ECHO_T}$ac_cv_build" >&6; }
2603case $ac_cv_build in
2604*-*-*) ;;
2605*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2606echo "$as_me: error: invalid value of canonical build" >&2;}
2607   { (exit 1); exit 1; }; };;
2608esac
2609build=$ac_cv_build
2610ac_save_IFS=$IFS; IFS='-'
2611set x $ac_cv_build
2612shift
2613build_cpu=$1
2614build_vendor=$2
2615shift; shift
2616# Remember, the first character of IFS is used to create $*,
2617# except with old shells:
2618build_os=$*
2619IFS=$ac_save_IFS
2620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623{ echo "$as_me:$LINENO: checking host system type" >&5
2624echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2625if test "${ac_cv_host+set}" = set; then
2626  echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628  if test "x$host_alias" = x; then
2629  ac_cv_host=$ac_cv_build
2630else
2631  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2633echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2634   { (exit 1); exit 1; }; }
2635fi
2636
2637fi
2638{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2639echo "${ECHO_T}$ac_cv_host" >&6; }
2640case $ac_cv_host in
2641*-*-*) ;;
2642*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2643echo "$as_me: error: invalid value of canonical host" >&2;}
2644   { (exit 1); exit 1; }; };;
2645esac
2646host=$ac_cv_host
2647ac_save_IFS=$IFS; IFS='-'
2648set x $ac_cv_host
2649shift
2650host_cpu=$1
2651host_vendor=$2
2652shift; shift
2653# Remember, the first character of IFS is used to create $*,
2654# except with old shells:
2655host_os=$*
2656IFS=$ac_save_IFS
2657case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2658
2659
2660DEPDIR="${am__leading_dot}deps"
2661
2662ac_config_commands="$ac_config_commands depfiles"
2663
2664
2665am_make=${MAKE-make}
2666cat > confinc << 'END'
2667am__doit:
2668	@echo done
2669.PHONY: am__doit
2670END
2671# If we don't find an include directive, just comment out the code.
2672{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2673echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2674am__include="#"
2675am__quote=
2676_am_result=none
2677# First try GNU make style include.
2678echo "include confinc" > confmf
2679# We grep out `Entering directory' and `Leaving directory'
2680# messages which can occur if `w' ends up in MAKEFLAGS.
2681# In particular we don't look at `^make:' because GNU make might
2682# be invoked under some other name (usually "gmake"), in which
2683# case it prints its new name instead of `make'.
2684if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2685   am__include=include
2686   am__quote=
2687   _am_result=GNU
2688fi
2689# Now try BSD make style include.
2690if test "$am__include" = "#"; then
2691   echo '.include "confinc"' > confmf
2692   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2693      am__include=.include
2694      am__quote="\""
2695      _am_result=BSD
2696   fi
2697fi
2698
2699
2700{ echo "$as_me:$LINENO: result: $_am_result" >&5
2701echo "${ECHO_T}$_am_result" >&6; }
2702rm -f confinc confmf
2703
2704# Check whether --enable-dependency-tracking was given.
2705if test "${enable_dependency_tracking+set}" = set; then
2706  enableval=$enable_dependency_tracking;
2707fi
2708
2709if test "x$enable_dependency_tracking" != xno; then
2710  am_depcomp="$ac_aux_dir/depcomp"
2711  AMDEPBACKSLASH='\'
2712fi
2713 if test "x$enable_dependency_tracking" != xno; then
2714  AMDEP_TRUE=
2715  AMDEP_FALSE='#'
2716else
2717  AMDEP_TRUE='#'
2718  AMDEP_FALSE=
2719fi
2720
2721
2722ac_ext=c
2723ac_cpp='$CPP $CPPFLAGS'
2724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727if test -n "$ac_tool_prefix"; then
2728  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732if test "${ac_cv_prog_CC+set}" = set; then
2733  echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735  if test -n "$CC"; then
2736  ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743  for ac_exec_ext in '' $ac_executable_extensions; do
2744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747    break 2
2748  fi
2749done
2750done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
2757  { echo "$as_me:$LINENO: result: $CC" >&5
2758echo "${ECHO_T}$CC" >&6; }
2759else
2760  { echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6; }
2762fi
2763
2764
2765fi
2766if test -z "$ac_cv_prog_CC"; then
2767  ac_ct_CC=$CC
2768  # Extract the first word of "gcc", so it can be a program name with args.
2769set dummy gcc; ac_word=$2
2770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773  echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775  if test -n "$ac_ct_CC"; then
2776  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783  for ac_exec_ext in '' $ac_executable_extensions; do
2784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785    ac_cv_prog_ac_ct_CC="gcc"
2786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796if test -n "$ac_ct_CC"; then
2797  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798echo "${ECHO_T}$ac_ct_CC" >&6; }
2799else
2800  { echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6; }
2802fi
2803
2804  if test "x$ac_ct_CC" = x; then
2805    CC=""
2806  else
2807    case $cross_compiling:$ac_tool_warned in
2808yes:)
2809{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810whose name does not start with the host triplet.  If you think this
2811configuration is useful to you, please write to autoconf@gnu.org." >&5
2812echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813whose name does not start with the host triplet.  If you think this
2814configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817    CC=$ac_ct_CC
2818  fi
2819else
2820  CC="$ac_cv_prog_CC"
2821fi
2822
2823if test -z "$CC"; then
2824          if test -n "$ac_tool_prefix"; then
2825    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826set dummy ${ac_tool_prefix}cc; ac_word=$2
2827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829if test "${ac_cv_prog_CC+set}" = set; then
2830  echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832  if test -n "$CC"; then
2833  ac_cv_prog_CC="$CC" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840  for ac_exec_ext in '' $ac_executable_extensions; do
2841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842    ac_cv_prog_CC="${ac_tool_prefix}cc"
2843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854  { echo "$as_me:$LINENO: result: $CC" >&5
2855echo "${ECHO_T}$CC" >&6; }
2856else
2857  { echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6; }
2859fi
2860
2861
2862  fi
2863fi
2864if test -z "$CC"; then
2865  # Extract the first word of "cc", so it can be a program name with args.
2866set dummy cc; ac_word=$2
2867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869if test "${ac_cv_prog_CC+set}" = set; then
2870  echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872  if test -n "$CC"; then
2873  ac_cv_prog_CC="$CC" # Let the user override the test.
2874else
2875  ac_prog_rejected=no
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881  for ac_exec_ext in '' $ac_executable_extensions; do
2882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884       ac_prog_rejected=yes
2885       continue
2886     fi
2887    ac_cv_prog_CC="cc"
2888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892done
2893IFS=$as_save_IFS
2894
2895if test $ac_prog_rejected = yes; then
2896  # We found a bogon in the path, so make sure we never use it.
2897  set dummy $ac_cv_prog_CC
2898  shift
2899  if test $# != 0; then
2900    # We chose a different compiler from the bogus one.
2901    # However, it has the same basename, so the bogon will be chosen
2902    # first if we set CC to just the basename; use the full file name.
2903    shift
2904    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905  fi
2906fi
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
2911  { echo "$as_me:$LINENO: result: $CC" >&5
2912echo "${ECHO_T}$CC" >&6; }
2913else
2914  { echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6; }
2916fi
2917
2918
2919fi
2920if test -z "$CC"; then
2921  if test -n "$ac_tool_prefix"; then
2922  for ac_prog in cl.exe
2923  do
2924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928if test "${ac_cv_prog_CC+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  if test -n "$CC"; then
2932  ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  test -z "$as_dir" && as_dir=.
2939  for ac_exec_ext in '' $ac_executable_extensions; do
2940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943    break 2
2944  fi
2945done
2946done
2947IFS=$as_save_IFS
2948
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
2953  { echo "$as_me:$LINENO: result: $CC" >&5
2954echo "${ECHO_T}$CC" >&6; }
2955else
2956  { echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6; }
2958fi
2959
2960
2961    test -n "$CC" && break
2962  done
2963fi
2964if test -z "$CC"; then
2965  ac_ct_CC=$CC
2966  for ac_prog in cl.exe
2967do
2968  # Extract the first word of "$ac_prog", so it can be a program name with args.
2969set dummy $ac_prog; ac_word=$2
2970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973  echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975  if test -n "$ac_ct_CC"; then
2976  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983  for ac_exec_ext in '' $ac_executable_extensions; do
2984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985    ac_cv_prog_ac_ct_CC="$ac_prog"
2986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996if test -n "$ac_ct_CC"; then
2997  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2998echo "${ECHO_T}$ac_ct_CC" >&6; }
2999else
3000  { echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6; }
3002fi
3003
3004
3005  test -n "$ac_ct_CC" && break
3006done
3007
3008  if test "x$ac_ct_CC" = x; then
3009    CC=""
3010  else
3011    case $cross_compiling:$ac_tool_warned in
3012yes:)
3013{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3014whose name does not start with the host triplet.  If you think this
3015configuration is useful to you, please write to autoconf@gnu.org." >&5
3016echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3017whose name does not start with the host triplet.  If you think this
3018configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3019ac_tool_warned=yes ;;
3020esac
3021    CC=$ac_ct_CC
3022  fi
3023fi
3024
3025fi
3026
3027
3028test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: no acceptable C compiler found in \$PATH
3031See \`config.log' for more details." >&2;}
3032   { (exit 1); exit 1; }; }
3033
3034# Provide some information about the compiler.
3035echo "$as_me:$LINENO: checking for C compiler version" >&5
3036ac_compiler=`set X $ac_compile; echo $2`
3037{ (ac_try="$ac_compiler --version >&5"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043  (eval "$ac_compiler --version >&5") 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }
3047{ (ac_try="$ac_compiler -v >&5"
3048case "(($ac_try" in
3049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050  *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053  (eval "$ac_compiler -v >&5") 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }
3057{ (ac_try="$ac_compiler -V >&5"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063  (eval "$ac_compiler -V >&5") 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }
3067
3068cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083ac_clean_files_save=$ac_clean_files
3084ac_clean_files="$ac_clean_files a.out a.exe b.out"
3085# Try to create an executable without -o first, disregard a.out.
3086# It will help us diagnose broken compilers, and finding out an intuition
3087# of exeext.
3088{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3089echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3090ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091#
3092# List of possible output files, starting from the most likely.
3093# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3094# only as a last resort.  b.out is created by i960 compilers.
3095ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3096#
3097# The IRIX 6 linker writes into existing files which may not be
3098# executable, retaining their permissions.  Remove them first so a
3099# subsequent execution test works.
3100ac_rmfiles=
3101for ac_file in $ac_files
3102do
3103  case $ac_file in
3104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3105    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106  esac
3107done
3108rm -f $ac_rmfiles
3109
3110if { (ac_try="$ac_link_default"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116  (eval "$ac_link_default") 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; then
3120  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3123# so that the user can short-circuit this test for compilers unknown to
3124# Autoconf.
3125for ac_file in $ac_files ''
3126do
3127  test -f "$ac_file" || continue
3128  case $ac_file in
3129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3130	;;
3131    [ab].out )
3132	# We found the default executable, but exeext='' is most
3133	# certainly right.
3134	break;;
3135    *.* )
3136        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137	then :; else
3138	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139	fi
3140	# We set ac_cv_exeext here because the later test for it is not
3141	# safe: cross compilers may not add the suffix if given an `-o'
3142	# argument, so we may need to know it at that point already.
3143	# Even if this section looks crufty: it has the advantage of
3144	# actually working.
3145	break;;
3146    * )
3147	break;;
3148  esac
3149done
3150test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152else
3153  ac_file=''
3154fi
3155
3156{ echo "$as_me:$LINENO: result: $ac_file" >&5
3157echo "${ECHO_T}$ac_file" >&6; }
3158if test -z "$ac_file"; then
3159  echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: C compiler cannot create executables
3165See \`config.log' for more details." >&2;}
3166   { (exit 77); exit 77; }; }
3167fi
3168
3169ac_exeext=$ac_cv_exeext
3170
3171# Check that the compiler produces executables we can run.  If not, either
3172# the compiler is broken, or we cross compile.
3173{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3174echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3175# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3176# If not cross compiling, check that we can run a simple program.
3177if test "$cross_compiling" != yes; then
3178  if { ac_try='./$ac_file'
3179  { (case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_try") 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; }; then
3188    cross_compiling=no
3189  else
3190    if test "$cross_compiling" = maybe; then
3191	cross_compiling=yes
3192    else
3193	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3194If you meant to cross compile, use \`--host'.
3195See \`config.log' for more details." >&5
3196echo "$as_me: error: cannot run C compiled programs.
3197If you meant to cross compile, use \`--host'.
3198See \`config.log' for more details." >&2;}
3199   { (exit 1); exit 1; }; }
3200    fi
3201  fi
3202fi
3203{ echo "$as_me:$LINENO: result: yes" >&5
3204echo "${ECHO_T}yes" >&6; }
3205
3206rm -f a.out a.exe conftest$ac_cv_exeext b.out
3207ac_clean_files=$ac_clean_files_save
3208# Check that the compiler produces executables we can run.  If not, either
3209# the compiler is broken, or we cross compile.
3210{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3211echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3212{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3213echo "${ECHO_T}$cross_compiling" >&6; }
3214
3215{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3216echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3217if { (ac_try="$ac_link"
3218case "(($ac_try" in
3219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220  *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223  (eval "$ac_link") 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }; then
3227  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3229# work properly (i.e., refer to `conftest.exe'), while it won't with
3230# `rm'.
3231for ac_file in conftest.exe conftest conftest.*; do
3232  test -f "$ac_file" || continue
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3235    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236	  break;;
3237    * ) break;;
3238  esac
3239done
3240else
3241  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3242See \`config.log' for more details." >&5
3243echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details." >&2;}
3245   { (exit 1); exit 1; }; }
3246fi
3247
3248rm -f conftest$ac_cv_exeext
3249{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3250echo "${ECHO_T}$ac_cv_exeext" >&6; }
3251
3252rm -f conftest.$ac_ext
3253EXEEXT=$ac_cv_exeext
3254ac_exeext=$EXEEXT
3255{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3256echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3257if test "${ac_cv_objext+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h.  */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275rm -f conftest.o conftest.obj
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282  (eval "$ac_compile") 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; then
3286  for ac_file in conftest.o conftest.obj conftest.*; do
3287  test -f "$ac_file" || continue;
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291       break;;
3292  esac
3293done
3294else
3295  echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3299See \`config.log' for more details." >&5
3300echo "$as_me: error: cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details." >&2;}
3302   { (exit 1); exit 1; }; }
3303fi
3304
3305rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306fi
3307{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3308echo "${ECHO_T}$ac_cv_objext" >&6; }
3309OBJEXT=$ac_cv_objext
3310ac_objext=$OBJEXT
3311{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3312echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3313if test "${ac_cv_c_compiler_gnu+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326#ifndef __GNUC__
3327       choke me
3328#endif
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (ac_try="$ac_compile"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341  (eval "$ac_compile") 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } && {
3348	 test -z "$ac_c_werror_flag" ||
3349	 test ! -s conftest.err
3350       } && test -s conftest.$ac_objext; then
3351  ac_compiler_gnu=yes
3352else
3353  echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356	ac_compiler_gnu=no
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361
3362fi
3363{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3365GCC=`test $ac_compiler_gnu = yes && echo yes`
3366ac_test_CFLAGS=${CFLAGS+set}
3367ac_save_CFLAGS=$CFLAGS
3368{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3369echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3370if test "${ac_cv_prog_cc_g+set}" = set; then
3371  echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373  ac_save_c_werror_flag=$ac_c_werror_flag
3374   ac_c_werror_flag=yes
3375   ac_cv_prog_cc_g=no
3376   CFLAGS="-g"
3377   cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h.  */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (ac_try="$ac_compile"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399  (eval "$ac_compile") 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } && {
3406	 test -z "$ac_c_werror_flag" ||
3407	 test ! -s conftest.err
3408       } && test -s conftest.$ac_objext; then
3409  ac_cv_prog_cc_g=yes
3410else
3411  echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414	CFLAGS=""
3415      cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h.  */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (ac_try="$ac_compile"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437  (eval "$ac_compile") 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } && {
3444	 test -z "$ac_c_werror_flag" ||
3445	 test ! -s conftest.err
3446       } && test -s conftest.$ac_objext; then
3447  :
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452	ac_c_werror_flag=$ac_save_c_werror_flag
3453	 CFLAGS="-g"
3454	 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h.  */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h.  */
3460
3461int
3462main ()
3463{
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469rm -f conftest.$ac_objext
3470if { (ac_try="$ac_compile"
3471case "(($ac_try" in
3472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473  *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476  (eval "$ac_compile") 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } && {
3483	 test -z "$ac_c_werror_flag" ||
3484	 test ! -s conftest.err
3485       } && test -s conftest.$ac_objext; then
3486  ac_cv_prog_cc_g=yes
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492fi
3493
3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495fi
3496
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498fi
3499
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501   ac_c_werror_flag=$ac_save_c_werror_flag
3502fi
3503{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3504echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3505if test "$ac_test_CFLAGS" = set; then
3506  CFLAGS=$ac_save_CFLAGS
3507elif test $ac_cv_prog_cc_g = yes; then
3508  if test "$GCC" = yes; then
3509    CFLAGS="-g -O2"
3510  else
3511    CFLAGS="-g"
3512  fi
3513else
3514  if test "$GCC" = yes; then
3515    CFLAGS="-O2"
3516  else
3517    CFLAGS=
3518  fi
3519fi
3520{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3521echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3522if test "${ac_cv_prog_cc_c89+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  ac_cv_prog_cc_c89=no
3526ac_save_CC=$CC
3527cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533#include <stdarg.h>
3534#include <stdio.h>
3535#include <sys/types.h>
3536#include <sys/stat.h>
3537/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3538struct buf { int x; };
3539FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540static char *e (p, i)
3541     char **p;
3542     int i;
3543{
3544  return p[i];
3545}
3546static char *f (char * (*g) (char **, int), char **p, ...)
3547{
3548  char *s;
3549  va_list v;
3550  va_start (v,p);
3551  s = g (p, va_arg (v,int));
3552  va_end (v);
3553  return s;
3554}
3555
3556/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3557   function prototypes and stuff, but not '\xHH' hex character constants.
3558   These don't provoke an error unfortunately, instead are silently treated
3559   as 'x'.  The following induces an error, until -std is added to get
3560   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3561   array size at least.  It's necessary to write '\x00'==0 to get something
3562   that's true only with -std.  */
3563int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564
3565/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566   inside strings and character constants.  */
3567#define FOO(x) 'x'
3568int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569
3570int test (int i, double x);
3571struct s1 {int (*f) (int a);};
3572struct s2 {int (*f) (double a);};
3573int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574int argc;
3575char **argv;
3576int
3577main ()
3578{
3579return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586do
3587  CC="$ac_save_CC $ac_arg"
3588  rm -f conftest.$ac_objext
3589if { (ac_try="$ac_compile"
3590case "(($ac_try" in
3591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592  *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $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  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  ac_cv_prog_cc_c89=$ac_arg
3606else
3607  echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610
3611fi
3612
3613rm -f core conftest.err conftest.$ac_objext
3614  test "x$ac_cv_prog_cc_c89" != "xno" && break
3615done
3616rm -f conftest.$ac_ext
3617CC=$ac_save_CC
3618
3619fi
3620# AC_CACHE_VAL
3621case "x$ac_cv_prog_cc_c89" in
3622  x)
3623    { echo "$as_me:$LINENO: result: none needed" >&5
3624echo "${ECHO_T}none needed" >&6; } ;;
3625  xno)
3626    { echo "$as_me:$LINENO: result: unsupported" >&5
3627echo "${ECHO_T}unsupported" >&6; } ;;
3628  *)
3629    CC="$CC $ac_cv_prog_cc_c89"
3630    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3631echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3632esac
3633
3634
3635ac_ext=c
3636ac_cpp='$CPP $CPPFLAGS'
3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641depcc="$CC"   am_compiler_list=
3642
3643{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3644echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3645if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3646  echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649  # We make a subdir and do the tests there.  Otherwise we can end up
3650  # making bogus files that we don't know about and never remove.  For
3651  # instance it was reported that on HP-UX the gcc test will end up
3652  # making a dummy file named `D' -- because `-MD' means `put the output
3653  # in D'.
3654  mkdir conftest.dir
3655  # Copy depcomp to subdir because otherwise we won't find it if we're
3656  # using a relative directory.
3657  cp "$am_depcomp" conftest.dir
3658  cd conftest.dir
3659  # We will build objects and dependencies in a subdirectory because
3660  # it helps to detect inapplicable dependency modes.  For instance
3661  # both Tru64's cc and ICC support -MD to output dependencies as a
3662  # side effect of compilation, but ICC will put the dependencies in
3663  # the current directory while Tru64 will put them in the object
3664  # directory.
3665  mkdir sub
3666
3667  am_cv_CC_dependencies_compiler_type=none
3668  if test "$am_compiler_list" = ""; then
3669     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3670  fi
3671  for depmode in $am_compiler_list; do
3672    # Setup a source with many dependencies, because some compilers
3673    # like to wrap large dependency lists on column 80 (with \), and
3674    # we should not choose a depcomp mode which is confused by this.
3675    #
3676    # We need to recreate these files for each test, as the compiler may
3677    # overwrite some of them when testing with obscure command lines.
3678    # This happens at least with the AIX C compiler.
3679    : > sub/conftest.c
3680    for i in 1 2 3 4 5 6; do
3681      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3682      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3683      # Solaris 8's {/usr,}/bin/sh.
3684      touch sub/conftst$i.h
3685    done
3686    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3687
3688    case $depmode in
3689    nosideeffect)
3690      # after this tag, mechanisms are not by side-effect, so they'll
3691      # only be used when explicitly requested
3692      if test "x$enable_dependency_tracking" = xyes; then
3693	continue
3694      else
3695	break
3696      fi
3697      ;;
3698    none) break ;;
3699    esac
3700    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701    # mode.  It turns out that the SunPro C++ compiler does not properly
3702    # handle `-M -o', and we need to detect this.
3703    if depmode=$depmode \
3704       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3705       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3707         >/dev/null 2>conftest.err &&
3708       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3709       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3711       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712      # icc doesn't choke on unknown options, it will just issue warnings
3713      # or remarks (even with -Werror).  So we grep stderr for any message
3714      # that says an option was ignored or not supported.
3715      # When given -MP, icc 7.0 and 7.1 complain thusly:
3716      #   icc: Command line warning: ignoring option '-M'; no argument required
3717      # The diagnosis changed in icc 8.0:
3718      #   icc: Command line remark: option '-MP' not supported
3719      if (grep 'ignoring option' conftest.err ||
3720          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721        am_cv_CC_dependencies_compiler_type=$depmode
3722        break
3723      fi
3724    fi
3725  done
3726
3727  cd ..
3728  rm -rf conftest.dir
3729else
3730  am_cv_CC_dependencies_compiler_type=none
3731fi
3732
3733fi
3734{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3735echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3737
3738 if
3739  test "x$enable_dependency_tracking" != xno \
3740  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741  am__fastdepCC_TRUE=
3742  am__fastdepCC_FALSE='#'
3743else
3744  am__fastdepCC_TRUE='#'
3745  am__fastdepCC_FALSE=
3746fi
3747
3748
3749{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3750echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3751if test "${lt_cv_path_SED+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  # Loop through the user's path and test for sed and gsed.
3755# Then use that list of sed's as ones to test for truncation.
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761  for lt_ac_prog in sed gsed; do
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3764        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3765      fi
3766    done
3767  done
3768done
3769lt_ac_max=0
3770lt_ac_count=0
3771# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3772# along with /bin/sed that truncates output.
3773for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3774  test ! -f $lt_ac_sed && continue
3775  cat /dev/null > conftest.in
3776  lt_ac_count=0
3777  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3778  # Check for GNU sed and select it if it is found.
3779  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3780    lt_cv_path_SED=$lt_ac_sed
3781    break
3782  fi
3783  while true; do
3784    cat conftest.in conftest.in >conftest.tmp
3785    mv conftest.tmp conftest.in
3786    cp conftest.in conftest.nl
3787    echo >>conftest.nl
3788    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3789    cmp -s conftest.out conftest.nl || break
3790    # 10000 chars as input seems more than enough
3791    test $lt_ac_count -gt 10 && break
3792    lt_ac_count=`expr $lt_ac_count + 1`
3793    if test $lt_ac_count -gt $lt_ac_max; then
3794      lt_ac_max=$lt_ac_count
3795      lt_cv_path_SED=$lt_ac_sed
3796    fi
3797  done
3798done
3799
3800fi
3801
3802SED=$lt_cv_path_SED
3803{ echo "$as_me:$LINENO: result: $SED" >&5
3804echo "${ECHO_T}$SED" >&6; }
3805
3806{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3807echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3808if test "${ac_cv_path_GREP+set}" = set; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  # Extract the first word of "grep ggrep" to use in msg output
3812if test -z "$GREP"; then
3813set dummy grep ggrep; ac_prog_name=$2
3814if test "${ac_cv_path_GREP+set}" = set; then
3815  echo $ECHO_N "(cached) $ECHO_C" >&6
3816else
3817  ac_path_GREP_found=false
3818# Loop through the user's path and test for each of PROGNAME-LIST
3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821do
3822  IFS=$as_save_IFS
3823  test -z "$as_dir" && as_dir=.
3824  for ac_prog in grep ggrep; do
3825  for ac_exec_ext in '' $ac_executable_extensions; do
3826    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3827    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3828    # Check for GNU ac_path_GREP and select it if it is found.
3829  # Check for GNU $ac_path_GREP
3830case `"$ac_path_GREP" --version 2>&1` in
3831*GNU*)
3832  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3833*)
3834  ac_count=0
3835  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3836  while :
3837  do
3838    cat "conftest.in" "conftest.in" >"conftest.tmp"
3839    mv "conftest.tmp" "conftest.in"
3840    cp "conftest.in" "conftest.nl"
3841    echo 'GREP' >> "conftest.nl"
3842    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3843    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3844    ac_count=`expr $ac_count + 1`
3845    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3846      # Best one so far, save it but keep looking for a better one
3847      ac_cv_path_GREP="$ac_path_GREP"
3848      ac_path_GREP_max=$ac_count
3849    fi
3850    # 10*(2^10) chars as input seems more than enough
3851    test $ac_count -gt 10 && break
3852  done
3853  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854esac
3855
3856
3857    $ac_path_GREP_found && break 3
3858  done
3859done
3860
3861done
3862IFS=$as_save_IFS
3863
3864
3865fi
3866
3867GREP="$ac_cv_path_GREP"
3868if test -z "$GREP"; then
3869  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3870echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3871   { (exit 1); exit 1; }; }
3872fi
3873
3874else
3875  ac_cv_path_GREP=$GREP
3876fi
3877
3878
3879fi
3880{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3881echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3882 GREP="$ac_cv_path_GREP"
3883
3884
3885{ echo "$as_me:$LINENO: checking for egrep" >&5
3886echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3887if test "${ac_cv_path_EGREP+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3891   then ac_cv_path_EGREP="$GREP -E"
3892   else
3893     # Extract the first word of "egrep" to use in msg output
3894if test -z "$EGREP"; then
3895set dummy egrep; ac_prog_name=$2
3896if test "${ac_cv_path_EGREP+set}" = set; then
3897  echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899  ac_path_EGREP_found=false
3900# Loop through the user's path and test for each of PROGNAME-LIST
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906  for ac_prog in egrep; do
3907  for ac_exec_ext in '' $ac_executable_extensions; do
3908    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3909    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3910    # Check for GNU ac_path_EGREP and select it if it is found.
3911  # Check for GNU $ac_path_EGREP
3912case `"$ac_path_EGREP" --version 2>&1` in
3913*GNU*)
3914  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3915*)
3916  ac_count=0
3917  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3918  while :
3919  do
3920    cat "conftest.in" "conftest.in" >"conftest.tmp"
3921    mv "conftest.tmp" "conftest.in"
3922    cp "conftest.in" "conftest.nl"
3923    echo 'EGREP' >> "conftest.nl"
3924    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3926    ac_count=`expr $ac_count + 1`
3927    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3928      # Best one so far, save it but keep looking for a better one
3929      ac_cv_path_EGREP="$ac_path_EGREP"
3930      ac_path_EGREP_max=$ac_count
3931    fi
3932    # 10*(2^10) chars as input seems more than enough
3933    test $ac_count -gt 10 && break
3934  done
3935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936esac
3937
3938
3939    $ac_path_EGREP_found && break 3
3940  done
3941done
3942
3943done
3944IFS=$as_save_IFS
3945
3946
3947fi
3948
3949EGREP="$ac_cv_path_EGREP"
3950if test -z "$EGREP"; then
3951  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953   { (exit 1); exit 1; }; }
3954fi
3955
3956else
3957  ac_cv_path_EGREP=$EGREP
3958fi
3959
3960
3961   fi
3962fi
3963{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3964echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3965 EGREP="$ac_cv_path_EGREP"
3966
3967
3968
3969# Check whether --with-gnu-ld was given.
3970if test "${with_gnu_ld+set}" = set; then
3971  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3972else
3973  with_gnu_ld=no
3974fi
3975
3976ac_prog=ld
3977if test "$GCC" = yes; then
3978  # Check if gcc -print-prog-name=ld gives a path.
3979  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3980echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3981  case $host in
3982  *-*-mingw*)
3983    # gcc leaves a trailing carriage return which upsets mingw
3984    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985  *)
3986    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3987  esac
3988  case $ac_prog in
3989    # Accept absolute paths.
3990    [\\/]* | ?:[\\/]*)
3991      re_direlt='/[^/][^/]*/\.\./'
3992      # Canonicalize the pathname of ld
3993      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3994      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3995	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3996      done
3997      test -z "$LD" && LD="$ac_prog"
3998      ;;
3999  "")
4000    # If it fails, then pretend we aren't using GCC.
4001    ac_prog=ld
4002    ;;
4003  *)
4004    # If it is relative, then search for the first ld in PATH.
4005    with_gnu_ld=unknown
4006    ;;
4007  esac
4008elif test "$with_gnu_ld" = yes; then
4009  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4010echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011else
4012  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4013echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4014fi
4015if test "${lt_cv_path_LD+set}" = set; then
4016  echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018  if test -z "$LD"; then
4019  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020  for ac_dir in $PATH; do
4021    IFS="$lt_save_ifs"
4022    test -z "$ac_dir" && ac_dir=.
4023    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4024      lt_cv_path_LD="$ac_dir/$ac_prog"
4025      # Check to see if the program is GNU ld.  I'd rather use --version,
4026      # but apparently some variants of GNU ld only accept -v.
4027      # Break only if it was the GNU/non-GNU ld that we prefer.
4028      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4029      *GNU* | *'with BFD'*)
4030	test "$with_gnu_ld" != no && break
4031	;;
4032      *)
4033	test "$with_gnu_ld" != yes && break
4034	;;
4035      esac
4036    fi
4037  done
4038  IFS="$lt_save_ifs"
4039else
4040  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4041fi
4042fi
4043
4044LD="$lt_cv_path_LD"
4045if test -n "$LD"; then
4046  { echo "$as_me:$LINENO: result: $LD" >&5
4047echo "${ECHO_T}$LD" >&6; }
4048else
4049  { echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6; }
4051fi
4052test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4053echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4054   { (exit 1); exit 1; }; }
4055{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4056echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4057if test "${lt_cv_prog_gnu_ld+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4061case `$LD -v 2>&1 </dev/null` in
4062*GNU* | *'with BFD'*)
4063  lt_cv_prog_gnu_ld=yes
4064  ;;
4065*)
4066  lt_cv_prog_gnu_ld=no
4067  ;;
4068esac
4069fi
4070{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4071echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4072with_gnu_ld=$lt_cv_prog_gnu_ld
4073
4074
4075{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4077if test "${lt_cv_ld_reload_flag+set}" = set; then
4078  echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080  lt_cv_ld_reload_flag='-r'
4081fi
4082{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4084reload_flag=$lt_cv_ld_reload_flag
4085case $reload_flag in
4086"" | " "*) ;;
4087*) reload_flag=" $reload_flag" ;;
4088esac
4089reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090case $host_os in
4091  darwin*)
4092    if test "$GCC" = yes; then
4093      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094    else
4095      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096    fi
4097    ;;
4098esac
4099
4100{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4101echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4102if test "${lt_cv_path_NM+set}" = set; then
4103  echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105  if test -n "$NM"; then
4106  # Let the user override the test.
4107  lt_cv_path_NM="$NM"
4108else
4109  lt_nm_to_check="${ac_tool_prefix}nm"
4110  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4111    lt_nm_to_check="$lt_nm_to_check nm"
4112  fi
4113  for lt_tmp_nm in $lt_nm_to_check; do
4114    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4116      IFS="$lt_save_ifs"
4117      test -z "$ac_dir" && ac_dir=.
4118      tmp_nm="$ac_dir/$lt_tmp_nm"
4119      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4120	# Check to see if the nm accepts a BSD-compat flag.
4121	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4122	#   nm: unknown option "B" ignored
4123	# Tru64's nm complains that /dev/null is an invalid object file
4124	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4125	*/dev/null* | *'Invalid file or object type'*)
4126	  lt_cv_path_NM="$tmp_nm -B"
4127	  break
4128	  ;;
4129	*)
4130	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4131	  */dev/null*)
4132	    lt_cv_path_NM="$tmp_nm -p"
4133	    break
4134	    ;;
4135	  *)
4136	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4137	    continue # so that we can try to find one that supports BSD flags
4138	    ;;
4139	  esac
4140	  ;;
4141	esac
4142      fi
4143    done
4144    IFS="$lt_save_ifs"
4145  done
4146  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4147fi
4148fi
4149{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4150echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4151NM="$lt_cv_path_NM"
4152
4153{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4155LN_S=$as_ln_s
4156if test "$LN_S" = "ln -s"; then
4157  { echo "$as_me:$LINENO: result: yes" >&5
4158echo "${ECHO_T}yes" >&6; }
4159else
4160  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4161echo "${ECHO_T}no, using $LN_S" >&6; }
4162fi
4163
4164{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4165echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4166if test "${lt_cv_deplibs_check_method+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  lt_cv_file_magic_cmd='$MAGIC_CMD'
4170lt_cv_file_magic_test_file=
4171lt_cv_deplibs_check_method='unknown'
4172# Need to set the preceding variable on all platforms that support
4173# interlibrary dependencies.
4174# 'none' -- dependencies not supported.
4175# `unknown' -- same as none, but documents that we really don't know.
4176# 'pass_all' -- all dependencies passed with no checks.
4177# 'test_compile' -- check by making test program.
4178# 'file_magic [[regex]]' -- check by looking for files in library path
4179# which responds to the $file_magic_cmd with a given extended regex.
4180# If you have `file' or equivalent on your system and you're not sure
4181# whether `pass_all' will *always* work, you probably want this one.
4182
4183case $host_os in
4184aix4* | aix5*)
4185  lt_cv_deplibs_check_method=pass_all
4186  ;;
4187
4188beos*)
4189  lt_cv_deplibs_check_method=pass_all
4190  ;;
4191
4192bsdi[45]*)
4193  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4194  lt_cv_file_magic_cmd='/usr/bin/file -L'
4195  lt_cv_file_magic_test_file=/shlib/libc.so
4196  ;;
4197
4198cygwin*)
4199  # func_win32_libid is a shell function defined in ltmain.sh
4200  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4201  lt_cv_file_magic_cmd='func_win32_libid'
4202  ;;
4203
4204mingw* | pw32*)
4205  # Base MSYS/MinGW do not provide the 'file' command needed by
4206  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4207  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4208  lt_cv_file_magic_cmd='$OBJDUMP -f'
4209  ;;
4210
4211darwin* | rhapsody*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215freebsd* | kfreebsd*-gnu | dragonfly*)
4216  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4217    case $host_cpu in
4218    i*86 )
4219      # Not sure whether the presence of OpenBSD here was a mistake.
4220      # Let's accept both of them until this is cleared up.
4221      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4222      lt_cv_file_magic_cmd=/usr/bin/file
4223      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4224      ;;
4225    esac
4226  else
4227    lt_cv_deplibs_check_method=pass_all
4228  fi
4229  ;;
4230
4231gnu*)
4232  lt_cv_deplibs_check_method=pass_all
4233  ;;
4234
4235hpux10.20* | hpux11*)
4236  lt_cv_file_magic_cmd=/usr/bin/file
4237  case $host_cpu in
4238  ia64*)
4239    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4240    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4241    ;;
4242  hppa*64*)
4243    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]'
4244    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4245    ;;
4246  *)
4247    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4249    ;;
4250  esac
4251  ;;
4252
4253interix3*)
4254  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4255  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4256  ;;
4257
4258irix5* | irix6* | nonstopux*)
4259  case $LD in
4260  *-32|*"-32 ") libmagic=32-bit;;
4261  *-n32|*"-n32 ") libmagic=N32;;
4262  *-64|*"-64 ") libmagic=64-bit;;
4263  *) libmagic=never-match;;
4264  esac
4265  lt_cv_deplibs_check_method=pass_all
4266  ;;
4267
4268# This must be Linux ELF.
4269linux*)
4270  lt_cv_deplibs_check_method=pass_all
4271  ;;
4272
4273netbsd*)
4274  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4275    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4276  else
4277    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4278  fi
4279  ;;
4280
4281newos6*)
4282  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4283  lt_cv_file_magic_cmd=/usr/bin/file
4284  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285  ;;
4286
4287nto-qnx*)
4288  lt_cv_deplibs_check_method=unknown
4289  ;;
4290
4291openbsd*)
4292  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4293    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4294  else
4295    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296  fi
4297  ;;
4298
4299osf3* | osf4* | osf5*)
4300  lt_cv_deplibs_check_method=pass_all
4301  ;;
4302
4303solaris*)
4304  lt_cv_deplibs_check_method=pass_all
4305  ;;
4306
4307sysv4 | sysv4.3*)
4308  case $host_vendor in
4309  motorola)
4310    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]'
4311    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4312    ;;
4313  ncr)
4314    lt_cv_deplibs_check_method=pass_all
4315    ;;
4316  sequent)
4317    lt_cv_file_magic_cmd='/bin/file'
4318    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4319    ;;
4320  sni)
4321    lt_cv_file_magic_cmd='/bin/file'
4322    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4323    lt_cv_file_magic_test_file=/lib/libc.so
4324    ;;
4325  siemens)
4326    lt_cv_deplibs_check_method=pass_all
4327    ;;
4328  pc)
4329    lt_cv_deplibs_check_method=pass_all
4330    ;;
4331  esac
4332  ;;
4333
4334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4335  lt_cv_deplibs_check_method=pass_all
4336  ;;
4337esac
4338
4339fi
4340{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
4344test -z "$deplibs_check_method" && deplibs_check_method=unknown
4345
4346
4347
4348
4349# If no C compiler was specified, use CC.
4350LTCC=${LTCC-"$CC"}
4351
4352# If no C compiler flags were specified, use CFLAGS.
4353LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4354
4355# Allow CC to be a program name with arguments.
4356compiler=$CC
4357
4358
4359# Check whether --enable-libtool-lock was given.
4360if test "${enable_libtool_lock+set}" = set; then
4361  enableval=$enable_libtool_lock;
4362fi
4363
4364test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4365
4366# Some flags need to be propagated to the compiler or linker for good
4367# libtool support.
4368case $host in
4369ia64-*-hpux*)
4370  # Find out which ABI we are using.
4371  echo 'int i;' > conftest.$ac_ext
4372  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373  (eval $ac_compile) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; then
4377    case `/usr/bin/file conftest.$ac_objext` in
4378    *ELF-32*)
4379      HPUX_IA64_MODE="32"
4380      ;;
4381    *ELF-64*)
4382      HPUX_IA64_MODE="64"
4383      ;;
4384    esac
4385  fi
4386  rm -rf conftest*
4387  ;;
4388*-*-irix6*)
4389  # Find out which ABI we are using.
4390  echo '#line 4390 "configure"' > conftest.$ac_ext
4391  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392  (eval $ac_compile) 2>&5
4393  ac_status=$?
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); }; then
4396   if test "$lt_cv_prog_gnu_ld" = yes; then
4397    case `/usr/bin/file conftest.$ac_objext` in
4398    *32-bit*)
4399      LD="${LD-ld} -melf32bsmip"
4400      ;;
4401    *N32*)
4402      LD="${LD-ld} -melf32bmipn32"
4403      ;;
4404    *64-bit*)
4405      LD="${LD-ld} -melf64bmip"
4406      ;;
4407    esac
4408   else
4409    case `/usr/bin/file conftest.$ac_objext` in
4410    *32-bit*)
4411      LD="${LD-ld} -32"
4412      ;;
4413    *N32*)
4414      LD="${LD-ld} -n32"
4415      ;;
4416    *64-bit*)
4417      LD="${LD-ld} -64"
4418      ;;
4419    esac
4420   fi
4421  fi
4422  rm -rf conftest*
4423  ;;
4424
4425x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4426  # Find out which ABI we are using.
4427  echo 'int i;' > conftest.$ac_ext
4428  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429  (eval $ac_compile) 2>&5
4430  ac_status=$?
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); }; then
4433    case `/usr/bin/file conftest.o` in
4434    *32-bit*)
4435      case $host in
4436        x86_64-*linux*)
4437          LD="${LD-ld} -m elf_i386"
4438          ;;
4439        ppc64-*linux*|powerpc64-*linux*)
4440          LD="${LD-ld} -m elf32ppclinux"
4441          ;;
4442        s390x-*linux*)
4443          LD="${LD-ld} -m elf_s390"
4444          ;;
4445        sparc64-*linux*)
4446          LD="${LD-ld} -m elf32_sparc"
4447          ;;
4448      esac
4449      ;;
4450    *64-bit*)
4451      case $host in
4452        x86_64-*linux*)
4453          LD="${LD-ld} -m elf_x86_64"
4454          ;;
4455        ppc*-*linux*|powerpc*-*linux*)
4456          LD="${LD-ld} -m elf64ppc"
4457          ;;
4458        s390*-*linux*)
4459          LD="${LD-ld} -m elf64_s390"
4460          ;;
4461        sparc*-*linux*)
4462          LD="${LD-ld} -m elf64_sparc"
4463          ;;
4464      esac
4465      ;;
4466    esac
4467  fi
4468  rm -rf conftest*
4469  ;;
4470
4471*-*-sco3.2v5*)
4472  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473  SAVE_CFLAGS="$CFLAGS"
4474  CFLAGS="$CFLAGS -belf"
4475  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4477if test "${lt_cv_cc_needs_belf+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480  ac_ext=c
4481ac_cpp='$CPP $CPPFLAGS'
4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486     cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h.  */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h.  */
4492
4493int
4494main ()
4495{
4496
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501rm -f conftest.$ac_objext conftest$ac_exeext
4502if { (ac_try="$ac_link"
4503case "(($ac_try" in
4504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505  *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508  (eval "$ac_link") 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } && {
4515	 test -z "$ac_c_werror_flag" ||
4516	 test ! -s conftest.err
4517       } && test -s conftest$ac_exeext &&
4518       $as_test_x conftest$ac_exeext; then
4519  lt_cv_cc_needs_belf=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524	lt_cv_cc_needs_belf=no
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4528      conftest$ac_exeext conftest.$ac_ext
4529     ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535fi
4536{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4538  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540    CFLAGS="$SAVE_CFLAGS"
4541  fi
4542  ;;
4543sparc*-*solaris*)
4544  # Find out which ABI we are using.
4545  echo 'int i;' > conftest.$ac_ext
4546  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547  (eval $ac_compile) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; then
4551    case `/usr/bin/file conftest.o` in
4552    *64-bit*)
4553      case $lt_cv_prog_gnu_ld in
4554      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4555      *)    LD="${LD-ld} -64" ;;
4556      esac
4557      ;;
4558    esac
4559  fi
4560  rm -rf conftest*
4561  ;;
4562
4563
4564esac
4565
4566need_locks="$enable_libtool_lock"
4567
4568
4569ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4575echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4576# On Suns, sometimes $CPP names a directory.
4577if test -n "$CPP" && test -d "$CPP"; then
4578  CPP=
4579fi
4580if test -z "$CPP"; then
4581  if test "${ac_cv_prog_CPP+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584      # Double quotes because CPP needs to be expanded
4585    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4586    do
4587      ac_preproc_ok=false
4588for ac_c_preproc_warn_flag in '' yes
4589do
4590  # Use a header file that comes with gcc, so configuring glibc
4591  # with a fresh cross-compiler works.
4592  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593  # <limits.h> exists even on freestanding compilers.
4594  # On the NeXT, cc -E runs the code through the compiler's parser,
4595  # not just through cpp. "Syntax error" is here to catch this case.
4596  cat >conftest.$ac_ext <<_ACEOF
4597/* confdefs.h.  */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h.  */
4602#ifdef __STDC__
4603# include <limits.h>
4604#else
4605# include <assert.h>
4606#endif
4607		     Syntax error
4608_ACEOF
4609if { (ac_try="$ac_cpp conftest.$ac_ext"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } >/dev/null && {
4622	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4623	 test ! -s conftest.err
4624       }; then
4625  :
4626else
4627  echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630  # Broken: fails on valid input.
4631continue
4632fi
4633
4634rm -f conftest.err conftest.$ac_ext
4635
4636  # OK, works on sane cases.  Now check whether nonexistent headers
4637  # can be detected and how.
4638  cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h.  */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h.  */
4644#include <ac_nonexistent.h>
4645_ACEOF
4646if { (ac_try="$ac_cpp conftest.$ac_ext"
4647case "(($ac_try" in
4648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649  *) ac_try_echo=$ac_try;;
4650esac
4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653  ac_status=$?
4654  grep -v '^ *+' conftest.er1 >conftest.err
4655  rm -f conftest.er1
4656  cat conftest.err >&5
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); } >/dev/null && {
4659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660	 test ! -s conftest.err
4661       }; then
4662  # Broken: success on invalid input.
4663continue
4664else
4665  echo "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668  # Passes both tests.
4669ac_preproc_ok=:
4670break
4671fi
4672
4673rm -f conftest.err conftest.$ac_ext
4674
4675done
4676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677rm -f conftest.err conftest.$ac_ext
4678if $ac_preproc_ok; then
4679  break
4680fi
4681
4682    done
4683    ac_cv_prog_CPP=$CPP
4684
4685fi
4686  CPP=$ac_cv_prog_CPP
4687else
4688  ac_cv_prog_CPP=$CPP
4689fi
4690{ echo "$as_me:$LINENO: result: $CPP" >&5
4691echo "${ECHO_T}$CPP" >&6; }
4692ac_preproc_ok=false
4693for ac_c_preproc_warn_flag in '' yes
4694do
4695  # Use a header file that comes with gcc, so configuring glibc
4696  # with a fresh cross-compiler works.
4697  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4698  # <limits.h> exists even on freestanding compilers.
4699  # On the NeXT, cc -E runs the code through the compiler's parser,
4700  # not just through cpp. "Syntax error" is here to catch this case.
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707#ifdef __STDC__
4708# include <limits.h>
4709#else
4710# include <assert.h>
4711#endif
4712		     Syntax error
4713_ACEOF
4714if { (ac_try="$ac_cpp conftest.$ac_ext"
4715case "(($ac_try" in
4716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717  *) ac_try_echo=$ac_try;;
4718esac
4719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721  ac_status=$?
4722  grep -v '^ *+' conftest.er1 >conftest.err
4723  rm -f conftest.er1
4724  cat conftest.err >&5
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); } >/dev/null && {
4727	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728	 test ! -s conftest.err
4729       }; then
4730  :
4731else
4732  echo "$as_me: failed program was:" >&5
4733sed 's/^/| /' conftest.$ac_ext >&5
4734
4735  # Broken: fails on valid input.
4736continue
4737fi
4738
4739rm -f conftest.err conftest.$ac_ext
4740
4741  # OK, works on sane cases.  Now check whether nonexistent headers
4742  # can be detected and how.
4743  cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <ac_nonexistent.h>
4750_ACEOF
4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } >/dev/null && {
4764	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765	 test ! -s conftest.err
4766       }; then
4767  # Broken: success on invalid input.
4768continue
4769else
4770  echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773  # Passes both tests.
4774ac_preproc_ok=:
4775break
4776fi
4777
4778rm -f conftest.err conftest.$ac_ext
4779
4780done
4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782rm -f conftest.err conftest.$ac_ext
4783if $ac_preproc_ok; then
4784  :
4785else
4786  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4787See \`config.log' for more details." >&5
4788echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4789See \`config.log' for more details." >&2;}
4790   { (exit 1); exit 1; }; }
4791fi
4792
4793ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4801echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4802if test "${ac_cv_header_stdc+set}" = set; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805  cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h.  */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h.  */
4811#include <stdlib.h>
4812#include <stdarg.h>
4813#include <string.h>
4814#include <float.h>
4815
4816int
4817main ()
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext
4825if { (ac_try="$ac_compile"
4826case "(($ac_try" in
4827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828  *) ac_try_echo=$ac_try;;
4829esac
4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831  (eval "$ac_compile") 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } && {
4838	 test -z "$ac_c_werror_flag" ||
4839	 test ! -s conftest.err
4840       } && test -s conftest.$ac_objext; then
4841  ac_cv_header_stdc=yes
4842else
4843  echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846	ac_cv_header_stdc=no
4847fi
4848
4849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850
4851if test $ac_cv_header_stdc = yes; then
4852  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4853  cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h.  */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h.  */
4859#include <string.h>
4860
4861_ACEOF
4862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863  $EGREP "memchr" >/dev/null 2>&1; then
4864  :
4865else
4866  ac_cv_header_stdc=no
4867fi
4868rm -f conftest*
4869
4870fi
4871
4872if test $ac_cv_header_stdc = yes; then
4873  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4874  cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h.  */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h.  */
4880#include <stdlib.h>
4881
4882_ACEOF
4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884  $EGREP "free" >/dev/null 2>&1; then
4885  :
4886else
4887  ac_cv_header_stdc=no
4888fi
4889rm -f conftest*
4890
4891fi
4892
4893if test $ac_cv_header_stdc = yes; then
4894  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4895  if test "$cross_compiling" = yes; then
4896  :
4897else
4898  cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h.  */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h.  */
4904#include <ctype.h>
4905#include <stdlib.h>
4906#if ((' ' & 0x0FF) == 0x020)
4907# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4908# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4909#else
4910# define ISLOWER(c) \
4911		   (('a' <= (c) && (c) <= 'i') \
4912		     || ('j' <= (c) && (c) <= 'r') \
4913		     || ('s' <= (c) && (c) <= 'z'))
4914# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4915#endif
4916
4917#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4918int
4919main ()
4920{
4921  int i;
4922  for (i = 0; i < 256; i++)
4923    if (XOR (islower (i), ISLOWER (i))
4924	|| toupper (i) != TOUPPER (i))
4925      return 2;
4926  return 0;
4927}
4928_ACEOF
4929rm -f conftest$ac_exeext
4930if { (ac_try="$ac_link"
4931case "(($ac_try" in
4932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933  *) ac_try_echo=$ac_try;;
4934esac
4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936  (eval "$ac_link") 2>&5
4937  ac_status=$?
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4940  { (case "(($ac_try" in
4941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942  *) ac_try_echo=$ac_try;;
4943esac
4944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945  (eval "$ac_try") 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; }; then
4949  :
4950else
4951  echo "$as_me: program exited with status $ac_status" >&5
4952echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955( exit $ac_status )
4956ac_cv_header_stdc=no
4957fi
4958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4959fi
4960
4961
4962fi
4963fi
4964{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4965echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4966if test $ac_cv_header_stdc = yes; then
4967
4968cat >>confdefs.h <<\_ACEOF
4969#define STDC_HEADERS 1
4970_ACEOF
4971
4972fi
4973
4974# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4985		  inttypes.h stdint.h unistd.h
4986do
4987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4991  echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993  cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h.  */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h.  */
4999$ac_includes_default
5000
5001#include <$ac_header>
5002_ACEOF
5003rm -f conftest.$ac_objext
5004if { (ac_try="$ac_compile"
5005case "(($ac_try" in
5006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007  *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010  (eval "$ac_compile") 2>conftest.er1
5011  ac_status=$?
5012  grep -v '^ *+' conftest.er1 >conftest.err
5013  rm -f conftest.er1
5014  cat conftest.err >&5
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); } && {
5017	 test -z "$ac_c_werror_flag" ||
5018	 test ! -s conftest.err
5019       } && test -s conftest.$ac_objext; then
5020  eval "$as_ac_Header=yes"
5021else
5022  echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025	eval "$as_ac_Header=no"
5026fi
5027
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029fi
5030ac_res=`eval echo '${'$as_ac_Header'}'`
5031	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5032echo "${ECHO_T}$ac_res" >&6; }
5033if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034  cat >>confdefs.h <<_ACEOF
5035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036_ACEOF
5037
5038fi
5039
5040done
5041
5042
5043
5044for ac_header in dlfcn.h
5045do
5046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5048  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052fi
5053ac_res=`eval echo '${'$as_ac_Header'}'`
5054	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5055echo "${ECHO_T}$ac_res" >&6; }
5056else
5057  # Is the header compilable?
5058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5060cat >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$ac_includes_default
5067#include <$ac_header>
5068_ACEOF
5069rm -f conftest.$ac_objext
5070if { (ac_try="$ac_compile"
5071case "(($ac_try" in
5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073  *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076  (eval "$ac_compile") 2>conftest.er1
5077  ac_status=$?
5078  grep -v '^ *+' conftest.er1 >conftest.err
5079  rm -f conftest.er1
5080  cat conftest.err >&5
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && {
5083	 test -z "$ac_c_werror_flag" ||
5084	 test ! -s conftest.err
5085       } && test -s conftest.$ac_objext; then
5086  ac_header_compiler=yes
5087else
5088  echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091	ac_header_compiler=no
5092fi
5093
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5096echo "${ECHO_T}$ac_header_compiler" >&6; }
5097
5098# Is the header present?
5099{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5101cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107#include <$ac_header>
5108_ACEOF
5109if { (ac_try="$ac_cpp conftest.$ac_ext"
5110case "(($ac_try" in
5111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112  *) ac_try_echo=$ac_try;;
5113esac
5114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } >/dev/null && {
5122	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123	 test ! -s conftest.err
5124       }; then
5125  ac_header_preproc=yes
5126else
5127  echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130  ac_header_preproc=no
5131fi
5132
5133rm -f conftest.err conftest.$ac_ext
5134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135echo "${ECHO_T}$ac_header_preproc" >&6; }
5136
5137# So?  What about this header?
5138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5139  yes:no: )
5140    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144    ac_header_preproc=yes
5145    ;;
5146  no:yes:* )
5147    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5150echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5151    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5154echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5159    ( cat <<\_ASBOX
5160## ---------------------------------------------------------------------- ##
5161## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5162## ---------------------------------------------------------------------- ##
5163_ASBOX
5164     ) | sed "s/^/$as_me: WARNING:     /" >&2
5165    ;;
5166esac
5167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5170  echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172  eval "$as_ac_Header=\$ac_header_preproc"
5173fi
5174ac_res=`eval echo '${'$as_ac_Header'}'`
5175	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5176echo "${ECHO_T}$ac_res" >&6; }
5177
5178fi
5179if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180  cat >>confdefs.h <<_ACEOF
5181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182_ACEOF
5183
5184fi
5185
5186done
5187
5188ac_ext=cpp
5189ac_cpp='$CXXCPP $CPPFLAGS'
5190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193if test -z "$CXX"; then
5194  if test -n "$CCC"; then
5195    CXX=$CCC
5196  else
5197    if test -n "$ac_tool_prefix"; then
5198  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5199  do
5200    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204if test "${ac_cv_prog_CXX+set}" = set; then
5205  echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207  if test -n "$CXX"; then
5208  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213  IFS=$as_save_IFS
5214  test -z "$as_dir" && as_dir=.
5215  for ac_exec_ext in '' $ac_executable_extensions; do
5216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219    break 2
5220  fi
5221done
5222done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227CXX=$ac_cv_prog_CXX
5228if test -n "$CXX"; then
5229  { echo "$as_me:$LINENO: result: $CXX" >&5
5230echo "${ECHO_T}$CXX" >&6; }
5231else
5232  { echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6; }
5234fi
5235
5236
5237    test -n "$CXX" && break
5238  done
5239fi
5240if test -z "$CXX"; then
5241  ac_ct_CXX=$CXX
5242  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5243do
5244  # Extract the first word of "$ac_prog", so it can be a program name with args.
5245set dummy $ac_prog; ac_word=$2
5246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251  if test -n "$ac_ct_CXX"; then
5252  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259  for ac_exec_ext in '' $ac_executable_extensions; do
5260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261    ac_cv_prog_ac_ct_CXX="$ac_prog"
5262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5272if test -n "$ac_ct_CXX"; then
5273  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5274echo "${ECHO_T}$ac_ct_CXX" >&6; }
5275else
5276  { echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6; }
5278fi
5279
5280
5281  test -n "$ac_ct_CXX" && break
5282done
5283
5284  if test "x$ac_ct_CXX" = x; then
5285    CXX="g++"
5286  else
5287    case $cross_compiling:$ac_tool_warned in
5288yes:)
5289{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290whose name does not start with the host triplet.  If you think this
5291configuration is useful to you, please write to autoconf@gnu.org." >&5
5292echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293whose name does not start with the host triplet.  If you think this
5294configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5295ac_tool_warned=yes ;;
5296esac
5297    CXX=$ac_ct_CXX
5298  fi
5299fi
5300
5301  fi
5302fi
5303# Provide some information about the compiler.
5304echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5305ac_compiler=`set X $ac_compile; echo $2`
5306{ (ac_try="$ac_compiler --version >&5"
5307case "(($ac_try" in
5308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309  *) ac_try_echo=$ac_try;;
5310esac
5311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312  (eval "$ac_compiler --version >&5") 2>&5
5313  ac_status=$?
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); }
5316{ (ac_try="$ac_compiler -v >&5"
5317case "(($ac_try" in
5318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319  *) ac_try_echo=$ac_try;;
5320esac
5321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322  (eval "$ac_compiler -v >&5") 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); }
5326{ (ac_try="$ac_compiler -V >&5"
5327case "(($ac_try" in
5328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329  *) ac_try_echo=$ac_try;;
5330esac
5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332  (eval "$ac_compiler -V >&5") 2>&5
5333  ac_status=$?
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); }
5336
5337{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5338echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5339if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  cat >conftest.$ac_ext <<_ACEOF
5343/* confdefs.h.  */
5344_ACEOF
5345cat confdefs.h >>conftest.$ac_ext
5346cat >>conftest.$ac_ext <<_ACEOF
5347/* end confdefs.h.  */
5348
5349int
5350main ()
5351{
5352#ifndef __GNUC__
5353       choke me
5354#endif
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (ac_try="$ac_compile"
5362case "(($ac_try" in
5363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364  *) ac_try_echo=$ac_try;;
5365esac
5366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367  (eval "$ac_compile") 2>conftest.er1
5368  ac_status=$?
5369  grep -v '^ *+' conftest.er1 >conftest.err
5370  rm -f conftest.er1
5371  cat conftest.err >&5
5372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373  (exit $ac_status); } && {
5374	 test -z "$ac_cxx_werror_flag" ||
5375	 test ! -s conftest.err
5376       } && test -s conftest.$ac_objext; then
5377  ac_compiler_gnu=yes
5378else
5379  echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382	ac_compiler_gnu=no
5383fi
5384
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5387
5388fi
5389{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5390echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5391GXX=`test $ac_compiler_gnu = yes && echo yes`
5392ac_test_CXXFLAGS=${CXXFLAGS+set}
5393ac_save_CXXFLAGS=$CXXFLAGS
5394{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5395echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5396if test "${ac_cv_prog_cxx_g+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5400   ac_cxx_werror_flag=yes
5401   ac_cv_prog_cxx_g=no
5402   CXXFLAGS="-g"
5403   cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h.  */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h.  */
5409
5410int
5411main ()
5412{
5413
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext
5419if { (ac_try="$ac_compile"
5420case "(($ac_try" in
5421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422  *) ac_try_echo=$ac_try;;
5423esac
5424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425  (eval "$ac_compile") 2>conftest.er1
5426  ac_status=$?
5427  grep -v '^ *+' conftest.er1 >conftest.err
5428  rm -f conftest.er1
5429  cat conftest.err >&5
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); } && {
5432	 test -z "$ac_cxx_werror_flag" ||
5433	 test ! -s conftest.err
5434       } && test -s conftest.$ac_objext; then
5435  ac_cv_prog_cxx_g=yes
5436else
5437  echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
5440	CXXFLAGS=""
5441      cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447
5448int
5449main ()
5450{
5451
5452  ;
5453  return 0;
5454}
5455_ACEOF
5456rm -f conftest.$ac_objext
5457if { (ac_try="$ac_compile"
5458case "(($ac_try" in
5459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460  *) ac_try_echo=$ac_try;;
5461esac
5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463  (eval "$ac_compile") 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } && {
5470	 test -z "$ac_cxx_werror_flag" ||
5471	 test ! -s conftest.err
5472       } && test -s conftest.$ac_objext; then
5473  :
5474else
5475  echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5479	 CXXFLAGS="-g"
5480	 cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h.  */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h.  */
5486
5487int
5488main ()
5489{
5490
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext
5496if { (ac_try="$ac_compile"
5497case "(($ac_try" in
5498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499  *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502  (eval "$ac_compile") 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } && {
5509	 test -z "$ac_cxx_werror_flag" ||
5510	 test ! -s conftest.err
5511       } && test -s conftest.$ac_objext; then
5512  ac_cv_prog_cxx_g=yes
5513else
5514  echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517
5518fi
5519
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521fi
5522
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5528fi
5529{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5530echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5531if test "$ac_test_CXXFLAGS" = set; then
5532  CXXFLAGS=$ac_save_CXXFLAGS
5533elif test $ac_cv_prog_cxx_g = yes; then
5534  if test "$GXX" = yes; then
5535    CXXFLAGS="-g -O2"
5536  else
5537    CXXFLAGS="-g"
5538  fi
5539else
5540  if test "$GXX" = yes; then
5541    CXXFLAGS="-O2"
5542  else
5543    CXXFLAGS=
5544  fi
5545fi
5546ac_ext=cpp
5547ac_cpp='$CXXCPP $CPPFLAGS'
5548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551
5552depcc="$CXX"  am_compiler_list=
5553
5554{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5555echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5556if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5560  # We make a subdir and do the tests there.  Otherwise we can end up
5561  # making bogus files that we don't know about and never remove.  For
5562  # instance it was reported that on HP-UX the gcc test will end up
5563  # making a dummy file named `D' -- because `-MD' means `put the output
5564  # in D'.
5565  mkdir conftest.dir
5566  # Copy depcomp to subdir because otherwise we won't find it if we're
5567  # using a relative directory.
5568  cp "$am_depcomp" conftest.dir
5569  cd conftest.dir
5570  # We will build objects and dependencies in a subdirectory because
5571  # it helps to detect inapplicable dependency modes.  For instance
5572  # both Tru64's cc and ICC support -MD to output dependencies as a
5573  # side effect of compilation, but ICC will put the dependencies in
5574  # the current directory while Tru64 will put them in the object
5575  # directory.
5576  mkdir sub
5577
5578  am_cv_CXX_dependencies_compiler_type=none
5579  if test "$am_compiler_list" = ""; then
5580     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5581  fi
5582  for depmode in $am_compiler_list; do
5583    # Setup a source with many dependencies, because some compilers
5584    # like to wrap large dependency lists on column 80 (with \), and
5585    # we should not choose a depcomp mode which is confused by this.
5586    #
5587    # We need to recreate these files for each test, as the compiler may
5588    # overwrite some of them when testing with obscure command lines.
5589    # This happens at least with the AIX C compiler.
5590    : > sub/conftest.c
5591    for i in 1 2 3 4 5 6; do
5592      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5593      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5594      # Solaris 8's {/usr,}/bin/sh.
5595      touch sub/conftst$i.h
5596    done
5597    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5598
5599    case $depmode in
5600    nosideeffect)
5601      # after this tag, mechanisms are not by side-effect, so they'll
5602      # only be used when explicitly requested
5603      if test "x$enable_dependency_tracking" = xyes; then
5604	continue
5605      else
5606	break
5607      fi
5608      ;;
5609    none) break ;;
5610    esac
5611    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612    # mode.  It turns out that the SunPro C++ compiler does not properly
5613    # handle `-M -o', and we need to detect this.
5614    if depmode=$depmode \
5615       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5616       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5618         >/dev/null 2>conftest.err &&
5619       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5622       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623      # icc doesn't choke on unknown options, it will just issue warnings
5624      # or remarks (even with -Werror).  So we grep stderr for any message
5625      # that says an option was ignored or not supported.
5626      # When given -MP, icc 7.0 and 7.1 complain thusly:
5627      #   icc: Command line warning: ignoring option '-M'; no argument required
5628      # The diagnosis changed in icc 8.0:
5629      #   icc: Command line remark: option '-MP' not supported
5630      if (grep 'ignoring option' conftest.err ||
5631          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632        am_cv_CXX_dependencies_compiler_type=$depmode
5633        break
5634      fi
5635    fi
5636  done
5637
5638  cd ..
5639  rm -rf conftest.dir
5640else
5641  am_cv_CXX_dependencies_compiler_type=none
5642fi
5643
5644fi
5645{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5646echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5647CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5648
5649 if
5650  test "x$enable_dependency_tracking" != xno \
5651  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5652  am__fastdepCXX_TRUE=
5653  am__fastdepCXX_FALSE='#'
5654else
5655  am__fastdepCXX_TRUE='#'
5656  am__fastdepCXX_FALSE=
5657fi
5658
5659
5660
5661
5662if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5663    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5664    (test "X$CXX" != "Xg++"))) ; then
5665  ac_ext=cpp
5666ac_cpp='$CXXCPP $CPPFLAGS'
5667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5670{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5671echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5672if test -z "$CXXCPP"; then
5673  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
5676      # Double quotes because CXXCPP needs to be expanded
5677    for CXXCPP in "$CXX -E" "/lib/cpp"
5678    do
5679      ac_preproc_ok=false
5680for ac_cxx_preproc_warn_flag in '' yes
5681do
5682  # Use a header file that comes with gcc, so configuring glibc
5683  # with a fresh cross-compiler works.
5684  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685  # <limits.h> exists even on freestanding compilers.
5686  # On the NeXT, cc -E runs the code through the compiler's parser,
5687  # not just through cpp. "Syntax error" is here to catch this case.
5688  cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694#ifdef __STDC__
5695# include <limits.h>
5696#else
5697# include <assert.h>
5698#endif
5699		     Syntax error
5700_ACEOF
5701if { (ac_try="$ac_cpp conftest.$ac_ext"
5702case "(($ac_try" in
5703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704  *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708  ac_status=$?
5709  grep -v '^ *+' conftest.er1 >conftest.err
5710  rm -f conftest.er1
5711  cat conftest.err >&5
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); } >/dev/null && {
5714	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5715	 test ! -s conftest.err
5716       }; then
5717  :
5718else
5719  echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722  # Broken: fails on valid input.
5723continue
5724fi
5725
5726rm -f conftest.err conftest.$ac_ext
5727
5728  # OK, works on sane cases.  Now check whether nonexistent headers
5729  # can be detected and how.
5730  cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h.  */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h.  */
5736#include <ac_nonexistent.h>
5737_ACEOF
5738if { (ac_try="$ac_cpp conftest.$ac_ext"
5739case "(($ac_try" in
5740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741  *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745  ac_status=$?
5746  grep -v '^ *+' conftest.er1 >conftest.err
5747  rm -f conftest.er1
5748  cat conftest.err >&5
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); } >/dev/null && {
5751	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752	 test ! -s conftest.err
5753       }; then
5754  # Broken: success on invalid input.
5755continue
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760  # Passes both tests.
5761ac_preproc_ok=:
5762break
5763fi
5764
5765rm -f conftest.err conftest.$ac_ext
5766
5767done
5768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769rm -f conftest.err conftest.$ac_ext
5770if $ac_preproc_ok; then
5771  break
5772fi
5773
5774    done
5775    ac_cv_prog_CXXCPP=$CXXCPP
5776
5777fi
5778  CXXCPP=$ac_cv_prog_CXXCPP
5779else
5780  ac_cv_prog_CXXCPP=$CXXCPP
5781fi
5782{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5783echo "${ECHO_T}$CXXCPP" >&6; }
5784ac_preproc_ok=false
5785for ac_cxx_preproc_warn_flag in '' yes
5786do
5787  # Use a header file that comes with gcc, so configuring glibc
5788  # with a fresh cross-compiler works.
5789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5790  # <limits.h> exists even on freestanding compilers.
5791  # On the NeXT, cc -E runs the code through the compiler's parser,
5792  # not just through cpp. "Syntax error" is here to catch this case.
5793  cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h.  */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h.  */
5799#ifdef __STDC__
5800# include <limits.h>
5801#else
5802# include <assert.h>
5803#endif
5804		     Syntax error
5805_ACEOF
5806if { (ac_try="$ac_cpp conftest.$ac_ext"
5807case "(($ac_try" in
5808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809  *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5813  ac_status=$?
5814  grep -v '^ *+' conftest.er1 >conftest.err
5815  rm -f conftest.er1
5816  cat conftest.err >&5
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); } >/dev/null && {
5819	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5820	 test ! -s conftest.err
5821       }; then
5822  :
5823else
5824  echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827  # Broken: fails on valid input.
5828continue
5829fi
5830
5831rm -f conftest.err conftest.$ac_ext
5832
5833  # OK, works on sane cases.  Now check whether nonexistent headers
5834  # can be detected and how.
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <ac_nonexistent.h>
5842_ACEOF
5843if { (ac_try="$ac_cpp conftest.$ac_ext"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } >/dev/null && {
5856	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857	 test ! -s conftest.err
5858       }; then
5859  # Broken: success on invalid input.
5860continue
5861else
5862  echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865  # Passes both tests.
5866ac_preproc_ok=:
5867break
5868fi
5869
5870rm -f conftest.err conftest.$ac_ext
5871
5872done
5873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5874rm -f conftest.err conftest.$ac_ext
5875if $ac_preproc_ok; then
5876  :
5877else
5878  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5879See \`config.log' for more details." >&5
5880echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5881See \`config.log' for more details." >&2;}
5882   { (exit 1); exit 1; }; }
5883fi
5884
5885ac_ext=cpp
5886ac_cpp='$CXXCPP $CPPFLAGS'
5887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890
5891fi
5892
5893
5894ac_ext=f
5895ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5896ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5898if test -n "$ac_tool_prefix"; then
5899  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
5900  do
5901    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905if test "${ac_cv_prog_F77+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  if test -n "$F77"; then
5909  ac_cv_prog_F77="$F77" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_exec_ext in '' $ac_executable_extensions; do
5917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928F77=$ac_cv_prog_F77
5929if test -n "$F77"; then
5930  { echo "$as_me:$LINENO: result: $F77" >&5
5931echo "${ECHO_T}$F77" >&6; }
5932else
5933  { echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6; }
5935fi
5936
5937
5938    test -n "$F77" && break
5939  done
5940fi
5941if test -z "$F77"; then
5942  ac_ct_F77=$F77
5943  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
5944do
5945  # Extract the first word of "$ac_prog", so it can be a program name with args.
5946set dummy $ac_prog; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  if test -n "$ac_ct_F77"; then
5953  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960  for ac_exec_ext in '' $ac_executable_extensions; do
5961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962    ac_cv_prog_ac_ct_F77="$ac_prog"
5963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972ac_ct_F77=$ac_cv_prog_ac_ct_F77
5973if test -n "$ac_ct_F77"; then
5974  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5975echo "${ECHO_T}$ac_ct_F77" >&6; }
5976else
5977  { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982  test -n "$ac_ct_F77" && break
5983done
5984
5985  if test "x$ac_ct_F77" = x; then
5986    F77=""
5987  else
5988    case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5991whose name does not start with the host triplet.  If you think this
5992configuration is useful to you, please write to autoconf@gnu.org." >&5
5993echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5994whose name does not start with the host triplet.  If you think this
5995configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5996ac_tool_warned=yes ;;
5997esac
5998    F77=$ac_ct_F77
5999  fi
6000fi
6001
6002
6003# Provide some information about the compiler.
6004echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6005ac_compiler=`set X $ac_compile; echo $2`
6006{ (ac_try="$ac_compiler --version >&5"
6007case "(($ac_try" in
6008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009  *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012  (eval "$ac_compiler --version >&5") 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }
6016{ (ac_try="$ac_compiler -v >&5"
6017case "(($ac_try" in
6018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019  *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022  (eval "$ac_compiler -v >&5") 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }
6026{ (ac_try="$ac_compiler -V >&5"
6027case "(($ac_try" in
6028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029  *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032  (eval "$ac_compiler -V >&5") 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }
6036rm -f a.out
6037
6038# If we don't use `.F' as extension, the preprocessor is not run on the
6039# input file.  (Note that this only needs to work for GNU compilers.)
6040ac_save_ext=$ac_ext
6041ac_ext=F
6042{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6043echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6044if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  cat >conftest.$ac_ext <<_ACEOF
6048      program main
6049#ifndef __GNUC__
6050       choke me
6051#endif
6052
6053      end
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059  *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062  (eval "$ac_compile") 2>conftest.er1
6063  ac_status=$?
6064  grep -v '^ *+' conftest.er1 >conftest.err
6065  rm -f conftest.er1
6066  cat conftest.err >&5
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } && {
6069	 test -z "$ac_f77_werror_flag" ||
6070	 test ! -s conftest.err
6071       } && test -s conftest.$ac_objext; then
6072  ac_compiler_gnu=yes
6073else
6074  echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077	ac_compiler_gnu=no
6078fi
6079
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6082
6083fi
6084{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6085echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6086ac_ext=$ac_save_ext
6087ac_test_FFLAGS=${FFLAGS+set}
6088ac_save_FFLAGS=$FFLAGS
6089FFLAGS=
6090{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6091echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6092if test "${ac_cv_prog_f77_g+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095  FFLAGS=-g
6096cat >conftest.$ac_ext <<_ACEOF
6097      program main
6098
6099      end
6100_ACEOF
6101rm -f conftest.$ac_objext
6102if { (ac_try="$ac_compile"
6103case "(($ac_try" in
6104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105  *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108  (eval "$ac_compile") 2>conftest.er1
6109  ac_status=$?
6110  grep -v '^ *+' conftest.er1 >conftest.err
6111  rm -f conftest.er1
6112  cat conftest.err >&5
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); } && {
6115	 test -z "$ac_f77_werror_flag" ||
6116	 test ! -s conftest.err
6117       } && test -s conftest.$ac_objext; then
6118  ac_cv_prog_f77_g=yes
6119else
6120  echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
6123	ac_cv_prog_f77_g=no
6124fi
6125
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127
6128fi
6129{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6130echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6131if test "$ac_test_FFLAGS" = set; then
6132  FFLAGS=$ac_save_FFLAGS
6133elif test $ac_cv_prog_f77_g = yes; then
6134  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135    FFLAGS="-g -O2"
6136  else
6137    FFLAGS="-g"
6138  fi
6139else
6140  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6141    FFLAGS="-O2"
6142  else
6143    FFLAGS=
6144  fi
6145fi
6146
6147G77=`test $ac_compiler_gnu = yes && echo yes`
6148ac_ext=c
6149ac_cpp='$CPP $CPPFLAGS'
6150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154
6155
6156# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6157
6158# find the maximum length of command line arguments
6159{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6160echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6161if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164    i=0
6165  teststring="ABCD"
6166
6167  case $build_os in
6168  msdosdjgpp*)
6169    # On DJGPP, this test can blow up pretty badly due to problems in libc
6170    # (any single argument exceeding 2000 bytes causes a buffer overrun
6171    # during glob expansion).  Even if it were fixed, the result of this
6172    # check would be larger than it should be.
6173    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6174    ;;
6175
6176  gnu*)
6177    # Under GNU Hurd, this test is not required because there is
6178    # no limit to the length of command line arguments.
6179    # Libtool will interpret -1 as no limit whatsoever
6180    lt_cv_sys_max_cmd_len=-1;
6181    ;;
6182
6183  cygwin* | mingw*)
6184    # On Win9x/ME, this test blows up -- it succeeds, but takes
6185    # about 5 minutes as the teststring grows exponentially.
6186    # Worse, since 9x/ME are not pre-emptively multitasking,
6187    # you end up with a "frozen" computer, even though with patience
6188    # the test eventually succeeds (with a max line length of 256k).
6189    # Instead, let's just punt: use the minimum linelength reported by
6190    # all of the supported platforms: 8192 (on NT/2K/XP).
6191    lt_cv_sys_max_cmd_len=8192;
6192    ;;
6193
6194  amigaos*)
6195    # On AmigaOS with pdksh, this test takes hours, literally.
6196    # So we just punt and use a minimum line length of 8192.
6197    lt_cv_sys_max_cmd_len=8192;
6198    ;;
6199
6200  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6201    # This has been around since 386BSD, at least.  Likely further.
6202    if test -x /sbin/sysctl; then
6203      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6204    elif test -x /usr/sbin/sysctl; then
6205      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6206    else
6207      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6208    fi
6209    # And add a safety zone
6210    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6211    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6212    ;;
6213
6214  interix*)
6215    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6216    lt_cv_sys_max_cmd_len=196608
6217    ;;
6218
6219  osf*)
6220    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6221    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6222    # nice to cause kernel panics so lets avoid the loop below.
6223    # First set a reasonable default.
6224    lt_cv_sys_max_cmd_len=16384
6225    #
6226    if test -x /sbin/sysconfig; then
6227      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6228        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6229      esac
6230    fi
6231    ;;
6232  sco3.2v5*)
6233    lt_cv_sys_max_cmd_len=102400
6234    ;;
6235  sysv5* | sco5v6* | sysv4.2uw2*)
6236    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6237    if test -n "$kargmax"; then
6238      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6239    else
6240      lt_cv_sys_max_cmd_len=32768
6241    fi
6242    ;;
6243  *)
6244    # If test is not a shell built-in, we'll probably end up computing a
6245    # maximum length that is only half of the actual maximum length, but
6246    # we can't tell.
6247    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6249	       = "XX$teststring") >/dev/null 2>&1 &&
6250	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6251	    lt_cv_sys_max_cmd_len=$new_result &&
6252	    test $i != 17 # 1/2 MB should be enough
6253    do
6254      i=`expr $i + 1`
6255      teststring=$teststring$teststring
6256    done
6257    teststring=
6258    # Add a significant safety factor because C++ compilers can tack on massive
6259    # amounts of additional arguments before passing them to the linker.
6260    # It appears as though 1/2 is a usable value.
6261    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262    ;;
6263  esac
6264
6265fi
6266
6267if test -n $lt_cv_sys_max_cmd_len ; then
6268  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6269echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6270else
6271  { echo "$as_me:$LINENO: result: none" >&5
6272echo "${ECHO_T}none" >&6; }
6273fi
6274
6275
6276
6277
6278# Check for command to grab the raw symbol name followed by C symbol from nm.
6279{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6280echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6281if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284
6285# These are sane defaults that work on at least a few old systems.
6286# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6287
6288# Character class describing NM global symbol codes.
6289symcode='[BCDEGRST]'
6290
6291# Regexp to match symbols that can be accessed directly from C.
6292sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6293
6294# Transform an extracted symbol line into a proper C declaration
6295lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6296
6297# Transform an extracted symbol line into symbol name and symbol address
6298lt_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'"
6299
6300# Define system-specific variables.
6301case $host_os in
6302aix*)
6303  symcode='[BCDT]'
6304  ;;
6305cygwin* | mingw* | pw32*)
6306  symcode='[ABCDGISTW]'
6307  ;;
6308hpux*) # Its linker distinguishes data from code symbols
6309  if test "$host_cpu" = ia64; then
6310    symcode='[ABCDEGRST]'
6311  fi
6312  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6313  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'"
6314  ;;
6315linux*)
6316  if test "$host_cpu" = ia64; then
6317    symcode='[ABCDGIRSTW]'
6318    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6319    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'"
6320  fi
6321  ;;
6322irix* | nonstopux*)
6323  symcode='[BCDEGRST]'
6324  ;;
6325osf*)
6326  symcode='[BCDEGQRST]'
6327  ;;
6328solaris*)
6329  symcode='[BDRT]'
6330  ;;
6331sco3.2v5*)
6332  symcode='[DT]'
6333  ;;
6334sysv4.2uw2*)
6335  symcode='[DT]'
6336  ;;
6337sysv5* | sco5v6* | unixware* | OpenUNIX*)
6338  symcode='[ABDT]'
6339  ;;
6340sysv4)
6341  symcode='[DFNSTU]'
6342  ;;
6343esac
6344
6345# Handle CRLF in mingw tool chain
6346opt_cr=
6347case $build_os in
6348mingw*)
6349  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6350  ;;
6351esac
6352
6353# If we're using GNU nm, then use its standard symbol codes.
6354case `$NM -V 2>&1` in
6355*GNU* | *'with BFD'*)
6356  symcode='[ABCDGIRSTW]' ;;
6357esac
6358
6359# Try without a prefix undercore, then with it.
6360for ac_symprfx in "" "_"; do
6361
6362  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363  symxfrm="\\1 $ac_symprfx\\2 \\2"
6364
6365  # Write the raw and C identifiers.
6366  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367
6368  # Check to see that the pipe works correctly.
6369  pipe_works=no
6370
6371  rm -f conftest*
6372  cat > conftest.$ac_ext <<EOF
6373#ifdef __cplusplus
6374extern "C" {
6375#endif
6376char nm_test_var;
6377void nm_test_func(){}
6378#ifdef __cplusplus
6379}
6380#endif
6381int main(){nm_test_var='a';nm_test_func();return(0);}
6382EOF
6383
6384  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385  (eval $ac_compile) 2>&5
6386  ac_status=$?
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); }; then
6389    # Now try to grab the symbols.
6390    nlist=conftest.nm
6391    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6392  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); } && test -s "$nlist"; then
6396      # Try sorting and uniquifying the output.
6397      if sort "$nlist" | uniq > "$nlist"T; then
6398	mv -f "$nlist"T "$nlist"
6399      else
6400	rm -f "$nlist"T
6401      fi
6402
6403      # Make sure that we snagged all the symbols we need.
6404      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6405	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6406	  cat <<EOF > conftest.$ac_ext
6407#ifdef __cplusplus
6408extern "C" {
6409#endif
6410
6411EOF
6412	  # Now generate the symbol file.
6413	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6414
6415	  cat <<EOF >> conftest.$ac_ext
6416#if defined (__STDC__) && __STDC__
6417# define lt_ptr_t void *
6418#else
6419# define lt_ptr_t char *
6420# define const
6421#endif
6422
6423/* The mapping between symbol names and symbols. */
6424const struct {
6425  const char *name;
6426  lt_ptr_t address;
6427}
6428lt_preloaded_symbols[] =
6429{
6430EOF
6431	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6432	  cat <<\EOF >> conftest.$ac_ext
6433  {0, (lt_ptr_t) 0}
6434};
6435
6436#ifdef __cplusplus
6437}
6438#endif
6439EOF
6440	  # Now try linking the two files.
6441	  mv conftest.$ac_objext conftstm.$ac_objext
6442	  lt_save_LIBS="$LIBS"
6443	  lt_save_CFLAGS="$CFLAGS"
6444	  LIBS="conftstm.$ac_objext"
6445	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6446	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447  (eval $ac_link) 2>&5
6448  ac_status=$?
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6451	    pipe_works=yes
6452	  fi
6453	  LIBS="$lt_save_LIBS"
6454	  CFLAGS="$lt_save_CFLAGS"
6455	else
6456	  echo "cannot find nm_test_func in $nlist" >&5
6457	fi
6458      else
6459	echo "cannot find nm_test_var in $nlist" >&5
6460      fi
6461    else
6462      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463    fi
6464  else
6465    echo "$progname: failed program was:" >&5
6466    cat conftest.$ac_ext >&5
6467  fi
6468  rm -f conftest* conftst*
6469
6470  # Do not use the global_symbol_pipe unless it works.
6471  if test "$pipe_works" = yes; then
6472    break
6473  else
6474    lt_cv_sys_global_symbol_pipe=
6475  fi
6476done
6477
6478fi
6479
6480if test -z "$lt_cv_sys_global_symbol_pipe"; then
6481  lt_cv_sys_global_symbol_to_cdecl=
6482fi
6483if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6484  { echo "$as_me:$LINENO: result: failed" >&5
6485echo "${ECHO_T}failed" >&6; }
6486else
6487  { echo "$as_me:$LINENO: result: ok" >&5
6488echo "${ECHO_T}ok" >&6; }
6489fi
6490
6491{ echo "$as_me:$LINENO: checking for objdir" >&5
6492echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6493if test "${lt_cv_objdir+set}" = set; then
6494  echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496  rm -f .libs 2>/dev/null
6497mkdir .libs 2>/dev/null
6498if test -d .libs; then
6499  lt_cv_objdir=.libs
6500else
6501  # MS-DOS does not allow filenames that begin with a dot.
6502  lt_cv_objdir=_libs
6503fi
6504rmdir .libs 2>/dev/null
6505fi
6506{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6507echo "${ECHO_T}$lt_cv_objdir" >&6; }
6508objdir=$lt_cv_objdir
6509
6510
6511
6512
6513
6514case $host_os in
6515aix3*)
6516  # AIX sometimes has problems with the GCC collect2 program.  For some
6517  # reason, if we set the COLLECT_NAMES environment variable, the problems
6518  # vanish in a puff of smoke.
6519  if test "X${COLLECT_NAMES+set}" != Xset; then
6520    COLLECT_NAMES=
6521    export COLLECT_NAMES
6522  fi
6523  ;;
6524esac
6525
6526# Sed substitution that helps us do robust quoting.  It backslashifies
6527# metacharacters that are still active within double-quoted strings.
6528Xsed='sed -e 1s/^X//'
6529sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6530
6531# Same as above, but do not quote variable references.
6532double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6533
6534# Sed substitution to delay expansion of an escaped shell variable in a
6535# double_quote_subst'ed string.
6536delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6537
6538# Sed substitution to avoid accidental globbing in evaled expressions
6539no_glob_subst='s/\*/\\\*/g'
6540
6541# Constants:
6542rm="rm -f"
6543
6544# Global variables:
6545default_ofile=libtool
6546can_build_shared=yes
6547
6548# All known linkers require a `.a' archive for static linking (except MSVC,
6549# which needs '.lib').
6550libext=a
6551ltmain="$ac_aux_dir/ltmain.sh"
6552ofile="$default_ofile"
6553with_gnu_ld="$lt_cv_prog_gnu_ld"
6554
6555if test -n "$ac_tool_prefix"; then
6556  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557set dummy ${ac_tool_prefix}ar; ac_word=$2
6558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560if test "${ac_cv_prog_AR+set}" = set; then
6561  echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563  if test -n "$AR"; then
6564  ac_cv_prog_AR="$AR" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569  IFS=$as_save_IFS
6570  test -z "$as_dir" && as_dir=.
6571  for ac_exec_ext in '' $ac_executable_extensions; do
6572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573    ac_cv_prog_AR="${ac_tool_prefix}ar"
6574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575    break 2
6576  fi
6577done
6578done
6579IFS=$as_save_IFS
6580
6581fi
6582fi
6583AR=$ac_cv_prog_AR
6584if test -n "$AR"; then
6585  { echo "$as_me:$LINENO: result: $AR" >&5
6586echo "${ECHO_T}$AR" >&6; }
6587else
6588  { echo "$as_me:$LINENO: result: no" >&5
6589echo "${ECHO_T}no" >&6; }
6590fi
6591
6592
6593fi
6594if test -z "$ac_cv_prog_AR"; then
6595  ac_ct_AR=$AR
6596  # Extract the first word of "ar", so it can be a program name with args.
6597set dummy ar; ac_word=$2
6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  if test -n "$ac_ct_AR"; then
6604  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611  for ac_exec_ext in '' $ac_executable_extensions; do
6612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613    ac_cv_prog_ac_ct_AR="ar"
6614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624if test -n "$ac_ct_AR"; then
6625  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626echo "${ECHO_T}$ac_ct_AR" >&6; }
6627else
6628  { echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6; }
6630fi
6631
6632  if test "x$ac_ct_AR" = x; then
6633    AR="false"
6634  else
6635    case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638whose name does not start with the host triplet.  If you think this
6639configuration is useful to you, please write to autoconf@gnu.org." >&5
6640echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641whose name does not start with the host triplet.  If you think this
6642configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643ac_tool_warned=yes ;;
6644esac
6645    AR=$ac_ct_AR
6646  fi
6647else
6648  AR="$ac_cv_prog_AR"
6649fi
6650
6651if test -n "$ac_tool_prefix"; then
6652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656if test "${ac_cv_prog_RANLIB+set}" = set; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659  if test -n "$RANLIB"; then
6660  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665  IFS=$as_save_IFS
6666  test -z "$as_dir" && as_dir=.
6667  for ac_exec_ext in '' $ac_executable_extensions; do
6668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671    break 2
6672  fi
6673done
6674done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679RANLIB=$ac_cv_prog_RANLIB
6680if test -n "$RANLIB"; then
6681  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6682echo "${ECHO_T}$RANLIB" >&6; }
6683else
6684  { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
6686fi
6687
6688
6689fi
6690if test -z "$ac_cv_prog_RANLIB"; then
6691  ac_ct_RANLIB=$RANLIB
6692  # Extract the first word of "ranlib", so it can be a program name with args.
6693set dummy ranlib; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  if test -n "$ac_ct_RANLIB"; then
6700  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707  for ac_exec_ext in '' $ac_executable_extensions; do
6708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709    ac_cv_prog_ac_ct_RANLIB="ranlib"
6710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6720if test -n "$ac_ct_RANLIB"; then
6721  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6722echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6723else
6724  { echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6; }
6726fi
6727
6728  if test "x$ac_ct_RANLIB" = x; then
6729    RANLIB=":"
6730  else
6731    case $cross_compiling:$ac_tool_warned in
6732yes:)
6733{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734whose name does not start with the host triplet.  If you think this
6735configuration is useful to you, please write to autoconf@gnu.org." >&5
6736echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6737whose name does not start with the host triplet.  If you think this
6738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6739ac_tool_warned=yes ;;
6740esac
6741    RANLIB=$ac_ct_RANLIB
6742  fi
6743else
6744  RANLIB="$ac_cv_prog_RANLIB"
6745fi
6746
6747if test -n "$ac_tool_prefix"; then
6748  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6749set dummy ${ac_tool_prefix}strip; ac_word=$2
6750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_prog_STRIP+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755  if test -n "$STRIP"; then
6756  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761  IFS=$as_save_IFS
6762  test -z "$as_dir" && as_dir=.
6763  for ac_exec_ext in '' $ac_executable_extensions; do
6764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767    break 2
6768  fi
6769done
6770done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775STRIP=$ac_cv_prog_STRIP
6776if test -n "$STRIP"; then
6777  { echo "$as_me:$LINENO: result: $STRIP" >&5
6778echo "${ECHO_T}$STRIP" >&6; }
6779else
6780  { echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6; }
6782fi
6783
6784
6785fi
6786if test -z "$ac_cv_prog_STRIP"; then
6787  ac_ct_STRIP=$STRIP
6788  # Extract the first word of "strip", so it can be a program name with args.
6789set dummy strip; ac_word=$2
6790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  if test -n "$ac_ct_STRIP"; then
6796  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_prog_ac_ct_STRIP="strip"
6806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6816if test -n "$ac_ct_STRIP"; then
6817  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6818echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6819else
6820  { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824  if test "x$ac_ct_STRIP" = x; then
6825    STRIP=":"
6826  else
6827    case $cross_compiling:$ac_tool_warned in
6828yes:)
6829{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6830whose name does not start with the host triplet.  If you think this
6831configuration is useful to you, please write to autoconf@gnu.org." >&5
6832echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6833whose name does not start with the host triplet.  If you think this
6834configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6835ac_tool_warned=yes ;;
6836esac
6837    STRIP=$ac_ct_STRIP
6838  fi
6839else
6840  STRIP="$ac_cv_prog_STRIP"
6841fi
6842
6843
6844old_CC="$CC"
6845old_CFLAGS="$CFLAGS"
6846
6847# Set sane defaults for various variables
6848test -z "$AR" && AR=ar
6849test -z "$AR_FLAGS" && AR_FLAGS=cru
6850test -z "$AS" && AS=as
6851test -z "$CC" && CC=cc
6852test -z "$LTCC" && LTCC=$CC
6853test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6854test -z "$DLLTOOL" && DLLTOOL=dlltool
6855test -z "$LD" && LD=ld
6856test -z "$LN_S" && LN_S="ln -s"
6857test -z "$MAGIC_CMD" && MAGIC_CMD=file
6858test -z "$NM" && NM=nm
6859test -z "$SED" && SED=sed
6860test -z "$OBJDUMP" && OBJDUMP=objdump
6861test -z "$RANLIB" && RANLIB=:
6862test -z "$STRIP" && STRIP=:
6863test -z "$ac_objext" && ac_objext=o
6864
6865# Determine commands to create old-style static archives.
6866old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6867old_postinstall_cmds='chmod 644 $oldlib'
6868old_postuninstall_cmds=
6869
6870if test -n "$RANLIB"; then
6871  case $host_os in
6872  openbsd*)
6873    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6874    ;;
6875  *)
6876    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6877    ;;
6878  esac
6879  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6880fi
6881
6882for cc_temp in $compiler""; do
6883  case $cc_temp in
6884    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6885    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6886    \-*) ;;
6887    *) break;;
6888  esac
6889done
6890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891
6892
6893# Only perform the check for file, if the check method requires it
6894case $deplibs_check_method in
6895file_magic*)
6896  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6897    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6898echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6899if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6900  echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902  case $MAGIC_CMD in
6903[\\/*] |  ?:[\\/]*)
6904  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6905  ;;
6906*)
6907  lt_save_MAGIC_CMD="$MAGIC_CMD"
6908  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6909  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6910  for ac_dir in $ac_dummy; do
6911    IFS="$lt_save_ifs"
6912    test -z "$ac_dir" && ac_dir=.
6913    if test -f $ac_dir/${ac_tool_prefix}file; then
6914      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6915      if test -n "$file_magic_test_file"; then
6916	case $deplibs_check_method in
6917	"file_magic "*)
6918	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6919	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6920	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6921	    $EGREP "$file_magic_regex" > /dev/null; then
6922	    :
6923	  else
6924	    cat <<EOF 1>&2
6925
6926*** Warning: the command libtool uses to detect shared libraries,
6927*** $file_magic_cmd, produces output that libtool cannot recognize.
6928*** The result is that libtool may fail to recognize shared libraries
6929*** as such.  This will affect the creation of libtool libraries that
6930*** depend on shared libraries, but programs linked with such libtool
6931*** libraries will work regardless of this problem.  Nevertheless, you
6932*** may want to report the problem to your system manager and/or to
6933*** bug-libtool@gnu.org
6934
6935EOF
6936	  fi ;;
6937	esac
6938      fi
6939      break
6940    fi
6941  done
6942  IFS="$lt_save_ifs"
6943  MAGIC_CMD="$lt_save_MAGIC_CMD"
6944  ;;
6945esac
6946fi
6947
6948MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949if test -n "$MAGIC_CMD"; then
6950  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6951echo "${ECHO_T}$MAGIC_CMD" >&6; }
6952else
6953  { echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6; }
6955fi
6956
6957if test -z "$lt_cv_path_MAGIC_CMD"; then
6958  if test -n "$ac_tool_prefix"; then
6959    { echo "$as_me:$LINENO: checking for file" >&5
6960echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6961if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6962  echo $ECHO_N "(cached) $ECHO_C" >&6
6963else
6964  case $MAGIC_CMD in
6965[\\/*] |  ?:[\\/]*)
6966  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6967  ;;
6968*)
6969  lt_save_MAGIC_CMD="$MAGIC_CMD"
6970  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6971  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6972  for ac_dir in $ac_dummy; do
6973    IFS="$lt_save_ifs"
6974    test -z "$ac_dir" && ac_dir=.
6975    if test -f $ac_dir/file; then
6976      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6977      if test -n "$file_magic_test_file"; then
6978	case $deplibs_check_method in
6979	"file_magic "*)
6980	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6981	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6982	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6983	    $EGREP "$file_magic_regex" > /dev/null; then
6984	    :
6985	  else
6986	    cat <<EOF 1>&2
6987
6988*** Warning: the command libtool uses to detect shared libraries,
6989*** $file_magic_cmd, produces output that libtool cannot recognize.
6990*** The result is that libtool may fail to recognize shared libraries
6991*** as such.  This will affect the creation of libtool libraries that
6992*** depend on shared libraries, but programs linked with such libtool
6993*** libraries will work regardless of this problem.  Nevertheless, you
6994*** may want to report the problem to your system manager and/or to
6995*** bug-libtool@gnu.org
6996
6997EOF
6998	  fi ;;
6999	esac
7000      fi
7001      break
7002    fi
7003  done
7004  IFS="$lt_save_ifs"
7005  MAGIC_CMD="$lt_save_MAGIC_CMD"
7006  ;;
7007esac
7008fi
7009
7010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011if test -n "$MAGIC_CMD"; then
7012  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7013echo "${ECHO_T}$MAGIC_CMD" >&6; }
7014else
7015  { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019  else
7020    MAGIC_CMD=:
7021  fi
7022fi
7023
7024  fi
7025  ;;
7026esac
7027
7028enable_dlopen=no
7029enable_win32_dll=no
7030
7031# Check whether --enable-libtool-lock was given.
7032if test "${enable_libtool_lock+set}" = set; then
7033  enableval=$enable_libtool_lock;
7034fi
7035
7036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038
7039# Check whether --with-pic was given.
7040if test "${with_pic+set}" = set; then
7041  withval=$with_pic; pic_mode="$withval"
7042else
7043  pic_mode=default
7044fi
7045
7046test -z "$pic_mode" && pic_mode=default
7047
7048# Use C for the default configuration in the libtool script
7049tagname=
7050lt_save_CC="$CC"
7051ac_ext=c
7052ac_cpp='$CPP $CPPFLAGS'
7053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057
7058# Source file extension for C test sources.
7059ac_ext=c
7060
7061# Object file extension for compiled C test sources.
7062objext=o
7063objext=$objext
7064
7065# Code to be used in simple compile tests
7066lt_simple_compile_test_code="int some_variable = 0;\n"
7067
7068# Code to be used in simple link tests
7069lt_simple_link_test_code='int main(){return(0);}\n'
7070
7071
7072# If no C compiler was specified, use CC.
7073LTCC=${LTCC-"$CC"}
7074
7075# If no C compiler flags were specified, use CFLAGS.
7076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077
7078# Allow CC to be a program name with arguments.
7079compiler=$CC
7080
7081
7082# save warnings/boilerplate of simple test code
7083ac_outfile=conftest.$ac_objext
7084printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7086_lt_compiler_boilerplate=`cat conftest.err`
7087$rm conftest*
7088
7089ac_outfile=conftest.$ac_objext
7090printf "$lt_simple_link_test_code" >conftest.$ac_ext
7091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7092_lt_linker_boilerplate=`cat conftest.err`
7093$rm conftest*
7094
7095
7096
7097lt_prog_compiler_no_builtin_flag=
7098
7099if test "$GCC" = yes; then
7100  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7101
7102
7103{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7104echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7105if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7106  echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108  lt_cv_prog_compiler_rtti_exceptions=no
7109  ac_outfile=conftest.$ac_objext
7110   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7111   lt_compiler_flag="-fno-rtti -fno-exceptions"
7112   # Insert the option either (1) after the last *FLAGS variable, or
7113   # (2) before a word containing "conftest.", or (3) at the end.
7114   # Note that $ac_compile itself does not contain backslashes and begins
7115   # with a dollar sign (not a hyphen), so the echo should work correctly.
7116   # The option is referenced via a variable to avoid confusing sed.
7117   lt_compile=`echo "$ac_compile" | $SED \
7118   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120   -e 's:$: $lt_compiler_flag:'`
7121   (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
7122   (eval "$lt_compile" 2>conftest.err)
7123   ac_status=$?
7124   cat conftest.err >&5
7125   echo "$as_me:7125: \$? = $ac_status" >&5
7126   if (exit $ac_status) && test -s "$ac_outfile"; then
7127     # The compiler can only warn and ignore the option if not recognized
7128     # So say no if there are warnings other than the usual output.
7129     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7130     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7131     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7132       lt_cv_prog_compiler_rtti_exceptions=yes
7133     fi
7134   fi
7135   $rm conftest*
7136
7137fi
7138{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7139echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7140
7141if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7142    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7143else
7144    :
7145fi
7146
7147fi
7148
7149lt_prog_compiler_wl=
7150lt_prog_compiler_pic=
7151lt_prog_compiler_static=
7152
7153{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7154echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7155
7156  if test "$GCC" = yes; then
7157    lt_prog_compiler_wl='-Wl,'
7158    lt_prog_compiler_static='-static'
7159
7160    case $host_os in
7161      aix*)
7162      # All AIX code is PIC.
7163      if test "$host_cpu" = ia64; then
7164	# AIX 5 now supports IA64 processor
7165	lt_prog_compiler_static='-Bstatic'
7166      fi
7167      ;;
7168
7169    amigaos*)
7170      # FIXME: we need at least 68020 code to build shared libraries, but
7171      # adding the `-m68020' flag to GCC prevents building anything better,
7172      # like `-m68040'.
7173      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7174      ;;
7175
7176    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7177      # PIC is the default for these OSes.
7178      ;;
7179
7180    mingw* | pw32* | os2*)
7181      # This hack is so that the source file can tell whether it is being
7182      # built for inclusion in a dll (and should export symbols for example).
7183      lt_prog_compiler_pic='-DDLL_EXPORT'
7184      ;;
7185
7186    darwin* | rhapsody*)
7187      # PIC is the default on this platform
7188      # Common symbols not allowed in MH_DYLIB files
7189      lt_prog_compiler_pic='-fno-common'
7190      ;;
7191
7192    interix3*)
7193      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7194      # Instead, we relocate shared libraries at runtime.
7195      ;;
7196
7197    msdosdjgpp*)
7198      # Just because we use GCC doesn't mean we suddenly get shared libraries
7199      # on systems that don't support them.
7200      lt_prog_compiler_can_build_shared=no
7201      enable_shared=no
7202      ;;
7203
7204    sysv4*MP*)
7205      if test -d /usr/nec; then
7206	lt_prog_compiler_pic=-Kconform_pic
7207      fi
7208      ;;
7209
7210    hpux*)
7211      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7212      # not for PA HP-UX.
7213      case $host_cpu in
7214      hppa*64*|ia64*)
7215	# +Z the default
7216	;;
7217      *)
7218	lt_prog_compiler_pic='-fPIC'
7219	;;
7220      esac
7221      ;;
7222
7223    *)
7224      lt_prog_compiler_pic='-fPIC'
7225      ;;
7226    esac
7227  else
7228    # PORTME Check for flag to pass linker flags through the system compiler.
7229    case $host_os in
7230    aix*)
7231      lt_prog_compiler_wl='-Wl,'
7232      if test "$host_cpu" = ia64; then
7233	# AIX 5 now supports IA64 processor
7234	lt_prog_compiler_static='-Bstatic'
7235      else
7236	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7237      fi
7238      ;;
7239      darwin*)
7240        # PIC is the default on this platform
7241        # Common symbols not allowed in MH_DYLIB files
7242       case $cc_basename in
7243         xlc*)
7244         lt_prog_compiler_pic='-qnocommon'
7245         lt_prog_compiler_wl='-Wl,'
7246         ;;
7247       esac
7248       ;;
7249
7250    mingw* | pw32* | os2*)
7251      # This hack is so that the source file can tell whether it is being
7252      # built for inclusion in a dll (and should export symbols for example).
7253      lt_prog_compiler_pic='-DDLL_EXPORT'
7254      ;;
7255
7256    hpux9* | hpux10* | hpux11*)
7257      lt_prog_compiler_wl='-Wl,'
7258      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7259      # not for PA HP-UX.
7260      case $host_cpu in
7261      hppa*64*|ia64*)
7262	# +Z the default
7263	;;
7264      *)
7265	lt_prog_compiler_pic='+Z'
7266	;;
7267      esac
7268      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7269      lt_prog_compiler_static='${wl}-a ${wl}archive'
7270      ;;
7271
7272    irix5* | irix6* | nonstopux*)
7273      lt_prog_compiler_wl='-Wl,'
7274      # PIC (with -KPIC) is the default.
7275      lt_prog_compiler_static='-non_shared'
7276      ;;
7277
7278    newsos6)
7279      lt_prog_compiler_pic='-KPIC'
7280      lt_prog_compiler_static='-Bstatic'
7281      ;;
7282
7283    linux*)
7284      case $cc_basename in
7285      icc* | ecc*)
7286	lt_prog_compiler_wl='-Wl,'
7287	lt_prog_compiler_pic='-KPIC'
7288	lt_prog_compiler_static='-static'
7289        ;;
7290      pgcc* | pgf77* | pgf90* | pgf95*)
7291        # Portland Group compilers (*not* the Pentium gcc compiler,
7292	# which looks to be a dead project)
7293	lt_prog_compiler_wl='-Wl,'
7294	lt_prog_compiler_pic='-fpic'
7295	lt_prog_compiler_static='-Bstatic'
7296        ;;
7297      ccc*)
7298        lt_prog_compiler_wl='-Wl,'
7299        # All Alpha code is PIC.
7300        lt_prog_compiler_static='-non_shared'
7301        ;;
7302      esac
7303      ;;
7304
7305    osf3* | osf4* | osf5*)
7306      lt_prog_compiler_wl='-Wl,'
7307      # All OSF/1 code is PIC.
7308      lt_prog_compiler_static='-non_shared'
7309      ;;
7310
7311    solaris*)
7312      lt_prog_compiler_pic='-KPIC'
7313      lt_prog_compiler_static='-Bstatic'
7314      case $cc_basename in
7315      f77* | f90* | f95*)
7316	lt_prog_compiler_wl='-Qoption ld ';;
7317      *)
7318	lt_prog_compiler_wl='-Wl,';;
7319      esac
7320      ;;
7321
7322    sunos4*)
7323      lt_prog_compiler_wl='-Qoption ld '
7324      lt_prog_compiler_pic='-PIC'
7325      lt_prog_compiler_static='-Bstatic'
7326      ;;
7327
7328    sysv4 | sysv4.2uw2* | sysv4.3*)
7329      lt_prog_compiler_wl='-Wl,'
7330      lt_prog_compiler_pic='-KPIC'
7331      lt_prog_compiler_static='-Bstatic'
7332      ;;
7333
7334    sysv4*MP*)
7335      if test -d /usr/nec ;then
7336	lt_prog_compiler_pic='-Kconform_pic'
7337	lt_prog_compiler_static='-Bstatic'
7338      fi
7339      ;;
7340
7341    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7342      lt_prog_compiler_wl='-Wl,'
7343      lt_prog_compiler_pic='-KPIC'
7344      lt_prog_compiler_static='-Bstatic'
7345      ;;
7346
7347    unicos*)
7348      lt_prog_compiler_wl='-Wl,'
7349      lt_prog_compiler_can_build_shared=no
7350      ;;
7351
7352    uts4*)
7353      lt_prog_compiler_pic='-pic'
7354      lt_prog_compiler_static='-Bstatic'
7355      ;;
7356
7357    *)
7358      lt_prog_compiler_can_build_shared=no
7359      ;;
7360    esac
7361  fi
7362
7363{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7364echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7365
7366#
7367# Check to make sure the PIC flag actually works.
7368#
7369if test -n "$lt_prog_compiler_pic"; then
7370
7371{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7372echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7373if test "${lt_prog_compiler_pic_works+set}" = set; then
7374  echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376  lt_prog_compiler_pic_works=no
7377  ac_outfile=conftest.$ac_objext
7378   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7379   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7380   # Insert the option either (1) after the last *FLAGS variable, or
7381   # (2) before a word containing "conftest.", or (3) at the end.
7382   # Note that $ac_compile itself does not contain backslashes and begins
7383   # with a dollar sign (not a hyphen), so the echo should work correctly.
7384   # The option is referenced via a variable to avoid confusing sed.
7385   lt_compile=`echo "$ac_compile" | $SED \
7386   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7388   -e 's:$: $lt_compiler_flag:'`
7389   (eval echo "\"\$as_me:7389: $lt_compile\"" >&5)
7390   (eval "$lt_compile" 2>conftest.err)
7391   ac_status=$?
7392   cat conftest.err >&5
7393   echo "$as_me:7393: \$? = $ac_status" >&5
7394   if (exit $ac_status) && test -s "$ac_outfile"; then
7395     # The compiler can only warn and ignore the option if not recognized
7396     # So say no if there are warnings other than the usual output.
7397     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7398     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7399     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7400       lt_prog_compiler_pic_works=yes
7401     fi
7402   fi
7403   $rm conftest*
7404
7405fi
7406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7407echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7408
7409if test x"$lt_prog_compiler_pic_works" = xyes; then
7410    case $lt_prog_compiler_pic in
7411     "" | " "*) ;;
7412     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7413     esac
7414else
7415    lt_prog_compiler_pic=
7416     lt_prog_compiler_can_build_shared=no
7417fi
7418
7419fi
7420case $host_os in
7421  # For platforms which do not support PIC, -DPIC is meaningless:
7422  *djgpp*)
7423    lt_prog_compiler_pic=
7424    ;;
7425  *)
7426    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7427    ;;
7428esac
7429
7430#
7431# Check to make sure the static flag actually works.
7432#
7433wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7434{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7435echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7436if test "${lt_prog_compiler_static_works+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  lt_prog_compiler_static_works=no
7440   save_LDFLAGS="$LDFLAGS"
7441   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7442   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7443   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7444     # The linker can only warn and ignore the option if not recognized
7445     # So say no if there are warnings
7446     if test -s conftest.err; then
7447       # Append any errors to the config.log.
7448       cat conftest.err 1>&5
7449       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7450       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451       if diff conftest.exp conftest.er2 >/dev/null; then
7452         lt_prog_compiler_static_works=yes
7453       fi
7454     else
7455       lt_prog_compiler_static_works=yes
7456     fi
7457   fi
7458   $rm conftest*
7459   LDFLAGS="$save_LDFLAGS"
7460
7461fi
7462{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7463echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7464
7465if test x"$lt_prog_compiler_static_works" = xyes; then
7466    :
7467else
7468    lt_prog_compiler_static=
7469fi
7470
7471
7472{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7473echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7474if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7475  echo $ECHO_N "(cached) $ECHO_C" >&6
7476else
7477  lt_cv_prog_compiler_c_o=no
7478   $rm -r conftest 2>/dev/null
7479   mkdir conftest
7480   cd conftest
7481   mkdir out
7482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7483
7484   lt_compiler_flag="-o out/conftest2.$ac_objext"
7485   # Insert the option either (1) after the last *FLAGS variable, or
7486   # (2) before a word containing "conftest.", or (3) at the end.
7487   # Note that $ac_compile itself does not contain backslashes and begins
7488   # with a dollar sign (not a hyphen), so the echo should work correctly.
7489   lt_compile=`echo "$ac_compile" | $SED \
7490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7492   -e 's:$: $lt_compiler_flag:'`
7493   (eval echo "\"\$as_me:7493: $lt_compile\"" >&5)
7494   (eval "$lt_compile" 2>out/conftest.err)
7495   ac_status=$?
7496   cat out/conftest.err >&5
7497   echo "$as_me:7497: \$? = $ac_status" >&5
7498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7499   then
7500     # The compiler can only warn and ignore the option if not recognized
7501     # So say no if there are warnings
7502     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7503     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7504     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7505       lt_cv_prog_compiler_c_o=yes
7506     fi
7507   fi
7508   chmod u+w . 2>&5
7509   $rm conftest*
7510   # SGI C++ compiler will create directory out/ii_files/ for
7511   # template instantiation
7512   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7513   $rm out/* && rmdir out
7514   cd ..
7515   rmdir conftest
7516   $rm conftest*
7517
7518fi
7519{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7520echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7521
7522
7523hard_links="nottested"
7524if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7525  # do not overwrite the value of need_locks provided by the user
7526  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7527echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7528  hard_links=yes
7529  $rm conftest*
7530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7531  touch conftest.a
7532  ln conftest.a conftest.b 2>&5 || hard_links=no
7533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7534  { echo "$as_me:$LINENO: result: $hard_links" >&5
7535echo "${ECHO_T}$hard_links" >&6; }
7536  if test "$hard_links" = no; then
7537    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7538echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7539    need_locks=warn
7540  fi
7541else
7542  need_locks=no
7543fi
7544
7545{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7546echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7547
7548  runpath_var=
7549  allow_undefined_flag=
7550  enable_shared_with_static_runtimes=no
7551  archive_cmds=
7552  archive_expsym_cmds=
7553  old_archive_From_new_cmds=
7554  old_archive_from_expsyms_cmds=
7555  export_dynamic_flag_spec=
7556  whole_archive_flag_spec=
7557  thread_safe_flag_spec=
7558  hardcode_libdir_flag_spec=
7559  hardcode_libdir_flag_spec_ld=
7560  hardcode_libdir_separator=
7561  hardcode_direct=no
7562  hardcode_minus_L=no
7563  hardcode_shlibpath_var=unsupported
7564  link_all_deplibs=unknown
7565  hardcode_automatic=no
7566  module_cmds=
7567  module_expsym_cmds=
7568  always_export_symbols=no
7569  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7570  # include_expsyms should be a list of space-separated symbols to be *always*
7571  # included in the symbol list
7572  include_expsyms=
7573  # exclude_expsyms can be an extended regexp of symbols to exclude
7574  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7575  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7576  # as well as any symbol that contains `d'.
7577  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7578  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7579  # platforms (ab)use it in PIC code, but their linkers get confused if
7580  # the symbol is explicitly referenced.  Since portable code cannot
7581  # rely on this symbol name, it's probably fine to never include it in
7582  # preloaded symbol tables.
7583  extract_expsyms_cmds=
7584  # Just being paranoid about ensuring that cc_basename is set.
7585  for cc_temp in $compiler""; do
7586  case $cc_temp in
7587    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7588    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7589    \-*) ;;
7590    *) break;;
7591  esac
7592done
7593cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7594
7595  case $host_os in
7596  cygwin* | mingw* | pw32*)
7597    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7598    # When not using gcc, we currently assume that we are using
7599    # Microsoft Visual C++.
7600    if test "$GCC" != yes; then
7601      with_gnu_ld=no
7602    fi
7603    ;;
7604  interix*)
7605    # we just hope/assume this is gcc and not c89 (= MSVC++)
7606    with_gnu_ld=yes
7607    ;;
7608  openbsd*)
7609    with_gnu_ld=no
7610    ;;
7611  esac
7612
7613  ld_shlibs=yes
7614  if test "$with_gnu_ld" = yes; then
7615    # If archive_cmds runs LD, not CC, wlarc should be empty
7616    wlarc='${wl}'
7617
7618    # Set some defaults for GNU ld with shared library support. These
7619    # are reset later if shared libraries are not supported. Putting them
7620    # here allows them to be overridden if necessary.
7621    runpath_var=LD_RUN_PATH
7622    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7623    export_dynamic_flag_spec='${wl}--export-dynamic'
7624    # ancient GNU ld didn't support --whole-archive et. al.
7625    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7626	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7627      else
7628  	whole_archive_flag_spec=
7629    fi
7630    supports_anon_versioning=no
7631    case `$LD -v 2>/dev/null` in
7632      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7633      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7634      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7635      *\ 2.11.*) ;; # other 2.11 versions
7636      *) supports_anon_versioning=yes ;;
7637    esac
7638
7639    # See if GNU ld supports shared libraries.
7640    case $host_os in
7641    aix3* | aix4* | aix5*)
7642      # On AIX/PPC, the GNU linker is very broken
7643      if test "$host_cpu" != ia64; then
7644	ld_shlibs=no
7645	cat <<EOF 1>&2
7646
7647*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7648*** to be unable to reliably create shared libraries on AIX.
7649*** Therefore, libtool is disabling shared libraries support.  If you
7650*** really care for shared libraries, you may want to modify your PATH
7651*** so that a non-GNU linker is found, and then restart.
7652
7653EOF
7654      fi
7655      ;;
7656
7657    amigaos*)
7658      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)'
7659      hardcode_libdir_flag_spec='-L$libdir'
7660      hardcode_minus_L=yes
7661
7662      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7663      # that the semantics of dynamic libraries on AmigaOS, at least up
7664      # to version 4, is to share data among multiple programs linked
7665      # with the same dynamic library.  Since this doesn't match the
7666      # behavior of shared libraries on other platforms, we can't use
7667      # them.
7668      ld_shlibs=no
7669      ;;
7670
7671    beos*)
7672      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7673	allow_undefined_flag=unsupported
7674	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7675	# support --undefined.  This deserves some investigation.  FIXME
7676	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677      else
7678	ld_shlibs=no
7679      fi
7680      ;;
7681
7682    cygwin* | mingw* | pw32*)
7683      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7684      # as there is no search path for DLLs.
7685      hardcode_libdir_flag_spec='-L$libdir'
7686      allow_undefined_flag=unsupported
7687      always_export_symbols=no
7688      enable_shared_with_static_runtimes=yes
7689      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7690
7691      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7692        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7693	# If the export-symbols file already is a .def file (1st line
7694	# is EXPORTS), use it as is; otherwise, prepend...
7695	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7696	  cp $export_symbols $output_objdir/$soname.def;
7697	else
7698	  echo EXPORTS > $output_objdir/$soname.def;
7699	  cat $export_symbols >> $output_objdir/$soname.def;
7700	fi~
7701	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7702      else
7703	ld_shlibs=no
7704      fi
7705      ;;
7706
7707    interix3*)
7708      hardcode_direct=no
7709      hardcode_shlibpath_var=no
7710      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7711      export_dynamic_flag_spec='${wl}-E'
7712      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7713      # Instead, shared libraries are loaded at an image base (0x10000000 by
7714      # default) and relocated if they conflict, which is a slow very memory
7715      # consuming and fragmenting process.  To avoid this, we pick a random,
7716      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7717      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7718      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7719      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'
7720      ;;
7721
7722    linux*)
7723      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724	tmp_addflag=
7725	case $cc_basename,$host_cpu in
7726	pgcc*)				# Portland Group C compiler
7727	  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'
7728	  tmp_addflag=' $pic_flag'
7729	  ;;
7730	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7731	  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'
7732	  tmp_addflag=' $pic_flag -Mnomain' ;;
7733	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7734	  tmp_addflag=' -i_dynamic' ;;
7735	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7736	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7737	ifc* | ifort*)			# Intel Fortran compiler
7738	  tmp_addflag=' -nofor_main' ;;
7739	esac
7740	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7741
7742	if test $supports_anon_versioning = yes; then
7743	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7744  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7745  $echo "local: *; };" >> $output_objdir/$libname.ver~
7746	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7747	fi
7748      else
7749	ld_shlibs=no
7750      fi
7751      ;;
7752
7753    netbsd*)
7754      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7755	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7756	wlarc=
7757      else
7758	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760      fi
7761      ;;
7762
7763    solaris*)
7764      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7765	ld_shlibs=no
7766	cat <<EOF 1>&2
7767
7768*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7769*** create shared libraries on Solaris systems.  Therefore, libtool
7770*** is disabling shared libraries support.  We urge you to upgrade GNU
7771*** binutils to release 2.9.1 or newer.  Another option is to modify
7772*** your PATH or compiler configuration so that the native linker is
7773*** used, and then restart.
7774
7775EOF
7776      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7777	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779      else
7780	ld_shlibs=no
7781      fi
7782      ;;
7783
7784    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7785      case `$LD -v 2>&1` in
7786        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7787	ld_shlibs=no
7788	cat <<_LT_EOF 1>&2
7789
7790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7791*** reliably create shared libraries on SCO systems.  Therefore, libtool
7792*** is disabling shared libraries support.  We urge you to upgrade GNU
7793*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7794*** your PATH or compiler configuration so that the native linker is
7795*** used, and then restart.
7796
7797_LT_EOF
7798	;;
7799	*)
7800	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7802	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7803	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7804	  else
7805	    ld_shlibs=no
7806	  fi
7807	;;
7808      esac
7809      ;;
7810
7811    sunos4*)
7812      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7813      wlarc=
7814      hardcode_direct=yes
7815      hardcode_shlibpath_var=no
7816      ;;
7817
7818    *)
7819      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7820	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7821	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7822      else
7823	ld_shlibs=no
7824      fi
7825      ;;
7826    esac
7827
7828    if test "$ld_shlibs" = no; then
7829      runpath_var=
7830      hardcode_libdir_flag_spec=
7831      export_dynamic_flag_spec=
7832      whole_archive_flag_spec=
7833    fi
7834  else
7835    # PORTME fill in a description of your system's linker (not GNU ld)
7836    case $host_os in
7837    aix3*)
7838      allow_undefined_flag=unsupported
7839      always_export_symbols=yes
7840      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'
7841      # Note: this linker hardcodes the directories in LIBPATH if there
7842      # are no directories specified by -L.
7843      hardcode_minus_L=yes
7844      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7845	# Neither direct hardcoding nor static linking is supported with a
7846	# broken collect2.
7847	hardcode_direct=unsupported
7848      fi
7849      ;;
7850
7851    aix4* | aix5*)
7852      if test "$host_cpu" = ia64; then
7853	# On IA64, the linker does run time linking by default, so we don't
7854	# have to do anything special.
7855	aix_use_runtimelinking=no
7856	exp_sym_flag='-Bexport'
7857	no_entry_flag=""
7858      else
7859	# If we're using GNU nm, then we don't want the "-C" option.
7860	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7861	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7862	  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'
7863	else
7864	  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'
7865	fi
7866	aix_use_runtimelinking=no
7867
7868	# Test if we are trying to use run time linking or normal
7869	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7870	# need to do runtime linking.
7871	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7872	  for ld_flag in $LDFLAGS; do
7873  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7874  	    aix_use_runtimelinking=yes
7875  	    break
7876  	  fi
7877	  done
7878	  ;;
7879	esac
7880
7881	exp_sym_flag='-bexport'
7882	no_entry_flag='-bnoentry'
7883      fi
7884
7885      # When large executables or shared objects are built, AIX ld can
7886      # have problems creating the table of contents.  If linking a library
7887      # or program results in "error TOC overflow" add -mminimal-toc to
7888      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7889      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7890
7891      archive_cmds=''
7892      hardcode_direct=yes
7893      hardcode_libdir_separator=':'
7894      link_all_deplibs=yes
7895
7896      if test "$GCC" = yes; then
7897	case $host_os in aix4.[012]|aix4.[012].*)
7898	# We only want to do this on AIX 4.2 and lower, the check
7899	# below for broken collect2 doesn't work under 4.3+
7900	  collect2name=`${CC} -print-prog-name=collect2`
7901	  if test -f "$collect2name" && \
7902  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7903	  then
7904  	  # We have reworked collect2
7905  	  hardcode_direct=yes
7906	  else
7907  	  # We have old collect2
7908  	  hardcode_direct=unsupported
7909  	  # It fails to find uninstalled libraries when the uninstalled
7910  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7911  	  # to unsupported forces relinking
7912  	  hardcode_minus_L=yes
7913  	  hardcode_libdir_flag_spec='-L$libdir'
7914  	  hardcode_libdir_separator=
7915	  fi
7916	  ;;
7917	esac
7918	shared_flag='-shared'
7919	if test "$aix_use_runtimelinking" = yes; then
7920	  shared_flag="$shared_flag "'${wl}-G'
7921	fi
7922      else
7923	# not using gcc
7924	if test "$host_cpu" = ia64; then
7925  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7926  	# chokes on -Wl,-G. The following line is correct:
7927	  shared_flag='-G'
7928	else
7929	  if test "$aix_use_runtimelinking" = yes; then
7930	    shared_flag='${wl}-G'
7931	  else
7932	    shared_flag='${wl}-bM:SRE'
7933	  fi
7934	fi
7935      fi
7936
7937      # It seems that -bexpall does not export symbols beginning with
7938      # underscore (_), so it is better to generate a list of symbols to export.
7939      always_export_symbols=yes
7940      if test "$aix_use_runtimelinking" = yes; then
7941	# Warning - without using the other runtime loading flags (-brtl),
7942	# -berok will link without error, but may produce a broken library.
7943	allow_undefined_flag='-berok'
7944       # Determine the default libpath from the value encoded in an empty executable.
7945       cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h.  */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
7950/* end confdefs.h.  */
7951
7952int
7953main ()
7954{
7955
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (ac_try="$ac_link"
7962case "(($ac_try" in
7963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964  *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967  (eval "$ac_link") 2>conftest.er1
7968  ac_status=$?
7969  grep -v '^ *+' conftest.er1 >conftest.err
7970  rm -f conftest.er1
7971  cat conftest.err >&5
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); } && {
7974	 test -z "$ac_c_werror_flag" ||
7975	 test ! -s conftest.err
7976       } && test -s conftest$ac_exeext &&
7977       $as_test_x conftest$ac_exeext; then
7978
7979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7980}'`
7981# Check for a 64-bit object if we didn't find anything.
7982if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7983}'`; fi
7984else
7985  echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988
7989fi
7990
7991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992      conftest$ac_exeext conftest.$ac_ext
7993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7994
7995       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7996	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"
7997       else
7998	if test "$host_cpu" = ia64; then
7999	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8000	  allow_undefined_flag="-z nodefs"
8001	  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"
8002	else
8003	 # Determine the default libpath from the value encoded in an empty executable.
8004	 cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h.  */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h.  */
8010
8011int
8012main ()
8013{
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext conftest$ac_exeext
8020if { (ac_try="$ac_link"
8021case "(($ac_try" in
8022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023  *) ac_try_echo=$ac_try;;
8024esac
8025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026  (eval "$ac_link") 2>conftest.er1
8027  ac_status=$?
8028  grep -v '^ *+' conftest.er1 >conftest.err
8029  rm -f conftest.er1
8030  cat conftest.err >&5
8031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032  (exit $ac_status); } && {
8033	 test -z "$ac_c_werror_flag" ||
8034	 test ! -s conftest.err
8035       } && test -s conftest$ac_exeext &&
8036       $as_test_x conftest$ac_exeext; then
8037
8038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8039}'`
8040# Check for a 64-bit object if we didn't find anything.
8041if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8042}'`; fi
8043else
8044  echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047
8048fi
8049
8050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8051      conftest$ac_exeext conftest.$ac_ext
8052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8053
8054	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8055	  # Warning - without using the other run time loading flags,
8056	  # -berok will link without error, but may produce a broken library.
8057	  no_undefined_flag=' ${wl}-bernotok'
8058	  allow_undefined_flag=' ${wl}-berok'
8059	  # Exported symbols can be pulled into shared objects from archives
8060	  whole_archive_flag_spec='$convenience'
8061	  archive_cmds_need_lc=yes
8062	  # This is similar to how AIX traditionally builds its shared libraries.
8063	  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'
8064	fi
8065      fi
8066      ;;
8067
8068    amigaos*)
8069      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)'
8070      hardcode_libdir_flag_spec='-L$libdir'
8071      hardcode_minus_L=yes
8072      # see comment about different semantics on the GNU ld section
8073      ld_shlibs=no
8074      ;;
8075
8076    bsdi[45]*)
8077      export_dynamic_flag_spec=-rdynamic
8078      ;;
8079
8080    cygwin* | mingw* | pw32*)
8081      # When not using gcc, we currently assume that we are using
8082      # Microsoft Visual C++.
8083      # hardcode_libdir_flag_spec is actually meaningless, as there is
8084      # no search path for DLLs.
8085      hardcode_libdir_flag_spec=' '
8086      allow_undefined_flag=unsupported
8087      # Tell ltmain to make .lib files, not .a files.
8088      libext=lib
8089      # Tell ltmain to make .dll files, not .so files.
8090      shrext_cmds=".dll"
8091      # FIXME: Setting linknames here is a bad hack.
8092      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8093      # The linker will automatically build a .lib file if we build a DLL.
8094      old_archive_From_new_cmds='true'
8095      # FIXME: Should let the user specify the lib program.
8096      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8097      fix_srcfile_path='`cygpath -w "$srcfile"`'
8098      enable_shared_with_static_runtimes=yes
8099      ;;
8100
8101    darwin* | rhapsody*)
8102      case $host_os in
8103        rhapsody* | darwin1.[012])
8104         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8105         ;;
8106       *) # Darwin 1.3 on
8107         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8108           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8109         else
8110           case ${MACOSX_DEPLOYMENT_TARGET} in
8111             10.[012])
8112               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8113               ;;
8114             10.*)
8115               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8116               ;;
8117           esac
8118         fi
8119         ;;
8120      esac
8121      archive_cmds_need_lc=no
8122      hardcode_direct=no
8123      hardcode_automatic=yes
8124      hardcode_shlibpath_var=unsupported
8125      whole_archive_flag_spec=''
8126      link_all_deplibs=yes
8127    if test "$GCC" = yes ; then
8128    	output_verbose_link_cmd='echo'
8129        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8130      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8131      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8132      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8133      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}'
8134    else
8135      case $cc_basename in
8136        xlc*)
8137         output_verbose_link_cmd='echo'
8138         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8139         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8140          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8141         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8142          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}'
8143          ;;
8144       *)
8145         ld_shlibs=no
8146          ;;
8147      esac
8148    fi
8149      ;;
8150
8151    dgux*)
8152      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153      hardcode_libdir_flag_spec='-L$libdir'
8154      hardcode_shlibpath_var=no
8155      ;;
8156
8157    freebsd1*)
8158      ld_shlibs=no
8159      ;;
8160
8161    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8162    # support.  Future versions do this automatically, but an explicit c++rt0.o
8163    # does not break anything, and helps significantly (at the cost of a little
8164    # extra space).
8165    freebsd2.2*)
8166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8167      hardcode_libdir_flag_spec='-R$libdir'
8168      hardcode_direct=yes
8169      hardcode_shlibpath_var=no
8170      ;;
8171
8172    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8173    freebsd2*)
8174      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8175      hardcode_direct=yes
8176      hardcode_minus_L=yes
8177      hardcode_shlibpath_var=no
8178      ;;
8179
8180    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8181    freebsd* | kfreebsd*-gnu | dragonfly*)
8182      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8183      hardcode_libdir_flag_spec='-R$libdir'
8184      hardcode_direct=yes
8185      hardcode_shlibpath_var=no
8186      ;;
8187
8188    hpux9*)
8189      if test "$GCC" = yes; then
8190	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'
8191      else
8192	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'
8193      fi
8194      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8195      hardcode_libdir_separator=:
8196      hardcode_direct=yes
8197
8198      # hardcode_minus_L: Not really in the search PATH,
8199      # but as the default location of the library.
8200      hardcode_minus_L=yes
8201      export_dynamic_flag_spec='${wl}-E'
8202      ;;
8203
8204    hpux10*)
8205      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8206	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207      else
8208	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8209      fi
8210      if test "$with_gnu_ld" = no; then
8211	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8212	hardcode_libdir_separator=:
8213
8214	hardcode_direct=yes
8215	export_dynamic_flag_spec='${wl}-E'
8216
8217	# hardcode_minus_L: Not really in the search PATH,
8218	# but as the default location of the library.
8219	hardcode_minus_L=yes
8220      fi
8221      ;;
8222
8223    hpux11*)
8224      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225	case $host_cpu in
8226	hppa*64*)
8227	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228	  ;;
8229	ia64*)
8230	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8231	  ;;
8232	*)
8233	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234	  ;;
8235	esac
8236      else
8237	case $host_cpu in
8238	hppa*64*)
8239	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8240	  ;;
8241	ia64*)
8242	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8243	  ;;
8244	*)
8245	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8246	  ;;
8247	esac
8248      fi
8249      if test "$with_gnu_ld" = no; then
8250	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8251	hardcode_libdir_separator=:
8252
8253	case $host_cpu in
8254	hppa*64*|ia64*)
8255	  hardcode_libdir_flag_spec_ld='+b $libdir'
8256	  hardcode_direct=no
8257	  hardcode_shlibpath_var=no
8258	  ;;
8259	*)
8260	  hardcode_direct=yes
8261	  export_dynamic_flag_spec='${wl}-E'
8262
8263	  # hardcode_minus_L: Not really in the search PATH,
8264	  # but as the default location of the library.
8265	  hardcode_minus_L=yes
8266	  ;;
8267	esac
8268      fi
8269      ;;
8270
8271    irix5* | irix6* | nonstopux*)
8272      if test "$GCC" = yes; then
8273	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'
8274      else
8275	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'
8276	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8277      fi
8278      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8279      hardcode_libdir_separator=:
8280      link_all_deplibs=yes
8281      ;;
8282
8283    netbsd*)
8284      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8285	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8286      else
8287	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8288      fi
8289      hardcode_libdir_flag_spec='-R$libdir'
8290      hardcode_direct=yes
8291      hardcode_shlibpath_var=no
8292      ;;
8293
8294    newsos6)
8295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8296      hardcode_direct=yes
8297      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298      hardcode_libdir_separator=:
8299      hardcode_shlibpath_var=no
8300      ;;
8301
8302    openbsd*)
8303      hardcode_direct=yes
8304      hardcode_shlibpath_var=no
8305      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8306	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8307	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8308	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309	export_dynamic_flag_spec='${wl}-E'
8310      else
8311       case $host_os in
8312	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8313	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8314	   hardcode_libdir_flag_spec='-R$libdir'
8315	   ;;
8316	 *)
8317	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8318	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8319	   ;;
8320       esac
8321      fi
8322      ;;
8323
8324    os2*)
8325      hardcode_libdir_flag_spec='-L$libdir'
8326      hardcode_minus_L=yes
8327      allow_undefined_flag=unsupported
8328      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'
8329      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8330      ;;
8331
8332    osf3*)
8333      if test "$GCC" = yes; then
8334	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8335	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'
8336      else
8337	allow_undefined_flag=' -expect_unresolved \*'
8338	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'
8339      fi
8340      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341      hardcode_libdir_separator=:
8342      ;;
8343
8344    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8345      if test "$GCC" = yes; then
8346	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8347	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'
8348	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8349      else
8350	allow_undefined_flag=' -expect_unresolved \*'
8351	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'
8352	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8353	$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'
8354
8355	# Both c and cxx compiler support -rpath directly
8356	hardcode_libdir_flag_spec='-rpath $libdir'
8357      fi
8358      hardcode_libdir_separator=:
8359      ;;
8360
8361    solaris*)
8362      no_undefined_flag=' -z text'
8363      if test "$GCC" = yes; then
8364	wlarc='${wl}'
8365	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8367	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8368      else
8369	wlarc=''
8370	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8372  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8373      fi
8374      hardcode_libdir_flag_spec='-R$libdir'
8375      hardcode_shlibpath_var=no
8376      case $host_os in
8377      solaris2.[0-5] | solaris2.[0-5].*) ;;
8378      *)
8379 	# The compiler driver will combine linker options so we
8380 	# cannot just pass the convience library names through
8381 	# without $wl, iff we do not link with $LD.
8382 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8383 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8384 	case $wlarc in
8385 	'')
8386 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8387 	*)
8388 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8389 	esac ;;
8390      esac
8391      link_all_deplibs=yes
8392      ;;
8393
8394    sunos4*)
8395      if test "x$host_vendor" = xsequent; then
8396	# Use $CC to link under sequent, because it throws in some extra .o
8397	# files that make .init and .fini sections work.
8398	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399      else
8400	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8401      fi
8402      hardcode_libdir_flag_spec='-L$libdir'
8403      hardcode_direct=yes
8404      hardcode_minus_L=yes
8405      hardcode_shlibpath_var=no
8406      ;;
8407
8408    sysv4)
8409      case $host_vendor in
8410	sni)
8411	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412	  hardcode_direct=yes # is this really true???
8413	;;
8414	siemens)
8415	  ## LD is ld it makes a PLAMLIB
8416	  ## CC just makes a GrossModule.
8417	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8418	  reload_cmds='$CC -r -o $output$reload_objs'
8419	  hardcode_direct=no
8420        ;;
8421	motorola)
8422	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8424	;;
8425      esac
8426      runpath_var='LD_RUN_PATH'
8427      hardcode_shlibpath_var=no
8428      ;;
8429
8430    sysv4.3*)
8431      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432      hardcode_shlibpath_var=no
8433      export_dynamic_flag_spec='-Bexport'
8434      ;;
8435
8436    sysv4*MP*)
8437      if test -d /usr/nec; then
8438	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439	hardcode_shlibpath_var=no
8440	runpath_var=LD_RUN_PATH
8441	hardcode_runpath_var=yes
8442	ld_shlibs=yes
8443      fi
8444      ;;
8445
8446    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8447      no_undefined_flag='${wl}-z,text'
8448      archive_cmds_need_lc=no
8449      hardcode_shlibpath_var=no
8450      runpath_var='LD_RUN_PATH'
8451
8452      if test "$GCC" = yes; then
8453	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8454	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8455      else
8456	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8457	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8458      fi
8459      ;;
8460
8461    sysv5* | sco3.2v5* | sco5v6*)
8462      # Note: We can NOT use -z defs as we might desire, because we do not
8463      # link with -lc, and that would cause any symbols used from libc to
8464      # always be unresolved, which means just about no library would
8465      # ever link correctly.  If we're not using GNU ld we use -z text
8466      # though, which does catch some bad symbols but isn't as heavy-handed
8467      # as -z defs.
8468      no_undefined_flag='${wl}-z,text'
8469      allow_undefined_flag='${wl}-z,nodefs'
8470      archive_cmds_need_lc=no
8471      hardcode_shlibpath_var=no
8472      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8473      hardcode_libdir_separator=':'
8474      link_all_deplibs=yes
8475      export_dynamic_flag_spec='${wl}-Bexport'
8476      runpath_var='LD_RUN_PATH'
8477
8478      if test "$GCC" = yes; then
8479	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8480	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8481      else
8482	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8483	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8484      fi
8485      ;;
8486
8487    uts4*)
8488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489      hardcode_libdir_flag_spec='-L$libdir'
8490      hardcode_shlibpath_var=no
8491      ;;
8492
8493    *)
8494      ld_shlibs=no
8495      ;;
8496    esac
8497  fi
8498
8499{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8500echo "${ECHO_T}$ld_shlibs" >&6; }
8501test "$ld_shlibs" = no && can_build_shared=no
8502
8503#
8504# Do we need to explicitly link libc?
8505#
8506case "x$archive_cmds_need_lc" in
8507x|xyes)
8508  # Assume -lc should be added
8509  archive_cmds_need_lc=yes
8510
8511  if test "$enable_shared" = yes && test "$GCC" = yes; then
8512    case $archive_cmds in
8513    *'~'*)
8514      # FIXME: we may have to deal with multi-command sequences.
8515      ;;
8516    '$CC '*)
8517      # Test whether the compiler implicitly links with -lc since on some
8518      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8519      # to ld, don't add -lc before -lgcc.
8520      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8521echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8522      $rm conftest*
8523      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524
8525      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526  (eval $ac_compile) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } 2>conftest.err; then
8530        soname=conftest
8531        lib=conftest
8532        libobjs=conftest.$ac_objext
8533        deplibs=
8534        wl=$lt_prog_compiler_wl
8535	pic_flag=$lt_prog_compiler_pic
8536        compiler_flags=-v
8537        linker_flags=-v
8538        verstring=
8539        output_objdir=.
8540        libname=conftest
8541        lt_save_allow_undefined_flag=$allow_undefined_flag
8542        allow_undefined_flag=
8543        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8544  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8545  ac_status=$?
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); }
8548        then
8549	  archive_cmds_need_lc=no
8550        else
8551	  archive_cmds_need_lc=yes
8552        fi
8553        allow_undefined_flag=$lt_save_allow_undefined_flag
8554      else
8555        cat conftest.err 1>&5
8556      fi
8557      $rm conftest*
8558      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8559echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8560      ;;
8561    esac
8562  fi
8563  ;;
8564esac
8565
8566{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8567echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8568library_names_spec=
8569libname_spec='lib$name'
8570soname_spec=
8571shrext_cmds=".so"
8572postinstall_cmds=
8573postuninstall_cmds=
8574finish_cmds=
8575finish_eval=
8576shlibpath_var=
8577shlibpath_overrides_runpath=unknown
8578version_type=none
8579dynamic_linker="$host_os ld.so"
8580sys_lib_dlsearch_path_spec="/lib /usr/lib"
8581if test "$GCC" = yes; then
8582  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8583  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8584    # if the path contains ";" then we assume it to be the separator
8585    # otherwise default to the standard path separator (i.e. ":") - it is
8586    # assumed that no part of a normal pathname contains ";" but that should
8587    # okay in the real world where ";" in dirpaths is itself problematic.
8588    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8589  else
8590    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8591  fi
8592else
8593  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8594fi
8595need_lib_prefix=unknown
8596hardcode_into_libs=no
8597
8598# when you set need_version to no, make sure it does not cause -set_version
8599# flags to be left without arguments
8600need_version=unknown
8601
8602case $host_os in
8603aix3*)
8604  version_type=linux
8605  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8606  shlibpath_var=LIBPATH
8607
8608  # AIX 3 has no versioning support, so we append a major version to the name.
8609  soname_spec='${libname}${release}${shared_ext}$major'
8610  ;;
8611
8612aix4* | aix5*)
8613  version_type=linux
8614  need_lib_prefix=no
8615  need_version=no
8616  hardcode_into_libs=yes
8617  if test "$host_cpu" = ia64; then
8618    # AIX 5 supports IA64
8619    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8620    shlibpath_var=LD_LIBRARY_PATH
8621  else
8622    # With GCC up to 2.95.x, collect2 would create an import file
8623    # for dependence libraries.  The import file would start with
8624    # the line `#! .'.  This would cause the generated library to
8625    # depend on `.', always an invalid library.  This was fixed in
8626    # development snapshots of GCC prior to 3.0.
8627    case $host_os in
8628      aix4 | aix4.[01] | aix4.[01].*)
8629      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8630	   echo ' yes '
8631	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8632	:
8633      else
8634	can_build_shared=no
8635      fi
8636      ;;
8637    esac
8638    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8639    # soname into executable. Probably we can add versioning support to
8640    # collect2, so additional links can be useful in future.
8641    if test "$aix_use_runtimelinking" = yes; then
8642      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8643      # instead of lib<name>.a to let people know that these are not
8644      # typical AIX shared libraries.
8645      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646    else
8647      # We preserve .a as extension for shared libraries through AIX4.2
8648      # and later when we are not doing run time linking.
8649      library_names_spec='${libname}${release}.a $libname.a'
8650      soname_spec='${libname}${release}${shared_ext}$major'
8651    fi
8652    shlibpath_var=LIBPATH
8653  fi
8654  ;;
8655
8656amigaos*)
8657  library_names_spec='$libname.ixlibrary $libname.a'
8658  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8659  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'
8660  ;;
8661
8662beos*)
8663  library_names_spec='${libname}${shared_ext}'
8664  dynamic_linker="$host_os ld.so"
8665  shlibpath_var=LIBRARY_PATH
8666  ;;
8667
8668bsdi[45]*)
8669  version_type=linux
8670  need_version=no
8671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672  soname_spec='${libname}${release}${shared_ext}$major'
8673  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8674  shlibpath_var=LD_LIBRARY_PATH
8675  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8676  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8677  # the default ld.so.conf also contains /usr/contrib/lib and
8678  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8679  # libtool to hard-code these into programs
8680  ;;
8681
8682cygwin* | mingw* | pw32*)
8683  version_type=windows
8684  shrext_cmds=".dll"
8685  need_version=no
8686  need_lib_prefix=no
8687
8688  case $GCC,$host_os in
8689  yes,cygwin* | yes,mingw* | yes,pw32*)
8690    library_names_spec='$libname.dll.a'
8691    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8692    postinstall_cmds='base_file=`basename \${file}`~
8693      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8694      dldir=$destdir/`dirname \$dlpath`~
8695      test -d \$dldir || mkdir -p \$dldir~
8696      $install_prog $dir/$dlname \$dldir/$dlname~
8697      chmod a+x \$dldir/$dlname'
8698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8699      dlpath=$dir/\$dldll~
8700       $rm \$dlpath'
8701    shlibpath_overrides_runpath=yes
8702
8703    case $host_os in
8704    cygwin*)
8705      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8706      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8708      ;;
8709    mingw*)
8710      # MinGW DLLs use traditional 'lib' prefix
8711      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8714        # It is most probably a Windows format PATH printed by
8715        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8716        # path with ; separators, and with drive letters. We can handle the
8717        # drive letters (cygwin fileutils understands them), so leave them,
8718        # especially as we might pass files found there to a mingw objdump,
8719        # which wouldn't understand a cygwinified path. Ahh.
8720        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8721      else
8722        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8723      fi
8724      ;;
8725    pw32*)
8726      # pw32 DLLs use 'pw' prefix rather than 'lib'
8727      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8728      ;;
8729    esac
8730    ;;
8731
8732  *)
8733    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8734    ;;
8735  esac
8736  dynamic_linker='Win32 ld.exe'
8737  # FIXME: first we should search . and the directory the executable is in
8738  shlibpath_var=PATH
8739  ;;
8740
8741darwin* | rhapsody*)
8742  dynamic_linker="$host_os dyld"
8743  version_type=darwin
8744  need_lib_prefix=no
8745  need_version=no
8746  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8747  soname_spec='${libname}${release}${major}$shared_ext'
8748  shlibpath_overrides_runpath=yes
8749  shlibpath_var=DYLD_LIBRARY_PATH
8750  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8751  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8752  if test "$GCC" = yes; then
8753    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8754  else
8755    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8756  fi
8757  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8758  ;;
8759
8760dgux*)
8761  version_type=linux
8762  need_lib_prefix=no
8763  need_version=no
8764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8765  soname_spec='${libname}${release}${shared_ext}$major'
8766  shlibpath_var=LD_LIBRARY_PATH
8767  ;;
8768
8769freebsd1*)
8770  dynamic_linker=no
8771  ;;
8772
8773kfreebsd*-gnu)
8774  version_type=linux
8775  need_lib_prefix=no
8776  need_version=no
8777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8778  soname_spec='${libname}${release}${shared_ext}$major'
8779  shlibpath_var=LD_LIBRARY_PATH
8780  shlibpath_overrides_runpath=no
8781  hardcode_into_libs=yes
8782  dynamic_linker='GNU ld.so'
8783  ;;
8784
8785freebsd* | dragonfly*)
8786  # DragonFly does not have aout.  When/if they implement a new
8787  # versioning mechanism, adjust this.
8788  if test -x /usr/bin/objformat; then
8789    objformat=`/usr/bin/objformat`
8790  else
8791    case $host_os in
8792    freebsd[123]*) objformat=aout ;;
8793    *) objformat=elf ;;
8794    esac
8795  fi
8796  version_type=freebsd-$objformat
8797  case $version_type in
8798    freebsd-elf*)
8799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8800      need_version=no
8801      need_lib_prefix=no
8802      ;;
8803    freebsd-*)
8804      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8805      need_version=yes
8806      ;;
8807  esac
8808  shlibpath_var=LD_LIBRARY_PATH
8809  case $host_os in
8810  freebsd2*)
8811    shlibpath_overrides_runpath=yes
8812    ;;
8813  freebsd3.[01]* | freebsdelf3.[01]*)
8814    shlibpath_overrides_runpath=yes
8815    hardcode_into_libs=yes
8816    ;;
8817  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8818  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8819    shlibpath_overrides_runpath=no
8820    hardcode_into_libs=yes
8821    ;;
8822  freebsd*) # from 4.6 on
8823    shlibpath_overrides_runpath=yes
8824    hardcode_into_libs=yes
8825    ;;
8826  esac
8827  ;;
8828
8829gnu*)
8830  version_type=linux
8831  need_lib_prefix=no
8832  need_version=no
8833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8834  soname_spec='${libname}${release}${shared_ext}$major'
8835  shlibpath_var=LD_LIBRARY_PATH
8836  hardcode_into_libs=yes
8837  ;;
8838
8839hpux9* | hpux10* | hpux11*)
8840  # Give a soname corresponding to the major version so that dld.sl refuses to
8841  # link against other versions.
8842  version_type=sunos
8843  need_lib_prefix=no
8844  need_version=no
8845  case $host_cpu in
8846  ia64*)
8847    shrext_cmds='.so'
8848    hardcode_into_libs=yes
8849    dynamic_linker="$host_os dld.so"
8850    shlibpath_var=LD_LIBRARY_PATH
8851    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853    soname_spec='${libname}${release}${shared_ext}$major'
8854    if test "X$HPUX_IA64_MODE" = X32; then
8855      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8856    else
8857      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8858    fi
8859    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8860    ;;
8861   hppa*64*)
8862     shrext_cmds='.sl'
8863     hardcode_into_libs=yes
8864     dynamic_linker="$host_os dld.sl"
8865     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868     soname_spec='${libname}${release}${shared_ext}$major'
8869     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8870     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871     ;;
8872   *)
8873    shrext_cmds='.sl'
8874    dynamic_linker="$host_os dld.sl"
8875    shlibpath_var=SHLIB_PATH
8876    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878    soname_spec='${libname}${release}${shared_ext}$major'
8879    ;;
8880  esac
8881  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8882  postinstall_cmds='chmod 555 $lib'
8883  ;;
8884
8885interix3*)
8886  version_type=linux
8887  need_lib_prefix=no
8888  need_version=no
8889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890  soname_spec='${libname}${release}${shared_ext}$major'
8891  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8892  shlibpath_var=LD_LIBRARY_PATH
8893  shlibpath_overrides_runpath=no
8894  hardcode_into_libs=yes
8895  ;;
8896
8897irix5* | irix6* | nonstopux*)
8898  case $host_os in
8899    nonstopux*) version_type=nonstopux ;;
8900    *)
8901	if test "$lt_cv_prog_gnu_ld" = yes; then
8902		version_type=linux
8903	else
8904		version_type=irix
8905	fi ;;
8906  esac
8907  need_lib_prefix=no
8908  need_version=no
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8911  case $host_os in
8912  irix5* | nonstopux*)
8913    libsuff= shlibsuff=
8914    ;;
8915  *)
8916    case $LD in # libtool.m4 will add one of these switches to LD
8917    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8918      libsuff= shlibsuff= libmagic=32-bit;;
8919    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8920      libsuff=32 shlibsuff=N32 libmagic=N32;;
8921    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8922      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8923    *) libsuff= shlibsuff= libmagic=never-match;;
8924    esac
8925    ;;
8926  esac
8927  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8928  shlibpath_overrides_runpath=no
8929  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8930  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8931  hardcode_into_libs=yes
8932  ;;
8933
8934# No shared lib support for Linux oldld, aout, or coff.
8935linux*oldld* | linux*aout* | linux*coff*)
8936  dynamic_linker=no
8937  ;;
8938
8939# This must be Linux ELF.
8940linux*)
8941  version_type=linux
8942  need_lib_prefix=no
8943  need_version=no
8944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945  soname_spec='${libname}${release}${shared_ext}$major'
8946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8947  shlibpath_var=LD_LIBRARY_PATH
8948  shlibpath_overrides_runpath=no
8949  # This implies no fast_install, which is unacceptable.
8950  # Some rework will be needed to allow for fast_install
8951  # before this can be enabled.
8952  hardcode_into_libs=yes
8953
8954  # Append ld.so.conf contents to the search path
8955  if test -f /etc/ld.so.conf; then
8956    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8957    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8958  fi
8959
8960  # We used to test for /lib/ld.so.1 and disable shared libraries on
8961  # powerpc, because MkLinux only supported shared libraries with the
8962  # GNU dynamic linker.  Since this was broken with cross compilers,
8963  # most powerpc-linux boxes support dynamic linking these days and
8964  # people can always --disable-shared, the test was removed, and we
8965  # assume the GNU/Linux dynamic linker is in use.
8966  dynamic_linker='GNU/Linux ld.so'
8967  ;;
8968
8969knetbsd*-gnu)
8970  version_type=linux
8971  need_lib_prefix=no
8972  need_version=no
8973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974  soname_spec='${libname}${release}${shared_ext}$major'
8975  shlibpath_var=LD_LIBRARY_PATH
8976  shlibpath_overrides_runpath=no
8977  hardcode_into_libs=yes
8978  dynamic_linker='GNU ld.so'
8979  ;;
8980
8981netbsd*)
8982  version_type=sunos
8983  need_lib_prefix=no
8984  need_version=no
8985  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988    dynamic_linker='NetBSD (a.out) ld.so'
8989  else
8990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991    soname_spec='${libname}${release}${shared_ext}$major'
8992    dynamic_linker='NetBSD ld.elf_so'
8993  fi
8994  shlibpath_var=LD_LIBRARY_PATH
8995  shlibpath_overrides_runpath=yes
8996  hardcode_into_libs=yes
8997  ;;
8998
8999newsos6)
9000  version_type=linux
9001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002  shlibpath_var=LD_LIBRARY_PATH
9003  shlibpath_overrides_runpath=yes
9004  ;;
9005
9006nto-qnx*)
9007  version_type=linux
9008  need_lib_prefix=no
9009  need_version=no
9010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011  soname_spec='${libname}${release}${shared_ext}$major'
9012  shlibpath_var=LD_LIBRARY_PATH
9013  shlibpath_overrides_runpath=yes
9014  ;;
9015
9016openbsd*)
9017  version_type=sunos
9018  sys_lib_dlsearch_path_spec="/usr/lib"
9019  need_lib_prefix=no
9020  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9021  case $host_os in
9022    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9023    *)                         need_version=no  ;;
9024  esac
9025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027  shlibpath_var=LD_LIBRARY_PATH
9028  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9029    case $host_os in
9030      openbsd2.[89] | openbsd2.[89].*)
9031	shlibpath_overrides_runpath=no
9032	;;
9033      *)
9034	shlibpath_overrides_runpath=yes
9035	;;
9036      esac
9037  else
9038    shlibpath_overrides_runpath=yes
9039  fi
9040  ;;
9041
9042os2*)
9043  libname_spec='$name'
9044  shrext_cmds=".dll"
9045  need_lib_prefix=no
9046  library_names_spec='$libname${shared_ext} $libname.a'
9047  dynamic_linker='OS/2 ld.exe'
9048  shlibpath_var=LIBPATH
9049  ;;
9050
9051osf3* | osf4* | osf5*)
9052  version_type=osf
9053  need_lib_prefix=no
9054  need_version=no
9055  soname_spec='${libname}${release}${shared_ext}$major'
9056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057  shlibpath_var=LD_LIBRARY_PATH
9058  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9060  ;;
9061
9062solaris*)
9063  version_type=linux
9064  need_lib_prefix=no
9065  need_version=no
9066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067  soname_spec='${libname}${release}${shared_ext}$major'
9068  shlibpath_var=LD_LIBRARY_PATH
9069  shlibpath_overrides_runpath=yes
9070  hardcode_into_libs=yes
9071  # ldd complains unless libraries are executable
9072  postinstall_cmds='chmod +x $lib'
9073  ;;
9074
9075sunos4*)
9076  version_type=sunos
9077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9079  shlibpath_var=LD_LIBRARY_PATH
9080  shlibpath_overrides_runpath=yes
9081  if test "$with_gnu_ld" = yes; then
9082    need_lib_prefix=no
9083  fi
9084  need_version=yes
9085  ;;
9086
9087sysv4 | sysv4.3*)
9088  version_type=linux
9089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090  soname_spec='${libname}${release}${shared_ext}$major'
9091  shlibpath_var=LD_LIBRARY_PATH
9092  case $host_vendor in
9093    sni)
9094      shlibpath_overrides_runpath=no
9095      need_lib_prefix=no
9096      export_dynamic_flag_spec='${wl}-Blargedynsym'
9097      runpath_var=LD_RUN_PATH
9098      ;;
9099    siemens)
9100      need_lib_prefix=no
9101      ;;
9102    motorola)
9103      need_lib_prefix=no
9104      need_version=no
9105      shlibpath_overrides_runpath=no
9106      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9107      ;;
9108  esac
9109  ;;
9110
9111sysv4*MP*)
9112  if test -d /usr/nec ;then
9113    version_type=linux
9114    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9115    soname_spec='$libname${shared_ext}.$major'
9116    shlibpath_var=LD_LIBRARY_PATH
9117  fi
9118  ;;
9119
9120sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9121  version_type=freebsd-elf
9122  need_lib_prefix=no
9123  need_version=no
9124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9125  soname_spec='${libname}${release}${shared_ext}$major'
9126  shlibpath_var=LD_LIBRARY_PATH
9127  hardcode_into_libs=yes
9128  if test "$with_gnu_ld" = yes; then
9129    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9130    shlibpath_overrides_runpath=no
9131  else
9132    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9133    shlibpath_overrides_runpath=yes
9134    case $host_os in
9135      sco3.2v5*)
9136        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9137	;;
9138    esac
9139  fi
9140  sys_lib_dlsearch_path_spec='/usr/lib'
9141  ;;
9142
9143uts4*)
9144  version_type=linux
9145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146  soname_spec='${libname}${release}${shared_ext}$major'
9147  shlibpath_var=LD_LIBRARY_PATH
9148  ;;
9149
9150*)
9151  dynamic_linker=no
9152  ;;
9153esac
9154{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9155echo "${ECHO_T}$dynamic_linker" >&6; }
9156test "$dynamic_linker" = no && can_build_shared=no
9157
9158variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9159if test "$GCC" = yes; then
9160  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9161fi
9162
9163{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9164echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9165hardcode_action=
9166if test -n "$hardcode_libdir_flag_spec" || \
9167   test -n "$runpath_var" || \
9168   test "X$hardcode_automatic" = "Xyes" ; then
9169
9170  # We can hardcode non-existant directories.
9171  if test "$hardcode_direct" != no &&
9172     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9173     # have to relink, otherwise we might link with an installed library
9174     # when we should be linking with a yet-to-be-installed one
9175     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9176     test "$hardcode_minus_L" != no; then
9177    # Linking always hardcodes the temporary library directory.
9178    hardcode_action=relink
9179  else
9180    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9181    hardcode_action=immediate
9182  fi
9183else
9184  # We cannot hardcode anything, or else we can only hardcode existing
9185  # directories.
9186  hardcode_action=unsupported
9187fi
9188{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9189echo "${ECHO_T}$hardcode_action" >&6; }
9190
9191if test "$hardcode_action" = relink; then
9192  # Fast installation is not supported
9193  enable_fast_install=no
9194elif test "$shlibpath_overrides_runpath" = yes ||
9195     test "$enable_shared" = no; then
9196  # Fast installation is not necessary
9197  enable_fast_install=needless
9198fi
9199
9200striplib=
9201old_striplib=
9202{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9203echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9204if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9205  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9206  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9207  { echo "$as_me:$LINENO: result: yes" >&5
9208echo "${ECHO_T}yes" >&6; }
9209else
9210# FIXME - insert some real tests, host_os isn't really good enough
9211  case $host_os in
9212   darwin*)
9213       if test -n "$STRIP" ; then
9214         striplib="$STRIP -x"
9215         { echo "$as_me:$LINENO: result: yes" >&5
9216echo "${ECHO_T}yes" >&6; }
9217       else
9218  { echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6; }
9220fi
9221       ;;
9222   *)
9223  { echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6; }
9225    ;;
9226  esac
9227fi
9228
9229if test "x$enable_dlopen" != xyes; then
9230  enable_dlopen=unknown
9231  enable_dlopen_self=unknown
9232  enable_dlopen_self_static=unknown
9233else
9234  lt_cv_dlopen=no
9235  lt_cv_dlopen_libs=
9236
9237  case $host_os in
9238  beos*)
9239    lt_cv_dlopen="load_add_on"
9240    lt_cv_dlopen_libs=
9241    lt_cv_dlopen_self=yes
9242    ;;
9243
9244  mingw* | pw32*)
9245    lt_cv_dlopen="LoadLibrary"
9246    lt_cv_dlopen_libs=
9247   ;;
9248
9249  cygwin*)
9250    lt_cv_dlopen="dlopen"
9251    lt_cv_dlopen_libs=
9252   ;;
9253
9254  darwin*)
9255  # if libdl is installed we need to link against it
9256    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  ac_check_lib_save_LIBS=$LIBS
9262LIBS="-ldl  $LIBS"
9263cat >conftest.$ac_ext <<_ACEOF
9264/* confdefs.h.  */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h.  */
9269
9270/* Override any GCC internal prototype to avoid an error.
9271   Use char because int might match the return type of a GCC
9272   builtin and then its argument prototype would still apply.  */
9273#ifdef __cplusplus
9274extern "C"
9275#endif
9276char dlopen ();
9277int
9278main ()
9279{
9280return dlopen ();
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext conftest$ac_exeext
9286if { (ac_try="$ac_link"
9287case "(($ac_try" in
9288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289  *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292  (eval "$ac_link") 2>conftest.er1
9293  ac_status=$?
9294  grep -v '^ *+' conftest.er1 >conftest.err
9295  rm -f conftest.er1
9296  cat conftest.err >&5
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); } && {
9299	 test -z "$ac_c_werror_flag" ||
9300	 test ! -s conftest.err
9301       } && test -s conftest$ac_exeext &&
9302       $as_test_x conftest$ac_exeext; then
9303  ac_cv_lib_dl_dlopen=yes
9304else
9305  echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308	ac_cv_lib_dl_dlopen=no
9309fi
9310
9311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9312      conftest$ac_exeext conftest.$ac_ext
9313LIBS=$ac_check_lib_save_LIBS
9314fi
9315{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9316echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9317if test $ac_cv_lib_dl_dlopen = yes; then
9318  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9319else
9320
9321    lt_cv_dlopen="dyld"
9322    lt_cv_dlopen_libs=
9323    lt_cv_dlopen_self=yes
9324
9325fi
9326
9327   ;;
9328
9329  *)
9330    { echo "$as_me:$LINENO: checking for shl_load" >&5
9331echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9332if test "${ac_cv_func_shl_load+set}" = set; then
9333  echo $ECHO_N "(cached) $ECHO_C" >&6
9334else
9335  cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h.  */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h.  */
9341/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9342   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9343#define shl_load innocuous_shl_load
9344
9345/* System header to define __stub macros and hopefully few prototypes,
9346    which can conflict with char shl_load (); below.
9347    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9348    <limits.h> exists even on freestanding compilers.  */
9349
9350#ifdef __STDC__
9351# include <limits.h>
9352#else
9353# include <assert.h>
9354#endif
9355
9356#undef shl_load
9357
9358/* Override any GCC internal prototype to avoid an error.
9359   Use char because int might match the return type of a GCC
9360   builtin and then its argument prototype would still apply.  */
9361#ifdef __cplusplus
9362extern "C"
9363#endif
9364char shl_load ();
9365/* The GNU C library defines this for functions which it implements
9366    to always fail with ENOSYS.  Some functions are actually named
9367    something starting with __ and the normal name is an alias.  */
9368#if defined __stub_shl_load || defined __stub___shl_load
9369choke me
9370#endif
9371
9372int
9373main ()
9374{
9375return shl_load ();
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (ac_try="$ac_link"
9382case "(($ac_try" in
9383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384  *) ac_try_echo=$ac_try;;
9385esac
9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387  (eval "$ac_link") 2>conftest.er1
9388  ac_status=$?
9389  grep -v '^ *+' conftest.er1 >conftest.err
9390  rm -f conftest.er1
9391  cat conftest.err >&5
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); } && {
9394	 test -z "$ac_c_werror_flag" ||
9395	 test ! -s conftest.err
9396       } && test -s conftest$ac_exeext &&
9397       $as_test_x conftest$ac_exeext; then
9398  ac_cv_func_shl_load=yes
9399else
9400  echo "$as_me: failed program was:" >&5
9401sed 's/^/| /' conftest.$ac_ext >&5
9402
9403	ac_cv_func_shl_load=no
9404fi
9405
9406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407      conftest$ac_exeext conftest.$ac_ext
9408fi
9409{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9410echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9411if test $ac_cv_func_shl_load = yes; then
9412  lt_cv_dlopen="shl_load"
9413else
9414  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9415echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9416if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9417  echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419  ac_check_lib_save_LIBS=$LIBS
9420LIBS="-ldld  $LIBS"
9421cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h.  */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h.  */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429   Use char because int might match the return type of a GCC
9430   builtin and then its argument prototype would still apply.  */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char shl_load ();
9435int
9436main ()
9437{
9438return shl_load ();
9439  ;
9440  return 0;
9441}
9442_ACEOF
9443rm -f conftest.$ac_objext conftest$ac_exeext
9444if { (ac_try="$ac_link"
9445case "(($ac_try" in
9446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447  *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450  (eval "$ac_link") 2>conftest.er1
9451  ac_status=$?
9452  grep -v '^ *+' conftest.er1 >conftest.err
9453  rm -f conftest.er1
9454  cat conftest.err >&5
9455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456  (exit $ac_status); } && {
9457	 test -z "$ac_c_werror_flag" ||
9458	 test ! -s conftest.err
9459       } && test -s conftest$ac_exeext &&
9460       $as_test_x conftest$ac_exeext; then
9461  ac_cv_lib_dld_shl_load=yes
9462else
9463  echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466	ac_cv_lib_dld_shl_load=no
9467fi
9468
9469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470      conftest$ac_exeext conftest.$ac_ext
9471LIBS=$ac_check_lib_save_LIBS
9472fi
9473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9474echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9475if test $ac_cv_lib_dld_shl_load = yes; then
9476  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9477else
9478  { echo "$as_me:$LINENO: checking for dlopen" >&5
9479echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9480if test "${ac_cv_func_dlopen+set}" = set; then
9481  echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483  cat >conftest.$ac_ext <<_ACEOF
9484/* confdefs.h.  */
9485_ACEOF
9486cat confdefs.h >>conftest.$ac_ext
9487cat >>conftest.$ac_ext <<_ACEOF
9488/* end confdefs.h.  */
9489/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9490   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9491#define dlopen innocuous_dlopen
9492
9493/* System header to define __stub macros and hopefully few prototypes,
9494    which can conflict with char dlopen (); below.
9495    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496    <limits.h> exists even on freestanding compilers.  */
9497
9498#ifdef __STDC__
9499# include <limits.h>
9500#else
9501# include <assert.h>
9502#endif
9503
9504#undef dlopen
9505
9506/* Override any GCC internal prototype to avoid an error.
9507   Use char because int might match the return type of a GCC
9508   builtin and then its argument prototype would still apply.  */
9509#ifdef __cplusplus
9510extern "C"
9511#endif
9512char dlopen ();
9513/* The GNU C library defines this for functions which it implements
9514    to always fail with ENOSYS.  Some functions are actually named
9515    something starting with __ and the normal name is an alias.  */
9516#if defined __stub_dlopen || defined __stub___dlopen
9517choke me
9518#endif
9519
9520int
9521main ()
9522{
9523return dlopen ();
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext conftest$ac_exeext
9529if { (ac_try="$ac_link"
9530case "(($ac_try" in
9531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532  *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535  (eval "$ac_link") 2>conftest.er1
9536  ac_status=$?
9537  grep -v '^ *+' conftest.er1 >conftest.err
9538  rm -f conftest.er1
9539  cat conftest.err >&5
9540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541  (exit $ac_status); } && {
9542	 test -z "$ac_c_werror_flag" ||
9543	 test ! -s conftest.err
9544       } && test -s conftest$ac_exeext &&
9545       $as_test_x conftest$ac_exeext; then
9546  ac_cv_func_dlopen=yes
9547else
9548  echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551	ac_cv_func_dlopen=no
9552fi
9553
9554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9555      conftest$ac_exeext conftest.$ac_ext
9556fi
9557{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9558echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9559if test $ac_cv_func_dlopen = yes; then
9560  lt_cv_dlopen="dlopen"
9561else
9562  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9563echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9564if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9565  echo $ECHO_N "(cached) $ECHO_C" >&6
9566else
9567  ac_check_lib_save_LIBS=$LIBS
9568LIBS="-ldl  $LIBS"
9569cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h.  */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h.  */
9575
9576/* Override any GCC internal prototype to avoid an error.
9577   Use char because int might match the return type of a GCC
9578   builtin and then its argument prototype would still apply.  */
9579#ifdef __cplusplus
9580extern "C"
9581#endif
9582char dlopen ();
9583int
9584main ()
9585{
9586return dlopen ();
9587  ;
9588  return 0;
9589}
9590_ACEOF
9591rm -f conftest.$ac_objext conftest$ac_exeext
9592if { (ac_try="$ac_link"
9593case "(($ac_try" in
9594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595  *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598  (eval "$ac_link") 2>conftest.er1
9599  ac_status=$?
9600  grep -v '^ *+' conftest.er1 >conftest.err
9601  rm -f conftest.er1
9602  cat conftest.err >&5
9603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604  (exit $ac_status); } && {
9605	 test -z "$ac_c_werror_flag" ||
9606	 test ! -s conftest.err
9607       } && test -s conftest$ac_exeext &&
9608       $as_test_x conftest$ac_exeext; then
9609  ac_cv_lib_dl_dlopen=yes
9610else
9611  echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614	ac_cv_lib_dl_dlopen=no
9615fi
9616
9617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618      conftest$ac_exeext conftest.$ac_ext
9619LIBS=$ac_check_lib_save_LIBS
9620fi
9621{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9622echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9623if test $ac_cv_lib_dl_dlopen = yes; then
9624  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9625else
9626  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9627echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9628if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9629  echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
9631  ac_check_lib_save_LIBS=$LIBS
9632LIBS="-lsvld  $LIBS"
9633cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h.  */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h.  */
9639
9640/* Override any GCC internal prototype to avoid an error.
9641   Use char because int might match the return type of a GCC
9642   builtin and then its argument prototype would still apply.  */
9643#ifdef __cplusplus
9644extern "C"
9645#endif
9646char dlopen ();
9647int
9648main ()
9649{
9650return dlopen ();
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (ac_try="$ac_link"
9657case "(($ac_try" in
9658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659  *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662  (eval "$ac_link") 2>conftest.er1
9663  ac_status=$?
9664  grep -v '^ *+' conftest.er1 >conftest.err
9665  rm -f conftest.er1
9666  cat conftest.err >&5
9667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668  (exit $ac_status); } && {
9669	 test -z "$ac_c_werror_flag" ||
9670	 test ! -s conftest.err
9671       } && test -s conftest$ac_exeext &&
9672       $as_test_x conftest$ac_exeext; then
9673  ac_cv_lib_svld_dlopen=yes
9674else
9675  echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678	ac_cv_lib_svld_dlopen=no
9679fi
9680
9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682      conftest$ac_exeext conftest.$ac_ext
9683LIBS=$ac_check_lib_save_LIBS
9684fi
9685{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9686echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9687if test $ac_cv_lib_svld_dlopen = yes; then
9688  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9689else
9690  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9691echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9692if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9693  echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695  ac_check_lib_save_LIBS=$LIBS
9696LIBS="-ldld  $LIBS"
9697cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h.  */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h.  */
9703
9704/* Override any GCC internal prototype to avoid an error.
9705   Use char because int might match the return type of a GCC
9706   builtin and then its argument prototype would still apply.  */
9707#ifdef __cplusplus
9708extern "C"
9709#endif
9710char dld_link ();
9711int
9712main ()
9713{
9714return dld_link ();
9715  ;
9716  return 0;
9717}
9718_ACEOF
9719rm -f conftest.$ac_objext conftest$ac_exeext
9720if { (ac_try="$ac_link"
9721case "(($ac_try" in
9722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723  *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726  (eval "$ac_link") 2>conftest.er1
9727  ac_status=$?
9728  grep -v '^ *+' conftest.er1 >conftest.err
9729  rm -f conftest.er1
9730  cat conftest.err >&5
9731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732  (exit $ac_status); } && {
9733	 test -z "$ac_c_werror_flag" ||
9734	 test ! -s conftest.err
9735       } && test -s conftest$ac_exeext &&
9736       $as_test_x conftest$ac_exeext; then
9737  ac_cv_lib_dld_dld_link=yes
9738else
9739  echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742	ac_cv_lib_dld_dld_link=no
9743fi
9744
9745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746      conftest$ac_exeext conftest.$ac_ext
9747LIBS=$ac_check_lib_save_LIBS
9748fi
9749{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9750echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9751if test $ac_cv_lib_dld_dld_link = yes; then
9752  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9753fi
9754
9755
9756fi
9757
9758
9759fi
9760
9761
9762fi
9763
9764
9765fi
9766
9767
9768fi
9769
9770    ;;
9771  esac
9772
9773  if test "x$lt_cv_dlopen" != xno; then
9774    enable_dlopen=yes
9775  else
9776    enable_dlopen=no
9777  fi
9778
9779  case $lt_cv_dlopen in
9780  dlopen)
9781    save_CPPFLAGS="$CPPFLAGS"
9782    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9783
9784    save_LDFLAGS="$LDFLAGS"
9785    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9786
9787    save_LIBS="$LIBS"
9788    LIBS="$lt_cv_dlopen_libs $LIBS"
9789
9790    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9791echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9792if test "${lt_cv_dlopen_self+set}" = set; then
9793  echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795  	  if test "$cross_compiling" = yes; then :
9796  lt_cv_dlopen_self=cross
9797else
9798  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9799  lt_status=$lt_dlunknown
9800  cat > conftest.$ac_ext <<EOF
9801#line 9801 "configure"
9802#include "confdefs.h"
9803
9804#if HAVE_DLFCN_H
9805#include <dlfcn.h>
9806#endif
9807
9808#include <stdio.h>
9809
9810#ifdef RTLD_GLOBAL
9811#  define LT_DLGLOBAL		RTLD_GLOBAL
9812#else
9813#  ifdef DL_GLOBAL
9814#    define LT_DLGLOBAL		DL_GLOBAL
9815#  else
9816#    define LT_DLGLOBAL		0
9817#  endif
9818#endif
9819
9820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9821   find out it does not work in some platform. */
9822#ifndef LT_DLLAZY_OR_NOW
9823#  ifdef RTLD_LAZY
9824#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9825#  else
9826#    ifdef DL_LAZY
9827#      define LT_DLLAZY_OR_NOW		DL_LAZY
9828#    else
9829#      ifdef RTLD_NOW
9830#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9831#      else
9832#        ifdef DL_NOW
9833#          define LT_DLLAZY_OR_NOW	DL_NOW
9834#        else
9835#          define LT_DLLAZY_OR_NOW	0
9836#        endif
9837#      endif
9838#    endif
9839#  endif
9840#endif
9841
9842#ifdef __cplusplus
9843extern "C" void exit (int);
9844#endif
9845
9846void fnord() { int i=42;}
9847int main ()
9848{
9849  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9850  int status = $lt_dlunknown;
9851
9852  if (self)
9853    {
9854      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9855      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9856      /* dlclose (self); */
9857    }
9858  else
9859    puts (dlerror ());
9860
9861    exit (status);
9862}
9863EOF
9864  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865  (eval $ac_link) 2>&5
9866  ac_status=$?
9867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9869    (./conftest; exit; ) >&5 2>/dev/null
9870    lt_status=$?
9871    case x$lt_status in
9872      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9873      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9874      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9875    esac
9876  else :
9877    # compilation failed
9878    lt_cv_dlopen_self=no
9879  fi
9880fi
9881rm -fr conftest*
9882
9883
9884fi
9885{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9886echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9887
9888    if test "x$lt_cv_dlopen_self" = xyes; then
9889      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9890      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9891echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9892if test "${lt_cv_dlopen_self_static+set}" = set; then
9893  echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895  	  if test "$cross_compiling" = yes; then :
9896  lt_cv_dlopen_self_static=cross
9897else
9898  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9899  lt_status=$lt_dlunknown
9900  cat > conftest.$ac_ext <<EOF
9901#line 9901 "configure"
9902#include "confdefs.h"
9903
9904#if HAVE_DLFCN_H
9905#include <dlfcn.h>
9906#endif
9907
9908#include <stdio.h>
9909
9910#ifdef RTLD_GLOBAL
9911#  define LT_DLGLOBAL		RTLD_GLOBAL
9912#else
9913#  ifdef DL_GLOBAL
9914#    define LT_DLGLOBAL		DL_GLOBAL
9915#  else
9916#    define LT_DLGLOBAL		0
9917#  endif
9918#endif
9919
9920/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9921   find out it does not work in some platform. */
9922#ifndef LT_DLLAZY_OR_NOW
9923#  ifdef RTLD_LAZY
9924#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9925#  else
9926#    ifdef DL_LAZY
9927#      define LT_DLLAZY_OR_NOW		DL_LAZY
9928#    else
9929#      ifdef RTLD_NOW
9930#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9931#      else
9932#        ifdef DL_NOW
9933#          define LT_DLLAZY_OR_NOW	DL_NOW
9934#        else
9935#          define LT_DLLAZY_OR_NOW	0
9936#        endif
9937#      endif
9938#    endif
9939#  endif
9940#endif
9941
9942#ifdef __cplusplus
9943extern "C" void exit (int);
9944#endif
9945
9946void fnord() { int i=42;}
9947int main ()
9948{
9949  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9950  int status = $lt_dlunknown;
9951
9952  if (self)
9953    {
9954      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9955      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9956      /* dlclose (self); */
9957    }
9958  else
9959    puts (dlerror ());
9960
9961    exit (status);
9962}
9963EOF
9964  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965  (eval $ac_link) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9969    (./conftest; exit; ) >&5 2>/dev/null
9970    lt_status=$?
9971    case x$lt_status in
9972      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9973      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9974      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9975    esac
9976  else :
9977    # compilation failed
9978    lt_cv_dlopen_self_static=no
9979  fi
9980fi
9981rm -fr conftest*
9982
9983
9984fi
9985{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9986echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9987    fi
9988
9989    CPPFLAGS="$save_CPPFLAGS"
9990    LDFLAGS="$save_LDFLAGS"
9991    LIBS="$save_LIBS"
9992    ;;
9993  esac
9994
9995  case $lt_cv_dlopen_self in
9996  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9997  *) enable_dlopen_self=unknown ;;
9998  esac
9999
10000  case $lt_cv_dlopen_self_static in
10001  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10002  *) enable_dlopen_self_static=unknown ;;
10003  esac
10004fi
10005
10006
10007# Report which library types will actually be built
10008{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10009echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10010{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10011echo "${ECHO_T}$can_build_shared" >&6; }
10012
10013{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10014echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10015test "$can_build_shared" = "no" && enable_shared=no
10016
10017# On AIX, shared libraries and static libraries use the same namespace, and
10018# are all built from PIC.
10019case $host_os in
10020aix3*)
10021  test "$enable_shared" = yes && enable_static=no
10022  if test -n "$RANLIB"; then
10023    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10024    postinstall_cmds='$RANLIB $lib'
10025  fi
10026  ;;
10027
10028aix4* | aix5*)
10029  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10030    test "$enable_shared" = yes && enable_static=no
10031  fi
10032    ;;
10033esac
10034{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10035echo "${ECHO_T}$enable_shared" >&6; }
10036
10037{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10038echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10039# Make sure either enable_shared or enable_static is yes.
10040test "$enable_shared" = yes || enable_static=yes
10041{ echo "$as_me:$LINENO: result: $enable_static" >&5
10042echo "${ECHO_T}$enable_static" >&6; }
10043
10044# The else clause should only fire when bootstrapping the
10045# libtool distribution, otherwise you forgot to ship ltmain.sh
10046# with your package, and you will get complaints that there are
10047# no rules to generate ltmain.sh.
10048if test -f "$ltmain"; then
10049  # See if we are running on zsh, and set the options which allow our commands through
10050  # without removal of \ escapes.
10051  if test -n "${ZSH_VERSION+set}" ; then
10052    setopt NO_GLOB_SUBST
10053  fi
10054  # Now quote all the things that may contain metacharacters while being
10055  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10056  # variables and quote the copies for generation of the libtool script.
10057  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10058    SED SHELL STRIP \
10059    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10060    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10061    deplibs_check_method reload_flag reload_cmds need_locks \
10062    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10063    lt_cv_sys_global_symbol_to_c_name_address \
10064    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10065    old_postinstall_cmds old_postuninstall_cmds \
10066    compiler \
10067    CC \
10068    LD \
10069    lt_prog_compiler_wl \
10070    lt_prog_compiler_pic \
10071    lt_prog_compiler_static \
10072    lt_prog_compiler_no_builtin_flag \
10073    export_dynamic_flag_spec \
10074    thread_safe_flag_spec \
10075    whole_archive_flag_spec \
10076    enable_shared_with_static_runtimes \
10077    old_archive_cmds \
10078    old_archive_from_new_cmds \
10079    predep_objects \
10080    postdep_objects \
10081    predeps \
10082    postdeps \
10083    compiler_lib_search_path \
10084    archive_cmds \
10085    archive_expsym_cmds \
10086    postinstall_cmds \
10087    postuninstall_cmds \
10088    old_archive_from_expsyms_cmds \
10089    allow_undefined_flag \
10090    no_undefined_flag \
10091    export_symbols_cmds \
10092    hardcode_libdir_flag_spec \
10093    hardcode_libdir_flag_spec_ld \
10094    hardcode_libdir_separator \
10095    hardcode_automatic \
10096    module_cmds \
10097    module_expsym_cmds \
10098    lt_cv_prog_compiler_c_o \
10099    exclude_expsyms \
10100    include_expsyms; do
10101
10102    case $var in
10103    old_archive_cmds | \
10104    old_archive_from_new_cmds | \
10105    archive_cmds | \
10106    archive_expsym_cmds | \
10107    module_cmds | \
10108    module_expsym_cmds | \
10109    old_archive_from_expsyms_cmds | \
10110    export_symbols_cmds | \
10111    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10112    postinstall_cmds | postuninstall_cmds | \
10113    old_postinstall_cmds | old_postuninstall_cmds | \
10114    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10115      # Double-quote double-evaled strings.
10116      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10117      ;;
10118    *)
10119      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10120      ;;
10121    esac
10122  done
10123
10124  case $lt_echo in
10125  *'\$0 --fallback-echo"')
10126    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10127    ;;
10128  esac
10129
10130cfgfile="${ofile}T"
10131  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10132  $rm -f "$cfgfile"
10133  { echo "$as_me:$LINENO: creating $ofile" >&5
10134echo "$as_me: creating $ofile" >&6;}
10135
10136  cat <<__EOF__ >> "$cfgfile"
10137#! $SHELL
10138
10139# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10140# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10141# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10142#
10143# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10144# Free Software Foundation, Inc.
10145#
10146# This file is part of GNU Libtool:
10147# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10148#
10149# This program is free software; you can redistribute it and/or modify
10150# it under the terms of the GNU General Public License as published by
10151# the Free Software Foundation; either version 2 of the License, or
10152# (at your option) any later version.
10153#
10154# This program is distributed in the hope that it will be useful, but
10155# WITHOUT ANY WARRANTY; without even the implied warranty of
10156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10157# General Public License for more details.
10158#
10159# You should have received a copy of the GNU General Public License
10160# along with this program; if not, write to the Free Software
10161# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10162#
10163# As a special exception to the GNU General Public License, if you
10164# distribute this file as part of a program that contains a
10165# configuration script generated by Autoconf, you may include it under
10166# the same distribution terms that you use for the rest of that program.
10167
10168# A sed program that does not truncate output.
10169SED=$lt_SED
10170
10171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10172Xsed="$SED -e 1s/^X//"
10173
10174# The HP-UX ksh and POSIX shell print the target directory to stdout
10175# if CDPATH is set.
10176(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10177
10178# The names of the tagged configurations supported by this script.
10179available_tags=
10180
10181# ### BEGIN LIBTOOL CONFIG
10182
10183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10184
10185# Shell to use when invoking shell scripts.
10186SHELL=$lt_SHELL
10187
10188# Whether or not to build shared libraries.
10189build_libtool_libs=$enable_shared
10190
10191# Whether or not to build static libraries.
10192build_old_libs=$enable_static
10193
10194# Whether or not to add -lc for building shared libraries.
10195build_libtool_need_lc=$archive_cmds_need_lc
10196
10197# Whether or not to disallow shared libs when runtime libs are static
10198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10199
10200# Whether or not to optimize for fast installation.
10201fast_install=$enable_fast_install
10202
10203# The host system.
10204host_alias=$host_alias
10205host=$host
10206host_os=$host_os
10207
10208# The build system.
10209build_alias=$build_alias
10210build=$build
10211build_os=$build_os
10212
10213# An echo program that does not interpret backslashes.
10214echo=$lt_echo
10215
10216# The archiver.
10217AR=$lt_AR
10218AR_FLAGS=$lt_AR_FLAGS
10219
10220# A C compiler.
10221LTCC=$lt_LTCC
10222
10223# LTCC compiler flags.
10224LTCFLAGS=$lt_LTCFLAGS
10225
10226# A language-specific compiler.
10227CC=$lt_compiler
10228
10229# Is the compiler the GNU C compiler?
10230with_gcc=$GCC
10231
10232# An ERE matcher.
10233EGREP=$lt_EGREP
10234
10235# The linker used to build libraries.
10236LD=$lt_LD
10237
10238# Whether we need hard or soft links.
10239LN_S=$lt_LN_S
10240
10241# A BSD-compatible nm program.
10242NM=$lt_NM
10243
10244# A symbol stripping program
10245STRIP=$lt_STRIP
10246
10247# Used to examine libraries when file_magic_cmd begins "file"
10248MAGIC_CMD=$MAGIC_CMD
10249
10250# Used on cygwin: DLL creation program.
10251DLLTOOL="$DLLTOOL"
10252
10253# Used on cygwin: object dumper.
10254OBJDUMP="$OBJDUMP"
10255
10256# Used on cygwin: assembler.
10257AS="$AS"
10258
10259# The name of the directory that contains temporary libtool files.
10260objdir=$objdir
10261
10262# How to create reloadable object files.
10263reload_flag=$lt_reload_flag
10264reload_cmds=$lt_reload_cmds
10265
10266# How to pass a linker flag through the compiler.
10267wl=$lt_lt_prog_compiler_wl
10268
10269# Object file suffix (normally "o").
10270objext="$ac_objext"
10271
10272# Old archive suffix (normally "a").
10273libext="$libext"
10274
10275# Shared library suffix (normally ".so").
10276shrext_cmds='$shrext_cmds'
10277
10278# Executable file suffix (normally "").
10279exeext="$exeext"
10280
10281# Additional compiler flags for building library objects.
10282pic_flag=$lt_lt_prog_compiler_pic
10283pic_mode=$pic_mode
10284
10285# What is the maximum length of a command?
10286max_cmd_len=$lt_cv_sys_max_cmd_len
10287
10288# Does compiler simultaneously support -c and -o options?
10289compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10290
10291# Must we lock files when doing compilation?
10292need_locks=$lt_need_locks
10293
10294# Do we need the lib prefix for modules?
10295need_lib_prefix=$need_lib_prefix
10296
10297# Do we need a version for libraries?
10298need_version=$need_version
10299
10300# Whether dlopen is supported.
10301dlopen_support=$enable_dlopen
10302
10303# Whether dlopen of programs is supported.
10304dlopen_self=$enable_dlopen_self
10305
10306# Whether dlopen of statically linked programs is supported.
10307dlopen_self_static=$enable_dlopen_self_static
10308
10309# Compiler flag to prevent dynamic linking.
10310link_static_flag=$lt_lt_prog_compiler_static
10311
10312# Compiler flag to turn off builtin functions.
10313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10314
10315# Compiler flag to allow reflexive dlopens.
10316export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10317
10318# Compiler flag to generate shared objects directly from archives.
10319whole_archive_flag_spec=$lt_whole_archive_flag_spec
10320
10321# Compiler flag to generate thread-safe objects.
10322thread_safe_flag_spec=$lt_thread_safe_flag_spec
10323
10324# Library versioning type.
10325version_type=$version_type
10326
10327# Format of library name prefix.
10328libname_spec=$lt_libname_spec
10329
10330# List of archive names.  First name is the real one, the rest are links.
10331# The last name is the one that the linker finds with -lNAME.
10332library_names_spec=$lt_library_names_spec
10333
10334# The coded name of the library, if different from the real name.
10335soname_spec=$lt_soname_spec
10336
10337# Commands used to build and install an old-style archive.
10338RANLIB=$lt_RANLIB
10339old_archive_cmds=$lt_old_archive_cmds
10340old_postinstall_cmds=$lt_old_postinstall_cmds
10341old_postuninstall_cmds=$lt_old_postuninstall_cmds
10342
10343# Create an old-style archive from a shared archive.
10344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10345
10346# Create a temporary old-style archive to link instead of a shared archive.
10347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10348
10349# Commands used to build and install a shared archive.
10350archive_cmds=$lt_archive_cmds
10351archive_expsym_cmds=$lt_archive_expsym_cmds
10352postinstall_cmds=$lt_postinstall_cmds
10353postuninstall_cmds=$lt_postuninstall_cmds
10354
10355# Commands used to build a loadable module (assumed same as above if empty)
10356module_cmds=$lt_module_cmds
10357module_expsym_cmds=$lt_module_expsym_cmds
10358
10359# Commands to strip libraries.
10360old_striplib=$lt_old_striplib
10361striplib=$lt_striplib
10362
10363# Dependencies to place before the objects being linked to create a
10364# shared library.
10365predep_objects=$lt_predep_objects
10366
10367# Dependencies to place after the objects being linked to create a
10368# shared library.
10369postdep_objects=$lt_postdep_objects
10370
10371# Dependencies to place before the objects being linked to create a
10372# shared library.
10373predeps=$lt_predeps
10374
10375# Dependencies to place after the objects being linked to create a
10376# shared library.
10377postdeps=$lt_postdeps
10378
10379# The library search path used internally by the compiler when linking
10380# a shared library.
10381compiler_lib_search_path=$lt_compiler_lib_search_path
10382
10383# Method to check whether dependent libraries are shared objects.
10384deplibs_check_method=$lt_deplibs_check_method
10385
10386# Command to use when deplibs_check_method == file_magic.
10387file_magic_cmd=$lt_file_magic_cmd
10388
10389# Flag that allows shared libraries with undefined symbols to be built.
10390allow_undefined_flag=$lt_allow_undefined_flag
10391
10392# Flag that forces no undefined symbols.
10393no_undefined_flag=$lt_no_undefined_flag
10394
10395# Commands used to finish a libtool library installation in a directory.
10396finish_cmds=$lt_finish_cmds
10397
10398# Same as above, but a single script fragment to be evaled but not shown.
10399finish_eval=$lt_finish_eval
10400
10401# Take the output of nm and produce a listing of raw symbols and C names.
10402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10403
10404# Transform the output of nm in a proper C declaration
10405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10406
10407# Transform the output of nm in a C name address pair
10408global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10409
10410# This is the shared library runtime path variable.
10411runpath_var=$runpath_var
10412
10413# This is the shared library path variable.
10414shlibpath_var=$shlibpath_var
10415
10416# Is shlibpath searched before the hard-coded library search path?
10417shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10418
10419# How to hardcode a shared library path into an executable.
10420hardcode_action=$hardcode_action
10421
10422# Whether we should hardcode library paths into libraries.
10423hardcode_into_libs=$hardcode_into_libs
10424
10425# Flag to hardcode \$libdir into a binary during linking.
10426# This must work even if \$libdir does not exist.
10427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10428
10429# If ld is used when linking, flag to hardcode \$libdir into
10430# a binary during linking. This must work even if \$libdir does
10431# not exist.
10432hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10433
10434# Whether we need a single -rpath flag with a separated argument.
10435hardcode_libdir_separator=$lt_hardcode_libdir_separator
10436
10437# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10438# resulting binary.
10439hardcode_direct=$hardcode_direct
10440
10441# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10442# resulting binary.
10443hardcode_minus_L=$hardcode_minus_L
10444
10445# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10446# the resulting binary.
10447hardcode_shlibpath_var=$hardcode_shlibpath_var
10448
10449# Set to yes if building a shared library automatically hardcodes DIR into the library
10450# and all subsequent libraries and executables linked against it.
10451hardcode_automatic=$hardcode_automatic
10452
10453# Variables whose values should be saved in libtool wrapper scripts and
10454# restored at relink time.
10455variables_saved_for_relink="$variables_saved_for_relink"
10456
10457# Whether libtool must link a program against all its dependency libraries.
10458link_all_deplibs=$link_all_deplibs
10459
10460# Compile-time system search path for libraries
10461sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10462
10463# Run-time system search path for libraries
10464sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10465
10466# Fix the shell variable \$srcfile for the compiler.
10467fix_srcfile_path="$fix_srcfile_path"
10468
10469# Set to yes if exported symbols are required.
10470always_export_symbols=$always_export_symbols
10471
10472# The commands to list exported symbols.
10473export_symbols_cmds=$lt_export_symbols_cmds
10474
10475# The commands to extract the exported symbol list from a shared archive.
10476extract_expsyms_cmds=$lt_extract_expsyms_cmds
10477
10478# Symbols that should not be listed in the preloaded symbols.
10479exclude_expsyms=$lt_exclude_expsyms
10480
10481# Symbols that must always be exported.
10482include_expsyms=$lt_include_expsyms
10483
10484# ### END LIBTOOL CONFIG
10485
10486__EOF__
10487
10488
10489  case $host_os in
10490  aix3*)
10491    cat <<\EOF >> "$cfgfile"
10492
10493# AIX sometimes has problems with the GCC collect2 program.  For some
10494# reason, if we set the COLLECT_NAMES environment variable, the problems
10495# vanish in a puff of smoke.
10496if test "X${COLLECT_NAMES+set}" != Xset; then
10497  COLLECT_NAMES=
10498  export COLLECT_NAMES
10499fi
10500EOF
10501    ;;
10502  esac
10503
10504  # We use sed instead of cat because bash on DJGPP gets confused if
10505  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10506  # text mode, it properly converts lines to CR/LF.  This bash problem
10507  # is reportedly fixed, but why not run on old versions too?
10508  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10509
10510  mv -f "$cfgfile" "$ofile" || \
10511    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10512  chmod +x "$ofile"
10513
10514else
10515  # If there is no Makefile yet, we rely on a make rule to execute
10516  # `config.status --recheck' to rerun these tests and create the
10517  # libtool script then.
10518  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10519  if test -f "$ltmain_in"; then
10520    test -f Makefile && make "$ltmain"
10521  fi
10522fi
10523
10524
10525ac_ext=c
10526ac_cpp='$CPP $CPPFLAGS'
10527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530
10531CC="$lt_save_CC"
10532
10533
10534# Check whether --with-tags was given.
10535if test "${with_tags+set}" = set; then
10536  withval=$with_tags; tagnames="$withval"
10537fi
10538
10539
10540if test -f "$ltmain" && test -n "$tagnames"; then
10541  if test ! -f "${ofile}"; then
10542    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10543echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10544  fi
10545
10546  if test -z "$LTCC"; then
10547    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10548    if test -z "$LTCC"; then
10549      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10550echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10551    else
10552      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10553echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10554    fi
10555  fi
10556  if test -z "$LTCFLAGS"; then
10557    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10558  fi
10559
10560  # Extract list of available tagged configurations in $ofile.
10561  # Note that this assumes the entire list is on one line.
10562  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10563
10564  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10565  for tagname in $tagnames; do
10566    IFS="$lt_save_ifs"
10567    # Check whether tagname contains only valid characters
10568    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10569    "") ;;
10570    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10571echo "$as_me: error: invalid tag name: $tagname" >&2;}
10572   { (exit 1); exit 1; }; }
10573	;;
10574    esac
10575
10576    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10577    then
10578      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10579echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10580   { (exit 1); exit 1; }; }
10581    fi
10582
10583    # Update the list of available tags.
10584    if test -n "$tagname"; then
10585      echo appending configuration tag \"$tagname\" to $ofile
10586
10587      case $tagname in
10588      CXX)
10589	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10590	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10591	    (test "X$CXX" != "Xg++"))) ; then
10592	  ac_ext=cpp
10593ac_cpp='$CXXCPP $CPPFLAGS'
10594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10597
10598
10599
10600
10601archive_cmds_need_lc_CXX=no
10602allow_undefined_flag_CXX=
10603always_export_symbols_CXX=no
10604archive_expsym_cmds_CXX=
10605export_dynamic_flag_spec_CXX=
10606hardcode_direct_CXX=no
10607hardcode_libdir_flag_spec_CXX=
10608hardcode_libdir_flag_spec_ld_CXX=
10609hardcode_libdir_separator_CXX=
10610hardcode_minus_L_CXX=no
10611hardcode_shlibpath_var_CXX=unsupported
10612hardcode_automatic_CXX=no
10613module_cmds_CXX=
10614module_expsym_cmds_CXX=
10615link_all_deplibs_CXX=unknown
10616old_archive_cmds_CXX=$old_archive_cmds
10617no_undefined_flag_CXX=
10618whole_archive_flag_spec_CXX=
10619enable_shared_with_static_runtimes_CXX=no
10620
10621# Dependencies to place before and after the object being linked:
10622predep_objects_CXX=
10623postdep_objects_CXX=
10624predeps_CXX=
10625postdeps_CXX=
10626compiler_lib_search_path_CXX=
10627
10628# Source file extension for C++ test sources.
10629ac_ext=cpp
10630
10631# Object file extension for compiled C++ test sources.
10632objext=o
10633objext_CXX=$objext
10634
10635# Code to be used in simple compile tests
10636lt_simple_compile_test_code="int some_variable = 0;\n"
10637
10638# Code to be used in simple link tests
10639lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10640
10641# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10642
10643# If no C compiler was specified, use CC.
10644LTCC=${LTCC-"$CC"}
10645
10646# If no C compiler flags were specified, use CFLAGS.
10647LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10648
10649# Allow CC to be a program name with arguments.
10650compiler=$CC
10651
10652
10653# save warnings/boilerplate of simple test code
10654ac_outfile=conftest.$ac_objext
10655printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10657_lt_compiler_boilerplate=`cat conftest.err`
10658$rm conftest*
10659
10660ac_outfile=conftest.$ac_objext
10661printf "$lt_simple_link_test_code" >conftest.$ac_ext
10662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663_lt_linker_boilerplate=`cat conftest.err`
10664$rm conftest*
10665
10666
10667# Allow CC to be a program name with arguments.
10668lt_save_CC=$CC
10669lt_save_LD=$LD
10670lt_save_GCC=$GCC
10671GCC=$GXX
10672lt_save_with_gnu_ld=$with_gnu_ld
10673lt_save_path_LD=$lt_cv_path_LD
10674if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10675  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10676else
10677  $as_unset lt_cv_prog_gnu_ld
10678fi
10679if test -n "${lt_cv_path_LDCXX+set}"; then
10680  lt_cv_path_LD=$lt_cv_path_LDCXX
10681else
10682  $as_unset lt_cv_path_LD
10683fi
10684test -z "${LDCXX+set}" || LD=$LDCXX
10685CC=${CXX-"c++"}
10686compiler=$CC
10687compiler_CXX=$CC
10688for cc_temp in $compiler""; do
10689  case $cc_temp in
10690    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10691    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10692    \-*) ;;
10693    *) break;;
10694  esac
10695done
10696cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10697
10698
10699# We don't want -fno-exception wen compiling C++ code, so set the
10700# no_builtin_flag separately
10701if test "$GXX" = yes; then
10702  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10703else
10704  lt_prog_compiler_no_builtin_flag_CXX=
10705fi
10706
10707if test "$GXX" = yes; then
10708  # Set up default GNU C++ configuration
10709
10710
10711# Check whether --with-gnu-ld was given.
10712if test "${with_gnu_ld+set}" = set; then
10713  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10714else
10715  with_gnu_ld=no
10716fi
10717
10718ac_prog=ld
10719if test "$GCC" = yes; then
10720  # Check if gcc -print-prog-name=ld gives a path.
10721  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10722echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10723  case $host in
10724  *-*-mingw*)
10725    # gcc leaves a trailing carriage return which upsets mingw
10726    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10727  *)
10728    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10729  esac
10730  case $ac_prog in
10731    # Accept absolute paths.
10732    [\\/]* | ?:[\\/]*)
10733      re_direlt='/[^/][^/]*/\.\./'
10734      # Canonicalize the pathname of ld
10735      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10736      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10737	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10738      done
10739      test -z "$LD" && LD="$ac_prog"
10740      ;;
10741  "")
10742    # If it fails, then pretend we aren't using GCC.
10743    ac_prog=ld
10744    ;;
10745  *)
10746    # If it is relative, then search for the first ld in PATH.
10747    with_gnu_ld=unknown
10748    ;;
10749  esac
10750elif test "$with_gnu_ld" = yes; then
10751  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10752echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10753else
10754  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10755echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10756fi
10757if test "${lt_cv_path_LD+set}" = set; then
10758  echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760  if test -z "$LD"; then
10761  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10762  for ac_dir in $PATH; do
10763    IFS="$lt_save_ifs"
10764    test -z "$ac_dir" && ac_dir=.
10765    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10766      lt_cv_path_LD="$ac_dir/$ac_prog"
10767      # Check to see if the program is GNU ld.  I'd rather use --version,
10768      # but apparently some variants of GNU ld only accept -v.
10769      # Break only if it was the GNU/non-GNU ld that we prefer.
10770      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10771      *GNU* | *'with BFD'*)
10772	test "$with_gnu_ld" != no && break
10773	;;
10774      *)
10775	test "$with_gnu_ld" != yes && break
10776	;;
10777      esac
10778    fi
10779  done
10780  IFS="$lt_save_ifs"
10781else
10782  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10783fi
10784fi
10785
10786LD="$lt_cv_path_LD"
10787if test -n "$LD"; then
10788  { echo "$as_me:$LINENO: result: $LD" >&5
10789echo "${ECHO_T}$LD" >&6; }
10790else
10791  { echo "$as_me:$LINENO: result: no" >&5
10792echo "${ECHO_T}no" >&6; }
10793fi
10794test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10795echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10796   { (exit 1); exit 1; }; }
10797{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10798echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10799if test "${lt_cv_prog_gnu_ld+set}" = set; then
10800  echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10803case `$LD -v 2>&1 </dev/null` in
10804*GNU* | *'with BFD'*)
10805  lt_cv_prog_gnu_ld=yes
10806  ;;
10807*)
10808  lt_cv_prog_gnu_ld=no
10809  ;;
10810esac
10811fi
10812{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10813echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10814with_gnu_ld=$lt_cv_prog_gnu_ld
10815
10816
10817
10818  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10819  # archiving commands below assume that GNU ld is being used.
10820  if test "$with_gnu_ld" = yes; then
10821    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10822    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'
10823
10824    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10825    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10826
10827    # If archive_cmds runs LD, not CC, wlarc should be empty
10828    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10829    #     investigate it a little bit more. (MM)
10830    wlarc='${wl}'
10831
10832    # ancient GNU ld didn't support --whole-archive et. al.
10833    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10834	grep 'no-whole-archive' > /dev/null; then
10835      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10836    else
10837      whole_archive_flag_spec_CXX=
10838    fi
10839  else
10840    with_gnu_ld=no
10841    wlarc=
10842
10843    # A generic and very simple default shared library creation
10844    # command for GNU C++ for the case where it uses the native
10845    # linker, instead of GNU ld.  If possible, this setting should
10846    # overridden to take advantage of the native linker features on
10847    # the platform it is being used on.
10848    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10849  fi
10850
10851  # Commands to make compiler produce verbose output that lists
10852  # what "hidden" libraries, object files and flags are used when
10853  # linking a shared library.
10854  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10855
10856else
10857  GXX=no
10858  with_gnu_ld=no
10859  wlarc=
10860fi
10861
10862# PORTME: fill in a description of your system's C++ link characteristics
10863{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10865ld_shlibs_CXX=yes
10866case $host_os in
10867  aix3*)
10868    # FIXME: insert proper C++ library support
10869    ld_shlibs_CXX=no
10870    ;;
10871  aix4* | aix5*)
10872    if test "$host_cpu" = ia64; then
10873      # On IA64, the linker does run time linking by default, so we don't
10874      # have to do anything special.
10875      aix_use_runtimelinking=no
10876      exp_sym_flag='-Bexport'
10877      no_entry_flag=""
10878    else
10879      aix_use_runtimelinking=no
10880
10881      # Test if we are trying to use run time linking or normal
10882      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10883      # need to do runtime linking.
10884      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10885	for ld_flag in $LDFLAGS; do
10886	  case $ld_flag in
10887	  *-brtl*)
10888	    aix_use_runtimelinking=yes
10889	    break
10890	    ;;
10891	  esac
10892	done
10893	;;
10894      esac
10895
10896      exp_sym_flag='-bexport'
10897      no_entry_flag='-bnoentry'
10898    fi
10899
10900    # When large executables or shared objects are built, AIX ld can
10901    # have problems creating the table of contents.  If linking a library
10902    # or program results in "error TOC overflow" add -mminimal-toc to
10903    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10904    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10905
10906    archive_cmds_CXX=''
10907    hardcode_direct_CXX=yes
10908    hardcode_libdir_separator_CXX=':'
10909    link_all_deplibs_CXX=yes
10910
10911    if test "$GXX" = yes; then
10912      case $host_os in aix4.[012]|aix4.[012].*)
10913      # We only want to do this on AIX 4.2 and lower, the check
10914      # below for broken collect2 doesn't work under 4.3+
10915	collect2name=`${CC} -print-prog-name=collect2`
10916	if test -f "$collect2name" && \
10917	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10918	then
10919	  # We have reworked collect2
10920	  hardcode_direct_CXX=yes
10921	else
10922	  # We have old collect2
10923	  hardcode_direct_CXX=unsupported
10924	  # It fails to find uninstalled libraries when the uninstalled
10925	  # path is not listed in the libpath.  Setting hardcode_minus_L
10926	  # to unsupported forces relinking
10927	  hardcode_minus_L_CXX=yes
10928	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10929	  hardcode_libdir_separator_CXX=
10930	fi
10931	;;
10932      esac
10933      shared_flag='-shared'
10934      if test "$aix_use_runtimelinking" = yes; then
10935	shared_flag="$shared_flag "'${wl}-G'
10936      fi
10937    else
10938      # not using gcc
10939      if test "$host_cpu" = ia64; then
10940	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10941	# chokes on -Wl,-G. The following line is correct:
10942	shared_flag='-G'
10943      else
10944	if test "$aix_use_runtimelinking" = yes; then
10945	  shared_flag='${wl}-G'
10946	else
10947	  shared_flag='${wl}-bM:SRE'
10948	fi
10949      fi
10950    fi
10951
10952    # It seems that -bexpall does not export symbols beginning with
10953    # underscore (_), so it is better to generate a list of symbols to export.
10954    always_export_symbols_CXX=yes
10955    if test "$aix_use_runtimelinking" = yes; then
10956      # Warning - without using the other runtime loading flags (-brtl),
10957      # -berok will link without error, but may produce a broken library.
10958      allow_undefined_flag_CXX='-berok'
10959      # Determine the default libpath from the value encoded in an empty executable.
10960      cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h.  */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h.  */
10966
10967int
10968main ()
10969{
10970
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975rm -f conftest.$ac_objext conftest$ac_exeext
10976if { (ac_try="$ac_link"
10977case "(($ac_try" in
10978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979  *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982  (eval "$ac_link") 2>conftest.er1
10983  ac_status=$?
10984  grep -v '^ *+' conftest.er1 >conftest.err
10985  rm -f conftest.er1
10986  cat conftest.err >&5
10987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988  (exit $ac_status); } && {
10989	 test -z "$ac_cxx_werror_flag" ||
10990	 test ! -s conftest.err
10991       } && test -s conftest$ac_exeext &&
10992       $as_test_x conftest$ac_exeext; then
10993
10994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10995}'`
10996# Check for a 64-bit object if we didn't find anything.
10997if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10998}'`; fi
10999else
11000  echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004fi
11005
11006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007      conftest$ac_exeext conftest.$ac_ext
11008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11009
11010      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11011
11012      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"
11013     else
11014      if test "$host_cpu" = ia64; then
11015	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11016	allow_undefined_flag_CXX="-z nodefs"
11017	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"
11018      else
11019	# Determine the default libpath from the value encoded in an empty executable.
11020	cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h.  */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h.  */
11026
11027int
11028main ()
11029{
11030
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035rm -f conftest.$ac_objext conftest$ac_exeext
11036if { (ac_try="$ac_link"
11037case "(($ac_try" in
11038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039  *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042  (eval "$ac_link") 2>conftest.er1
11043  ac_status=$?
11044  grep -v '^ *+' conftest.er1 >conftest.err
11045  rm -f conftest.er1
11046  cat conftest.err >&5
11047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048  (exit $ac_status); } && {
11049	 test -z "$ac_cxx_werror_flag" ||
11050	 test ! -s conftest.err
11051       } && test -s conftest$ac_exeext &&
11052       $as_test_x conftest$ac_exeext; then
11053
11054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11055}'`
11056# Check for a 64-bit object if we didn't find anything.
11057if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11058}'`; fi
11059else
11060  echo "$as_me: failed program was:" >&5
11061sed 's/^/| /' conftest.$ac_ext >&5
11062
11063
11064fi
11065
11066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067      conftest$ac_exeext conftest.$ac_ext
11068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11069
11070	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11071	# Warning - without using the other run time loading flags,
11072	# -berok will link without error, but may produce a broken library.
11073	no_undefined_flag_CXX=' ${wl}-bernotok'
11074	allow_undefined_flag_CXX=' ${wl}-berok'
11075	# Exported symbols can be pulled into shared objects from archives
11076	whole_archive_flag_spec_CXX='$convenience'
11077	archive_cmds_need_lc_CXX=yes
11078	# This is similar to how AIX traditionally builds its shared libraries.
11079	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'
11080      fi
11081    fi
11082    ;;
11083
11084  beos*)
11085    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11086      allow_undefined_flag_CXX=unsupported
11087      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11088      # support --undefined.  This deserves some investigation.  FIXME
11089      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090    else
11091      ld_shlibs_CXX=no
11092    fi
11093    ;;
11094
11095  chorus*)
11096    case $cc_basename in
11097      *)
11098	# FIXME: insert proper C++ library support
11099	ld_shlibs_CXX=no
11100	;;
11101    esac
11102    ;;
11103
11104  cygwin* | mingw* | pw32*)
11105    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11106    # as there is no search path for DLLs.
11107    hardcode_libdir_flag_spec_CXX='-L$libdir'
11108    allow_undefined_flag_CXX=unsupported
11109    always_export_symbols_CXX=no
11110    enable_shared_with_static_runtimes_CXX=yes
11111
11112    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11113      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'
11114      # If the export-symbols file already is a .def file (1st line
11115      # is EXPORTS), use it as is; otherwise, prepend...
11116      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11117	cp $export_symbols $output_objdir/$soname.def;
11118      else
11119	echo EXPORTS > $output_objdir/$soname.def;
11120	cat $export_symbols >> $output_objdir/$soname.def;
11121      fi~
11122      $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'
11123    else
11124      ld_shlibs_CXX=no
11125    fi
11126  ;;
11127      darwin* | rhapsody*)
11128        case $host_os in
11129        rhapsody* | darwin1.[012])
11130         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11131         ;;
11132       *) # Darwin 1.3 on
11133         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11134           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11135         else
11136           case ${MACOSX_DEPLOYMENT_TARGET} in
11137             10.[012])
11138               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11139               ;;
11140             10.*)
11141               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11142               ;;
11143           esac
11144         fi
11145         ;;
11146        esac
11147      archive_cmds_need_lc_CXX=no
11148      hardcode_direct_CXX=no
11149      hardcode_automatic_CXX=yes
11150      hardcode_shlibpath_var_CXX=unsupported
11151      whole_archive_flag_spec_CXX=''
11152      link_all_deplibs_CXX=yes
11153
11154    if test "$GXX" = yes ; then
11155      lt_int_apple_cc_single_mod=no
11156      output_verbose_link_cmd='echo'
11157      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11158       lt_int_apple_cc_single_mod=yes
11159      fi
11160      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11161       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11162      else
11163          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'
11164        fi
11165        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11166        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11167          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11168            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11169          else
11170            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11171          fi
11172            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}'
11173      else
11174      case $cc_basename in
11175        xlc*)
11176         output_verbose_link_cmd='echo'
11177          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11178          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11179          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11180          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11181          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}'
11182          ;;
11183       *)
11184         ld_shlibs_CXX=no
11185          ;;
11186      esac
11187      fi
11188        ;;
11189
11190  dgux*)
11191    case $cc_basename in
11192      ec++*)
11193	# FIXME: insert proper C++ library support
11194	ld_shlibs_CXX=no
11195	;;
11196      ghcx*)
11197	# Green Hills C++ Compiler
11198	# FIXME: insert proper C++ library support
11199	ld_shlibs_CXX=no
11200	;;
11201      *)
11202	# FIXME: insert proper C++ library support
11203	ld_shlibs_CXX=no
11204	;;
11205    esac
11206    ;;
11207  freebsd[12]*)
11208    # C++ shared libraries reported to be fairly broken before switch to ELF
11209    ld_shlibs_CXX=no
11210    ;;
11211  freebsd-elf*)
11212    archive_cmds_need_lc_CXX=no
11213    ;;
11214  freebsd* | kfreebsd*-gnu | dragonfly*)
11215    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11216    # conventions
11217    ld_shlibs_CXX=yes
11218    ;;
11219  gnu*)
11220    ;;
11221  hpux9*)
11222    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11223    hardcode_libdir_separator_CXX=:
11224    export_dynamic_flag_spec_CXX='${wl}-E'
11225    hardcode_direct_CXX=yes
11226    hardcode_minus_L_CXX=yes # Not in the search PATH,
11227				# but as the default
11228				# location of the library.
11229
11230    case $cc_basename in
11231    CC*)
11232      # FIXME: insert proper C++ library support
11233      ld_shlibs_CXX=no
11234      ;;
11235    aCC*)
11236      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'
11237      # Commands to make compiler produce verbose output that lists
11238      # what "hidden" libraries, object files and flags are used when
11239      # linking a shared library.
11240      #
11241      # There doesn't appear to be a way to prevent this compiler from
11242      # explicitly linking system object files so we need to strip them
11243      # from the output so that they don't get included in the library
11244      # dependencies.
11245      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'
11246      ;;
11247    *)
11248      if test "$GXX" = yes; then
11249        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'
11250      else
11251        # FIXME: insert proper C++ library support
11252        ld_shlibs_CXX=no
11253      fi
11254      ;;
11255    esac
11256    ;;
11257  hpux10*|hpux11*)
11258    if test $with_gnu_ld = no; then
11259      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260      hardcode_libdir_separator_CXX=:
11261
11262      case $host_cpu in
11263      hppa*64*|ia64*)
11264	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11265        ;;
11266      *)
11267	export_dynamic_flag_spec_CXX='${wl}-E'
11268        ;;
11269      esac
11270    fi
11271    case $host_cpu in
11272    hppa*64*|ia64*)
11273      hardcode_direct_CXX=no
11274      hardcode_shlibpath_var_CXX=no
11275      ;;
11276    *)
11277      hardcode_direct_CXX=yes
11278      hardcode_minus_L_CXX=yes # Not in the search PATH,
11279					      # but as the default
11280					      # location of the library.
11281      ;;
11282    esac
11283
11284    case $cc_basename in
11285      CC*)
11286	# FIXME: insert proper C++ library support
11287	ld_shlibs_CXX=no
11288	;;
11289      aCC*)
11290	case $host_cpu in
11291	hppa*64*)
11292	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11293	  ;;
11294	ia64*)
11295	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11296	  ;;
11297	*)
11298	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11299	  ;;
11300	esac
11301	# Commands to make compiler produce verbose output that lists
11302	# what "hidden" libraries, object files and flags are used when
11303	# linking a shared library.
11304	#
11305	# There doesn't appear to be a way to prevent this compiler from
11306	# explicitly linking system object files so we need to strip them
11307	# from the output so that they don't get included in the library
11308	# dependencies.
11309	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'
11310	;;
11311      *)
11312	if test "$GXX" = yes; then
11313	  if test $with_gnu_ld = no; then
11314	    case $host_cpu in
11315	    hppa*64*)
11316	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317	      ;;
11318	    ia64*)
11319	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320	      ;;
11321	    *)
11322	      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'
11323	      ;;
11324	    esac
11325	  fi
11326	else
11327	  # FIXME: insert proper C++ library support
11328	  ld_shlibs_CXX=no
11329	fi
11330	;;
11331    esac
11332    ;;
11333  interix3*)
11334    hardcode_direct_CXX=no
11335    hardcode_shlibpath_var_CXX=no
11336    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11337    export_dynamic_flag_spec_CXX='${wl}-E'
11338    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11339    # Instead, shared libraries are loaded at an image base (0x10000000 by
11340    # default) and relocated if they conflict, which is a slow very memory
11341    # consuming and fragmenting process.  To avoid this, we pick a random,
11342    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11343    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11344    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'
11345    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'
11346    ;;
11347  irix5* | irix6*)
11348    case $cc_basename in
11349      CC*)
11350	# SGI C++
11351	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'
11352
11353	# Archives containing C++ object files must be created using
11354	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11355	# necessary to make sure instantiated templates are included
11356	# in the archive.
11357	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11358	;;
11359      *)
11360	if test "$GXX" = yes; then
11361	  if test "$with_gnu_ld" = no; then
11362	    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'
11363	  else
11364	    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'
11365	  fi
11366	fi
11367	link_all_deplibs_CXX=yes
11368	;;
11369    esac
11370    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11371    hardcode_libdir_separator_CXX=:
11372    ;;
11373  linux*)
11374    case $cc_basename in
11375      KCC*)
11376	# Kuck and Associates, Inc. (KAI) C++ Compiler
11377
11378	# KCC will only create a shared library if the output file
11379	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11380	# to its proper name (with version) after linking.
11381	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'
11382	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'
11383	# Commands to make compiler produce verbose output that lists
11384	# what "hidden" libraries, object files and flags are used when
11385	# linking a shared library.
11386	#
11387	# There doesn't appear to be a way to prevent this compiler from
11388	# explicitly linking system object files so we need to strip them
11389	# from the output so that they don't get included in the library
11390	# dependencies.
11391	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'
11392
11393	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11394	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11395
11396	# Archives containing C++ object files must be created using
11397	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11398	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11399	;;
11400      icpc*)
11401	# Intel C++
11402	with_gnu_ld=yes
11403	# version 8.0 and above of icpc choke on multiply defined symbols
11404	# if we add $predep_objects and $postdep_objects, however 7.1 and
11405	# earlier do not add the objects themselves.
11406	case `$CC -V 2>&1` in
11407	*"Version 7."*)
11408  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11409  	  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'
11410	  ;;
11411	*)  # Version 8.0 or newer
11412	  tmp_idyn=
11413	  case $host_cpu in
11414	    ia64*) tmp_idyn=' -i_dynamic';;
11415	  esac
11416  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417	  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'
11418	  ;;
11419	esac
11420	archive_cmds_need_lc_CXX=no
11421	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11422	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11424	;;
11425      pgCC*)
11426        # Portland Group C++ compiler
11427	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11428  	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'
11429
11430	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11431	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11432	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'
11433        ;;
11434      cxx*)
11435	# Compaq C++
11436	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437	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'
11438
11439	runpath_var=LD_RUN_PATH
11440	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11441	hardcode_libdir_separator_CXX=:
11442
11443	# Commands to make compiler produce verbose output that lists
11444	# what "hidden" libraries, object files and flags are used when
11445	# linking a shared library.
11446	#
11447	# There doesn't appear to be a way to prevent this compiler from
11448	# explicitly linking system object files so we need to strip them
11449	# from the output so that they don't get included in the library
11450	# dependencies.
11451	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'
11452	;;
11453    esac
11454    ;;
11455  lynxos*)
11456    # FIXME: insert proper C++ library support
11457    ld_shlibs_CXX=no
11458    ;;
11459  m88k*)
11460    # FIXME: insert proper C++ library support
11461    ld_shlibs_CXX=no
11462    ;;
11463  mvs*)
11464    case $cc_basename in
11465      cxx*)
11466	# FIXME: insert proper C++ library support
11467	ld_shlibs_CXX=no
11468	;;
11469      *)
11470	# FIXME: insert proper C++ library support
11471	ld_shlibs_CXX=no
11472	;;
11473    esac
11474    ;;
11475  netbsd*)
11476    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11477      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11478      wlarc=
11479      hardcode_libdir_flag_spec_CXX='-R$libdir'
11480      hardcode_direct_CXX=yes
11481      hardcode_shlibpath_var_CXX=no
11482    fi
11483    # Workaround some broken pre-1.5 toolchains
11484    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11485    ;;
11486  openbsd2*)
11487    # C++ shared libraries are fairly broken
11488    ld_shlibs_CXX=no
11489    ;;
11490  openbsd*)
11491    hardcode_direct_CXX=yes
11492    hardcode_shlibpath_var_CXX=no
11493    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11494    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11495    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11497      export_dynamic_flag_spec_CXX='${wl}-E'
11498      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11499    fi
11500    output_verbose_link_cmd='echo'
11501    ;;
11502  osf3*)
11503    case $cc_basename in
11504      KCC*)
11505	# Kuck and Associates, Inc. (KAI) C++ Compiler
11506
11507	# KCC will only create a shared library if the output file
11508	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11509	# to its proper name (with version) after linking.
11510	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'
11511
11512	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11513	hardcode_libdir_separator_CXX=:
11514
11515	# Archives containing C++ object files must be created using
11516	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11517	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11518
11519	;;
11520      RCC*)
11521	# Rational C++ 2.4.1
11522	# FIXME: insert proper C++ library support
11523	ld_shlibs_CXX=no
11524	;;
11525      cxx*)
11526	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11527	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'
11528
11529	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11530	hardcode_libdir_separator_CXX=:
11531
11532	# Commands to make compiler produce verbose output that lists
11533	# what "hidden" libraries, object files and flags are used when
11534	# linking a shared library.
11535	#
11536	# There doesn't appear to be a way to prevent this compiler from
11537	# explicitly linking system object files so we need to strip them
11538	# from the output so that they don't get included in the library
11539	# dependencies.
11540	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'
11541	;;
11542      *)
11543	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11544	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11545	  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'
11546
11547	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11548	  hardcode_libdir_separator_CXX=:
11549
11550	  # Commands to make compiler produce verbose output that lists
11551	  # what "hidden" libraries, object files and flags are used when
11552	  # linking a shared library.
11553	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11554
11555	else
11556	  # FIXME: insert proper C++ library support
11557	  ld_shlibs_CXX=no
11558	fi
11559	;;
11560    esac
11561    ;;
11562  osf4* | osf5*)
11563    case $cc_basename in
11564      KCC*)
11565	# Kuck and Associates, Inc. (KAI) C++ Compiler
11566
11567	# KCC will only create a shared library if the output file
11568	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11569	# to its proper name (with version) after linking.
11570	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'
11571
11572	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11573	hardcode_libdir_separator_CXX=:
11574
11575	# Archives containing C++ object files must be created using
11576	# the KAI C++ compiler.
11577	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11578	;;
11579      RCC*)
11580	# Rational C++ 2.4.1
11581	# FIXME: insert proper C++ library support
11582	ld_shlibs_CXX=no
11583	;;
11584      cxx*)
11585	allow_undefined_flag_CXX=' -expect_unresolved \*'
11586	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'
11587	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11588	  echo "-hidden">> $lib.exp~
11589	  $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~
11590	  $rm $lib.exp'
11591
11592	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11593	hardcode_libdir_separator_CXX=:
11594
11595	# Commands to make compiler produce verbose output that lists
11596	# what "hidden" libraries, object files and flags are used when
11597	# linking a shared library.
11598	#
11599	# There doesn't appear to be a way to prevent this compiler from
11600	# explicitly linking system object files so we need to strip them
11601	# from the output so that they don't get included in the library
11602	# dependencies.
11603	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'
11604	;;
11605      *)
11606	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11607	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11608	 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'
11609
11610	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11611	  hardcode_libdir_separator_CXX=:
11612
11613	  # Commands to make compiler produce verbose output that lists
11614	  # what "hidden" libraries, object files and flags are used when
11615	  # linking a shared library.
11616	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11617
11618	else
11619	  # FIXME: insert proper C++ library support
11620	  ld_shlibs_CXX=no
11621	fi
11622	;;
11623    esac
11624    ;;
11625  psos*)
11626    # FIXME: insert proper C++ library support
11627    ld_shlibs_CXX=no
11628    ;;
11629  sunos4*)
11630    case $cc_basename in
11631      CC*)
11632	# Sun C++ 4.x
11633	# FIXME: insert proper C++ library support
11634	ld_shlibs_CXX=no
11635	;;
11636      lcc*)
11637	# Lucid
11638	# FIXME: insert proper C++ library support
11639	ld_shlibs_CXX=no
11640	;;
11641      *)
11642	# FIXME: insert proper C++ library support
11643	ld_shlibs_CXX=no
11644	;;
11645    esac
11646    ;;
11647  solaris*)
11648    case $cc_basename in
11649      CC*)
11650	# Sun C++ 4.2, 5.x and Centerline C++
11651        archive_cmds_need_lc_CXX=yes
11652	no_undefined_flag_CXX=' -zdefs'
11653	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11654	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11655	$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'
11656
11657	hardcode_libdir_flag_spec_CXX='-R$libdir'
11658	hardcode_shlibpath_var_CXX=no
11659	case $host_os in
11660	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11661	  *)
11662	    # The C++ compiler is used as linker so we must use $wl
11663	    # flag to pass the commands to the underlying system
11664	    # linker. We must also pass each convience library through
11665	    # to the system linker between allextract/defaultextract.
11666	    # The C++ compiler will combine linker options so we
11667	    # cannot just pass the convience library names through
11668	    # without $wl.
11669	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11670	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11671	    ;;
11672	esac
11673	link_all_deplibs_CXX=yes
11674
11675	output_verbose_link_cmd='echo'
11676
11677	# Archives containing C++ object files must be created using
11678	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11679	# necessary to make sure instantiated templates are included
11680	# in the archive.
11681	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11682	;;
11683      gcx*)
11684	# Green Hills C++ Compiler
11685	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11686
11687	# The C++ compiler must be used to create the archive.
11688	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11689	;;
11690      *)
11691	# GNU C++ compiler with Solaris linker
11692	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11693	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11694	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11695	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11696	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11697		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11698
11699	    # Commands to make compiler produce verbose output that lists
11700	    # what "hidden" libraries, object files and flags are used when
11701	    # linking a shared library.
11702	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11703	  else
11704	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11705	    # platform.
11706	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11707	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11708		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11709
11710	    # Commands to make compiler produce verbose output that lists
11711	    # what "hidden" libraries, object files and flags are used when
11712	    # linking a shared library.
11713	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11714	  fi
11715
11716	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11717	fi
11718	;;
11719    esac
11720    ;;
11721  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11722    no_undefined_flag_CXX='${wl}-z,text'
11723    archive_cmds_need_lc_CXX=no
11724    hardcode_shlibpath_var_CXX=no
11725    runpath_var='LD_RUN_PATH'
11726
11727    case $cc_basename in
11728      CC*)
11729	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11731	;;
11732      *)
11733	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735	;;
11736    esac
11737    ;;
11738  sysv5* | sco3.2v5* | sco5v6*)
11739    # Note: We can NOT use -z defs as we might desire, because we do not
11740    # link with -lc, and that would cause any symbols used from libc to
11741    # always be unresolved, which means just about no library would
11742    # ever link correctly.  If we're not using GNU ld we use -z text
11743    # though, which does catch some bad symbols but isn't as heavy-handed
11744    # as -z defs.
11745    # For security reasons, it is highly recommended that you always
11746    # use absolute paths for naming shared libraries, and exclude the
11747    # DT_RUNPATH tag from executables and libraries.  But doing so
11748    # requires that you compile everything twice, which is a pain.
11749    # So that behaviour is only enabled if SCOABSPATH is set to a
11750    # non-empty value in the environment.  Most likely only useful for
11751    # creating official distributions of packages.
11752    # This is a hack until libtool officially supports absolute path
11753    # names for shared libraries.
11754    no_undefined_flag_CXX='${wl}-z,text'
11755    allow_undefined_flag_CXX='${wl}-z,nodefs'
11756    archive_cmds_need_lc_CXX=no
11757    hardcode_shlibpath_var_CXX=no
11758    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11759    hardcode_libdir_separator_CXX=':'
11760    link_all_deplibs_CXX=yes
11761    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11762    runpath_var='LD_RUN_PATH'
11763
11764    case $cc_basename in
11765      CC*)
11766	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11767	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768	;;
11769      *)
11770	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11771	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772	;;
11773    esac
11774    ;;
11775  tandem*)
11776    case $cc_basename in
11777      NCC*)
11778	# NonStop-UX NCC 3.20
11779	# FIXME: insert proper C++ library support
11780	ld_shlibs_CXX=no
11781	;;
11782      *)
11783	# FIXME: insert proper C++ library support
11784	ld_shlibs_CXX=no
11785	;;
11786    esac
11787    ;;
11788  vxworks*)
11789    # FIXME: insert proper C++ library support
11790    ld_shlibs_CXX=no
11791    ;;
11792  *)
11793    # FIXME: insert proper C++ library support
11794    ld_shlibs_CXX=no
11795    ;;
11796esac
11797{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11798echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11799test "$ld_shlibs_CXX" = no && can_build_shared=no
11800
11801GCC_CXX="$GXX"
11802LD_CXX="$LD"
11803
11804
11805cat > conftest.$ac_ext <<EOF
11806class Foo
11807{
11808public:
11809  Foo (void) { a = 0; }
11810private:
11811  int a;
11812};
11813EOF
11814
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816  (eval $ac_compile) 2>&5
11817  ac_status=$?
11818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819  (exit $ac_status); }; then
11820  # Parse the compiler output and extract the necessary
11821  # objects, libraries and library flags.
11822
11823  # Sentinel used to keep track of whether or not we are before
11824  # the conftest object file.
11825  pre_test_object_deps_done=no
11826
11827  # The `*' in the case matches for architectures that use `case' in
11828  # $output_verbose_cmd can trigger glob expansion during the loop
11829  # eval without this substitution.
11830  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11831
11832  for p in `eval $output_verbose_link_cmd`; do
11833    case $p in
11834
11835    -L* | -R* | -l*)
11836       # Some compilers place space between "-{L,R}" and the path.
11837       # Remove the space.
11838       if test $p = "-L" \
11839	  || test $p = "-R"; then
11840	 prev=$p
11841	 continue
11842       else
11843	 prev=
11844       fi
11845
11846       if test "$pre_test_object_deps_done" = no; then
11847	 case $p in
11848	 -L* | -R*)
11849	   # Internal compiler library paths should come after those
11850	   # provided the user.  The postdeps already come after the
11851	   # user supplied libs so there is no need to process them.
11852	   if test -z "$compiler_lib_search_path_CXX"; then
11853	     compiler_lib_search_path_CXX="${prev}${p}"
11854	   else
11855	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11856	   fi
11857	   ;;
11858	 # The "-l" case would never come before the object being
11859	 # linked, so don't bother handling this case.
11860	 esac
11861       else
11862	 if test -z "$postdeps_CXX"; then
11863	   postdeps_CXX="${prev}${p}"
11864	 else
11865	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11866	 fi
11867       fi
11868       ;;
11869
11870    *.$objext)
11871       # This assumes that the test object file only shows up
11872       # once in the compiler output.
11873       if test "$p" = "conftest.$objext"; then
11874	 pre_test_object_deps_done=yes
11875	 continue
11876       fi
11877
11878       if test "$pre_test_object_deps_done" = no; then
11879	 if test -z "$predep_objects_CXX"; then
11880	   predep_objects_CXX="$p"
11881	 else
11882	   predep_objects_CXX="$predep_objects_CXX $p"
11883	 fi
11884       else
11885	 if test -z "$postdep_objects_CXX"; then
11886	   postdep_objects_CXX="$p"
11887	 else
11888	   postdep_objects_CXX="$postdep_objects_CXX $p"
11889	 fi
11890       fi
11891       ;;
11892
11893    *) ;; # Ignore the rest.
11894
11895    esac
11896  done
11897
11898  # Clean up.
11899  rm -f a.out a.exe
11900else
11901  echo "libtool.m4: error: problem compiling CXX test program"
11902fi
11903
11904$rm -f confest.$objext
11905
11906# PORTME: override above test on systems where it is broken
11907case $host_os in
11908interix3*)
11909  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11910  # hack all around it, let's just trust "g++" to DTRT.
11911  predep_objects_CXX=
11912  postdep_objects_CXX=
11913  postdeps_CXX=
11914  ;;
11915
11916solaris*)
11917  case $cc_basename in
11918  CC*)
11919    # Adding this requires a known-good setup of shared libraries for
11920    # Sun compiler versions before 5.6, else PIC objects from an old
11921    # archive will be linked into the output, leading to subtle bugs.
11922    postdeps_CXX='-lCstd -lCrun'
11923    ;;
11924  esac
11925  ;;
11926esac
11927
11928
11929case " $postdeps_CXX " in
11930*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11931esac
11932
11933lt_prog_compiler_wl_CXX=
11934lt_prog_compiler_pic_CXX=
11935lt_prog_compiler_static_CXX=
11936
11937{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11938echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11939
11940  # C++ specific cases for pic, static, wl, etc.
11941  if test "$GXX" = yes; then
11942    lt_prog_compiler_wl_CXX='-Wl,'
11943    lt_prog_compiler_static_CXX='-static'
11944
11945    case $host_os in
11946    aix*)
11947      # All AIX code is PIC.
11948      if test "$host_cpu" = ia64; then
11949	# AIX 5 now supports IA64 processor
11950	lt_prog_compiler_static_CXX='-Bstatic'
11951      fi
11952      ;;
11953    amigaos*)
11954      # FIXME: we need at least 68020 code to build shared libraries, but
11955      # adding the `-m68020' flag to GCC prevents building anything better,
11956      # like `-m68040'.
11957      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11958      ;;
11959    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11960      # PIC is the default for these OSes.
11961      ;;
11962    mingw* | os2* | pw32*)
11963      # This hack is so that the source file can tell whether it is being
11964      # built for inclusion in a dll (and should export symbols for example).
11965      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11966      ;;
11967    darwin* | rhapsody*)
11968      # PIC is the default on this platform
11969      # Common symbols not allowed in MH_DYLIB files
11970      lt_prog_compiler_pic_CXX='-fno-common'
11971      ;;
11972    *djgpp*)
11973      # DJGPP does not support shared libraries at all
11974      lt_prog_compiler_pic_CXX=
11975      ;;
11976    interix3*)
11977      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11978      # Instead, we relocate shared libraries at runtime.
11979      ;;
11980    sysv4*MP*)
11981      if test -d /usr/nec; then
11982	lt_prog_compiler_pic_CXX=-Kconform_pic
11983      fi
11984      ;;
11985    hpux*)
11986      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11987      # not for PA HP-UX.
11988      case $host_cpu in
11989      hppa*64*|ia64*)
11990	;;
11991      *)
11992	lt_prog_compiler_pic_CXX='-fPIC'
11993	;;
11994      esac
11995      ;;
11996    *)
11997      lt_prog_compiler_pic_CXX='-fPIC'
11998      ;;
11999    esac
12000  else
12001    case $host_os in
12002      aix4* | aix5*)
12003	# All AIX code is PIC.
12004	if test "$host_cpu" = ia64; then
12005	  # AIX 5 now supports IA64 processor
12006	  lt_prog_compiler_static_CXX='-Bstatic'
12007	else
12008	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12009	fi
12010	;;
12011      chorus*)
12012	case $cc_basename in
12013	cxch68*)
12014	  # Green Hills C++ Compiler
12015	  # _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"
12016	  ;;
12017	esac
12018	;;
12019       darwin*)
12020         # PIC is the default on this platform
12021         # Common symbols not allowed in MH_DYLIB files
12022         case $cc_basename in
12023           xlc*)
12024           lt_prog_compiler_pic_CXX='-qnocommon'
12025           lt_prog_compiler_wl_CXX='-Wl,'
12026           ;;
12027         esac
12028       ;;
12029      dgux*)
12030	case $cc_basename in
12031	  ec++*)
12032	    lt_prog_compiler_pic_CXX='-KPIC'
12033	    ;;
12034	  ghcx*)
12035	    # Green Hills C++ Compiler
12036	    lt_prog_compiler_pic_CXX='-pic'
12037	    ;;
12038	  *)
12039	    ;;
12040	esac
12041	;;
12042      freebsd* | kfreebsd*-gnu | dragonfly*)
12043	# FreeBSD uses GNU C++
12044	;;
12045      hpux9* | hpux10* | hpux11*)
12046	case $cc_basename in
12047	  CC*)
12048	    lt_prog_compiler_wl_CXX='-Wl,'
12049	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12050	    if test "$host_cpu" != ia64; then
12051	      lt_prog_compiler_pic_CXX='+Z'
12052	    fi
12053	    ;;
12054	  aCC*)
12055	    lt_prog_compiler_wl_CXX='-Wl,'
12056	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12057	    case $host_cpu in
12058	    hppa*64*|ia64*)
12059	      # +Z the default
12060	      ;;
12061	    *)
12062	      lt_prog_compiler_pic_CXX='+Z'
12063	      ;;
12064	    esac
12065	    ;;
12066	  *)
12067	    ;;
12068	esac
12069	;;
12070      interix*)
12071	# This is c89, which is MS Visual C++ (no shared libs)
12072	# Anyone wants to do a port?
12073	;;
12074      irix5* | irix6* | nonstopux*)
12075	case $cc_basename in
12076	  CC*)
12077	    lt_prog_compiler_wl_CXX='-Wl,'
12078	    lt_prog_compiler_static_CXX='-non_shared'
12079	    # CC pic flag -KPIC is the default.
12080	    ;;
12081	  *)
12082	    ;;
12083	esac
12084	;;
12085      linux*)
12086	case $cc_basename in
12087	  KCC*)
12088	    # KAI C++ Compiler
12089	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12090	    lt_prog_compiler_pic_CXX='-fPIC'
12091	    ;;
12092	  icpc* | ecpc*)
12093	    # Intel C++
12094	    lt_prog_compiler_wl_CXX='-Wl,'
12095	    lt_prog_compiler_pic_CXX='-KPIC'
12096	    lt_prog_compiler_static_CXX='-static'
12097	    ;;
12098	  pgCC*)
12099	    # Portland Group C++ compiler.
12100	    lt_prog_compiler_wl_CXX='-Wl,'
12101	    lt_prog_compiler_pic_CXX='-fpic'
12102	    lt_prog_compiler_static_CXX='-Bstatic'
12103	    ;;
12104	  cxx*)
12105	    # Compaq C++
12106	    # Make sure the PIC flag is empty.  It appears that all Alpha
12107	    # Linux and Compaq Tru64 Unix objects are PIC.
12108	    lt_prog_compiler_pic_CXX=
12109	    lt_prog_compiler_static_CXX='-non_shared'
12110	    ;;
12111	  *)
12112	    ;;
12113	esac
12114	;;
12115      lynxos*)
12116	;;
12117      m88k*)
12118	;;
12119      mvs*)
12120	case $cc_basename in
12121	  cxx*)
12122	    lt_prog_compiler_pic_CXX='-W c,exportall'
12123	    ;;
12124	  *)
12125	    ;;
12126	esac
12127	;;
12128      netbsd*)
12129	;;
12130      osf3* | osf4* | osf5*)
12131	case $cc_basename in
12132	  KCC*)
12133	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12134	    ;;
12135	  RCC*)
12136	    # Rational C++ 2.4.1
12137	    lt_prog_compiler_pic_CXX='-pic'
12138	    ;;
12139	  cxx*)
12140	    # Digital/Compaq C++
12141	    lt_prog_compiler_wl_CXX='-Wl,'
12142	    # Make sure the PIC flag is empty.  It appears that all Alpha
12143	    # Linux and Compaq Tru64 Unix objects are PIC.
12144	    lt_prog_compiler_pic_CXX=
12145	    lt_prog_compiler_static_CXX='-non_shared'
12146	    ;;
12147	  *)
12148	    ;;
12149	esac
12150	;;
12151      psos*)
12152	;;
12153      solaris*)
12154	case $cc_basename in
12155	  CC*)
12156	    # Sun C++ 4.2, 5.x and Centerline C++
12157	    lt_prog_compiler_pic_CXX='-KPIC'
12158	    lt_prog_compiler_static_CXX='-Bstatic'
12159	    lt_prog_compiler_wl_CXX='-Qoption ld '
12160	    ;;
12161	  gcx*)
12162	    # Green Hills C++ Compiler
12163	    lt_prog_compiler_pic_CXX='-PIC'
12164	    ;;
12165	  *)
12166	    ;;
12167	esac
12168	;;
12169      sunos4*)
12170	case $cc_basename in
12171	  CC*)
12172	    # Sun C++ 4.x
12173	    lt_prog_compiler_pic_CXX='-pic'
12174	    lt_prog_compiler_static_CXX='-Bstatic'
12175	    ;;
12176	  lcc*)
12177	    # Lucid
12178	    lt_prog_compiler_pic_CXX='-pic'
12179	    ;;
12180	  *)
12181	    ;;
12182	esac
12183	;;
12184      tandem*)
12185	case $cc_basename in
12186	  NCC*)
12187	    # NonStop-UX NCC 3.20
12188	    lt_prog_compiler_pic_CXX='-KPIC'
12189	    ;;
12190	  *)
12191	    ;;
12192	esac
12193	;;
12194      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12195	case $cc_basename in
12196	  CC*)
12197	    lt_prog_compiler_wl_CXX='-Wl,'
12198	    lt_prog_compiler_pic_CXX='-KPIC'
12199	    lt_prog_compiler_static_CXX='-Bstatic'
12200	    ;;
12201	esac
12202	;;
12203      vxworks*)
12204	;;
12205      *)
12206	lt_prog_compiler_can_build_shared_CXX=no
12207	;;
12208    esac
12209  fi
12210
12211{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12212echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12213
12214#
12215# Check to make sure the PIC flag actually works.
12216#
12217if test -n "$lt_prog_compiler_pic_CXX"; then
12218
12219{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12220echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12221if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12222  echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224  lt_prog_compiler_pic_works_CXX=no
12225  ac_outfile=conftest.$ac_objext
12226   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12227   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12228   # Insert the option either (1) after the last *FLAGS variable, or
12229   # (2) before a word containing "conftest.", or (3) at the end.
12230   # Note that $ac_compile itself does not contain backslashes and begins
12231   # with a dollar sign (not a hyphen), so the echo should work correctly.
12232   # The option is referenced via a variable to avoid confusing sed.
12233   lt_compile=`echo "$ac_compile" | $SED \
12234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12236   -e 's:$: $lt_compiler_flag:'`
12237   (eval echo "\"\$as_me:12237: $lt_compile\"" >&5)
12238   (eval "$lt_compile" 2>conftest.err)
12239   ac_status=$?
12240   cat conftest.err >&5
12241   echo "$as_me:12241: \$? = $ac_status" >&5
12242   if (exit $ac_status) && test -s "$ac_outfile"; then
12243     # The compiler can only warn and ignore the option if not recognized
12244     # So say no if there are warnings other than the usual output.
12245     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12246     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12247     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12248       lt_prog_compiler_pic_works_CXX=yes
12249     fi
12250   fi
12251   $rm conftest*
12252
12253fi
12254{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12255echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12256
12257if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12258    case $lt_prog_compiler_pic_CXX in
12259     "" | " "*) ;;
12260     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12261     esac
12262else
12263    lt_prog_compiler_pic_CXX=
12264     lt_prog_compiler_can_build_shared_CXX=no
12265fi
12266
12267fi
12268case $host_os in
12269  # For platforms which do not support PIC, -DPIC is meaningless:
12270  *djgpp*)
12271    lt_prog_compiler_pic_CXX=
12272    ;;
12273  *)
12274    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12275    ;;
12276esac
12277
12278#
12279# Check to make sure the static flag actually works.
12280#
12281wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12282{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12283echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12284if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12285  echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287  lt_prog_compiler_static_works_CXX=no
12288   save_LDFLAGS="$LDFLAGS"
12289   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12290   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12291   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12292     # The linker can only warn and ignore the option if not recognized
12293     # So say no if there are warnings
12294     if test -s conftest.err; then
12295       # Append any errors to the config.log.
12296       cat conftest.err 1>&5
12297       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12298       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12299       if diff conftest.exp conftest.er2 >/dev/null; then
12300         lt_prog_compiler_static_works_CXX=yes
12301       fi
12302     else
12303       lt_prog_compiler_static_works_CXX=yes
12304     fi
12305   fi
12306   $rm conftest*
12307   LDFLAGS="$save_LDFLAGS"
12308
12309fi
12310{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12311echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12312
12313if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12314    :
12315else
12316    lt_prog_compiler_static_CXX=
12317fi
12318
12319
12320{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12321echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12322if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12323  echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325  lt_cv_prog_compiler_c_o_CXX=no
12326   $rm -r conftest 2>/dev/null
12327   mkdir conftest
12328   cd conftest
12329   mkdir out
12330   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12331
12332   lt_compiler_flag="-o out/conftest2.$ac_objext"
12333   # Insert the option either (1) after the last *FLAGS variable, or
12334   # (2) before a word containing "conftest.", or (3) at the end.
12335   # Note that $ac_compile itself does not contain backslashes and begins
12336   # with a dollar sign (not a hyphen), so the echo should work correctly.
12337   lt_compile=`echo "$ac_compile" | $SED \
12338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12340   -e 's:$: $lt_compiler_flag:'`
12341   (eval echo "\"\$as_me:12341: $lt_compile\"" >&5)
12342   (eval "$lt_compile" 2>out/conftest.err)
12343   ac_status=$?
12344   cat out/conftest.err >&5
12345   echo "$as_me:12345: \$? = $ac_status" >&5
12346   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12347   then
12348     # The compiler can only warn and ignore the option if not recognized
12349     # So say no if there are warnings
12350     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12351     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12352     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12353       lt_cv_prog_compiler_c_o_CXX=yes
12354     fi
12355   fi
12356   chmod u+w . 2>&5
12357   $rm conftest*
12358   # SGI C++ compiler will create directory out/ii_files/ for
12359   # template instantiation
12360   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12361   $rm out/* && rmdir out
12362   cd ..
12363   rmdir conftest
12364   $rm conftest*
12365
12366fi
12367{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12368echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12369
12370
12371hard_links="nottested"
12372if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12373  # do not overwrite the value of need_locks provided by the user
12374  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12375echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12376  hard_links=yes
12377  $rm conftest*
12378  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12379  touch conftest.a
12380  ln conftest.a conftest.b 2>&5 || hard_links=no
12381  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12382  { echo "$as_me:$LINENO: result: $hard_links" >&5
12383echo "${ECHO_T}$hard_links" >&6; }
12384  if test "$hard_links" = no; then
12385    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12386echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12387    need_locks=warn
12388  fi
12389else
12390  need_locks=no
12391fi
12392
12393{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12394echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12395
12396  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12397  case $host_os in
12398  aix4* | aix5*)
12399    # If we're using GNU nm, then we don't want the "-C" option.
12400    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12401    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12402      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'
12403    else
12404      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'
12405    fi
12406    ;;
12407  pw32*)
12408    export_symbols_cmds_CXX="$ltdll_cmds"
12409  ;;
12410  cygwin* | mingw*)
12411    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'
12412  ;;
12413  *)
12414    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12415  ;;
12416  esac
12417
12418{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12419echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12420test "$ld_shlibs_CXX" = no && can_build_shared=no
12421
12422#
12423# Do we need to explicitly link libc?
12424#
12425case "x$archive_cmds_need_lc_CXX" in
12426x|xyes)
12427  # Assume -lc should be added
12428  archive_cmds_need_lc_CXX=yes
12429
12430  if test "$enable_shared" = yes && test "$GCC" = yes; then
12431    case $archive_cmds_CXX in
12432    *'~'*)
12433      # FIXME: we may have to deal with multi-command sequences.
12434      ;;
12435    '$CC '*)
12436      # Test whether the compiler implicitly links with -lc since on some
12437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12438      # to ld, don't add -lc before -lgcc.
12439      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12441      $rm conftest*
12442      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12443
12444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445  (eval $ac_compile) 2>&5
12446  ac_status=$?
12447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448  (exit $ac_status); } 2>conftest.err; then
12449        soname=conftest
12450        lib=conftest
12451        libobjs=conftest.$ac_objext
12452        deplibs=
12453        wl=$lt_prog_compiler_wl_CXX
12454	pic_flag=$lt_prog_compiler_pic_CXX
12455        compiler_flags=-v
12456        linker_flags=-v
12457        verstring=
12458        output_objdir=.
12459        libname=conftest
12460        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12461        allow_undefined_flag_CXX=
12462        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12463  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12464  ac_status=$?
12465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466  (exit $ac_status); }
12467        then
12468	  archive_cmds_need_lc_CXX=no
12469        else
12470	  archive_cmds_need_lc_CXX=yes
12471        fi
12472        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12473      else
12474        cat conftest.err 1>&5
12475      fi
12476      $rm conftest*
12477      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12478echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12479      ;;
12480    esac
12481  fi
12482  ;;
12483esac
12484
12485{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12486echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12487library_names_spec=
12488libname_spec='lib$name'
12489soname_spec=
12490shrext_cmds=".so"
12491postinstall_cmds=
12492postuninstall_cmds=
12493finish_cmds=
12494finish_eval=
12495shlibpath_var=
12496shlibpath_overrides_runpath=unknown
12497version_type=none
12498dynamic_linker="$host_os ld.so"
12499sys_lib_dlsearch_path_spec="/lib /usr/lib"
12500if test "$GCC" = yes; then
12501  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12502  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12503    # if the path contains ";" then we assume it to be the separator
12504    # otherwise default to the standard path separator (i.e. ":") - it is
12505    # assumed that no part of a normal pathname contains ";" but that should
12506    # okay in the real world where ";" in dirpaths is itself problematic.
12507    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12508  else
12509    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12510  fi
12511else
12512  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12513fi
12514need_lib_prefix=unknown
12515hardcode_into_libs=no
12516
12517# when you set need_version to no, make sure it does not cause -set_version
12518# flags to be left without arguments
12519need_version=unknown
12520
12521case $host_os in
12522aix3*)
12523  version_type=linux
12524  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12525  shlibpath_var=LIBPATH
12526
12527  # AIX 3 has no versioning support, so we append a major version to the name.
12528  soname_spec='${libname}${release}${shared_ext}$major'
12529  ;;
12530
12531aix4* | aix5*)
12532  version_type=linux
12533  need_lib_prefix=no
12534  need_version=no
12535  hardcode_into_libs=yes
12536  if test "$host_cpu" = ia64; then
12537    # AIX 5 supports IA64
12538    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12539    shlibpath_var=LD_LIBRARY_PATH
12540  else
12541    # With GCC up to 2.95.x, collect2 would create an import file
12542    # for dependence libraries.  The import file would start with
12543    # the line `#! .'.  This would cause the generated library to
12544    # depend on `.', always an invalid library.  This was fixed in
12545    # development snapshots of GCC prior to 3.0.
12546    case $host_os in
12547      aix4 | aix4.[01] | aix4.[01].*)
12548      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12549	   echo ' yes '
12550	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12551	:
12552      else
12553	can_build_shared=no
12554      fi
12555      ;;
12556    esac
12557    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12558    # soname into executable. Probably we can add versioning support to
12559    # collect2, so additional links can be useful in future.
12560    if test "$aix_use_runtimelinking" = yes; then
12561      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12562      # instead of lib<name>.a to let people know that these are not
12563      # typical AIX shared libraries.
12564      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565    else
12566      # We preserve .a as extension for shared libraries through AIX4.2
12567      # and later when we are not doing run time linking.
12568      library_names_spec='${libname}${release}.a $libname.a'
12569      soname_spec='${libname}${release}${shared_ext}$major'
12570    fi
12571    shlibpath_var=LIBPATH
12572  fi
12573  ;;
12574
12575amigaos*)
12576  library_names_spec='$libname.ixlibrary $libname.a'
12577  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12578  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'
12579  ;;
12580
12581beos*)
12582  library_names_spec='${libname}${shared_ext}'
12583  dynamic_linker="$host_os ld.so"
12584  shlibpath_var=LIBRARY_PATH
12585  ;;
12586
12587bsdi[45]*)
12588  version_type=linux
12589  need_version=no
12590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591  soname_spec='${libname}${release}${shared_ext}$major'
12592  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12593  shlibpath_var=LD_LIBRARY_PATH
12594  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12595  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12596  # the default ld.so.conf also contains /usr/contrib/lib and
12597  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12598  # libtool to hard-code these into programs
12599  ;;
12600
12601cygwin* | mingw* | pw32*)
12602  version_type=windows
12603  shrext_cmds=".dll"
12604  need_version=no
12605  need_lib_prefix=no
12606
12607  case $GCC,$host_os in
12608  yes,cygwin* | yes,mingw* | yes,pw32*)
12609    library_names_spec='$libname.dll.a'
12610    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12611    postinstall_cmds='base_file=`basename \${file}`~
12612      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12613      dldir=$destdir/`dirname \$dlpath`~
12614      test -d \$dldir || mkdir -p \$dldir~
12615      $install_prog $dir/$dlname \$dldir/$dlname~
12616      chmod a+x \$dldir/$dlname'
12617    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12618      dlpath=$dir/\$dldll~
12619       $rm \$dlpath'
12620    shlibpath_overrides_runpath=yes
12621
12622    case $host_os in
12623    cygwin*)
12624      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12625      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12626      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12627      ;;
12628    mingw*)
12629      # MinGW DLLs use traditional 'lib' prefix
12630      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12632      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12633        # It is most probably a Windows format PATH printed by
12634        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12635        # path with ; separators, and with drive letters. We can handle the
12636        # drive letters (cygwin fileutils understands them), so leave them,
12637        # especially as we might pass files found there to a mingw objdump,
12638        # which wouldn't understand a cygwinified path. Ahh.
12639        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12640      else
12641        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12642      fi
12643      ;;
12644    pw32*)
12645      # pw32 DLLs use 'pw' prefix rather than 'lib'
12646      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647      ;;
12648    esac
12649    ;;
12650
12651  *)
12652    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12653    ;;
12654  esac
12655  dynamic_linker='Win32 ld.exe'
12656  # FIXME: first we should search . and the directory the executable is in
12657  shlibpath_var=PATH
12658  ;;
12659
12660darwin* | rhapsody*)
12661  dynamic_linker="$host_os dyld"
12662  version_type=darwin
12663  need_lib_prefix=no
12664  need_version=no
12665  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12666  soname_spec='${libname}${release}${major}$shared_ext'
12667  shlibpath_overrides_runpath=yes
12668  shlibpath_var=DYLD_LIBRARY_PATH
12669  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12670  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12671  if test "$GCC" = yes; then
12672    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12673  else
12674    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12675  fi
12676  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12677  ;;
12678
12679dgux*)
12680  version_type=linux
12681  need_lib_prefix=no
12682  need_version=no
12683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12684  soname_spec='${libname}${release}${shared_ext}$major'
12685  shlibpath_var=LD_LIBRARY_PATH
12686  ;;
12687
12688freebsd1*)
12689  dynamic_linker=no
12690  ;;
12691
12692kfreebsd*-gnu)
12693  version_type=linux
12694  need_lib_prefix=no
12695  need_version=no
12696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12697  soname_spec='${libname}${release}${shared_ext}$major'
12698  shlibpath_var=LD_LIBRARY_PATH
12699  shlibpath_overrides_runpath=no
12700  hardcode_into_libs=yes
12701  dynamic_linker='GNU ld.so'
12702  ;;
12703
12704freebsd* | dragonfly*)
12705  # DragonFly does not have aout.  When/if they implement a new
12706  # versioning mechanism, adjust this.
12707  if test -x /usr/bin/objformat; then
12708    objformat=`/usr/bin/objformat`
12709  else
12710    case $host_os in
12711    freebsd[123]*) objformat=aout ;;
12712    *) objformat=elf ;;
12713    esac
12714  fi
12715  version_type=freebsd-$objformat
12716  case $version_type in
12717    freebsd-elf*)
12718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12719      need_version=no
12720      need_lib_prefix=no
12721      ;;
12722    freebsd-*)
12723      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12724      need_version=yes
12725      ;;
12726  esac
12727  shlibpath_var=LD_LIBRARY_PATH
12728  case $host_os in
12729  freebsd2*)
12730    shlibpath_overrides_runpath=yes
12731    ;;
12732  freebsd3.[01]* | freebsdelf3.[01]*)
12733    shlibpath_overrides_runpath=yes
12734    hardcode_into_libs=yes
12735    ;;
12736  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12737  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12738    shlibpath_overrides_runpath=no
12739    hardcode_into_libs=yes
12740    ;;
12741  freebsd*) # from 4.6 on
12742    shlibpath_overrides_runpath=yes
12743    hardcode_into_libs=yes
12744    ;;
12745  esac
12746  ;;
12747
12748gnu*)
12749  version_type=linux
12750  need_lib_prefix=no
12751  need_version=no
12752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12753  soname_spec='${libname}${release}${shared_ext}$major'
12754  shlibpath_var=LD_LIBRARY_PATH
12755  hardcode_into_libs=yes
12756  ;;
12757
12758hpux9* | hpux10* | hpux11*)
12759  # Give a soname corresponding to the major version so that dld.sl refuses to
12760  # link against other versions.
12761  version_type=sunos
12762  need_lib_prefix=no
12763  need_version=no
12764  case $host_cpu in
12765  ia64*)
12766    shrext_cmds='.so'
12767    hardcode_into_libs=yes
12768    dynamic_linker="$host_os dld.so"
12769    shlibpath_var=LD_LIBRARY_PATH
12770    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772    soname_spec='${libname}${release}${shared_ext}$major'
12773    if test "X$HPUX_IA64_MODE" = X32; then
12774      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12775    else
12776      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12777    fi
12778    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12779    ;;
12780   hppa*64*)
12781     shrext_cmds='.sl'
12782     hardcode_into_libs=yes
12783     dynamic_linker="$host_os dld.sl"
12784     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787     soname_spec='${libname}${release}${shared_ext}$major'
12788     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12790     ;;
12791   *)
12792    shrext_cmds='.sl'
12793    dynamic_linker="$host_os dld.sl"
12794    shlibpath_var=SHLIB_PATH
12795    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797    soname_spec='${libname}${release}${shared_ext}$major'
12798    ;;
12799  esac
12800  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12801  postinstall_cmds='chmod 555 $lib'
12802  ;;
12803
12804interix3*)
12805  version_type=linux
12806  need_lib_prefix=no
12807  need_version=no
12808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12809  soname_spec='${libname}${release}${shared_ext}$major'
12810  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12811  shlibpath_var=LD_LIBRARY_PATH
12812  shlibpath_overrides_runpath=no
12813  hardcode_into_libs=yes
12814  ;;
12815
12816irix5* | irix6* | nonstopux*)
12817  case $host_os in
12818    nonstopux*) version_type=nonstopux ;;
12819    *)
12820	if test "$lt_cv_prog_gnu_ld" = yes; then
12821		version_type=linux
12822	else
12823		version_type=irix
12824	fi ;;
12825  esac
12826  need_lib_prefix=no
12827  need_version=no
12828  soname_spec='${libname}${release}${shared_ext}$major'
12829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12830  case $host_os in
12831  irix5* | nonstopux*)
12832    libsuff= shlibsuff=
12833    ;;
12834  *)
12835    case $LD in # libtool.m4 will add one of these switches to LD
12836    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12837      libsuff= shlibsuff= libmagic=32-bit;;
12838    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12839      libsuff=32 shlibsuff=N32 libmagic=N32;;
12840    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12841      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12842    *) libsuff= shlibsuff= libmagic=never-match;;
12843    esac
12844    ;;
12845  esac
12846  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12847  shlibpath_overrides_runpath=no
12848  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12849  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12850  hardcode_into_libs=yes
12851  ;;
12852
12853# No shared lib support for Linux oldld, aout, or coff.
12854linux*oldld* | linux*aout* | linux*coff*)
12855  dynamic_linker=no
12856  ;;
12857
12858# This must be Linux ELF.
12859linux*)
12860  version_type=linux
12861  need_lib_prefix=no
12862  need_version=no
12863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864  soname_spec='${libname}${release}${shared_ext}$major'
12865  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12866  shlibpath_var=LD_LIBRARY_PATH
12867  shlibpath_overrides_runpath=no
12868  # This implies no fast_install, which is unacceptable.
12869  # Some rework will be needed to allow for fast_install
12870  # before this can be enabled.
12871  hardcode_into_libs=yes
12872
12873  # Append ld.so.conf contents to the search path
12874  if test -f /etc/ld.so.conf; then
12875    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12876    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12877  fi
12878
12879  # We used to test for /lib/ld.so.1 and disable shared libraries on
12880  # powerpc, because MkLinux only supported shared libraries with the
12881  # GNU dynamic linker.  Since this was broken with cross compilers,
12882  # most powerpc-linux boxes support dynamic linking these days and
12883  # people can always --disable-shared, the test was removed, and we
12884  # assume the GNU/Linux dynamic linker is in use.
12885  dynamic_linker='GNU/Linux ld.so'
12886  ;;
12887
12888knetbsd*-gnu)
12889  version_type=linux
12890  need_lib_prefix=no
12891  need_version=no
12892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12893  soname_spec='${libname}${release}${shared_ext}$major'
12894  shlibpath_var=LD_LIBRARY_PATH
12895  shlibpath_overrides_runpath=no
12896  hardcode_into_libs=yes
12897  dynamic_linker='GNU ld.so'
12898  ;;
12899
12900netbsd*)
12901  version_type=sunos
12902  need_lib_prefix=no
12903  need_version=no
12904  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12906    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12907    dynamic_linker='NetBSD (a.out) ld.so'
12908  else
12909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910    soname_spec='${libname}${release}${shared_ext}$major'
12911    dynamic_linker='NetBSD ld.elf_so'
12912  fi
12913  shlibpath_var=LD_LIBRARY_PATH
12914  shlibpath_overrides_runpath=yes
12915  hardcode_into_libs=yes
12916  ;;
12917
12918newsos6)
12919  version_type=linux
12920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921  shlibpath_var=LD_LIBRARY_PATH
12922  shlibpath_overrides_runpath=yes
12923  ;;
12924
12925nto-qnx*)
12926  version_type=linux
12927  need_lib_prefix=no
12928  need_version=no
12929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930  soname_spec='${libname}${release}${shared_ext}$major'
12931  shlibpath_var=LD_LIBRARY_PATH
12932  shlibpath_overrides_runpath=yes
12933  ;;
12934
12935openbsd*)
12936  version_type=sunos
12937  sys_lib_dlsearch_path_spec="/usr/lib"
12938  need_lib_prefix=no
12939  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12940  case $host_os in
12941    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12942    *)                         need_version=no  ;;
12943  esac
12944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12945  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12946  shlibpath_var=LD_LIBRARY_PATH
12947  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12948    case $host_os in
12949      openbsd2.[89] | openbsd2.[89].*)
12950	shlibpath_overrides_runpath=no
12951	;;
12952      *)
12953	shlibpath_overrides_runpath=yes
12954	;;
12955      esac
12956  else
12957    shlibpath_overrides_runpath=yes
12958  fi
12959  ;;
12960
12961os2*)
12962  libname_spec='$name'
12963  shrext_cmds=".dll"
12964  need_lib_prefix=no
12965  library_names_spec='$libname${shared_ext} $libname.a'
12966  dynamic_linker='OS/2 ld.exe'
12967  shlibpath_var=LIBPATH
12968  ;;
12969
12970osf3* | osf4* | osf5*)
12971  version_type=osf
12972  need_lib_prefix=no
12973  need_version=no
12974  soname_spec='${libname}${release}${shared_ext}$major'
12975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976  shlibpath_var=LD_LIBRARY_PATH
12977  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12978  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12979  ;;
12980
12981solaris*)
12982  version_type=linux
12983  need_lib_prefix=no
12984  need_version=no
12985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986  soname_spec='${libname}${release}${shared_ext}$major'
12987  shlibpath_var=LD_LIBRARY_PATH
12988  shlibpath_overrides_runpath=yes
12989  hardcode_into_libs=yes
12990  # ldd complains unless libraries are executable
12991  postinstall_cmds='chmod +x $lib'
12992  ;;
12993
12994sunos4*)
12995  version_type=sunos
12996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12997  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12998  shlibpath_var=LD_LIBRARY_PATH
12999  shlibpath_overrides_runpath=yes
13000  if test "$with_gnu_ld" = yes; then
13001    need_lib_prefix=no
13002  fi
13003  need_version=yes
13004  ;;
13005
13006sysv4 | sysv4.3*)
13007  version_type=linux
13008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009  soname_spec='${libname}${release}${shared_ext}$major'
13010  shlibpath_var=LD_LIBRARY_PATH
13011  case $host_vendor in
13012    sni)
13013      shlibpath_overrides_runpath=no
13014      need_lib_prefix=no
13015      export_dynamic_flag_spec='${wl}-Blargedynsym'
13016      runpath_var=LD_RUN_PATH
13017      ;;
13018    siemens)
13019      need_lib_prefix=no
13020      ;;
13021    motorola)
13022      need_lib_prefix=no
13023      need_version=no
13024      shlibpath_overrides_runpath=no
13025      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13026      ;;
13027  esac
13028  ;;
13029
13030sysv4*MP*)
13031  if test -d /usr/nec ;then
13032    version_type=linux
13033    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13034    soname_spec='$libname${shared_ext}.$major'
13035    shlibpath_var=LD_LIBRARY_PATH
13036  fi
13037  ;;
13038
13039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13040  version_type=freebsd-elf
13041  need_lib_prefix=no
13042  need_version=no
13043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13044  soname_spec='${libname}${release}${shared_ext}$major'
13045  shlibpath_var=LD_LIBRARY_PATH
13046  hardcode_into_libs=yes
13047  if test "$with_gnu_ld" = yes; then
13048    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13049    shlibpath_overrides_runpath=no
13050  else
13051    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13052    shlibpath_overrides_runpath=yes
13053    case $host_os in
13054      sco3.2v5*)
13055        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13056	;;
13057    esac
13058  fi
13059  sys_lib_dlsearch_path_spec='/usr/lib'
13060  ;;
13061
13062uts4*)
13063  version_type=linux
13064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065  soname_spec='${libname}${release}${shared_ext}$major'
13066  shlibpath_var=LD_LIBRARY_PATH
13067  ;;
13068
13069*)
13070  dynamic_linker=no
13071  ;;
13072esac
13073{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13074echo "${ECHO_T}$dynamic_linker" >&6; }
13075test "$dynamic_linker" = no && can_build_shared=no
13076
13077variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13078if test "$GCC" = yes; then
13079  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13080fi
13081
13082{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13083echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13084hardcode_action_CXX=
13085if test -n "$hardcode_libdir_flag_spec_CXX" || \
13086   test -n "$runpath_var_CXX" || \
13087   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13088
13089  # We can hardcode non-existant directories.
13090  if test "$hardcode_direct_CXX" != no &&
13091     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13092     # have to relink, otherwise we might link with an installed library
13093     # when we should be linking with a yet-to-be-installed one
13094     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13095     test "$hardcode_minus_L_CXX" != no; then
13096    # Linking always hardcodes the temporary library directory.
13097    hardcode_action_CXX=relink
13098  else
13099    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13100    hardcode_action_CXX=immediate
13101  fi
13102else
13103  # We cannot hardcode anything, or else we can only hardcode existing
13104  # directories.
13105  hardcode_action_CXX=unsupported
13106fi
13107{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13108echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13109
13110if test "$hardcode_action_CXX" = relink; then
13111  # Fast installation is not supported
13112  enable_fast_install=no
13113elif test "$shlibpath_overrides_runpath" = yes ||
13114     test "$enable_shared" = no; then
13115  # Fast installation is not necessary
13116  enable_fast_install=needless
13117fi
13118
13119
13120# The else clause should only fire when bootstrapping the
13121# libtool distribution, otherwise you forgot to ship ltmain.sh
13122# with your package, and you will get complaints that there are
13123# no rules to generate ltmain.sh.
13124if test -f "$ltmain"; then
13125  # See if we are running on zsh, and set the options which allow our commands through
13126  # without removal of \ escapes.
13127  if test -n "${ZSH_VERSION+set}" ; then
13128    setopt NO_GLOB_SUBST
13129  fi
13130  # Now quote all the things that may contain metacharacters while being
13131  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13132  # variables and quote the copies for generation of the libtool script.
13133  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13134    SED SHELL STRIP \
13135    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13136    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13137    deplibs_check_method reload_flag reload_cmds need_locks \
13138    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13139    lt_cv_sys_global_symbol_to_c_name_address \
13140    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13141    old_postinstall_cmds old_postuninstall_cmds \
13142    compiler_CXX \
13143    CC_CXX \
13144    LD_CXX \
13145    lt_prog_compiler_wl_CXX \
13146    lt_prog_compiler_pic_CXX \
13147    lt_prog_compiler_static_CXX \
13148    lt_prog_compiler_no_builtin_flag_CXX \
13149    export_dynamic_flag_spec_CXX \
13150    thread_safe_flag_spec_CXX \
13151    whole_archive_flag_spec_CXX \
13152    enable_shared_with_static_runtimes_CXX \
13153    old_archive_cmds_CXX \
13154    old_archive_from_new_cmds_CXX \
13155    predep_objects_CXX \
13156    postdep_objects_CXX \
13157    predeps_CXX \
13158    postdeps_CXX \
13159    compiler_lib_search_path_CXX \
13160    archive_cmds_CXX \
13161    archive_expsym_cmds_CXX \
13162    postinstall_cmds_CXX \
13163    postuninstall_cmds_CXX \
13164    old_archive_from_expsyms_cmds_CXX \
13165    allow_undefined_flag_CXX \
13166    no_undefined_flag_CXX \
13167    export_symbols_cmds_CXX \
13168    hardcode_libdir_flag_spec_CXX \
13169    hardcode_libdir_flag_spec_ld_CXX \
13170    hardcode_libdir_separator_CXX \
13171    hardcode_automatic_CXX \
13172    module_cmds_CXX \
13173    module_expsym_cmds_CXX \
13174    lt_cv_prog_compiler_c_o_CXX \
13175    exclude_expsyms_CXX \
13176    include_expsyms_CXX; do
13177
13178    case $var in
13179    old_archive_cmds_CXX | \
13180    old_archive_from_new_cmds_CXX | \
13181    archive_cmds_CXX | \
13182    archive_expsym_cmds_CXX | \
13183    module_cmds_CXX | \
13184    module_expsym_cmds_CXX | \
13185    old_archive_from_expsyms_cmds_CXX | \
13186    export_symbols_cmds_CXX | \
13187    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13188    postinstall_cmds | postuninstall_cmds | \
13189    old_postinstall_cmds | old_postuninstall_cmds | \
13190    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13191      # Double-quote double-evaled strings.
13192      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13193      ;;
13194    *)
13195      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13196      ;;
13197    esac
13198  done
13199
13200  case $lt_echo in
13201  *'\$0 --fallback-echo"')
13202    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13203    ;;
13204  esac
13205
13206cfgfile="$ofile"
13207
13208  cat <<__EOF__ >> "$cfgfile"
13209# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13210
13211# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13212
13213# Shell to use when invoking shell scripts.
13214SHELL=$lt_SHELL
13215
13216# Whether or not to build shared libraries.
13217build_libtool_libs=$enable_shared
13218
13219# Whether or not to build static libraries.
13220build_old_libs=$enable_static
13221
13222# Whether or not to add -lc for building shared libraries.
13223build_libtool_need_lc=$archive_cmds_need_lc_CXX
13224
13225# Whether or not to disallow shared libs when runtime libs are static
13226allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13227
13228# Whether or not to optimize for fast installation.
13229fast_install=$enable_fast_install
13230
13231# The host system.
13232host_alias=$host_alias
13233host=$host
13234host_os=$host_os
13235
13236# The build system.
13237build_alias=$build_alias
13238build=$build
13239build_os=$build_os
13240
13241# An echo program that does not interpret backslashes.
13242echo=$lt_echo
13243
13244# The archiver.
13245AR=$lt_AR
13246AR_FLAGS=$lt_AR_FLAGS
13247
13248# A C compiler.
13249LTCC=$lt_LTCC
13250
13251# LTCC compiler flags.
13252LTCFLAGS=$lt_LTCFLAGS
13253
13254# A language-specific compiler.
13255CC=$lt_compiler_CXX
13256
13257# Is the compiler the GNU C compiler?
13258with_gcc=$GCC_CXX
13259
13260# An ERE matcher.
13261EGREP=$lt_EGREP
13262
13263# The linker used to build libraries.
13264LD=$lt_LD_CXX
13265
13266# Whether we need hard or soft links.
13267LN_S=$lt_LN_S
13268
13269# A BSD-compatible nm program.
13270NM=$lt_NM
13271
13272# A symbol stripping program
13273STRIP=$lt_STRIP
13274
13275# Used to examine libraries when file_magic_cmd begins "file"
13276MAGIC_CMD=$MAGIC_CMD
13277
13278# Used on cygwin: DLL creation program.
13279DLLTOOL="$DLLTOOL"
13280
13281# Used on cygwin: object dumper.
13282OBJDUMP="$OBJDUMP"
13283
13284# Used on cygwin: assembler.
13285AS="$AS"
13286
13287# The name of the directory that contains temporary libtool files.
13288objdir=$objdir
13289
13290# How to create reloadable object files.
13291reload_flag=$lt_reload_flag
13292reload_cmds=$lt_reload_cmds
13293
13294# How to pass a linker flag through the compiler.
13295wl=$lt_lt_prog_compiler_wl_CXX
13296
13297# Object file suffix (normally "o").
13298objext="$ac_objext"
13299
13300# Old archive suffix (normally "a").
13301libext="$libext"
13302
13303# Shared library suffix (normally ".so").
13304shrext_cmds='$shrext_cmds'
13305
13306# Executable file suffix (normally "").
13307exeext="$exeext"
13308
13309# Additional compiler flags for building library objects.
13310pic_flag=$lt_lt_prog_compiler_pic_CXX
13311pic_mode=$pic_mode
13312
13313# What is the maximum length of a command?
13314max_cmd_len=$lt_cv_sys_max_cmd_len
13315
13316# Does compiler simultaneously support -c and -o options?
13317compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13318
13319# Must we lock files when doing compilation?
13320need_locks=$lt_need_locks
13321
13322# Do we need the lib prefix for modules?
13323need_lib_prefix=$need_lib_prefix
13324
13325# Do we need a version for libraries?
13326need_version=$need_version
13327
13328# Whether dlopen is supported.
13329dlopen_support=$enable_dlopen
13330
13331# Whether dlopen of programs is supported.
13332dlopen_self=$enable_dlopen_self
13333
13334# Whether dlopen of statically linked programs is supported.
13335dlopen_self_static=$enable_dlopen_self_static
13336
13337# Compiler flag to prevent dynamic linking.
13338link_static_flag=$lt_lt_prog_compiler_static_CXX
13339
13340# Compiler flag to turn off builtin functions.
13341no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13342
13343# Compiler flag to allow reflexive dlopens.
13344export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13345
13346# Compiler flag to generate shared objects directly from archives.
13347whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13348
13349# Compiler flag to generate thread-safe objects.
13350thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13351
13352# Library versioning type.
13353version_type=$version_type
13354
13355# Format of library name prefix.
13356libname_spec=$lt_libname_spec
13357
13358# List of archive names.  First name is the real one, the rest are links.
13359# The last name is the one that the linker finds with -lNAME.
13360library_names_spec=$lt_library_names_spec
13361
13362# The coded name of the library, if different from the real name.
13363soname_spec=$lt_soname_spec
13364
13365# Commands used to build and install an old-style archive.
13366RANLIB=$lt_RANLIB
13367old_archive_cmds=$lt_old_archive_cmds_CXX
13368old_postinstall_cmds=$lt_old_postinstall_cmds
13369old_postuninstall_cmds=$lt_old_postuninstall_cmds
13370
13371# Create an old-style archive from a shared archive.
13372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13373
13374# Create a temporary old-style archive to link instead of a shared archive.
13375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13376
13377# Commands used to build and install a shared archive.
13378archive_cmds=$lt_archive_cmds_CXX
13379archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13380postinstall_cmds=$lt_postinstall_cmds
13381postuninstall_cmds=$lt_postuninstall_cmds
13382
13383# Commands used to build a loadable module (assumed same as above if empty)
13384module_cmds=$lt_module_cmds_CXX
13385module_expsym_cmds=$lt_module_expsym_cmds_CXX
13386
13387# Commands to strip libraries.
13388old_striplib=$lt_old_striplib
13389striplib=$lt_striplib
13390
13391# Dependencies to place before the objects being linked to create a
13392# shared library.
13393predep_objects=$lt_predep_objects_CXX
13394
13395# Dependencies to place after the objects being linked to create a
13396# shared library.
13397postdep_objects=$lt_postdep_objects_CXX
13398
13399# Dependencies to place before the objects being linked to create a
13400# shared library.
13401predeps=$lt_predeps_CXX
13402
13403# Dependencies to place after the objects being linked to create a
13404# shared library.
13405postdeps=$lt_postdeps_CXX
13406
13407# The library search path used internally by the compiler when linking
13408# a shared library.
13409compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13410
13411# Method to check whether dependent libraries are shared objects.
13412deplibs_check_method=$lt_deplibs_check_method
13413
13414# Command to use when deplibs_check_method == file_magic.
13415file_magic_cmd=$lt_file_magic_cmd
13416
13417# Flag that allows shared libraries with undefined symbols to be built.
13418allow_undefined_flag=$lt_allow_undefined_flag_CXX
13419
13420# Flag that forces no undefined symbols.
13421no_undefined_flag=$lt_no_undefined_flag_CXX
13422
13423# Commands used to finish a libtool library installation in a directory.
13424finish_cmds=$lt_finish_cmds
13425
13426# Same as above, but a single script fragment to be evaled but not shown.
13427finish_eval=$lt_finish_eval
13428
13429# Take the output of nm and produce a listing of raw symbols and C names.
13430global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13431
13432# Transform the output of nm in a proper C declaration
13433global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13434
13435# Transform the output of nm in a C name address pair
13436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13437
13438# This is the shared library runtime path variable.
13439runpath_var=$runpath_var
13440
13441# This is the shared library path variable.
13442shlibpath_var=$shlibpath_var
13443
13444# Is shlibpath searched before the hard-coded library search path?
13445shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13446
13447# How to hardcode a shared library path into an executable.
13448hardcode_action=$hardcode_action_CXX
13449
13450# Whether we should hardcode library paths into libraries.
13451hardcode_into_libs=$hardcode_into_libs
13452
13453# Flag to hardcode \$libdir into a binary during linking.
13454# This must work even if \$libdir does not exist.
13455hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13456
13457# If ld is used when linking, flag to hardcode \$libdir into
13458# a binary during linking. This must work even if \$libdir does
13459# not exist.
13460hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13461
13462# Whether we need a single -rpath flag with a separated argument.
13463hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13464
13465# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13466# resulting binary.
13467hardcode_direct=$hardcode_direct_CXX
13468
13469# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13470# resulting binary.
13471hardcode_minus_L=$hardcode_minus_L_CXX
13472
13473# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13474# the resulting binary.
13475hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13476
13477# Set to yes if building a shared library automatically hardcodes DIR into the library
13478# and all subsequent libraries and executables linked against it.
13479hardcode_automatic=$hardcode_automatic_CXX
13480
13481# Variables whose values should be saved in libtool wrapper scripts and
13482# restored at relink time.
13483variables_saved_for_relink="$variables_saved_for_relink"
13484
13485# Whether libtool must link a program against all its dependency libraries.
13486link_all_deplibs=$link_all_deplibs_CXX
13487
13488# Compile-time system search path for libraries
13489sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13490
13491# Run-time system search path for libraries
13492sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13493
13494# Fix the shell variable \$srcfile for the compiler.
13495fix_srcfile_path="$fix_srcfile_path_CXX"
13496
13497# Set to yes if exported symbols are required.
13498always_export_symbols=$always_export_symbols_CXX
13499
13500# The commands to list exported symbols.
13501export_symbols_cmds=$lt_export_symbols_cmds_CXX
13502
13503# The commands to extract the exported symbol list from a shared archive.
13504extract_expsyms_cmds=$lt_extract_expsyms_cmds
13505
13506# Symbols that should not be listed in the preloaded symbols.
13507exclude_expsyms=$lt_exclude_expsyms_CXX
13508
13509# Symbols that must always be exported.
13510include_expsyms=$lt_include_expsyms_CXX
13511
13512# ### END LIBTOOL TAG CONFIG: $tagname
13513
13514__EOF__
13515
13516
13517else
13518  # If there is no Makefile yet, we rely on a make rule to execute
13519  # `config.status --recheck' to rerun these tests and create the
13520  # libtool script then.
13521  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13522  if test -f "$ltmain_in"; then
13523    test -f Makefile && make "$ltmain"
13524  fi
13525fi
13526
13527
13528ac_ext=c
13529ac_cpp='$CPP $CPPFLAGS'
13530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534CC=$lt_save_CC
13535LDCXX=$LD
13536LD=$lt_save_LD
13537GCC=$lt_save_GCC
13538with_gnu_ldcxx=$with_gnu_ld
13539with_gnu_ld=$lt_save_with_gnu_ld
13540lt_cv_path_LDCXX=$lt_cv_path_LD
13541lt_cv_path_LD=$lt_save_path_LD
13542lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13543lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13544
13545	else
13546	  tagname=""
13547	fi
13548	;;
13549
13550      F77)
13551	if test -n "$F77" && test "X$F77" != "Xno"; then
13552
13553ac_ext=f
13554ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13555ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13557
13558
13559archive_cmds_need_lc_F77=no
13560allow_undefined_flag_F77=
13561always_export_symbols_F77=no
13562archive_expsym_cmds_F77=
13563export_dynamic_flag_spec_F77=
13564hardcode_direct_F77=no
13565hardcode_libdir_flag_spec_F77=
13566hardcode_libdir_flag_spec_ld_F77=
13567hardcode_libdir_separator_F77=
13568hardcode_minus_L_F77=no
13569hardcode_automatic_F77=no
13570module_cmds_F77=
13571module_expsym_cmds_F77=
13572link_all_deplibs_F77=unknown
13573old_archive_cmds_F77=$old_archive_cmds
13574no_undefined_flag_F77=
13575whole_archive_flag_spec_F77=
13576enable_shared_with_static_runtimes_F77=no
13577
13578# Source file extension for f77 test sources.
13579ac_ext=f
13580
13581# Object file extension for compiled f77 test sources.
13582objext=o
13583objext_F77=$objext
13584
13585# Code to be used in simple compile tests
13586lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13587
13588# Code to be used in simple link tests
13589lt_simple_link_test_code="      program t\n      end\n"
13590
13591# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13592
13593# If no C compiler was specified, use CC.
13594LTCC=${LTCC-"$CC"}
13595
13596# If no C compiler flags were specified, use CFLAGS.
13597LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13598
13599# Allow CC to be a program name with arguments.
13600compiler=$CC
13601
13602
13603# save warnings/boilerplate of simple test code
13604ac_outfile=conftest.$ac_objext
13605printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13606eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13607_lt_compiler_boilerplate=`cat conftest.err`
13608$rm conftest*
13609
13610ac_outfile=conftest.$ac_objext
13611printf "$lt_simple_link_test_code" >conftest.$ac_ext
13612eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13613_lt_linker_boilerplate=`cat conftest.err`
13614$rm conftest*
13615
13616
13617# Allow CC to be a program name with arguments.
13618lt_save_CC="$CC"
13619CC=${F77-"f77"}
13620compiler=$CC
13621compiler_F77=$CC
13622for cc_temp in $compiler""; do
13623  case $cc_temp in
13624    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13625    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13626    \-*) ;;
13627    *) break;;
13628  esac
13629done
13630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13631
13632
13633{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13634echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13635{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13636echo "${ECHO_T}$can_build_shared" >&6; }
13637
13638{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13639echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13640test "$can_build_shared" = "no" && enable_shared=no
13641
13642# On AIX, shared libraries and static libraries use the same namespace, and
13643# are all built from PIC.
13644case $host_os in
13645aix3*)
13646  test "$enable_shared" = yes && enable_static=no
13647  if test -n "$RANLIB"; then
13648    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13649    postinstall_cmds='$RANLIB $lib'
13650  fi
13651  ;;
13652aix4* | aix5*)
13653  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13654    test "$enable_shared" = yes && enable_static=no
13655  fi
13656  ;;
13657esac
13658{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13659echo "${ECHO_T}$enable_shared" >&6; }
13660
13661{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13662echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13663# Make sure either enable_shared or enable_static is yes.
13664test "$enable_shared" = yes || enable_static=yes
13665{ echo "$as_me:$LINENO: result: $enable_static" >&5
13666echo "${ECHO_T}$enable_static" >&6; }
13667
13668GCC_F77="$G77"
13669LD_F77="$LD"
13670
13671lt_prog_compiler_wl_F77=
13672lt_prog_compiler_pic_F77=
13673lt_prog_compiler_static_F77=
13674
13675{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13676echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13677
13678  if test "$GCC" = yes; then
13679    lt_prog_compiler_wl_F77='-Wl,'
13680    lt_prog_compiler_static_F77='-static'
13681
13682    case $host_os in
13683      aix*)
13684      # All AIX code is PIC.
13685      if test "$host_cpu" = ia64; then
13686	# AIX 5 now supports IA64 processor
13687	lt_prog_compiler_static_F77='-Bstatic'
13688      fi
13689      ;;
13690
13691    amigaos*)
13692      # FIXME: we need at least 68020 code to build shared libraries, but
13693      # adding the `-m68020' flag to GCC prevents building anything better,
13694      # like `-m68040'.
13695      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13696      ;;
13697
13698    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13699      # PIC is the default for these OSes.
13700      ;;
13701
13702    mingw* | pw32* | os2*)
13703      # This hack is so that the source file can tell whether it is being
13704      # built for inclusion in a dll (and should export symbols for example).
13705      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13706      ;;
13707
13708    darwin* | rhapsody*)
13709      # PIC is the default on this platform
13710      # Common symbols not allowed in MH_DYLIB files
13711      lt_prog_compiler_pic_F77='-fno-common'
13712      ;;
13713
13714    interix3*)
13715      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13716      # Instead, we relocate shared libraries at runtime.
13717      ;;
13718
13719    msdosdjgpp*)
13720      # Just because we use GCC doesn't mean we suddenly get shared libraries
13721      # on systems that don't support them.
13722      lt_prog_compiler_can_build_shared_F77=no
13723      enable_shared=no
13724      ;;
13725
13726    sysv4*MP*)
13727      if test -d /usr/nec; then
13728	lt_prog_compiler_pic_F77=-Kconform_pic
13729      fi
13730      ;;
13731
13732    hpux*)
13733      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13734      # not for PA HP-UX.
13735      case $host_cpu in
13736      hppa*64*|ia64*)
13737	# +Z the default
13738	;;
13739      *)
13740	lt_prog_compiler_pic_F77='-fPIC'
13741	;;
13742      esac
13743      ;;
13744
13745    *)
13746      lt_prog_compiler_pic_F77='-fPIC'
13747      ;;
13748    esac
13749  else
13750    # PORTME Check for flag to pass linker flags through the system compiler.
13751    case $host_os in
13752    aix*)
13753      lt_prog_compiler_wl_F77='-Wl,'
13754      if test "$host_cpu" = ia64; then
13755	# AIX 5 now supports IA64 processor
13756	lt_prog_compiler_static_F77='-Bstatic'
13757      else
13758	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13759      fi
13760      ;;
13761      darwin*)
13762        # PIC is the default on this platform
13763        # Common symbols not allowed in MH_DYLIB files
13764       case $cc_basename in
13765         xlc*)
13766         lt_prog_compiler_pic_F77='-qnocommon'
13767         lt_prog_compiler_wl_F77='-Wl,'
13768         ;;
13769       esac
13770       ;;
13771
13772    mingw* | pw32* | os2*)
13773      # This hack is so that the source file can tell whether it is being
13774      # built for inclusion in a dll (and should export symbols for example).
13775      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13776      ;;
13777
13778    hpux9* | hpux10* | hpux11*)
13779      lt_prog_compiler_wl_F77='-Wl,'
13780      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13781      # not for PA HP-UX.
13782      case $host_cpu in
13783      hppa*64*|ia64*)
13784	# +Z the default
13785	;;
13786      *)
13787	lt_prog_compiler_pic_F77='+Z'
13788	;;
13789      esac
13790      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13791      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13792      ;;
13793
13794    irix5* | irix6* | nonstopux*)
13795      lt_prog_compiler_wl_F77='-Wl,'
13796      # PIC (with -KPIC) is the default.
13797      lt_prog_compiler_static_F77='-non_shared'
13798      ;;
13799
13800    newsos6)
13801      lt_prog_compiler_pic_F77='-KPIC'
13802      lt_prog_compiler_static_F77='-Bstatic'
13803      ;;
13804
13805    linux*)
13806      case $cc_basename in
13807      icc* | ecc*)
13808	lt_prog_compiler_wl_F77='-Wl,'
13809	lt_prog_compiler_pic_F77='-KPIC'
13810	lt_prog_compiler_static_F77='-static'
13811        ;;
13812      pgcc* | pgf77* | pgf90* | pgf95*)
13813        # Portland Group compilers (*not* the Pentium gcc compiler,
13814	# which looks to be a dead project)
13815	lt_prog_compiler_wl_F77='-Wl,'
13816	lt_prog_compiler_pic_F77='-fpic'
13817	lt_prog_compiler_static_F77='-Bstatic'
13818        ;;
13819      ccc*)
13820        lt_prog_compiler_wl_F77='-Wl,'
13821        # All Alpha code is PIC.
13822        lt_prog_compiler_static_F77='-non_shared'
13823        ;;
13824      esac
13825      ;;
13826
13827    osf3* | osf4* | osf5*)
13828      lt_prog_compiler_wl_F77='-Wl,'
13829      # All OSF/1 code is PIC.
13830      lt_prog_compiler_static_F77='-non_shared'
13831      ;;
13832
13833    solaris*)
13834      lt_prog_compiler_pic_F77='-KPIC'
13835      lt_prog_compiler_static_F77='-Bstatic'
13836      case $cc_basename in
13837      f77* | f90* | f95*)
13838	lt_prog_compiler_wl_F77='-Qoption ld ';;
13839      *)
13840	lt_prog_compiler_wl_F77='-Wl,';;
13841      esac
13842      ;;
13843
13844    sunos4*)
13845      lt_prog_compiler_wl_F77='-Qoption ld '
13846      lt_prog_compiler_pic_F77='-PIC'
13847      lt_prog_compiler_static_F77='-Bstatic'
13848      ;;
13849
13850    sysv4 | sysv4.2uw2* | sysv4.3*)
13851      lt_prog_compiler_wl_F77='-Wl,'
13852      lt_prog_compiler_pic_F77='-KPIC'
13853      lt_prog_compiler_static_F77='-Bstatic'
13854      ;;
13855
13856    sysv4*MP*)
13857      if test -d /usr/nec ;then
13858	lt_prog_compiler_pic_F77='-Kconform_pic'
13859	lt_prog_compiler_static_F77='-Bstatic'
13860      fi
13861      ;;
13862
13863    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13864      lt_prog_compiler_wl_F77='-Wl,'
13865      lt_prog_compiler_pic_F77='-KPIC'
13866      lt_prog_compiler_static_F77='-Bstatic'
13867      ;;
13868
13869    unicos*)
13870      lt_prog_compiler_wl_F77='-Wl,'
13871      lt_prog_compiler_can_build_shared_F77=no
13872      ;;
13873
13874    uts4*)
13875      lt_prog_compiler_pic_F77='-pic'
13876      lt_prog_compiler_static_F77='-Bstatic'
13877      ;;
13878
13879    *)
13880      lt_prog_compiler_can_build_shared_F77=no
13881      ;;
13882    esac
13883  fi
13884
13885{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13886echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13887
13888#
13889# Check to make sure the PIC flag actually works.
13890#
13891if test -n "$lt_prog_compiler_pic_F77"; then
13892
13893{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13894echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13895if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13896  echo $ECHO_N "(cached) $ECHO_C" >&6
13897else
13898  lt_prog_compiler_pic_works_F77=no
13899  ac_outfile=conftest.$ac_objext
13900   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13901   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13902   # Insert the option either (1) after the last *FLAGS variable, or
13903   # (2) before a word containing "conftest.", or (3) at the end.
13904   # Note that $ac_compile itself does not contain backslashes and begins
13905   # with a dollar sign (not a hyphen), so the echo should work correctly.
13906   # The option is referenced via a variable to avoid confusing sed.
13907   lt_compile=`echo "$ac_compile" | $SED \
13908   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13909   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13910   -e 's:$: $lt_compiler_flag:'`
13911   (eval echo "\"\$as_me:13911: $lt_compile\"" >&5)
13912   (eval "$lt_compile" 2>conftest.err)
13913   ac_status=$?
13914   cat conftest.err >&5
13915   echo "$as_me:13915: \$? = $ac_status" >&5
13916   if (exit $ac_status) && test -s "$ac_outfile"; then
13917     # The compiler can only warn and ignore the option if not recognized
13918     # So say no if there are warnings other than the usual output.
13919     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13920     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13922       lt_prog_compiler_pic_works_F77=yes
13923     fi
13924   fi
13925   $rm conftest*
13926
13927fi
13928{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13929echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13930
13931if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13932    case $lt_prog_compiler_pic_F77 in
13933     "" | " "*) ;;
13934     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13935     esac
13936else
13937    lt_prog_compiler_pic_F77=
13938     lt_prog_compiler_can_build_shared_F77=no
13939fi
13940
13941fi
13942case $host_os in
13943  # For platforms which do not support PIC, -DPIC is meaningless:
13944  *djgpp*)
13945    lt_prog_compiler_pic_F77=
13946    ;;
13947  *)
13948    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13949    ;;
13950esac
13951
13952#
13953# Check to make sure the static flag actually works.
13954#
13955wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13956{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13957echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13958if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13959  echo $ECHO_N "(cached) $ECHO_C" >&6
13960else
13961  lt_prog_compiler_static_works_F77=no
13962   save_LDFLAGS="$LDFLAGS"
13963   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13964   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13965   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13966     # The linker can only warn and ignore the option if not recognized
13967     # So say no if there are warnings
13968     if test -s conftest.err; then
13969       # Append any errors to the config.log.
13970       cat conftest.err 1>&5
13971       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13972       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973       if diff conftest.exp conftest.er2 >/dev/null; then
13974         lt_prog_compiler_static_works_F77=yes
13975       fi
13976     else
13977       lt_prog_compiler_static_works_F77=yes
13978     fi
13979   fi
13980   $rm conftest*
13981   LDFLAGS="$save_LDFLAGS"
13982
13983fi
13984{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13985echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13986
13987if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13988    :
13989else
13990    lt_prog_compiler_static_F77=
13991fi
13992
13993
13994{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13995echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13996if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13997  echo $ECHO_N "(cached) $ECHO_C" >&6
13998else
13999  lt_cv_prog_compiler_c_o_F77=no
14000   $rm -r conftest 2>/dev/null
14001   mkdir conftest
14002   cd conftest
14003   mkdir out
14004   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14005
14006   lt_compiler_flag="-o out/conftest2.$ac_objext"
14007   # Insert the option either (1) after the last *FLAGS variable, or
14008   # (2) before a word containing "conftest.", or (3) at the end.
14009   # Note that $ac_compile itself does not contain backslashes and begins
14010   # with a dollar sign (not a hyphen), so the echo should work correctly.
14011   lt_compile=`echo "$ac_compile" | $SED \
14012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14014   -e 's:$: $lt_compiler_flag:'`
14015   (eval echo "\"\$as_me:14015: $lt_compile\"" >&5)
14016   (eval "$lt_compile" 2>out/conftest.err)
14017   ac_status=$?
14018   cat out/conftest.err >&5
14019   echo "$as_me:14019: \$? = $ac_status" >&5
14020   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14021   then
14022     # The compiler can only warn and ignore the option if not recognized
14023     # So say no if there are warnings
14024     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14025     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14026     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14027       lt_cv_prog_compiler_c_o_F77=yes
14028     fi
14029   fi
14030   chmod u+w . 2>&5
14031   $rm conftest*
14032   # SGI C++ compiler will create directory out/ii_files/ for
14033   # template instantiation
14034   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14035   $rm out/* && rmdir out
14036   cd ..
14037   rmdir conftest
14038   $rm conftest*
14039
14040fi
14041{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14042echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14043
14044
14045hard_links="nottested"
14046if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14047  # do not overwrite the value of need_locks provided by the user
14048  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14049echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14050  hard_links=yes
14051  $rm conftest*
14052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14053  touch conftest.a
14054  ln conftest.a conftest.b 2>&5 || hard_links=no
14055  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14056  { echo "$as_me:$LINENO: result: $hard_links" >&5
14057echo "${ECHO_T}$hard_links" >&6; }
14058  if test "$hard_links" = no; then
14059    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14060echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14061    need_locks=warn
14062  fi
14063else
14064  need_locks=no
14065fi
14066
14067{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14068echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14069
14070  runpath_var=
14071  allow_undefined_flag_F77=
14072  enable_shared_with_static_runtimes_F77=no
14073  archive_cmds_F77=
14074  archive_expsym_cmds_F77=
14075  old_archive_From_new_cmds_F77=
14076  old_archive_from_expsyms_cmds_F77=
14077  export_dynamic_flag_spec_F77=
14078  whole_archive_flag_spec_F77=
14079  thread_safe_flag_spec_F77=
14080  hardcode_libdir_flag_spec_F77=
14081  hardcode_libdir_flag_spec_ld_F77=
14082  hardcode_libdir_separator_F77=
14083  hardcode_direct_F77=no
14084  hardcode_minus_L_F77=no
14085  hardcode_shlibpath_var_F77=unsupported
14086  link_all_deplibs_F77=unknown
14087  hardcode_automatic_F77=no
14088  module_cmds_F77=
14089  module_expsym_cmds_F77=
14090  always_export_symbols_F77=no
14091  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092  # include_expsyms should be a list of space-separated symbols to be *always*
14093  # included in the symbol list
14094  include_expsyms_F77=
14095  # exclude_expsyms can be an extended regexp of symbols to exclude
14096  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14097  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14098  # as well as any symbol that contains `d'.
14099  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14100  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14101  # platforms (ab)use it in PIC code, but their linkers get confused if
14102  # the symbol is explicitly referenced.  Since portable code cannot
14103  # rely on this symbol name, it's probably fine to never include it in
14104  # preloaded symbol tables.
14105  extract_expsyms_cmds=
14106  # Just being paranoid about ensuring that cc_basename is set.
14107  for cc_temp in $compiler""; do
14108  case $cc_temp in
14109    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14110    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14111    \-*) ;;
14112    *) break;;
14113  esac
14114done
14115cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14116
14117  case $host_os in
14118  cygwin* | mingw* | pw32*)
14119    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14120    # When not using gcc, we currently assume that we are using
14121    # Microsoft Visual C++.
14122    if test "$GCC" != yes; then
14123      with_gnu_ld=no
14124    fi
14125    ;;
14126  interix*)
14127    # we just hope/assume this is gcc and not c89 (= MSVC++)
14128    with_gnu_ld=yes
14129    ;;
14130  openbsd*)
14131    with_gnu_ld=no
14132    ;;
14133  esac
14134
14135  ld_shlibs_F77=yes
14136  if test "$with_gnu_ld" = yes; then
14137    # If archive_cmds runs LD, not CC, wlarc should be empty
14138    wlarc='${wl}'
14139
14140    # Set some defaults for GNU ld with shared library support. These
14141    # are reset later if shared libraries are not supported. Putting them
14142    # here allows them to be overridden if necessary.
14143    runpath_var=LD_RUN_PATH
14144    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14145    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14146    # ancient GNU ld didn't support --whole-archive et. al.
14147    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14148	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14149      else
14150  	whole_archive_flag_spec_F77=
14151    fi
14152    supports_anon_versioning=no
14153    case `$LD -v 2>/dev/null` in
14154      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14155      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14156      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14157      *\ 2.11.*) ;; # other 2.11 versions
14158      *) supports_anon_versioning=yes ;;
14159    esac
14160
14161    # See if GNU ld supports shared libraries.
14162    case $host_os in
14163    aix3* | aix4* | aix5*)
14164      # On AIX/PPC, the GNU linker is very broken
14165      if test "$host_cpu" != ia64; then
14166	ld_shlibs_F77=no
14167	cat <<EOF 1>&2
14168
14169*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14170*** to be unable to reliably create shared libraries on AIX.
14171*** Therefore, libtool is disabling shared libraries support.  If you
14172*** really care for shared libraries, you may want to modify your PATH
14173*** so that a non-GNU linker is found, and then restart.
14174
14175EOF
14176      fi
14177      ;;
14178
14179    amigaos*)
14180      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)'
14181      hardcode_libdir_flag_spec_F77='-L$libdir'
14182      hardcode_minus_L_F77=yes
14183
14184      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14185      # that the semantics of dynamic libraries on AmigaOS, at least up
14186      # to version 4, is to share data among multiple programs linked
14187      # with the same dynamic library.  Since this doesn't match the
14188      # behavior of shared libraries on other platforms, we can't use
14189      # them.
14190      ld_shlibs_F77=no
14191      ;;
14192
14193    beos*)
14194      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195	allow_undefined_flag_F77=unsupported
14196	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14197	# support --undefined.  This deserves some investigation.  FIXME
14198	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199      else
14200	ld_shlibs_F77=no
14201      fi
14202      ;;
14203
14204    cygwin* | mingw* | pw32*)
14205      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14206      # as there is no search path for DLLs.
14207      hardcode_libdir_flag_spec_F77='-L$libdir'
14208      allow_undefined_flag_F77=unsupported
14209      always_export_symbols_F77=no
14210      enable_shared_with_static_runtimes_F77=yes
14211      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14212
14213      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14214        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14215	# If the export-symbols file already is a .def file (1st line
14216	# is EXPORTS), use it as is; otherwise, prepend...
14217	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218	  cp $export_symbols $output_objdir/$soname.def;
14219	else
14220	  echo EXPORTS > $output_objdir/$soname.def;
14221	  cat $export_symbols >> $output_objdir/$soname.def;
14222	fi~
14223	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14224      else
14225	ld_shlibs_F77=no
14226      fi
14227      ;;
14228
14229    interix3*)
14230      hardcode_direct_F77=no
14231      hardcode_shlibpath_var_F77=no
14232      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14233      export_dynamic_flag_spec_F77='${wl}-E'
14234      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14235      # Instead, shared libraries are loaded at an image base (0x10000000 by
14236      # default) and relocated if they conflict, which is a slow very memory
14237      # consuming and fragmenting process.  To avoid this, we pick a random,
14238      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14239      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14240      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'
14241      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'
14242      ;;
14243
14244    linux*)
14245      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14246	tmp_addflag=
14247	case $cc_basename,$host_cpu in
14248	pgcc*)				# Portland Group C compiler
14249	  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'
14250	  tmp_addflag=' $pic_flag'
14251	  ;;
14252	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14253	  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'
14254	  tmp_addflag=' $pic_flag -Mnomain' ;;
14255	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14256	  tmp_addflag=' -i_dynamic' ;;
14257	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14258	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14259	ifc* | ifort*)			# Intel Fortran compiler
14260	  tmp_addflag=' -nofor_main' ;;
14261	esac
14262	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263
14264	if test $supports_anon_versioning = yes; then
14265	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14266  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14267  $echo "local: *; };" >> $output_objdir/$libname.ver~
14268	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14269	fi
14270      else
14271	ld_shlibs_F77=no
14272      fi
14273      ;;
14274
14275    netbsd*)
14276      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14277	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14278	wlarc=
14279      else
14280	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14281	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14282      fi
14283      ;;
14284
14285    solaris*)
14286      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14287	ld_shlibs_F77=no
14288	cat <<EOF 1>&2
14289
14290*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14291*** create shared libraries on Solaris systems.  Therefore, libtool
14292*** is disabling shared libraries support.  We urge you to upgrade GNU
14293*** binutils to release 2.9.1 or newer.  Another option is to modify
14294*** your PATH or compiler configuration so that the native linker is
14295*** used, and then restart.
14296
14297EOF
14298      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301      else
14302	ld_shlibs_F77=no
14303      fi
14304      ;;
14305
14306    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14307      case `$LD -v 2>&1` in
14308        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14309	ld_shlibs_F77=no
14310	cat <<_LT_EOF 1>&2
14311
14312*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14313*** reliably create shared libraries on SCO systems.  Therefore, libtool
14314*** is disabling shared libraries support.  We urge you to upgrade GNU
14315*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14316*** your PATH or compiler configuration so that the native linker is
14317*** used, and then restart.
14318
14319_LT_EOF
14320	;;
14321	*)
14322	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14323	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14324	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14325	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14326	  else
14327	    ld_shlibs_F77=no
14328	  fi
14329	;;
14330      esac
14331      ;;
14332
14333    sunos4*)
14334      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14335      wlarc=
14336      hardcode_direct_F77=yes
14337      hardcode_shlibpath_var_F77=no
14338      ;;
14339
14340    *)
14341      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14342	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14344      else
14345	ld_shlibs_F77=no
14346      fi
14347      ;;
14348    esac
14349
14350    if test "$ld_shlibs_F77" = no; then
14351      runpath_var=
14352      hardcode_libdir_flag_spec_F77=
14353      export_dynamic_flag_spec_F77=
14354      whole_archive_flag_spec_F77=
14355    fi
14356  else
14357    # PORTME fill in a description of your system's linker (not GNU ld)
14358    case $host_os in
14359    aix3*)
14360      allow_undefined_flag_F77=unsupported
14361      always_export_symbols_F77=yes
14362      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'
14363      # Note: this linker hardcodes the directories in LIBPATH if there
14364      # are no directories specified by -L.
14365      hardcode_minus_L_F77=yes
14366      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14367	# Neither direct hardcoding nor static linking is supported with a
14368	# broken collect2.
14369	hardcode_direct_F77=unsupported
14370      fi
14371      ;;
14372
14373    aix4* | aix5*)
14374      if test "$host_cpu" = ia64; then
14375	# On IA64, the linker does run time linking by default, so we don't
14376	# have to do anything special.
14377	aix_use_runtimelinking=no
14378	exp_sym_flag='-Bexport'
14379	no_entry_flag=""
14380      else
14381	# If we're using GNU nm, then we don't want the "-C" option.
14382	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14383	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14384	  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'
14385	else
14386	  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'
14387	fi
14388	aix_use_runtimelinking=no
14389
14390	# Test if we are trying to use run time linking or normal
14391	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14392	# need to do runtime linking.
14393	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14394	  for ld_flag in $LDFLAGS; do
14395  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14396  	    aix_use_runtimelinking=yes
14397  	    break
14398  	  fi
14399	  done
14400	  ;;
14401	esac
14402
14403	exp_sym_flag='-bexport'
14404	no_entry_flag='-bnoentry'
14405      fi
14406
14407      # When large executables or shared objects are built, AIX ld can
14408      # have problems creating the table of contents.  If linking a library
14409      # or program results in "error TOC overflow" add -mminimal-toc to
14410      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14411      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14412
14413      archive_cmds_F77=''
14414      hardcode_direct_F77=yes
14415      hardcode_libdir_separator_F77=':'
14416      link_all_deplibs_F77=yes
14417
14418      if test "$GCC" = yes; then
14419	case $host_os in aix4.[012]|aix4.[012].*)
14420	# We only want to do this on AIX 4.2 and lower, the check
14421	# below for broken collect2 doesn't work under 4.3+
14422	  collect2name=`${CC} -print-prog-name=collect2`
14423	  if test -f "$collect2name" && \
14424  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14425	  then
14426  	  # We have reworked collect2
14427  	  hardcode_direct_F77=yes
14428	  else
14429  	  # We have old collect2
14430  	  hardcode_direct_F77=unsupported
14431  	  # It fails to find uninstalled libraries when the uninstalled
14432  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14433  	  # to unsupported forces relinking
14434  	  hardcode_minus_L_F77=yes
14435  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14436  	  hardcode_libdir_separator_F77=
14437	  fi
14438	  ;;
14439	esac
14440	shared_flag='-shared'
14441	if test "$aix_use_runtimelinking" = yes; then
14442	  shared_flag="$shared_flag "'${wl}-G'
14443	fi
14444      else
14445	# not using gcc
14446	if test "$host_cpu" = ia64; then
14447  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14448  	# chokes on -Wl,-G. The following line is correct:
14449	  shared_flag='-G'
14450	else
14451	  if test "$aix_use_runtimelinking" = yes; then
14452	    shared_flag='${wl}-G'
14453	  else
14454	    shared_flag='${wl}-bM:SRE'
14455	  fi
14456	fi
14457      fi
14458
14459      # It seems that -bexpall does not export symbols beginning with
14460      # underscore (_), so it is better to generate a list of symbols to export.
14461      always_export_symbols_F77=yes
14462      if test "$aix_use_runtimelinking" = yes; then
14463	# Warning - without using the other runtime loading flags (-brtl),
14464	# -berok will link without error, but may produce a broken library.
14465	allow_undefined_flag_F77='-berok'
14466       # Determine the default libpath from the value encoded in an empty executable.
14467       cat >conftest.$ac_ext <<_ACEOF
14468      program main
14469
14470      end
14471_ACEOF
14472rm -f conftest.$ac_objext conftest$ac_exeext
14473if { (ac_try="$ac_link"
14474case "(($ac_try" in
14475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476  *) ac_try_echo=$ac_try;;
14477esac
14478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479  (eval "$ac_link") 2>conftest.er1
14480  ac_status=$?
14481  grep -v '^ *+' conftest.er1 >conftest.err
14482  rm -f conftest.er1
14483  cat conftest.err >&5
14484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485  (exit $ac_status); } && {
14486	 test -z "$ac_f77_werror_flag" ||
14487	 test ! -s conftest.err
14488       } && test -s conftest$ac_exeext &&
14489       $as_test_x conftest$ac_exeext; then
14490
14491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14492}'`
14493# Check for a 64-bit object if we didn't find anything.
14494if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14495}'`; fi
14496else
14497  echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500
14501fi
14502
14503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504      conftest$ac_exeext conftest.$ac_ext
14505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14506
14507       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14508	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"
14509       else
14510	if test "$host_cpu" = ia64; then
14511	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14512	  allow_undefined_flag_F77="-z nodefs"
14513	  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"
14514	else
14515	 # Determine the default libpath from the value encoded in an empty executable.
14516	 cat >conftest.$ac_ext <<_ACEOF
14517      program main
14518
14519      end
14520_ACEOF
14521rm -f conftest.$ac_objext conftest$ac_exeext
14522if { (ac_try="$ac_link"
14523case "(($ac_try" in
14524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525  *) ac_try_echo=$ac_try;;
14526esac
14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528  (eval "$ac_link") 2>conftest.er1
14529  ac_status=$?
14530  grep -v '^ *+' conftest.er1 >conftest.err
14531  rm -f conftest.er1
14532  cat conftest.err >&5
14533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534  (exit $ac_status); } && {
14535	 test -z "$ac_f77_werror_flag" ||
14536	 test ! -s conftest.err
14537       } && test -s conftest$ac_exeext &&
14538       $as_test_x conftest$ac_exeext; then
14539
14540aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14541}'`
14542# Check for a 64-bit object if we didn't find anything.
14543if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14544}'`; fi
14545else
14546  echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
14550fi
14551
14552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14553      conftest$ac_exeext conftest.$ac_ext
14554if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14555
14556	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14557	  # Warning - without using the other run time loading flags,
14558	  # -berok will link without error, but may produce a broken library.
14559	  no_undefined_flag_F77=' ${wl}-bernotok'
14560	  allow_undefined_flag_F77=' ${wl}-berok'
14561	  # Exported symbols can be pulled into shared objects from archives
14562	  whole_archive_flag_spec_F77='$convenience'
14563	  archive_cmds_need_lc_F77=yes
14564	  # This is similar to how AIX traditionally builds its shared libraries.
14565	  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'
14566	fi
14567      fi
14568      ;;
14569
14570    amigaos*)
14571      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)'
14572      hardcode_libdir_flag_spec_F77='-L$libdir'
14573      hardcode_minus_L_F77=yes
14574      # see comment about different semantics on the GNU ld section
14575      ld_shlibs_F77=no
14576      ;;
14577
14578    bsdi[45]*)
14579      export_dynamic_flag_spec_F77=-rdynamic
14580      ;;
14581
14582    cygwin* | mingw* | pw32*)
14583      # When not using gcc, we currently assume that we are using
14584      # Microsoft Visual C++.
14585      # hardcode_libdir_flag_spec is actually meaningless, as there is
14586      # no search path for DLLs.
14587      hardcode_libdir_flag_spec_F77=' '
14588      allow_undefined_flag_F77=unsupported
14589      # Tell ltmain to make .lib files, not .a files.
14590      libext=lib
14591      # Tell ltmain to make .dll files, not .so files.
14592      shrext_cmds=".dll"
14593      # FIXME: Setting linknames here is a bad hack.
14594      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14595      # The linker will automatically build a .lib file if we build a DLL.
14596      old_archive_From_new_cmds_F77='true'
14597      # FIXME: Should let the user specify the lib program.
14598      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14599      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14600      enable_shared_with_static_runtimes_F77=yes
14601      ;;
14602
14603    darwin* | rhapsody*)
14604      case $host_os in
14605        rhapsody* | darwin1.[012])
14606         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14607         ;;
14608       *) # Darwin 1.3 on
14609         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14610           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14611         else
14612           case ${MACOSX_DEPLOYMENT_TARGET} in
14613             10.[012])
14614               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14615               ;;
14616             10.*)
14617               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14618               ;;
14619           esac
14620         fi
14621         ;;
14622      esac
14623      archive_cmds_need_lc_F77=no
14624      hardcode_direct_F77=no
14625      hardcode_automatic_F77=yes
14626      hardcode_shlibpath_var_F77=unsupported
14627      whole_archive_flag_spec_F77=''
14628      link_all_deplibs_F77=yes
14629    if test "$GCC" = yes ; then
14630    	output_verbose_link_cmd='echo'
14631        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14632      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14633      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14634      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14635      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}'
14636    else
14637      case $cc_basename in
14638        xlc*)
14639         output_verbose_link_cmd='echo'
14640         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14641         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14642          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14643         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14644          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}'
14645          ;;
14646       *)
14647         ld_shlibs_F77=no
14648          ;;
14649      esac
14650    fi
14651      ;;
14652
14653    dgux*)
14654      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655      hardcode_libdir_flag_spec_F77='-L$libdir'
14656      hardcode_shlibpath_var_F77=no
14657      ;;
14658
14659    freebsd1*)
14660      ld_shlibs_F77=no
14661      ;;
14662
14663    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14664    # support.  Future versions do this automatically, but an explicit c++rt0.o
14665    # does not break anything, and helps significantly (at the cost of a little
14666    # extra space).
14667    freebsd2.2*)
14668      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14669      hardcode_libdir_flag_spec_F77='-R$libdir'
14670      hardcode_direct_F77=yes
14671      hardcode_shlibpath_var_F77=no
14672      ;;
14673
14674    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14675    freebsd2*)
14676      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14677      hardcode_direct_F77=yes
14678      hardcode_minus_L_F77=yes
14679      hardcode_shlibpath_var_F77=no
14680      ;;
14681
14682    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14683    freebsd* | kfreebsd*-gnu | dragonfly*)
14684      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14685      hardcode_libdir_flag_spec_F77='-R$libdir'
14686      hardcode_direct_F77=yes
14687      hardcode_shlibpath_var_F77=no
14688      ;;
14689
14690    hpux9*)
14691      if test "$GCC" = yes; then
14692	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'
14693      else
14694	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'
14695      fi
14696      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14697      hardcode_libdir_separator_F77=:
14698      hardcode_direct_F77=yes
14699
14700      # hardcode_minus_L: Not really in the search PATH,
14701      # but as the default location of the library.
14702      hardcode_minus_L_F77=yes
14703      export_dynamic_flag_spec_F77='${wl}-E'
14704      ;;
14705
14706    hpux10*)
14707      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14708	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14709      else
14710	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14711      fi
14712      if test "$with_gnu_ld" = no; then
14713	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14714	hardcode_libdir_separator_F77=:
14715
14716	hardcode_direct_F77=yes
14717	export_dynamic_flag_spec_F77='${wl}-E'
14718
14719	# hardcode_minus_L: Not really in the search PATH,
14720	# but as the default location of the library.
14721	hardcode_minus_L_F77=yes
14722      fi
14723      ;;
14724
14725    hpux11*)
14726      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14727	case $host_cpu in
14728	hppa*64*)
14729	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14730	  ;;
14731	ia64*)
14732	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14733	  ;;
14734	*)
14735	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14736	  ;;
14737	esac
14738      else
14739	case $host_cpu in
14740	hppa*64*)
14741	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14742	  ;;
14743	ia64*)
14744	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14745	  ;;
14746	*)
14747	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14748	  ;;
14749	esac
14750      fi
14751      if test "$with_gnu_ld" = no; then
14752	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14753	hardcode_libdir_separator_F77=:
14754
14755	case $host_cpu in
14756	hppa*64*|ia64*)
14757	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14758	  hardcode_direct_F77=no
14759	  hardcode_shlibpath_var_F77=no
14760	  ;;
14761	*)
14762	  hardcode_direct_F77=yes
14763	  export_dynamic_flag_spec_F77='${wl}-E'
14764
14765	  # hardcode_minus_L: Not really in the search PATH,
14766	  # but as the default location of the library.
14767	  hardcode_minus_L_F77=yes
14768	  ;;
14769	esac
14770      fi
14771      ;;
14772
14773    irix5* | irix6* | nonstopux*)
14774      if test "$GCC" = yes; then
14775	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'
14776      else
14777	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'
14778	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14779      fi
14780      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14781      hardcode_libdir_separator_F77=:
14782      link_all_deplibs_F77=yes
14783      ;;
14784
14785    netbsd*)
14786      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14787	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14788      else
14789	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14790      fi
14791      hardcode_libdir_flag_spec_F77='-R$libdir'
14792      hardcode_direct_F77=yes
14793      hardcode_shlibpath_var_F77=no
14794      ;;
14795
14796    newsos6)
14797      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14798      hardcode_direct_F77=yes
14799      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14800      hardcode_libdir_separator_F77=:
14801      hardcode_shlibpath_var_F77=no
14802      ;;
14803
14804    openbsd*)
14805      hardcode_direct_F77=yes
14806      hardcode_shlibpath_var_F77=no
14807      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14809	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14810	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14811	export_dynamic_flag_spec_F77='${wl}-E'
14812      else
14813       case $host_os in
14814	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14815	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816	   hardcode_libdir_flag_spec_F77='-R$libdir'
14817	   ;;
14818	 *)
14819	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14820	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14821	   ;;
14822       esac
14823      fi
14824      ;;
14825
14826    os2*)
14827      hardcode_libdir_flag_spec_F77='-L$libdir'
14828      hardcode_minus_L_F77=yes
14829      allow_undefined_flag_F77=unsupported
14830      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'
14831      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14832      ;;
14833
14834    osf3*)
14835      if test "$GCC" = yes; then
14836	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14837	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'
14838      else
14839	allow_undefined_flag_F77=' -expect_unresolved \*'
14840	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'
14841      fi
14842      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14843      hardcode_libdir_separator_F77=:
14844      ;;
14845
14846    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14847      if test "$GCC" = yes; then
14848	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14849	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'
14850	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14851      else
14852	allow_undefined_flag_F77=' -expect_unresolved \*'
14853	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'
14854	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~
14855	$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'
14856
14857	# Both c and cxx compiler support -rpath directly
14858	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14859      fi
14860      hardcode_libdir_separator_F77=:
14861      ;;
14862
14863    solaris*)
14864      no_undefined_flag_F77=' -z text'
14865      if test "$GCC" = yes; then
14866	wlarc='${wl}'
14867	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14868	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14869	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14870      else
14871	wlarc=''
14872	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14874  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14875      fi
14876      hardcode_libdir_flag_spec_F77='-R$libdir'
14877      hardcode_shlibpath_var_F77=no
14878      case $host_os in
14879      solaris2.[0-5] | solaris2.[0-5].*) ;;
14880      *)
14881 	# The compiler driver will combine linker options so we
14882 	# cannot just pass the convience library names through
14883 	# without $wl, iff we do not link with $LD.
14884 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14885 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14886 	case $wlarc in
14887 	'')
14888 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14889 	*)
14890 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14891 	esac ;;
14892      esac
14893      link_all_deplibs_F77=yes
14894      ;;
14895
14896    sunos4*)
14897      if test "x$host_vendor" = xsequent; then
14898	# Use $CC to link under sequent, because it throws in some extra .o
14899	# files that make .init and .fini sections work.
14900	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14901      else
14902	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14903      fi
14904      hardcode_libdir_flag_spec_F77='-L$libdir'
14905      hardcode_direct_F77=yes
14906      hardcode_minus_L_F77=yes
14907      hardcode_shlibpath_var_F77=no
14908      ;;
14909
14910    sysv4)
14911      case $host_vendor in
14912	sni)
14913	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914	  hardcode_direct_F77=yes # is this really true???
14915	;;
14916	siemens)
14917	  ## LD is ld it makes a PLAMLIB
14918	  ## CC just makes a GrossModule.
14919	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14920	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14921	  hardcode_direct_F77=no
14922        ;;
14923	motorola)
14924	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14926	;;
14927      esac
14928      runpath_var='LD_RUN_PATH'
14929      hardcode_shlibpath_var_F77=no
14930      ;;
14931
14932    sysv4.3*)
14933      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934      hardcode_shlibpath_var_F77=no
14935      export_dynamic_flag_spec_F77='-Bexport'
14936      ;;
14937
14938    sysv4*MP*)
14939      if test -d /usr/nec; then
14940	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941	hardcode_shlibpath_var_F77=no
14942	runpath_var=LD_RUN_PATH
14943	hardcode_runpath_var=yes
14944	ld_shlibs_F77=yes
14945      fi
14946      ;;
14947
14948    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14949      no_undefined_flag_F77='${wl}-z,text'
14950      archive_cmds_need_lc_F77=no
14951      hardcode_shlibpath_var_F77=no
14952      runpath_var='LD_RUN_PATH'
14953
14954      if test "$GCC" = yes; then
14955	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14957      else
14958	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960      fi
14961      ;;
14962
14963    sysv5* | sco3.2v5* | sco5v6*)
14964      # Note: We can NOT use -z defs as we might desire, because we do not
14965      # link with -lc, and that would cause any symbols used from libc to
14966      # always be unresolved, which means just about no library would
14967      # ever link correctly.  If we're not using GNU ld we use -z text
14968      # though, which does catch some bad symbols but isn't as heavy-handed
14969      # as -z defs.
14970      no_undefined_flag_F77='${wl}-z,text'
14971      allow_undefined_flag_F77='${wl}-z,nodefs'
14972      archive_cmds_need_lc_F77=no
14973      hardcode_shlibpath_var_F77=no
14974      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14975      hardcode_libdir_separator_F77=':'
14976      link_all_deplibs_F77=yes
14977      export_dynamic_flag_spec_F77='${wl}-Bexport'
14978      runpath_var='LD_RUN_PATH'
14979
14980      if test "$GCC" = yes; then
14981	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14983      else
14984	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14985	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986      fi
14987      ;;
14988
14989    uts4*)
14990      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991      hardcode_libdir_flag_spec_F77='-L$libdir'
14992      hardcode_shlibpath_var_F77=no
14993      ;;
14994
14995    *)
14996      ld_shlibs_F77=no
14997      ;;
14998    esac
14999  fi
15000
15001{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15002echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15003test "$ld_shlibs_F77" = no && can_build_shared=no
15004
15005#
15006# Do we need to explicitly link libc?
15007#
15008case "x$archive_cmds_need_lc_F77" in
15009x|xyes)
15010  # Assume -lc should be added
15011  archive_cmds_need_lc_F77=yes
15012
15013  if test "$enable_shared" = yes && test "$GCC" = yes; then
15014    case $archive_cmds_F77 in
15015    *'~'*)
15016      # FIXME: we may have to deal with multi-command sequences.
15017      ;;
15018    '$CC '*)
15019      # Test whether the compiler implicitly links with -lc since on some
15020      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15021      # to ld, don't add -lc before -lgcc.
15022      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15023echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15024      $rm conftest*
15025      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15026
15027      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028  (eval $ac_compile) 2>&5
15029  ac_status=$?
15030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031  (exit $ac_status); } 2>conftest.err; then
15032        soname=conftest
15033        lib=conftest
15034        libobjs=conftest.$ac_objext
15035        deplibs=
15036        wl=$lt_prog_compiler_wl_F77
15037	pic_flag=$lt_prog_compiler_pic_F77
15038        compiler_flags=-v
15039        linker_flags=-v
15040        verstring=
15041        output_objdir=.
15042        libname=conftest
15043        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15044        allow_undefined_flag_F77=
15045        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15046  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15047  ac_status=$?
15048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049  (exit $ac_status); }
15050        then
15051	  archive_cmds_need_lc_F77=no
15052        else
15053	  archive_cmds_need_lc_F77=yes
15054        fi
15055        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15056      else
15057        cat conftest.err 1>&5
15058      fi
15059      $rm conftest*
15060      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15061echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15062      ;;
15063    esac
15064  fi
15065  ;;
15066esac
15067
15068{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15069echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15070library_names_spec=
15071libname_spec='lib$name'
15072soname_spec=
15073shrext_cmds=".so"
15074postinstall_cmds=
15075postuninstall_cmds=
15076finish_cmds=
15077finish_eval=
15078shlibpath_var=
15079shlibpath_overrides_runpath=unknown
15080version_type=none
15081dynamic_linker="$host_os ld.so"
15082sys_lib_dlsearch_path_spec="/lib /usr/lib"
15083if test "$GCC" = yes; then
15084  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15085  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15086    # if the path contains ";" then we assume it to be the separator
15087    # otherwise default to the standard path separator (i.e. ":") - it is
15088    # assumed that no part of a normal pathname contains ";" but that should
15089    # okay in the real world where ";" in dirpaths is itself problematic.
15090    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15091  else
15092    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15093  fi
15094else
15095  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15096fi
15097need_lib_prefix=unknown
15098hardcode_into_libs=no
15099
15100# when you set need_version to no, make sure it does not cause -set_version
15101# flags to be left without arguments
15102need_version=unknown
15103
15104case $host_os in
15105aix3*)
15106  version_type=linux
15107  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15108  shlibpath_var=LIBPATH
15109
15110  # AIX 3 has no versioning support, so we append a major version to the name.
15111  soname_spec='${libname}${release}${shared_ext}$major'
15112  ;;
15113
15114aix4* | aix5*)
15115  version_type=linux
15116  need_lib_prefix=no
15117  need_version=no
15118  hardcode_into_libs=yes
15119  if test "$host_cpu" = ia64; then
15120    # AIX 5 supports IA64
15121    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15122    shlibpath_var=LD_LIBRARY_PATH
15123  else
15124    # With GCC up to 2.95.x, collect2 would create an import file
15125    # for dependence libraries.  The import file would start with
15126    # the line `#! .'.  This would cause the generated library to
15127    # depend on `.', always an invalid library.  This was fixed in
15128    # development snapshots of GCC prior to 3.0.
15129    case $host_os in
15130      aix4 | aix4.[01] | aix4.[01].*)
15131      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15132	   echo ' yes '
15133	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15134	:
15135      else
15136	can_build_shared=no
15137      fi
15138      ;;
15139    esac
15140    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15141    # soname into executable. Probably we can add versioning support to
15142    # collect2, so additional links can be useful in future.
15143    if test "$aix_use_runtimelinking" = yes; then
15144      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15145      # instead of lib<name>.a to let people know that these are not
15146      # typical AIX shared libraries.
15147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148    else
15149      # We preserve .a as extension for shared libraries through AIX4.2
15150      # and later when we are not doing run time linking.
15151      library_names_spec='${libname}${release}.a $libname.a'
15152      soname_spec='${libname}${release}${shared_ext}$major'
15153    fi
15154    shlibpath_var=LIBPATH
15155  fi
15156  ;;
15157
15158amigaos*)
15159  library_names_spec='$libname.ixlibrary $libname.a'
15160  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15161  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'
15162  ;;
15163
15164beos*)
15165  library_names_spec='${libname}${shared_ext}'
15166  dynamic_linker="$host_os ld.so"
15167  shlibpath_var=LIBRARY_PATH
15168  ;;
15169
15170bsdi[45]*)
15171  version_type=linux
15172  need_version=no
15173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174  soname_spec='${libname}${release}${shared_ext}$major'
15175  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15176  shlibpath_var=LD_LIBRARY_PATH
15177  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15178  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15179  # the default ld.so.conf also contains /usr/contrib/lib and
15180  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15181  # libtool to hard-code these into programs
15182  ;;
15183
15184cygwin* | mingw* | pw32*)
15185  version_type=windows
15186  shrext_cmds=".dll"
15187  need_version=no
15188  need_lib_prefix=no
15189
15190  case $GCC,$host_os in
15191  yes,cygwin* | yes,mingw* | yes,pw32*)
15192    library_names_spec='$libname.dll.a'
15193    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15194    postinstall_cmds='base_file=`basename \${file}`~
15195      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15196      dldir=$destdir/`dirname \$dlpath`~
15197      test -d \$dldir || mkdir -p \$dldir~
15198      $install_prog $dir/$dlname \$dldir/$dlname~
15199      chmod a+x \$dldir/$dlname'
15200    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15201      dlpath=$dir/\$dldll~
15202       $rm \$dlpath'
15203    shlibpath_overrides_runpath=yes
15204
15205    case $host_os in
15206    cygwin*)
15207      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15208      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15209      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15210      ;;
15211    mingw*)
15212      # MinGW DLLs use traditional 'lib' prefix
15213      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15214      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15215      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15216        # It is most probably a Windows format PATH printed by
15217        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15218        # path with ; separators, and with drive letters. We can handle the
15219        # drive letters (cygwin fileutils understands them), so leave them,
15220        # especially as we might pass files found there to a mingw objdump,
15221        # which wouldn't understand a cygwinified path. Ahh.
15222        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15223      else
15224        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15225      fi
15226      ;;
15227    pw32*)
15228      # pw32 DLLs use 'pw' prefix rather than 'lib'
15229      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15230      ;;
15231    esac
15232    ;;
15233
15234  *)
15235    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15236    ;;
15237  esac
15238  dynamic_linker='Win32 ld.exe'
15239  # FIXME: first we should search . and the directory the executable is in
15240  shlibpath_var=PATH
15241  ;;
15242
15243darwin* | rhapsody*)
15244  dynamic_linker="$host_os dyld"
15245  version_type=darwin
15246  need_lib_prefix=no
15247  need_version=no
15248  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15249  soname_spec='${libname}${release}${major}$shared_ext'
15250  shlibpath_overrides_runpath=yes
15251  shlibpath_var=DYLD_LIBRARY_PATH
15252  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15253  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15254  if test "$GCC" = yes; then
15255    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15256  else
15257    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15258  fi
15259  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15260  ;;
15261
15262dgux*)
15263  version_type=linux
15264  need_lib_prefix=no
15265  need_version=no
15266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15267  soname_spec='${libname}${release}${shared_ext}$major'
15268  shlibpath_var=LD_LIBRARY_PATH
15269  ;;
15270
15271freebsd1*)
15272  dynamic_linker=no
15273  ;;
15274
15275kfreebsd*-gnu)
15276  version_type=linux
15277  need_lib_prefix=no
15278  need_version=no
15279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15280  soname_spec='${libname}${release}${shared_ext}$major'
15281  shlibpath_var=LD_LIBRARY_PATH
15282  shlibpath_overrides_runpath=no
15283  hardcode_into_libs=yes
15284  dynamic_linker='GNU ld.so'
15285  ;;
15286
15287freebsd* | dragonfly*)
15288  # DragonFly does not have aout.  When/if they implement a new
15289  # versioning mechanism, adjust this.
15290  if test -x /usr/bin/objformat; then
15291    objformat=`/usr/bin/objformat`
15292  else
15293    case $host_os in
15294    freebsd[123]*) objformat=aout ;;
15295    *) objformat=elf ;;
15296    esac
15297  fi
15298  version_type=freebsd-$objformat
15299  case $version_type in
15300    freebsd-elf*)
15301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302      need_version=no
15303      need_lib_prefix=no
15304      ;;
15305    freebsd-*)
15306      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15307      need_version=yes
15308      ;;
15309  esac
15310  shlibpath_var=LD_LIBRARY_PATH
15311  case $host_os in
15312  freebsd2*)
15313    shlibpath_overrides_runpath=yes
15314    ;;
15315  freebsd3.[01]* | freebsdelf3.[01]*)
15316    shlibpath_overrides_runpath=yes
15317    hardcode_into_libs=yes
15318    ;;
15319  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15320  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15321    shlibpath_overrides_runpath=no
15322    hardcode_into_libs=yes
15323    ;;
15324  freebsd*) # from 4.6 on
15325    shlibpath_overrides_runpath=yes
15326    hardcode_into_libs=yes
15327    ;;
15328  esac
15329  ;;
15330
15331gnu*)
15332  version_type=linux
15333  need_lib_prefix=no
15334  need_version=no
15335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15336  soname_spec='${libname}${release}${shared_ext}$major'
15337  shlibpath_var=LD_LIBRARY_PATH
15338  hardcode_into_libs=yes
15339  ;;
15340
15341hpux9* | hpux10* | hpux11*)
15342  # Give a soname corresponding to the major version so that dld.sl refuses to
15343  # link against other versions.
15344  version_type=sunos
15345  need_lib_prefix=no
15346  need_version=no
15347  case $host_cpu in
15348  ia64*)
15349    shrext_cmds='.so'
15350    hardcode_into_libs=yes
15351    dynamic_linker="$host_os dld.so"
15352    shlibpath_var=LD_LIBRARY_PATH
15353    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355    soname_spec='${libname}${release}${shared_ext}$major'
15356    if test "X$HPUX_IA64_MODE" = X32; then
15357      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15358    else
15359      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15360    fi
15361    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15362    ;;
15363   hppa*64*)
15364     shrext_cmds='.sl'
15365     hardcode_into_libs=yes
15366     dynamic_linker="$host_os dld.sl"
15367     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370     soname_spec='${libname}${release}${shared_ext}$major'
15371     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15373     ;;
15374   *)
15375    shrext_cmds='.sl'
15376    dynamic_linker="$host_os dld.sl"
15377    shlibpath_var=SHLIB_PATH
15378    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380    soname_spec='${libname}${release}${shared_ext}$major'
15381    ;;
15382  esac
15383  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15384  postinstall_cmds='chmod 555 $lib'
15385  ;;
15386
15387interix3*)
15388  version_type=linux
15389  need_lib_prefix=no
15390  need_version=no
15391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15392  soname_spec='${libname}${release}${shared_ext}$major'
15393  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15394  shlibpath_var=LD_LIBRARY_PATH
15395  shlibpath_overrides_runpath=no
15396  hardcode_into_libs=yes
15397  ;;
15398
15399irix5* | irix6* | nonstopux*)
15400  case $host_os in
15401    nonstopux*) version_type=nonstopux ;;
15402    *)
15403	if test "$lt_cv_prog_gnu_ld" = yes; then
15404		version_type=linux
15405	else
15406		version_type=irix
15407	fi ;;
15408  esac
15409  need_lib_prefix=no
15410  need_version=no
15411  soname_spec='${libname}${release}${shared_ext}$major'
15412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15413  case $host_os in
15414  irix5* | nonstopux*)
15415    libsuff= shlibsuff=
15416    ;;
15417  *)
15418    case $LD in # libtool.m4 will add one of these switches to LD
15419    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15420      libsuff= shlibsuff= libmagic=32-bit;;
15421    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15422      libsuff=32 shlibsuff=N32 libmagic=N32;;
15423    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15424      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15425    *) libsuff= shlibsuff= libmagic=never-match;;
15426    esac
15427    ;;
15428  esac
15429  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15430  shlibpath_overrides_runpath=no
15431  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15432  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15433  hardcode_into_libs=yes
15434  ;;
15435
15436# No shared lib support for Linux oldld, aout, or coff.
15437linux*oldld* | linux*aout* | linux*coff*)
15438  dynamic_linker=no
15439  ;;
15440
15441# This must be Linux ELF.
15442linux*)
15443  version_type=linux
15444  need_lib_prefix=no
15445  need_version=no
15446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447  soname_spec='${libname}${release}${shared_ext}$major'
15448  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15449  shlibpath_var=LD_LIBRARY_PATH
15450  shlibpath_overrides_runpath=no
15451  # This implies no fast_install, which is unacceptable.
15452  # Some rework will be needed to allow for fast_install
15453  # before this can be enabled.
15454  hardcode_into_libs=yes
15455
15456  # Append ld.so.conf contents to the search path
15457  if test -f /etc/ld.so.conf; then
15458    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15459    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15460  fi
15461
15462  # We used to test for /lib/ld.so.1 and disable shared libraries on
15463  # powerpc, because MkLinux only supported shared libraries with the
15464  # GNU dynamic linker.  Since this was broken with cross compilers,
15465  # most powerpc-linux boxes support dynamic linking these days and
15466  # people can always --disable-shared, the test was removed, and we
15467  # assume the GNU/Linux dynamic linker is in use.
15468  dynamic_linker='GNU/Linux ld.so'
15469  ;;
15470
15471knetbsd*-gnu)
15472  version_type=linux
15473  need_lib_prefix=no
15474  need_version=no
15475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476  soname_spec='${libname}${release}${shared_ext}$major'
15477  shlibpath_var=LD_LIBRARY_PATH
15478  shlibpath_overrides_runpath=no
15479  hardcode_into_libs=yes
15480  dynamic_linker='GNU ld.so'
15481  ;;
15482
15483netbsd*)
15484  version_type=sunos
15485  need_lib_prefix=no
15486  need_version=no
15487  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15489    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15490    dynamic_linker='NetBSD (a.out) ld.so'
15491  else
15492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493    soname_spec='${libname}${release}${shared_ext}$major'
15494    dynamic_linker='NetBSD ld.elf_so'
15495  fi
15496  shlibpath_var=LD_LIBRARY_PATH
15497  shlibpath_overrides_runpath=yes
15498  hardcode_into_libs=yes
15499  ;;
15500
15501newsos6)
15502  version_type=linux
15503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504  shlibpath_var=LD_LIBRARY_PATH
15505  shlibpath_overrides_runpath=yes
15506  ;;
15507
15508nto-qnx*)
15509  version_type=linux
15510  need_lib_prefix=no
15511  need_version=no
15512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513  soname_spec='${libname}${release}${shared_ext}$major'
15514  shlibpath_var=LD_LIBRARY_PATH
15515  shlibpath_overrides_runpath=yes
15516  ;;
15517
15518openbsd*)
15519  version_type=sunos
15520  sys_lib_dlsearch_path_spec="/usr/lib"
15521  need_lib_prefix=no
15522  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15523  case $host_os in
15524    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15525    *)                         need_version=no  ;;
15526  esac
15527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15528  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15529  shlibpath_var=LD_LIBRARY_PATH
15530  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15531    case $host_os in
15532      openbsd2.[89] | openbsd2.[89].*)
15533	shlibpath_overrides_runpath=no
15534	;;
15535      *)
15536	shlibpath_overrides_runpath=yes
15537	;;
15538      esac
15539  else
15540    shlibpath_overrides_runpath=yes
15541  fi
15542  ;;
15543
15544os2*)
15545  libname_spec='$name'
15546  shrext_cmds=".dll"
15547  need_lib_prefix=no
15548  library_names_spec='$libname${shared_ext} $libname.a'
15549  dynamic_linker='OS/2 ld.exe'
15550  shlibpath_var=LIBPATH
15551  ;;
15552
15553osf3* | osf4* | osf5*)
15554  version_type=osf
15555  need_lib_prefix=no
15556  need_version=no
15557  soname_spec='${libname}${release}${shared_ext}$major'
15558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559  shlibpath_var=LD_LIBRARY_PATH
15560  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15561  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15562  ;;
15563
15564solaris*)
15565  version_type=linux
15566  need_lib_prefix=no
15567  need_version=no
15568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569  soname_spec='${libname}${release}${shared_ext}$major'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  shlibpath_overrides_runpath=yes
15572  hardcode_into_libs=yes
15573  # ldd complains unless libraries are executable
15574  postinstall_cmds='chmod +x $lib'
15575  ;;
15576
15577sunos4*)
15578  version_type=sunos
15579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15581  shlibpath_var=LD_LIBRARY_PATH
15582  shlibpath_overrides_runpath=yes
15583  if test "$with_gnu_ld" = yes; then
15584    need_lib_prefix=no
15585  fi
15586  need_version=yes
15587  ;;
15588
15589sysv4 | sysv4.3*)
15590  version_type=linux
15591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592  soname_spec='${libname}${release}${shared_ext}$major'
15593  shlibpath_var=LD_LIBRARY_PATH
15594  case $host_vendor in
15595    sni)
15596      shlibpath_overrides_runpath=no
15597      need_lib_prefix=no
15598      export_dynamic_flag_spec='${wl}-Blargedynsym'
15599      runpath_var=LD_RUN_PATH
15600      ;;
15601    siemens)
15602      need_lib_prefix=no
15603      ;;
15604    motorola)
15605      need_lib_prefix=no
15606      need_version=no
15607      shlibpath_overrides_runpath=no
15608      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15609      ;;
15610  esac
15611  ;;
15612
15613sysv4*MP*)
15614  if test -d /usr/nec ;then
15615    version_type=linux
15616    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15617    soname_spec='$libname${shared_ext}.$major'
15618    shlibpath_var=LD_LIBRARY_PATH
15619  fi
15620  ;;
15621
15622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15623  version_type=freebsd-elf
15624  need_lib_prefix=no
15625  need_version=no
15626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15627  soname_spec='${libname}${release}${shared_ext}$major'
15628  shlibpath_var=LD_LIBRARY_PATH
15629  hardcode_into_libs=yes
15630  if test "$with_gnu_ld" = yes; then
15631    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15632    shlibpath_overrides_runpath=no
15633  else
15634    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15635    shlibpath_overrides_runpath=yes
15636    case $host_os in
15637      sco3.2v5*)
15638        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15639	;;
15640    esac
15641  fi
15642  sys_lib_dlsearch_path_spec='/usr/lib'
15643  ;;
15644
15645uts4*)
15646  version_type=linux
15647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648  soname_spec='${libname}${release}${shared_ext}$major'
15649  shlibpath_var=LD_LIBRARY_PATH
15650  ;;
15651
15652*)
15653  dynamic_linker=no
15654  ;;
15655esac
15656{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15657echo "${ECHO_T}$dynamic_linker" >&6; }
15658test "$dynamic_linker" = no && can_build_shared=no
15659
15660variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15661if test "$GCC" = yes; then
15662  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15663fi
15664
15665{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15666echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15667hardcode_action_F77=
15668if test -n "$hardcode_libdir_flag_spec_F77" || \
15669   test -n "$runpath_var_F77" || \
15670   test "X$hardcode_automatic_F77" = "Xyes" ; then
15671
15672  # We can hardcode non-existant directories.
15673  if test "$hardcode_direct_F77" != no &&
15674     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15675     # have to relink, otherwise we might link with an installed library
15676     # when we should be linking with a yet-to-be-installed one
15677     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15678     test "$hardcode_minus_L_F77" != no; then
15679    # Linking always hardcodes the temporary library directory.
15680    hardcode_action_F77=relink
15681  else
15682    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15683    hardcode_action_F77=immediate
15684  fi
15685else
15686  # We cannot hardcode anything, or else we can only hardcode existing
15687  # directories.
15688  hardcode_action_F77=unsupported
15689fi
15690{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15691echo "${ECHO_T}$hardcode_action_F77" >&6; }
15692
15693if test "$hardcode_action_F77" = relink; then
15694  # Fast installation is not supported
15695  enable_fast_install=no
15696elif test "$shlibpath_overrides_runpath" = yes ||
15697     test "$enable_shared" = no; then
15698  # Fast installation is not necessary
15699  enable_fast_install=needless
15700fi
15701
15702
15703# The else clause should only fire when bootstrapping the
15704# libtool distribution, otherwise you forgot to ship ltmain.sh
15705# with your package, and you will get complaints that there are
15706# no rules to generate ltmain.sh.
15707if test -f "$ltmain"; then
15708  # See if we are running on zsh, and set the options which allow our commands through
15709  # without removal of \ escapes.
15710  if test -n "${ZSH_VERSION+set}" ; then
15711    setopt NO_GLOB_SUBST
15712  fi
15713  # Now quote all the things that may contain metacharacters while being
15714  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15715  # variables and quote the copies for generation of the libtool script.
15716  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15717    SED SHELL STRIP \
15718    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15719    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15720    deplibs_check_method reload_flag reload_cmds need_locks \
15721    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15722    lt_cv_sys_global_symbol_to_c_name_address \
15723    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15724    old_postinstall_cmds old_postuninstall_cmds \
15725    compiler_F77 \
15726    CC_F77 \
15727    LD_F77 \
15728    lt_prog_compiler_wl_F77 \
15729    lt_prog_compiler_pic_F77 \
15730    lt_prog_compiler_static_F77 \
15731    lt_prog_compiler_no_builtin_flag_F77 \
15732    export_dynamic_flag_spec_F77 \
15733    thread_safe_flag_spec_F77 \
15734    whole_archive_flag_spec_F77 \
15735    enable_shared_with_static_runtimes_F77 \
15736    old_archive_cmds_F77 \
15737    old_archive_from_new_cmds_F77 \
15738    predep_objects_F77 \
15739    postdep_objects_F77 \
15740    predeps_F77 \
15741    postdeps_F77 \
15742    compiler_lib_search_path_F77 \
15743    archive_cmds_F77 \
15744    archive_expsym_cmds_F77 \
15745    postinstall_cmds_F77 \
15746    postuninstall_cmds_F77 \
15747    old_archive_from_expsyms_cmds_F77 \
15748    allow_undefined_flag_F77 \
15749    no_undefined_flag_F77 \
15750    export_symbols_cmds_F77 \
15751    hardcode_libdir_flag_spec_F77 \
15752    hardcode_libdir_flag_spec_ld_F77 \
15753    hardcode_libdir_separator_F77 \
15754    hardcode_automatic_F77 \
15755    module_cmds_F77 \
15756    module_expsym_cmds_F77 \
15757    lt_cv_prog_compiler_c_o_F77 \
15758    exclude_expsyms_F77 \
15759    include_expsyms_F77; do
15760
15761    case $var in
15762    old_archive_cmds_F77 | \
15763    old_archive_from_new_cmds_F77 | \
15764    archive_cmds_F77 | \
15765    archive_expsym_cmds_F77 | \
15766    module_cmds_F77 | \
15767    module_expsym_cmds_F77 | \
15768    old_archive_from_expsyms_cmds_F77 | \
15769    export_symbols_cmds_F77 | \
15770    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15771    postinstall_cmds | postuninstall_cmds | \
15772    old_postinstall_cmds | old_postuninstall_cmds | \
15773    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15774      # Double-quote double-evaled strings.
15775      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15776      ;;
15777    *)
15778      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15779      ;;
15780    esac
15781  done
15782
15783  case $lt_echo in
15784  *'\$0 --fallback-echo"')
15785    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15786    ;;
15787  esac
15788
15789cfgfile="$ofile"
15790
15791  cat <<__EOF__ >> "$cfgfile"
15792# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15793
15794# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15795
15796# Shell to use when invoking shell scripts.
15797SHELL=$lt_SHELL
15798
15799# Whether or not to build shared libraries.
15800build_libtool_libs=$enable_shared
15801
15802# Whether or not to build static libraries.
15803build_old_libs=$enable_static
15804
15805# Whether or not to add -lc for building shared libraries.
15806build_libtool_need_lc=$archive_cmds_need_lc_F77
15807
15808# Whether or not to disallow shared libs when runtime libs are static
15809allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15810
15811# Whether or not to optimize for fast installation.
15812fast_install=$enable_fast_install
15813
15814# The host system.
15815host_alias=$host_alias
15816host=$host
15817host_os=$host_os
15818
15819# The build system.
15820build_alias=$build_alias
15821build=$build
15822build_os=$build_os
15823
15824# An echo program that does not interpret backslashes.
15825echo=$lt_echo
15826
15827# The archiver.
15828AR=$lt_AR
15829AR_FLAGS=$lt_AR_FLAGS
15830
15831# A C compiler.
15832LTCC=$lt_LTCC
15833
15834# LTCC compiler flags.
15835LTCFLAGS=$lt_LTCFLAGS
15836
15837# A language-specific compiler.
15838CC=$lt_compiler_F77
15839
15840# Is the compiler the GNU C compiler?
15841with_gcc=$GCC_F77
15842
15843# An ERE matcher.
15844EGREP=$lt_EGREP
15845
15846# The linker used to build libraries.
15847LD=$lt_LD_F77
15848
15849# Whether we need hard or soft links.
15850LN_S=$lt_LN_S
15851
15852# A BSD-compatible nm program.
15853NM=$lt_NM
15854
15855# A symbol stripping program
15856STRIP=$lt_STRIP
15857
15858# Used to examine libraries when file_magic_cmd begins "file"
15859MAGIC_CMD=$MAGIC_CMD
15860
15861# Used on cygwin: DLL creation program.
15862DLLTOOL="$DLLTOOL"
15863
15864# Used on cygwin: object dumper.
15865OBJDUMP="$OBJDUMP"
15866
15867# Used on cygwin: assembler.
15868AS="$AS"
15869
15870# The name of the directory that contains temporary libtool files.
15871objdir=$objdir
15872
15873# How to create reloadable object files.
15874reload_flag=$lt_reload_flag
15875reload_cmds=$lt_reload_cmds
15876
15877# How to pass a linker flag through the compiler.
15878wl=$lt_lt_prog_compiler_wl_F77
15879
15880# Object file suffix (normally "o").
15881objext="$ac_objext"
15882
15883# Old archive suffix (normally "a").
15884libext="$libext"
15885
15886# Shared library suffix (normally ".so").
15887shrext_cmds='$shrext_cmds'
15888
15889# Executable file suffix (normally "").
15890exeext="$exeext"
15891
15892# Additional compiler flags for building library objects.
15893pic_flag=$lt_lt_prog_compiler_pic_F77
15894pic_mode=$pic_mode
15895
15896# What is the maximum length of a command?
15897max_cmd_len=$lt_cv_sys_max_cmd_len
15898
15899# Does compiler simultaneously support -c and -o options?
15900compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15901
15902# Must we lock files when doing compilation?
15903need_locks=$lt_need_locks
15904
15905# Do we need the lib prefix for modules?
15906need_lib_prefix=$need_lib_prefix
15907
15908# Do we need a version for libraries?
15909need_version=$need_version
15910
15911# Whether dlopen is supported.
15912dlopen_support=$enable_dlopen
15913
15914# Whether dlopen of programs is supported.
15915dlopen_self=$enable_dlopen_self
15916
15917# Whether dlopen of statically linked programs is supported.
15918dlopen_self_static=$enable_dlopen_self_static
15919
15920# Compiler flag to prevent dynamic linking.
15921link_static_flag=$lt_lt_prog_compiler_static_F77
15922
15923# Compiler flag to turn off builtin functions.
15924no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15925
15926# Compiler flag to allow reflexive dlopens.
15927export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15928
15929# Compiler flag to generate shared objects directly from archives.
15930whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15931
15932# Compiler flag to generate thread-safe objects.
15933thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15934
15935# Library versioning type.
15936version_type=$version_type
15937
15938# Format of library name prefix.
15939libname_spec=$lt_libname_spec
15940
15941# List of archive names.  First name is the real one, the rest are links.
15942# The last name is the one that the linker finds with -lNAME.
15943library_names_spec=$lt_library_names_spec
15944
15945# The coded name of the library, if different from the real name.
15946soname_spec=$lt_soname_spec
15947
15948# Commands used to build and install an old-style archive.
15949RANLIB=$lt_RANLIB
15950old_archive_cmds=$lt_old_archive_cmds_F77
15951old_postinstall_cmds=$lt_old_postinstall_cmds
15952old_postuninstall_cmds=$lt_old_postuninstall_cmds
15953
15954# Create an old-style archive from a shared archive.
15955old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15956
15957# Create a temporary old-style archive to link instead of a shared archive.
15958old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15959
15960# Commands used to build and install a shared archive.
15961archive_cmds=$lt_archive_cmds_F77
15962archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15963postinstall_cmds=$lt_postinstall_cmds
15964postuninstall_cmds=$lt_postuninstall_cmds
15965
15966# Commands used to build a loadable module (assumed same as above if empty)
15967module_cmds=$lt_module_cmds_F77
15968module_expsym_cmds=$lt_module_expsym_cmds_F77
15969
15970# Commands to strip libraries.
15971old_striplib=$lt_old_striplib
15972striplib=$lt_striplib
15973
15974# Dependencies to place before the objects being linked to create a
15975# shared library.
15976predep_objects=$lt_predep_objects_F77
15977
15978# Dependencies to place after the objects being linked to create a
15979# shared library.
15980postdep_objects=$lt_postdep_objects_F77
15981
15982# Dependencies to place before the objects being linked to create a
15983# shared library.
15984predeps=$lt_predeps_F77
15985
15986# Dependencies to place after the objects being linked to create a
15987# shared library.
15988postdeps=$lt_postdeps_F77
15989
15990# The library search path used internally by the compiler when linking
15991# a shared library.
15992compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15993
15994# Method to check whether dependent libraries are shared objects.
15995deplibs_check_method=$lt_deplibs_check_method
15996
15997# Command to use when deplibs_check_method == file_magic.
15998file_magic_cmd=$lt_file_magic_cmd
15999
16000# Flag that allows shared libraries with undefined symbols to be built.
16001allow_undefined_flag=$lt_allow_undefined_flag_F77
16002
16003# Flag that forces no undefined symbols.
16004no_undefined_flag=$lt_no_undefined_flag_F77
16005
16006# Commands used to finish a libtool library installation in a directory.
16007finish_cmds=$lt_finish_cmds
16008
16009# Same as above, but a single script fragment to be evaled but not shown.
16010finish_eval=$lt_finish_eval
16011
16012# Take the output of nm and produce a listing of raw symbols and C names.
16013global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16014
16015# Transform the output of nm in a proper C declaration
16016global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16017
16018# Transform the output of nm in a C name address pair
16019global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16020
16021# This is the shared library runtime path variable.
16022runpath_var=$runpath_var
16023
16024# This is the shared library path variable.
16025shlibpath_var=$shlibpath_var
16026
16027# Is shlibpath searched before the hard-coded library search path?
16028shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16029
16030# How to hardcode a shared library path into an executable.
16031hardcode_action=$hardcode_action_F77
16032
16033# Whether we should hardcode library paths into libraries.
16034hardcode_into_libs=$hardcode_into_libs
16035
16036# Flag to hardcode \$libdir into a binary during linking.
16037# This must work even if \$libdir does not exist.
16038hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16039
16040# If ld is used when linking, flag to hardcode \$libdir into
16041# a binary during linking. This must work even if \$libdir does
16042# not exist.
16043hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16044
16045# Whether we need a single -rpath flag with a separated argument.
16046hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16047
16048# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16049# resulting binary.
16050hardcode_direct=$hardcode_direct_F77
16051
16052# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16053# resulting binary.
16054hardcode_minus_L=$hardcode_minus_L_F77
16055
16056# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16057# the resulting binary.
16058hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16059
16060# Set to yes if building a shared library automatically hardcodes DIR into the library
16061# and all subsequent libraries and executables linked against it.
16062hardcode_automatic=$hardcode_automatic_F77
16063
16064# Variables whose values should be saved in libtool wrapper scripts and
16065# restored at relink time.
16066variables_saved_for_relink="$variables_saved_for_relink"
16067
16068# Whether libtool must link a program against all its dependency libraries.
16069link_all_deplibs=$link_all_deplibs_F77
16070
16071# Compile-time system search path for libraries
16072sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16073
16074# Run-time system search path for libraries
16075sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16076
16077# Fix the shell variable \$srcfile for the compiler.
16078fix_srcfile_path="$fix_srcfile_path_F77"
16079
16080# Set to yes if exported symbols are required.
16081always_export_symbols=$always_export_symbols_F77
16082
16083# The commands to list exported symbols.
16084export_symbols_cmds=$lt_export_symbols_cmds_F77
16085
16086# The commands to extract the exported symbol list from a shared archive.
16087extract_expsyms_cmds=$lt_extract_expsyms_cmds
16088
16089# Symbols that should not be listed in the preloaded symbols.
16090exclude_expsyms=$lt_exclude_expsyms_F77
16091
16092# Symbols that must always be exported.
16093include_expsyms=$lt_include_expsyms_F77
16094
16095# ### END LIBTOOL TAG CONFIG: $tagname
16096
16097__EOF__
16098
16099
16100else
16101  # If there is no Makefile yet, we rely on a make rule to execute
16102  # `config.status --recheck' to rerun these tests and create the
16103  # libtool script then.
16104  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16105  if test -f "$ltmain_in"; then
16106    test -f Makefile && make "$ltmain"
16107  fi
16108fi
16109
16110
16111ac_ext=c
16112ac_cpp='$CPP $CPPFLAGS'
16113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16115ac_compiler_gnu=$ac_cv_c_compiler_gnu
16116
16117CC="$lt_save_CC"
16118
16119	else
16120	  tagname=""
16121	fi
16122	;;
16123
16124      GCJ)
16125	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16126
16127
16128# Source file extension for Java test sources.
16129ac_ext=java
16130
16131# Object file extension for compiled Java test sources.
16132objext=o
16133objext_GCJ=$objext
16134
16135# Code to be used in simple compile tests
16136lt_simple_compile_test_code="class foo {}\n"
16137
16138# Code to be used in simple link tests
16139lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16140
16141# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16142
16143# If no C compiler was specified, use CC.
16144LTCC=${LTCC-"$CC"}
16145
16146# If no C compiler flags were specified, use CFLAGS.
16147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16148
16149# Allow CC to be a program name with arguments.
16150compiler=$CC
16151
16152
16153# save warnings/boilerplate of simple test code
16154ac_outfile=conftest.$ac_objext
16155printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16156eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16157_lt_compiler_boilerplate=`cat conftest.err`
16158$rm conftest*
16159
16160ac_outfile=conftest.$ac_objext
16161printf "$lt_simple_link_test_code" >conftest.$ac_ext
16162eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16163_lt_linker_boilerplate=`cat conftest.err`
16164$rm conftest*
16165
16166
16167# Allow CC to be a program name with arguments.
16168lt_save_CC="$CC"
16169CC=${GCJ-"gcj"}
16170compiler=$CC
16171compiler_GCJ=$CC
16172for cc_temp in $compiler""; do
16173  case $cc_temp in
16174    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16175    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16176    \-*) ;;
16177    *) break;;
16178  esac
16179done
16180cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16181
16182
16183# GCJ did not exist at the time GCC didn't implicitly link libc in.
16184archive_cmds_need_lc_GCJ=no
16185
16186old_archive_cmds_GCJ=$old_archive_cmds
16187
16188
16189lt_prog_compiler_no_builtin_flag_GCJ=
16190
16191if test "$GCC" = yes; then
16192  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16193
16194
16195{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16196echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16197if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16198  echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200  lt_cv_prog_compiler_rtti_exceptions=no
16201  ac_outfile=conftest.$ac_objext
16202   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16203   lt_compiler_flag="-fno-rtti -fno-exceptions"
16204   # Insert the option either (1) after the last *FLAGS variable, or
16205   # (2) before a word containing "conftest.", or (3) at the end.
16206   # Note that $ac_compile itself does not contain backslashes and begins
16207   # with a dollar sign (not a hyphen), so the echo should work correctly.
16208   # The option is referenced via a variable to avoid confusing sed.
16209   lt_compile=`echo "$ac_compile" | $SED \
16210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16212   -e 's:$: $lt_compiler_flag:'`
16213   (eval echo "\"\$as_me:16213: $lt_compile\"" >&5)
16214   (eval "$lt_compile" 2>conftest.err)
16215   ac_status=$?
16216   cat conftest.err >&5
16217   echo "$as_me:16217: \$? = $ac_status" >&5
16218   if (exit $ac_status) && test -s "$ac_outfile"; then
16219     # The compiler can only warn and ignore the option if not recognized
16220     # So say no if there are warnings other than the usual output.
16221     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16222     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16223     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16224       lt_cv_prog_compiler_rtti_exceptions=yes
16225     fi
16226   fi
16227   $rm conftest*
16228
16229fi
16230{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16231echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16232
16233if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16234    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16235else
16236    :
16237fi
16238
16239fi
16240
16241lt_prog_compiler_wl_GCJ=
16242lt_prog_compiler_pic_GCJ=
16243lt_prog_compiler_static_GCJ=
16244
16245{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16246echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16247
16248  if test "$GCC" = yes; then
16249    lt_prog_compiler_wl_GCJ='-Wl,'
16250    lt_prog_compiler_static_GCJ='-static'
16251
16252    case $host_os in
16253      aix*)
16254      # All AIX code is PIC.
16255      if test "$host_cpu" = ia64; then
16256	# AIX 5 now supports IA64 processor
16257	lt_prog_compiler_static_GCJ='-Bstatic'
16258      fi
16259      ;;
16260
16261    amigaos*)
16262      # FIXME: we need at least 68020 code to build shared libraries, but
16263      # adding the `-m68020' flag to GCC prevents building anything better,
16264      # like `-m68040'.
16265      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16266      ;;
16267
16268    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16269      # PIC is the default for these OSes.
16270      ;;
16271
16272    mingw* | pw32* | os2*)
16273      # This hack is so that the source file can tell whether it is being
16274      # built for inclusion in a dll (and should export symbols for example).
16275      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16276      ;;
16277
16278    darwin* | rhapsody*)
16279      # PIC is the default on this platform
16280      # Common symbols not allowed in MH_DYLIB files
16281      lt_prog_compiler_pic_GCJ='-fno-common'
16282      ;;
16283
16284    interix3*)
16285      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16286      # Instead, we relocate shared libraries at runtime.
16287      ;;
16288
16289    msdosdjgpp*)
16290      # Just because we use GCC doesn't mean we suddenly get shared libraries
16291      # on systems that don't support them.
16292      lt_prog_compiler_can_build_shared_GCJ=no
16293      enable_shared=no
16294      ;;
16295
16296    sysv4*MP*)
16297      if test -d /usr/nec; then
16298	lt_prog_compiler_pic_GCJ=-Kconform_pic
16299      fi
16300      ;;
16301
16302    hpux*)
16303      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16304      # not for PA HP-UX.
16305      case $host_cpu in
16306      hppa*64*|ia64*)
16307	# +Z the default
16308	;;
16309      *)
16310	lt_prog_compiler_pic_GCJ='-fPIC'
16311	;;
16312      esac
16313      ;;
16314
16315    *)
16316      lt_prog_compiler_pic_GCJ='-fPIC'
16317      ;;
16318    esac
16319  else
16320    # PORTME Check for flag to pass linker flags through the system compiler.
16321    case $host_os in
16322    aix*)
16323      lt_prog_compiler_wl_GCJ='-Wl,'
16324      if test "$host_cpu" = ia64; then
16325	# AIX 5 now supports IA64 processor
16326	lt_prog_compiler_static_GCJ='-Bstatic'
16327      else
16328	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16329      fi
16330      ;;
16331      darwin*)
16332        # PIC is the default on this platform
16333        # Common symbols not allowed in MH_DYLIB files
16334       case $cc_basename in
16335         xlc*)
16336         lt_prog_compiler_pic_GCJ='-qnocommon'
16337         lt_prog_compiler_wl_GCJ='-Wl,'
16338         ;;
16339       esac
16340       ;;
16341
16342    mingw* | pw32* | os2*)
16343      # This hack is so that the source file can tell whether it is being
16344      # built for inclusion in a dll (and should export symbols for example).
16345      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16346      ;;
16347
16348    hpux9* | hpux10* | hpux11*)
16349      lt_prog_compiler_wl_GCJ='-Wl,'
16350      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16351      # not for PA HP-UX.
16352      case $host_cpu in
16353      hppa*64*|ia64*)
16354	# +Z the default
16355	;;
16356      *)
16357	lt_prog_compiler_pic_GCJ='+Z'
16358	;;
16359      esac
16360      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16361      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16362      ;;
16363
16364    irix5* | irix6* | nonstopux*)
16365      lt_prog_compiler_wl_GCJ='-Wl,'
16366      # PIC (with -KPIC) is the default.
16367      lt_prog_compiler_static_GCJ='-non_shared'
16368      ;;
16369
16370    newsos6)
16371      lt_prog_compiler_pic_GCJ='-KPIC'
16372      lt_prog_compiler_static_GCJ='-Bstatic'
16373      ;;
16374
16375    linux*)
16376      case $cc_basename in
16377      icc* | ecc*)
16378	lt_prog_compiler_wl_GCJ='-Wl,'
16379	lt_prog_compiler_pic_GCJ='-KPIC'
16380	lt_prog_compiler_static_GCJ='-static'
16381        ;;
16382      pgcc* | pgf77* | pgf90* | pgf95*)
16383        # Portland Group compilers (*not* the Pentium gcc compiler,
16384	# which looks to be a dead project)
16385	lt_prog_compiler_wl_GCJ='-Wl,'
16386	lt_prog_compiler_pic_GCJ='-fpic'
16387	lt_prog_compiler_static_GCJ='-Bstatic'
16388        ;;
16389      ccc*)
16390        lt_prog_compiler_wl_GCJ='-Wl,'
16391        # All Alpha code is PIC.
16392        lt_prog_compiler_static_GCJ='-non_shared'
16393        ;;
16394      esac
16395      ;;
16396
16397    osf3* | osf4* | osf5*)
16398      lt_prog_compiler_wl_GCJ='-Wl,'
16399      # All OSF/1 code is PIC.
16400      lt_prog_compiler_static_GCJ='-non_shared'
16401      ;;
16402
16403    solaris*)
16404      lt_prog_compiler_pic_GCJ='-KPIC'
16405      lt_prog_compiler_static_GCJ='-Bstatic'
16406      case $cc_basename in
16407      f77* | f90* | f95*)
16408	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16409      *)
16410	lt_prog_compiler_wl_GCJ='-Wl,';;
16411      esac
16412      ;;
16413
16414    sunos4*)
16415      lt_prog_compiler_wl_GCJ='-Qoption ld '
16416      lt_prog_compiler_pic_GCJ='-PIC'
16417      lt_prog_compiler_static_GCJ='-Bstatic'
16418      ;;
16419
16420    sysv4 | sysv4.2uw2* | sysv4.3*)
16421      lt_prog_compiler_wl_GCJ='-Wl,'
16422      lt_prog_compiler_pic_GCJ='-KPIC'
16423      lt_prog_compiler_static_GCJ='-Bstatic'
16424      ;;
16425
16426    sysv4*MP*)
16427      if test -d /usr/nec ;then
16428	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16429	lt_prog_compiler_static_GCJ='-Bstatic'
16430      fi
16431      ;;
16432
16433    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16434      lt_prog_compiler_wl_GCJ='-Wl,'
16435      lt_prog_compiler_pic_GCJ='-KPIC'
16436      lt_prog_compiler_static_GCJ='-Bstatic'
16437      ;;
16438
16439    unicos*)
16440      lt_prog_compiler_wl_GCJ='-Wl,'
16441      lt_prog_compiler_can_build_shared_GCJ=no
16442      ;;
16443
16444    uts4*)
16445      lt_prog_compiler_pic_GCJ='-pic'
16446      lt_prog_compiler_static_GCJ='-Bstatic'
16447      ;;
16448
16449    *)
16450      lt_prog_compiler_can_build_shared_GCJ=no
16451      ;;
16452    esac
16453  fi
16454
16455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16456echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16457
16458#
16459# Check to make sure the PIC flag actually works.
16460#
16461if test -n "$lt_prog_compiler_pic_GCJ"; then
16462
16463{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16465if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16466  echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468  lt_prog_compiler_pic_works_GCJ=no
16469  ac_outfile=conftest.$ac_objext
16470   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16471   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16472   # Insert the option either (1) after the last *FLAGS variable, or
16473   # (2) before a word containing "conftest.", or (3) at the end.
16474   # Note that $ac_compile itself does not contain backslashes and begins
16475   # with a dollar sign (not a hyphen), so the echo should work correctly.
16476   # The option is referenced via a variable to avoid confusing sed.
16477   lt_compile=`echo "$ac_compile" | $SED \
16478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16480   -e 's:$: $lt_compiler_flag:'`
16481   (eval echo "\"\$as_me:16481: $lt_compile\"" >&5)
16482   (eval "$lt_compile" 2>conftest.err)
16483   ac_status=$?
16484   cat conftest.err >&5
16485   echo "$as_me:16485: \$? = $ac_status" >&5
16486   if (exit $ac_status) && test -s "$ac_outfile"; then
16487     # The compiler can only warn and ignore the option if not recognized
16488     # So say no if there are warnings other than the usual output.
16489     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16490     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16491     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16492       lt_prog_compiler_pic_works_GCJ=yes
16493     fi
16494   fi
16495   $rm conftest*
16496
16497fi
16498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16499echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16500
16501if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16502    case $lt_prog_compiler_pic_GCJ in
16503     "" | " "*) ;;
16504     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16505     esac
16506else
16507    lt_prog_compiler_pic_GCJ=
16508     lt_prog_compiler_can_build_shared_GCJ=no
16509fi
16510
16511fi
16512case $host_os in
16513  # For platforms which do not support PIC, -DPIC is meaningless:
16514  *djgpp*)
16515    lt_prog_compiler_pic_GCJ=
16516    ;;
16517  *)
16518    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16519    ;;
16520esac
16521
16522#
16523# Check to make sure the static flag actually works.
16524#
16525wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16526{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16527echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16528if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16529  echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531  lt_prog_compiler_static_works_GCJ=no
16532   save_LDFLAGS="$LDFLAGS"
16533   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16534   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16535   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16536     # The linker can only warn and ignore the option if not recognized
16537     # So say no if there are warnings
16538     if test -s conftest.err; then
16539       # Append any errors to the config.log.
16540       cat conftest.err 1>&5
16541       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16542       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16543       if diff conftest.exp conftest.er2 >/dev/null; then
16544         lt_prog_compiler_static_works_GCJ=yes
16545       fi
16546     else
16547       lt_prog_compiler_static_works_GCJ=yes
16548     fi
16549   fi
16550   $rm conftest*
16551   LDFLAGS="$save_LDFLAGS"
16552
16553fi
16554{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16555echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16556
16557if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16558    :
16559else
16560    lt_prog_compiler_static_GCJ=
16561fi
16562
16563
16564{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16566if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16567  echo $ECHO_N "(cached) $ECHO_C" >&6
16568else
16569  lt_cv_prog_compiler_c_o_GCJ=no
16570   $rm -r conftest 2>/dev/null
16571   mkdir conftest
16572   cd conftest
16573   mkdir out
16574   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16575
16576   lt_compiler_flag="-o out/conftest2.$ac_objext"
16577   # Insert the option either (1) after the last *FLAGS variable, or
16578   # (2) before a word containing "conftest.", or (3) at the end.
16579   # Note that $ac_compile itself does not contain backslashes and begins
16580   # with a dollar sign (not a hyphen), so the echo should work correctly.
16581   lt_compile=`echo "$ac_compile" | $SED \
16582   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584   -e 's:$: $lt_compiler_flag:'`
16585   (eval echo "\"\$as_me:16585: $lt_compile\"" >&5)
16586   (eval "$lt_compile" 2>out/conftest.err)
16587   ac_status=$?
16588   cat out/conftest.err >&5
16589   echo "$as_me:16589: \$? = $ac_status" >&5
16590   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16591   then
16592     # The compiler can only warn and ignore the option if not recognized
16593     # So say no if there are warnings
16594     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16595     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16596     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16597       lt_cv_prog_compiler_c_o_GCJ=yes
16598     fi
16599   fi
16600   chmod u+w . 2>&5
16601   $rm conftest*
16602   # SGI C++ compiler will create directory out/ii_files/ for
16603   # template instantiation
16604   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16605   $rm out/* && rmdir out
16606   cd ..
16607   rmdir conftest
16608   $rm conftest*
16609
16610fi
16611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16612echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16613
16614
16615hard_links="nottested"
16616if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16617  # do not overwrite the value of need_locks provided by the user
16618  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16620  hard_links=yes
16621  $rm conftest*
16622  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16623  touch conftest.a
16624  ln conftest.a conftest.b 2>&5 || hard_links=no
16625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16626  { echo "$as_me:$LINENO: result: $hard_links" >&5
16627echo "${ECHO_T}$hard_links" >&6; }
16628  if test "$hard_links" = no; then
16629    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16631    need_locks=warn
16632  fi
16633else
16634  need_locks=no
16635fi
16636
16637{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16639
16640  runpath_var=
16641  allow_undefined_flag_GCJ=
16642  enable_shared_with_static_runtimes_GCJ=no
16643  archive_cmds_GCJ=
16644  archive_expsym_cmds_GCJ=
16645  old_archive_From_new_cmds_GCJ=
16646  old_archive_from_expsyms_cmds_GCJ=
16647  export_dynamic_flag_spec_GCJ=
16648  whole_archive_flag_spec_GCJ=
16649  thread_safe_flag_spec_GCJ=
16650  hardcode_libdir_flag_spec_GCJ=
16651  hardcode_libdir_flag_spec_ld_GCJ=
16652  hardcode_libdir_separator_GCJ=
16653  hardcode_direct_GCJ=no
16654  hardcode_minus_L_GCJ=no
16655  hardcode_shlibpath_var_GCJ=unsupported
16656  link_all_deplibs_GCJ=unknown
16657  hardcode_automatic_GCJ=no
16658  module_cmds_GCJ=
16659  module_expsym_cmds_GCJ=
16660  always_export_symbols_GCJ=no
16661  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16662  # include_expsyms should be a list of space-separated symbols to be *always*
16663  # included in the symbol list
16664  include_expsyms_GCJ=
16665  # exclude_expsyms can be an extended regexp of symbols to exclude
16666  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16667  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16668  # as well as any symbol that contains `d'.
16669  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16670  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16671  # platforms (ab)use it in PIC code, but their linkers get confused if
16672  # the symbol is explicitly referenced.  Since portable code cannot
16673  # rely on this symbol name, it's probably fine to never include it in
16674  # preloaded symbol tables.
16675  extract_expsyms_cmds=
16676  # Just being paranoid about ensuring that cc_basename is set.
16677  for cc_temp in $compiler""; do
16678  case $cc_temp in
16679    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16680    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16681    \-*) ;;
16682    *) break;;
16683  esac
16684done
16685cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16686
16687  case $host_os in
16688  cygwin* | mingw* | pw32*)
16689    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16690    # When not using gcc, we currently assume that we are using
16691    # Microsoft Visual C++.
16692    if test "$GCC" != yes; then
16693      with_gnu_ld=no
16694    fi
16695    ;;
16696  interix*)
16697    # we just hope/assume this is gcc and not c89 (= MSVC++)
16698    with_gnu_ld=yes
16699    ;;
16700  openbsd*)
16701    with_gnu_ld=no
16702    ;;
16703  esac
16704
16705  ld_shlibs_GCJ=yes
16706  if test "$with_gnu_ld" = yes; then
16707    # If archive_cmds runs LD, not CC, wlarc should be empty
16708    wlarc='${wl}'
16709
16710    # Set some defaults for GNU ld with shared library support. These
16711    # are reset later if shared libraries are not supported. Putting them
16712    # here allows them to be overridden if necessary.
16713    runpath_var=LD_RUN_PATH
16714    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16715    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16716    # ancient GNU ld didn't support --whole-archive et. al.
16717    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16718	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16719      else
16720  	whole_archive_flag_spec_GCJ=
16721    fi
16722    supports_anon_versioning=no
16723    case `$LD -v 2>/dev/null` in
16724      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16725      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16726      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16727      *\ 2.11.*) ;; # other 2.11 versions
16728      *) supports_anon_versioning=yes ;;
16729    esac
16730
16731    # See if GNU ld supports shared libraries.
16732    case $host_os in
16733    aix3* | aix4* | aix5*)
16734      # On AIX/PPC, the GNU linker is very broken
16735      if test "$host_cpu" != ia64; then
16736	ld_shlibs_GCJ=no
16737	cat <<EOF 1>&2
16738
16739*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16740*** to be unable to reliably create shared libraries on AIX.
16741*** Therefore, libtool is disabling shared libraries support.  If you
16742*** really care for shared libraries, you may want to modify your PATH
16743*** so that a non-GNU linker is found, and then restart.
16744
16745EOF
16746      fi
16747      ;;
16748
16749    amigaos*)
16750      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)'
16751      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16752      hardcode_minus_L_GCJ=yes
16753
16754      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16755      # that the semantics of dynamic libraries on AmigaOS, at least up
16756      # to version 4, is to share data among multiple programs linked
16757      # with the same dynamic library.  Since this doesn't match the
16758      # behavior of shared libraries on other platforms, we can't use
16759      # them.
16760      ld_shlibs_GCJ=no
16761      ;;
16762
16763    beos*)
16764      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16765	allow_undefined_flag_GCJ=unsupported
16766	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16767	# support --undefined.  This deserves some investigation.  FIXME
16768	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16769      else
16770	ld_shlibs_GCJ=no
16771      fi
16772      ;;
16773
16774    cygwin* | mingw* | pw32*)
16775      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16776      # as there is no search path for DLLs.
16777      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16778      allow_undefined_flag_GCJ=unsupported
16779      always_export_symbols_GCJ=no
16780      enable_shared_with_static_runtimes_GCJ=yes
16781      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16782
16783      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16784        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16785	# If the export-symbols file already is a .def file (1st line
16786	# is EXPORTS), use it as is; otherwise, prepend...
16787	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16788	  cp $export_symbols $output_objdir/$soname.def;
16789	else
16790	  echo EXPORTS > $output_objdir/$soname.def;
16791	  cat $export_symbols >> $output_objdir/$soname.def;
16792	fi~
16793	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16794      else
16795	ld_shlibs_GCJ=no
16796      fi
16797      ;;
16798
16799    interix3*)
16800      hardcode_direct_GCJ=no
16801      hardcode_shlibpath_var_GCJ=no
16802      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16803      export_dynamic_flag_spec_GCJ='${wl}-E'
16804      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16805      # Instead, shared libraries are loaded at an image base (0x10000000 by
16806      # default) and relocated if they conflict, which is a slow very memory
16807      # consuming and fragmenting process.  To avoid this, we pick a random,
16808      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16809      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16810      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'
16811      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'
16812      ;;
16813
16814    linux*)
16815      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16816	tmp_addflag=
16817	case $cc_basename,$host_cpu in
16818	pgcc*)				# Portland Group C compiler
16819	  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'
16820	  tmp_addflag=' $pic_flag'
16821	  ;;
16822	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16823	  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'
16824	  tmp_addflag=' $pic_flag -Mnomain' ;;
16825	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16826	  tmp_addflag=' -i_dynamic' ;;
16827	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16828	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16829	ifc* | ifort*)			# Intel Fortran compiler
16830	  tmp_addflag=' -nofor_main' ;;
16831	esac
16832	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16833
16834	if test $supports_anon_versioning = yes; then
16835	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16836  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16837  $echo "local: *; };" >> $output_objdir/$libname.ver~
16838	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16839	fi
16840      else
16841	ld_shlibs_GCJ=no
16842      fi
16843      ;;
16844
16845    netbsd*)
16846      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16847	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16848	wlarc=
16849      else
16850	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16851	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16852      fi
16853      ;;
16854
16855    solaris*)
16856      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16857	ld_shlibs_GCJ=no
16858	cat <<EOF 1>&2
16859
16860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16861*** create shared libraries on Solaris systems.  Therefore, libtool
16862*** is disabling shared libraries support.  We urge you to upgrade GNU
16863*** binutils to release 2.9.1 or newer.  Another option is to modify
16864*** your PATH or compiler configuration so that the native linker is
16865*** used, and then restart.
16866
16867EOF
16868      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16870	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16871      else
16872	ld_shlibs_GCJ=no
16873      fi
16874      ;;
16875
16876    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16877      case `$LD -v 2>&1` in
16878        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16879	ld_shlibs_GCJ=no
16880	cat <<_LT_EOF 1>&2
16881
16882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16883*** reliably create shared libraries on SCO systems.  Therefore, libtool
16884*** is disabling shared libraries support.  We urge you to upgrade GNU
16885*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16886*** your PATH or compiler configuration so that the native linker is
16887*** used, and then restart.
16888
16889_LT_EOF
16890	;;
16891	*)
16892	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16893	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16894	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16895	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16896	  else
16897	    ld_shlibs_GCJ=no
16898	  fi
16899	;;
16900      esac
16901      ;;
16902
16903    sunos4*)
16904      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905      wlarc=
16906      hardcode_direct_GCJ=yes
16907      hardcode_shlibpath_var_GCJ=no
16908      ;;
16909
16910    *)
16911      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16912	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16913	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16914      else
16915	ld_shlibs_GCJ=no
16916      fi
16917      ;;
16918    esac
16919
16920    if test "$ld_shlibs_GCJ" = no; then
16921      runpath_var=
16922      hardcode_libdir_flag_spec_GCJ=
16923      export_dynamic_flag_spec_GCJ=
16924      whole_archive_flag_spec_GCJ=
16925    fi
16926  else
16927    # PORTME fill in a description of your system's linker (not GNU ld)
16928    case $host_os in
16929    aix3*)
16930      allow_undefined_flag_GCJ=unsupported
16931      always_export_symbols_GCJ=yes
16932      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'
16933      # Note: this linker hardcodes the directories in LIBPATH if there
16934      # are no directories specified by -L.
16935      hardcode_minus_L_GCJ=yes
16936      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16937	# Neither direct hardcoding nor static linking is supported with a
16938	# broken collect2.
16939	hardcode_direct_GCJ=unsupported
16940      fi
16941      ;;
16942
16943    aix4* | aix5*)
16944      if test "$host_cpu" = ia64; then
16945	# On IA64, the linker does run time linking by default, so we don't
16946	# have to do anything special.
16947	aix_use_runtimelinking=no
16948	exp_sym_flag='-Bexport'
16949	no_entry_flag=""
16950      else
16951	# If we're using GNU nm, then we don't want the "-C" option.
16952	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16953	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16954	  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'
16955	else
16956	  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'
16957	fi
16958	aix_use_runtimelinking=no
16959
16960	# Test if we are trying to use run time linking or normal
16961	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16962	# need to do runtime linking.
16963	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16964	  for ld_flag in $LDFLAGS; do
16965  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16966  	    aix_use_runtimelinking=yes
16967  	    break
16968  	  fi
16969	  done
16970	  ;;
16971	esac
16972
16973	exp_sym_flag='-bexport'
16974	no_entry_flag='-bnoentry'
16975      fi
16976
16977      # When large executables or shared objects are built, AIX ld can
16978      # have problems creating the table of contents.  If linking a library
16979      # or program results in "error TOC overflow" add -mminimal-toc to
16980      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16981      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16982
16983      archive_cmds_GCJ=''
16984      hardcode_direct_GCJ=yes
16985      hardcode_libdir_separator_GCJ=':'
16986      link_all_deplibs_GCJ=yes
16987
16988      if test "$GCC" = yes; then
16989	case $host_os in aix4.[012]|aix4.[012].*)
16990	# We only want to do this on AIX 4.2 and lower, the check
16991	# below for broken collect2 doesn't work under 4.3+
16992	  collect2name=`${CC} -print-prog-name=collect2`
16993	  if test -f "$collect2name" && \
16994  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16995	  then
16996  	  # We have reworked collect2
16997  	  hardcode_direct_GCJ=yes
16998	  else
16999  	  # We have old collect2
17000  	  hardcode_direct_GCJ=unsupported
17001  	  # It fails to find uninstalled libraries when the uninstalled
17002  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17003  	  # to unsupported forces relinking
17004  	  hardcode_minus_L_GCJ=yes
17005  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17006  	  hardcode_libdir_separator_GCJ=
17007	  fi
17008	  ;;
17009	esac
17010	shared_flag='-shared'
17011	if test "$aix_use_runtimelinking" = yes; then
17012	  shared_flag="$shared_flag "'${wl}-G'
17013	fi
17014      else
17015	# not using gcc
17016	if test "$host_cpu" = ia64; then
17017  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17018  	# chokes on -Wl,-G. The following line is correct:
17019	  shared_flag='-G'
17020	else
17021	  if test "$aix_use_runtimelinking" = yes; then
17022	    shared_flag='${wl}-G'
17023	  else
17024	    shared_flag='${wl}-bM:SRE'
17025	  fi
17026	fi
17027      fi
17028
17029      # It seems that -bexpall does not export symbols beginning with
17030      # underscore (_), so it is better to generate a list of symbols to export.
17031      always_export_symbols_GCJ=yes
17032      if test "$aix_use_runtimelinking" = yes; then
17033	# Warning - without using the other runtime loading flags (-brtl),
17034	# -berok will link without error, but may produce a broken library.
17035	allow_undefined_flag_GCJ='-berok'
17036       # Determine the default libpath from the value encoded in an empty executable.
17037       cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h.  */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h.  */
17043
17044int
17045main ()
17046{
17047
17048  ;
17049  return 0;
17050}
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
17053if { (ac_try="$ac_link"
17054case "(($ac_try" in
17055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056  *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059  (eval "$ac_link") 2>conftest.er1
17060  ac_status=$?
17061  grep -v '^ *+' conftest.er1 >conftest.err
17062  rm -f conftest.er1
17063  cat conftest.err >&5
17064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065  (exit $ac_status); } && {
17066	 test -z "$ac_c_werror_flag" ||
17067	 test ! -s conftest.err
17068       } && test -s conftest$ac_exeext &&
17069       $as_test_x conftest$ac_exeext; then
17070
17071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17072}'`
17073# Check for a 64-bit object if we didn't find anything.
17074if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17075}'`; fi
17076else
17077  echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080
17081fi
17082
17083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17084      conftest$ac_exeext conftest.$ac_ext
17085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17086
17087       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17088	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"
17089       else
17090	if test "$host_cpu" = ia64; then
17091	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17092	  allow_undefined_flag_GCJ="-z nodefs"
17093	  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"
17094	else
17095	 # Determine the default libpath from the value encoded in an empty executable.
17096	 cat >conftest.$ac_ext <<_ACEOF
17097/* confdefs.h.  */
17098_ACEOF
17099cat confdefs.h >>conftest.$ac_ext
17100cat >>conftest.$ac_ext <<_ACEOF
17101/* end confdefs.h.  */
17102
17103int
17104main ()
17105{
17106
17107  ;
17108  return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext conftest$ac_exeext
17112if { (ac_try="$ac_link"
17113case "(($ac_try" in
17114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115  *) ac_try_echo=$ac_try;;
17116esac
17117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118  (eval "$ac_link") 2>conftest.er1
17119  ac_status=$?
17120  grep -v '^ *+' conftest.er1 >conftest.err
17121  rm -f conftest.er1
17122  cat conftest.err >&5
17123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124  (exit $ac_status); } && {
17125	 test -z "$ac_c_werror_flag" ||
17126	 test ! -s conftest.err
17127       } && test -s conftest$ac_exeext &&
17128       $as_test_x conftest$ac_exeext; then
17129
17130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17131}'`
17132# Check for a 64-bit object if we didn't find anything.
17133if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17134}'`; fi
17135else
17136  echo "$as_me: failed program was:" >&5
17137sed 's/^/| /' conftest.$ac_ext >&5
17138
17139
17140fi
17141
17142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17143      conftest$ac_exeext conftest.$ac_ext
17144if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17145
17146	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17147	  # Warning - without using the other run time loading flags,
17148	  # -berok will link without error, but may produce a broken library.
17149	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17150	  allow_undefined_flag_GCJ=' ${wl}-berok'
17151	  # Exported symbols can be pulled into shared objects from archives
17152	  whole_archive_flag_spec_GCJ='$convenience'
17153	  archive_cmds_need_lc_GCJ=yes
17154	  # This is similar to how AIX traditionally builds its shared libraries.
17155	  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'
17156	fi
17157      fi
17158      ;;
17159
17160    amigaos*)
17161      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)'
17162      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17163      hardcode_minus_L_GCJ=yes
17164      # see comment about different semantics on the GNU ld section
17165      ld_shlibs_GCJ=no
17166      ;;
17167
17168    bsdi[45]*)
17169      export_dynamic_flag_spec_GCJ=-rdynamic
17170      ;;
17171
17172    cygwin* | mingw* | pw32*)
17173      # When not using gcc, we currently assume that we are using
17174      # Microsoft Visual C++.
17175      # hardcode_libdir_flag_spec is actually meaningless, as there is
17176      # no search path for DLLs.
17177      hardcode_libdir_flag_spec_GCJ=' '
17178      allow_undefined_flag_GCJ=unsupported
17179      # Tell ltmain to make .lib files, not .a files.
17180      libext=lib
17181      # Tell ltmain to make .dll files, not .so files.
17182      shrext_cmds=".dll"
17183      # FIXME: Setting linknames here is a bad hack.
17184      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17185      # The linker will automatically build a .lib file if we build a DLL.
17186      old_archive_From_new_cmds_GCJ='true'
17187      # FIXME: Should let the user specify the lib program.
17188      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17189      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17190      enable_shared_with_static_runtimes_GCJ=yes
17191      ;;
17192
17193    darwin* | rhapsody*)
17194      case $host_os in
17195        rhapsody* | darwin1.[012])
17196         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17197         ;;
17198       *) # Darwin 1.3 on
17199         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17200           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17201         else
17202           case ${MACOSX_DEPLOYMENT_TARGET} in
17203             10.[012])
17204               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17205               ;;
17206             10.*)
17207               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17208               ;;
17209           esac
17210         fi
17211         ;;
17212      esac
17213      archive_cmds_need_lc_GCJ=no
17214      hardcode_direct_GCJ=no
17215      hardcode_automatic_GCJ=yes
17216      hardcode_shlibpath_var_GCJ=unsupported
17217      whole_archive_flag_spec_GCJ=''
17218      link_all_deplibs_GCJ=yes
17219    if test "$GCC" = yes ; then
17220    	output_verbose_link_cmd='echo'
17221        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17222      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17223      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17224      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17225      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}'
17226    else
17227      case $cc_basename in
17228        xlc*)
17229         output_verbose_link_cmd='echo'
17230         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17231         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17232          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17233         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17234          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}'
17235          ;;
17236       *)
17237         ld_shlibs_GCJ=no
17238          ;;
17239      esac
17240    fi
17241      ;;
17242
17243    dgux*)
17244      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17245      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17246      hardcode_shlibpath_var_GCJ=no
17247      ;;
17248
17249    freebsd1*)
17250      ld_shlibs_GCJ=no
17251      ;;
17252
17253    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17254    # support.  Future versions do this automatically, but an explicit c++rt0.o
17255    # does not break anything, and helps significantly (at the cost of a little
17256    # extra space).
17257    freebsd2.2*)
17258      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17259      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17260      hardcode_direct_GCJ=yes
17261      hardcode_shlibpath_var_GCJ=no
17262      ;;
17263
17264    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17265    freebsd2*)
17266      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17267      hardcode_direct_GCJ=yes
17268      hardcode_minus_L_GCJ=yes
17269      hardcode_shlibpath_var_GCJ=no
17270      ;;
17271
17272    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17273    freebsd* | kfreebsd*-gnu | dragonfly*)
17274      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17275      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17276      hardcode_direct_GCJ=yes
17277      hardcode_shlibpath_var_GCJ=no
17278      ;;
17279
17280    hpux9*)
17281      if test "$GCC" = yes; then
17282	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'
17283      else
17284	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'
17285      fi
17286      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17287      hardcode_libdir_separator_GCJ=:
17288      hardcode_direct_GCJ=yes
17289
17290      # hardcode_minus_L: Not really in the search PATH,
17291      # but as the default location of the library.
17292      hardcode_minus_L_GCJ=yes
17293      export_dynamic_flag_spec_GCJ='${wl}-E'
17294      ;;
17295
17296    hpux10*)
17297      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17298	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17299      else
17300	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17301      fi
17302      if test "$with_gnu_ld" = no; then
17303	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17304	hardcode_libdir_separator_GCJ=:
17305
17306	hardcode_direct_GCJ=yes
17307	export_dynamic_flag_spec_GCJ='${wl}-E'
17308
17309	# hardcode_minus_L: Not really in the search PATH,
17310	# but as the default location of the library.
17311	hardcode_minus_L_GCJ=yes
17312      fi
17313      ;;
17314
17315    hpux11*)
17316      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17317	case $host_cpu in
17318	hppa*64*)
17319	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17320	  ;;
17321	ia64*)
17322	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17323	  ;;
17324	*)
17325	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17326	  ;;
17327	esac
17328      else
17329	case $host_cpu in
17330	hppa*64*)
17331	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17332	  ;;
17333	ia64*)
17334	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17335	  ;;
17336	*)
17337	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17338	  ;;
17339	esac
17340      fi
17341      if test "$with_gnu_ld" = no; then
17342	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17343	hardcode_libdir_separator_GCJ=:
17344
17345	case $host_cpu in
17346	hppa*64*|ia64*)
17347	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17348	  hardcode_direct_GCJ=no
17349	  hardcode_shlibpath_var_GCJ=no
17350	  ;;
17351	*)
17352	  hardcode_direct_GCJ=yes
17353	  export_dynamic_flag_spec_GCJ='${wl}-E'
17354
17355	  # hardcode_minus_L: Not really in the search PATH,
17356	  # but as the default location of the library.
17357	  hardcode_minus_L_GCJ=yes
17358	  ;;
17359	esac
17360      fi
17361      ;;
17362
17363    irix5* | irix6* | nonstopux*)
17364      if test "$GCC" = yes; then
17365	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'
17366      else
17367	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'
17368	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17369      fi
17370      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17371      hardcode_libdir_separator_GCJ=:
17372      link_all_deplibs_GCJ=yes
17373      ;;
17374
17375    netbsd*)
17376      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17377	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17378      else
17379	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17380      fi
17381      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382      hardcode_direct_GCJ=yes
17383      hardcode_shlibpath_var_GCJ=no
17384      ;;
17385
17386    newsos6)
17387      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388      hardcode_direct_GCJ=yes
17389      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17390      hardcode_libdir_separator_GCJ=:
17391      hardcode_shlibpath_var_GCJ=no
17392      ;;
17393
17394    openbsd*)
17395      hardcode_direct_GCJ=yes
17396      hardcode_shlibpath_var_GCJ=no
17397      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17398	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17399	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17400	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17401	export_dynamic_flag_spec_GCJ='${wl}-E'
17402      else
17403       case $host_os in
17404	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17405	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17406	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17407	   ;;
17408	 *)
17409	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17411	   ;;
17412       esac
17413      fi
17414      ;;
17415
17416    os2*)
17417      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17418      hardcode_minus_L_GCJ=yes
17419      allow_undefined_flag_GCJ=unsupported
17420      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'
17421      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17422      ;;
17423
17424    osf3*)
17425      if test "$GCC" = yes; then
17426	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17427	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'
17428      else
17429	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17430	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'
17431      fi
17432      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17433      hardcode_libdir_separator_GCJ=:
17434      ;;
17435
17436    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17437      if test "$GCC" = yes; then
17438	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17439	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'
17440	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17441      else
17442	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17443	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'
17444	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~
17445	$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'
17446
17447	# Both c and cxx compiler support -rpath directly
17448	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17449      fi
17450      hardcode_libdir_separator_GCJ=:
17451      ;;
17452
17453    solaris*)
17454      no_undefined_flag_GCJ=' -z text'
17455      if test "$GCC" = yes; then
17456	wlarc='${wl}'
17457	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17458	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17459	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17460      else
17461	wlarc=''
17462	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17463	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17464  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17465      fi
17466      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17467      hardcode_shlibpath_var_GCJ=no
17468      case $host_os in
17469      solaris2.[0-5] | solaris2.[0-5].*) ;;
17470      *)
17471 	# The compiler driver will combine linker options so we
17472 	# cannot just pass the convience library names through
17473 	# without $wl, iff we do not link with $LD.
17474 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17475 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17476 	case $wlarc in
17477 	'')
17478 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17479 	*)
17480 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17481 	esac ;;
17482      esac
17483      link_all_deplibs_GCJ=yes
17484      ;;
17485
17486    sunos4*)
17487      if test "x$host_vendor" = xsequent; then
17488	# Use $CC to link under sequent, because it throws in some extra .o
17489	# files that make .init and .fini sections work.
17490	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17491      else
17492	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17493      fi
17494      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17495      hardcode_direct_GCJ=yes
17496      hardcode_minus_L_GCJ=yes
17497      hardcode_shlibpath_var_GCJ=no
17498      ;;
17499
17500    sysv4)
17501      case $host_vendor in
17502	sni)
17503	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504	  hardcode_direct_GCJ=yes # is this really true???
17505	;;
17506	siemens)
17507	  ## LD is ld it makes a PLAMLIB
17508	  ## CC just makes a GrossModule.
17509	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17510	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17511	  hardcode_direct_GCJ=no
17512        ;;
17513	motorola)
17514	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17515	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17516	;;
17517      esac
17518      runpath_var='LD_RUN_PATH'
17519      hardcode_shlibpath_var_GCJ=no
17520      ;;
17521
17522    sysv4.3*)
17523      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524      hardcode_shlibpath_var_GCJ=no
17525      export_dynamic_flag_spec_GCJ='-Bexport'
17526      ;;
17527
17528    sysv4*MP*)
17529      if test -d /usr/nec; then
17530	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17531	hardcode_shlibpath_var_GCJ=no
17532	runpath_var=LD_RUN_PATH
17533	hardcode_runpath_var=yes
17534	ld_shlibs_GCJ=yes
17535      fi
17536      ;;
17537
17538    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17539      no_undefined_flag_GCJ='${wl}-z,text'
17540      archive_cmds_need_lc_GCJ=no
17541      hardcode_shlibpath_var_GCJ=no
17542      runpath_var='LD_RUN_PATH'
17543
17544      if test "$GCC" = yes; then
17545	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17546	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17547      else
17548	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17549	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17550      fi
17551      ;;
17552
17553    sysv5* | sco3.2v5* | sco5v6*)
17554      # Note: We can NOT use -z defs as we might desire, because we do not
17555      # link with -lc, and that would cause any symbols used from libc to
17556      # always be unresolved, which means just about no library would
17557      # ever link correctly.  If we're not using GNU ld we use -z text
17558      # though, which does catch some bad symbols but isn't as heavy-handed
17559      # as -z defs.
17560      no_undefined_flag_GCJ='${wl}-z,text'
17561      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17562      archive_cmds_need_lc_GCJ=no
17563      hardcode_shlibpath_var_GCJ=no
17564      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17565      hardcode_libdir_separator_GCJ=':'
17566      link_all_deplibs_GCJ=yes
17567      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17568      runpath_var='LD_RUN_PATH'
17569
17570      if test "$GCC" = yes; then
17571	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17572	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17573      else
17574	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576      fi
17577      ;;
17578
17579    uts4*)
17580      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17582      hardcode_shlibpath_var_GCJ=no
17583      ;;
17584
17585    *)
17586      ld_shlibs_GCJ=no
17587      ;;
17588    esac
17589  fi
17590
17591{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17592echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17593test "$ld_shlibs_GCJ" = no && can_build_shared=no
17594
17595#
17596# Do we need to explicitly link libc?
17597#
17598case "x$archive_cmds_need_lc_GCJ" in
17599x|xyes)
17600  # Assume -lc should be added
17601  archive_cmds_need_lc_GCJ=yes
17602
17603  if test "$enable_shared" = yes && test "$GCC" = yes; then
17604    case $archive_cmds_GCJ in
17605    *'~'*)
17606      # FIXME: we may have to deal with multi-command sequences.
17607      ;;
17608    '$CC '*)
17609      # Test whether the compiler implicitly links with -lc since on some
17610      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17611      # to ld, don't add -lc before -lgcc.
17612      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17613echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17614      $rm conftest*
17615      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17616
17617      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618  (eval $ac_compile) 2>&5
17619  ac_status=$?
17620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621  (exit $ac_status); } 2>conftest.err; then
17622        soname=conftest
17623        lib=conftest
17624        libobjs=conftest.$ac_objext
17625        deplibs=
17626        wl=$lt_prog_compiler_wl_GCJ
17627	pic_flag=$lt_prog_compiler_pic_GCJ
17628        compiler_flags=-v
17629        linker_flags=-v
17630        verstring=
17631        output_objdir=.
17632        libname=conftest
17633        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17634        allow_undefined_flag_GCJ=
17635        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17636  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17637  ac_status=$?
17638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639  (exit $ac_status); }
17640        then
17641	  archive_cmds_need_lc_GCJ=no
17642        else
17643	  archive_cmds_need_lc_GCJ=yes
17644        fi
17645        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17646      else
17647        cat conftest.err 1>&5
17648      fi
17649      $rm conftest*
17650      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17651echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17652      ;;
17653    esac
17654  fi
17655  ;;
17656esac
17657
17658{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17659echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17660library_names_spec=
17661libname_spec='lib$name'
17662soname_spec=
17663shrext_cmds=".so"
17664postinstall_cmds=
17665postuninstall_cmds=
17666finish_cmds=
17667finish_eval=
17668shlibpath_var=
17669shlibpath_overrides_runpath=unknown
17670version_type=none
17671dynamic_linker="$host_os ld.so"
17672sys_lib_dlsearch_path_spec="/lib /usr/lib"
17673if test "$GCC" = yes; then
17674  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17675  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17676    # if the path contains ";" then we assume it to be the separator
17677    # otherwise default to the standard path separator (i.e. ":") - it is
17678    # assumed that no part of a normal pathname contains ";" but that should
17679    # okay in the real world where ";" in dirpaths is itself problematic.
17680    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17681  else
17682    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17683  fi
17684else
17685  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17686fi
17687need_lib_prefix=unknown
17688hardcode_into_libs=no
17689
17690# when you set need_version to no, make sure it does not cause -set_version
17691# flags to be left without arguments
17692need_version=unknown
17693
17694case $host_os in
17695aix3*)
17696  version_type=linux
17697  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17698  shlibpath_var=LIBPATH
17699
17700  # AIX 3 has no versioning support, so we append a major version to the name.
17701  soname_spec='${libname}${release}${shared_ext}$major'
17702  ;;
17703
17704aix4* | aix5*)
17705  version_type=linux
17706  need_lib_prefix=no
17707  need_version=no
17708  hardcode_into_libs=yes
17709  if test "$host_cpu" = ia64; then
17710    # AIX 5 supports IA64
17711    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17712    shlibpath_var=LD_LIBRARY_PATH
17713  else
17714    # With GCC up to 2.95.x, collect2 would create an import file
17715    # for dependence libraries.  The import file would start with
17716    # the line `#! .'.  This would cause the generated library to
17717    # depend on `.', always an invalid library.  This was fixed in
17718    # development snapshots of GCC prior to 3.0.
17719    case $host_os in
17720      aix4 | aix4.[01] | aix4.[01].*)
17721      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17722	   echo ' yes '
17723	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17724	:
17725      else
17726	can_build_shared=no
17727      fi
17728      ;;
17729    esac
17730    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17731    # soname into executable. Probably we can add versioning support to
17732    # collect2, so additional links can be useful in future.
17733    if test "$aix_use_runtimelinking" = yes; then
17734      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17735      # instead of lib<name>.a to let people know that these are not
17736      # typical AIX shared libraries.
17737      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738    else
17739      # We preserve .a as extension for shared libraries through AIX4.2
17740      # and later when we are not doing run time linking.
17741      library_names_spec='${libname}${release}.a $libname.a'
17742      soname_spec='${libname}${release}${shared_ext}$major'
17743    fi
17744    shlibpath_var=LIBPATH
17745  fi
17746  ;;
17747
17748amigaos*)
17749  library_names_spec='$libname.ixlibrary $libname.a'
17750  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17751  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'
17752  ;;
17753
17754beos*)
17755  library_names_spec='${libname}${shared_ext}'
17756  dynamic_linker="$host_os ld.so"
17757  shlibpath_var=LIBRARY_PATH
17758  ;;
17759
17760bsdi[45]*)
17761  version_type=linux
17762  need_version=no
17763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764  soname_spec='${libname}${release}${shared_ext}$major'
17765  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17766  shlibpath_var=LD_LIBRARY_PATH
17767  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17768  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17769  # the default ld.so.conf also contains /usr/contrib/lib and
17770  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17771  # libtool to hard-code these into programs
17772  ;;
17773
17774cygwin* | mingw* | pw32*)
17775  version_type=windows
17776  shrext_cmds=".dll"
17777  need_version=no
17778  need_lib_prefix=no
17779
17780  case $GCC,$host_os in
17781  yes,cygwin* | yes,mingw* | yes,pw32*)
17782    library_names_spec='$libname.dll.a'
17783    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17784    postinstall_cmds='base_file=`basename \${file}`~
17785      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17786      dldir=$destdir/`dirname \$dlpath`~
17787      test -d \$dldir || mkdir -p \$dldir~
17788      $install_prog $dir/$dlname \$dldir/$dlname~
17789      chmod a+x \$dldir/$dlname'
17790    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17791      dlpath=$dir/\$dldll~
17792       $rm \$dlpath'
17793    shlibpath_overrides_runpath=yes
17794
17795    case $host_os in
17796    cygwin*)
17797      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17798      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17800      ;;
17801    mingw*)
17802      # MinGW DLLs use traditional 'lib' prefix
17803      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17804      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17805      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17806        # It is most probably a Windows format PATH printed by
17807        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17808        # path with ; separators, and with drive letters. We can handle the
17809        # drive letters (cygwin fileutils understands them), so leave them,
17810        # especially as we might pass files found there to a mingw objdump,
17811        # which wouldn't understand a cygwinified path. Ahh.
17812        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17813      else
17814        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17815      fi
17816      ;;
17817    pw32*)
17818      # pw32 DLLs use 'pw' prefix rather than 'lib'
17819      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17820      ;;
17821    esac
17822    ;;
17823
17824  *)
17825    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17826    ;;
17827  esac
17828  dynamic_linker='Win32 ld.exe'
17829  # FIXME: first we should search . and the directory the executable is in
17830  shlibpath_var=PATH
17831  ;;
17832
17833darwin* | rhapsody*)
17834  dynamic_linker="$host_os dyld"
17835  version_type=darwin
17836  need_lib_prefix=no
17837  need_version=no
17838  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17839  soname_spec='${libname}${release}${major}$shared_ext'
17840  shlibpath_overrides_runpath=yes
17841  shlibpath_var=DYLD_LIBRARY_PATH
17842  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17843  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17844  if test "$GCC" = yes; then
17845    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17846  else
17847    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17848  fi
17849  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17850  ;;
17851
17852dgux*)
17853  version_type=linux
17854  need_lib_prefix=no
17855  need_version=no
17856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17857  soname_spec='${libname}${release}${shared_ext}$major'
17858  shlibpath_var=LD_LIBRARY_PATH
17859  ;;
17860
17861freebsd1*)
17862  dynamic_linker=no
17863  ;;
17864
17865kfreebsd*-gnu)
17866  version_type=linux
17867  need_lib_prefix=no
17868  need_version=no
17869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17870  soname_spec='${libname}${release}${shared_ext}$major'
17871  shlibpath_var=LD_LIBRARY_PATH
17872  shlibpath_overrides_runpath=no
17873  hardcode_into_libs=yes
17874  dynamic_linker='GNU ld.so'
17875  ;;
17876
17877freebsd* | dragonfly*)
17878  # DragonFly does not have aout.  When/if they implement a new
17879  # versioning mechanism, adjust this.
17880  if test -x /usr/bin/objformat; then
17881    objformat=`/usr/bin/objformat`
17882  else
17883    case $host_os in
17884    freebsd[123]*) objformat=aout ;;
17885    *) objformat=elf ;;
17886    esac
17887  fi
17888  version_type=freebsd-$objformat
17889  case $version_type in
17890    freebsd-elf*)
17891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892      need_version=no
17893      need_lib_prefix=no
17894      ;;
17895    freebsd-*)
17896      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17897      need_version=yes
17898      ;;
17899  esac
17900  shlibpath_var=LD_LIBRARY_PATH
17901  case $host_os in
17902  freebsd2*)
17903    shlibpath_overrides_runpath=yes
17904    ;;
17905  freebsd3.[01]* | freebsdelf3.[01]*)
17906    shlibpath_overrides_runpath=yes
17907    hardcode_into_libs=yes
17908    ;;
17909  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17910  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17911    shlibpath_overrides_runpath=no
17912    hardcode_into_libs=yes
17913    ;;
17914  freebsd*) # from 4.6 on
17915    shlibpath_overrides_runpath=yes
17916    hardcode_into_libs=yes
17917    ;;
17918  esac
17919  ;;
17920
17921gnu*)
17922  version_type=linux
17923  need_lib_prefix=no
17924  need_version=no
17925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17926  soname_spec='${libname}${release}${shared_ext}$major'
17927  shlibpath_var=LD_LIBRARY_PATH
17928  hardcode_into_libs=yes
17929  ;;
17930
17931hpux9* | hpux10* | hpux11*)
17932  # Give a soname corresponding to the major version so that dld.sl refuses to
17933  # link against other versions.
17934  version_type=sunos
17935  need_lib_prefix=no
17936  need_version=no
17937  case $host_cpu in
17938  ia64*)
17939    shrext_cmds='.so'
17940    hardcode_into_libs=yes
17941    dynamic_linker="$host_os dld.so"
17942    shlibpath_var=LD_LIBRARY_PATH
17943    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945    soname_spec='${libname}${release}${shared_ext}$major'
17946    if test "X$HPUX_IA64_MODE" = X32; then
17947      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17948    else
17949      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17950    fi
17951    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17952    ;;
17953   hppa*64*)
17954     shrext_cmds='.sl'
17955     hardcode_into_libs=yes
17956     dynamic_linker="$host_os dld.sl"
17957     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17960     soname_spec='${libname}${release}${shared_ext}$major'
17961     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17963     ;;
17964   *)
17965    shrext_cmds='.sl'
17966    dynamic_linker="$host_os dld.sl"
17967    shlibpath_var=SHLIB_PATH
17968    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970    soname_spec='${libname}${release}${shared_ext}$major'
17971    ;;
17972  esac
17973  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17974  postinstall_cmds='chmod 555 $lib'
17975  ;;
17976
17977interix3*)
17978  version_type=linux
17979  need_lib_prefix=no
17980  need_version=no
17981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982  soname_spec='${libname}${release}${shared_ext}$major'
17983  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17984  shlibpath_var=LD_LIBRARY_PATH
17985  shlibpath_overrides_runpath=no
17986  hardcode_into_libs=yes
17987  ;;
17988
17989irix5* | irix6* | nonstopux*)
17990  case $host_os in
17991    nonstopux*) version_type=nonstopux ;;
17992    *)
17993	if test "$lt_cv_prog_gnu_ld" = yes; then
17994		version_type=linux
17995	else
17996		version_type=irix
17997	fi ;;
17998  esac
17999  need_lib_prefix=no
18000  need_version=no
18001  soname_spec='${libname}${release}${shared_ext}$major'
18002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18003  case $host_os in
18004  irix5* | nonstopux*)
18005    libsuff= shlibsuff=
18006    ;;
18007  *)
18008    case $LD in # libtool.m4 will add one of these switches to LD
18009    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18010      libsuff= shlibsuff= libmagic=32-bit;;
18011    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18012      libsuff=32 shlibsuff=N32 libmagic=N32;;
18013    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18014      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18015    *) libsuff= shlibsuff= libmagic=never-match;;
18016    esac
18017    ;;
18018  esac
18019  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18020  shlibpath_overrides_runpath=no
18021  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18022  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18023  hardcode_into_libs=yes
18024  ;;
18025
18026# No shared lib support for Linux oldld, aout, or coff.
18027linux*oldld* | linux*aout* | linux*coff*)
18028  dynamic_linker=no
18029  ;;
18030
18031# This must be Linux ELF.
18032linux*)
18033  version_type=linux
18034  need_lib_prefix=no
18035  need_version=no
18036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037  soname_spec='${libname}${release}${shared_ext}$major'
18038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18039  shlibpath_var=LD_LIBRARY_PATH
18040  shlibpath_overrides_runpath=no
18041  # This implies no fast_install, which is unacceptable.
18042  # Some rework will be needed to allow for fast_install
18043  # before this can be enabled.
18044  hardcode_into_libs=yes
18045
18046  # Append ld.so.conf contents to the search path
18047  if test -f /etc/ld.so.conf; then
18048    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18049    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18050  fi
18051
18052  # We used to test for /lib/ld.so.1 and disable shared libraries on
18053  # powerpc, because MkLinux only supported shared libraries with the
18054  # GNU dynamic linker.  Since this was broken with cross compilers,
18055  # most powerpc-linux boxes support dynamic linking these days and
18056  # people can always --disable-shared, the test was removed, and we
18057  # assume the GNU/Linux dynamic linker is in use.
18058  dynamic_linker='GNU/Linux ld.so'
18059  ;;
18060
18061knetbsd*-gnu)
18062  version_type=linux
18063  need_lib_prefix=no
18064  need_version=no
18065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18066  soname_spec='${libname}${release}${shared_ext}$major'
18067  shlibpath_var=LD_LIBRARY_PATH
18068  shlibpath_overrides_runpath=no
18069  hardcode_into_libs=yes
18070  dynamic_linker='GNU ld.so'
18071  ;;
18072
18073netbsd*)
18074  version_type=sunos
18075  need_lib_prefix=no
18076  need_version=no
18077  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18079    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18080    dynamic_linker='NetBSD (a.out) ld.so'
18081  else
18082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18083    soname_spec='${libname}${release}${shared_ext}$major'
18084    dynamic_linker='NetBSD ld.elf_so'
18085  fi
18086  shlibpath_var=LD_LIBRARY_PATH
18087  shlibpath_overrides_runpath=yes
18088  hardcode_into_libs=yes
18089  ;;
18090
18091newsos6)
18092  version_type=linux
18093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094  shlibpath_var=LD_LIBRARY_PATH
18095  shlibpath_overrides_runpath=yes
18096  ;;
18097
18098nto-qnx*)
18099  version_type=linux
18100  need_lib_prefix=no
18101  need_version=no
18102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18103  soname_spec='${libname}${release}${shared_ext}$major'
18104  shlibpath_var=LD_LIBRARY_PATH
18105  shlibpath_overrides_runpath=yes
18106  ;;
18107
18108openbsd*)
18109  version_type=sunos
18110  sys_lib_dlsearch_path_spec="/usr/lib"
18111  need_lib_prefix=no
18112  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18113  case $host_os in
18114    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18115    *)                         need_version=no  ;;
18116  esac
18117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18118  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18119  shlibpath_var=LD_LIBRARY_PATH
18120  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121    case $host_os in
18122      openbsd2.[89] | openbsd2.[89].*)
18123	shlibpath_overrides_runpath=no
18124	;;
18125      *)
18126	shlibpath_overrides_runpath=yes
18127	;;
18128      esac
18129  else
18130    shlibpath_overrides_runpath=yes
18131  fi
18132  ;;
18133
18134os2*)
18135  libname_spec='$name'
18136  shrext_cmds=".dll"
18137  need_lib_prefix=no
18138  library_names_spec='$libname${shared_ext} $libname.a'
18139  dynamic_linker='OS/2 ld.exe'
18140  shlibpath_var=LIBPATH
18141  ;;
18142
18143osf3* | osf4* | osf5*)
18144  version_type=osf
18145  need_lib_prefix=no
18146  need_version=no
18147  soname_spec='${libname}${release}${shared_ext}$major'
18148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149  shlibpath_var=LD_LIBRARY_PATH
18150  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18151  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18152  ;;
18153
18154solaris*)
18155  version_type=linux
18156  need_lib_prefix=no
18157  need_version=no
18158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159  soname_spec='${libname}${release}${shared_ext}$major'
18160  shlibpath_var=LD_LIBRARY_PATH
18161  shlibpath_overrides_runpath=yes
18162  hardcode_into_libs=yes
18163  # ldd complains unless libraries are executable
18164  postinstall_cmds='chmod +x $lib'
18165  ;;
18166
18167sunos4*)
18168  version_type=sunos
18169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18170  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18171  shlibpath_var=LD_LIBRARY_PATH
18172  shlibpath_overrides_runpath=yes
18173  if test "$with_gnu_ld" = yes; then
18174    need_lib_prefix=no
18175  fi
18176  need_version=yes
18177  ;;
18178
18179sysv4 | sysv4.3*)
18180  version_type=linux
18181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182  soname_spec='${libname}${release}${shared_ext}$major'
18183  shlibpath_var=LD_LIBRARY_PATH
18184  case $host_vendor in
18185    sni)
18186      shlibpath_overrides_runpath=no
18187      need_lib_prefix=no
18188      export_dynamic_flag_spec='${wl}-Blargedynsym'
18189      runpath_var=LD_RUN_PATH
18190      ;;
18191    siemens)
18192      need_lib_prefix=no
18193      ;;
18194    motorola)
18195      need_lib_prefix=no
18196      need_version=no
18197      shlibpath_overrides_runpath=no
18198      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18199      ;;
18200  esac
18201  ;;
18202
18203sysv4*MP*)
18204  if test -d /usr/nec ;then
18205    version_type=linux
18206    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18207    soname_spec='$libname${shared_ext}.$major'
18208    shlibpath_var=LD_LIBRARY_PATH
18209  fi
18210  ;;
18211
18212sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18213  version_type=freebsd-elf
18214  need_lib_prefix=no
18215  need_version=no
18216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18217  soname_spec='${libname}${release}${shared_ext}$major'
18218  shlibpath_var=LD_LIBRARY_PATH
18219  hardcode_into_libs=yes
18220  if test "$with_gnu_ld" = yes; then
18221    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18222    shlibpath_overrides_runpath=no
18223  else
18224    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18225    shlibpath_overrides_runpath=yes
18226    case $host_os in
18227      sco3.2v5*)
18228        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18229	;;
18230    esac
18231  fi
18232  sys_lib_dlsearch_path_spec='/usr/lib'
18233  ;;
18234
18235uts4*)
18236  version_type=linux
18237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238  soname_spec='${libname}${release}${shared_ext}$major'
18239  shlibpath_var=LD_LIBRARY_PATH
18240  ;;
18241
18242*)
18243  dynamic_linker=no
18244  ;;
18245esac
18246{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18247echo "${ECHO_T}$dynamic_linker" >&6; }
18248test "$dynamic_linker" = no && can_build_shared=no
18249
18250variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18251if test "$GCC" = yes; then
18252  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18253fi
18254
18255{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18256echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18257hardcode_action_GCJ=
18258if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18259   test -n "$runpath_var_GCJ" || \
18260   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18261
18262  # We can hardcode non-existant directories.
18263  if test "$hardcode_direct_GCJ" != no &&
18264     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18265     # have to relink, otherwise we might link with an installed library
18266     # when we should be linking with a yet-to-be-installed one
18267     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18268     test "$hardcode_minus_L_GCJ" != no; then
18269    # Linking always hardcodes the temporary library directory.
18270    hardcode_action_GCJ=relink
18271  else
18272    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18273    hardcode_action_GCJ=immediate
18274  fi
18275else
18276  # We cannot hardcode anything, or else we can only hardcode existing
18277  # directories.
18278  hardcode_action_GCJ=unsupported
18279fi
18280{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18281echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18282
18283if test "$hardcode_action_GCJ" = relink; then
18284  # Fast installation is not supported
18285  enable_fast_install=no
18286elif test "$shlibpath_overrides_runpath" = yes ||
18287     test "$enable_shared" = no; then
18288  # Fast installation is not necessary
18289  enable_fast_install=needless
18290fi
18291
18292
18293# The else clause should only fire when bootstrapping the
18294# libtool distribution, otherwise you forgot to ship ltmain.sh
18295# with your package, and you will get complaints that there are
18296# no rules to generate ltmain.sh.
18297if test -f "$ltmain"; then
18298  # See if we are running on zsh, and set the options which allow our commands through
18299  # without removal of \ escapes.
18300  if test -n "${ZSH_VERSION+set}" ; then
18301    setopt NO_GLOB_SUBST
18302  fi
18303  # Now quote all the things that may contain metacharacters while being
18304  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18305  # variables and quote the copies for generation of the libtool script.
18306  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18307    SED SHELL STRIP \
18308    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18309    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18310    deplibs_check_method reload_flag reload_cmds need_locks \
18311    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18312    lt_cv_sys_global_symbol_to_c_name_address \
18313    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18314    old_postinstall_cmds old_postuninstall_cmds \
18315    compiler_GCJ \
18316    CC_GCJ \
18317    LD_GCJ \
18318    lt_prog_compiler_wl_GCJ \
18319    lt_prog_compiler_pic_GCJ \
18320    lt_prog_compiler_static_GCJ \
18321    lt_prog_compiler_no_builtin_flag_GCJ \
18322    export_dynamic_flag_spec_GCJ \
18323    thread_safe_flag_spec_GCJ \
18324    whole_archive_flag_spec_GCJ \
18325    enable_shared_with_static_runtimes_GCJ \
18326    old_archive_cmds_GCJ \
18327    old_archive_from_new_cmds_GCJ \
18328    predep_objects_GCJ \
18329    postdep_objects_GCJ \
18330    predeps_GCJ \
18331    postdeps_GCJ \
18332    compiler_lib_search_path_GCJ \
18333    archive_cmds_GCJ \
18334    archive_expsym_cmds_GCJ \
18335    postinstall_cmds_GCJ \
18336    postuninstall_cmds_GCJ \
18337    old_archive_from_expsyms_cmds_GCJ \
18338    allow_undefined_flag_GCJ \
18339    no_undefined_flag_GCJ \
18340    export_symbols_cmds_GCJ \
18341    hardcode_libdir_flag_spec_GCJ \
18342    hardcode_libdir_flag_spec_ld_GCJ \
18343    hardcode_libdir_separator_GCJ \
18344    hardcode_automatic_GCJ \
18345    module_cmds_GCJ \
18346    module_expsym_cmds_GCJ \
18347    lt_cv_prog_compiler_c_o_GCJ \
18348    exclude_expsyms_GCJ \
18349    include_expsyms_GCJ; do
18350
18351    case $var in
18352    old_archive_cmds_GCJ | \
18353    old_archive_from_new_cmds_GCJ | \
18354    archive_cmds_GCJ | \
18355    archive_expsym_cmds_GCJ | \
18356    module_cmds_GCJ | \
18357    module_expsym_cmds_GCJ | \
18358    old_archive_from_expsyms_cmds_GCJ | \
18359    export_symbols_cmds_GCJ | \
18360    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18361    postinstall_cmds | postuninstall_cmds | \
18362    old_postinstall_cmds | old_postuninstall_cmds | \
18363    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18364      # Double-quote double-evaled strings.
18365      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18366      ;;
18367    *)
18368      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18369      ;;
18370    esac
18371  done
18372
18373  case $lt_echo in
18374  *'\$0 --fallback-echo"')
18375    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18376    ;;
18377  esac
18378
18379cfgfile="$ofile"
18380
18381  cat <<__EOF__ >> "$cfgfile"
18382# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18383
18384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18385
18386# Shell to use when invoking shell scripts.
18387SHELL=$lt_SHELL
18388
18389# Whether or not to build shared libraries.
18390build_libtool_libs=$enable_shared
18391
18392# Whether or not to build static libraries.
18393build_old_libs=$enable_static
18394
18395# Whether or not to add -lc for building shared libraries.
18396build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18397
18398# Whether or not to disallow shared libs when runtime libs are static
18399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18400
18401# Whether or not to optimize for fast installation.
18402fast_install=$enable_fast_install
18403
18404# The host system.
18405host_alias=$host_alias
18406host=$host
18407host_os=$host_os
18408
18409# The build system.
18410build_alias=$build_alias
18411build=$build
18412build_os=$build_os
18413
18414# An echo program that does not interpret backslashes.
18415echo=$lt_echo
18416
18417# The archiver.
18418AR=$lt_AR
18419AR_FLAGS=$lt_AR_FLAGS
18420
18421# A C compiler.
18422LTCC=$lt_LTCC
18423
18424# LTCC compiler flags.
18425LTCFLAGS=$lt_LTCFLAGS
18426
18427# A language-specific compiler.
18428CC=$lt_compiler_GCJ
18429
18430# Is the compiler the GNU C compiler?
18431with_gcc=$GCC_GCJ
18432
18433# An ERE matcher.
18434EGREP=$lt_EGREP
18435
18436# The linker used to build libraries.
18437LD=$lt_LD_GCJ
18438
18439# Whether we need hard or soft links.
18440LN_S=$lt_LN_S
18441
18442# A BSD-compatible nm program.
18443NM=$lt_NM
18444
18445# A symbol stripping program
18446STRIP=$lt_STRIP
18447
18448# Used to examine libraries when file_magic_cmd begins "file"
18449MAGIC_CMD=$MAGIC_CMD
18450
18451# Used on cygwin: DLL creation program.
18452DLLTOOL="$DLLTOOL"
18453
18454# Used on cygwin: object dumper.
18455OBJDUMP="$OBJDUMP"
18456
18457# Used on cygwin: assembler.
18458AS="$AS"
18459
18460# The name of the directory that contains temporary libtool files.
18461objdir=$objdir
18462
18463# How to create reloadable object files.
18464reload_flag=$lt_reload_flag
18465reload_cmds=$lt_reload_cmds
18466
18467# How to pass a linker flag through the compiler.
18468wl=$lt_lt_prog_compiler_wl_GCJ
18469
18470# Object file suffix (normally "o").
18471objext="$ac_objext"
18472
18473# Old archive suffix (normally "a").
18474libext="$libext"
18475
18476# Shared library suffix (normally ".so").
18477shrext_cmds='$shrext_cmds'
18478
18479# Executable file suffix (normally "").
18480exeext="$exeext"
18481
18482# Additional compiler flags for building library objects.
18483pic_flag=$lt_lt_prog_compiler_pic_GCJ
18484pic_mode=$pic_mode
18485
18486# What is the maximum length of a command?
18487max_cmd_len=$lt_cv_sys_max_cmd_len
18488
18489# Does compiler simultaneously support -c and -o options?
18490compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18491
18492# Must we lock files when doing compilation?
18493need_locks=$lt_need_locks
18494
18495# Do we need the lib prefix for modules?
18496need_lib_prefix=$need_lib_prefix
18497
18498# Do we need a version for libraries?
18499need_version=$need_version
18500
18501# Whether dlopen is supported.
18502dlopen_support=$enable_dlopen
18503
18504# Whether dlopen of programs is supported.
18505dlopen_self=$enable_dlopen_self
18506
18507# Whether dlopen of statically linked programs is supported.
18508dlopen_self_static=$enable_dlopen_self_static
18509
18510# Compiler flag to prevent dynamic linking.
18511link_static_flag=$lt_lt_prog_compiler_static_GCJ
18512
18513# Compiler flag to turn off builtin functions.
18514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18515
18516# Compiler flag to allow reflexive dlopens.
18517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18518
18519# Compiler flag to generate shared objects directly from archives.
18520whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18521
18522# Compiler flag to generate thread-safe objects.
18523thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18524
18525# Library versioning type.
18526version_type=$version_type
18527
18528# Format of library name prefix.
18529libname_spec=$lt_libname_spec
18530
18531# List of archive names.  First name is the real one, the rest are links.
18532# The last name is the one that the linker finds with -lNAME.
18533library_names_spec=$lt_library_names_spec
18534
18535# The coded name of the library, if different from the real name.
18536soname_spec=$lt_soname_spec
18537
18538# Commands used to build and install an old-style archive.
18539RANLIB=$lt_RANLIB
18540old_archive_cmds=$lt_old_archive_cmds_GCJ
18541old_postinstall_cmds=$lt_old_postinstall_cmds
18542old_postuninstall_cmds=$lt_old_postuninstall_cmds
18543
18544# Create an old-style archive from a shared archive.
18545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18546
18547# Create a temporary old-style archive to link instead of a shared archive.
18548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18549
18550# Commands used to build and install a shared archive.
18551archive_cmds=$lt_archive_cmds_GCJ
18552archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18553postinstall_cmds=$lt_postinstall_cmds
18554postuninstall_cmds=$lt_postuninstall_cmds
18555
18556# Commands used to build a loadable module (assumed same as above if empty)
18557module_cmds=$lt_module_cmds_GCJ
18558module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18559
18560# Commands to strip libraries.
18561old_striplib=$lt_old_striplib
18562striplib=$lt_striplib
18563
18564# Dependencies to place before the objects being linked to create a
18565# shared library.
18566predep_objects=$lt_predep_objects_GCJ
18567
18568# Dependencies to place after the objects being linked to create a
18569# shared library.
18570postdep_objects=$lt_postdep_objects_GCJ
18571
18572# Dependencies to place before the objects being linked to create a
18573# shared library.
18574predeps=$lt_predeps_GCJ
18575
18576# Dependencies to place after the objects being linked to create a
18577# shared library.
18578postdeps=$lt_postdeps_GCJ
18579
18580# The library search path used internally by the compiler when linking
18581# a shared library.
18582compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18583
18584# Method to check whether dependent libraries are shared objects.
18585deplibs_check_method=$lt_deplibs_check_method
18586
18587# Command to use when deplibs_check_method == file_magic.
18588file_magic_cmd=$lt_file_magic_cmd
18589
18590# Flag that allows shared libraries with undefined symbols to be built.
18591allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18592
18593# Flag that forces no undefined symbols.
18594no_undefined_flag=$lt_no_undefined_flag_GCJ
18595
18596# Commands used to finish a libtool library installation in a directory.
18597finish_cmds=$lt_finish_cmds
18598
18599# Same as above, but a single script fragment to be evaled but not shown.
18600finish_eval=$lt_finish_eval
18601
18602# Take the output of nm and produce a listing of raw symbols and C names.
18603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18604
18605# Transform the output of nm in a proper C declaration
18606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18607
18608# Transform the output of nm in a C name address pair
18609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18610
18611# This is the shared library runtime path variable.
18612runpath_var=$runpath_var
18613
18614# This is the shared library path variable.
18615shlibpath_var=$shlibpath_var
18616
18617# Is shlibpath searched before the hard-coded library search path?
18618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18619
18620# How to hardcode a shared library path into an executable.
18621hardcode_action=$hardcode_action_GCJ
18622
18623# Whether we should hardcode library paths into libraries.
18624hardcode_into_libs=$hardcode_into_libs
18625
18626# Flag to hardcode \$libdir into a binary during linking.
18627# This must work even if \$libdir does not exist.
18628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18629
18630# If ld is used when linking, flag to hardcode \$libdir into
18631# a binary during linking. This must work even if \$libdir does
18632# not exist.
18633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18634
18635# Whether we need a single -rpath flag with a separated argument.
18636hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18637
18638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18639# resulting binary.
18640hardcode_direct=$hardcode_direct_GCJ
18641
18642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18643# resulting binary.
18644hardcode_minus_L=$hardcode_minus_L_GCJ
18645
18646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18647# the resulting binary.
18648hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18649
18650# Set to yes if building a shared library automatically hardcodes DIR into the library
18651# and all subsequent libraries and executables linked against it.
18652hardcode_automatic=$hardcode_automatic_GCJ
18653
18654# Variables whose values should be saved in libtool wrapper scripts and
18655# restored at relink time.
18656variables_saved_for_relink="$variables_saved_for_relink"
18657
18658# Whether libtool must link a program against all its dependency libraries.
18659link_all_deplibs=$link_all_deplibs_GCJ
18660
18661# Compile-time system search path for libraries
18662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18663
18664# Run-time system search path for libraries
18665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18666
18667# Fix the shell variable \$srcfile for the compiler.
18668fix_srcfile_path="$fix_srcfile_path_GCJ"
18669
18670# Set to yes if exported symbols are required.
18671always_export_symbols=$always_export_symbols_GCJ
18672
18673# The commands to list exported symbols.
18674export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18675
18676# The commands to extract the exported symbol list from a shared archive.
18677extract_expsyms_cmds=$lt_extract_expsyms_cmds
18678
18679# Symbols that should not be listed in the preloaded symbols.
18680exclude_expsyms=$lt_exclude_expsyms_GCJ
18681
18682# Symbols that must always be exported.
18683include_expsyms=$lt_include_expsyms_GCJ
18684
18685# ### END LIBTOOL TAG CONFIG: $tagname
18686
18687__EOF__
18688
18689
18690else
18691  # If there is no Makefile yet, we rely on a make rule to execute
18692  # `config.status --recheck' to rerun these tests and create the
18693  # libtool script then.
18694  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18695  if test -f "$ltmain_in"; then
18696    test -f Makefile && make "$ltmain"
18697  fi
18698fi
18699
18700
18701ac_ext=c
18702ac_cpp='$CPP $CPPFLAGS'
18703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707CC="$lt_save_CC"
18708
18709	else
18710	  tagname=""
18711	fi
18712	;;
18713
18714      RC)
18715
18716
18717# Source file extension for RC test sources.
18718ac_ext=rc
18719
18720# Object file extension for compiled RC test sources.
18721objext=o
18722objext_RC=$objext
18723
18724# Code to be used in simple compile tests
18725lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18726
18727# Code to be used in simple link tests
18728lt_simple_link_test_code="$lt_simple_compile_test_code"
18729
18730# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18731
18732# If no C compiler was specified, use CC.
18733LTCC=${LTCC-"$CC"}
18734
18735# If no C compiler flags were specified, use CFLAGS.
18736LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18737
18738# Allow CC to be a program name with arguments.
18739compiler=$CC
18740
18741
18742# save warnings/boilerplate of simple test code
18743ac_outfile=conftest.$ac_objext
18744printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18746_lt_compiler_boilerplate=`cat conftest.err`
18747$rm conftest*
18748
18749ac_outfile=conftest.$ac_objext
18750printf "$lt_simple_link_test_code" >conftest.$ac_ext
18751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18752_lt_linker_boilerplate=`cat conftest.err`
18753$rm conftest*
18754
18755
18756# Allow CC to be a program name with arguments.
18757lt_save_CC="$CC"
18758CC=${RC-"windres"}
18759compiler=$CC
18760compiler_RC=$CC
18761for cc_temp in $compiler""; do
18762  case $cc_temp in
18763    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18764    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18765    \-*) ;;
18766    *) break;;
18767  esac
18768done
18769cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18770
18771lt_cv_prog_compiler_c_o_RC=yes
18772
18773# The else clause should only fire when bootstrapping the
18774# libtool distribution, otherwise you forgot to ship ltmain.sh
18775# with your package, and you will get complaints that there are
18776# no rules to generate ltmain.sh.
18777if test -f "$ltmain"; then
18778  # See if we are running on zsh, and set the options which allow our commands through
18779  # without removal of \ escapes.
18780  if test -n "${ZSH_VERSION+set}" ; then
18781    setopt NO_GLOB_SUBST
18782  fi
18783  # Now quote all the things that may contain metacharacters while being
18784  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18785  # variables and quote the copies for generation of the libtool script.
18786  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18787    SED SHELL STRIP \
18788    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18789    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18790    deplibs_check_method reload_flag reload_cmds need_locks \
18791    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18792    lt_cv_sys_global_symbol_to_c_name_address \
18793    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18794    old_postinstall_cmds old_postuninstall_cmds \
18795    compiler_RC \
18796    CC_RC \
18797    LD_RC \
18798    lt_prog_compiler_wl_RC \
18799    lt_prog_compiler_pic_RC \
18800    lt_prog_compiler_static_RC \
18801    lt_prog_compiler_no_builtin_flag_RC \
18802    export_dynamic_flag_spec_RC \
18803    thread_safe_flag_spec_RC \
18804    whole_archive_flag_spec_RC \
18805    enable_shared_with_static_runtimes_RC \
18806    old_archive_cmds_RC \
18807    old_archive_from_new_cmds_RC \
18808    predep_objects_RC \
18809    postdep_objects_RC \
18810    predeps_RC \
18811    postdeps_RC \
18812    compiler_lib_search_path_RC \
18813    archive_cmds_RC \
18814    archive_expsym_cmds_RC \
18815    postinstall_cmds_RC \
18816    postuninstall_cmds_RC \
18817    old_archive_from_expsyms_cmds_RC \
18818    allow_undefined_flag_RC \
18819    no_undefined_flag_RC \
18820    export_symbols_cmds_RC \
18821    hardcode_libdir_flag_spec_RC \
18822    hardcode_libdir_flag_spec_ld_RC \
18823    hardcode_libdir_separator_RC \
18824    hardcode_automatic_RC \
18825    module_cmds_RC \
18826    module_expsym_cmds_RC \
18827    lt_cv_prog_compiler_c_o_RC \
18828    exclude_expsyms_RC \
18829    include_expsyms_RC; do
18830
18831    case $var in
18832    old_archive_cmds_RC | \
18833    old_archive_from_new_cmds_RC | \
18834    archive_cmds_RC | \
18835    archive_expsym_cmds_RC | \
18836    module_cmds_RC | \
18837    module_expsym_cmds_RC | \
18838    old_archive_from_expsyms_cmds_RC | \
18839    export_symbols_cmds_RC | \
18840    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18841    postinstall_cmds | postuninstall_cmds | \
18842    old_postinstall_cmds | old_postuninstall_cmds | \
18843    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18844      # Double-quote double-evaled strings.
18845      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18846      ;;
18847    *)
18848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18849      ;;
18850    esac
18851  done
18852
18853  case $lt_echo in
18854  *'\$0 --fallback-echo"')
18855    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18856    ;;
18857  esac
18858
18859cfgfile="$ofile"
18860
18861  cat <<__EOF__ >> "$cfgfile"
18862# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18863
18864# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18865
18866# Shell to use when invoking shell scripts.
18867SHELL=$lt_SHELL
18868
18869# Whether or not to build shared libraries.
18870build_libtool_libs=$enable_shared
18871
18872# Whether or not to build static libraries.
18873build_old_libs=$enable_static
18874
18875# Whether or not to add -lc for building shared libraries.
18876build_libtool_need_lc=$archive_cmds_need_lc_RC
18877
18878# Whether or not to disallow shared libs when runtime libs are static
18879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18880
18881# Whether or not to optimize for fast installation.
18882fast_install=$enable_fast_install
18883
18884# The host system.
18885host_alias=$host_alias
18886host=$host
18887host_os=$host_os
18888
18889# The build system.
18890build_alias=$build_alias
18891build=$build
18892build_os=$build_os
18893
18894# An echo program that does not interpret backslashes.
18895echo=$lt_echo
18896
18897# The archiver.
18898AR=$lt_AR
18899AR_FLAGS=$lt_AR_FLAGS
18900
18901# A C compiler.
18902LTCC=$lt_LTCC
18903
18904# LTCC compiler flags.
18905LTCFLAGS=$lt_LTCFLAGS
18906
18907# A language-specific compiler.
18908CC=$lt_compiler_RC
18909
18910# Is the compiler the GNU C compiler?
18911with_gcc=$GCC_RC
18912
18913# An ERE matcher.
18914EGREP=$lt_EGREP
18915
18916# The linker used to build libraries.
18917LD=$lt_LD_RC
18918
18919# Whether we need hard or soft links.
18920LN_S=$lt_LN_S
18921
18922# A BSD-compatible nm program.
18923NM=$lt_NM
18924
18925# A symbol stripping program
18926STRIP=$lt_STRIP
18927
18928# Used to examine libraries when file_magic_cmd begins "file"
18929MAGIC_CMD=$MAGIC_CMD
18930
18931# Used on cygwin: DLL creation program.
18932DLLTOOL="$DLLTOOL"
18933
18934# Used on cygwin: object dumper.
18935OBJDUMP="$OBJDUMP"
18936
18937# Used on cygwin: assembler.
18938AS="$AS"
18939
18940# The name of the directory that contains temporary libtool files.
18941objdir=$objdir
18942
18943# How to create reloadable object files.
18944reload_flag=$lt_reload_flag
18945reload_cmds=$lt_reload_cmds
18946
18947# How to pass a linker flag through the compiler.
18948wl=$lt_lt_prog_compiler_wl_RC
18949
18950# Object file suffix (normally "o").
18951objext="$ac_objext"
18952
18953# Old archive suffix (normally "a").
18954libext="$libext"
18955
18956# Shared library suffix (normally ".so").
18957shrext_cmds='$shrext_cmds'
18958
18959# Executable file suffix (normally "").
18960exeext="$exeext"
18961
18962# Additional compiler flags for building library objects.
18963pic_flag=$lt_lt_prog_compiler_pic_RC
18964pic_mode=$pic_mode
18965
18966# What is the maximum length of a command?
18967max_cmd_len=$lt_cv_sys_max_cmd_len
18968
18969# Does compiler simultaneously support -c and -o options?
18970compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18971
18972# Must we lock files when doing compilation?
18973need_locks=$lt_need_locks
18974
18975# Do we need the lib prefix for modules?
18976need_lib_prefix=$need_lib_prefix
18977
18978# Do we need a version for libraries?
18979need_version=$need_version
18980
18981# Whether dlopen is supported.
18982dlopen_support=$enable_dlopen
18983
18984# Whether dlopen of programs is supported.
18985dlopen_self=$enable_dlopen_self
18986
18987# Whether dlopen of statically linked programs is supported.
18988dlopen_self_static=$enable_dlopen_self_static
18989
18990# Compiler flag to prevent dynamic linking.
18991link_static_flag=$lt_lt_prog_compiler_static_RC
18992
18993# Compiler flag to turn off builtin functions.
18994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18995
18996# Compiler flag to allow reflexive dlopens.
18997export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18998
18999# Compiler flag to generate shared objects directly from archives.
19000whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19001
19002# Compiler flag to generate thread-safe objects.
19003thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19004
19005# Library versioning type.
19006version_type=$version_type
19007
19008# Format of library name prefix.
19009libname_spec=$lt_libname_spec
19010
19011# List of archive names.  First name is the real one, the rest are links.
19012# The last name is the one that the linker finds with -lNAME.
19013library_names_spec=$lt_library_names_spec
19014
19015# The coded name of the library, if different from the real name.
19016soname_spec=$lt_soname_spec
19017
19018# Commands used to build and install an old-style archive.
19019RANLIB=$lt_RANLIB
19020old_archive_cmds=$lt_old_archive_cmds_RC
19021old_postinstall_cmds=$lt_old_postinstall_cmds
19022old_postuninstall_cmds=$lt_old_postuninstall_cmds
19023
19024# Create an old-style archive from a shared archive.
19025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19026
19027# Create a temporary old-style archive to link instead of a shared archive.
19028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19029
19030# Commands used to build and install a shared archive.
19031archive_cmds=$lt_archive_cmds_RC
19032archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19033postinstall_cmds=$lt_postinstall_cmds
19034postuninstall_cmds=$lt_postuninstall_cmds
19035
19036# Commands used to build a loadable module (assumed same as above if empty)
19037module_cmds=$lt_module_cmds_RC
19038module_expsym_cmds=$lt_module_expsym_cmds_RC
19039
19040# Commands to strip libraries.
19041old_striplib=$lt_old_striplib
19042striplib=$lt_striplib
19043
19044# Dependencies to place before the objects being linked to create a
19045# shared library.
19046predep_objects=$lt_predep_objects_RC
19047
19048# Dependencies to place after the objects being linked to create a
19049# shared library.
19050postdep_objects=$lt_postdep_objects_RC
19051
19052# Dependencies to place before the objects being linked to create a
19053# shared library.
19054predeps=$lt_predeps_RC
19055
19056# Dependencies to place after the objects being linked to create a
19057# shared library.
19058postdeps=$lt_postdeps_RC
19059
19060# The library search path used internally by the compiler when linking
19061# a shared library.
19062compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19063
19064# Method to check whether dependent libraries are shared objects.
19065deplibs_check_method=$lt_deplibs_check_method
19066
19067# Command to use when deplibs_check_method == file_magic.
19068file_magic_cmd=$lt_file_magic_cmd
19069
19070# Flag that allows shared libraries with undefined symbols to be built.
19071allow_undefined_flag=$lt_allow_undefined_flag_RC
19072
19073# Flag that forces no undefined symbols.
19074no_undefined_flag=$lt_no_undefined_flag_RC
19075
19076# Commands used to finish a libtool library installation in a directory.
19077finish_cmds=$lt_finish_cmds
19078
19079# Same as above, but a single script fragment to be evaled but not shown.
19080finish_eval=$lt_finish_eval
19081
19082# Take the output of nm and produce a listing of raw symbols and C names.
19083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19084
19085# Transform the output of nm in a proper C declaration
19086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19087
19088# Transform the output of nm in a C name address pair
19089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19090
19091# This is the shared library runtime path variable.
19092runpath_var=$runpath_var
19093
19094# This is the shared library path variable.
19095shlibpath_var=$shlibpath_var
19096
19097# Is shlibpath searched before the hard-coded library search path?
19098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19099
19100# How to hardcode a shared library path into an executable.
19101hardcode_action=$hardcode_action_RC
19102
19103# Whether we should hardcode library paths into libraries.
19104hardcode_into_libs=$hardcode_into_libs
19105
19106# Flag to hardcode \$libdir into a binary during linking.
19107# This must work even if \$libdir does not exist.
19108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19109
19110# If ld is used when linking, flag to hardcode \$libdir into
19111# a binary during linking. This must work even if \$libdir does
19112# not exist.
19113hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19114
19115# Whether we need a single -rpath flag with a separated argument.
19116hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19117
19118# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19119# resulting binary.
19120hardcode_direct=$hardcode_direct_RC
19121
19122# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19123# resulting binary.
19124hardcode_minus_L=$hardcode_minus_L_RC
19125
19126# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19127# the resulting binary.
19128hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19129
19130# Set to yes if building a shared library automatically hardcodes DIR into the library
19131# and all subsequent libraries and executables linked against it.
19132hardcode_automatic=$hardcode_automatic_RC
19133
19134# Variables whose values should be saved in libtool wrapper scripts and
19135# restored at relink time.
19136variables_saved_for_relink="$variables_saved_for_relink"
19137
19138# Whether libtool must link a program against all its dependency libraries.
19139link_all_deplibs=$link_all_deplibs_RC
19140
19141# Compile-time system search path for libraries
19142sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19143
19144# Run-time system search path for libraries
19145sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19146
19147# Fix the shell variable \$srcfile for the compiler.
19148fix_srcfile_path="$fix_srcfile_path_RC"
19149
19150# Set to yes if exported symbols are required.
19151always_export_symbols=$always_export_symbols_RC
19152
19153# The commands to list exported symbols.
19154export_symbols_cmds=$lt_export_symbols_cmds_RC
19155
19156# The commands to extract the exported symbol list from a shared archive.
19157extract_expsyms_cmds=$lt_extract_expsyms_cmds
19158
19159# Symbols that should not be listed in the preloaded symbols.
19160exclude_expsyms=$lt_exclude_expsyms_RC
19161
19162# Symbols that must always be exported.
19163include_expsyms=$lt_include_expsyms_RC
19164
19165# ### END LIBTOOL TAG CONFIG: $tagname
19166
19167__EOF__
19168
19169
19170else
19171  # If there is no Makefile yet, we rely on a make rule to execute
19172  # `config.status --recheck' to rerun these tests and create the
19173  # libtool script then.
19174  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19175  if test -f "$ltmain_in"; then
19176    test -f Makefile && make "$ltmain"
19177  fi
19178fi
19179
19180
19181ac_ext=c
19182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187CC="$lt_save_CC"
19188
19189	;;
19190
19191      *)
19192	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19193echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19194   { (exit 1); exit 1; }; }
19195	;;
19196      esac
19197
19198      # Append the new tag name to the list of available tags.
19199      if test -n "$tagname" ; then
19200      available_tags="$available_tags $tagname"
19201    fi
19202    fi
19203  done
19204  IFS="$lt_save_ifs"
19205
19206  # Now substitute the updated list of available tags.
19207  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19208    mv "${ofile}T" "$ofile"
19209    chmod +x "$ofile"
19210  else
19211    rm -f "${ofile}T"
19212    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19213echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19214   { (exit 1); exit 1; }; }
19215  fi
19216fi
19217
19218
19219
19220# This can be used to rebuild libtool when needed
19221LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19222
19223# Always use our own libtool.
19224LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19225
19226# Prevent multiple expansion
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247ac_ext=c
19248ac_cpp='$CPP $CPPFLAGS'
19249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252if test -n "$ac_tool_prefix"; then
19253  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19254set dummy ${ac_tool_prefix}gcc; ac_word=$2
19255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19257if test "${ac_cv_prog_CC+set}" = set; then
19258  echo $ECHO_N "(cached) $ECHO_C" >&6
19259else
19260  if test -n "$CC"; then
19261  ac_cv_prog_CC="$CC" # Let the user override the test.
19262else
19263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264for as_dir in $PATH
19265do
19266  IFS=$as_save_IFS
19267  test -z "$as_dir" && as_dir=.
19268  for ac_exec_ext in '' $ac_executable_extensions; do
19269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19272    break 2
19273  fi
19274done
19275done
19276IFS=$as_save_IFS
19277
19278fi
19279fi
19280CC=$ac_cv_prog_CC
19281if test -n "$CC"; then
19282  { echo "$as_me:$LINENO: result: $CC" >&5
19283echo "${ECHO_T}$CC" >&6; }
19284else
19285  { echo "$as_me:$LINENO: result: no" >&5
19286echo "${ECHO_T}no" >&6; }
19287fi
19288
19289
19290fi
19291if test -z "$ac_cv_prog_CC"; then
19292  ac_ct_CC=$CC
19293  # Extract the first word of "gcc", so it can be a program name with args.
19294set dummy gcc; ac_word=$2
19295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19298  echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300  if test -n "$ac_ct_CC"; then
19301  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19302else
19303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304for as_dir in $PATH
19305do
19306  IFS=$as_save_IFS
19307  test -z "$as_dir" && as_dir=.
19308  for ac_exec_ext in '' $ac_executable_extensions; do
19309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310    ac_cv_prog_ac_ct_CC="gcc"
19311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19312    break 2
19313  fi
19314done
19315done
19316IFS=$as_save_IFS
19317
19318fi
19319fi
19320ac_ct_CC=$ac_cv_prog_ac_ct_CC
19321if test -n "$ac_ct_CC"; then
19322  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19323echo "${ECHO_T}$ac_ct_CC" >&6; }
19324else
19325  { echo "$as_me:$LINENO: result: no" >&5
19326echo "${ECHO_T}no" >&6; }
19327fi
19328
19329  if test "x$ac_ct_CC" = x; then
19330    CC=""
19331  else
19332    case $cross_compiling:$ac_tool_warned in
19333yes:)
19334{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19335whose name does not start with the host triplet.  If you think this
19336configuration is useful to you, please write to autoconf@gnu.org." >&5
19337echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19338whose name does not start with the host triplet.  If you think this
19339configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19340ac_tool_warned=yes ;;
19341esac
19342    CC=$ac_ct_CC
19343  fi
19344else
19345  CC="$ac_cv_prog_CC"
19346fi
19347
19348if test -z "$CC"; then
19349          if test -n "$ac_tool_prefix"; then
19350    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19351set dummy ${ac_tool_prefix}cc; ac_word=$2
19352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19354if test "${ac_cv_prog_CC+set}" = set; then
19355  echo $ECHO_N "(cached) $ECHO_C" >&6
19356else
19357  if test -n "$CC"; then
19358  ac_cv_prog_CC="$CC" # Let the user override the test.
19359else
19360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19361for as_dir in $PATH
19362do
19363  IFS=$as_save_IFS
19364  test -z "$as_dir" && as_dir=.
19365  for ac_exec_ext in '' $ac_executable_extensions; do
19366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19367    ac_cv_prog_CC="${ac_tool_prefix}cc"
19368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369    break 2
19370  fi
19371done
19372done
19373IFS=$as_save_IFS
19374
19375fi
19376fi
19377CC=$ac_cv_prog_CC
19378if test -n "$CC"; then
19379  { echo "$as_me:$LINENO: result: $CC" >&5
19380echo "${ECHO_T}$CC" >&6; }
19381else
19382  { echo "$as_me:$LINENO: result: no" >&5
19383echo "${ECHO_T}no" >&6; }
19384fi
19385
19386
19387  fi
19388fi
19389if test -z "$CC"; then
19390  # Extract the first word of "cc", so it can be a program name with args.
19391set dummy cc; ac_word=$2
19392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19394if test "${ac_cv_prog_CC+set}" = set; then
19395  echo $ECHO_N "(cached) $ECHO_C" >&6
19396else
19397  if test -n "$CC"; then
19398  ac_cv_prog_CC="$CC" # Let the user override the test.
19399else
19400  ac_prog_rejected=no
19401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19402for as_dir in $PATH
19403do
19404  IFS=$as_save_IFS
19405  test -z "$as_dir" && as_dir=.
19406  for ac_exec_ext in '' $ac_executable_extensions; do
19407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19408    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19409       ac_prog_rejected=yes
19410       continue
19411     fi
19412    ac_cv_prog_CC="cc"
19413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19414    break 2
19415  fi
19416done
19417done
19418IFS=$as_save_IFS
19419
19420if test $ac_prog_rejected = yes; then
19421  # We found a bogon in the path, so make sure we never use it.
19422  set dummy $ac_cv_prog_CC
19423  shift
19424  if test $# != 0; then
19425    # We chose a different compiler from the bogus one.
19426    # However, it has the same basename, so the bogon will be chosen
19427    # first if we set CC to just the basename; use the full file name.
19428    shift
19429    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19430  fi
19431fi
19432fi
19433fi
19434CC=$ac_cv_prog_CC
19435if test -n "$CC"; then
19436  { echo "$as_me:$LINENO: result: $CC" >&5
19437echo "${ECHO_T}$CC" >&6; }
19438else
19439  { echo "$as_me:$LINENO: result: no" >&5
19440echo "${ECHO_T}no" >&6; }
19441fi
19442
19443
19444fi
19445if test -z "$CC"; then
19446  if test -n "$ac_tool_prefix"; then
19447  for ac_prog in cl.exe
19448  do
19449    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19450set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19453if test "${ac_cv_prog_CC+set}" = set; then
19454  echo $ECHO_N "(cached) $ECHO_C" >&6
19455else
19456  if test -n "$CC"; then
19457  ac_cv_prog_CC="$CC" # Let the user override the test.
19458else
19459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460for as_dir in $PATH
19461do
19462  IFS=$as_save_IFS
19463  test -z "$as_dir" && as_dir=.
19464  for ac_exec_ext in '' $ac_executable_extensions; do
19465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19466    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19468    break 2
19469  fi
19470done
19471done
19472IFS=$as_save_IFS
19473
19474fi
19475fi
19476CC=$ac_cv_prog_CC
19477if test -n "$CC"; then
19478  { echo "$as_me:$LINENO: result: $CC" >&5
19479echo "${ECHO_T}$CC" >&6; }
19480else
19481  { echo "$as_me:$LINENO: result: no" >&5
19482echo "${ECHO_T}no" >&6; }
19483fi
19484
19485
19486    test -n "$CC" && break
19487  done
19488fi
19489if test -z "$CC"; then
19490  ac_ct_CC=$CC
19491  for ac_prog in cl.exe
19492do
19493  # Extract the first word of "$ac_prog", so it can be a program name with args.
19494set dummy $ac_prog; ac_word=$2
19495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19498  echo $ECHO_N "(cached) $ECHO_C" >&6
19499else
19500  if test -n "$ac_ct_CC"; then
19501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19502else
19503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19504for as_dir in $PATH
19505do
19506  IFS=$as_save_IFS
19507  test -z "$as_dir" && as_dir=.
19508  for ac_exec_ext in '' $ac_executable_extensions; do
19509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19510    ac_cv_prog_ac_ct_CC="$ac_prog"
19511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19512    break 2
19513  fi
19514done
19515done
19516IFS=$as_save_IFS
19517
19518fi
19519fi
19520ac_ct_CC=$ac_cv_prog_ac_ct_CC
19521if test -n "$ac_ct_CC"; then
19522  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19523echo "${ECHO_T}$ac_ct_CC" >&6; }
19524else
19525  { echo "$as_me:$LINENO: result: no" >&5
19526echo "${ECHO_T}no" >&6; }
19527fi
19528
19529
19530  test -n "$ac_ct_CC" && break
19531done
19532
19533  if test "x$ac_ct_CC" = x; then
19534    CC=""
19535  else
19536    case $cross_compiling:$ac_tool_warned in
19537yes:)
19538{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19539whose name does not start with the host triplet.  If you think this
19540configuration is useful to you, please write to autoconf@gnu.org." >&5
19541echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19542whose name does not start with the host triplet.  If you think this
19543configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19544ac_tool_warned=yes ;;
19545esac
19546    CC=$ac_ct_CC
19547  fi
19548fi
19549
19550fi
19551
19552
19553test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19554See \`config.log' for more details." >&5
19555echo "$as_me: error: no acceptable C compiler found in \$PATH
19556See \`config.log' for more details." >&2;}
19557   { (exit 1); exit 1; }; }
19558
19559# Provide some information about the compiler.
19560echo "$as_me:$LINENO: checking for C compiler version" >&5
19561ac_compiler=`set X $ac_compile; echo $2`
19562{ (ac_try="$ac_compiler --version >&5"
19563case "(($ac_try" in
19564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565  *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568  (eval "$ac_compiler --version >&5") 2>&5
19569  ac_status=$?
19570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571  (exit $ac_status); }
19572{ (ac_try="$ac_compiler -v >&5"
19573case "(($ac_try" in
19574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575  *) ac_try_echo=$ac_try;;
19576esac
19577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578  (eval "$ac_compiler -v >&5") 2>&5
19579  ac_status=$?
19580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581  (exit $ac_status); }
19582{ (ac_try="$ac_compiler -V >&5"
19583case "(($ac_try" in
19584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585  *) ac_try_echo=$ac_try;;
19586esac
19587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588  (eval "$ac_compiler -V >&5") 2>&5
19589  ac_status=$?
19590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591  (exit $ac_status); }
19592
19593{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19594echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19595if test "${ac_cv_c_compiler_gnu+set}" = set; then
19596  echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598  cat >conftest.$ac_ext <<_ACEOF
19599/* confdefs.h.  */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h.  */
19604
19605int
19606main ()
19607{
19608#ifndef __GNUC__
19609       choke me
19610#endif
19611
19612  ;
19613  return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620  *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623  (eval "$ac_compile") 2>conftest.er1
19624  ac_status=$?
19625  grep -v '^ *+' conftest.er1 >conftest.err
19626  rm -f conftest.er1
19627  cat conftest.err >&5
19628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629  (exit $ac_status); } && {
19630	 test -z "$ac_c_werror_flag" ||
19631	 test ! -s conftest.err
19632       } && test -s conftest.$ac_objext; then
19633  ac_compiler_gnu=yes
19634else
19635  echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638	ac_compiler_gnu=no
19639fi
19640
19641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642ac_cv_c_compiler_gnu=$ac_compiler_gnu
19643
19644fi
19645{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19646echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19647GCC=`test $ac_compiler_gnu = yes && echo yes`
19648ac_test_CFLAGS=${CFLAGS+set}
19649ac_save_CFLAGS=$CFLAGS
19650{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19652if test "${ac_cv_prog_cc_g+set}" = set; then
19653  echo $ECHO_N "(cached) $ECHO_C" >&6
19654else
19655  ac_save_c_werror_flag=$ac_c_werror_flag
19656   ac_c_werror_flag=yes
19657   ac_cv_prog_cc_g=no
19658   CFLAGS="-g"
19659   cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h.  */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h.  */
19665
19666int
19667main ()
19668{
19669
19670  ;
19671  return 0;
19672}
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (ac_try="$ac_compile"
19676case "(($ac_try" in
19677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678  *) ac_try_echo=$ac_try;;
19679esac
19680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681  (eval "$ac_compile") 2>conftest.er1
19682  ac_status=$?
19683  grep -v '^ *+' conftest.er1 >conftest.err
19684  rm -f conftest.er1
19685  cat conftest.err >&5
19686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687  (exit $ac_status); } && {
19688	 test -z "$ac_c_werror_flag" ||
19689	 test ! -s conftest.err
19690       } && test -s conftest.$ac_objext; then
19691  ac_cv_prog_cc_g=yes
19692else
19693  echo "$as_me: failed program was:" >&5
19694sed 's/^/| /' conftest.$ac_ext >&5
19695
19696	CFLAGS=""
19697      cat >conftest.$ac_ext <<_ACEOF
19698/* confdefs.h.  */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h.  */
19703
19704int
19705main ()
19706{
19707
19708  ;
19709  return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (ac_try="$ac_compile"
19714case "(($ac_try" in
19715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716  *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719  (eval "$ac_compile") 2>conftest.er1
19720  ac_status=$?
19721  grep -v '^ *+' conftest.er1 >conftest.err
19722  rm -f conftest.er1
19723  cat conftest.err >&5
19724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725  (exit $ac_status); } && {
19726	 test -z "$ac_c_werror_flag" ||
19727	 test ! -s conftest.err
19728       } && test -s conftest.$ac_objext; then
19729  :
19730else
19731  echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734	ac_c_werror_flag=$ac_save_c_werror_flag
19735	 CFLAGS="-g"
19736	 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h.  */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h.  */
19742
19743int
19744main ()
19745{
19746
19747  ;
19748  return 0;
19749}
19750_ACEOF
19751rm -f conftest.$ac_objext
19752if { (ac_try="$ac_compile"
19753case "(($ac_try" in
19754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755  *) ac_try_echo=$ac_try;;
19756esac
19757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758  (eval "$ac_compile") 2>conftest.er1
19759  ac_status=$?
19760  grep -v '^ *+' conftest.er1 >conftest.err
19761  rm -f conftest.er1
19762  cat conftest.err >&5
19763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764  (exit $ac_status); } && {
19765	 test -z "$ac_c_werror_flag" ||
19766	 test ! -s conftest.err
19767       } && test -s conftest.$ac_objext; then
19768  ac_cv_prog_cc_g=yes
19769else
19770  echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773
19774fi
19775
19776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777fi
19778
19779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780fi
19781
19782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783   ac_c_werror_flag=$ac_save_c_werror_flag
19784fi
19785{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19786echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19787if test "$ac_test_CFLAGS" = set; then
19788  CFLAGS=$ac_save_CFLAGS
19789elif test $ac_cv_prog_cc_g = yes; then
19790  if test "$GCC" = yes; then
19791    CFLAGS="-g -O2"
19792  else
19793    CFLAGS="-g"
19794  fi
19795else
19796  if test "$GCC" = yes; then
19797    CFLAGS="-O2"
19798  else
19799    CFLAGS=
19800  fi
19801fi
19802{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19803echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19804if test "${ac_cv_prog_cc_c89+set}" = set; then
19805  echo $ECHO_N "(cached) $ECHO_C" >&6
19806else
19807  ac_cv_prog_cc_c89=no
19808ac_save_CC=$CC
19809cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h.  */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h.  */
19815#include <stdarg.h>
19816#include <stdio.h>
19817#include <sys/types.h>
19818#include <sys/stat.h>
19819/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19820struct buf { int x; };
19821FILE * (*rcsopen) (struct buf *, struct stat *, int);
19822static char *e (p, i)
19823     char **p;
19824     int i;
19825{
19826  return p[i];
19827}
19828static char *f (char * (*g) (char **, int), char **p, ...)
19829{
19830  char *s;
19831  va_list v;
19832  va_start (v,p);
19833  s = g (p, va_arg (v,int));
19834  va_end (v);
19835  return s;
19836}
19837
19838/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19839   function prototypes and stuff, but not '\xHH' hex character constants.
19840   These don't provoke an error unfortunately, instead are silently treated
19841   as 'x'.  The following induces an error, until -std is added to get
19842   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19843   array size at least.  It's necessary to write '\x00'==0 to get something
19844   that's true only with -std.  */
19845int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19846
19847/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19848   inside strings and character constants.  */
19849#define FOO(x) 'x'
19850int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19851
19852int test (int i, double x);
19853struct s1 {int (*f) (int a);};
19854struct s2 {int (*f) (double a);};
19855int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19856int argc;
19857char **argv;
19858int
19859main ()
19860{
19861return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19862  ;
19863  return 0;
19864}
19865_ACEOF
19866for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19867	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19868do
19869  CC="$ac_save_CC $ac_arg"
19870  rm -f conftest.$ac_objext
19871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874  *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877  (eval "$ac_compile") 2>conftest.er1
19878  ac_status=$?
19879  grep -v '^ *+' conftest.er1 >conftest.err
19880  rm -f conftest.er1
19881  cat conftest.err >&5
19882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883  (exit $ac_status); } && {
19884	 test -z "$ac_c_werror_flag" ||
19885	 test ! -s conftest.err
19886       } && test -s conftest.$ac_objext; then
19887  ac_cv_prog_cc_c89=$ac_arg
19888else
19889  echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892
19893fi
19894
19895rm -f core conftest.err conftest.$ac_objext
19896  test "x$ac_cv_prog_cc_c89" != "xno" && break
19897done
19898rm -f conftest.$ac_ext
19899CC=$ac_save_CC
19900
19901fi
19902# AC_CACHE_VAL
19903case "x$ac_cv_prog_cc_c89" in
19904  x)
19905    { echo "$as_me:$LINENO: result: none needed" >&5
19906echo "${ECHO_T}none needed" >&6; } ;;
19907  xno)
19908    { echo "$as_me:$LINENO: result: unsupported" >&5
19909echo "${ECHO_T}unsupported" >&6; } ;;
19910  *)
19911    CC="$CC $ac_cv_prog_cc_c89"
19912    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19913echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19914esac
19915
19916
19917ac_ext=c
19918ac_cpp='$CPP $CPPFLAGS'
19919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19921ac_compiler_gnu=$ac_cv_c_compiler_gnu
19922
19923depcc="$CC"   am_compiler_list=
19924
19925{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19926echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19927if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19928  echo $ECHO_N "(cached) $ECHO_C" >&6
19929else
19930  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19931  # We make a subdir and do the tests there.  Otherwise we can end up
19932  # making bogus files that we don't know about and never remove.  For
19933  # instance it was reported that on HP-UX the gcc test will end up
19934  # making a dummy file named `D' -- because `-MD' means `put the output
19935  # in D'.
19936  mkdir conftest.dir
19937  # Copy depcomp to subdir because otherwise we won't find it if we're
19938  # using a relative directory.
19939  cp "$am_depcomp" conftest.dir
19940  cd conftest.dir
19941  # We will build objects and dependencies in a subdirectory because
19942  # it helps to detect inapplicable dependency modes.  For instance
19943  # both Tru64's cc and ICC support -MD to output dependencies as a
19944  # side effect of compilation, but ICC will put the dependencies in
19945  # the current directory while Tru64 will put them in the object
19946  # directory.
19947  mkdir sub
19948
19949  am_cv_CC_dependencies_compiler_type=none
19950  if test "$am_compiler_list" = ""; then
19951     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19952  fi
19953  for depmode in $am_compiler_list; do
19954    # Setup a source with many dependencies, because some compilers
19955    # like to wrap large dependency lists on column 80 (with \), and
19956    # we should not choose a depcomp mode which is confused by this.
19957    #
19958    # We need to recreate these files for each test, as the compiler may
19959    # overwrite some of them when testing with obscure command lines.
19960    # This happens at least with the AIX C compiler.
19961    : > sub/conftest.c
19962    for i in 1 2 3 4 5 6; do
19963      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19964      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19965      # Solaris 8's {/usr,}/bin/sh.
19966      touch sub/conftst$i.h
19967    done
19968    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19969
19970    case $depmode in
19971    nosideeffect)
19972      # after this tag, mechanisms are not by side-effect, so they'll
19973      # only be used when explicitly requested
19974      if test "x$enable_dependency_tracking" = xyes; then
19975	continue
19976      else
19977	break
19978      fi
19979      ;;
19980    none) break ;;
19981    esac
19982    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19983    # mode.  It turns out that the SunPro C++ compiler does not properly
19984    # handle `-M -o', and we need to detect this.
19985    if depmode=$depmode \
19986       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19987       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19988       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19989         >/dev/null 2>conftest.err &&
19990       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19991       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19992       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19993       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19994      # icc doesn't choke on unknown options, it will just issue warnings
19995      # or remarks (even with -Werror).  So we grep stderr for any message
19996      # that says an option was ignored or not supported.
19997      # When given -MP, icc 7.0 and 7.1 complain thusly:
19998      #   icc: Command line warning: ignoring option '-M'; no argument required
19999      # The diagnosis changed in icc 8.0:
20000      #   icc: Command line remark: option '-MP' not supported
20001      if (grep 'ignoring option' conftest.err ||
20002          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20003        am_cv_CC_dependencies_compiler_type=$depmode
20004        break
20005      fi
20006    fi
20007  done
20008
20009  cd ..
20010  rm -rf conftest.dir
20011else
20012  am_cv_CC_dependencies_compiler_type=none
20013fi
20014
20015fi
20016{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20017echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20019
20020 if
20021  test "x$enable_dependency_tracking" != xno \
20022  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20023  am__fastdepCC_TRUE=
20024  am__fastdepCC_FALSE='#'
20025else
20026  am__fastdepCC_TRUE='#'
20027  am__fastdepCC_FALSE=
20028fi
20029
20030
20031
20032
20033if  test "x$GCC" = xyes ; then
20034    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20035-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20036-Wbad-function-cast"
20037    case `gcc -dumpversion` in
20038    3.4.* | 4.*)
20039	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20040	;;
20041    esac
20042else
20043    { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20044echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
20045if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20046  echo $ECHO_N "(cached) $ECHO_C" >&6
20047else
20048  cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h.  */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h.  */
20054$ac_includes_default
20055int
20056main ()
20057{
20058#ifndef __SUNPRO_C
20059  (void) __SUNPRO_C;
20060#endif
20061
20062  ;
20063  return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
20067if { (ac_try="$ac_compile"
20068case "(($ac_try" in
20069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070  *) ac_try_echo=$ac_try;;
20071esac
20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073  (eval "$ac_compile") 2>conftest.er1
20074  ac_status=$?
20075  grep -v '^ *+' conftest.er1 >conftest.err
20076  rm -f conftest.er1
20077  cat conftest.err >&5
20078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079  (exit $ac_status); } && {
20080	 test -z "$ac_c_werror_flag" ||
20081	 test ! -s conftest.err
20082       } && test -s conftest.$ac_objext; then
20083  ac_cv_have_decl___SUNPRO_C=yes
20084else
20085  echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088	ac_cv_have_decl___SUNPRO_C=no
20089fi
20090
20091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092fi
20093{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20094echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
20095if test $ac_cv_have_decl___SUNPRO_C = yes; then
20096  SUNCC="yes"
20097else
20098  SUNCC="no"
20099fi
20100
20101    if test "x$SUNCC" = "xyes"; then
20102	CWARNFLAGS="-v"
20103    fi
20104fi
20105
20106
20107
20108
20109
20110
20111
20112# Check whether --with-xorg-module-dir was given.
20113if test "${with_xorg_module_dir+set}" = set; then
20114  withval=$with_xorg_module_dir; moduledir="$withval"
20115else
20116  moduledir="$libdir/xorg/modules"
20117fi
20118
20119
20120# Checks for extensions
20121
20122	SAVE_CFLAGS="$CFLAGS"
20123	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20124	cat >conftest.$ac_ext <<_ACEOF
20125/* confdefs.h.  */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h.  */
20130
20131#include "xorg-server.h"
20132#if !defined RANDR
20133#error RANDR not defined
20134#endif
20135
20136int
20137main ()
20138{
20139
20140  ;
20141  return 0;
20142}
20143_ACEOF
20144rm -f conftest.$ac_objext
20145if { (ac_try="$ac_compile"
20146case "(($ac_try" in
20147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148  *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151  (eval "$ac_compile") 2>conftest.er1
20152  ac_status=$?
20153  grep -v '^ *+' conftest.er1 >conftest.err
20154  rm -f conftest.er1
20155  cat conftest.err >&5
20156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157  (exit $ac_status); } && {
20158	 test -z "$ac_c_werror_flag" ||
20159	 test ! -s conftest.err
20160       } && test -s conftest.$ac_objext; then
20161  _EXT_CHECK=yes
20162else
20163  echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166	_EXT_CHECK=no
20167fi
20168
20169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170	CFLAGS="$SAVE_CFLAGS"
20171	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20172echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20173	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20174echo "${ECHO_T}$_EXT_CHECK" >&6; }
20175	if test "$_EXT_CHECK" != no; then
20176		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20177	fi
20178
20179
20180	SAVE_CFLAGS="$CFLAGS"
20181	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20182	cat >conftest.$ac_ext <<_ACEOF
20183/* confdefs.h.  */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h.  */
20188
20189#include "xorg-server.h"
20190#if !defined RENDER
20191#error RENDER not defined
20192#endif
20193
20194int
20195main ()
20196{
20197
20198  ;
20199  return 0;
20200}
20201_ACEOF
20202rm -f conftest.$ac_objext
20203if { (ac_try="$ac_compile"
20204case "(($ac_try" in
20205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206  *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209  (eval "$ac_compile") 2>conftest.er1
20210  ac_status=$?
20211  grep -v '^ *+' conftest.er1 >conftest.err
20212  rm -f conftest.er1
20213  cat conftest.err >&5
20214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215  (exit $ac_status); } && {
20216	 test -z "$ac_c_werror_flag" ||
20217	 test ! -s conftest.err
20218       } && test -s conftest.$ac_objext; then
20219  _EXT_CHECK=yes
20220else
20221  echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
20223
20224	_EXT_CHECK=no
20225fi
20226
20227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228	CFLAGS="$SAVE_CFLAGS"
20229	{ echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20230echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20231	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20232echo "${ECHO_T}$_EXT_CHECK" >&6; }
20233	if test "$_EXT_CHECK" != no; then
20234		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20235	fi
20236
20237
20238	SAVE_CFLAGS="$CFLAGS"
20239	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20240	cat >conftest.$ac_ext <<_ACEOF
20241/* confdefs.h.  */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h.  */
20246
20247#include "xorg-server.h"
20248#if !defined XV
20249#error XV not defined
20250#endif
20251
20252int
20253main ()
20254{
20255
20256  ;
20257  return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext
20261if { (ac_try="$ac_compile"
20262case "(($ac_try" in
20263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264  *) ac_try_echo=$ac_try;;
20265esac
20266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267  (eval "$ac_compile") 2>conftest.er1
20268  ac_status=$?
20269  grep -v '^ *+' conftest.er1 >conftest.err
20270  rm -f conftest.er1
20271  cat conftest.err >&5
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); } && {
20274	 test -z "$ac_c_werror_flag" ||
20275	 test ! -s conftest.err
20276       } && test -s conftest.$ac_objext; then
20277  _EXT_CHECK=yes
20278else
20279  echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282	_EXT_CHECK=no
20283fi
20284
20285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286	CFLAGS="$SAVE_CFLAGS"
20287	{ echo "$as_me:$LINENO: checking if XV is defined" >&5
20288echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20289	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20290echo "${ECHO_T}$_EXT_CHECK" >&6; }
20291	if test "$_EXT_CHECK" != no; then
20292		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20293	fi
20294
20295
20296	SAVE_CFLAGS="$CFLAGS"
20297	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20298	cat >conftest.$ac_ext <<_ACEOF
20299/* confdefs.h.  */
20300_ACEOF
20301cat confdefs.h >>conftest.$ac_ext
20302cat >>conftest.$ac_ext <<_ACEOF
20303/* end confdefs.h.  */
20304
20305#include "xorg-server.h"
20306#if !defined DPMSExtension
20307#error DPMSExtension not defined
20308#endif
20309
20310int
20311main ()
20312{
20313
20314  ;
20315  return 0;
20316}
20317_ACEOF
20318rm -f conftest.$ac_objext
20319if { (ac_try="$ac_compile"
20320case "(($ac_try" in
20321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322  *) ac_try_echo=$ac_try;;
20323esac
20324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325  (eval "$ac_compile") 2>conftest.er1
20326  ac_status=$?
20327  grep -v '^ *+' conftest.er1 >conftest.err
20328  rm -f conftest.er1
20329  cat conftest.err >&5
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); } && {
20332	 test -z "$ac_c_werror_flag" ||
20333	 test ! -s conftest.err
20334       } && test -s conftest.$ac_objext; then
20335  _EXT_CHECK=yes
20336else
20337  echo "$as_me: failed program was:" >&5
20338sed 's/^/| /' conftest.$ac_ext >&5
20339
20340	_EXT_CHECK=no
20341fi
20342
20343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344	CFLAGS="$SAVE_CFLAGS"
20345	{ echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20346echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20347	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20348echo "${ECHO_T}$_EXT_CHECK" >&6; }
20349	if test "$_EXT_CHECK" != no; then
20350		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20351	fi
20352
20353
20354# Checks for pkg-config packages
20355
20356
20357if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20358	if test -n "$ac_tool_prefix"; then
20359  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20360set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20363if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20364  echo $ECHO_N "(cached) $ECHO_C" >&6
20365else
20366  case $PKG_CONFIG in
20367  [\\/]* | ?:[\\/]*)
20368  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20369  ;;
20370  *)
20371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20372for as_dir in $PATH
20373do
20374  IFS=$as_save_IFS
20375  test -z "$as_dir" && as_dir=.
20376  for ac_exec_ext in '' $ac_executable_extensions; do
20377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20378    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20379    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20380    break 2
20381  fi
20382done
20383done
20384IFS=$as_save_IFS
20385
20386  ;;
20387esac
20388fi
20389PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20390if test -n "$PKG_CONFIG"; then
20391  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20392echo "${ECHO_T}$PKG_CONFIG" >&6; }
20393else
20394  { echo "$as_me:$LINENO: result: no" >&5
20395echo "${ECHO_T}no" >&6; }
20396fi
20397
20398
20399fi
20400if test -z "$ac_cv_path_PKG_CONFIG"; then
20401  ac_pt_PKG_CONFIG=$PKG_CONFIG
20402  # Extract the first word of "pkg-config", so it can be a program name with args.
20403set dummy pkg-config; ac_word=$2
20404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20406if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20407  echo $ECHO_N "(cached) $ECHO_C" >&6
20408else
20409  case $ac_pt_PKG_CONFIG in
20410  [\\/]* | ?:[\\/]*)
20411  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20412  ;;
20413  *)
20414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415for as_dir in $PATH
20416do
20417  IFS=$as_save_IFS
20418  test -z "$as_dir" && as_dir=.
20419  for ac_exec_ext in '' $ac_executable_extensions; do
20420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20421    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20423    break 2
20424  fi
20425done
20426done
20427IFS=$as_save_IFS
20428
20429  ;;
20430esac
20431fi
20432ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20433if test -n "$ac_pt_PKG_CONFIG"; then
20434  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20435echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20436else
20437  { echo "$as_me:$LINENO: result: no" >&5
20438echo "${ECHO_T}no" >&6; }
20439fi
20440
20441  if test "x$ac_pt_PKG_CONFIG" = x; then
20442    PKG_CONFIG=""
20443  else
20444    case $cross_compiling:$ac_tool_warned in
20445yes:)
20446{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20447whose name does not start with the host triplet.  If you think this
20448configuration is useful to you, please write to autoconf@gnu.org." >&5
20449echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20450whose name does not start with the host triplet.  If you think this
20451configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20452ac_tool_warned=yes ;;
20453esac
20454    PKG_CONFIG=$ac_pt_PKG_CONFIG
20455  fi
20456else
20457  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20458fi
20459
20460fi
20461if test -n "$PKG_CONFIG"; then
20462	_pkg_min_version=0.9.0
20463	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20464echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20465	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20466		{ echo "$as_me:$LINENO: result: yes" >&5
20467echo "${ECHO_T}yes" >&6; }
20468	else
20469		{ echo "$as_me:$LINENO: result: no" >&5
20470echo "${ECHO_T}no" >&6; }
20471		PKG_CONFIG=""
20472	fi
20473
20474fi
20475
20476pkg_failed=no
20477{ echo "$as_me:$LINENO: checking for XORG" >&5
20478echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20479
20480if test -n "$PKG_CONFIG"; then
20481        if test -n "$PKG_CONFIG" && \
20482    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20483  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
20484  ac_status=$?
20485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486  (exit $ac_status); }; then
20487  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20488else
20489  pkg_failed=yes
20490fi
20491else
20492	pkg_failed=untried
20493fi
20494if test -n "$PKG_CONFIG"; then
20495        if test -n "$PKG_CONFIG" && \
20496    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20497  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
20498  ac_status=$?
20499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500  (exit $ac_status); }; then
20501  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20502else
20503  pkg_failed=yes
20504fi
20505else
20506	pkg_failed=untried
20507fi
20508
20509if test $pkg_failed = yes; then
20510	XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES"`
20511	# Put the nasty error message in config.log where it belongs
20512	echo "$XORG_PKG_ERRORS" 1>&5
20513
20514	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met.
20515Consider adjusting the PKG_CONFIG_PATH environment variable if you
20516installed software in a non-standard prefix.
20517
20518Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20519to avoid the need to call pkg-config.  See the pkg-config man page for
20520more details." >&5
20521echo "$as_me: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met.
20522Consider adjusting the PKG_CONFIG_PATH environment variable if you
20523installed software in a non-standard prefix.
20524
20525Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20526to avoid the need to call pkg-config.  See the pkg-config man page for
20527more details." >&2;}
20528   { (exit 1); exit 1; }; }
20529elif test $pkg_failed = untried; then
20530	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20531is in your PATH or set the PKG_CONFIG environment variable to the full
20532path to pkg-config.
20533
20534Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20535to avoid the need to call pkg-config.  See the pkg-config man page for
20536more details.
20537
20538To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20539See \`config.log' for more details." >&5
20540echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20541is in your PATH or set the PKG_CONFIG environment variable to the full
20542path to pkg-config.
20543
20544Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20545to avoid the need to call pkg-config.  See the pkg-config man page for
20546more details.
20547
20548To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20549See \`config.log' for more details." >&2;}
20550   { (exit 1); exit 1; }; }
20551else
20552	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20553	XORG_LIBS=$pkg_cv_XORG_LIBS
20554        { echo "$as_me:$LINENO: result: yes" >&5
20555echo "${ECHO_T}yes" >&6; }
20556	:
20557fi
20558sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20559
20560# Checks for libraries.
20561SAVE_CPPFLAGS="$CPPFLAGS"
20562CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20563{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
20564echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
20565if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
20566  echo $ECHO_N "(cached) $ECHO_C" >&6
20567else
20568  cat >conftest.$ac_ext <<_ACEOF
20569/* confdefs.h.  */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h.  */
20574#include "xorg-server.h"
20575
20576int
20577main ()
20578{
20579#ifndef XSERVER_LIBPCIACCESS
20580  (void) XSERVER_LIBPCIACCESS;
20581#endif
20582
20583  ;
20584  return 0;
20585}
20586_ACEOF
20587rm -f conftest.$ac_objext
20588if { (ac_try="$ac_compile"
20589case "(($ac_try" in
20590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591  *) ac_try_echo=$ac_try;;
20592esac
20593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594  (eval "$ac_compile") 2>conftest.er1
20595  ac_status=$?
20596  grep -v '^ *+' conftest.er1 >conftest.err
20597  rm -f conftest.er1
20598  cat conftest.err >&5
20599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600  (exit $ac_status); } && {
20601	 test -z "$ac_c_werror_flag" ||
20602	 test ! -s conftest.err
20603       } && test -s conftest.$ac_objext; then
20604  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
20605else
20606  echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
20610fi
20611
20612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613fi
20614{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
20615echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
20616if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
20617  XSERVER_LIBPCIACCESS=yes
20618else
20619  XSERVER_LIBPCIACCESS=no
20620fi
20621
20622if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20623  { echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
20624echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; }
20625if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20626  echo $ECHO_N "(cached) $ECHO_C" >&6
20627fi
20628{ echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
20629echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; }
20630else
20631  # Is the header compilable?
20632{ echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
20633echo $ECHO_N "checking xf1bpp.h usability... $ECHO_C" >&6; }
20634cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h.  */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h.  */
20640$ac_includes_default
20641#include <xf1bpp.h>
20642_ACEOF
20643rm -f conftest.$ac_objext
20644if { (ac_try="$ac_compile"
20645case "(($ac_try" in
20646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647  *) ac_try_echo=$ac_try;;
20648esac
20649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650  (eval "$ac_compile") 2>conftest.er1
20651  ac_status=$?
20652  grep -v '^ *+' conftest.er1 >conftest.err
20653  rm -f conftest.er1
20654  cat conftest.err >&5
20655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656  (exit $ac_status); } && {
20657	 test -z "$ac_c_werror_flag" ||
20658	 test ! -s conftest.err
20659       } && test -s conftest.$ac_objext; then
20660  ac_header_compiler=yes
20661else
20662  echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665	ac_header_compiler=no
20666fi
20667
20668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20670echo "${ECHO_T}$ac_header_compiler" >&6; }
20671
20672# Is the header present?
20673{ echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
20674echo $ECHO_N "checking xf1bpp.h presence... $ECHO_C" >&6; }
20675cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h.  */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h.  */
20681#include <xf1bpp.h>
20682_ACEOF
20683if { (ac_try="$ac_cpp conftest.$ac_ext"
20684case "(($ac_try" in
20685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686  *) ac_try_echo=$ac_try;;
20687esac
20688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20690  ac_status=$?
20691  grep -v '^ *+' conftest.er1 >conftest.err
20692  rm -f conftest.er1
20693  cat conftest.err >&5
20694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695  (exit $ac_status); } >/dev/null && {
20696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20697	 test ! -s conftest.err
20698       }; then
20699  ac_header_preproc=yes
20700else
20701  echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704  ac_header_preproc=no
20705fi
20706
20707rm -f conftest.err conftest.$ac_ext
20708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20709echo "${ECHO_T}$ac_header_preproc" >&6; }
20710
20711# So?  What about this header?
20712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713  yes:no: )
20714    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20715echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20716    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
20717echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
20718    ac_header_preproc=yes
20719    ;;
20720  no:yes:* )
20721    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
20722echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
20723    { echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
20724echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
20725    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
20726echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
20727    { echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
20728echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20729    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
20730echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
20731    { echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
20732echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
20733    ( cat <<\_ASBOX
20734## ---------------------------------------------------------------------- ##
20735## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20736## ---------------------------------------------------------------------- ##
20737_ASBOX
20738     ) | sed "s/^/$as_me: WARNING:     /" >&2
20739    ;;
20740esac
20741{ echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
20742echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; }
20743if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20744  echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746  ac_cv_header_xf1bpp_h=$ac_header_preproc
20747fi
20748{ echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
20749echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; }
20750
20751fi
20752if test $ac_cv_header_xf1bpp_h = yes; then
20753
20754cat >>confdefs.h <<\_ACEOF
20755#define HAVE_XF1BPP 1
20756_ACEOF
20757
20758fi
20759
20760
20761if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20762  { echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
20763echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; }
20764if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20765  echo $ECHO_N "(cached) $ECHO_C" >&6
20766fi
20767{ echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
20768echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; }
20769else
20770  # Is the header compilable?
20771{ echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
20772echo $ECHO_N "checking xf4bpp.h usability... $ECHO_C" >&6; }
20773cat >conftest.$ac_ext <<_ACEOF
20774/* confdefs.h.  */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h.  */
20779$ac_includes_default
20780#include <xf4bpp.h>
20781_ACEOF
20782rm -f conftest.$ac_objext
20783if { (ac_try="$ac_compile"
20784case "(($ac_try" in
20785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786  *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789  (eval "$ac_compile") 2>conftest.er1
20790  ac_status=$?
20791  grep -v '^ *+' conftest.er1 >conftest.err
20792  rm -f conftest.er1
20793  cat conftest.err >&5
20794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795  (exit $ac_status); } && {
20796	 test -z "$ac_c_werror_flag" ||
20797	 test ! -s conftest.err
20798       } && test -s conftest.$ac_objext; then
20799  ac_header_compiler=yes
20800else
20801  echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804	ac_header_compiler=no
20805fi
20806
20807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20809echo "${ECHO_T}$ac_header_compiler" >&6; }
20810
20811# Is the header present?
20812{ echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
20813echo $ECHO_N "checking xf4bpp.h presence... $ECHO_C" >&6; }
20814cat >conftest.$ac_ext <<_ACEOF
20815/* confdefs.h.  */
20816_ACEOF
20817cat confdefs.h >>conftest.$ac_ext
20818cat >>conftest.$ac_ext <<_ACEOF
20819/* end confdefs.h.  */
20820#include <xf4bpp.h>
20821_ACEOF
20822if { (ac_try="$ac_cpp conftest.$ac_ext"
20823case "(($ac_try" in
20824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825  *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20829  ac_status=$?
20830  grep -v '^ *+' conftest.er1 >conftest.err
20831  rm -f conftest.er1
20832  cat conftest.err >&5
20833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834  (exit $ac_status); } >/dev/null && {
20835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20836	 test ! -s conftest.err
20837       }; then
20838  ac_header_preproc=yes
20839else
20840  echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
20843  ac_header_preproc=no
20844fi
20845
20846rm -f conftest.err conftest.$ac_ext
20847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20848echo "${ECHO_T}$ac_header_preproc" >&6; }
20849
20850# So?  What about this header?
20851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20852  yes:no: )
20853    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20854echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20855    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
20856echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
20857    ac_header_preproc=yes
20858    ;;
20859  no:yes:* )
20860    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
20861echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
20862    { echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
20863echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
20864    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
20865echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
20866    { echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
20867echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20868    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
20869echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
20870    { echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
20871echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
20872    ( cat <<\_ASBOX
20873## ---------------------------------------------------------------------- ##
20874## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20875## ---------------------------------------------------------------------- ##
20876_ASBOX
20877     ) | sed "s/^/$as_me: WARNING:     /" >&2
20878    ;;
20879esac
20880{ echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
20881echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; }
20882if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20883  echo $ECHO_N "(cached) $ECHO_C" >&6
20884else
20885  ac_cv_header_xf4bpp_h=$ac_header_preproc
20886fi
20887{ echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
20888echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; }
20889
20890fi
20891if test $ac_cv_header_xf4bpp_h = yes; then
20892
20893cat >>confdefs.h <<\_ACEOF
20894#define HAVE_XF4BPP 1
20895_ACEOF
20896
20897fi
20898
20899
20900CPPFLAGS="$SAVE_CPPFLAGS"
20901
20902if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20903
20904pkg_failed=no
20905{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
20906echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
20907
20908if test -n "$PKG_CONFIG"; then
20909        if test -n "$PKG_CONFIG" && \
20910    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20911  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20912  ac_status=$?
20913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914  (exit $ac_status); }; then
20915  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20916else
20917  pkg_failed=yes
20918fi
20919else
20920	pkg_failed=untried
20921fi
20922if test -n "$PKG_CONFIG"; then
20923        if test -n "$PKG_CONFIG" && \
20924    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20925  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20926  ac_status=$?
20927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928  (exit $ac_status); }; then
20929  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20930else
20931  pkg_failed=yes
20932fi
20933else
20934	pkg_failed=untried
20935fi
20936
20937if test $pkg_failed = yes; then
20938	PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20939	# Put the nasty error message in config.log where it belongs
20940	echo "$PCIACCESS_PKG_ERRORS" 1>&5
20941
20942	{ { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met.
20943Consider adjusting the PKG_CONFIG_PATH environment variable if you
20944installed software in a non-standard prefix.
20945
20946Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20947to avoid the need to call pkg-config.  See the pkg-config man page for
20948more details." >&5
20949echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met.
20950Consider adjusting the PKG_CONFIG_PATH environment variable if you
20951installed software in a non-standard prefix.
20952
20953Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20954to avoid the need to call pkg-config.  See the pkg-config man page for
20955more details." >&2;}
20956   { (exit 1); exit 1; }; }
20957elif test $pkg_failed = untried; then
20958	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20959is in your PATH or set the PKG_CONFIG environment variable to the full
20960path to pkg-config.
20961
20962Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20963to avoid the need to call pkg-config.  See the pkg-config man page for
20964more details.
20965
20966To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20967See \`config.log' for more details." >&5
20968echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20969is in your PATH or set the PKG_CONFIG environment variable to the full
20970path to pkg-config.
20971
20972Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20973to avoid the need to call pkg-config.  See the pkg-config man page for
20974more details.
20975
20976To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20977See \`config.log' for more details." >&2;}
20978   { (exit 1); exit 1; }; }
20979else
20980	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20981	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20982        { echo "$as_me:$LINENO: result: yes" >&5
20983echo "${ECHO_T}yes" >&6; }
20984	:
20985fi
20986    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20987fi
20988 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20989  XSERVER_LIBPCIACCESS_TRUE=
20990  XSERVER_LIBPCIACCESS_FALSE='#'
20991else
20992  XSERVER_LIBPCIACCESS_TRUE='#'
20993  XSERVER_LIBPCIACCESS_FALSE=
20994fi
20995
20996
20997# Checks for header files.
20998{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20999echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21000if test "${ac_cv_header_stdc+set}" = set; then
21001  echo $ECHO_N "(cached) $ECHO_C" >&6
21002else
21003  cat >conftest.$ac_ext <<_ACEOF
21004/* confdefs.h.  */
21005_ACEOF
21006cat confdefs.h >>conftest.$ac_ext
21007cat >>conftest.$ac_ext <<_ACEOF
21008/* end confdefs.h.  */
21009#include <stdlib.h>
21010#include <stdarg.h>
21011#include <string.h>
21012#include <float.h>
21013
21014int
21015main ()
21016{
21017
21018  ;
21019  return 0;
21020}
21021_ACEOF
21022rm -f conftest.$ac_objext
21023if { (ac_try="$ac_compile"
21024case "(($ac_try" in
21025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026  *) ac_try_echo=$ac_try;;
21027esac
21028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029  (eval "$ac_compile") 2>conftest.er1
21030  ac_status=$?
21031  grep -v '^ *+' conftest.er1 >conftest.err
21032  rm -f conftest.er1
21033  cat conftest.err >&5
21034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035  (exit $ac_status); } && {
21036	 test -z "$ac_c_werror_flag" ||
21037	 test ! -s conftest.err
21038       } && test -s conftest.$ac_objext; then
21039  ac_cv_header_stdc=yes
21040else
21041  echo "$as_me: failed program was:" >&5
21042sed 's/^/| /' conftest.$ac_ext >&5
21043
21044	ac_cv_header_stdc=no
21045fi
21046
21047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048
21049if test $ac_cv_header_stdc = yes; then
21050  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21051  cat >conftest.$ac_ext <<_ACEOF
21052/* confdefs.h.  */
21053_ACEOF
21054cat confdefs.h >>conftest.$ac_ext
21055cat >>conftest.$ac_ext <<_ACEOF
21056/* end confdefs.h.  */
21057#include <string.h>
21058
21059_ACEOF
21060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21061  $EGREP "memchr" >/dev/null 2>&1; then
21062  :
21063else
21064  ac_cv_header_stdc=no
21065fi
21066rm -f conftest*
21067
21068fi
21069
21070if test $ac_cv_header_stdc = yes; then
21071  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21072  cat >conftest.$ac_ext <<_ACEOF
21073/* confdefs.h.  */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h.  */
21078#include <stdlib.h>
21079
21080_ACEOF
21081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21082  $EGREP "free" >/dev/null 2>&1; then
21083  :
21084else
21085  ac_cv_header_stdc=no
21086fi
21087rm -f conftest*
21088
21089fi
21090
21091if test $ac_cv_header_stdc = yes; then
21092  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21093  if test "$cross_compiling" = yes; then
21094  :
21095else
21096  cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h.  */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h.  */
21102#include <ctype.h>
21103#include <stdlib.h>
21104#if ((' ' & 0x0FF) == 0x020)
21105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21107#else
21108# define ISLOWER(c) \
21109		   (('a' <= (c) && (c) <= 'i') \
21110		     || ('j' <= (c) && (c) <= 'r') \
21111		     || ('s' <= (c) && (c) <= 'z'))
21112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21113#endif
21114
21115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21116int
21117main ()
21118{
21119  int i;
21120  for (i = 0; i < 256; i++)
21121    if (XOR (islower (i), ISLOWER (i))
21122	|| toupper (i) != TOUPPER (i))
21123      return 2;
21124  return 0;
21125}
21126_ACEOF
21127rm -f conftest$ac_exeext
21128if { (ac_try="$ac_link"
21129case "(($ac_try" in
21130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131  *) ac_try_echo=$ac_try;;
21132esac
21133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134  (eval "$ac_link") 2>&5
21135  ac_status=$?
21136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21138  { (case "(($ac_try" in
21139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140  *) ac_try_echo=$ac_try;;
21141esac
21142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143  (eval "$ac_try") 2>&5
21144  ac_status=$?
21145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146  (exit $ac_status); }; }; then
21147  :
21148else
21149  echo "$as_me: program exited with status $ac_status" >&5
21150echo "$as_me: failed program was:" >&5
21151sed 's/^/| /' conftest.$ac_ext >&5
21152
21153( exit $ac_status )
21154ac_cv_header_stdc=no
21155fi
21156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157fi
21158
21159
21160fi
21161fi
21162{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21163echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21164if test $ac_cv_header_stdc = yes; then
21165
21166cat >>confdefs.h <<\_ACEOF
21167#define STDC_HEADERS 1
21168_ACEOF
21169
21170fi
21171
21172
21173
21174
21175
21176DRIVER_NAME=cirrus
21177
21178
21179
21180
21181
21182if test x$APP_MAN_SUFFIX = x    ; then
21183    APP_MAN_SUFFIX=1
21184fi
21185if test x$APP_MAN_DIR = x    ; then
21186    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21187fi
21188
21189if test x$LIB_MAN_SUFFIX = x    ; then
21190    LIB_MAN_SUFFIX=3
21191fi
21192if test x$LIB_MAN_DIR = x    ; then
21193    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21194fi
21195
21196if test x$FILE_MAN_SUFFIX = x    ; then
21197    case $host_os in
21198	solaris*)	FILE_MAN_SUFFIX=4  ;;
21199	*)		FILE_MAN_SUFFIX=5  ;;
21200    esac
21201fi
21202if test x$FILE_MAN_DIR = x    ; then
21203    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21204fi
21205
21206if test x$MISC_MAN_SUFFIX = x    ; then
21207    case $host_os in
21208	solaris*)	MISC_MAN_SUFFIX=5  ;;
21209	*)		MISC_MAN_SUFFIX=7  ;;
21210    esac
21211fi
21212if test x$MISC_MAN_DIR = x    ; then
21213    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21214fi
21215
21216if test x$DRIVER_MAN_SUFFIX = x    ; then
21217    case $host_os in
21218	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21219	*)		DRIVER_MAN_SUFFIX=4  ;;
21220    esac
21221fi
21222if test x$DRIVER_MAN_DIR = x    ; then
21223    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21224fi
21225
21226if test x$ADMIN_MAN_SUFFIX = x    ; then
21227    case $host_os in
21228	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21229	*)		ADMIN_MAN_SUFFIX=8  ;;
21230    esac
21231fi
21232if test x$ADMIN_MAN_DIR = x    ; then
21233    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21234fi
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252# Check whether --with-release-version was given.
21253if test "${with_release_version+set}" = set; then
21254  withval=$with_release_version; RELEASE_VERSION="$withval"
21255else
21256  RELEASE_VERSION=""
21257fi
21258
21259	if test "x$RELEASE_VERSION" != "x"; then
21260		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21261		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21262		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21263echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21264	fi
21265
21266cat >>confdefs.h <<_ACEOF
21267#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21268_ACEOF
21269
21270	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21271	if test "x$PVM" = "x"; then
21272		PVM="0"
21273	fi
21274
21275cat >>confdefs.h <<_ACEOF
21276#define PACKAGE_VERSION_MINOR $PVM
21277_ACEOF
21278
21279	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21280	if test "x$PVP" = "x"; then
21281		PVP="0"
21282	fi
21283
21284cat >>confdefs.h <<_ACEOF
21285#define PACKAGE_VERSION_PATCHLEVEL $PVP
21286_ACEOF
21287
21288
21289
21290CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21291mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21292echo 'git directory not found: installing possibly empty changelog.' >&2)"
21293
21294distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21295
21296
21297
21298ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21299
21300cat >confcache <<\_ACEOF
21301# This file is a shell script that caches the results of configure
21302# tests run on this system so they can be shared between configure
21303# scripts and configure runs, see configure's option --config-cache.
21304# It is not useful on other systems.  If it contains results you don't
21305# want to keep, you may remove or edit it.
21306#
21307# config.status only pays attention to the cache file if you give it
21308# the --recheck option to rerun configure.
21309#
21310# `ac_cv_env_foo' variables (set or unset) will be overridden when
21311# loading this file, other *unset* `ac_cv_foo' will be assigned the
21312# following values.
21313
21314_ACEOF
21315
21316# The following way of writing the cache mishandles newlines in values,
21317# but we know of no workaround that is simple, portable, and efficient.
21318# So, we kill variables containing newlines.
21319# Ultrix sh set writes to stderr and can't be redirected directly,
21320# and sets the high bit in the cache file unless we assign to the vars.
21321(
21322  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21323    eval ac_val=\$$ac_var
21324    case $ac_val in #(
21325    *${as_nl}*)
21326      case $ac_var in #(
21327      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21328echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21329      esac
21330      case $ac_var in #(
21331      _ | IFS | as_nl) ;; #(
21332      *) $as_unset $ac_var ;;
21333      esac ;;
21334    esac
21335  done
21336
21337  (set) 2>&1 |
21338    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21339    *${as_nl}ac_space=\ *)
21340      # `set' does not quote correctly, so add quotes (double-quote
21341      # substitution turns \\\\ into \\, and sed turns \\ into \).
21342      sed -n \
21343	"s/'/'\\\\''/g;
21344	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21345      ;; #(
21346    *)
21347      # `set' quotes correctly as required by POSIX, so do not add quotes.
21348      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21349      ;;
21350    esac |
21351    sort
21352) |
21353  sed '
21354     /^ac_cv_env_/b end
21355     t clear
21356     :clear
21357     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21358     t end
21359     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21360     :end' >>confcache
21361if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21362  if test -w "$cache_file"; then
21363    test "x$cache_file" != "x/dev/null" &&
21364      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21365echo "$as_me: updating cache $cache_file" >&6;}
21366    cat confcache >$cache_file
21367  else
21368    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21369echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21370  fi
21371fi
21372rm -f confcache
21373
21374test "x$prefix" = xNONE && prefix=$ac_default_prefix
21375# Let make expand exec_prefix.
21376test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21377
21378DEFS=-DHAVE_CONFIG_H
21379
21380ac_libobjs=
21381ac_ltlibobjs=
21382for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21383  # 1. Remove the extension, and $U if already installed.
21384  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21385  ac_i=`echo "$ac_i" | sed "$ac_script"`
21386  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21387  #    will be set to the directory where LIBOBJS objects are built.
21388  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21389  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21390done
21391LIBOBJS=$ac_libobjs
21392
21393LTLIBOBJS=$ac_ltlibobjs
21394
21395
21396if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21397  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21398Usually this means the macro was only invoked conditionally." >&5
21399echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21400Usually this means the macro was only invoked conditionally." >&2;}
21401   { (exit 1); exit 1; }; }
21402fi
21403if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21404  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21405Usually this means the macro was only invoked conditionally." >&5
21406echo "$as_me: error: conditional \"AMDEP\" was never defined.
21407Usually this means the macro was only invoked conditionally." >&2;}
21408   { (exit 1); exit 1; }; }
21409fi
21410if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21411  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21412Usually this means the macro was only invoked conditionally." >&5
21413echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21414Usually this means the macro was only invoked conditionally." >&2;}
21415   { (exit 1); exit 1; }; }
21416fi
21417if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21418  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21419Usually this means the macro was only invoked conditionally." >&5
21420echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21421Usually this means the macro was only invoked conditionally." >&2;}
21422   { (exit 1); exit 1; }; }
21423fi
21424if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21425  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21426Usually this means the macro was only invoked conditionally." >&5
21427echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21428Usually this means the macro was only invoked conditionally." >&2;}
21429   { (exit 1); exit 1; }; }
21430fi
21431if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21432  { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21433Usually this means the macro was only invoked conditionally." >&5
21434echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21435Usually this means the macro was only invoked conditionally." >&2;}
21436   { (exit 1); exit 1; }; }
21437fi
21438
21439: ${CONFIG_STATUS=./config.status}
21440ac_clean_files_save=$ac_clean_files
21441ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21442{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21443echo "$as_me: creating $CONFIG_STATUS" >&6;}
21444cat >$CONFIG_STATUS <<_ACEOF
21445#! $SHELL
21446# Generated by $as_me.
21447# Run this file to recreate the current configuration.
21448# Compiler output produced by configure, useful for debugging
21449# configure, is in config.log if it exists.
21450
21451debug=false
21452ac_cs_recheck=false
21453ac_cs_silent=false
21454SHELL=\${CONFIG_SHELL-$SHELL}
21455_ACEOF
21456
21457cat >>$CONFIG_STATUS <<\_ACEOF
21458## --------------------- ##
21459## M4sh Initialization.  ##
21460## --------------------- ##
21461
21462# Be more Bourne compatible
21463DUALCASE=1; export DUALCASE # for MKS sh
21464if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21465  emulate sh
21466  NULLCMD=:
21467  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21468  # is contrary to our usage.  Disable this feature.
21469  alias -g '${1+"$@"}'='"$@"'
21470  setopt NO_GLOB_SUBST
21471else
21472  case `(set -o) 2>/dev/null` in
21473  *posix*) set -o posix ;;
21474esac
21475
21476fi
21477
21478
21479
21480
21481# PATH needs CR
21482# Avoid depending upon Character Ranges.
21483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21486as_cr_digits='0123456789'
21487as_cr_alnum=$as_cr_Letters$as_cr_digits
21488
21489# The user is always right.
21490if test "${PATH_SEPARATOR+set}" != set; then
21491  echo "#! /bin/sh" >conf$$.sh
21492  echo  "exit 0"   >>conf$$.sh
21493  chmod +x conf$$.sh
21494  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21495    PATH_SEPARATOR=';'
21496  else
21497    PATH_SEPARATOR=:
21498  fi
21499  rm -f conf$$.sh
21500fi
21501
21502# Support unset when possible.
21503if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21504  as_unset=unset
21505else
21506  as_unset=false
21507fi
21508
21509
21510# IFS
21511# We need space, tab and new line, in precisely that order.  Quoting is
21512# there to prevent editors from complaining about space-tab.
21513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21514# splitting by setting IFS to empty value.)
21515as_nl='
21516'
21517IFS=" ""	$as_nl"
21518
21519# Find who we are.  Look in the path if we contain no directory separator.
21520case $0 in
21521  *[\\/]* ) as_myself=$0 ;;
21522  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523for as_dir in $PATH
21524do
21525  IFS=$as_save_IFS
21526  test -z "$as_dir" && as_dir=.
21527  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21528done
21529IFS=$as_save_IFS
21530
21531     ;;
21532esac
21533# We did not find ourselves, most probably we were run as `sh COMMAND'
21534# in which case we are not to be found in the path.
21535if test "x$as_myself" = x; then
21536  as_myself=$0
21537fi
21538if test ! -f "$as_myself"; then
21539  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21540  { (exit 1); exit 1; }
21541fi
21542
21543# Work around bugs in pre-3.0 UWIN ksh.
21544for as_var in ENV MAIL MAILPATH
21545do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21546done
21547PS1='$ '
21548PS2='> '
21549PS4='+ '
21550
21551# NLS nuisances.
21552for as_var in \
21553  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21554  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21555  LC_TELEPHONE LC_TIME
21556do
21557  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21558    eval $as_var=C; export $as_var
21559  else
21560    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21561  fi
21562done
21563
21564# Required to use basename.
21565if expr a : '\(a\)' >/dev/null 2>&1 &&
21566   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21567  as_expr=expr
21568else
21569  as_expr=false
21570fi
21571
21572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21573  as_basename=basename
21574else
21575  as_basename=false
21576fi
21577
21578
21579# Name of the executable.
21580as_me=`$as_basename -- "$0" ||
21581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21582	 X"$0" : 'X\(//\)$' \| \
21583	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21584echo X/"$0" |
21585    sed '/^.*\/\([^/][^/]*\)\/*$/{
21586	    s//\1/
21587	    q
21588	  }
21589	  /^X\/\(\/\/\)$/{
21590	    s//\1/
21591	    q
21592	  }
21593	  /^X\/\(\/\).*/{
21594	    s//\1/
21595	    q
21596	  }
21597	  s/.*/./; q'`
21598
21599# CDPATH.
21600$as_unset CDPATH
21601
21602
21603
21604  as_lineno_1=$LINENO
21605  as_lineno_2=$LINENO
21606  test "x$as_lineno_1" != "x$as_lineno_2" &&
21607  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21608
21609  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21610  # uniformly replaced by the line number.  The first 'sed' inserts a
21611  # line-number line after each line using $LINENO; the second 'sed'
21612  # does the real work.  The second script uses 'N' to pair each
21613  # line-number line with the line containing $LINENO, and appends
21614  # trailing '-' during substitution so that $LINENO is not a special
21615  # case at line end.
21616  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21618  # E. McMahon (1931-1989) for sed's syntax.  :-)
21619  sed -n '
21620    p
21621    /[$]LINENO/=
21622  ' <$as_myself |
21623    sed '
21624      s/[$]LINENO.*/&-/
21625      t lineno
21626      b
21627      :lineno
21628      N
21629      :loop
21630      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21631      t loop
21632      s/-\n.*//
21633    ' >$as_me.lineno &&
21634  chmod +x "$as_me.lineno" ||
21635    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21636   { (exit 1); exit 1; }; }
21637
21638  # Don't try to exec as it changes $[0], causing all sort of problems
21639  # (the dirname of $[0] is not the place where we might find the
21640  # original and so on.  Autoconf is especially sensitive to this).
21641  . "./$as_me.lineno"
21642  # Exit status is that of the last command.
21643  exit
21644}
21645
21646
21647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21648  as_dirname=dirname
21649else
21650  as_dirname=false
21651fi
21652
21653ECHO_C= ECHO_N= ECHO_T=
21654case `echo -n x` in
21655-n*)
21656  case `echo 'x\c'` in
21657  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21658  *)   ECHO_C='\c';;
21659  esac;;
21660*)
21661  ECHO_N='-n';;
21662esac
21663
21664if expr a : '\(a\)' >/dev/null 2>&1 &&
21665   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21666  as_expr=expr
21667else
21668  as_expr=false
21669fi
21670
21671rm -f conf$$ conf$$.exe conf$$.file
21672if test -d conf$$.dir; then
21673  rm -f conf$$.dir/conf$$.file
21674else
21675  rm -f conf$$.dir
21676  mkdir conf$$.dir
21677fi
21678echo >conf$$.file
21679if ln -s conf$$.file conf$$ 2>/dev/null; then
21680  as_ln_s='ln -s'
21681  # ... but there are two gotchas:
21682  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21683  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21684  # In both cases, we have to default to `cp -p'.
21685  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21686    as_ln_s='cp -p'
21687elif ln conf$$.file conf$$ 2>/dev/null; then
21688  as_ln_s=ln
21689else
21690  as_ln_s='cp -p'
21691fi
21692rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21693rmdir conf$$.dir 2>/dev/null
21694
21695if mkdir -p . 2>/dev/null; then
21696  as_mkdir_p=:
21697else
21698  test -d ./-p && rmdir ./-p
21699  as_mkdir_p=false
21700fi
21701
21702if test -x / >/dev/null 2>&1; then
21703  as_test_x='test -x'
21704else
21705  if ls -dL / >/dev/null 2>&1; then
21706    as_ls_L_option=L
21707  else
21708    as_ls_L_option=
21709  fi
21710  as_test_x='
21711    eval sh -c '\''
21712      if test -d "$1"; then
21713        test -d "$1/.";
21714      else
21715	case $1 in
21716        -*)set "./$1";;
21717	esac;
21718	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21719	???[sx]*):;;*)false;;esac;fi
21720    '\'' sh
21721  '
21722fi
21723as_executable_p=$as_test_x
21724
21725# Sed expression to map a string onto a valid CPP name.
21726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21727
21728# Sed expression to map a string onto a valid variable name.
21729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21730
21731
21732exec 6>&1
21733
21734# Save the log message, to keep $[0] and so on meaningful, and to
21735# report actual input values of CONFIG_FILES etc. instead of their
21736# values after options handling.
21737ac_log="
21738This file was extended by xf86-video-cirrus $as_me 1.3.0, which was
21739generated by GNU Autoconf 2.61.  Invocation command line was
21740
21741  CONFIG_FILES    = $CONFIG_FILES
21742  CONFIG_HEADERS  = $CONFIG_HEADERS
21743  CONFIG_LINKS    = $CONFIG_LINKS
21744  CONFIG_COMMANDS = $CONFIG_COMMANDS
21745  $ $0 $@
21746
21747on `(hostname || uname -n) 2>/dev/null | sed 1q`
21748"
21749
21750_ACEOF
21751
21752cat >>$CONFIG_STATUS <<_ACEOF
21753# Files that config.status was made for.
21754config_files="$ac_config_files"
21755config_headers="$ac_config_headers"
21756config_commands="$ac_config_commands"
21757
21758_ACEOF
21759
21760cat >>$CONFIG_STATUS <<\_ACEOF
21761ac_cs_usage="\
21762\`$as_me' instantiates files from templates according to the
21763current configuration.
21764
21765Usage: $0 [OPTIONS] [FILE]...
21766
21767  -h, --help       print this help, then exit
21768  -V, --version    print version number and configuration settings, then exit
21769  -q, --quiet      do not print progress messages
21770  -d, --debug      don't remove temporary files
21771      --recheck    update $as_me by reconfiguring in the same conditions
21772  --file=FILE[:TEMPLATE]
21773		   instantiate the configuration file FILE
21774  --header=FILE[:TEMPLATE]
21775		   instantiate the configuration header FILE
21776
21777Configuration files:
21778$config_files
21779
21780Configuration headers:
21781$config_headers
21782
21783Configuration commands:
21784$config_commands
21785
21786Report bugs to <bug-autoconf@gnu.org>."
21787
21788_ACEOF
21789cat >>$CONFIG_STATUS <<_ACEOF
21790ac_cs_version="\\
21791xf86-video-cirrus config.status 1.3.0
21792configured by $0, generated by GNU Autoconf 2.61,
21793  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21794
21795Copyright (C) 2006 Free Software Foundation, Inc.
21796This config.status script is free software; the Free Software Foundation
21797gives unlimited permission to copy, distribute and modify it."
21798
21799ac_pwd='$ac_pwd'
21800srcdir='$srcdir'
21801INSTALL='$INSTALL'
21802MKDIR_P='$MKDIR_P'
21803_ACEOF
21804
21805cat >>$CONFIG_STATUS <<\_ACEOF
21806# If no file are specified by the user, then we need to provide default
21807# value.  By we need to know if files were specified by the user.
21808ac_need_defaults=:
21809while test $# != 0
21810do
21811  case $1 in
21812  --*=*)
21813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21815    ac_shift=:
21816    ;;
21817  *)
21818    ac_option=$1
21819    ac_optarg=$2
21820    ac_shift=shift
21821    ;;
21822  esac
21823
21824  case $ac_option in
21825  # Handling of the options.
21826  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21827    ac_cs_recheck=: ;;
21828  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21829    echo "$ac_cs_version"; exit ;;
21830  --debug | --debu | --deb | --de | --d | -d )
21831    debug=: ;;
21832  --file | --fil | --fi | --f )
21833    $ac_shift
21834    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21835    ac_need_defaults=false;;
21836  --header | --heade | --head | --hea )
21837    $ac_shift
21838    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21839    ac_need_defaults=false;;
21840  --he | --h)
21841    # Conflict between --help and --header
21842    { echo "$as_me: error: ambiguous option: $1
21843Try \`$0 --help' for more information." >&2
21844   { (exit 1); exit 1; }; };;
21845  --help | --hel | -h )
21846    echo "$ac_cs_usage"; exit ;;
21847  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21848  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21849    ac_cs_silent=: ;;
21850
21851  # This is an error.
21852  -*) { echo "$as_me: error: unrecognized option: $1
21853Try \`$0 --help' for more information." >&2
21854   { (exit 1); exit 1; }; } ;;
21855
21856  *) ac_config_targets="$ac_config_targets $1"
21857     ac_need_defaults=false ;;
21858
21859  esac
21860  shift
21861done
21862
21863ac_configure_extra_args=
21864
21865if $ac_cs_silent; then
21866  exec 6>/dev/null
21867  ac_configure_extra_args="$ac_configure_extra_args --silent"
21868fi
21869
21870_ACEOF
21871cat >>$CONFIG_STATUS <<_ACEOF
21872if \$ac_cs_recheck; then
21873  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21874  CONFIG_SHELL=$SHELL
21875  export CONFIG_SHELL
21876  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21877fi
21878
21879_ACEOF
21880cat >>$CONFIG_STATUS <<\_ACEOF
21881exec 5>>config.log
21882{
21883  echo
21884  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21885## Running $as_me. ##
21886_ASBOX
21887  echo "$ac_log"
21888} >&5
21889
21890_ACEOF
21891cat >>$CONFIG_STATUS <<_ACEOF
21892#
21893# INIT-COMMANDS
21894#
21895AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21896
21897_ACEOF
21898
21899cat >>$CONFIG_STATUS <<\_ACEOF
21900
21901# Handling of arguments.
21902for ac_config_target in $ac_config_targets
21903do
21904  case $ac_config_target in
21905    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21906    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21907    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21908    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21909    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21910
21911  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21912echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21913   { (exit 1); exit 1; }; };;
21914  esac
21915done
21916
21917
21918# If the user did not use the arguments to specify the items to instantiate,
21919# then the envvar interface is used.  Set only those that are not.
21920# We use the long form for the default assignment because of an extremely
21921# bizarre bug on SunOS 4.1.3.
21922if $ac_need_defaults; then
21923  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21924  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21925  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21926fi
21927
21928# Have a temporary directory for convenience.  Make it in the build tree
21929# simply because there is no reason against having it here, and in addition,
21930# creating and moving files from /tmp can sometimes cause problems.
21931# Hook for its removal unless debugging.
21932# Note that there is a small window in which the directory will not be cleaned:
21933# after its creation but before its name has been assigned to `$tmp'.
21934$debug ||
21935{
21936  tmp=
21937  trap 'exit_status=$?
21938  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21939' 0
21940  trap '{ (exit 1); exit 1; }' 1 2 13 15
21941}
21942# Create a (secure) tmp directory for tmp files.
21943
21944{
21945  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21946  test -n "$tmp" && test -d "$tmp"
21947}  ||
21948{
21949  tmp=./conf$$-$RANDOM
21950  (umask 077 && mkdir "$tmp")
21951} ||
21952{
21953   echo "$me: cannot create a temporary directory in ." >&2
21954   { (exit 1); exit 1; }
21955}
21956
21957#
21958# Set up the sed scripts for CONFIG_FILES section.
21959#
21960
21961# No need to generate the scripts if there are no CONFIG_FILES.
21962# This happens for instance when ./config.status config.h
21963if test -n "$CONFIG_FILES"; then
21964
21965_ACEOF
21966
21967
21968
21969ac_delim='%!_!# '
21970for ac_last_try in false false false false false :; do
21971  cat >conf$$subs.sed <<_ACEOF
21972SHELL!$SHELL$ac_delim
21973PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21974PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21975PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21976PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21977PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21978PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21979exec_prefix!$exec_prefix$ac_delim
21980prefix!$prefix$ac_delim
21981program_transform_name!$program_transform_name$ac_delim
21982bindir!$bindir$ac_delim
21983sbindir!$sbindir$ac_delim
21984libexecdir!$libexecdir$ac_delim
21985datarootdir!$datarootdir$ac_delim
21986datadir!$datadir$ac_delim
21987sysconfdir!$sysconfdir$ac_delim
21988sharedstatedir!$sharedstatedir$ac_delim
21989localstatedir!$localstatedir$ac_delim
21990includedir!$includedir$ac_delim
21991oldincludedir!$oldincludedir$ac_delim
21992docdir!$docdir$ac_delim
21993infodir!$infodir$ac_delim
21994htmldir!$htmldir$ac_delim
21995dvidir!$dvidir$ac_delim
21996pdfdir!$pdfdir$ac_delim
21997psdir!$psdir$ac_delim
21998libdir!$libdir$ac_delim
21999localedir!$localedir$ac_delim
22000mandir!$mandir$ac_delim
22001DEFS!$DEFS$ac_delim
22002ECHO_C!$ECHO_C$ac_delim
22003ECHO_N!$ECHO_N$ac_delim
22004ECHO_T!$ECHO_T$ac_delim
22005LIBS!$LIBS$ac_delim
22006build_alias!$build_alias$ac_delim
22007host_alias!$host_alias$ac_delim
22008target_alias!$target_alias$ac_delim
22009INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011INSTALL_DATA!$INSTALL_DATA$ac_delim
22012am__isrc!$am__isrc$ac_delim
22013CYGPATH_W!$CYGPATH_W$ac_delim
22014PACKAGE!$PACKAGE$ac_delim
22015VERSION!$VERSION$ac_delim
22016ACLOCAL!$ACLOCAL$ac_delim
22017AUTOCONF!$AUTOCONF$ac_delim
22018AUTOMAKE!$AUTOMAKE$ac_delim
22019AUTOHEADER!$AUTOHEADER$ac_delim
22020MAKEINFO!$MAKEINFO$ac_delim
22021install_sh!$install_sh$ac_delim
22022STRIP!$STRIP$ac_delim
22023INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22024mkdir_p!$mkdir_p$ac_delim
22025AWK!$AWK$ac_delim
22026SET_MAKE!$SET_MAKE$ac_delim
22027am__leading_dot!$am__leading_dot$ac_delim
22028AMTAR!$AMTAR$ac_delim
22029am__tar!$am__tar$ac_delim
22030am__untar!$am__untar$ac_delim
22031MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22032MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22033MAINT!$MAINT$ac_delim
22034build!$build$ac_delim
22035build_cpu!$build_cpu$ac_delim
22036build_vendor!$build_vendor$ac_delim
22037build_os!$build_os$ac_delim
22038host!$host$ac_delim
22039host_cpu!$host_cpu$ac_delim
22040host_vendor!$host_vendor$ac_delim
22041host_os!$host_os$ac_delim
22042CC!$CC$ac_delim
22043CFLAGS!$CFLAGS$ac_delim
22044LDFLAGS!$LDFLAGS$ac_delim
22045CPPFLAGS!$CPPFLAGS$ac_delim
22046ac_ct_CC!$ac_ct_CC$ac_delim
22047EXEEXT!$EXEEXT$ac_delim
22048OBJEXT!$OBJEXT$ac_delim
22049DEPDIR!$DEPDIR$ac_delim
22050am__include!$am__include$ac_delim
22051am__quote!$am__quote$ac_delim
22052AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22053AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22054AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22055CCDEPMODE!$CCDEPMODE$ac_delim
22056am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22057am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22058GREP!$GREP$ac_delim
22059EGREP!$EGREP$ac_delim
22060LN_S!$LN_S$ac_delim
22061ECHO!$ECHO$ac_delim
22062AR!$AR$ac_delim
22063RANLIB!$RANLIB$ac_delim
22064CPP!$CPP$ac_delim
22065CXX!$CXX$ac_delim
22066CXXFLAGS!$CXXFLAGS$ac_delim
22067ac_ct_CXX!$ac_ct_CXX$ac_delim
22068CXXDEPMODE!$CXXDEPMODE$ac_delim
22069_ACEOF
22070
22071  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22072    break
22073  elif $ac_last_try; then
22074    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22075echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22076   { (exit 1); exit 1; }; }
22077  else
22078    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079  fi
22080done
22081
22082ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22083if test -n "$ac_eof"; then
22084  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22085  ac_eof=`expr $ac_eof + 1`
22086fi
22087
22088cat >>$CONFIG_STATUS <<_ACEOF
22089cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22090/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22091_ACEOF
22092sed '
22093s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22094s/^/s,@/; s/!/@,|#_!!_#|/
22095:n
22096t n
22097s/'"$ac_delim"'$/,g/; t
22098s/$/\\/; p
22099N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22100' >>$CONFIG_STATUS <conf$$subs.sed
22101rm -f conf$$subs.sed
22102cat >>$CONFIG_STATUS <<_ACEOF
22103CEOF$ac_eof
22104_ACEOF
22105
22106
22107ac_delim='%!_!# '
22108for ac_last_try in false false false false false :; do
22109  cat >conf$$subs.sed <<_ACEOF
22110am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22111am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22112CXXCPP!$CXXCPP$ac_delim
22113F77!$F77$ac_delim
22114FFLAGS!$FFLAGS$ac_delim
22115ac_ct_F77!$ac_ct_F77$ac_delim
22116LIBTOOL!$LIBTOOL$ac_delim
22117CWARNFLAGS!$CWARNFLAGS$ac_delim
22118PKG_CONFIG!$PKG_CONFIG$ac_delim
22119XORG_CFLAGS!$XORG_CFLAGS$ac_delim
22120XORG_LIBS!$XORG_LIBS$ac_delim
22121PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
22122PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
22123XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
22124XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
22125moduledir!$moduledir$ac_delim
22126DRIVER_NAME!$DRIVER_NAME$ac_delim
22127APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22128LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22129FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22130MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22131DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22132ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22133APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22134LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22135FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22136MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22137DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22138ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22139CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
22140distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim
22141LIBOBJS!$LIBOBJS$ac_delim
22142LTLIBOBJS!$LTLIBOBJS$ac_delim
22143_ACEOF
22144
22145  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
22146    break
22147  elif $ac_last_try; then
22148    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22149echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22150   { (exit 1); exit 1; }; }
22151  else
22152    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153  fi
22154done
22155
22156ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22157if test -n "$ac_eof"; then
22158  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22159  ac_eof=`expr $ac_eof + 1`
22160fi
22161
22162cat >>$CONFIG_STATUS <<_ACEOF
22163cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22165_ACEOF
22166sed '
22167s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22168s/^/s,@/; s/!/@,|#_!!_#|/
22169:n
22170t n
22171s/'"$ac_delim"'$/,g/; t
22172s/$/\\/; p
22173N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22174' >>$CONFIG_STATUS <conf$$subs.sed
22175rm -f conf$$subs.sed
22176cat >>$CONFIG_STATUS <<_ACEOF
22177:end
22178s/|#_!!_#|//g
22179CEOF$ac_eof
22180_ACEOF
22181
22182
22183# VPATH may cause trouble with some makes, so we remove $(srcdir),
22184# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22185# trailing colons and then remove the whole line if VPATH becomes empty
22186# (actually we leave an empty line to preserve line numbers).
22187if test "x$srcdir" = x.; then
22188  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22189s/:*\$(srcdir):*/:/
22190s/:*\${srcdir}:*/:/
22191s/:*@srcdir@:*/:/
22192s/^\([^=]*=[	 ]*\):*/\1/
22193s/:*$//
22194s/^[^=]*=[	 ]*$//
22195}'
22196fi
22197
22198cat >>$CONFIG_STATUS <<\_ACEOF
22199fi # test -n "$CONFIG_FILES"
22200
22201
22202for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22203do
22204  case $ac_tag in
22205  :[FHLC]) ac_mode=$ac_tag; continue;;
22206  esac
22207  case $ac_mode$ac_tag in
22208  :[FHL]*:*);;
22209  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22210echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22211   { (exit 1); exit 1; }; };;
22212  :[FH]-) ac_tag=-:-;;
22213  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22214  esac
22215  ac_save_IFS=$IFS
22216  IFS=:
22217  set x $ac_tag
22218  IFS=$ac_save_IFS
22219  shift
22220  ac_file=$1
22221  shift
22222
22223  case $ac_mode in
22224  :L) ac_source=$1;;
22225  :[FH])
22226    ac_file_inputs=
22227    for ac_f
22228    do
22229      case $ac_f in
22230      -) ac_f="$tmp/stdin";;
22231      *) # Look for the file first in the build tree, then in the source tree
22232	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22233	 # because $ac_f cannot contain `:'.
22234	 test -f "$ac_f" ||
22235	   case $ac_f in
22236	   [\\/$]*) false;;
22237	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22238	   esac ||
22239	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22240echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22241   { (exit 1); exit 1; }; };;
22242      esac
22243      ac_file_inputs="$ac_file_inputs $ac_f"
22244    done
22245
22246    # Let's still pretend it is `configure' which instantiates (i.e., don't
22247    # use $as_me), people would be surprised to read:
22248    #    /* config.h.  Generated by config.status.  */
22249    configure_input="Generated from "`IFS=:
22250	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22251    if test x"$ac_file" != x-; then
22252      configure_input="$ac_file.  $configure_input"
22253      { echo "$as_me:$LINENO: creating $ac_file" >&5
22254echo "$as_me: creating $ac_file" >&6;}
22255    fi
22256
22257    case $ac_tag in
22258    *:-:* | *:-) cat >"$tmp/stdin";;
22259    esac
22260    ;;
22261  esac
22262
22263  ac_dir=`$as_dirname -- "$ac_file" ||
22264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22265	 X"$ac_file" : 'X\(//\)[^/]' \| \
22266	 X"$ac_file" : 'X\(//\)$' \| \
22267	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22268echo X"$ac_file" |
22269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22270	    s//\1/
22271	    q
22272	  }
22273	  /^X\(\/\/\)[^/].*/{
22274	    s//\1/
22275	    q
22276	  }
22277	  /^X\(\/\/\)$/{
22278	    s//\1/
22279	    q
22280	  }
22281	  /^X\(\/\).*/{
22282	    s//\1/
22283	    q
22284	  }
22285	  s/.*/./; q'`
22286  { as_dir="$ac_dir"
22287  case $as_dir in #(
22288  -*) as_dir=./$as_dir;;
22289  esac
22290  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22291    as_dirs=
22292    while :; do
22293      case $as_dir in #(
22294      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22295      *) as_qdir=$as_dir;;
22296      esac
22297      as_dirs="'$as_qdir' $as_dirs"
22298      as_dir=`$as_dirname -- "$as_dir" ||
22299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300	 X"$as_dir" : 'X\(//\)[^/]' \| \
22301	 X"$as_dir" : 'X\(//\)$' \| \
22302	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22303echo X"$as_dir" |
22304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22305	    s//\1/
22306	    q
22307	  }
22308	  /^X\(\/\/\)[^/].*/{
22309	    s//\1/
22310	    q
22311	  }
22312	  /^X\(\/\/\)$/{
22313	    s//\1/
22314	    q
22315	  }
22316	  /^X\(\/\).*/{
22317	    s//\1/
22318	    q
22319	  }
22320	  s/.*/./; q'`
22321      test -d "$as_dir" && break
22322    done
22323    test -z "$as_dirs" || eval "mkdir $as_dirs"
22324  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22325echo "$as_me: error: cannot create directory $as_dir" >&2;}
22326   { (exit 1); exit 1; }; }; }
22327  ac_builddir=.
22328
22329case "$ac_dir" in
22330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22331*)
22332  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22333  # A ".." for each directory in $ac_dir_suffix.
22334  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22335  case $ac_top_builddir_sub in
22336  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22338  esac ;;
22339esac
22340ac_abs_top_builddir=$ac_pwd
22341ac_abs_builddir=$ac_pwd$ac_dir_suffix
22342# for backward compatibility:
22343ac_top_builddir=$ac_top_build_prefix
22344
22345case $srcdir in
22346  .)  # We are building in place.
22347    ac_srcdir=.
22348    ac_top_srcdir=$ac_top_builddir_sub
22349    ac_abs_top_srcdir=$ac_pwd ;;
22350  [\\/]* | ?:[\\/]* )  # Absolute name.
22351    ac_srcdir=$srcdir$ac_dir_suffix;
22352    ac_top_srcdir=$srcdir
22353    ac_abs_top_srcdir=$srcdir ;;
22354  *) # Relative name.
22355    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22356    ac_top_srcdir=$ac_top_build_prefix$srcdir
22357    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22358esac
22359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22360
22361
22362  case $ac_mode in
22363  :F)
22364  #
22365  # CONFIG_FILE
22366  #
22367
22368  case $INSTALL in
22369  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22370  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22371  esac
22372  ac_MKDIR_P=$MKDIR_P
22373  case $MKDIR_P in
22374  [\\/$]* | ?:[\\/]* ) ;;
22375  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22376  esac
22377_ACEOF
22378
22379cat >>$CONFIG_STATUS <<\_ACEOF
22380# If the template does not know about datarootdir, expand it.
22381# FIXME: This hack should be removed a few years after 2.60.
22382ac_datarootdir_hack=; ac_datarootdir_seen=
22383
22384case `sed -n '/datarootdir/ {
22385  p
22386  q
22387}
22388/@datadir@/p
22389/@docdir@/p
22390/@infodir@/p
22391/@localedir@/p
22392/@mandir@/p
22393' $ac_file_inputs` in
22394*datarootdir*) ac_datarootdir_seen=yes;;
22395*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22396  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22397echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22398_ACEOF
22399cat >>$CONFIG_STATUS <<_ACEOF
22400  ac_datarootdir_hack='
22401  s&@datadir@&$datadir&g
22402  s&@docdir@&$docdir&g
22403  s&@infodir@&$infodir&g
22404  s&@localedir@&$localedir&g
22405  s&@mandir@&$mandir&g
22406    s&\\\${datarootdir}&$datarootdir&g' ;;
22407esac
22408_ACEOF
22409
22410# Neutralize VPATH when `$srcdir' = `.'.
22411# Shell code in configure.ac might set extrasub.
22412# FIXME: do we really want to maintain this feature?
22413cat >>$CONFIG_STATUS <<_ACEOF
22414  sed "$ac_vpsub
22415$extrasub
22416_ACEOF
22417cat >>$CONFIG_STATUS <<\_ACEOF
22418:t
22419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22420s&@configure_input@&$configure_input&;t t
22421s&@top_builddir@&$ac_top_builddir_sub&;t t
22422s&@srcdir@&$ac_srcdir&;t t
22423s&@abs_srcdir@&$ac_abs_srcdir&;t t
22424s&@top_srcdir@&$ac_top_srcdir&;t t
22425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22426s&@builddir@&$ac_builddir&;t t
22427s&@abs_builddir@&$ac_abs_builddir&;t t
22428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22429s&@INSTALL@&$ac_INSTALL&;t t
22430s&@MKDIR_P@&$ac_MKDIR_P&;t t
22431$ac_datarootdir_hack
22432" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22433
22434test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22435  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22436  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22437  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22438which seems to be undefined.  Please make sure it is defined." >&5
22439echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22440which seems to be undefined.  Please make sure it is defined." >&2;}
22441
22442  rm -f "$tmp/stdin"
22443  case $ac_file in
22444  -) cat "$tmp/out"; rm -f "$tmp/out";;
22445  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22446  esac
22447 ;;
22448  :H)
22449  #
22450  # CONFIG_HEADER
22451  #
22452_ACEOF
22453
22454# Transform confdefs.h into a sed script `conftest.defines', that
22455# substitutes the proper values into config.h.in to produce config.h.
22456rm -f conftest.defines conftest.tail
22457# First, append a space to every undef/define line, to ease matching.
22458echo 's/$/ /' >conftest.defines
22459# Then, protect against being on the right side of a sed subst, or in
22460# an unquoted here document, in config.status.  If some macros were
22461# called several times there might be several #defines for the same
22462# symbol, which is useless.  But do not sort them, since the last
22463# AC_DEFINE must be honored.
22464ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22465# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22466# NAME is the cpp macro being defined, VALUE is the value it is being given.
22467# PARAMS is the parameter list in the macro definition--in most cases, it's
22468# just an empty string.
22469ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22470ac_dB='\\)[	 (].*,\\1define\\2'
22471ac_dC=' '
22472ac_dD=' ,'
22473
22474uniq confdefs.h |
22475  sed -n '
22476	t rset
22477	:rset
22478	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22479	t ok
22480	d
22481	:ok
22482	s/[\\&,]/\\&/g
22483	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22484	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22485  ' >>conftest.defines
22486
22487# Remove the space that was appended to ease matching.
22488# Then replace #undef with comments.  This is necessary, for
22489# example, in the case of _POSIX_SOURCE, which is predefined and required
22490# on some systems where configure will not decide to define it.
22491# (The regexp can be short, since the line contains either #define or #undef.)
22492echo 's/ $//
22493s,^[	 #]*u.*,/* & */,' >>conftest.defines
22494
22495# Break up conftest.defines:
22496ac_max_sed_lines=50
22497
22498# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22499# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22500# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22501# et cetera.
22502ac_in='$ac_file_inputs'
22503ac_out='"$tmp/out1"'
22504ac_nxt='"$tmp/out2"'
22505
22506while :
22507do
22508  # Write a here document:
22509    cat >>$CONFIG_STATUS <<_ACEOF
22510    # First, check the format of the line:
22511    cat >"\$tmp/defines.sed" <<\\CEOF
22512/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22513/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22514b
22515:def
22516_ACEOF
22517  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22518  echo 'CEOF
22519    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22520  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22521  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22522  grep . conftest.tail >/dev/null || break
22523  rm -f conftest.defines
22524  mv conftest.tail conftest.defines
22525done
22526rm -f conftest.defines conftest.tail
22527
22528echo "ac_result=$ac_in" >>$CONFIG_STATUS
22529cat >>$CONFIG_STATUS <<\_ACEOF
22530  if test x"$ac_file" != x-; then
22531    echo "/* $configure_input  */" >"$tmp/config.h"
22532    cat "$ac_result" >>"$tmp/config.h"
22533    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22534      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22535echo "$as_me: $ac_file is unchanged" >&6;}
22536    else
22537      rm -f $ac_file
22538      mv "$tmp/config.h" $ac_file
22539    fi
22540  else
22541    echo "/* $configure_input  */"
22542    cat "$ac_result"
22543  fi
22544  rm -f "$tmp/out12"
22545# Compute $ac_file's index in $config_headers.
22546_am_stamp_count=1
22547for _am_header in $config_headers :; do
22548  case $_am_header in
22549    $ac_file | $ac_file:* )
22550      break ;;
22551    * )
22552      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22553  esac
22554done
22555echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22556$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557	 X$ac_file : 'X\(//\)[^/]' \| \
22558	 X$ac_file : 'X\(//\)$' \| \
22559	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22560echo X$ac_file |
22561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22562	    s//\1/
22563	    q
22564	  }
22565	  /^X\(\/\/\)[^/].*/{
22566	    s//\1/
22567	    q
22568	  }
22569	  /^X\(\/\/\)$/{
22570	    s//\1/
22571	    q
22572	  }
22573	  /^X\(\/\).*/{
22574	    s//\1/
22575	    q
22576	  }
22577	  s/.*/./; q'`/stamp-h$_am_stamp_count
22578 ;;
22579
22580  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22581echo "$as_me: executing $ac_file commands" >&6;}
22582 ;;
22583  esac
22584
22585
22586  case $ac_file$ac_mode in
22587    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22588  # Strip MF so we end up with the name of the file.
22589  mf=`echo "$mf" | sed -e 's/:.*$//'`
22590  # Check whether this is an Automake generated Makefile or not.
22591  # We used to match only the files named `Makefile.in', but
22592  # some people rename them; so instead we look at the file content.
22593  # Grep'ing the first line is not enough: some people post-process
22594  # each Makefile.in and add a new line on top of each file to say so.
22595  # Grep'ing the whole file is not good either: AIX grep has a line
22596  # limit of 2048, but all sed's we know have understand at least 4000.
22597  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22598    dirpart=`$as_dirname -- "$mf" ||
22599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600	 X"$mf" : 'X\(//\)[^/]' \| \
22601	 X"$mf" : 'X\(//\)$' \| \
22602	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22603echo X"$mf" |
22604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605	    s//\1/
22606	    q
22607	  }
22608	  /^X\(\/\/\)[^/].*/{
22609	    s//\1/
22610	    q
22611	  }
22612	  /^X\(\/\/\)$/{
22613	    s//\1/
22614	    q
22615	  }
22616	  /^X\(\/\).*/{
22617	    s//\1/
22618	    q
22619	  }
22620	  s/.*/./; q'`
22621  else
22622    continue
22623  fi
22624  # Extract the definition of DEPDIR, am__include, and am__quote
22625  # from the Makefile without running `make'.
22626  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22627  test -z "$DEPDIR" && continue
22628  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22629  test -z "am__include" && continue
22630  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22631  # When using ansi2knr, U may be empty or an underscore; expand it
22632  U=`sed -n 's/^U = //p' < "$mf"`
22633  # Find all dependency output files, they are included files with
22634  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22635  # simplest approach to changing $(DEPDIR) to its actual value in the
22636  # expansion.
22637  for file in `sed -n "
22638    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22639       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22640    # Make sure the directory exists.
22641    test -f "$dirpart/$file" && continue
22642    fdir=`$as_dirname -- "$file" ||
22643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644	 X"$file" : 'X\(//\)[^/]' \| \
22645	 X"$file" : 'X\(//\)$' \| \
22646	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22647echo X"$file" |
22648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22649	    s//\1/
22650	    q
22651	  }
22652	  /^X\(\/\/\)[^/].*/{
22653	    s//\1/
22654	    q
22655	  }
22656	  /^X\(\/\/\)$/{
22657	    s//\1/
22658	    q
22659	  }
22660	  /^X\(\/\).*/{
22661	    s//\1/
22662	    q
22663	  }
22664	  s/.*/./; q'`
22665    { as_dir=$dirpart/$fdir
22666  case $as_dir in #(
22667  -*) as_dir=./$as_dir;;
22668  esac
22669  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22670    as_dirs=
22671    while :; do
22672      case $as_dir in #(
22673      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22674      *) as_qdir=$as_dir;;
22675      esac
22676      as_dirs="'$as_qdir' $as_dirs"
22677      as_dir=`$as_dirname -- "$as_dir" ||
22678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22679	 X"$as_dir" : 'X\(//\)[^/]' \| \
22680	 X"$as_dir" : 'X\(//\)$' \| \
22681	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22682echo X"$as_dir" |
22683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22684	    s//\1/
22685	    q
22686	  }
22687	  /^X\(\/\/\)[^/].*/{
22688	    s//\1/
22689	    q
22690	  }
22691	  /^X\(\/\/\)$/{
22692	    s//\1/
22693	    q
22694	  }
22695	  /^X\(\/\).*/{
22696	    s//\1/
22697	    q
22698	  }
22699	  s/.*/./; q'`
22700      test -d "$as_dir" && break
22701    done
22702    test -z "$as_dirs" || eval "mkdir $as_dirs"
22703  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22704echo "$as_me: error: cannot create directory $as_dir" >&2;}
22705   { (exit 1); exit 1; }; }; }
22706    # echo "creating $dirpart/$file"
22707    echo '# dummy' > "$dirpart/$file"
22708  done
22709done
22710 ;;
22711
22712  esac
22713done # for ac_tag
22714
22715
22716{ (exit 0); exit 0; }
22717_ACEOF
22718chmod +x $CONFIG_STATUS
22719ac_clean_files=$ac_clean_files_save
22720
22721
22722# configure is writing to config.log, and then calls config.status.
22723# config.status does its own redirection, appending to config.log.
22724# Unfortunately, on DOS this fails, as config.log is still kept open
22725# by configure, so config.status won't be able to write to it; its
22726# output is simply discarded.  So we exec the FD to /dev/null,
22727# effectively closing config.log, so it can be properly (re)opened and
22728# appended to by config.status.  When coming back to configure, we
22729# need to make the FD available again.
22730if test "$no_create" != yes; then
22731  ac_cs_success=:
22732  ac_config_status_args=
22733  test "$silent" = yes &&
22734    ac_config_status_args="$ac_config_status_args --quiet"
22735  exec 5>/dev/null
22736  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22737  exec 5>>config.log
22738  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22739  # would make configure fail if this is the last instruction.
22740  $ac_cs_success || { (exit 1); exit 1; }
22741fi
22742
22743