configure revision b534f209
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xf86-video-ast 0.93.9.
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-ast'
730PACKAGE_TARNAME='xf86-video-ast'
731PACKAGE_VERSION='0.93.9'
732PACKAGE_STRING='xf86-video-ast 0.93.9'
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
834CC
835CFLAGS
836LDFLAGS
837CPPFLAGS
838ac_ct_CC
839EXEEXT
840OBJEXT
841DEPDIR
842am__include
843am__quote
844AMDEP_TRUE
845AMDEP_FALSE
846AMDEPBACKSLASH
847CCDEPMODE
848am__fastdepCC_TRUE
849am__fastdepCC_FALSE
850CPP
851GREP
852EGREP
853CWARNFLAGS
854STRICT_CFLAGS
855CHANGELOG_CMD
856PKG_CONFIG
857INSTALL_CMD
858build
859build_cpu
860build_vendor
861build_os
862host
863host_cpu
864host_vendor
865host_os
866SED
867APP_MAN_SUFFIX
868LIB_MAN_SUFFIX
869FILE_MAN_SUFFIX
870MISC_MAN_SUFFIX
871DRIVER_MAN_SUFFIX
872ADMIN_MAN_SUFFIX
873APP_MAN_DIR
874LIB_MAN_DIR
875FILE_MAN_DIR
876MISC_MAN_DIR
877DRIVER_MAN_DIR
878ADMIN_MAN_DIR
879XORG_MAN_PAGE
880MAN_SUBSTS
881AM_DEFAULT_VERBOSITY
882LN_S
883ECHO
884AR
885RANLIB
886CXX
887CXXFLAGS
888ac_ct_CXX
889CXXDEPMODE
890am__fastdepCXX_TRUE
891am__fastdepCXX_FALSE
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897XORG_CFLAGS
898XORG_LIBS
899PCIACCESS_CFLAGS
900PCIACCESS_LIBS
901XSERVER_LIBPCIACCESS_TRUE
902XSERVER_LIBPCIACCESS_FALSE
903moduledir
904DRIVER_NAME
905LIBOBJS
906LTLIBOBJS'
907ac_subst_files=''
908      ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917PKG_CONFIG
918CXX
919CXXFLAGS
920CCC
921CXXCPP
922F77
923FFLAGS
924XORG_CFLAGS
925XORG_LIBS
926PCIACCESS_CFLAGS
927PCIACCESS_LIBS'
928
929
930# Initialize some variables set by options.
931ac_init_help=
932ac_init_version=false
933# The variables have the same names as the options, with
934# dashes changed to underlines.
935cache_file=/dev/null
936exec_prefix=NONE
937no_create=
938no_recursion=
939prefix=NONE
940program_prefix=NONE
941program_suffix=NONE
942program_transform_name=s,x,x,
943silent=
944site=
945srcdir=
946verbose=
947x_includes=NONE
948x_libraries=NONE
949
950# Installation directory options.
951# These are left unexpanded so users can "make install exec_prefix=/foo"
952# and all the variables that are supposed to be based on exec_prefix
953# by default will actually change.
954# Use braces instead of parens because sh, perl, etc. also accept them.
955# (The list follows the same order as the GNU Coding Standards.)
956bindir='${exec_prefix}/bin'
957sbindir='${exec_prefix}/sbin'
958libexecdir='${exec_prefix}/libexec'
959datarootdir='${prefix}/share'
960datadir='${datarootdir}'
961sysconfdir='${prefix}/etc'
962sharedstatedir='${prefix}/com'
963localstatedir='${prefix}/var'
964includedir='${prefix}/include'
965oldincludedir='/usr/include'
966docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967infodir='${datarootdir}/info'
968htmldir='${docdir}'
969dvidir='${docdir}'
970pdfdir='${docdir}'
971psdir='${docdir}'
972libdir='${exec_prefix}/lib'
973localedir='${datarootdir}/locale'
974mandir='${datarootdir}/man'
975
976ac_prev=
977ac_dashdash=
978for ac_option
979do
980  # If the previous option needs an argument, assign it.
981  if test -n "$ac_prev"; then
982    eval $ac_prev=\$ac_option
983    ac_prev=
984    continue
985  fi
986
987  case $ac_option in
988  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989  *)	ac_optarg=yes ;;
990  esac
991
992  # Accept the important Cygnus configure options, so we can diagnose typos.
993
994  case $ac_dashdash$ac_option in
995  --)
996    ac_dashdash=yes ;;
997
998  -bindir | --bindir | --bindi | --bind | --bin | --bi)
999    ac_prev=bindir ;;
1000  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001    bindir=$ac_optarg ;;
1002
1003  -build | --build | --buil | --bui | --bu)
1004    ac_prev=build_alias ;;
1005  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006    build_alias=$ac_optarg ;;
1007
1008  -cache-file | --cache-file | --cache-fil | --cache-fi \
1009  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010    ac_prev=cache_file ;;
1011  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013    cache_file=$ac_optarg ;;
1014
1015  --config-cache | -C)
1016    cache_file=config.cache ;;
1017
1018  -datadir | --datadir | --datadi | --datad)
1019    ac_prev=datadir ;;
1020  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021    datadir=$ac_optarg ;;
1022
1023  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024  | --dataroo | --dataro | --datar)
1025    ac_prev=datarootdir ;;
1026  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028    datarootdir=$ac_optarg ;;
1029
1030  -disable-* | --disable-*)
1031    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035   { (exit 1); exit 1; }; }
1036    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037    eval enable_$ac_feature=no ;;
1038
1039  -docdir | --docdir | --docdi | --doc | --do)
1040    ac_prev=docdir ;;
1041  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042    docdir=$ac_optarg ;;
1043
1044  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045    ac_prev=dvidir ;;
1046  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047    dvidir=$ac_optarg ;;
1048
1049  -enable-* | --enable-*)
1050    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054   { (exit 1); exit 1; }; }
1055    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056    eval enable_$ac_feature=\$ac_optarg ;;
1057
1058  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060  | --exec | --exe | --ex)
1061    ac_prev=exec_prefix ;;
1062  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064  | --exec=* | --exe=* | --ex=*)
1065    exec_prefix=$ac_optarg ;;
1066
1067  -gas | --gas | --ga | --g)
1068    # Obsolete; use --with-gas.
1069    with_gas=yes ;;
1070
1071  -help | --help | --hel | --he | -h)
1072    ac_init_help=long ;;
1073  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074    ac_init_help=recursive ;;
1075  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076    ac_init_help=short ;;
1077
1078  -host | --host | --hos | --ho)
1079    ac_prev=host_alias ;;
1080  -host=* | --host=* | --hos=* | --ho=*)
1081    host_alias=$ac_optarg ;;
1082
1083  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084    ac_prev=htmldir ;;
1085  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086  | --ht=*)
1087    htmldir=$ac_optarg ;;
1088
1089  -includedir | --includedir | --includedi | --included | --include \
1090  | --includ | --inclu | --incl | --inc)
1091    ac_prev=includedir ;;
1092  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093  | --includ=* | --inclu=* | --incl=* | --inc=*)
1094    includedir=$ac_optarg ;;
1095
1096  -infodir | --infodir | --infodi | --infod | --info | --inf)
1097    ac_prev=infodir ;;
1098  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099    infodir=$ac_optarg ;;
1100
1101  -libdir | --libdir | --libdi | --libd)
1102    ac_prev=libdir ;;
1103  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104    libdir=$ac_optarg ;;
1105
1106  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107  | --libexe | --libex | --libe)
1108    ac_prev=libexecdir ;;
1109  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110  | --libexe=* | --libex=* | --libe=*)
1111    libexecdir=$ac_optarg ;;
1112
1113  -localedir | --localedir | --localedi | --localed | --locale)
1114    ac_prev=localedir ;;
1115  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116    localedir=$ac_optarg ;;
1117
1118  -localstatedir | --localstatedir | --localstatedi | --localstated \
1119  | --localstate | --localstat | --localsta | --localst | --locals)
1120    ac_prev=localstatedir ;;
1121  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123    localstatedir=$ac_optarg ;;
1124
1125  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126    ac_prev=mandir ;;
1127  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128    mandir=$ac_optarg ;;
1129
1130  -nfp | --nfp | --nf)
1131    # Obsolete; use --without-fp.
1132    with_fp=no ;;
1133
1134  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135  | --no-cr | --no-c | -n)
1136    no_create=yes ;;
1137
1138  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140    no_recursion=yes ;;
1141
1142  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144  | --oldin | --oldi | --old | --ol | --o)
1145    ac_prev=oldincludedir ;;
1146  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149    oldincludedir=$ac_optarg ;;
1150
1151  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152    ac_prev=prefix ;;
1153  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154    prefix=$ac_optarg ;;
1155
1156  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157  | --program-pre | --program-pr | --program-p)
1158    ac_prev=program_prefix ;;
1159  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161    program_prefix=$ac_optarg ;;
1162
1163  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164  | --program-suf | --program-su | --program-s)
1165    ac_prev=program_suffix ;;
1166  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168    program_suffix=$ac_optarg ;;
1169
1170  -program-transform-name | --program-transform-name \
1171  | --program-transform-nam | --program-transform-na \
1172  | --program-transform-n | --program-transform- \
1173  | --program-transform | --program-transfor \
1174  | --program-transfo | --program-transf \
1175  | --program-trans | --program-tran \
1176  | --progr-tra | --program-tr | --program-t)
1177    ac_prev=program_transform_name ;;
1178  -program-transform-name=* | --program-transform-name=* \
1179  | --program-transform-nam=* | --program-transform-na=* \
1180  | --program-transform-n=* | --program-transform-=* \
1181  | --program-transform=* | --program-transfor=* \
1182  | --program-transfo=* | --program-transf=* \
1183  | --program-trans=* | --program-tran=* \
1184  | --progr-tra=* | --program-tr=* | --program-t=*)
1185    program_transform_name=$ac_optarg ;;
1186
1187  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188    ac_prev=pdfdir ;;
1189  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190    pdfdir=$ac_optarg ;;
1191
1192  -psdir | --psdir | --psdi | --psd | --ps)
1193    ac_prev=psdir ;;
1194  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195    psdir=$ac_optarg ;;
1196
1197  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198  | -silent | --silent | --silen | --sile | --sil)
1199    silent=yes ;;
1200
1201  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202    ac_prev=sbindir ;;
1203  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204  | --sbi=* | --sb=*)
1205    sbindir=$ac_optarg ;;
1206
1207  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209  | --sharedst | --shareds | --shared | --share | --shar \
1210  | --sha | --sh)
1211    ac_prev=sharedstatedir ;;
1212  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215  | --sha=* | --sh=*)
1216    sharedstatedir=$ac_optarg ;;
1217
1218  -site | --site | --sit)
1219    ac_prev=site ;;
1220  -site=* | --site=* | --sit=*)
1221    site=$ac_optarg ;;
1222
1223  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224    ac_prev=srcdir ;;
1225  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226    srcdir=$ac_optarg ;;
1227
1228  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229  | --syscon | --sysco | --sysc | --sys | --sy)
1230    ac_prev=sysconfdir ;;
1231  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233    sysconfdir=$ac_optarg ;;
1234
1235  -target | --target | --targe | --targ | --tar | --ta | --t)
1236    ac_prev=target_alias ;;
1237  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238    target_alias=$ac_optarg ;;
1239
1240  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241    verbose=yes ;;
1242
1243  -version | --version | --versio | --versi | --vers | -V)
1244    ac_init_version=: ;;
1245
1246  -with-* | --with-*)
1247    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248    # Reject names that are not valid shell variable names.
1249    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251   { (exit 1); exit 1; }; }
1252    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253    eval with_$ac_package=\$ac_optarg ;;
1254
1255  -without-* | --without-*)
1256    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      { echo "$as_me: error: invalid package name: $ac_package" >&2
1260   { (exit 1); exit 1; }; }
1261    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262    eval with_$ac_package=no ;;
1263
1264  --x)
1265    # Obsolete; use --with-x.
1266    with_x=yes ;;
1267
1268  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269  | --x-incl | --x-inc | --x-in | --x-i)
1270    ac_prev=x_includes ;;
1271  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273    x_includes=$ac_optarg ;;
1274
1275  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277    ac_prev=x_libraries ;;
1278  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280    x_libraries=$ac_optarg ;;
1281
1282  -*) { echo "$as_me: error: unrecognized option: $ac_option
1283Try \`$0 --help' for more information." >&2
1284   { (exit 1); exit 1; }; }
1285    ;;
1286
1287  *=*)
1288    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289    # Reject names that are not valid shell variable names.
1290    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292   { (exit 1); exit 1; }; }
1293    eval $ac_envvar=\$ac_optarg
1294    export $ac_envvar ;;
1295
1296  *)
1297    # FIXME: should be removed in autoconf 3.0.
1298    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302    ;;
1303
1304  esac
1305done
1306
1307if test -n "$ac_prev"; then
1308  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309  { echo "$as_me: error: missing argument to $ac_option" >&2
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313# Be sure to have absolute directory names.
1314for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315		datadir sysconfdir sharedstatedir localstatedir includedir \
1316		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317		libdir localedir mandir
1318do
1319  eval ac_val=\$$ac_var
1320  case $ac_val in
1321    [\\/$]* | ?:[\\/]* )  continue;;
1322    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323  esac
1324  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325   { (exit 1); exit 1; }; }
1326done
1327
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337  if test "x$build_alias" = x; then
1338    cross_compiling=maybe
1339    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340    If a cross compiler is detected then cross compile mode will be used." >&2
1341  elif test "x$build_alias" != "x$host_alias"; then
1342    cross_compiling=yes
1343  fi
1344fi
1345
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
1350
1351
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355  { echo "$as_me: error: Working directory cannot be determined" >&2
1356   { (exit 1); exit 1; }; }
1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358  { echo "$as_me: error: pwd does not report name of working directory" >&2
1359   { (exit 1); exit 1; }; }
1360
1361
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364  ac_srcdir_defaulted=yes
1365  # Try the directory containing this script, then the parent directory.
1366  ac_confdir=`$as_dirname -- "$0" ||
1367$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368	 X"$0" : 'X\(//\)[^/]' \| \
1369	 X"$0" : 'X\(//\)$' \| \
1370	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371echo X"$0" |
1372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\/\)[^/].*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)$/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\).*/{
1385	    s//\1/
1386	    q
1387	  }
1388	  s/.*/./; q'`
1389  srcdir=$ac_confdir
1390  if test ! -r "$srcdir/$ac_unique_file"; then
1391    srcdir=..
1392  fi
1393else
1394  ac_srcdir_defaulted=no
1395fi
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399   { (exit 1); exit 1; }; }
1400fi
1401ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402ac_abs_confdir=`(
1403	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404   { (exit 1); exit 1; }; }
1405	pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408  srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
1416for ac_var in $ac_precious_vars; do
1417  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_env_${ac_var}_value=\$${ac_var}
1419  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421done
1422
1423#
1424# Report the --help message.
1425#
1426if test "$ac_init_help" = "long"; then
1427  # Omit some internal or obsolete options to make the list less imposing.
1428  # This message is too long to be a string in the A/UX 3.1 sh.
1429  cat <<_ACEOF
1430\`configure' configures xf86-video-ast 0.93.9 to adapt to many kinds of systems.
1431
1432Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437Defaults for the options are specified in brackets.
1438
1439Configuration:
1440  -h, --help              display this help and exit
1441      --help=short        display options specific to this package
1442      --help=recursive    display the short help of all the included packages
1443  -V, --version           display version information and exit
1444  -q, --quiet, --silent   do not print \`checking...' messages
1445      --cache-file=FILE   cache test results in FILE [disabled]
1446  -C, --config-cache      alias for \`--cache-file=config.cache'
1447  -n, --no-create         do not create output files
1448      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450Installation directories:
1451  --prefix=PREFIX         install architecture-independent files in PREFIX
1452			  [$ac_default_prefix]
1453  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454			  [PREFIX]
1455
1456By default, \`make install' will install all the files in
1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459for instance \`--prefix=\$HOME'.
1460
1461For better control, use the options below.
1462
1463Fine tuning of the installation directories:
1464  --bindir=DIR           user executables [EPREFIX/bin]
1465  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466  --libexecdir=DIR       program executables [EPREFIX/libexec]
1467  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470  --libdir=DIR           object code libraries [EPREFIX/lib]
1471  --includedir=DIR       C header files [PREFIX/include]
1472  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475  --infodir=DIR          info documentation [DATAROOTDIR/info]
1476  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477  --mandir=DIR           man documentation [DATAROOTDIR/man]
1478  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-video-ast]
1479  --htmldir=DIR          html documentation [DOCDIR]
1480  --dvidir=DIR           dvi documentation [DOCDIR]
1481  --pdfdir=DIR           pdf documentation [DOCDIR]
1482  --psdir=DIR            ps documentation [DOCDIR]
1483_ACEOF
1484
1485  cat <<\_ACEOF
1486
1487Program names:
1488  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492System types:
1493  --build=BUILD     configure for building on BUILD [guessed]
1494  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499  case $ac_init_help in
1500     short | recursive ) echo "Configuration of xf86-video-ast 0.93.9:";;
1501   esac
1502  cat <<\_ACEOF
1503
1504Optional Features:
1505  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507  --enable-maintainer-mode  enable make rules and dependencies not useful
1508			  (and sometimes confusing) to the casual installer
1509  --disable-dependency-tracking  speeds up one-time build
1510  --enable-dependency-tracking   do not reject slow dependency extractors
1511  --enable-strict-compilation
1512                          Enable all warnings from compiler and make them
1513                          errors (default: disabled)
1514  --enable-static[=PKGS]  build static libraries [default=no]
1515  --enable-shared[=PKGS]  build shared libraries [default=yes]
1516  --enable-fast-install[=PKGS]
1517                          optimize for fast installation [default=yes]
1518  --disable-libtool-lock  avoid locking (might break parallel builds)
1519
1520Optional Packages:
1521  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524  --with-pic              try to use only PIC/non-PIC objects [default=use
1525                          both]
1526  --with-tags[=TAGS]      include additional configurations [automatic]
1527  --with-xorg-module-dir=DIR
1528                          Default xorg module directory
1529                          [default=$libdir/xorg/modules]
1530
1531Some influential environment variables:
1532  CC          C compiler command
1533  CFLAGS      C compiler flags
1534  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535              nonstandard directory <lib dir>
1536  LIBS        libraries to pass to the linker, e.g. -l<library>
1537  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538              you have headers in a nonstandard directory <include dir>
1539  CPP         C preprocessor
1540  PKG_CONFIG  path to pkg-config utility
1541  CXX         C++ compiler command
1542  CXXFLAGS    C++ compiler flags
1543  CXXCPP      C++ preprocessor
1544  F77         Fortran 77 compiler command
1545  FFLAGS      Fortran 77 compiler flags
1546  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1547  XORG_LIBS   linker flags for XORG, overriding pkg-config
1548  PCIACCESS_CFLAGS
1549              C compiler flags for PCIACCESS, overriding pkg-config
1550  PCIACCESS_LIBS
1551              linker flags for PCIACCESS, overriding pkg-config
1552
1553Use these variables to override the choices made by `configure' or to help
1554it to find libraries and programs with nonstandard names/locations.
1555
1556Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1557_ACEOF
1558ac_status=$?
1559fi
1560
1561if test "$ac_init_help" = "recursive"; then
1562  # If there are subdirs, report their specific --help.
1563  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564    test -d "$ac_dir" || continue
1565    ac_builddir=.
1566
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1571  # A ".." for each directory in $ac_dir_suffix.
1572  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1573  case $ac_top_builddir_sub in
1574  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576  esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
1582
1583case $srcdir in
1584  .)  # We are building in place.
1585    ac_srcdir=.
1586    ac_top_srcdir=$ac_top_builddir_sub
1587    ac_abs_top_srcdir=$ac_pwd ;;
1588  [\\/]* | ?:[\\/]* )  # Absolute name.
1589    ac_srcdir=$srcdir$ac_dir_suffix;
1590    ac_top_srcdir=$srcdir
1591    ac_abs_top_srcdir=$srcdir ;;
1592  *) # Relative name.
1593    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594    ac_top_srcdir=$ac_top_build_prefix$srcdir
1595    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596esac
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599    cd "$ac_dir" || { ac_status=$?; continue; }
1600    # Check for guested configure.
1601    if test -f "$ac_srcdir/configure.gnu"; then
1602      echo &&
1603      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604    elif test -f "$ac_srcdir/configure"; then
1605      echo &&
1606      $SHELL "$ac_srcdir/configure" --help=recursive
1607    else
1608      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609    fi || ac_status=$?
1610    cd "$ac_pwd" || { ac_status=$?; break; }
1611  done
1612fi
1613
1614test -n "$ac_init_help" && exit $ac_status
1615if $ac_init_version; then
1616  cat <<\_ACEOF
1617xf86-video-ast configure 0.93.9
1618generated by GNU Autoconf 2.61
1619
1620Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16212002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1622This configure script is free software; the Free Software Foundation
1623gives unlimited permission to copy, distribute and modify it.
1624_ACEOF
1625  exit
1626fi
1627cat >config.log <<_ACEOF
1628This file contains any messages produced by compilers while
1629running configure, to aid debugging if configure makes a mistake.
1630
1631It was created by xf86-video-ast $as_me 0.93.9, which was
1632generated by GNU Autoconf 2.61.  Invocation command line was
1633
1634  $ $0 $@
1635
1636_ACEOF
1637exec 5>>config.log
1638{
1639cat <<_ASUNAME
1640## --------- ##
1641## Platform. ##
1642## --------- ##
1643
1644hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1645uname -m = `(uname -m) 2>/dev/null || echo unknown`
1646uname -r = `(uname -r) 2>/dev/null || echo unknown`
1647uname -s = `(uname -s) 2>/dev/null || echo unknown`
1648uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649
1650/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1651/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1652
1653/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1654/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1655/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1656/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1657/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1658/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1659/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1660
1661_ASUNAME
1662
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666  IFS=$as_save_IFS
1667  test -z "$as_dir" && as_dir=.
1668  echo "PATH: $as_dir"
1669done
1670IFS=$as_save_IFS
1671
1672} >&5
1673
1674cat >&5 <<_ACEOF
1675
1676
1677## ----------- ##
1678## Core tests. ##
1679## ----------- ##
1680
1681_ACEOF
1682
1683
1684# Keep a trace of the command line.
1685# Strip out --no-create and --no-recursion so they do not pile up.
1686# Strip out --silent because we don't want to record it for future runs.
1687# Also quote any args containing shell meta-characters.
1688# Make two passes to allow for proper duplicate-argument suppression.
1689ac_configure_args=
1690ac_configure_args0=
1691ac_configure_args1=
1692ac_must_keep_next=false
1693for ac_pass in 1 2
1694do
1695  for ac_arg
1696  do
1697    case $ac_arg in
1698    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1699    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1700    | -silent | --silent | --silen | --sile | --sil)
1701      continue ;;
1702    *\'*)
1703      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1704    esac
1705    case $ac_pass in
1706    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707    2)
1708      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1709      if test $ac_must_keep_next = true; then
1710	ac_must_keep_next=false # Got value, back to normal.
1711      else
1712	case $ac_arg in
1713	  *=* | --config-cache | -C | -disable-* | --disable-* \
1714	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1715	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1716	  | -with-* | --with-* | -without-* | --without-* | --x)
1717	    case "$ac_configure_args0 " in
1718	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719	    esac
1720	    ;;
1721	  -* ) ac_must_keep_next=true ;;
1722	esac
1723      fi
1724      ac_configure_args="$ac_configure_args '$ac_arg'"
1725      ;;
1726    esac
1727  done
1728done
1729$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1730$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731
1732# When interrupted or exit'd, cleanup temporary files, and complete
1733# config.log.  We remove comments because anyway the quotes in there
1734# would cause problems or look ugly.
1735# WARNING: Use '\'' to represent an apostrophe within the trap.
1736# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1737trap 'exit_status=$?
1738  # Save into config.log some information that might help in debugging.
1739  {
1740    echo
1741
1742    cat <<\_ASBOX
1743## ---------------- ##
1744## Cache variables. ##
1745## ---------------- ##
1746_ASBOX
1747    echo
1748    # The following way of writing the cache mishandles newlines in values,
1749(
1750  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1751    eval ac_val=\$$ac_var
1752    case $ac_val in #(
1753    *${as_nl}*)
1754      case $ac_var in #(
1755      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1756echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1757      esac
1758      case $ac_var in #(
1759      _ | IFS | as_nl) ;; #(
1760      *) $as_unset $ac_var ;;
1761      esac ;;
1762    esac
1763  done
1764  (set) 2>&1 |
1765    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766    *${as_nl}ac_space=\ *)
1767      sed -n \
1768	"s/'\''/'\''\\\\'\'''\''/g;
1769	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770      ;; #(
1771    *)
1772      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1773      ;;
1774    esac |
1775    sort
1776)
1777    echo
1778
1779    cat <<\_ASBOX
1780## ----------------- ##
1781## Output variables. ##
1782## ----------------- ##
1783_ASBOX
1784    echo
1785    for ac_var in $ac_subst_vars
1786    do
1787      eval ac_val=\$$ac_var
1788      case $ac_val in
1789      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790      esac
1791      echo "$ac_var='\''$ac_val'\''"
1792    done | sort
1793    echo
1794
1795    if test -n "$ac_subst_files"; then
1796      cat <<\_ASBOX
1797## ------------------- ##
1798## File substitutions. ##
1799## ------------------- ##
1800_ASBOX
1801      echo
1802      for ac_var in $ac_subst_files
1803      do
1804	eval ac_val=\$$ac_var
1805	case $ac_val in
1806	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807	esac
1808	echo "$ac_var='\''$ac_val'\''"
1809      done | sort
1810      echo
1811    fi
1812
1813    if test -s confdefs.h; then
1814      cat <<\_ASBOX
1815## ----------- ##
1816## confdefs.h. ##
1817## ----------- ##
1818_ASBOX
1819      echo
1820      cat confdefs.h
1821      echo
1822    fi
1823    test "$ac_signal" != 0 &&
1824      echo "$as_me: caught signal $ac_signal"
1825    echo "$as_me: exit $exit_status"
1826  } >&5
1827  rm -f core *.core core.conftest.* &&
1828    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829    exit $exit_status
1830' 0
1831for ac_signal in 1 2 13 15; do
1832  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833done
1834ac_signal=0
1835
1836# confdefs.h avoids OS command line length limits that DEFS can exceed.
1837rm -f -r conftest* confdefs.h
1838
1839# Predefined preprocessor variables.
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_NAME "$PACKAGE_NAME"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848_ACEOF
1849
1850
1851cat >>confdefs.h <<_ACEOF
1852#define PACKAGE_VERSION "$PACKAGE_VERSION"
1853_ACEOF
1854
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_STRING "$PACKAGE_STRING"
1858_ACEOF
1859
1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863_ACEOF
1864
1865
1866# Let the site file select an alternate cache file if it wants to.
1867# Prefer explicitly selected file to automatically selected ones.
1868if test -n "$CONFIG_SITE"; then
1869  set x "$CONFIG_SITE"
1870elif test "x$prefix" != xNONE; then
1871  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872else
1873  set x "$ac_default_prefix/share/config.site" \
1874	"$ac_default_prefix/etc/config.site"
1875fi
1876shift
1877for ac_site_file
1878do
1879  if test -r "$ac_site_file"; then
1880    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1881echo "$as_me: loading site script $ac_site_file" >&6;}
1882    sed 's/^/| /' "$ac_site_file" >&5
1883    . "$ac_site_file"
1884  fi
1885done
1886
1887if test -r "$cache_file"; then
1888  # Some versions of bash will fail to source /dev/null (special
1889  # files actually), so we avoid doing that.
1890  if test -f "$cache_file"; then
1891    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1892echo "$as_me: loading cache $cache_file" >&6;}
1893    case $cache_file in
1894      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1895      *)                      . "./$cache_file";;
1896    esac
1897  fi
1898else
1899  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1900echo "$as_me: creating cache $cache_file" >&6;}
1901  >$cache_file
1902fi
1903
1904# Check that the precious variables saved in the cache have kept the same
1905# value.
1906ac_cache_corrupted=false
1907for ac_var in $ac_precious_vars; do
1908  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1909  eval ac_new_set=\$ac_env_${ac_var}_set
1910  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1911  eval ac_new_val=\$ac_env_${ac_var}_value
1912  case $ac_old_set,$ac_new_set in
1913    set,)
1914      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1915echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1916      ac_cache_corrupted=: ;;
1917    ,set)
1918      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1919echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1920      ac_cache_corrupted=: ;;
1921    ,);;
1922    *)
1923      if test "x$ac_old_val" != "x$ac_new_val"; then
1924	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1925echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1927echo "$as_me:   former value:  $ac_old_val" >&2;}
1928	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1929echo "$as_me:   current value: $ac_new_val" >&2;}
1930	ac_cache_corrupted=:
1931      fi;;
1932  esac
1933  # Pass precious variables to config.status.
1934  if test "$ac_new_set" = set; then
1935    case $ac_new_val in
1936    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1937    *) ac_arg=$ac_var=$ac_new_val ;;
1938    esac
1939    case " $ac_configure_args " in
1940      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1941      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1942    esac
1943  fi
1944done
1945if $ac_cache_corrupted; then
1946  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1950   { (exit 1); exit 1; }; }
1951fi
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977ac_ext=c
1978ac_cpp='$CPP $CPPFLAGS'
1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982
1983
1984
1985ac_config_headers="$ac_config_headers config.h"
1986
1987ac_aux_dir=
1988for ac_dir in . "$srcdir"/.; do
1989  if test -f "$ac_dir/install-sh"; then
1990    ac_aux_dir=$ac_dir
1991    ac_install_sh="$ac_aux_dir/install-sh -c"
1992    break
1993  elif test -f "$ac_dir/install.sh"; then
1994    ac_aux_dir=$ac_dir
1995    ac_install_sh="$ac_aux_dir/install.sh -c"
1996    break
1997  elif test -f "$ac_dir/shtool"; then
1998    ac_aux_dir=$ac_dir
1999    ac_install_sh="$ac_aux_dir/shtool install -c"
2000    break
2001  fi
2002done
2003if test -z "$ac_aux_dir"; then
2004  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2005echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2006   { (exit 1); exit 1; }; }
2007fi
2008
2009# These three variables are undocumented and unsupported,
2010# and are intended to be withdrawn in a future Autoconf release.
2011# They can cause serious problems if a builder's source tree is in a directory
2012# whose full name contains unusual characters.
2013ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2014ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2015ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2016
2017
2018
2019# Initialize Automake
2020am__api_version='1.10'
2021
2022# Find a good install program.  We prefer a C program (faster),
2023# so one script is as good as another.  But avoid the broken or
2024# incompatible versions:
2025# SysV /etc/install, /usr/sbin/install
2026# SunOS /usr/etc/install
2027# IRIX /sbin/install
2028# AIX /bin/install
2029# AmigaOS /C/install, which installs bootblocks on floppy discs
2030# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2031# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2032# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2033# OS/2's system install, which has a completely different semantic
2034# ./install, which can be erroneously created by make from ./install.sh.
2035{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2036echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2037if test -z "$INSTALL"; then
2038if test "${ac_cv_path_install+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  # Account for people who put trailing slashes in PATH elements.
2047case $as_dir/ in
2048  ./ | .// | /cC/* | \
2049  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2050  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2051  /usr/ucb/* ) ;;
2052  *)
2053    # OSF1 and SCO ODT 3.0 have their own names for install.
2054    # Don't use installbsd from OSF since it installs stuff as root
2055    # by default.
2056    for ac_prog in ginstall scoinst install; do
2057      for ac_exec_ext in '' $ac_executable_extensions; do
2058	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2059	  if test $ac_prog = install &&
2060	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2061	    # AIX install.  It has an incompatible calling convention.
2062	    :
2063	  elif test $ac_prog = install &&
2064	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065	    # program-specific install script used by HP pwplus--don't use.
2066	    :
2067	  else
2068	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2069	    break 3
2070	  fi
2071	fi
2072      done
2073    done
2074    ;;
2075esac
2076done
2077IFS=$as_save_IFS
2078
2079
2080fi
2081  if test "${ac_cv_path_install+set}" = set; then
2082    INSTALL=$ac_cv_path_install
2083  else
2084    # As a last resort, use the slow shell script.  Don't cache a
2085    # value for INSTALL within a source directory, because that will
2086    # break other packages using the cache if that directory is
2087    # removed, or if the value is a relative name.
2088    INSTALL=$ac_install_sh
2089  fi
2090fi
2091{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2092echo "${ECHO_T}$INSTALL" >&6; }
2093
2094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2095# It thinks the first close brace ends the variable substitution.
2096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2097
2098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2099
2100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2101
2102{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2103echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2104# Just in case
2105sleep 1
2106echo timestamp > conftest.file
2107# Do `set' in a subshell so we don't clobber the current shell's
2108# arguments.  Must try -L first in case configure is actually a
2109# symlink; some systems play weird games with the mod time of symlinks
2110# (eg FreeBSD returns the mod time of the symlink's containing
2111# directory).
2112if (
2113   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2114   if test "$*" = "X"; then
2115      # -L didn't work.
2116      set X `ls -t $srcdir/configure conftest.file`
2117   fi
2118   rm -f conftest.file
2119   if test "$*" != "X $srcdir/configure conftest.file" \
2120      && test "$*" != "X conftest.file $srcdir/configure"; then
2121
2122      # If neither matched, then we have a broken ls.  This can happen
2123      # if, for instance, CONFIG_SHELL is bash and it inherits a
2124      # broken ls alias from the environment.  This has actually
2125      # happened.  Such a system could not be considered "sane".
2126      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2127alias in your environment" >&5
2128echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2129alias in your environment" >&2;}
2130   { (exit 1); exit 1; }; }
2131   fi
2132
2133   test "$2" = conftest.file
2134   )
2135then
2136   # Ok.
2137   :
2138else
2139   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2140Check your system clock" >&5
2141echo "$as_me: error: newly created file is older than distributed files!
2142Check your system clock" >&2;}
2143   { (exit 1); exit 1; }; }
2144fi
2145{ echo "$as_me:$LINENO: result: yes" >&5
2146echo "${ECHO_T}yes" >&6; }
2147test "$program_prefix" != NONE &&
2148  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2149# Use a double $ so make ignores it.
2150test "$program_suffix" != NONE &&
2151  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2152# Double any \ or $.  echo might interpret backslashes.
2153# By default was `s,x,x', remove it if useless.
2154cat <<\_ACEOF >conftest.sed
2155s/[\\$]/&&/g;s/;s,x,x,$//
2156_ACEOF
2157program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2158rm -f conftest.sed
2159
2160# expand $ac_aux_dir to an absolute path
2161am_aux_dir=`cd $ac_aux_dir && pwd`
2162
2163test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2164# Use eval to expand $SHELL
2165if eval "$MISSING --run true"; then
2166  am_missing_run="$MISSING --run "
2167else
2168  am_missing_run=
2169  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2170echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2171fi
2172
2173{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2174echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2175if test -z "$MKDIR_P"; then
2176  if test "${ac_cv_path_mkdir+set}" = set; then
2177  echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2181do
2182  IFS=$as_save_IFS
2183  test -z "$as_dir" && as_dir=.
2184  for ac_prog in mkdir gmkdir; do
2185	 for ac_exec_ext in '' $ac_executable_extensions; do
2186	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2187	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2188	     'mkdir (GNU coreutils) '* | \
2189	     'mkdir (coreutils) '* | \
2190	     'mkdir (fileutils) '4.1*)
2191	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2192	       break 3;;
2193	   esac
2194	 done
2195       done
2196done
2197IFS=$as_save_IFS
2198
2199fi
2200
2201  if test "${ac_cv_path_mkdir+set}" = set; then
2202    MKDIR_P="$ac_cv_path_mkdir -p"
2203  else
2204    # As a last resort, use the slow shell script.  Don't cache a
2205    # value for MKDIR_P within a source directory, because that will
2206    # break other packages using the cache if that directory is
2207    # removed, or if the value is a relative name.
2208    test -d ./--version && rmdir ./--version
2209    MKDIR_P="$ac_install_sh -d"
2210  fi
2211fi
2212{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2213echo "${ECHO_T}$MKDIR_P" >&6; }
2214
2215mkdir_p="$MKDIR_P"
2216case $mkdir_p in
2217  [\\/$]* | ?:[\\/]*) ;;
2218  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2219esac
2220
2221for ac_prog in gawk mawk nawk awk
2222do
2223  # Extract the first word of "$ac_prog", so it can be a program name with args.
2224set dummy $ac_prog; ac_word=$2
2225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227if test "${ac_cv_prog_AWK+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  if test -n "$AWK"; then
2231  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2232else
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236  IFS=$as_save_IFS
2237  test -z "$as_dir" && as_dir=.
2238  for ac_exec_ext in '' $ac_executable_extensions; do
2239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240    ac_cv_prog_AWK="$ac_prog"
2241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242    break 2
2243  fi
2244done
2245done
2246IFS=$as_save_IFS
2247
2248fi
2249fi
2250AWK=$ac_cv_prog_AWK
2251if test -n "$AWK"; then
2252  { echo "$as_me:$LINENO: result: $AWK" >&5
2253echo "${ECHO_T}$AWK" >&6; }
2254else
2255  { echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6; }
2257fi
2258
2259
2260  test -n "$AWK" && break
2261done
2262
2263{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2264echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2265set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2266if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2267  echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269  cat >conftest.make <<\_ACEOF
2270SHELL = /bin/sh
2271all:
2272	@echo '@@@%%%=$(MAKE)=@@@%%%'
2273_ACEOF
2274# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2275case `${MAKE-make} -f conftest.make 2>/dev/null` in
2276  *@@@%%%=?*=@@@%%%*)
2277    eval ac_cv_prog_make_${ac_make}_set=yes;;
2278  *)
2279    eval ac_cv_prog_make_${ac_make}_set=no;;
2280esac
2281rm -f conftest.make
2282fi
2283if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2284  { echo "$as_me:$LINENO: result: yes" >&5
2285echo "${ECHO_T}yes" >&6; }
2286  SET_MAKE=
2287else
2288  { echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6; }
2290  SET_MAKE="MAKE=${MAKE-make}"
2291fi
2292
2293rm -rf .tst 2>/dev/null
2294mkdir .tst 2>/dev/null
2295if test -d .tst; then
2296  am__leading_dot=.
2297else
2298  am__leading_dot=_
2299fi
2300rmdir .tst 2>/dev/null
2301
2302if test "`cd $srcdir && pwd`" != "`pwd`"; then
2303  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2304  # is not polluted with repeated "-I."
2305  am__isrc=' -I$(srcdir)'
2306  # test to see if srcdir already configured
2307  if test -f $srcdir/config.status; then
2308    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2309echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2310   { (exit 1); exit 1; }; }
2311  fi
2312fi
2313
2314# test whether we have cygpath
2315if test -z "$CYGPATH_W"; then
2316  if (cygpath --version) >/dev/null 2>/dev/null; then
2317    CYGPATH_W='cygpath -w'
2318  else
2319    CYGPATH_W=echo
2320  fi
2321fi
2322
2323
2324# Define the identity of the package.
2325 PACKAGE='xf86-video-ast'
2326 VERSION='0.93.9'
2327
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE "$PACKAGE"
2331_ACEOF
2332
2333
2334cat >>confdefs.h <<_ACEOF
2335#define VERSION "$VERSION"
2336_ACEOF
2337
2338# Some tools Automake needs.
2339
2340ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2341
2342
2343AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2344
2345
2346AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2347
2348
2349AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2350
2351
2352MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2353
2354install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2355
2356# Installed binaries are usually stripped using `strip' when the user
2357# run `make install-strip'.  However `strip' might not be the right
2358# tool to use in cross-compilation environments, therefore Automake
2359# will honor the `STRIP' environment variable to overrule this program.
2360if test "$cross_compiling" != no; then
2361  if test -n "$ac_tool_prefix"; then
2362  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363set dummy ${ac_tool_prefix}strip; ac_word=$2
2364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366if test "${ac_cv_prog_STRIP+set}" = set; then
2367  echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369  if test -n "$STRIP"; then
2370  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377  for ac_exec_ext in '' $ac_executable_extensions; do
2378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381    break 2
2382  fi
2383done
2384done
2385IFS=$as_save_IFS
2386
2387fi
2388fi
2389STRIP=$ac_cv_prog_STRIP
2390if test -n "$STRIP"; then
2391  { echo "$as_me:$LINENO: result: $STRIP" >&5
2392echo "${ECHO_T}$STRIP" >&6; }
2393else
2394  { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
2396fi
2397
2398
2399fi
2400if test -z "$ac_cv_prog_STRIP"; then
2401  ac_ct_STRIP=$STRIP
2402  # Extract the first word of "strip", so it can be a program name with args.
2403set dummy strip; ac_word=$2
2404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  if test -n "$ac_ct_STRIP"; then
2410  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417  for ac_exec_ext in '' $ac_executable_extensions; do
2418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419    ac_cv_prog_ac_ct_STRIP="strip"
2420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421    break 2
2422  fi
2423done
2424done
2425IFS=$as_save_IFS
2426
2427fi
2428fi
2429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430if test -n "$ac_ct_STRIP"; then
2431  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2432echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2433else
2434  { echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6; }
2436fi
2437
2438  if test "x$ac_ct_STRIP" = x; then
2439    STRIP=":"
2440  else
2441    case $cross_compiling:$ac_tool_warned in
2442yes:)
2443{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444whose name does not start with the host triplet.  If you think this
2445configuration is useful to you, please write to autoconf@gnu.org." >&5
2446echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447whose name does not start with the host triplet.  If you think this
2448configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449ac_tool_warned=yes ;;
2450esac
2451    STRIP=$ac_ct_STRIP
2452  fi
2453else
2454  STRIP="$ac_cv_prog_STRIP"
2455fi
2456
2457fi
2458INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2459
2460# We need awk for the "check" target.  The system "awk" is bad on
2461# some platforms.
2462# Always define AMTAR for backward compatibility.
2463
2464AMTAR=${AMTAR-"${am_missing_run}tar"}
2465
2466am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2467
2468
2469
2470
2471
2472{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2473echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2474    # Check whether --enable-maintainer-mode was given.
2475if test "${enable_maintainer_mode+set}" = set; then
2476  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2477else
2478  USE_MAINTAINER_MODE=no
2479fi
2480
2481  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2482echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2483   if test $USE_MAINTAINER_MODE = yes; then
2484  MAINTAINER_MODE_TRUE=
2485  MAINTAINER_MODE_FALSE='#'
2486else
2487  MAINTAINER_MODE_TRUE='#'
2488  MAINTAINER_MODE_FALSE=
2489fi
2490
2491  MAINT=$MAINTAINER_MODE_TRUE
2492
2493
2494
2495# Require xorg-macros: XORG_DEFAULT_OPTIONS
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507DEPDIR="${am__leading_dot}deps"
2508
2509ac_config_commands="$ac_config_commands depfiles"
2510
2511
2512am_make=${MAKE-make}
2513cat > confinc << 'END'
2514am__doit:
2515	@echo done
2516.PHONY: am__doit
2517END
2518# If we don't find an include directive, just comment out the code.
2519{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2520echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2521am__include="#"
2522am__quote=
2523_am_result=none
2524# First try GNU make style include.
2525echo "include confinc" > confmf
2526# We grep out `Entering directory' and `Leaving directory'
2527# messages which can occur if `w' ends up in MAKEFLAGS.
2528# In particular we don't look at `^make:' because GNU make might
2529# be invoked under some other name (usually "gmake"), in which
2530# case it prints its new name instead of `make'.
2531if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2532   am__include=include
2533   am__quote=
2534   _am_result=GNU
2535fi
2536# Now try BSD make style include.
2537if test "$am__include" = "#"; then
2538   echo '.include "confinc"' > confmf
2539   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2540      am__include=.include
2541      am__quote="\""
2542      _am_result=BSD
2543   fi
2544fi
2545
2546
2547{ echo "$as_me:$LINENO: result: $_am_result" >&5
2548echo "${ECHO_T}$_am_result" >&6; }
2549rm -f confinc confmf
2550
2551# Check whether --enable-dependency-tracking was given.
2552if test "${enable_dependency_tracking+set}" = set; then
2553  enableval=$enable_dependency_tracking;
2554fi
2555
2556if test "x$enable_dependency_tracking" != xno; then
2557  am_depcomp="$ac_aux_dir/depcomp"
2558  AMDEPBACKSLASH='\'
2559fi
2560 if test "x$enable_dependency_tracking" != xno; then
2561  AMDEP_TRUE=
2562  AMDEP_FALSE='#'
2563else
2564  AMDEP_TRUE='#'
2565  AMDEP_FALSE=
2566fi
2567
2568
2569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574if test -n "$ac_tool_prefix"; then
2575  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2576set dummy ${ac_tool_prefix}gcc; ac_word=$2
2577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579if test "${ac_cv_prog_CC+set}" = set; then
2580  echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582  if test -n "$CC"; then
2583  ac_cv_prog_CC="$CC" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590  for ac_exec_ext in '' $ac_executable_extensions; do
2591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602CC=$ac_cv_prog_CC
2603if test -n "$CC"; then
2604  { echo "$as_me:$LINENO: result: $CC" >&5
2605echo "${ECHO_T}$CC" >&6; }
2606else
2607  { echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6; }
2609fi
2610
2611
2612fi
2613if test -z "$ac_cv_prog_CC"; then
2614  ac_ct_CC=$CC
2615  # Extract the first word of "gcc", so it can be a program name with args.
2616set dummy gcc; ac_word=$2
2617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2620  echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622  if test -n "$ac_ct_CC"; then
2623  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630  for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_ac_ct_CC="gcc"
2633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643if test -n "$ac_ct_CC"; then
2644  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645echo "${ECHO_T}$ac_ct_CC" >&6; }
2646else
2647  { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
2649fi
2650
2651  if test "x$ac_ct_CC" = x; then
2652    CC=""
2653  else
2654    case $cross_compiling:$ac_tool_warned in
2655yes:)
2656{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2657whose name does not start with the host triplet.  If you think this
2658configuration is useful to you, please write to autoconf@gnu.org." >&5
2659echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2660whose name does not start with the host triplet.  If you think this
2661configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2662ac_tool_warned=yes ;;
2663esac
2664    CC=$ac_ct_CC
2665  fi
2666else
2667  CC="$ac_cv_prog_CC"
2668fi
2669
2670if test -z "$CC"; then
2671          if test -n "$ac_tool_prefix"; then
2672    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673set dummy ${ac_tool_prefix}cc; ac_word=$2
2674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676if test "${ac_cv_prog_CC+set}" = set; then
2677  echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679  if test -n "$CC"; then
2680  ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687  for ac_exec_ext in '' $ac_executable_extensions; do
2688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689    ac_cv_prog_CC="${ac_tool_prefix}cc"
2690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
2701  { echo "$as_me:$LINENO: result: $CC" >&5
2702echo "${ECHO_T}$CC" >&6; }
2703else
2704  { echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6; }
2706fi
2707
2708
2709  fi
2710fi
2711if test -z "$CC"; then
2712  # Extract the first word of "cc", so it can be a program name with args.
2713set dummy cc; ac_word=$2
2714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716if test "${ac_cv_prog_CC+set}" = set; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  if test -n "$CC"; then
2720  ac_cv_prog_CC="$CC" # Let the user override the test.
2721else
2722  ac_prog_rejected=no
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728  for ac_exec_ext in '' $ac_executable_extensions; do
2729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731       ac_prog_rejected=yes
2732       continue
2733     fi
2734    ac_cv_prog_CC="cc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740IFS=$as_save_IFS
2741
2742if test $ac_prog_rejected = yes; then
2743  # We found a bogon in the path, so make sure we never use it.
2744  set dummy $ac_cv_prog_CC
2745  shift
2746  if test $# != 0; then
2747    # We chose a different compiler from the bogus one.
2748    # However, it has the same basename, so the bogon will be chosen
2749    # first if we set CC to just the basename; use the full file name.
2750    shift
2751    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752  fi
2753fi
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { echo "$as_me:$LINENO: result: $CC" >&5
2759echo "${ECHO_T}$CC" >&6; }
2760else
2761  { echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6; }
2763fi
2764
2765
2766fi
2767if test -z "$CC"; then
2768  if test -n "$ac_tool_prefix"; then
2769  for ac_prog in cl.exe
2770  do
2771    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775if test "${ac_cv_prog_CC+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  if test -n "$CC"; then
2779  ac_cv_prog_CC="$CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786  for ac_exec_ext in '' $ac_executable_extensions; do
2787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800  { echo "$as_me:$LINENO: result: $CC" >&5
2801echo "${ECHO_T}$CC" >&6; }
2802else
2803  { echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6; }
2805fi
2806
2807
2808    test -n "$CC" && break
2809  done
2810fi
2811if test -z "$CC"; then
2812  ac_ct_CC=$CC
2813  for ac_prog in cl.exe
2814do
2815  # Extract the first word of "$ac_prog", so it can be a program name with args.
2816set dummy $ac_prog; ac_word=$2
2817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820  echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822  if test -n "$ac_ct_CC"; then
2823  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  test -z "$as_dir" && as_dir=.
2830  for ac_exec_ext in '' $ac_executable_extensions; do
2831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832    ac_cv_prog_ac_ct_CC="$ac_prog"
2833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843if test -n "$ac_ct_CC"; then
2844  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845echo "${ECHO_T}$ac_ct_CC" >&6; }
2846else
2847  { echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6; }
2849fi
2850
2851
2852  test -n "$ac_ct_CC" && break
2853done
2854
2855  if test "x$ac_ct_CC" = x; then
2856    CC=""
2857  else
2858    case $cross_compiling:$ac_tool_warned in
2859yes:)
2860{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2861whose name does not start with the host triplet.  If you think this
2862configuration is useful to you, please write to autoconf@gnu.org." >&5
2863echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2864whose name does not start with the host triplet.  If you think this
2865configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2866ac_tool_warned=yes ;;
2867esac
2868    CC=$ac_ct_CC
2869  fi
2870fi
2871
2872fi
2873
2874
2875test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: no acceptable C compiler found in \$PATH
2878See \`config.log' for more details." >&2;}
2879   { (exit 1); exit 1; }; }
2880
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO: checking for C compiler version" >&5
2883ac_compiler=`set X $ac_compile; echo $2`
2884{ (ac_try="$ac_compiler --version >&5"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890  (eval "$ac_compiler --version >&5") 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }
2894{ (ac_try="$ac_compiler -v >&5"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900  (eval "$ac_compiler -v >&5") 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }
2904{ (ac_try="$ac_compiler -V >&5"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910  (eval "$ac_compiler -V >&5") 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }
2914
2915cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921
2922int
2923main ()
2924{
2925
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930ac_clean_files_save=$ac_clean_files
2931ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932# Try to create an executable without -o first, disregard a.out.
2933# It will help us diagnose broken compilers, and finding out an intuition
2934# of exeext.
2935{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2937ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938#
2939# List of possible output files, starting from the most likely.
2940# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2941# only as a last resort.  b.out is created by i960 compilers.
2942ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2943#
2944# The IRIX 6 linker writes into existing files which may not be
2945# executable, retaining their permissions.  Remove them first so a
2946# subsequent execution test works.
2947ac_rmfiles=
2948for ac_file in $ac_files
2949do
2950  case $ac_file in
2951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2952    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953  esac
2954done
2955rm -f $ac_rmfiles
2956
2957if { (ac_try="$ac_link_default"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963  (eval "$ac_link_default") 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; then
2967  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2968# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2969# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2970# so that the user can short-circuit this test for compilers unknown to
2971# Autoconf.
2972for ac_file in $ac_files ''
2973do
2974  test -f "$ac_file" || continue
2975  case $ac_file in
2976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2977	;;
2978    [ab].out )
2979	# We found the default executable, but exeext='' is most
2980	# certainly right.
2981	break;;
2982    *.* )
2983        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2984	then :; else
2985	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986	fi
2987	# We set ac_cv_exeext here because the later test for it is not
2988	# safe: cross compilers may not add the suffix if given an `-o'
2989	# argument, so we may need to know it at that point already.
2990	# Even if this section looks crufty: it has the advantage of
2991	# actually working.
2992	break;;
2993    * )
2994	break;;
2995  esac
2996done
2997test "$ac_cv_exeext" = no && ac_cv_exeext=
2998
2999else
3000  ac_file=''
3001fi
3002
3003{ echo "$as_me:$LINENO: result: $ac_file" >&5
3004echo "${ECHO_T}$ac_file" >&6; }
3005if test -z "$ac_file"; then
3006  echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3010See \`config.log' for more details." >&5
3011echo "$as_me: error: C compiler cannot create executables
3012See \`config.log' for more details." >&2;}
3013   { (exit 77); exit 77; }; }
3014fi
3015
3016ac_exeext=$ac_cv_exeext
3017
3018# Check that the compiler produces executables we can run.  If not, either
3019# the compiler is broken, or we cross compile.
3020{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3022# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023# If not cross compiling, check that we can run a simple program.
3024if test "$cross_compiling" != yes; then
3025  if { ac_try='./$ac_file'
3026  { (case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031  (eval "$ac_try") 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; }; then
3035    cross_compiling=no
3036  else
3037    if test "$cross_compiling" = maybe; then
3038	cross_compiling=yes
3039    else
3040	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3041If you meant to cross compile, use \`--host'.
3042See \`config.log' for more details." >&5
3043echo "$as_me: error: cannot run C compiled programs.
3044If you meant to cross compile, use \`--host'.
3045See \`config.log' for more details." >&2;}
3046   { (exit 1); exit 1; }; }
3047    fi
3048  fi
3049fi
3050{ echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6; }
3052
3053rm -f a.out a.exe conftest$ac_cv_exeext b.out
3054ac_clean_files=$ac_clean_files_save
3055# Check that the compiler produces executables we can run.  If not, either
3056# the compiler is broken, or we cross compile.
3057{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3058echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3059{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3060echo "${ECHO_T}$cross_compiling" >&6; }
3061
3062{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3063echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3064if { (ac_try="$ac_link"
3065case "(($ac_try" in
3066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067  *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070  (eval "$ac_link") 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; then
3074  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3076# work properly (i.e., refer to `conftest.exe'), while it won't with
3077# `rm'.
3078for ac_file in conftest.exe conftest conftest.*; do
3079  test -f "$ac_file" || continue
3080  case $ac_file in
3081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3082    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083	  break;;
3084    * ) break;;
3085  esac
3086done
3087else
3088  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3089See \`config.log' for more details." >&5
3090echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3091See \`config.log' for more details." >&2;}
3092   { (exit 1); exit 1; }; }
3093fi
3094
3095rm -f conftest$ac_cv_exeext
3096{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3097echo "${ECHO_T}$ac_cv_exeext" >&6; }
3098
3099rm -f conftest.$ac_ext
3100EXEEXT=$ac_cv_exeext
3101ac_exeext=$EXEEXT
3102{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3103echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3104if test "${ac_cv_objext+set}" = set; then
3105  echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107  cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122rm -f conftest.o conftest.obj
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126  *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129  (eval "$ac_compile") 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); }; then
3133  for ac_file in conftest.o conftest.obj conftest.*; do
3134  test -f "$ac_file" || continue;
3135  case $ac_file in
3136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3137    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3138       break;;
3139  esac
3140done
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3146See \`config.log' for more details." >&5
3147echo "$as_me: error: cannot compute suffix of object files: cannot compile
3148See \`config.log' for more details." >&2;}
3149   { (exit 1); exit 1; }; }
3150fi
3151
3152rm -f conftest.$ac_cv_objext conftest.$ac_ext
3153fi
3154{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3155echo "${ECHO_T}$ac_cv_objext" >&6; }
3156OBJEXT=$ac_cv_objext
3157ac_objext=$OBJEXT
3158{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3159echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3160if test "${ac_cv_c_compiler_gnu+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173#ifndef __GNUC__
3174       choke me
3175#endif
3176
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185  *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188  (eval "$ac_compile") 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } && {
3195	 test -z "$ac_c_werror_flag" ||
3196	 test ! -s conftest.err
3197       } && test -s conftest.$ac_objext; then
3198  ac_compiler_gnu=yes
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203	ac_compiler_gnu=no
3204fi
3205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207ac_cv_c_compiler_gnu=$ac_compiler_gnu
3208
3209fi
3210{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3212GCC=`test $ac_compiler_gnu = yes && echo yes`
3213ac_test_CFLAGS=${CFLAGS+set}
3214ac_save_CFLAGS=$CFLAGS
3215{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3216echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_g+set}" = set; then
3218  echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220  ac_save_c_werror_flag=$ac_c_werror_flag
3221   ac_c_werror_flag=yes
3222   ac_cv_prog_cc_g=no
3223   CFLAGS="-g"
3224   cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h.  */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h.  */
3230
3231int
3232main ()
3233{
3234
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (ac_try="$ac_compile"
3241case "(($ac_try" in
3242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243  *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246  (eval "$ac_compile") 2>conftest.er1
3247  ac_status=$?
3248  grep -v '^ *+' conftest.er1 >conftest.err
3249  rm -f conftest.er1
3250  cat conftest.err >&5
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); } && {
3253	 test -z "$ac_c_werror_flag" ||
3254	 test ! -s conftest.err
3255       } && test -s conftest.$ac_objext; then
3256  ac_cv_prog_cc_g=yes
3257else
3258  echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261	CFLAGS=""
3262      cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h.  */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h.  */
3268
3269int
3270main ()
3271{
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (ac_try="$ac_compile"
3279case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284  (eval "$ac_compile") 2>conftest.er1
3285  ac_status=$?
3286  grep -v '^ *+' conftest.er1 >conftest.err
3287  rm -f conftest.er1
3288  cat conftest.err >&5
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); } && {
3291	 test -z "$ac_c_werror_flag" ||
3292	 test ! -s conftest.err
3293       } && test -s conftest.$ac_objext; then
3294  :
3295else
3296  echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299	ac_c_werror_flag=$ac_save_c_werror_flag
3300	 CFLAGS="-g"
3301	 cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h.  */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323  (eval "$ac_compile") 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } && {
3330	 test -z "$ac_c_werror_flag" ||
3331	 test ! -s conftest.err
3332       } && test -s conftest.$ac_objext; then
3333  ac_cv_prog_cc_g=yes
3334else
3335  echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338
3339fi
3340
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342fi
3343
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345fi
3346
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348   ac_c_werror_flag=$ac_save_c_werror_flag
3349fi
3350{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3351echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3352if test "$ac_test_CFLAGS" = set; then
3353  CFLAGS=$ac_save_CFLAGS
3354elif test $ac_cv_prog_cc_g = yes; then
3355  if test "$GCC" = yes; then
3356    CFLAGS="-g -O2"
3357  else
3358    CFLAGS="-g"
3359  fi
3360else
3361  if test "$GCC" = yes; then
3362    CFLAGS="-O2"
3363  else
3364    CFLAGS=
3365  fi
3366fi
3367{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3368echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3369if test "${ac_cv_prog_cc_c89+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372  ac_cv_prog_cc_c89=no
3373ac_save_CC=$CC
3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380#include <stdarg.h>
3381#include <stdio.h>
3382#include <sys/types.h>
3383#include <sys/stat.h>
3384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3385struct buf { int x; };
3386FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387static char *e (p, i)
3388     char **p;
3389     int i;
3390{
3391  return p[i];
3392}
3393static char *f (char * (*g) (char **, int), char **p, ...)
3394{
3395  char *s;
3396  va_list v;
3397  va_start (v,p);
3398  s = g (p, va_arg (v,int));
3399  va_end (v);
3400  return s;
3401}
3402
3403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3404   function prototypes and stuff, but not '\xHH' hex character constants.
3405   These don't provoke an error unfortunately, instead are silently treated
3406   as 'x'.  The following induces an error, until -std is added to get
3407   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3408   array size at least.  It's necessary to write '\x00'==0 to get something
3409   that's true only with -std.  */
3410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
3412/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413   inside strings and character constants.  */
3414#define FOO(x) 'x'
3415int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
3417int test (int i, double x);
3418struct s1 {int (*f) (int a);};
3419struct s2 {int (*f) (double a);};
3420int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421int argc;
3422char **argv;
3423int
3424main ()
3425{
3426return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433do
3434  CC="$ac_save_CC $ac_arg"
3435  rm -f conftest.$ac_objext
3436if { (ac_try="$ac_compile"
3437case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442  (eval "$ac_compile") 2>conftest.er1
3443  ac_status=$?
3444  grep -v '^ *+' conftest.er1 >conftest.err
3445  rm -f conftest.er1
3446  cat conftest.err >&5
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); } && {
3449	 test -z "$ac_c_werror_flag" ||
3450	 test ! -s conftest.err
3451       } && test -s conftest.$ac_objext; then
3452  ac_cv_prog_cc_c89=$ac_arg
3453else
3454  echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457
3458fi
3459
3460rm -f core conftest.err conftest.$ac_objext
3461  test "x$ac_cv_prog_cc_c89" != "xno" && break
3462done
3463rm -f conftest.$ac_ext
3464CC=$ac_save_CC
3465
3466fi
3467# AC_CACHE_VAL
3468case "x$ac_cv_prog_cc_c89" in
3469  x)
3470    { echo "$as_me:$LINENO: result: none needed" >&5
3471echo "${ECHO_T}none needed" >&6; } ;;
3472  xno)
3473    { echo "$as_me:$LINENO: result: unsupported" >&5
3474echo "${ECHO_T}unsupported" >&6; } ;;
3475  *)
3476    CC="$CC $ac_cv_prog_cc_c89"
3477    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3478echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3479esac
3480
3481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
3488depcc="$CC"   am_compiler_list=
3489
3490{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3491echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3492if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3493  echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496  # We make a subdir and do the tests there.  Otherwise we can end up
3497  # making bogus files that we don't know about and never remove.  For
3498  # instance it was reported that on HP-UX the gcc test will end up
3499  # making a dummy file named `D' -- because `-MD' means `put the output
3500  # in D'.
3501  mkdir conftest.dir
3502  # Copy depcomp to subdir because otherwise we won't find it if we're
3503  # using a relative directory.
3504  cp "$am_depcomp" conftest.dir
3505  cd conftest.dir
3506  # We will build objects and dependencies in a subdirectory because
3507  # it helps to detect inapplicable dependency modes.  For instance
3508  # both Tru64's cc and ICC support -MD to output dependencies as a
3509  # side effect of compilation, but ICC will put the dependencies in
3510  # the current directory while Tru64 will put them in the object
3511  # directory.
3512  mkdir sub
3513
3514  am_cv_CC_dependencies_compiler_type=none
3515  if test "$am_compiler_list" = ""; then
3516     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3517  fi
3518  for depmode in $am_compiler_list; do
3519    # Setup a source with many dependencies, because some compilers
3520    # like to wrap large dependency lists on column 80 (with \), and
3521    # we should not choose a depcomp mode which is confused by this.
3522    #
3523    # We need to recreate these files for each test, as the compiler may
3524    # overwrite some of them when testing with obscure command lines.
3525    # This happens at least with the AIX C compiler.
3526    : > sub/conftest.c
3527    for i in 1 2 3 4 5 6; do
3528      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3529      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3530      # Solaris 8's {/usr,}/bin/sh.
3531      touch sub/conftst$i.h
3532    done
3533    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3534
3535    case $depmode in
3536    nosideeffect)
3537      # after this tag, mechanisms are not by side-effect, so they'll
3538      # only be used when explicitly requested
3539      if test "x$enable_dependency_tracking" = xyes; then
3540	continue
3541      else
3542	break
3543      fi
3544      ;;
3545    none) break ;;
3546    esac
3547    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548    # mode.  It turns out that the SunPro C++ compiler does not properly
3549    # handle `-M -o', and we need to detect this.
3550    if depmode=$depmode \
3551       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554         >/dev/null 2>conftest.err &&
3555       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3556       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3558       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559      # icc doesn't choke on unknown options, it will just issue warnings
3560      # or remarks (even with -Werror).  So we grep stderr for any message
3561      # that says an option was ignored or not supported.
3562      # When given -MP, icc 7.0 and 7.1 complain thusly:
3563      #   icc: Command line warning: ignoring option '-M'; no argument required
3564      # The diagnosis changed in icc 8.0:
3565      #   icc: Command line remark: option '-MP' not supported
3566      if (grep 'ignoring option' conftest.err ||
3567          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568        am_cv_CC_dependencies_compiler_type=$depmode
3569        break
3570      fi
3571    fi
3572  done
3573
3574  cd ..
3575  rm -rf conftest.dir
3576else
3577  am_cv_CC_dependencies_compiler_type=none
3578fi
3579
3580fi
3581{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3582echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3583CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3584
3585 if
3586  test "x$enable_dependency_tracking" != xno \
3587  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3588  am__fastdepCC_TRUE=
3589  am__fastdepCC_FALSE='#'
3590else
3591  am__fastdepCC_TRUE='#'
3592  am__fastdepCC_FALSE=
3593fi
3594
3595
3596   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3597echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3598if test "${ac_cv_prog_cc_c99+set}" = set; then
3599  echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601  ac_cv_prog_cc_c99=no
3602ac_save_CC=$CC
3603cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h.  */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h.  */
3609#include <stdarg.h>
3610#include <stdbool.h>
3611#include <stdlib.h>
3612#include <wchar.h>
3613#include <stdio.h>
3614
3615// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3616#define debug(...) fprintf (stderr, __VA_ARGS__)
3617#define showlist(...) puts (#__VA_ARGS__)
3618#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3619static void
3620test_varargs_macros (void)
3621{
3622  int x = 1234;
3623  int y = 5678;
3624  debug ("Flag");
3625  debug ("X = %d\n", x);
3626  showlist (The first, second, and third items.);
3627  report (x>y, "x is %d but y is %d", x, y);
3628}
3629
3630// Check long long types.
3631#define BIG64 18446744073709551615ull
3632#define BIG32 4294967295ul
3633#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3634#if !BIG_OK
3635  your preprocessor is broken;
3636#endif
3637#if BIG_OK
3638#else
3639  your preprocessor is broken;
3640#endif
3641static long long int bignum = -9223372036854775807LL;
3642static unsigned long long int ubignum = BIG64;
3643
3644struct incomplete_array
3645{
3646  int datasize;
3647  double data[];
3648};
3649
3650struct named_init {
3651  int number;
3652  const wchar_t *name;
3653  double average;
3654};
3655
3656typedef const char *ccp;
3657
3658static inline int
3659test_restrict (ccp restrict text)
3660{
3661  // See if C++-style comments work.
3662  // Iterate through items via the restricted pointer.
3663  // Also check for declarations in for loops.
3664  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3665    continue;
3666  return 0;
3667}
3668
3669// Check varargs and va_copy.
3670static void
3671test_varargs (const char *format, ...)
3672{
3673  va_list args;
3674  va_start (args, format);
3675  va_list args_copy;
3676  va_copy (args_copy, args);
3677
3678  const char *str;
3679  int number;
3680  float fnumber;
3681
3682  while (*format)
3683    {
3684      switch (*format++)
3685	{
3686	case 's': // string
3687	  str = va_arg (args_copy, const char *);
3688	  break;
3689	case 'd': // int
3690	  number = va_arg (args_copy, int);
3691	  break;
3692	case 'f': // float
3693	  fnumber = va_arg (args_copy, double);
3694	  break;
3695	default:
3696	  break;
3697	}
3698    }
3699  va_end (args_copy);
3700  va_end (args);
3701}
3702
3703int
3704main ()
3705{
3706
3707  // Check bool.
3708  _Bool success = false;
3709
3710  // Check restrict.
3711  if (test_restrict ("String literal") == 0)
3712    success = true;
3713  char *restrict newvar = "Another string";
3714
3715  // Check varargs.
3716  test_varargs ("s, d' f .", "string", 65, 34.234);
3717  test_varargs_macros ();
3718
3719  // Check flexible array members.
3720  struct incomplete_array *ia =
3721    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3722  ia->datasize = 10;
3723  for (int i = 0; i < ia->datasize; ++i)
3724    ia->data[i] = i * 1.234;
3725
3726  // Check named initializers.
3727  struct named_init ni = {
3728    .number = 34,
3729    .name = L"Test wide string",
3730    .average = 543.34343,
3731  };
3732
3733  ni.number = 58;
3734
3735  int dynamic_array[ni.number];
3736  dynamic_array[ni.number - 1] = 543;
3737
3738  // work around unused variable warnings
3739  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3740	  || dynamic_array[ni.number - 1] != 543);
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3747do
3748  CC="$ac_save_CC $ac_arg"
3749  rm -f conftest.$ac_objext
3750if { (ac_try="$ac_compile"
3751case "(($ac_try" in
3752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753  *) ac_try_echo=$ac_try;;
3754esac
3755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756  (eval "$ac_compile") 2>conftest.er1
3757  ac_status=$?
3758  grep -v '^ *+' conftest.er1 >conftest.err
3759  rm -f conftest.er1
3760  cat conftest.err >&5
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); } && {
3763	 test -z "$ac_c_werror_flag" ||
3764	 test ! -s conftest.err
3765       } && test -s conftest.$ac_objext; then
3766  ac_cv_prog_cc_c99=$ac_arg
3767else
3768  echo "$as_me: failed program was:" >&5
3769sed 's/^/| /' conftest.$ac_ext >&5
3770
3771
3772fi
3773
3774rm -f core conftest.err conftest.$ac_objext
3775  test "x$ac_cv_prog_cc_c99" != "xno" && break
3776done
3777rm -f conftest.$ac_ext
3778CC=$ac_save_CC
3779
3780fi
3781# AC_CACHE_VAL
3782case "x$ac_cv_prog_cc_c99" in
3783  x)
3784    { echo "$as_me:$LINENO: result: none needed" >&5
3785echo "${ECHO_T}none needed" >&6; } ;;
3786  xno)
3787    { echo "$as_me:$LINENO: result: unsupported" >&5
3788echo "${ECHO_T}unsupported" >&6; } ;;
3789  *)
3790    CC="$CC $ac_cv_prog_cc_c99"
3791    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3792echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3793esac
3794
3795
3796
3797
3798ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3804echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3805# On Suns, sometimes $CPP names a directory.
3806if test -n "$CPP" && test -d "$CPP"; then
3807  CPP=
3808fi
3809if test -z "$CPP"; then
3810  if test "${ac_cv_prog_CPP+set}" = set; then
3811  echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813      # Double quotes because CPP needs to be expanded
3814    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3815    do
3816      ac_preproc_ok=false
3817for ac_c_preproc_warn_flag in '' yes
3818do
3819  # Use a header file that comes with gcc, so configuring glibc
3820  # with a fresh cross-compiler works.
3821  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822  # <limits.h> exists even on freestanding compilers.
3823  # On the NeXT, cc -E runs the code through the compiler's parser,
3824  # not just through cpp. "Syntax error" is here to catch this case.
3825  cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831#ifdef __STDC__
3832# include <limits.h>
3833#else
3834# include <assert.h>
3835#endif
3836		     Syntax error
3837_ACEOF
3838if { (ac_try="$ac_cpp conftest.$ac_ext"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } >/dev/null && {
3851	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3852	 test ! -s conftest.err
3853       }; then
3854  :
3855else
3856  echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859  # Broken: fails on valid input.
3860continue
3861fi
3862
3863rm -f conftest.err conftest.$ac_ext
3864
3865  # OK, works on sane cases.  Now check whether nonexistent headers
3866  # can be detected and how.
3867  cat >conftest.$ac_ext <<_ACEOF
3868/* confdefs.h.  */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
3872/* end confdefs.h.  */
3873#include <ac_nonexistent.h>
3874_ACEOF
3875if { (ac_try="$ac_cpp conftest.$ac_ext"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882  ac_status=$?
3883  grep -v '^ *+' conftest.er1 >conftest.err
3884  rm -f conftest.er1
3885  cat conftest.err >&5
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); } >/dev/null && {
3888	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889	 test ! -s conftest.err
3890       }; then
3891  # Broken: success on invalid input.
3892continue
3893else
3894  echo "$as_me: failed program was:" >&5
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
3897  # Passes both tests.
3898ac_preproc_ok=:
3899break
3900fi
3901
3902rm -f conftest.err conftest.$ac_ext
3903
3904done
3905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906rm -f conftest.err conftest.$ac_ext
3907if $ac_preproc_ok; then
3908  break
3909fi
3910
3911    done
3912    ac_cv_prog_CPP=$CPP
3913
3914fi
3915  CPP=$ac_cv_prog_CPP
3916else
3917  ac_cv_prog_CPP=$CPP
3918fi
3919{ echo "$as_me:$LINENO: result: $CPP" >&5
3920echo "${ECHO_T}$CPP" >&6; }
3921ac_preproc_ok=false
3922for ac_c_preproc_warn_flag in '' yes
3923do
3924  # Use a header file that comes with gcc, so configuring glibc
3925  # with a fresh cross-compiler works.
3926  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927  # <limits.h> exists even on freestanding compilers.
3928  # On the NeXT, cc -E runs the code through the compiler's parser,
3929  # not just through cpp. "Syntax error" is here to catch this case.
3930  cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h.  */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h.  */
3936#ifdef __STDC__
3937# include <limits.h>
3938#else
3939# include <assert.h>
3940#endif
3941		     Syntax error
3942_ACEOF
3943if { (ac_try="$ac_cpp conftest.$ac_ext"
3944case "(($ac_try" in
3945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946  *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } >/dev/null && {
3956	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3957	 test ! -s conftest.err
3958       }; then
3959  :
3960else
3961  echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964  # Broken: fails on valid input.
3965continue
3966fi
3967
3968rm -f conftest.err conftest.$ac_ext
3969
3970  # OK, works on sane cases.  Now check whether nonexistent headers
3971  # can be detected and how.
3972  cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h.  */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h.  */
3978#include <ac_nonexistent.h>
3979_ACEOF
3980if { (ac_try="$ac_cpp conftest.$ac_ext"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3987  ac_status=$?
3988  grep -v '^ *+' conftest.er1 >conftest.err
3989  rm -f conftest.er1
3990  cat conftest.err >&5
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); } >/dev/null && {
3993	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3994	 test ! -s conftest.err
3995       }; then
3996  # Broken: success on invalid input.
3997continue
3998else
3999  echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
4001
4002  # Passes both tests.
4003ac_preproc_ok=:
4004break
4005fi
4006
4007rm -f conftest.err conftest.$ac_ext
4008
4009done
4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011rm -f conftest.err conftest.$ac_ext
4012if $ac_preproc_ok; then
4013  :
4014else
4015  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4016See \`config.log' for more details." >&5
4017echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4018See \`config.log' for more details." >&2;}
4019   { (exit 1); exit 1; }; }
4020fi
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028
4029{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4030echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4031if test "${ac_cv_path_GREP+set}" = set; then
4032  echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034  # Extract the first word of "grep ggrep" to use in msg output
4035if test -z "$GREP"; then
4036set dummy grep ggrep; ac_prog_name=$2
4037if test "${ac_cv_path_GREP+set}" = set; then
4038  echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040  ac_path_GREP_found=false
4041# Loop through the user's path and test for each of PROGNAME-LIST
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_prog in grep ggrep; do
4048  for ac_exec_ext in '' $ac_executable_extensions; do
4049    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4050    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4051    # Check for GNU ac_path_GREP and select it if it is found.
4052  # Check for GNU $ac_path_GREP
4053case `"$ac_path_GREP" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4056*)
4057  ac_count=0
4058  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    echo 'GREP' >> "conftest.nl"
4065    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    ac_count=`expr $ac_count + 1`
4068    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_GREP="$ac_path_GREP"
4071      ac_path_GREP_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079
4080    $ac_path_GREP_found && break 3
4081  done
4082done
4083
4084done
4085IFS=$as_save_IFS
4086
4087
4088fi
4089
4090GREP="$ac_cv_path_GREP"
4091if test -z "$GREP"; then
4092  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094   { (exit 1); exit 1; }; }
4095fi
4096
4097else
4098  ac_cv_path_GREP=$GREP
4099fi
4100
4101
4102fi
4103{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4104echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4105 GREP="$ac_cv_path_GREP"
4106
4107
4108{ echo "$as_me:$LINENO: checking for egrep" >&5
4109echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4110if test "${ac_cv_path_EGREP+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4114   then ac_cv_path_EGREP="$GREP -E"
4115   else
4116     # Extract the first word of "egrep" to use in msg output
4117if test -z "$EGREP"; then
4118set dummy egrep; ac_prog_name=$2
4119if test "${ac_cv_path_EGREP+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  ac_path_EGREP_found=false
4123# Loop through the user's path and test for each of PROGNAME-LIST
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129  for ac_prog in egrep; do
4130  for ac_exec_ext in '' $ac_executable_extensions; do
4131    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4132    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4133    # Check for GNU ac_path_EGREP and select it if it is found.
4134  # Check for GNU $ac_path_EGREP
4135case `"$ac_path_EGREP" --version 2>&1` in
4136*GNU*)
4137  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4138*)
4139  ac_count=0
4140  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4141  while :
4142  do
4143    cat "conftest.in" "conftest.in" >"conftest.tmp"
4144    mv "conftest.tmp" "conftest.in"
4145    cp "conftest.in" "conftest.nl"
4146    echo 'EGREP' >> "conftest.nl"
4147    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149    ac_count=`expr $ac_count + 1`
4150    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4151      # Best one so far, save it but keep looking for a better one
4152      ac_cv_path_EGREP="$ac_path_EGREP"
4153      ac_path_EGREP_max=$ac_count
4154    fi
4155    # 10*(2^10) chars as input seems more than enough
4156    test $ac_count -gt 10 && break
4157  done
4158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159esac
4160
4161
4162    $ac_path_EGREP_found && break 3
4163  done
4164done
4165
4166done
4167IFS=$as_save_IFS
4168
4169
4170fi
4171
4172EGREP="$ac_cv_path_EGREP"
4173if test -z "$EGREP"; then
4174  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4175echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4176   { (exit 1); exit 1; }; }
4177fi
4178
4179else
4180  ac_cv_path_EGREP=$EGREP
4181fi
4182
4183
4184   fi
4185fi
4186{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4187echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4188 EGREP="$ac_cv_path_EGREP"
4189
4190
4191{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4192echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4193if test "${ac_cv_header_stdc+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202#include <stdlib.h>
4203#include <stdarg.h>
4204#include <string.h>
4205#include <float.h>
4206
4207int
4208main ()
4209{
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (ac_try="$ac_compile"
4217case "(($ac_try" in
4218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219  *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222  (eval "$ac_compile") 2>conftest.er1
4223  ac_status=$?
4224  grep -v '^ *+' conftest.er1 >conftest.err
4225  rm -f conftest.er1
4226  cat conftest.err >&5
4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228  (exit $ac_status); } && {
4229	 test -z "$ac_c_werror_flag" ||
4230	 test ! -s conftest.err
4231       } && test -s conftest.$ac_objext; then
4232  ac_cv_header_stdc=yes
4233else
4234  echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237	ac_cv_header_stdc=no
4238fi
4239
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241
4242if test $ac_cv_header_stdc = yes; then
4243  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244  cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h.  */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h.  */
4250#include <string.h>
4251
4252_ACEOF
4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254  $EGREP "memchr" >/dev/null 2>&1; then
4255  :
4256else
4257  ac_cv_header_stdc=no
4258fi
4259rm -f conftest*
4260
4261fi
4262
4263if test $ac_cv_header_stdc = yes; then
4264  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4265  cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h.  */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h.  */
4271#include <stdlib.h>
4272
4273_ACEOF
4274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275  $EGREP "free" >/dev/null 2>&1; then
4276  :
4277else
4278  ac_cv_header_stdc=no
4279fi
4280rm -f conftest*
4281
4282fi
4283
4284if test $ac_cv_header_stdc = yes; then
4285  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4286  if test "$cross_compiling" = yes; then
4287  :
4288else
4289  cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295#include <ctype.h>
4296#include <stdlib.h>
4297#if ((' ' & 0x0FF) == 0x020)
4298# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4299# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4300#else
4301# define ISLOWER(c) \
4302		   (('a' <= (c) && (c) <= 'i') \
4303		     || ('j' <= (c) && (c) <= 'r') \
4304		     || ('s' <= (c) && (c) <= 'z'))
4305# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4306#endif
4307
4308#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4309int
4310main ()
4311{
4312  int i;
4313  for (i = 0; i < 256; i++)
4314    if (XOR (islower (i), ISLOWER (i))
4315	|| toupper (i) != TOUPPER (i))
4316      return 2;
4317  return 0;
4318}
4319_ACEOF
4320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324  *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327  (eval "$ac_link") 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331  { (case "(($ac_try" in
4332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333  *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336  (eval "$ac_try") 2>&5
4337  ac_status=$?
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); }; }; then
4340  :
4341else
4342  echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_header_stdc=no
4348fi
4349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350fi
4351
4352
4353fi
4354fi
4355{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4356echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4357if test $ac_cv_header_stdc = yes; then
4358
4359cat >>confdefs.h <<\_ACEOF
4360#define STDC_HEADERS 1
4361_ACEOF
4362
4363fi
4364
4365# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4376		  inttypes.h stdint.h unistd.h
4377do
4378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4382  echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384  cat >conftest.$ac_ext <<_ACEOF
4385/* confdefs.h.  */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h.  */
4390$ac_includes_default
4391
4392#include <$ac_header>
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (ac_try="$ac_compile"
4396case "(($ac_try" in
4397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398  *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401  (eval "$ac_compile") 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } && {
4408	 test -z "$ac_c_werror_flag" ||
4409	 test ! -s conftest.err
4410       } && test -s conftest.$ac_objext; then
4411  eval "$as_ac_Header=yes"
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416	eval "$as_ac_Header=no"
4417fi
4418
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420fi
4421ac_res=`eval echo '${'$as_ac_Header'}'`
4422	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4423echo "${ECHO_T}$ac_res" >&6; }
4424if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425  cat >>confdefs.h <<_ACEOF
4426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427_ACEOF
4428
4429fi
4430
4431done
4432
4433
4434
4435
4436{ echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
4437echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
4438if test "${ac_cv_have_decl___clang__+set}" = set; then
4439  echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441  cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h.  */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h.  */
4447$ac_includes_default
4448int
4449main ()
4450{
4451#ifndef __clang__
4452  (void) __clang__;
4453#endif
4454
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (ac_try="$ac_compile"
4461case "(($ac_try" in
4462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463  *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466  (eval "$ac_compile") 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } && {
4473	 test -z "$ac_c_werror_flag" ||
4474	 test ! -s conftest.err
4475       } && test -s conftest.$ac_objext; then
4476  ac_cv_have_decl___clang__=yes
4477else
4478  echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
4480
4481	ac_cv_have_decl___clang__=no
4482fi
4483
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485fi
4486{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
4487echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
4488if test $ac_cv_have_decl___clang__ = yes; then
4489  CLANGCC="yes"
4490else
4491  CLANGCC="no"
4492fi
4493
4494{ echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4495echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
4496if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505$ac_includes_default
4506int
4507main ()
4508{
4509#ifndef __INTEL_COMPILER
4510  (void) __INTEL_COMPILER;
4511#endif
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext
4518if { (ac_try="$ac_compile"
4519case "(($ac_try" in
4520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521  *) ac_try_echo=$ac_try;;
4522esac
4523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524  (eval "$ac_compile") 2>conftest.er1
4525  ac_status=$?
4526  grep -v '^ *+' conftest.er1 >conftest.err
4527  rm -f conftest.er1
4528  cat conftest.err >&5
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); } && {
4531	 test -z "$ac_c_werror_flag" ||
4532	 test ! -s conftest.err
4533       } && test -s conftest.$ac_objext; then
4534  ac_cv_have_decl___INTEL_COMPILER=yes
4535else
4536  echo "$as_me: failed program was:" >&5
4537sed 's/^/| /' conftest.$ac_ext >&5
4538
4539	ac_cv_have_decl___INTEL_COMPILER=no
4540fi
4541
4542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543fi
4544{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4545echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4546if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
4547  INTELCC="yes"
4548else
4549  INTELCC="no"
4550fi
4551
4552{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4553echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
4554if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h.  */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h.  */
4563$ac_includes_default
4564int
4565main ()
4566{
4567#ifndef __SUNPRO_C
4568  (void) __SUNPRO_C;
4569#endif
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext
4576if { (ac_try="$ac_compile"
4577case "(($ac_try" in
4578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579  *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582  (eval "$ac_compile") 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } && {
4589	 test -z "$ac_c_werror_flag" ||
4590	 test ! -s conftest.err
4591       } && test -s conftest.$ac_objext; then
4592  ac_cv_have_decl___SUNPRO_C=yes
4593else
4594  echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597	ac_cv_have_decl___SUNPRO_C=no
4598fi
4599
4600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601fi
4602{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4603echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
4604if test $ac_cv_have_decl___SUNPRO_C = yes; then
4605  SUNCC="yes"
4606else
4607  SUNCC="no"
4608fi
4609
4610
4611
4612
4613if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4614	if test -n "$ac_tool_prefix"; then
4615  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4616set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4620  echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622  case $PKG_CONFIG in
4623  [\\/]* | ?:[\\/]*)
4624  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4625  ;;
4626  *)
4627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630  IFS=$as_save_IFS
4631  test -z "$as_dir" && as_dir=.
4632  for ac_exec_ext in '' $ac_executable_extensions; do
4633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636    break 2
4637  fi
4638done
4639done
4640IFS=$as_save_IFS
4641
4642  ;;
4643esac
4644fi
4645PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4646if test -n "$PKG_CONFIG"; then
4647  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4648echo "${ECHO_T}$PKG_CONFIG" >&6; }
4649else
4650  { echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6; }
4652fi
4653
4654
4655fi
4656if test -z "$ac_cv_path_PKG_CONFIG"; then
4657  ac_pt_PKG_CONFIG=$PKG_CONFIG
4658  # Extract the first word of "pkg-config", so it can be a program name with args.
4659set dummy pkg-config; ac_word=$2
4660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  case $ac_pt_PKG_CONFIG in
4666  [\\/]* | ?:[\\/]*)
4667  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4668  ;;
4669  *)
4670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675  for ac_exec_ext in '' $ac_executable_extensions; do
4676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679    break 2
4680  fi
4681done
4682done
4683IFS=$as_save_IFS
4684
4685  ;;
4686esac
4687fi
4688ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4689if test -n "$ac_pt_PKG_CONFIG"; then
4690  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4691echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4692else
4693  { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697  if test "x$ac_pt_PKG_CONFIG" = x; then
4698    PKG_CONFIG=""
4699  else
4700    case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4703whose name does not start with the host triplet.  If you think this
4704configuration is useful to you, please write to autoconf@gnu.org." >&5
4705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4706whose name does not start with the host triplet.  If you think this
4707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4708ac_tool_warned=yes ;;
4709esac
4710    PKG_CONFIG=$ac_pt_PKG_CONFIG
4711  fi
4712else
4713  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4714fi
4715
4716fi
4717if test -n "$PKG_CONFIG"; then
4718	_pkg_min_version=0.9.0
4719	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4720echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4721	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4722		{ echo "$as_me:$LINENO: result: yes" >&5
4723echo "${ECHO_T}yes" >&6; }
4724	else
4725		{ echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727		PKG_CONFIG=""
4728	fi
4729
4730fi
4731# Make sure we can run config.sub.
4732$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4733  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4734echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4735   { (exit 1); exit 1; }; }
4736
4737{ echo "$as_me:$LINENO: checking build system type" >&5
4738echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4739if test "${ac_cv_build+set}" = set; then
4740  echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742  ac_build_alias=$build_alias
4743test "x$ac_build_alias" = x &&
4744  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4745test "x$ac_build_alias" = x &&
4746  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4748   { (exit 1); exit 1; }; }
4749ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4750  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4751echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4752   { (exit 1); exit 1; }; }
4753
4754fi
4755{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4756echo "${ECHO_T}$ac_cv_build" >&6; }
4757case $ac_cv_build in
4758*-*-*) ;;
4759*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4760echo "$as_me: error: invalid value of canonical build" >&2;}
4761   { (exit 1); exit 1; }; };;
4762esac
4763build=$ac_cv_build
4764ac_save_IFS=$IFS; IFS='-'
4765set x $ac_cv_build
4766shift
4767build_cpu=$1
4768build_vendor=$2
4769shift; shift
4770# Remember, the first character of IFS is used to create $*,
4771# except with old shells:
4772build_os=$*
4773IFS=$ac_save_IFS
4774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4775
4776
4777{ echo "$as_me:$LINENO: checking host system type" >&5
4778echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4779if test "${ac_cv_host+set}" = set; then
4780  echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782  if test "x$host_alias" = x; then
4783  ac_cv_host=$ac_cv_build
4784else
4785  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4787echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4788   { (exit 1); exit 1; }; }
4789fi
4790
4791fi
4792{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4793echo "${ECHO_T}$ac_cv_host" >&6; }
4794case $ac_cv_host in
4795*-*-*) ;;
4796*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4797echo "$as_me: error: invalid value of canonical host" >&2;}
4798   { (exit 1); exit 1; }; };;
4799esac
4800host=$ac_cv_host
4801ac_save_IFS=$IFS; IFS='-'
4802set x $ac_cv_host
4803shift
4804host_cpu=$1
4805host_vendor=$2
4806shift; shift
4807# Remember, the first character of IFS is used to create $*,
4808# except with old shells:
4809host_os=$*
4810IFS=$ac_save_IFS
4811case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4812
4813
4814{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4815echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4816if test "${ac_cv_path_SED+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4820     for ac_i in 1 2 3 4 5 6 7; do
4821       ac_script="$ac_script$as_nl$ac_script"
4822     done
4823     echo "$ac_script" | sed 99q >conftest.sed
4824     $as_unset ac_script || ac_script=
4825     # Extract the first word of "sed gsed" to use in msg output
4826if test -z "$SED"; then
4827set dummy sed gsed; ac_prog_name=$2
4828if test "${ac_cv_path_SED+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  ac_path_SED_found=false
4832# Loop through the user's path and test for each of PROGNAME-LIST
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836  IFS=$as_save_IFS
4837  test -z "$as_dir" && as_dir=.
4838  for ac_prog in sed gsed; do
4839  for ac_exec_ext in '' $ac_executable_extensions; do
4840    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4841    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4842    # Check for GNU ac_path_SED and select it if it is found.
4843  # Check for GNU $ac_path_SED
4844case `"$ac_path_SED" --version 2>&1` in
4845*GNU*)
4846  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4847*)
4848  ac_count=0
4849  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4850  while :
4851  do
4852    cat "conftest.in" "conftest.in" >"conftest.tmp"
4853    mv "conftest.tmp" "conftest.in"
4854    cp "conftest.in" "conftest.nl"
4855    echo '' >> "conftest.nl"
4856    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858    ac_count=`expr $ac_count + 1`
4859    if test $ac_count -gt ${ac_path_SED_max-0}; then
4860      # Best one so far, save it but keep looking for a better one
4861      ac_cv_path_SED="$ac_path_SED"
4862      ac_path_SED_max=$ac_count
4863    fi
4864    # 10*(2^10) chars as input seems more than enough
4865    test $ac_count -gt 10 && break
4866  done
4867  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868esac
4869
4870
4871    $ac_path_SED_found && break 3
4872  done
4873done
4874
4875done
4876IFS=$as_save_IFS
4877
4878
4879fi
4880
4881SED="$ac_cv_path_SED"
4882if test -z "$SED"; then
4883  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4884echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4885   { (exit 1); exit 1; }; }
4886fi
4887
4888else
4889  ac_cv_path_SED=$SED
4890fi
4891
4892fi
4893{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4894echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4895 SED="$ac_cv_path_SED"
4896  rm -f conftest.sed
4897
4898
4899
4900
4901
4902
4903if  test "x$GCC" = xyes ; then
4904    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4905-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4906-Wbad-function-cast -Wformat=2"
4907    case `$CC -dumpversion` in
4908    3.4.* | 4.*)
4909	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4910	;;
4911    esac
4912else
4913    if test "x$SUNCC" = "xyes"; then
4914	CWARNFLAGS="-v"
4915    fi
4916fi
4917
4918
4919
4920# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4921
4922
4923
4924
4925# Check whether --enable-strict-compilation was given.
4926if test "${enable_strict_compilation+set}" = set; then
4927  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4928else
4929  STRICT_COMPILE=no
4930fi
4931
4932if test "x$GCC" = xyes ; then
4933    STRICT_CFLAGS="-pedantic -Werror"
4934    # Add -Werror=attributes if supported (gcc 4.2 & later)
4935    { echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
4936echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
4937    save_CFLAGS="$CFLAGS"
4938    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4939    cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h.  */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h.  */
4945return 0;
4946_ACEOF
4947rm -f conftest.$ac_objext
4948if { (ac_try="$ac_compile"
4949case "(($ac_try" in
4950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951  *) ac_try_echo=$ac_try;;
4952esac
4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954  (eval "$ac_compile") 2>conftest.er1
4955  ac_status=$?
4956  grep -v '^ *+' conftest.er1 >conftest.err
4957  rm -f conftest.er1
4958  cat conftest.err >&5
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); } && {
4961	 test -z "$ac_c_werror_flag" ||
4962	 test ! -s conftest.err
4963       } && test -s conftest.$ac_objext; then
4964  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4965		       { echo "$as_me:$LINENO: result: yes" >&5
4966echo "${ECHO_T}yes" >&6; }
4967else
4968  echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971	{ echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6; }
4973fi
4974
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976    CFLAGS="$save_CFLAGS"
4977elif test "x$SUNCC" = "xyes"; then
4978    STRICT_CFLAGS="-errwarn"
4979elif test "x$INTELCC" = "xyes"; then
4980    STRICT_CFLAGS="-Werror"
4981fi
4982if test "x$STRICT_COMPILE" = "xyes"; then
4983    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4984fi
4985
4986
4987
4988
4989
4990cat >>confdefs.h <<_ACEOF
4991#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4992_ACEOF
4993
4994	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4995	if test "x$PVM" = "x"; then
4996		PVM="0"
4997	fi
4998
4999cat >>confdefs.h <<_ACEOF
5000#define PACKAGE_VERSION_MINOR $PVM
5001_ACEOF
5002
5003	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5004	if test "x$PVP" = "x"; then
5005		PVP="0"
5006	fi
5007
5008cat >>confdefs.h <<_ACEOF
5009#define PACKAGE_VERSION_PATCHLEVEL $PVP
5010_ACEOF
5011
5012
5013
5014CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5015mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5016|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5017echo 'git directory not found: installing possibly empty changelog.' >&2)"
5018
5019
5020
5021
5022macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5023INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5024mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5025|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5026echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5027
5028
5029
5030
5031
5032
5033if test x$APP_MAN_SUFFIX = x    ; then
5034    APP_MAN_SUFFIX=1
5035fi
5036if test x$APP_MAN_DIR = x    ; then
5037    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5038fi
5039
5040if test x$LIB_MAN_SUFFIX = x    ; then
5041    LIB_MAN_SUFFIX=3
5042fi
5043if test x$LIB_MAN_DIR = x    ; then
5044    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5045fi
5046
5047if test x$FILE_MAN_SUFFIX = x    ; then
5048    case $host_os in
5049	solaris*)	FILE_MAN_SUFFIX=4  ;;
5050	*)		FILE_MAN_SUFFIX=5  ;;
5051    esac
5052fi
5053if test x$FILE_MAN_DIR = x    ; then
5054    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5055fi
5056
5057if test x$MISC_MAN_SUFFIX = x    ; then
5058    case $host_os in
5059	solaris*)	MISC_MAN_SUFFIX=5  ;;
5060	*)		MISC_MAN_SUFFIX=7  ;;
5061    esac
5062fi
5063if test x$MISC_MAN_DIR = x    ; then
5064    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5065fi
5066
5067if test x$DRIVER_MAN_SUFFIX = x    ; then
5068    case $host_os in
5069	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5070	*)		DRIVER_MAN_SUFFIX=4  ;;
5071    esac
5072fi
5073if test x$DRIVER_MAN_DIR = x    ; then
5074    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5075fi
5076
5077if test x$ADMIN_MAN_SUFFIX = x    ; then
5078    case $host_os in
5079	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5080	*)		ADMIN_MAN_SUFFIX=8  ;;
5081    esac
5082fi
5083if test x$ADMIN_MAN_DIR = x    ; then
5084    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5085fi
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101XORG_MAN_PAGE="X Version 11"
5102
5103MAN_SUBSTS="\
5104	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5105	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5106	-e 's|__xservername__|Xorg|g' \
5107	-e 's|__xconfigfile__|xorg.conf|g' \
5108	-e 's|__projectroot__|\$(prefix)|g' \
5109	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
5110	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5111	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5112	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5113	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5114	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5115	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5116
5117
5118
5119AM_DEFAULT_VERBOSITY=1
5120
5121
5122
5123# Initialize libtool
5124# Check whether --enable-static was given.
5125if test "${enable_static+set}" = set; then
5126  enableval=$enable_static; p=${PACKAGE-default}
5127    case $enableval in
5128    yes) enable_static=yes ;;
5129    no) enable_static=no ;;
5130    *)
5131     enable_static=no
5132      # Look at the argument we got.  We use all the common list separators.
5133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5134      for pkg in $enableval; do
5135	IFS="$lt_save_ifs"
5136	if test "X$pkg" = "X$p"; then
5137	  enable_static=yes
5138	fi
5139      done
5140      IFS="$lt_save_ifs"
5141      ;;
5142    esac
5143else
5144  enable_static=no
5145fi
5146
5147
5148
5149# Check whether --enable-shared was given.
5150if test "${enable_shared+set}" = set; then
5151  enableval=$enable_shared; p=${PACKAGE-default}
5152    case $enableval in
5153    yes) enable_shared=yes ;;
5154    no) enable_shared=no ;;
5155    *)
5156      enable_shared=no
5157      # Look at the argument we got.  We use all the common list separators.
5158      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5159      for pkg in $enableval; do
5160	IFS="$lt_save_ifs"
5161	if test "X$pkg" = "X$p"; then
5162	  enable_shared=yes
5163	fi
5164      done
5165      IFS="$lt_save_ifs"
5166      ;;
5167    esac
5168else
5169  enable_shared=yes
5170fi
5171
5172
5173# Check whether --enable-fast-install was given.
5174if test "${enable_fast_install+set}" = set; then
5175  enableval=$enable_fast_install; p=${PACKAGE-default}
5176    case $enableval in
5177    yes) enable_fast_install=yes ;;
5178    no) enable_fast_install=no ;;
5179    *)
5180      enable_fast_install=no
5181      # Look at the argument we got.  We use all the common list separators.
5182      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5183      for pkg in $enableval; do
5184	IFS="$lt_save_ifs"
5185	if test "X$pkg" = "X$p"; then
5186	  enable_fast_install=yes
5187	fi
5188      done
5189      IFS="$lt_save_ifs"
5190      ;;
5191    esac
5192else
5193  enable_fast_install=yes
5194fi
5195
5196
5197{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5198echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5199if test "${lt_cv_path_SED+set}" = set; then
5200  echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202  # Loop through the user's path and test for sed and gsed.
5203# Then use that list of sed's as ones to test for truncation.
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209  for lt_ac_prog in sed gsed; do
5210    for ac_exec_ext in '' $ac_executable_extensions; do
5211      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5212        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5213      fi
5214    done
5215  done
5216done
5217IFS=$as_save_IFS
5218lt_ac_max=0
5219lt_ac_count=0
5220# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5221# along with /bin/sed that truncates output.
5222for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5223  test ! -f $lt_ac_sed && continue
5224  cat /dev/null > conftest.in
5225  lt_ac_count=0
5226  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5227  # Check for GNU sed and select it if it is found.
5228  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5229    lt_cv_path_SED=$lt_ac_sed
5230    break
5231  fi
5232  while true; do
5233    cat conftest.in conftest.in >conftest.tmp
5234    mv conftest.tmp conftest.in
5235    cp conftest.in conftest.nl
5236    echo >>conftest.nl
5237    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5238    cmp -s conftest.out conftest.nl || break
5239    # 10000 chars as input seems more than enough
5240    test $lt_ac_count -gt 10 && break
5241    lt_ac_count=`expr $lt_ac_count + 1`
5242    if test $lt_ac_count -gt $lt_ac_max; then
5243      lt_ac_max=$lt_ac_count
5244      lt_cv_path_SED=$lt_ac_sed
5245    fi
5246  done
5247done
5248
5249fi
5250
5251SED=$lt_cv_path_SED
5252
5253{ echo "$as_me:$LINENO: result: $SED" >&5
5254echo "${ECHO_T}$SED" >&6; }
5255
5256
5257# Check whether --with-gnu-ld was given.
5258if test "${with_gnu_ld+set}" = set; then
5259  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5260else
5261  with_gnu_ld=no
5262fi
5263
5264ac_prog=ld
5265if test "$GCC" = yes; then
5266  # Check if gcc -print-prog-name=ld gives a path.
5267  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5268echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5269  case $host in
5270  *-*-mingw*)
5271    # gcc leaves a trailing carriage return which upsets mingw
5272    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273  *)
5274    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275  esac
5276  case $ac_prog in
5277    # Accept absolute paths.
5278    [\\/]* | ?:[\\/]*)
5279      re_direlt='/[^/][^/]*/\.\./'
5280      # Canonicalize the pathname of ld
5281      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5282      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5283	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5284      done
5285      test -z "$LD" && LD="$ac_prog"
5286      ;;
5287  "")
5288    # If it fails, then pretend we aren't using GCC.
5289    ac_prog=ld
5290    ;;
5291  *)
5292    # If it is relative, then search for the first ld in PATH.
5293    with_gnu_ld=unknown
5294    ;;
5295  esac
5296elif test "$with_gnu_ld" = yes; then
5297  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5298echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5299else
5300  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5301echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5302fi
5303if test "${lt_cv_path_LD+set}" = set; then
5304  echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306  if test -z "$LD"; then
5307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308  for ac_dir in $PATH; do
5309    IFS="$lt_save_ifs"
5310    test -z "$ac_dir" && ac_dir=.
5311    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312      lt_cv_path_LD="$ac_dir/$ac_prog"
5313      # Check to see if the program is GNU ld.  I'd rather use --version,
5314      # but apparently some variants of GNU ld only accept -v.
5315      # Break only if it was the GNU/non-GNU ld that we prefer.
5316      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5317      *GNU* | *'with BFD'*)
5318	test "$with_gnu_ld" != no && break
5319	;;
5320      *)
5321	test "$with_gnu_ld" != yes && break
5322	;;
5323      esac
5324    fi
5325  done
5326  IFS="$lt_save_ifs"
5327else
5328  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5329fi
5330fi
5331
5332LD="$lt_cv_path_LD"
5333if test -n "$LD"; then
5334  { echo "$as_me:$LINENO: result: $LD" >&5
5335echo "${ECHO_T}$LD" >&6; }
5336else
5337  { echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6; }
5339fi
5340test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5341echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5342   { (exit 1); exit 1; }; }
5343{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5344echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5345if test "${lt_cv_prog_gnu_ld+set}" = set; then
5346  echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5349case `$LD -v 2>&1 </dev/null` in
5350*GNU* | *'with BFD'*)
5351  lt_cv_prog_gnu_ld=yes
5352  ;;
5353*)
5354  lt_cv_prog_gnu_ld=no
5355  ;;
5356esac
5357fi
5358{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5359echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5360with_gnu_ld=$lt_cv_prog_gnu_ld
5361
5362
5363{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5364echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5365if test "${lt_cv_ld_reload_flag+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  lt_cv_ld_reload_flag='-r'
5369fi
5370{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5371echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5372reload_flag=$lt_cv_ld_reload_flag
5373case $reload_flag in
5374"" | " "*) ;;
5375*) reload_flag=" $reload_flag" ;;
5376esac
5377reload_cmds='$LD$reload_flag -o $output$reload_objs'
5378case $host_os in
5379  darwin*)
5380    if test "$GCC" = yes; then
5381      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5382    else
5383      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384    fi
5385    ;;
5386esac
5387
5388{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5389echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5390if test "${lt_cv_path_NM+set}" = set; then
5391  echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393  if test -n "$NM"; then
5394  # Let the user override the test.
5395  lt_cv_path_NM="$NM"
5396else
5397  lt_nm_to_check="${ac_tool_prefix}nm"
5398  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5399    lt_nm_to_check="$lt_nm_to_check nm"
5400  fi
5401  for lt_tmp_nm in $lt_nm_to_check; do
5402    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5403    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5404      IFS="$lt_save_ifs"
5405      test -z "$ac_dir" && ac_dir=.
5406      tmp_nm="$ac_dir/$lt_tmp_nm"
5407      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5408	# Check to see if the nm accepts a BSD-compat flag.
5409	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5410	#   nm: unknown option "B" ignored
5411	# Tru64's nm complains that /dev/null is an invalid object file
5412	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5413	*/dev/null* | *'Invalid file or object type'*)
5414	  lt_cv_path_NM="$tmp_nm -B"
5415	  break
5416	  ;;
5417	*)
5418	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5419	  */dev/null*)
5420	    lt_cv_path_NM="$tmp_nm -p"
5421	    break
5422	    ;;
5423	  *)
5424	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5425	    continue # so that we can try to find one that supports BSD flags
5426	    ;;
5427	  esac
5428	  ;;
5429	esac
5430      fi
5431    done
5432    IFS="$lt_save_ifs"
5433  done
5434  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5435fi
5436fi
5437{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5438echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5439NM="$lt_cv_path_NM"
5440
5441{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5443LN_S=$as_ln_s
5444if test "$LN_S" = "ln -s"; then
5445  { echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6; }
5447else
5448  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449echo "${ECHO_T}no, using $LN_S" >&6; }
5450fi
5451
5452{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5453echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5454if test "${lt_cv_deplibs_check_method+set}" = set; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  lt_cv_file_magic_cmd='$MAGIC_CMD'
5458lt_cv_file_magic_test_file=
5459lt_cv_deplibs_check_method='unknown'
5460# Need to set the preceding variable on all platforms that support
5461# interlibrary dependencies.
5462# 'none' -- dependencies not supported.
5463# `unknown' -- same as none, but documents that we really don't know.
5464# 'pass_all' -- all dependencies passed with no checks.
5465# 'test_compile' -- check by making test program.
5466# 'file_magic [[regex]]' -- check by looking for files in library path
5467# which responds to the $file_magic_cmd with a given extended regex.
5468# If you have `file' or equivalent on your system and you're not sure
5469# whether `pass_all' will *always* work, you probably want this one.
5470
5471case $host_os in
5472aix4* | aix5*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475
5476beos*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480bsdi[45]*)
5481  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5482  lt_cv_file_magic_cmd='/usr/bin/file -L'
5483  lt_cv_file_magic_test_file=/shlib/libc.so
5484  ;;
5485
5486cygwin*)
5487  # func_win32_libid is a shell function defined in ltmain.sh
5488  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5489  lt_cv_file_magic_cmd='func_win32_libid'
5490  ;;
5491
5492mingw* | pw32*)
5493  # Base MSYS/MinGW do not provide the 'file' command needed by
5494  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5495  # unless we find 'file', for example because we are cross-compiling.
5496  if ( file / ) >/dev/null 2>&1; then
5497    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5498    lt_cv_file_magic_cmd='func_win32_libid'
5499  else
5500    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5501    lt_cv_file_magic_cmd='$OBJDUMP -f'
5502  fi
5503  ;;
5504
5505darwin* | rhapsody*)
5506  lt_cv_deplibs_check_method=pass_all
5507  ;;
5508
5509freebsd* | dragonfly*)
5510  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5511    case $host_cpu in
5512    i*86 )
5513      # Not sure whether the presence of OpenBSD here was a mistake.
5514      # Let's accept both of them until this is cleared up.
5515      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5516      lt_cv_file_magic_cmd=/usr/bin/file
5517      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5518      ;;
5519    esac
5520  else
5521    lt_cv_deplibs_check_method=pass_all
5522  fi
5523  ;;
5524
5525gnu*)
5526  lt_cv_deplibs_check_method=pass_all
5527  ;;
5528
5529hpux10.20* | hpux11*)
5530  lt_cv_file_magic_cmd=/usr/bin/file
5531  case $host_cpu in
5532  ia64*)
5533    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5534    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5535    ;;
5536  hppa*64*)
5537    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]'
5538    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5539    ;;
5540  *)
5541    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5542    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5543    ;;
5544  esac
5545  ;;
5546
5547interix[3-9]*)
5548  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5549  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5550  ;;
5551
5552irix5* | irix6* | nonstopux*)
5553  case $LD in
5554  *-32|*"-32 ") libmagic=32-bit;;
5555  *-n32|*"-n32 ") libmagic=N32;;
5556  *-64|*"-64 ") libmagic=64-bit;;
5557  *) libmagic=never-match;;
5558  esac
5559  lt_cv_deplibs_check_method=pass_all
5560  ;;
5561
5562# This must be Linux ELF.
5563linux* | k*bsd*-gnu)
5564  lt_cv_deplibs_check_method=pass_all
5565  ;;
5566
5567netbsd*)
5568  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5570  else
5571    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5572  fi
5573  ;;
5574
5575newos6*)
5576  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5577  lt_cv_file_magic_cmd=/usr/bin/file
5578  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5579  ;;
5580
5581nto-qnx*)
5582  lt_cv_deplibs_check_method=unknown
5583  ;;
5584
5585openbsd*)
5586  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5587    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5588  else
5589    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5590  fi
5591  ;;
5592
5593osf3* | osf4* | osf5*)
5594  lt_cv_deplibs_check_method=pass_all
5595  ;;
5596
5597rdos*)
5598  lt_cv_deplibs_check_method=pass_all
5599  ;;
5600
5601solaris*)
5602  lt_cv_deplibs_check_method=pass_all
5603  ;;
5604
5605sysv4 | sysv4.3*)
5606  case $host_vendor in
5607  motorola)
5608    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]'
5609    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5610    ;;
5611  ncr)
5612    lt_cv_deplibs_check_method=pass_all
5613    ;;
5614  sequent)
5615    lt_cv_file_magic_cmd='/bin/file'
5616    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5617    ;;
5618  sni)
5619    lt_cv_file_magic_cmd='/bin/file'
5620    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5621    lt_cv_file_magic_test_file=/lib/libc.so
5622    ;;
5623  siemens)
5624    lt_cv_deplibs_check_method=pass_all
5625    ;;
5626  pc)
5627    lt_cv_deplibs_check_method=pass_all
5628    ;;
5629  esac
5630  ;;
5631
5632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635esac
5636
5637fi
5638{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5639echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5640file_magic_cmd=$lt_cv_file_magic_cmd
5641deplibs_check_method=$lt_cv_deplibs_check_method
5642test -z "$deplibs_check_method" && deplibs_check_method=unknown
5643
5644
5645
5646
5647# If no C compiler was specified, use CC.
5648LTCC=${LTCC-"$CC"}
5649
5650# If no C compiler flags were specified, use CFLAGS.
5651LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5652
5653# Allow CC to be a program name with arguments.
5654compiler=$CC
5655
5656# Check whether --enable-libtool-lock was given.
5657if test "${enable_libtool_lock+set}" = set; then
5658  enableval=$enable_libtool_lock;
5659fi
5660
5661test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5662
5663# Some flags need to be propagated to the compiler or linker for good
5664# libtool support.
5665case $host in
5666ia64-*-hpux*)
5667  # Find out which ABI we are using.
5668  echo 'int i;' > conftest.$ac_ext
5669  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670  (eval $ac_compile) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); }; then
5674    case `/usr/bin/file conftest.$ac_objext` in
5675    *ELF-32*)
5676      HPUX_IA64_MODE="32"
5677      ;;
5678    *ELF-64*)
5679      HPUX_IA64_MODE="64"
5680      ;;
5681    esac
5682  fi
5683  rm -rf conftest*
5684  ;;
5685*-*-irix6*)
5686  # Find out which ABI we are using.
5687  echo '#line 5687 "configure"' > conftest.$ac_ext
5688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689  (eval $ac_compile) 2>&5
5690  ac_status=$?
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); }; then
5693   if test "$lt_cv_prog_gnu_ld" = yes; then
5694    case `/usr/bin/file conftest.$ac_objext` in
5695    *32-bit*)
5696      LD="${LD-ld} -melf32bsmip"
5697      ;;
5698    *N32*)
5699      LD="${LD-ld} -melf32bmipn32"
5700      ;;
5701    *64-bit*)
5702      LD="${LD-ld} -melf64bmip"
5703      ;;
5704    esac
5705   else
5706    case `/usr/bin/file conftest.$ac_objext` in
5707    *32-bit*)
5708      LD="${LD-ld} -32"
5709      ;;
5710    *N32*)
5711      LD="${LD-ld} -n32"
5712      ;;
5713    *64-bit*)
5714      LD="${LD-ld} -64"
5715      ;;
5716    esac
5717   fi
5718  fi
5719  rm -rf conftest*
5720  ;;
5721
5722x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5723s390*-*linux*|sparc*-*linux*)
5724  # Find out which ABI we are using.
5725  echo 'int i;' > conftest.$ac_ext
5726  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727  (eval $ac_compile) 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; then
5731    case `/usr/bin/file conftest.o` in
5732    *32-bit*)
5733      case $host in
5734        x86_64-*kfreebsd*-gnu)
5735          LD="${LD-ld} -m elf_i386_fbsd"
5736          ;;
5737        x86_64-*linux*)
5738          LD="${LD-ld} -m elf_i386"
5739          ;;
5740        ppc64-*linux*|powerpc64-*linux*)
5741          LD="${LD-ld} -m elf32ppclinux"
5742          ;;
5743        s390x-*linux*)
5744          LD="${LD-ld} -m elf_s390"
5745          ;;
5746        sparc64-*linux*)
5747          LD="${LD-ld} -m elf32_sparc"
5748          ;;
5749      esac
5750      ;;
5751    *64-bit*)
5752      libsuff=64
5753      case $host in
5754        x86_64-*kfreebsd*-gnu)
5755          LD="${LD-ld} -m elf_x86_64_fbsd"
5756          ;;
5757        x86_64-*linux*)
5758          LD="${LD-ld} -m elf_x86_64"
5759          ;;
5760        ppc*-*linux*|powerpc*-*linux*)
5761          LD="${LD-ld} -m elf64ppc"
5762          ;;
5763        s390*-*linux*)
5764          LD="${LD-ld} -m elf64_s390"
5765          ;;
5766        sparc*-*linux*)
5767          LD="${LD-ld} -m elf64_sparc"
5768          ;;
5769      esac
5770      ;;
5771    esac
5772  fi
5773  rm -rf conftest*
5774  ;;
5775
5776*-*-sco3.2v5*)
5777  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5778  SAVE_CFLAGS="$CFLAGS"
5779  CFLAGS="$CFLAGS -belf"
5780  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5781echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5782if test "${lt_cv_cc_needs_belf+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791     cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h.  */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h.  */
5797
5798int
5799main ()
5800{
5801
5802  ;
5803  return 0;
5804}
5805_ACEOF
5806rm -f conftest.$ac_objext conftest$ac_exeext
5807if { (ac_try="$ac_link"
5808case "(($ac_try" in
5809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810  *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813  (eval "$ac_link") 2>conftest.er1
5814  ac_status=$?
5815  grep -v '^ *+' conftest.er1 >conftest.err
5816  rm -f conftest.er1
5817  cat conftest.err >&5
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); } && {
5820	 test -z "$ac_c_werror_flag" ||
5821	 test ! -s conftest.err
5822       } && test -s conftest$ac_exeext &&
5823       $as_test_x conftest$ac_exeext; then
5824  lt_cv_cc_needs_belf=yes
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829	lt_cv_cc_needs_belf=no
5830fi
5831
5832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5833      conftest$ac_exeext conftest.$ac_ext
5834     ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840fi
5841{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5842echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5843  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5844    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5845    CFLAGS="$SAVE_CFLAGS"
5846  fi
5847  ;;
5848sparc*-*solaris*)
5849  # Find out which ABI we are using.
5850  echo 'int i;' > conftest.$ac_ext
5851  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852  (eval $ac_compile) 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; then
5856    case `/usr/bin/file conftest.o` in
5857    *64-bit*)
5858      case $lt_cv_prog_gnu_ld in
5859      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5860      *)    LD="${LD-ld} -64" ;;
5861      esac
5862      ;;
5863    esac
5864  fi
5865  rm -rf conftest*
5866  ;;
5867
5868
5869esac
5870
5871need_locks="$enable_libtool_lock"
5872
5873
5874
5875for ac_header in dlfcn.h
5876do
5877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5879  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883fi
5884ac_res=`eval echo '${'$as_ac_Header'}'`
5885	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5886echo "${ECHO_T}$ac_res" >&6; }
5887else
5888  # Is the header compilable?
5889{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5891cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h.  */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h.  */
5897$ac_includes_default
5898#include <$ac_header>
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (ac_try="$ac_compile"
5902case "(($ac_try" in
5903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904  *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907  (eval "$ac_compile") 2>conftest.er1
5908  ac_status=$?
5909  grep -v '^ *+' conftest.er1 >conftest.err
5910  rm -f conftest.er1
5911  cat conftest.err >&5
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); } && {
5914	 test -z "$ac_c_werror_flag" ||
5915	 test ! -s conftest.err
5916       } && test -s conftest.$ac_objext; then
5917  ac_header_compiler=yes
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922	ac_header_compiler=no
5923fi
5924
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5927echo "${ECHO_T}$ac_header_compiler" >&6; }
5928
5929# Is the header present?
5930{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5932cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h.  */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h.  */
5938#include <$ac_header>
5939_ACEOF
5940if { (ac_try="$ac_cpp conftest.$ac_ext"
5941case "(($ac_try" in
5942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943  *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947  ac_status=$?
5948  grep -v '^ *+' conftest.er1 >conftest.err
5949  rm -f conftest.er1
5950  cat conftest.err >&5
5951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952  (exit $ac_status); } >/dev/null && {
5953	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5954	 test ! -s conftest.err
5955       }; then
5956  ac_header_preproc=yes
5957else
5958  echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961  ac_header_preproc=no
5962fi
5963
5964rm -f conftest.err conftest.$ac_ext
5965{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5966echo "${ECHO_T}$ac_header_preproc" >&6; }
5967
5968# So?  What about this header?
5969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5970  yes:no: )
5971    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5973    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5975    ac_header_preproc=yes
5976    ;;
5977  no:yes:* )
5978    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5980    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5981echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5982    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5984    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5985echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5988    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5990    ( cat <<\_ASBOX
5991## ---------------------------------------------------------------------- ##
5992## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5993## ---------------------------------------------------------------------- ##
5994_ASBOX
5995     ) | sed "s/^/$as_me: WARNING:     /" >&2
5996    ;;
5997esac
5998{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6001  echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003  eval "$as_ac_Header=\$ac_header_preproc"
6004fi
6005ac_res=`eval echo '${'$as_ac_Header'}'`
6006	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6007echo "${ECHO_T}$ac_res" >&6; }
6008
6009fi
6010if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011  cat >>confdefs.h <<_ACEOF
6012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6013_ACEOF
6014
6015fi
6016
6017done
6018
6019ac_ext=cpp
6020ac_cpp='$CXXCPP $CPPFLAGS'
6021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6024if test -z "$CXX"; then
6025  if test -n "$CCC"; then
6026    CXX=$CCC
6027  else
6028    if test -n "$ac_tool_prefix"; then
6029  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6030  do
6031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_prog_CXX+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  if test -n "$CXX"; then
6039  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046  for ac_exec_ext in '' $ac_executable_extensions; do
6047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058CXX=$ac_cv_prog_CXX
6059if test -n "$CXX"; then
6060  { echo "$as_me:$LINENO: result: $CXX" >&5
6061echo "${ECHO_T}$CXX" >&6; }
6062else
6063  { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
6065fi
6066
6067
6068    test -n "$CXX" && break
6069  done
6070fi
6071if test -z "$CXX"; then
6072  ac_ct_CXX=$CXX
6073  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6074do
6075  # Extract the first word of "$ac_prog", so it can be a program name with args.
6076set dummy $ac_prog; ac_word=$2
6077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  if test -n "$ac_ct_CXX"; then
6083  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090  for ac_exec_ext in '' $ac_executable_extensions; do
6091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092    ac_cv_prog_ac_ct_CXX="$ac_prog"
6093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6103if test -n "$ac_ct_CXX"; then
6104  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6105echo "${ECHO_T}$ac_ct_CXX" >&6; }
6106else
6107  { echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6; }
6109fi
6110
6111
6112  test -n "$ac_ct_CXX" && break
6113done
6114
6115  if test "x$ac_ct_CXX" = x; then
6116    CXX="g++"
6117  else
6118    case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121whose name does not start with the host triplet.  If you think this
6122configuration is useful to you, please write to autoconf@gnu.org." >&5
6123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet.  If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126ac_tool_warned=yes ;;
6127esac
6128    CXX=$ac_ct_CXX
6129  fi
6130fi
6131
6132  fi
6133fi
6134# Provide some information about the compiler.
6135echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6136ac_compiler=`set X $ac_compile; echo $2`
6137{ (ac_try="$ac_compiler --version >&5"
6138case "(($ac_try" in
6139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140  *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143  (eval "$ac_compiler --version >&5") 2>&5
6144  ac_status=$?
6145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146  (exit $ac_status); }
6147{ (ac_try="$ac_compiler -v >&5"
6148case "(($ac_try" in
6149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150  *) ac_try_echo=$ac_try;;
6151esac
6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153  (eval "$ac_compiler -v >&5") 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }
6157{ (ac_try="$ac_compiler -V >&5"
6158case "(($ac_try" in
6159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160  *) ac_try_echo=$ac_try;;
6161esac
6162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163  (eval "$ac_compiler -V >&5") 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }
6167
6168{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6169echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6170if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173  cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h.  */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h.  */
6179
6180int
6181main ()
6182{
6183#ifndef __GNUC__
6184       choke me
6185#endif
6186
6187  ;
6188  return 0;
6189}
6190_ACEOF
6191rm -f conftest.$ac_objext
6192if { (ac_try="$ac_compile"
6193case "(($ac_try" in
6194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195  *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198  (eval "$ac_compile") 2>conftest.er1
6199  ac_status=$?
6200  grep -v '^ *+' conftest.er1 >conftest.err
6201  rm -f conftest.er1
6202  cat conftest.err >&5
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); } && {
6205	 test -z "$ac_cxx_werror_flag" ||
6206	 test ! -s conftest.err
6207       } && test -s conftest.$ac_objext; then
6208  ac_compiler_gnu=yes
6209else
6210  echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213	ac_compiler_gnu=no
6214fi
6215
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6218
6219fi
6220{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6221echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6222GXX=`test $ac_compiler_gnu = yes && echo yes`
6223ac_test_CXXFLAGS=${CXXFLAGS+set}
6224ac_save_CXXFLAGS=$CXXFLAGS
6225{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6226echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6227if test "${ac_cv_prog_cxx_g+set}" = set; then
6228  echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6231   ac_cxx_werror_flag=yes
6232   ac_cv_prog_cxx_g=no
6233   CXXFLAGS="-g"
6234   cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240
6241int
6242main ()
6243{
6244
6245  ;
6246  return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext
6250if { (ac_try="$ac_compile"
6251case "(($ac_try" in
6252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253  *) ac_try_echo=$ac_try;;
6254esac
6255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256  (eval "$ac_compile") 2>conftest.er1
6257  ac_status=$?
6258  grep -v '^ *+' conftest.er1 >conftest.err
6259  rm -f conftest.er1
6260  cat conftest.err >&5
6261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); } && {
6263	 test -z "$ac_cxx_werror_flag" ||
6264	 test ! -s conftest.err
6265       } && test -s conftest.$ac_objext; then
6266  ac_cv_prog_cxx_g=yes
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271	CXXFLAGS=""
6272      cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h.  */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h.  */
6278
6279int
6280main ()
6281{
6282
6283  ;
6284  return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext
6288if { (ac_try="$ac_compile"
6289case "(($ac_try" in
6290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291  *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294  (eval "$ac_compile") 2>conftest.er1
6295  ac_status=$?
6296  grep -v '^ *+' conftest.er1 >conftest.err
6297  rm -f conftest.er1
6298  cat conftest.err >&5
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } && {
6301	 test -z "$ac_cxx_werror_flag" ||
6302	 test ! -s conftest.err
6303       } && test -s conftest.$ac_objext; then
6304  :
6305else
6306  echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6310	 CXXFLAGS="-g"
6311	 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h.  */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h.  */
6317
6318int
6319main ()
6320{
6321
6322  ;
6323  return 0;
6324}
6325_ACEOF
6326rm -f conftest.$ac_objext
6327if { (ac_try="$ac_compile"
6328case "(($ac_try" in
6329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330  *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333  (eval "$ac_compile") 2>conftest.er1
6334  ac_status=$?
6335  grep -v '^ *+' conftest.er1 >conftest.err
6336  rm -f conftest.er1
6337  cat conftest.err >&5
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); } && {
6340	 test -z "$ac_cxx_werror_flag" ||
6341	 test ! -s conftest.err
6342       } && test -s conftest.$ac_objext; then
6343  ac_cv_prog_cxx_g=yes
6344else
6345  echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348
6349fi
6350
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6359fi
6360{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6361echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6362if test "$ac_test_CXXFLAGS" = set; then
6363  CXXFLAGS=$ac_save_CXXFLAGS
6364elif test $ac_cv_prog_cxx_g = yes; then
6365  if test "$GXX" = yes; then
6366    CXXFLAGS="-g -O2"
6367  else
6368    CXXFLAGS="-g"
6369  fi
6370else
6371  if test "$GXX" = yes; then
6372    CXXFLAGS="-O2"
6373  else
6374    CXXFLAGS=
6375  fi
6376fi
6377ac_ext=cpp
6378ac_cpp='$CXXCPP $CPPFLAGS'
6379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6382
6383depcc="$CXX"  am_compiler_list=
6384
6385{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6386echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6387if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6391  # We make a subdir and do the tests there.  Otherwise we can end up
6392  # making bogus files that we don't know about and never remove.  For
6393  # instance it was reported that on HP-UX the gcc test will end up
6394  # making a dummy file named `D' -- because `-MD' means `put the output
6395  # in D'.
6396  mkdir conftest.dir
6397  # Copy depcomp to subdir because otherwise we won't find it if we're
6398  # using a relative directory.
6399  cp "$am_depcomp" conftest.dir
6400  cd conftest.dir
6401  # We will build objects and dependencies in a subdirectory because
6402  # it helps to detect inapplicable dependency modes.  For instance
6403  # both Tru64's cc and ICC support -MD to output dependencies as a
6404  # side effect of compilation, but ICC will put the dependencies in
6405  # the current directory while Tru64 will put them in the object
6406  # directory.
6407  mkdir sub
6408
6409  am_cv_CXX_dependencies_compiler_type=none
6410  if test "$am_compiler_list" = ""; then
6411     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6412  fi
6413  for depmode in $am_compiler_list; do
6414    # Setup a source with many dependencies, because some compilers
6415    # like to wrap large dependency lists on column 80 (with \), and
6416    # we should not choose a depcomp mode which is confused by this.
6417    #
6418    # We need to recreate these files for each test, as the compiler may
6419    # overwrite some of them when testing with obscure command lines.
6420    # This happens at least with the AIX C compiler.
6421    : > sub/conftest.c
6422    for i in 1 2 3 4 5 6; do
6423      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6424      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6425      # Solaris 8's {/usr,}/bin/sh.
6426      touch sub/conftst$i.h
6427    done
6428    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6429
6430    case $depmode in
6431    nosideeffect)
6432      # after this tag, mechanisms are not by side-effect, so they'll
6433      # only be used when explicitly requested
6434      if test "x$enable_dependency_tracking" = xyes; then
6435	continue
6436      else
6437	break
6438      fi
6439      ;;
6440    none) break ;;
6441    esac
6442    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6443    # mode.  It turns out that the SunPro C++ compiler does not properly
6444    # handle `-M -o', and we need to detect this.
6445    if depmode=$depmode \
6446       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6447       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6448       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6449         >/dev/null 2>conftest.err &&
6450       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6451       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6452       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6453       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6454      # icc doesn't choke on unknown options, it will just issue warnings
6455      # or remarks (even with -Werror).  So we grep stderr for any message
6456      # that says an option was ignored or not supported.
6457      # When given -MP, icc 7.0 and 7.1 complain thusly:
6458      #   icc: Command line warning: ignoring option '-M'; no argument required
6459      # The diagnosis changed in icc 8.0:
6460      #   icc: Command line remark: option '-MP' not supported
6461      if (grep 'ignoring option' conftest.err ||
6462          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6463        am_cv_CXX_dependencies_compiler_type=$depmode
6464        break
6465      fi
6466    fi
6467  done
6468
6469  cd ..
6470  rm -rf conftest.dir
6471else
6472  am_cv_CXX_dependencies_compiler_type=none
6473fi
6474
6475fi
6476{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6477echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6478CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6479
6480 if
6481  test "x$enable_dependency_tracking" != xno \
6482  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6483  am__fastdepCXX_TRUE=
6484  am__fastdepCXX_FALSE='#'
6485else
6486  am__fastdepCXX_TRUE='#'
6487  am__fastdepCXX_FALSE=
6488fi
6489
6490
6491
6492
6493if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6494    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6495    (test "X$CXX" != "Xg++"))) ; then
6496  ac_ext=cpp
6497ac_cpp='$CXXCPP $CPPFLAGS'
6498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6501{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6502echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6503if test -z "$CXXCPP"; then
6504  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507      # Double quotes because CXXCPP needs to be expanded
6508    for CXXCPP in "$CXX -E" "/lib/cpp"
6509    do
6510      ac_preproc_ok=false
6511for ac_cxx_preproc_warn_flag in '' yes
6512do
6513  # Use a header file that comes with gcc, so configuring glibc
6514  # with a fresh cross-compiler works.
6515  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6516  # <limits.h> exists even on freestanding compilers.
6517  # On the NeXT, cc -E runs the code through the compiler's parser,
6518  # not just through cpp. "Syntax error" is here to catch this case.
6519  cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h.  */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h.  */
6525#ifdef __STDC__
6526# include <limits.h>
6527#else
6528# include <assert.h>
6529#endif
6530		     Syntax error
6531_ACEOF
6532if { (ac_try="$ac_cpp conftest.$ac_ext"
6533case "(($ac_try" in
6534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535  *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6539  ac_status=$?
6540  grep -v '^ *+' conftest.er1 >conftest.err
6541  rm -f conftest.er1
6542  cat conftest.err >&5
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); } >/dev/null && {
6545	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6546	 test ! -s conftest.err
6547       }; then
6548  :
6549else
6550  echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553  # Broken: fails on valid input.
6554continue
6555fi
6556
6557rm -f conftest.err conftest.$ac_ext
6558
6559  # OK, works on sane cases.  Now check whether nonexistent headers
6560  # can be detected and how.
6561  cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567#include <ac_nonexistent.h>
6568_ACEOF
6569if { (ac_try="$ac_cpp conftest.$ac_ext"
6570case "(($ac_try" in
6571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572  *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6576  ac_status=$?
6577  grep -v '^ *+' conftest.er1 >conftest.err
6578  rm -f conftest.er1
6579  cat conftest.err >&5
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); } >/dev/null && {
6582	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6583	 test ! -s conftest.err
6584       }; then
6585  # Broken: success on invalid input.
6586continue
6587else
6588  echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591  # Passes both tests.
6592ac_preproc_ok=:
6593break
6594fi
6595
6596rm -f conftest.err conftest.$ac_ext
6597
6598done
6599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6600rm -f conftest.err conftest.$ac_ext
6601if $ac_preproc_ok; then
6602  break
6603fi
6604
6605    done
6606    ac_cv_prog_CXXCPP=$CXXCPP
6607
6608fi
6609  CXXCPP=$ac_cv_prog_CXXCPP
6610else
6611  ac_cv_prog_CXXCPP=$CXXCPP
6612fi
6613{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6614echo "${ECHO_T}$CXXCPP" >&6; }
6615ac_preproc_ok=false
6616for ac_cxx_preproc_warn_flag in '' yes
6617do
6618  # Use a header file that comes with gcc, so configuring glibc
6619  # with a fresh cross-compiler works.
6620  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6621  # <limits.h> exists even on freestanding compilers.
6622  # On the NeXT, cc -E runs the code through the compiler's parser,
6623  # not just through cpp. "Syntax error" is here to catch this case.
6624  cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h.  */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h.  */
6630#ifdef __STDC__
6631# include <limits.h>
6632#else
6633# include <assert.h>
6634#endif
6635		     Syntax error
6636_ACEOF
6637if { (ac_try="$ac_cpp conftest.$ac_ext"
6638case "(($ac_try" in
6639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640  *) ac_try_echo=$ac_try;;
6641esac
6642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6644  ac_status=$?
6645  grep -v '^ *+' conftest.er1 >conftest.err
6646  rm -f conftest.er1
6647  cat conftest.err >&5
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); } >/dev/null && {
6650	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6651	 test ! -s conftest.err
6652       }; then
6653  :
6654else
6655  echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658  # Broken: fails on valid input.
6659continue
6660fi
6661
6662rm -f conftest.err conftest.$ac_ext
6663
6664  # OK, works on sane cases.  Now check whether nonexistent headers
6665  # can be detected and how.
6666  cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h.  */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h.  */
6672#include <ac_nonexistent.h>
6673_ACEOF
6674if { (ac_try="$ac_cpp conftest.$ac_ext"
6675case "(($ac_try" in
6676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677  *) ac_try_echo=$ac_try;;
6678esac
6679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6681  ac_status=$?
6682  grep -v '^ *+' conftest.er1 >conftest.err
6683  rm -f conftest.er1
6684  cat conftest.err >&5
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); } >/dev/null && {
6687	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6688	 test ! -s conftest.err
6689       }; then
6690  # Broken: success on invalid input.
6691continue
6692else
6693  echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696  # Passes both tests.
6697ac_preproc_ok=:
6698break
6699fi
6700
6701rm -f conftest.err conftest.$ac_ext
6702
6703done
6704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6705rm -f conftest.err conftest.$ac_ext
6706if $ac_preproc_ok; then
6707  :
6708else
6709  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6710See \`config.log' for more details." >&5
6711echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6712See \`config.log' for more details." >&2;}
6713   { (exit 1); exit 1; }; }
6714fi
6715
6716ac_ext=cpp
6717ac_cpp='$CXXCPP $CPPFLAGS'
6718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6721
6722fi
6723
6724
6725ac_ext=f
6726ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6727ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6729if test -n "$ac_tool_prefix"; then
6730  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
6731  do
6732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_prog_F77+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  if test -n "$F77"; then
6740  ac_cv_prog_F77="$F77" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759F77=$ac_cv_prog_F77
6760if test -n "$F77"; then
6761  { echo "$as_me:$LINENO: result: $F77" >&5
6762echo "${ECHO_T}$F77" >&6; }
6763else
6764  { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766fi
6767
6768
6769    test -n "$F77" && break
6770  done
6771fi
6772if test -z "$F77"; then
6773  ac_ct_F77=$F77
6774  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
6775do
6776  # Extract the first word of "$ac_prog", so it can be a program name with args.
6777set dummy $ac_prog; ac_word=$2
6778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6781  echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783  if test -n "$ac_ct_F77"; then
6784  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  test -z "$as_dir" && as_dir=.
6791  for ac_exec_ext in '' $ac_executable_extensions; do
6792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793    ac_cv_prog_ac_ct_F77="$ac_prog"
6794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803ac_ct_F77=$ac_cv_prog_ac_ct_F77
6804if test -n "$ac_ct_F77"; then
6805  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6806echo "${ECHO_T}$ac_ct_F77" >&6; }
6807else
6808  { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
6810fi
6811
6812
6813  test -n "$ac_ct_F77" && break
6814done
6815
6816  if test "x$ac_ct_F77" = x; then
6817    F77=""
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6822whose name does not start with the host triplet.  If you think this
6823configuration is useful to you, please write to autoconf@gnu.org." >&5
6824echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6825whose name does not start with the host triplet.  If you think this
6826configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6827ac_tool_warned=yes ;;
6828esac
6829    F77=$ac_ct_F77
6830  fi
6831fi
6832
6833
6834# Provide some information about the compiler.
6835echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6836ac_compiler=`set X $ac_compile; echo $2`
6837{ (ac_try="$ac_compiler --version >&5"
6838case "(($ac_try" in
6839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840  *) ac_try_echo=$ac_try;;
6841esac
6842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843  (eval "$ac_compiler --version >&5") 2>&5
6844  ac_status=$?
6845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846  (exit $ac_status); }
6847{ (ac_try="$ac_compiler -v >&5"
6848case "(($ac_try" in
6849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850  *) ac_try_echo=$ac_try;;
6851esac
6852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853  (eval "$ac_compiler -v >&5") 2>&5
6854  ac_status=$?
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); }
6857{ (ac_try="$ac_compiler -V >&5"
6858case "(($ac_try" in
6859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860  *) ac_try_echo=$ac_try;;
6861esac
6862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863  (eval "$ac_compiler -V >&5") 2>&5
6864  ac_status=$?
6865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); }
6867rm -f a.out
6868
6869# If we don't use `.F' as extension, the preprocessor is not run on the
6870# input file.  (Note that this only needs to work for GNU compilers.)
6871ac_save_ext=$ac_ext
6872ac_ext=F
6873{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6874echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6875if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6876  echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878  cat >conftest.$ac_ext <<_ACEOF
6879      program main
6880#ifndef __GNUC__
6881       choke me
6882#endif
6883
6884      end
6885_ACEOF
6886rm -f conftest.$ac_objext
6887if { (ac_try="$ac_compile"
6888case "(($ac_try" in
6889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890  *) ac_try_echo=$ac_try;;
6891esac
6892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893  (eval "$ac_compile") 2>conftest.er1
6894  ac_status=$?
6895  grep -v '^ *+' conftest.er1 >conftest.err
6896  rm -f conftest.er1
6897  cat conftest.err >&5
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); } && {
6900	 test -z "$ac_f77_werror_flag" ||
6901	 test ! -s conftest.err
6902       } && test -s conftest.$ac_objext; then
6903  ac_compiler_gnu=yes
6904else
6905  echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908	ac_compiler_gnu=no
6909fi
6910
6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6913
6914fi
6915{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6916echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6917ac_ext=$ac_save_ext
6918ac_test_FFLAGS=${FFLAGS+set}
6919ac_save_FFLAGS=$FFLAGS
6920FFLAGS=
6921{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6922echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6923if test "${ac_cv_prog_f77_g+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  FFLAGS=-g
6927cat >conftest.$ac_ext <<_ACEOF
6928      program main
6929
6930      end
6931_ACEOF
6932rm -f conftest.$ac_objext
6933if { (ac_try="$ac_compile"
6934case "(($ac_try" in
6935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936  *) ac_try_echo=$ac_try;;
6937esac
6938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939  (eval "$ac_compile") 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } && {
6946	 test -z "$ac_f77_werror_flag" ||
6947	 test ! -s conftest.err
6948       } && test -s conftest.$ac_objext; then
6949  ac_cv_prog_f77_g=yes
6950else
6951  echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954	ac_cv_prog_f77_g=no
6955fi
6956
6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958
6959fi
6960{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6961echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6962if test "$ac_test_FFLAGS" = set; then
6963  FFLAGS=$ac_save_FFLAGS
6964elif test $ac_cv_prog_f77_g = yes; then
6965  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6966    FFLAGS="-g -O2"
6967  else
6968    FFLAGS="-g"
6969  fi
6970else
6971  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6972    FFLAGS="-O2"
6973  else
6974    FFLAGS=
6975  fi
6976fi
6977
6978G77=`test $ac_compiler_gnu = yes && echo yes`
6979ac_ext=c
6980ac_cpp='$CPP $CPPFLAGS'
6981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984
6985
6986
6987# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6988
6989# find the maximum length of command line arguments
6990{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6991echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6992if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995    i=0
6996  teststring="ABCD"
6997
6998  case $build_os in
6999  msdosdjgpp*)
7000    # On DJGPP, this test can blow up pretty badly due to problems in libc
7001    # (any single argument exceeding 2000 bytes causes a buffer overrun
7002    # during glob expansion).  Even if it were fixed, the result of this
7003    # check would be larger than it should be.
7004    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7005    ;;
7006
7007  gnu*)
7008    # Under GNU Hurd, this test is not required because there is
7009    # no limit to the length of command line arguments.
7010    # Libtool will interpret -1 as no limit whatsoever
7011    lt_cv_sys_max_cmd_len=-1;
7012    ;;
7013
7014  cygwin* | mingw*)
7015    # On Win9x/ME, this test blows up -- it succeeds, but takes
7016    # about 5 minutes as the teststring grows exponentially.
7017    # Worse, since 9x/ME are not pre-emptively multitasking,
7018    # you end up with a "frozen" computer, even though with patience
7019    # the test eventually succeeds (with a max line length of 256k).
7020    # Instead, let's just punt: use the minimum linelength reported by
7021    # all of the supported platforms: 8192 (on NT/2K/XP).
7022    lt_cv_sys_max_cmd_len=8192;
7023    ;;
7024
7025  amigaos*)
7026    # On AmigaOS with pdksh, this test takes hours, literally.
7027    # So we just punt and use a minimum line length of 8192.
7028    lt_cv_sys_max_cmd_len=8192;
7029    ;;
7030
7031  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7032    # This has been around since 386BSD, at least.  Likely further.
7033    if test -x /sbin/sysctl; then
7034      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7035    elif test -x /usr/sbin/sysctl; then
7036      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7037    else
7038      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7039    fi
7040    # And add a safety zone
7041    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7042    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7043    ;;
7044
7045  interix*)
7046    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7047    lt_cv_sys_max_cmd_len=196608
7048    ;;
7049
7050  osf*)
7051    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7052    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7053    # nice to cause kernel panics so lets avoid the loop below.
7054    # First set a reasonable default.
7055    lt_cv_sys_max_cmd_len=16384
7056    #
7057    if test -x /sbin/sysconfig; then
7058      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7059        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7060      esac
7061    fi
7062    ;;
7063  sco3.2v5*)
7064    lt_cv_sys_max_cmd_len=102400
7065    ;;
7066  sysv5* | sco5v6* | sysv4.2uw2*)
7067    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7068    if test -n "$kargmax"; then
7069      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7070    else
7071      lt_cv_sys_max_cmd_len=32768
7072    fi
7073    ;;
7074  *)
7075    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7076    if test -n "$lt_cv_sys_max_cmd_len"; then
7077      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7078      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7079    else
7080      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7081      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7082	       = "XX$teststring") >/dev/null 2>&1 &&
7083	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
7084	      lt_cv_sys_max_cmd_len=$new_result &&
7085	      test $i != 17 # 1/2 MB should be enough
7086      do
7087        i=`expr $i + 1`
7088        teststring=$teststring$teststring
7089      done
7090      teststring=
7091      # Add a significant safety factor because C++ compilers can tack on massive
7092      # amounts of additional arguments before passing them to the linker.
7093      # It appears as though 1/2 is a usable value.
7094      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7095    fi
7096    ;;
7097  esac
7098
7099fi
7100
7101if test -n $lt_cv_sys_max_cmd_len ; then
7102  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7103echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7104else
7105  { echo "$as_me:$LINENO: result: none" >&5
7106echo "${ECHO_T}none" >&6; }
7107fi
7108
7109
7110
7111
7112
7113# Check for command to grab the raw symbol name followed by C symbol from nm.
7114{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7115echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7116if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119
7120# These are sane defaults that work on at least a few old systems.
7121# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7122
7123# Character class describing NM global symbol codes.
7124symcode='[BCDEGRST]'
7125
7126# Regexp to match symbols that can be accessed directly from C.
7127sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7128
7129# Transform an extracted symbol line into a proper C declaration
7130lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7131
7132# Transform an extracted symbol line into symbol name and symbol address
7133lt_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'"
7134
7135# Define system-specific variables.
7136case $host_os in
7137aix*)
7138  symcode='[BCDT]'
7139  ;;
7140cygwin* | mingw* | pw32*)
7141  symcode='[ABCDGISTW]'
7142  ;;
7143hpux*) # Its linker distinguishes data from code symbols
7144  if test "$host_cpu" = ia64; then
7145    symcode='[ABCDEGRST]'
7146  fi
7147  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7148  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'"
7149  ;;
7150linux* | k*bsd*-gnu)
7151  if test "$host_cpu" = ia64; then
7152    symcode='[ABCDGIRSTW]'
7153    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154    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'"
7155  fi
7156  ;;
7157irix* | nonstopux*)
7158  symcode='[BCDEGRST]'
7159  ;;
7160osf*)
7161  symcode='[BCDEGQRST]'
7162  ;;
7163solaris*)
7164  symcode='[BDRT]'
7165  ;;
7166sco3.2v5*)
7167  symcode='[DT]'
7168  ;;
7169sysv4.2uw2*)
7170  symcode='[DT]'
7171  ;;
7172sysv5* | sco5v6* | unixware* | OpenUNIX*)
7173  symcode='[ABDT]'
7174  ;;
7175sysv4)
7176  symcode='[DFNSTU]'
7177  ;;
7178esac
7179
7180# Handle CRLF in mingw tool chain
7181opt_cr=
7182case $build_os in
7183mingw*)
7184  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7185  ;;
7186esac
7187
7188# If we're using GNU nm, then use its standard symbol codes.
7189case `$NM -V 2>&1` in
7190*GNU* | *'with BFD'*)
7191  symcode='[ABCDGIRSTW]' ;;
7192esac
7193
7194# Try without a prefix undercore, then with it.
7195for ac_symprfx in "" "_"; do
7196
7197  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7198  symxfrm="\\1 $ac_symprfx\\2 \\2"
7199
7200  # Write the raw and C identifiers.
7201  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7202
7203  # Check to see that the pipe works correctly.
7204  pipe_works=no
7205
7206  rm -f conftest*
7207  cat > conftest.$ac_ext <<EOF
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211char nm_test_var;
7212void nm_test_func(){}
7213#ifdef __cplusplus
7214}
7215#endif
7216int main(){nm_test_var='a';nm_test_func();return(0);}
7217EOF
7218
7219  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220  (eval $ac_compile) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; then
7224    # Now try to grab the symbols.
7225    nlist=conftest.nm
7226    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7227  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); } && test -s "$nlist"; then
7231      # Try sorting and uniquifying the output.
7232      if sort "$nlist" | uniq > "$nlist"T; then
7233	mv -f "$nlist"T "$nlist"
7234      else
7235	rm -f "$nlist"T
7236      fi
7237
7238      # Make sure that we snagged all the symbols we need.
7239      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7240	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7241	  cat <<EOF > conftest.$ac_ext
7242#ifdef __cplusplus
7243extern "C" {
7244#endif
7245
7246EOF
7247	  # Now generate the symbol file.
7248	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7249
7250	  cat <<EOF >> conftest.$ac_ext
7251#if defined (__STDC__) && __STDC__
7252# define lt_ptr_t void *
7253#else
7254# define lt_ptr_t char *
7255# define const
7256#endif
7257
7258/* The mapping between symbol names and symbols. */
7259const struct {
7260  const char *name;
7261  lt_ptr_t address;
7262}
7263lt_preloaded_symbols[] =
7264{
7265EOF
7266	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7267	  cat <<\EOF >> conftest.$ac_ext
7268  {0, (lt_ptr_t) 0}
7269};
7270
7271#ifdef __cplusplus
7272}
7273#endif
7274EOF
7275	  # Now try linking the two files.
7276	  mv conftest.$ac_objext conftstm.$ac_objext
7277	  lt_save_LIBS="$LIBS"
7278	  lt_save_CFLAGS="$CFLAGS"
7279	  LIBS="conftstm.$ac_objext"
7280	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7281	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282  (eval $ac_link) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7286	    pipe_works=yes
7287	  fi
7288	  LIBS="$lt_save_LIBS"
7289	  CFLAGS="$lt_save_CFLAGS"
7290	else
7291	  echo "cannot find nm_test_func in $nlist" >&5
7292	fi
7293      else
7294	echo "cannot find nm_test_var in $nlist" >&5
7295      fi
7296    else
7297      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7298    fi
7299  else
7300    echo "$progname: failed program was:" >&5
7301    cat conftest.$ac_ext >&5
7302  fi
7303  rm -f conftest* conftst*
7304
7305  # Do not use the global_symbol_pipe unless it works.
7306  if test "$pipe_works" = yes; then
7307    break
7308  else
7309    lt_cv_sys_global_symbol_pipe=
7310  fi
7311done
7312
7313fi
7314
7315if test -z "$lt_cv_sys_global_symbol_pipe"; then
7316  lt_cv_sys_global_symbol_to_cdecl=
7317fi
7318if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7319  { echo "$as_me:$LINENO: result: failed" >&5
7320echo "${ECHO_T}failed" >&6; }
7321else
7322  { echo "$as_me:$LINENO: result: ok" >&5
7323echo "${ECHO_T}ok" >&6; }
7324fi
7325
7326{ echo "$as_me:$LINENO: checking for objdir" >&5
7327echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7328if test "${lt_cv_objdir+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  rm -f .libs 2>/dev/null
7332mkdir .libs 2>/dev/null
7333if test -d .libs; then
7334  lt_cv_objdir=.libs
7335else
7336  # MS-DOS does not allow filenames that begin with a dot.
7337  lt_cv_objdir=_libs
7338fi
7339rmdir .libs 2>/dev/null
7340fi
7341{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7342echo "${ECHO_T}$lt_cv_objdir" >&6; }
7343objdir=$lt_cv_objdir
7344
7345
7346
7347
7348
7349case $host_os in
7350aix3*)
7351  # AIX sometimes has problems with the GCC collect2 program.  For some
7352  # reason, if we set the COLLECT_NAMES environment variable, the problems
7353  # vanish in a puff of smoke.
7354  if test "X${COLLECT_NAMES+set}" != Xset; then
7355    COLLECT_NAMES=
7356    export COLLECT_NAMES
7357  fi
7358  ;;
7359esac
7360
7361# Sed substitution that helps us do robust quoting.  It backslashifies
7362# metacharacters that are still active within double-quoted strings.
7363Xsed='sed -e 1s/^X//'
7364sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7365
7366# Same as above, but do not quote variable references.
7367double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7368
7369# Sed substitution to delay expansion of an escaped shell variable in a
7370# double_quote_subst'ed string.
7371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7372
7373# Sed substitution to avoid accidental globbing in evaled expressions
7374no_glob_subst='s/\*/\\\*/g'
7375
7376# Constants:
7377rm="rm -f"
7378
7379# Global variables:
7380default_ofile=libtool
7381can_build_shared=yes
7382
7383# All known linkers require a `.a' archive for static linking (except MSVC,
7384# which needs '.lib').
7385libext=a
7386ltmain="$ac_aux_dir/ltmain.sh"
7387ofile="$default_ofile"
7388with_gnu_ld="$lt_cv_prog_gnu_ld"
7389
7390if test -n "$ac_tool_prefix"; then
7391  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7392set dummy ${ac_tool_prefix}ar; ac_word=$2
7393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_prog_AR+set}" = set; then
7396  echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398  if test -n "$AR"; then
7399  ac_cv_prog_AR="$AR" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406  for ac_exec_ext in '' $ac_executable_extensions; do
7407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408    ac_cv_prog_AR="${ac_tool_prefix}ar"
7409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418AR=$ac_cv_prog_AR
7419if test -n "$AR"; then
7420  { echo "$as_me:$LINENO: result: $AR" >&5
7421echo "${ECHO_T}$AR" >&6; }
7422else
7423  { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428fi
7429if test -z "$ac_cv_prog_AR"; then
7430  ac_ct_AR=$AR
7431  # Extract the first word of "ar", so it can be a program name with args.
7432set dummy ar; ac_word=$2
7433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7436  echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438  if test -n "$ac_ct_AR"; then
7439  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446  for ac_exec_ext in '' $ac_executable_extensions; do
7447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448    ac_cv_prog_ac_ct_AR="ar"
7449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450    break 2
7451  fi
7452done
7453done
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459if test -n "$ac_ct_AR"; then
7460  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7461echo "${ECHO_T}$ac_ct_AR" >&6; }
7462else
7463  { echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6; }
7465fi
7466
7467  if test "x$ac_ct_AR" = x; then
7468    AR="false"
7469  else
7470    case $cross_compiling:$ac_tool_warned in
7471yes:)
7472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7473whose name does not start with the host triplet.  If you think this
7474configuration is useful to you, please write to autoconf@gnu.org." >&5
7475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7476whose name does not start with the host triplet.  If you think this
7477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7478ac_tool_warned=yes ;;
7479esac
7480    AR=$ac_ct_AR
7481  fi
7482else
7483  AR="$ac_cv_prog_AR"
7484fi
7485
7486if test -n "$ac_tool_prefix"; then
7487  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491if test "${ac_cv_prog_RANLIB+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  if test -n "$RANLIB"; then
7495  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502  for ac_exec_ext in '' $ac_executable_extensions; do
7503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514RANLIB=$ac_cv_prog_RANLIB
7515if test -n "$RANLIB"; then
7516  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7517echo "${ECHO_T}$RANLIB" >&6; }
7518else
7519  { echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6; }
7521fi
7522
7523
7524fi
7525if test -z "$ac_cv_prog_RANLIB"; then
7526  ac_ct_RANLIB=$RANLIB
7527  # Extract the first word of "ranlib", so it can be a program name with args.
7528set dummy ranlib; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7532  echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534  if test -n "$ac_ct_RANLIB"; then
7535  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540  IFS=$as_save_IFS
7541  test -z "$as_dir" && as_dir=.
7542  for ac_exec_ext in '' $ac_executable_extensions; do
7543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544    ac_cv_prog_ac_ct_RANLIB="ranlib"
7545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546    break 2
7547  fi
7548done
7549done
7550IFS=$as_save_IFS
7551
7552fi
7553fi
7554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7555if test -n "$ac_ct_RANLIB"; then
7556  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7557echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7558else
7559  { echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6; }
7561fi
7562
7563  if test "x$ac_ct_RANLIB" = x; then
7564    RANLIB=":"
7565  else
7566    case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7569whose name does not start with the host triplet.  If you think this
7570configuration is useful to you, please write to autoconf@gnu.org." >&5
7571echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7572whose name does not start with the host triplet.  If you think this
7573configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7574ac_tool_warned=yes ;;
7575esac
7576    RANLIB=$ac_ct_RANLIB
7577  fi
7578else
7579  RANLIB="$ac_cv_prog_RANLIB"
7580fi
7581
7582if test -n "$ac_tool_prefix"; then
7583  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7584set dummy ${ac_tool_prefix}strip; ac_word=$2
7585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_prog_STRIP+set}" = set; then
7588  echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590  if test -n "$STRIP"; then
7591  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598  for ac_exec_ext in '' $ac_executable_extensions; do
7599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
7610STRIP=$ac_cv_prog_STRIP
7611if test -n "$STRIP"; then
7612  { echo "$as_me:$LINENO: result: $STRIP" >&5
7613echo "${ECHO_T}$STRIP" >&6; }
7614else
7615  { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
7617fi
7618
7619
7620fi
7621if test -z "$ac_cv_prog_STRIP"; then
7622  ac_ct_STRIP=$STRIP
7623  # Extract the first word of "strip", so it can be a program name with args.
7624set dummy strip; ac_word=$2
7625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  if test -n "$ac_ct_STRIP"; then
7631  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638  for ac_exec_ext in '' $ac_executable_extensions; do
7639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640    ac_cv_prog_ac_ct_STRIP="strip"
7641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7651if test -n "$ac_ct_STRIP"; then
7652  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7653echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7654else
7655  { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
7657fi
7658
7659  if test "x$ac_ct_STRIP" = x; then
7660    STRIP=":"
7661  else
7662    case $cross_compiling:$ac_tool_warned in
7663yes:)
7664{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7665whose name does not start with the host triplet.  If you think this
7666configuration is useful to you, please write to autoconf@gnu.org." >&5
7667echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7668whose name does not start with the host triplet.  If you think this
7669configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7670ac_tool_warned=yes ;;
7671esac
7672    STRIP=$ac_ct_STRIP
7673  fi
7674else
7675  STRIP="$ac_cv_prog_STRIP"
7676fi
7677
7678
7679old_CC="$CC"
7680old_CFLAGS="$CFLAGS"
7681
7682# Set sane defaults for various variables
7683test -z "$AR" && AR=ar
7684test -z "$AR_FLAGS" && AR_FLAGS=cru
7685test -z "$AS" && AS=as
7686test -z "$CC" && CC=cc
7687test -z "$LTCC" && LTCC=$CC
7688test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7689test -z "$DLLTOOL" && DLLTOOL=dlltool
7690test -z "$LD" && LD=ld
7691test -z "$LN_S" && LN_S="ln -s"
7692test -z "$MAGIC_CMD" && MAGIC_CMD=file
7693test -z "$NM" && NM=nm
7694test -z "$SED" && SED=sed
7695test -z "$OBJDUMP" && OBJDUMP=objdump
7696test -z "$RANLIB" && RANLIB=:
7697test -z "$STRIP" && STRIP=:
7698test -z "$ac_objext" && ac_objext=o
7699
7700# Determine commands to create old-style static archives.
7701old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7702old_postinstall_cmds='chmod 644 $oldlib'
7703old_postuninstall_cmds=
7704
7705if test -n "$RANLIB"; then
7706  case $host_os in
7707  openbsd*)
7708    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7709    ;;
7710  *)
7711    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7712    ;;
7713  esac
7714  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7715fi
7716
7717for cc_temp in $compiler""; do
7718  case $cc_temp in
7719    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7720    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7721    \-*) ;;
7722    *) break;;
7723  esac
7724done
7725cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7726
7727
7728# Only perform the check for file, if the check method requires it
7729case $deplibs_check_method in
7730file_magic*)
7731  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7732    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7733echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7734if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7735  echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737  case $MAGIC_CMD in
7738[\\/*] |  ?:[\\/]*)
7739  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7740  ;;
7741*)
7742  lt_save_MAGIC_CMD="$MAGIC_CMD"
7743  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7745  for ac_dir in $ac_dummy; do
7746    IFS="$lt_save_ifs"
7747    test -z "$ac_dir" && ac_dir=.
7748    if test -f $ac_dir/${ac_tool_prefix}file; then
7749      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7750      if test -n "$file_magic_test_file"; then
7751	case $deplibs_check_method in
7752	"file_magic "*)
7753	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7754	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7756	    $EGREP "$file_magic_regex" > /dev/null; then
7757	    :
7758	  else
7759	    cat <<EOF 1>&2
7760
7761*** Warning: the command libtool uses to detect shared libraries,
7762*** $file_magic_cmd, produces output that libtool cannot recognize.
7763*** The result is that libtool may fail to recognize shared libraries
7764*** as such.  This will affect the creation of libtool libraries that
7765*** depend on shared libraries, but programs linked with such libtool
7766*** libraries will work regardless of this problem.  Nevertheless, you
7767*** may want to report the problem to your system manager and/or to
7768*** bug-libtool@gnu.org
7769
7770EOF
7771	  fi ;;
7772	esac
7773      fi
7774      break
7775    fi
7776  done
7777  IFS="$lt_save_ifs"
7778  MAGIC_CMD="$lt_save_MAGIC_CMD"
7779  ;;
7780esac
7781fi
7782
7783MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784if test -n "$MAGIC_CMD"; then
7785  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7786echo "${ECHO_T}$MAGIC_CMD" >&6; }
7787else
7788  { echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6; }
7790fi
7791
7792if test -z "$lt_cv_path_MAGIC_CMD"; then
7793  if test -n "$ac_tool_prefix"; then
7794    { echo "$as_me:$LINENO: checking for file" >&5
7795echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7796if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  case $MAGIC_CMD in
7800[\\/*] |  ?:[\\/]*)
7801  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7802  ;;
7803*)
7804  lt_save_MAGIC_CMD="$MAGIC_CMD"
7805  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7806  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7807  for ac_dir in $ac_dummy; do
7808    IFS="$lt_save_ifs"
7809    test -z "$ac_dir" && ac_dir=.
7810    if test -f $ac_dir/file; then
7811      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7812      if test -n "$file_magic_test_file"; then
7813	case $deplibs_check_method in
7814	"file_magic "*)
7815	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7816	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7817	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7818	    $EGREP "$file_magic_regex" > /dev/null; then
7819	    :
7820	  else
7821	    cat <<EOF 1>&2
7822
7823*** Warning: the command libtool uses to detect shared libraries,
7824*** $file_magic_cmd, produces output that libtool cannot recognize.
7825*** The result is that libtool may fail to recognize shared libraries
7826*** as such.  This will affect the creation of libtool libraries that
7827*** depend on shared libraries, but programs linked with such libtool
7828*** libraries will work regardless of this problem.  Nevertheless, you
7829*** may want to report the problem to your system manager and/or to
7830*** bug-libtool@gnu.org
7831
7832EOF
7833	  fi ;;
7834	esac
7835      fi
7836      break
7837    fi
7838  done
7839  IFS="$lt_save_ifs"
7840  MAGIC_CMD="$lt_save_MAGIC_CMD"
7841  ;;
7842esac
7843fi
7844
7845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846if test -n "$MAGIC_CMD"; then
7847  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7848echo "${ECHO_T}$MAGIC_CMD" >&6; }
7849else
7850  { echo "$as_me:$LINENO: result: no" >&5
7851echo "${ECHO_T}no" >&6; }
7852fi
7853
7854  else
7855    MAGIC_CMD=:
7856  fi
7857fi
7858
7859  fi
7860  ;;
7861esac
7862
7863enable_dlopen=no
7864enable_win32_dll=no
7865
7866# Check whether --enable-libtool-lock was given.
7867if test "${enable_libtool_lock+set}" = set; then
7868  enableval=$enable_libtool_lock;
7869fi
7870
7871test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7872
7873
7874# Check whether --with-pic was given.
7875if test "${with_pic+set}" = set; then
7876  withval=$with_pic; pic_mode="$withval"
7877else
7878  pic_mode=default
7879fi
7880
7881test -z "$pic_mode" && pic_mode=default
7882
7883# Use C for the default configuration in the libtool script
7884tagname=
7885lt_save_CC="$CC"
7886ac_ext=c
7887ac_cpp='$CPP $CPPFLAGS'
7888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893# Source file extension for C test sources.
7894ac_ext=c
7895
7896# Object file extension for compiled C test sources.
7897objext=o
7898objext=$objext
7899
7900# Code to be used in simple compile tests
7901lt_simple_compile_test_code="int some_variable = 0;"
7902
7903# Code to be used in simple link tests
7904lt_simple_link_test_code='int main(){return(0);}'
7905
7906
7907# If no C compiler was specified, use CC.
7908LTCC=${LTCC-"$CC"}
7909
7910# If no C compiler flags were specified, use CFLAGS.
7911LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7912
7913# Allow CC to be a program name with arguments.
7914compiler=$CC
7915
7916
7917# save warnings/boilerplate of simple test code
7918ac_outfile=conftest.$ac_objext
7919echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7920eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7921_lt_compiler_boilerplate=`cat conftest.err`
7922$rm conftest*
7923
7924ac_outfile=conftest.$ac_objext
7925echo "$lt_simple_link_test_code" >conftest.$ac_ext
7926eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7927_lt_linker_boilerplate=`cat conftest.err`
7928$rm conftest*
7929
7930
7931
7932lt_prog_compiler_no_builtin_flag=
7933
7934if test "$GCC" = yes; then
7935  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7936
7937
7938{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7939echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7940if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7941  echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943  lt_cv_prog_compiler_rtti_exceptions=no
7944  ac_outfile=conftest.$ac_objext
7945   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7946   lt_compiler_flag="-fno-rtti -fno-exceptions"
7947   # Insert the option either (1) after the last *FLAGS variable, or
7948   # (2) before a word containing "conftest.", or (3) at the end.
7949   # Note that $ac_compile itself does not contain backslashes and begins
7950   # with a dollar sign (not a hyphen), so the echo should work correctly.
7951   # The option is referenced via a variable to avoid confusing sed.
7952   lt_compile=`echo "$ac_compile" | $SED \
7953   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7954   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7955   -e 's:$: $lt_compiler_flag:'`
7956   (eval echo "\"\$as_me:7956: $lt_compile\"" >&5)
7957   (eval "$lt_compile" 2>conftest.err)
7958   ac_status=$?
7959   cat conftest.err >&5
7960   echo "$as_me:7960: \$? = $ac_status" >&5
7961   if (exit $ac_status) && test -s "$ac_outfile"; then
7962     # The compiler can only warn and ignore the option if not recognized
7963     # So say no if there are warnings other than the usual output.
7964     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7965     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7966     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7967       lt_cv_prog_compiler_rtti_exceptions=yes
7968     fi
7969   fi
7970   $rm conftest*
7971
7972fi
7973{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7974echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7975
7976if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7977    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7978else
7979    :
7980fi
7981
7982fi
7983
7984lt_prog_compiler_wl=
7985lt_prog_compiler_pic=
7986lt_prog_compiler_static=
7987
7988{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7989echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7990
7991  if test "$GCC" = yes; then
7992    lt_prog_compiler_wl='-Wl,'
7993    lt_prog_compiler_static='-static'
7994
7995    case $host_os in
7996      aix*)
7997      # All AIX code is PIC.
7998      if test "$host_cpu" = ia64; then
7999	# AIX 5 now supports IA64 processor
8000	lt_prog_compiler_static='-Bstatic'
8001      fi
8002      ;;
8003
8004    amigaos*)
8005      # FIXME: we need at least 68020 code to build shared libraries, but
8006      # adding the `-m68020' flag to GCC prevents building anything better,
8007      # like `-m68040'.
8008      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8009      ;;
8010
8011    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8012      # PIC is the default for these OSes.
8013      ;;
8014
8015    mingw* | cygwin* | pw32* | os2*)
8016      # This hack is so that the source file can tell whether it is being
8017      # built for inclusion in a dll (and should export symbols for example).
8018      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8019      # (--disable-auto-import) libraries
8020      lt_prog_compiler_pic='-DDLL_EXPORT'
8021      ;;
8022
8023    darwin* | rhapsody*)
8024      # PIC is the default on this platform
8025      # Common symbols not allowed in MH_DYLIB files
8026      lt_prog_compiler_pic='-fno-common'
8027      ;;
8028
8029    interix[3-9]*)
8030      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8031      # Instead, we relocate shared libraries at runtime.
8032      ;;
8033
8034    msdosdjgpp*)
8035      # Just because we use GCC doesn't mean we suddenly get shared libraries
8036      # on systems that don't support them.
8037      lt_prog_compiler_can_build_shared=no
8038      enable_shared=no
8039      ;;
8040
8041    sysv4*MP*)
8042      if test -d /usr/nec; then
8043	lt_prog_compiler_pic=-Kconform_pic
8044      fi
8045      ;;
8046
8047    hpux*)
8048      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8049      # not for PA HP-UX.
8050      case $host_cpu in
8051      hppa*64*|ia64*)
8052	# +Z the default
8053	;;
8054      *)
8055	lt_prog_compiler_pic='-fPIC'
8056	;;
8057      esac
8058      ;;
8059
8060    *)
8061      lt_prog_compiler_pic='-fPIC'
8062      ;;
8063    esac
8064  else
8065    # PORTME Check for flag to pass linker flags through the system compiler.
8066    case $host_os in
8067    aix*)
8068      lt_prog_compiler_wl='-Wl,'
8069      if test "$host_cpu" = ia64; then
8070	# AIX 5 now supports IA64 processor
8071	lt_prog_compiler_static='-Bstatic'
8072      else
8073	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8074      fi
8075      ;;
8076      darwin*)
8077        # PIC is the default on this platform
8078        # Common symbols not allowed in MH_DYLIB files
8079       case $cc_basename in
8080         xlc*)
8081         lt_prog_compiler_pic='-qnocommon'
8082         lt_prog_compiler_wl='-Wl,'
8083         ;;
8084       esac
8085       ;;
8086
8087    mingw* | cygwin* | pw32* | os2*)
8088      # This hack is so that the source file can tell whether it is being
8089      # built for inclusion in a dll (and should export symbols for example).
8090      lt_prog_compiler_pic='-DDLL_EXPORT'
8091      ;;
8092
8093    hpux9* | hpux10* | hpux11*)
8094      lt_prog_compiler_wl='-Wl,'
8095      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8096      # not for PA HP-UX.
8097      case $host_cpu in
8098      hppa*64*|ia64*)
8099	# +Z the default
8100	;;
8101      *)
8102	lt_prog_compiler_pic='+Z'
8103	;;
8104      esac
8105      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8106      lt_prog_compiler_static='${wl}-a ${wl}archive'
8107      ;;
8108
8109    irix5* | irix6* | nonstopux*)
8110      lt_prog_compiler_wl='-Wl,'
8111      # PIC (with -KPIC) is the default.
8112      lt_prog_compiler_static='-non_shared'
8113      ;;
8114
8115    newsos6)
8116      lt_prog_compiler_pic='-KPIC'
8117      lt_prog_compiler_static='-Bstatic'
8118      ;;
8119
8120    linux* | k*bsd*-gnu)
8121      case $cc_basename in
8122      icc* | ecc*)
8123	lt_prog_compiler_wl='-Wl,'
8124	lt_prog_compiler_pic='-KPIC'
8125	lt_prog_compiler_static='-static'
8126        ;;
8127      pgcc* | pgf77* | pgf90* | pgf95*)
8128        # Portland Group compilers (*not* the Pentium gcc compiler,
8129	# which looks to be a dead project)
8130	lt_prog_compiler_wl='-Wl,'
8131	lt_prog_compiler_pic='-fpic'
8132	lt_prog_compiler_static='-Bstatic'
8133        ;;
8134      ccc*)
8135        lt_prog_compiler_wl='-Wl,'
8136        # All Alpha code is PIC.
8137        lt_prog_compiler_static='-non_shared'
8138        ;;
8139      *)
8140        case `$CC -V 2>&1 | sed 5q` in
8141	*Sun\ C*)
8142	  # Sun C 5.9
8143	  lt_prog_compiler_pic='-KPIC'
8144	  lt_prog_compiler_static='-Bstatic'
8145	  lt_prog_compiler_wl='-Wl,'
8146	  ;;
8147	*Sun\ F*)
8148	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8149	  lt_prog_compiler_pic='-KPIC'
8150	  lt_prog_compiler_static='-Bstatic'
8151	  lt_prog_compiler_wl=''
8152	  ;;
8153	esac
8154	;;
8155      esac
8156      ;;
8157
8158    osf3* | osf4* | osf5*)
8159      lt_prog_compiler_wl='-Wl,'
8160      # All OSF/1 code is PIC.
8161      lt_prog_compiler_static='-non_shared'
8162      ;;
8163
8164    rdos*)
8165      lt_prog_compiler_static='-non_shared'
8166      ;;
8167
8168    solaris*)
8169      lt_prog_compiler_pic='-KPIC'
8170      lt_prog_compiler_static='-Bstatic'
8171      case $cc_basename in
8172      f77* | f90* | f95*)
8173	lt_prog_compiler_wl='-Qoption ld ';;
8174      *)
8175	lt_prog_compiler_wl='-Wl,';;
8176      esac
8177      ;;
8178
8179    sunos4*)
8180      lt_prog_compiler_wl='-Qoption ld '
8181      lt_prog_compiler_pic='-PIC'
8182      lt_prog_compiler_static='-Bstatic'
8183      ;;
8184
8185    sysv4 | sysv4.2uw2* | sysv4.3*)
8186      lt_prog_compiler_wl='-Wl,'
8187      lt_prog_compiler_pic='-KPIC'
8188      lt_prog_compiler_static='-Bstatic'
8189      ;;
8190
8191    sysv4*MP*)
8192      if test -d /usr/nec ;then
8193	lt_prog_compiler_pic='-Kconform_pic'
8194	lt_prog_compiler_static='-Bstatic'
8195      fi
8196      ;;
8197
8198    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8199      lt_prog_compiler_wl='-Wl,'
8200      lt_prog_compiler_pic='-KPIC'
8201      lt_prog_compiler_static='-Bstatic'
8202      ;;
8203
8204    unicos*)
8205      lt_prog_compiler_wl='-Wl,'
8206      lt_prog_compiler_can_build_shared=no
8207      ;;
8208
8209    uts4*)
8210      lt_prog_compiler_pic='-pic'
8211      lt_prog_compiler_static='-Bstatic'
8212      ;;
8213
8214    *)
8215      lt_prog_compiler_can_build_shared=no
8216      ;;
8217    esac
8218  fi
8219
8220{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8221echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8222
8223#
8224# Check to make sure the PIC flag actually works.
8225#
8226if test -n "$lt_prog_compiler_pic"; then
8227
8228{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8229echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8230if test "${lt_prog_compiler_pic_works+set}" = set; then
8231  echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233  lt_prog_compiler_pic_works=no
8234  ac_outfile=conftest.$ac_objext
8235   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8237   # Insert the option either (1) after the last *FLAGS variable, or
8238   # (2) before a word containing "conftest.", or (3) at the end.
8239   # Note that $ac_compile itself does not contain backslashes and begins
8240   # with a dollar sign (not a hyphen), so the echo should work correctly.
8241   # The option is referenced via a variable to avoid confusing sed.
8242   lt_compile=`echo "$ac_compile" | $SED \
8243   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8244   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245   -e 's:$: $lt_compiler_flag:'`
8246   (eval echo "\"\$as_me:8246: $lt_compile\"" >&5)
8247   (eval "$lt_compile" 2>conftest.err)
8248   ac_status=$?
8249   cat conftest.err >&5
8250   echo "$as_me:8250: \$? = $ac_status" >&5
8251   if (exit $ac_status) && test -s "$ac_outfile"; then
8252     # The compiler can only warn and ignore the option if not recognized
8253     # So say no if there are warnings other than the usual output.
8254     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8255     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8257       lt_prog_compiler_pic_works=yes
8258     fi
8259   fi
8260   $rm conftest*
8261
8262fi
8263{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8264echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8265
8266if test x"$lt_prog_compiler_pic_works" = xyes; then
8267    case $lt_prog_compiler_pic in
8268     "" | " "*) ;;
8269     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8270     esac
8271else
8272    lt_prog_compiler_pic=
8273     lt_prog_compiler_can_build_shared=no
8274fi
8275
8276fi
8277case $host_os in
8278  # For platforms which do not support PIC, -DPIC is meaningless:
8279  *djgpp*)
8280    lt_prog_compiler_pic=
8281    ;;
8282  *)
8283    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8284    ;;
8285esac
8286
8287#
8288# Check to make sure the static flag actually works.
8289#
8290wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8291{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8292echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8293if test "${lt_prog_compiler_static_works+set}" = set; then
8294  echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296  lt_prog_compiler_static_works=no
8297   save_LDFLAGS="$LDFLAGS"
8298   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8299   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8300   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8301     # The linker can only warn and ignore the option if not recognized
8302     # So say no if there are warnings
8303     if test -s conftest.err; then
8304       # Append any errors to the config.log.
8305       cat conftest.err 1>&5
8306       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8307       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308       if diff conftest.exp conftest.er2 >/dev/null; then
8309         lt_prog_compiler_static_works=yes
8310       fi
8311     else
8312       lt_prog_compiler_static_works=yes
8313     fi
8314   fi
8315   $rm conftest*
8316   LDFLAGS="$save_LDFLAGS"
8317
8318fi
8319{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8320echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8321
8322if test x"$lt_prog_compiler_static_works" = xyes; then
8323    :
8324else
8325    lt_prog_compiler_static=
8326fi
8327
8328
8329{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8330echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8331if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8332  echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334  lt_cv_prog_compiler_c_o=no
8335   $rm -r conftest 2>/dev/null
8336   mkdir conftest
8337   cd conftest
8338   mkdir out
8339   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340
8341   lt_compiler_flag="-o out/conftest2.$ac_objext"
8342   # Insert the option either (1) after the last *FLAGS variable, or
8343   # (2) before a word containing "conftest.", or (3) at the end.
8344   # Note that $ac_compile itself does not contain backslashes and begins
8345   # with a dollar sign (not a hyphen), so the echo should work correctly.
8346   lt_compile=`echo "$ac_compile" | $SED \
8347   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349   -e 's:$: $lt_compiler_flag:'`
8350   (eval echo "\"\$as_me:8350: $lt_compile\"" >&5)
8351   (eval "$lt_compile" 2>out/conftest.err)
8352   ac_status=$?
8353   cat out/conftest.err >&5
8354   echo "$as_me:8354: \$? = $ac_status" >&5
8355   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356   then
8357     # The compiler can only warn and ignore the option if not recognized
8358     # So say no if there are warnings
8359     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8360     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8362       lt_cv_prog_compiler_c_o=yes
8363     fi
8364   fi
8365   chmod u+w . 2>&5
8366   $rm conftest*
8367   # SGI C++ compiler will create directory out/ii_files/ for
8368   # template instantiation
8369   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8370   $rm out/* && rmdir out
8371   cd ..
8372   rmdir conftest
8373   $rm conftest*
8374
8375fi
8376{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8377echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8378
8379
8380hard_links="nottested"
8381if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8382  # do not overwrite the value of need_locks provided by the user
8383  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8384echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8385  hard_links=yes
8386  $rm conftest*
8387  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8388  touch conftest.a
8389  ln conftest.a conftest.b 2>&5 || hard_links=no
8390  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8391  { echo "$as_me:$LINENO: result: $hard_links" >&5
8392echo "${ECHO_T}$hard_links" >&6; }
8393  if test "$hard_links" = no; then
8394    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8395echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8396    need_locks=warn
8397  fi
8398else
8399  need_locks=no
8400fi
8401
8402{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8403echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8404
8405  runpath_var=
8406  allow_undefined_flag=
8407  enable_shared_with_static_runtimes=no
8408  archive_cmds=
8409  archive_expsym_cmds=
8410  old_archive_From_new_cmds=
8411  old_archive_from_expsyms_cmds=
8412  export_dynamic_flag_spec=
8413  whole_archive_flag_spec=
8414  thread_safe_flag_spec=
8415  hardcode_libdir_flag_spec=
8416  hardcode_libdir_flag_spec_ld=
8417  hardcode_libdir_separator=
8418  hardcode_direct=no
8419  hardcode_minus_L=no
8420  hardcode_shlibpath_var=unsupported
8421  link_all_deplibs=unknown
8422  hardcode_automatic=no
8423  module_cmds=
8424  module_expsym_cmds=
8425  always_export_symbols=no
8426  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8427  # include_expsyms should be a list of space-separated symbols to be *always*
8428  # included in the symbol list
8429  include_expsyms=
8430  # exclude_expsyms can be an extended regexp of symbols to exclude
8431  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8432  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8433  # as well as any symbol that contains `d'.
8434  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8435  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8436  # platforms (ab)use it in PIC code, but their linkers get confused if
8437  # the symbol is explicitly referenced.  Since portable code cannot
8438  # rely on this symbol name, it's probably fine to never include it in
8439  # preloaded symbol tables.
8440  extract_expsyms_cmds=
8441  # Just being paranoid about ensuring that cc_basename is set.
8442  for cc_temp in $compiler""; do
8443  case $cc_temp in
8444    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8445    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8446    \-*) ;;
8447    *) break;;
8448  esac
8449done
8450cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8451
8452  case $host_os in
8453  cygwin* | mingw* | pw32*)
8454    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8455    # When not using gcc, we currently assume that we are using
8456    # Microsoft Visual C++.
8457    if test "$GCC" != yes; then
8458      with_gnu_ld=no
8459    fi
8460    ;;
8461  interix*)
8462    # we just hope/assume this is gcc and not c89 (= MSVC++)
8463    with_gnu_ld=yes
8464    ;;
8465  openbsd*)
8466    with_gnu_ld=no
8467    ;;
8468  esac
8469
8470  ld_shlibs=yes
8471  if test "$with_gnu_ld" = yes; then
8472    # If archive_cmds runs LD, not CC, wlarc should be empty
8473    wlarc='${wl}'
8474
8475    # Set some defaults for GNU ld with shared library support. These
8476    # are reset later if shared libraries are not supported. Putting them
8477    # here allows them to be overridden if necessary.
8478    runpath_var=LD_RUN_PATH
8479    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8480    export_dynamic_flag_spec='${wl}--export-dynamic'
8481    # ancient GNU ld didn't support --whole-archive et. al.
8482    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8483	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8484      else
8485  	whole_archive_flag_spec=
8486    fi
8487    supports_anon_versioning=no
8488    case `$LD -v 2>/dev/null` in
8489      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8490      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8491      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8492      *\ 2.11.*) ;; # other 2.11 versions
8493      *) supports_anon_versioning=yes ;;
8494    esac
8495
8496    # See if GNU ld supports shared libraries.
8497    case $host_os in
8498    aix3* | aix4* | aix5*)
8499      # On AIX/PPC, the GNU linker is very broken
8500      if test "$host_cpu" != ia64; then
8501	ld_shlibs=no
8502	cat <<EOF 1>&2
8503
8504*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8505*** to be unable to reliably create shared libraries on AIX.
8506*** Therefore, libtool is disabling shared libraries support.  If you
8507*** really care for shared libraries, you may want to modify your PATH
8508*** so that a non-GNU linker is found, and then restart.
8509
8510EOF
8511      fi
8512      ;;
8513
8514    amigaos*)
8515      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)'
8516      hardcode_libdir_flag_spec='-L$libdir'
8517      hardcode_minus_L=yes
8518
8519      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8520      # that the semantics of dynamic libraries on AmigaOS, at least up
8521      # to version 4, is to share data among multiple programs linked
8522      # with the same dynamic library.  Since this doesn't match the
8523      # behavior of shared libraries on other platforms, we can't use
8524      # them.
8525      ld_shlibs=no
8526      ;;
8527
8528    beos*)
8529      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8530	allow_undefined_flag=unsupported
8531	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8532	# support --undefined.  This deserves some investigation.  FIXME
8533	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534      else
8535	ld_shlibs=no
8536      fi
8537      ;;
8538
8539    cygwin* | mingw* | pw32*)
8540      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8541      # as there is no search path for DLLs.
8542      hardcode_libdir_flag_spec='-L$libdir'
8543      allow_undefined_flag=unsupported
8544      always_export_symbols=no
8545      enable_shared_with_static_runtimes=yes
8546      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8547
8548      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8549        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8550	# If the export-symbols file already is a .def file (1st line
8551	# is EXPORTS), use it as is; otherwise, prepend...
8552	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8553	  cp $export_symbols $output_objdir/$soname.def;
8554	else
8555	  echo EXPORTS > $output_objdir/$soname.def;
8556	  cat $export_symbols >> $output_objdir/$soname.def;
8557	fi~
8558	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559      else
8560	ld_shlibs=no
8561      fi
8562      ;;
8563
8564    interix[3-9]*)
8565      hardcode_direct=no
8566      hardcode_shlibpath_var=no
8567      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8568      export_dynamic_flag_spec='${wl}-E'
8569      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8570      # Instead, shared libraries are loaded at an image base (0x10000000 by
8571      # default) and relocated if they conflict, which is a slow very memory
8572      # consuming and fragmenting process.  To avoid this, we pick a random,
8573      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8574      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8575      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8576      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'
8577      ;;
8578
8579    gnu* | linux* | k*bsd*-gnu)
8580      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8581	tmp_addflag=
8582	case $cc_basename,$host_cpu in
8583	pgcc*)				# Portland Group C compiler
8584	  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'
8585	  tmp_addflag=' $pic_flag'
8586	  ;;
8587	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8588	  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'
8589	  tmp_addflag=' $pic_flag -Mnomain' ;;
8590	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8591	  tmp_addflag=' -i_dynamic' ;;
8592	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8593	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8594	ifc* | ifort*)			# Intel Fortran compiler
8595	  tmp_addflag=' -nofor_main' ;;
8596	esac
8597	case `$CC -V 2>&1 | sed 5q` in
8598	*Sun\ C*)			# Sun C 5.9
8599	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8600	  tmp_sharedflag='-G' ;;
8601	*Sun\ F*)			# Sun Fortran 8.3
8602	  tmp_sharedflag='-G' ;;
8603	*)
8604	  tmp_sharedflag='-shared' ;;
8605	esac
8606	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607
8608	if test $supports_anon_versioning = yes; then
8609	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8610  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8611  $echo "local: *; };" >> $output_objdir/$libname.ver~
8612	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8613	fi
8614      else
8615	ld_shlibs=no
8616      fi
8617      ;;
8618
8619    netbsd*)
8620      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8621	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8622	wlarc=
8623      else
8624	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8626      fi
8627      ;;
8628
8629    solaris*)
8630      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8631	ld_shlibs=no
8632	cat <<EOF 1>&2
8633
8634*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8635*** create shared libraries on Solaris systems.  Therefore, libtool
8636*** is disabling shared libraries support.  We urge you to upgrade GNU
8637*** binutils to release 2.9.1 or newer.  Another option is to modify
8638*** your PATH or compiler configuration so that the native linker is
8639*** used, and then restart.
8640
8641EOF
8642      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8643	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645      else
8646	ld_shlibs=no
8647      fi
8648      ;;
8649
8650    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8651      case `$LD -v 2>&1` in
8652        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8653	ld_shlibs=no
8654	cat <<_LT_EOF 1>&2
8655
8656*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8657*** reliably create shared libraries on SCO systems.  Therefore, libtool
8658*** is disabling shared libraries support.  We urge you to upgrade GNU
8659*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8660*** your PATH or compiler configuration so that the native linker is
8661*** used, and then restart.
8662
8663_LT_EOF
8664	;;
8665	*)
8666	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8667	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8668	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8669	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8670	  else
8671	    ld_shlibs=no
8672	  fi
8673	;;
8674      esac
8675      ;;
8676
8677    sunos4*)
8678      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679      wlarc=
8680      hardcode_direct=yes
8681      hardcode_shlibpath_var=no
8682      ;;
8683
8684    *)
8685      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8686	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688      else
8689	ld_shlibs=no
8690      fi
8691      ;;
8692    esac
8693
8694    if test "$ld_shlibs" = no; then
8695      runpath_var=
8696      hardcode_libdir_flag_spec=
8697      export_dynamic_flag_spec=
8698      whole_archive_flag_spec=
8699    fi
8700  else
8701    # PORTME fill in a description of your system's linker (not GNU ld)
8702    case $host_os in
8703    aix3*)
8704      allow_undefined_flag=unsupported
8705      always_export_symbols=yes
8706      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'
8707      # Note: this linker hardcodes the directories in LIBPATH if there
8708      # are no directories specified by -L.
8709      hardcode_minus_L=yes
8710      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8711	# Neither direct hardcoding nor static linking is supported with a
8712	# broken collect2.
8713	hardcode_direct=unsupported
8714      fi
8715      ;;
8716
8717    aix4* | aix5*)
8718      if test "$host_cpu" = ia64; then
8719	# On IA64, the linker does run time linking by default, so we don't
8720	# have to do anything special.
8721	aix_use_runtimelinking=no
8722	exp_sym_flag='-Bexport'
8723	no_entry_flag=""
8724      else
8725	# If we're using GNU nm, then we don't want the "-C" option.
8726	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8727	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8728	  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'
8729	else
8730	  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'
8731	fi
8732	aix_use_runtimelinking=no
8733
8734	# Test if we are trying to use run time linking or normal
8735	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8736	# need to do runtime linking.
8737	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8738	  for ld_flag in $LDFLAGS; do
8739  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8740  	    aix_use_runtimelinking=yes
8741  	    break
8742  	  fi
8743	  done
8744	  ;;
8745	esac
8746
8747	exp_sym_flag='-bexport'
8748	no_entry_flag='-bnoentry'
8749      fi
8750
8751      # When large executables or shared objects are built, AIX ld can
8752      # have problems creating the table of contents.  If linking a library
8753      # or program results in "error TOC overflow" add -mminimal-toc to
8754      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8755      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8756
8757      archive_cmds=''
8758      hardcode_direct=yes
8759      hardcode_libdir_separator=':'
8760      link_all_deplibs=yes
8761
8762      if test "$GCC" = yes; then
8763	case $host_os in aix4.[012]|aix4.[012].*)
8764	# We only want to do this on AIX 4.2 and lower, the check
8765	# below for broken collect2 doesn't work under 4.3+
8766	  collect2name=`${CC} -print-prog-name=collect2`
8767	  if test -f "$collect2name" && \
8768  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8769	  then
8770  	  # We have reworked collect2
8771  	  :
8772	  else
8773  	  # We have old collect2
8774  	  hardcode_direct=unsupported
8775  	  # It fails to find uninstalled libraries when the uninstalled
8776  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8777  	  # to unsupported forces relinking
8778  	  hardcode_minus_L=yes
8779  	  hardcode_libdir_flag_spec='-L$libdir'
8780  	  hardcode_libdir_separator=
8781	  fi
8782	  ;;
8783	esac
8784	shared_flag='-shared'
8785	if test "$aix_use_runtimelinking" = yes; then
8786	  shared_flag="$shared_flag "'${wl}-G'
8787	fi
8788      else
8789	# not using gcc
8790	if test "$host_cpu" = ia64; then
8791  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8792  	# chokes on -Wl,-G. The following line is correct:
8793	  shared_flag='-G'
8794	else
8795	  if test "$aix_use_runtimelinking" = yes; then
8796	    shared_flag='${wl}-G'
8797	  else
8798	    shared_flag='${wl}-bM:SRE'
8799	  fi
8800	fi
8801      fi
8802
8803      # It seems that -bexpall does not export symbols beginning with
8804      # underscore (_), so it is better to generate a list of symbols to export.
8805      always_export_symbols=yes
8806      if test "$aix_use_runtimelinking" = yes; then
8807	# Warning - without using the other runtime loading flags (-brtl),
8808	# -berok will link without error, but may produce a broken library.
8809	allow_undefined_flag='-berok'
8810       # Determine the default libpath from the value encoded in an empty executable.
8811       cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h.  */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h.  */
8817
8818int
8819main ()
8820{
8821
8822  ;
8823  return 0;
8824}
8825_ACEOF
8826rm -f conftest.$ac_objext conftest$ac_exeext
8827if { (ac_try="$ac_link"
8828case "(($ac_try" in
8829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830  *) ac_try_echo=$ac_try;;
8831esac
8832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833  (eval "$ac_link") 2>conftest.er1
8834  ac_status=$?
8835  grep -v '^ *+' conftest.er1 >conftest.err
8836  rm -f conftest.er1
8837  cat conftest.err >&5
8838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839  (exit $ac_status); } && {
8840	 test -z "$ac_c_werror_flag" ||
8841	 test ! -s conftest.err
8842       } && test -s conftest$ac_exeext &&
8843       $as_test_x conftest$ac_exeext; then
8844
8845lt_aix_libpath_sed='
8846    /Import File Strings/,/^$/ {
8847	/^0/ {
8848	    s/^0  *\(.*\)$/\1/
8849	    p
8850	}
8851    }'
8852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853# Check for a 64-bit object if we didn't find anything.
8854if test -z "$aix_libpath"; then
8855  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856fi
8857else
8858  echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861
8862fi
8863
8864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865      conftest$ac_exeext conftest.$ac_ext
8866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8867
8868       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8869	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"
8870       else
8871	if test "$host_cpu" = ia64; then
8872	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8873	  allow_undefined_flag="-z nodefs"
8874	  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"
8875	else
8876	 # Determine the default libpath from the value encoded in an empty executable.
8877	 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h.  */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h.  */
8883
8884int
8885main ()
8886{
8887
8888  ;
8889  return 0;
8890}
8891_ACEOF
8892rm -f conftest.$ac_objext conftest$ac_exeext
8893if { (ac_try="$ac_link"
8894case "(($ac_try" in
8895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896  *) ac_try_echo=$ac_try;;
8897esac
8898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899  (eval "$ac_link") 2>conftest.er1
8900  ac_status=$?
8901  grep -v '^ *+' conftest.er1 >conftest.err
8902  rm -f conftest.er1
8903  cat conftest.err >&5
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); } && {
8906	 test -z "$ac_c_werror_flag" ||
8907	 test ! -s conftest.err
8908       } && test -s conftest$ac_exeext &&
8909       $as_test_x conftest$ac_exeext; then
8910
8911lt_aix_libpath_sed='
8912    /Import File Strings/,/^$/ {
8913	/^0/ {
8914	    s/^0  *\(.*\)$/\1/
8915	    p
8916	}
8917    }'
8918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919# Check for a 64-bit object if we didn't find anything.
8920if test -z "$aix_libpath"; then
8921  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922fi
8923else
8924  echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
8927
8928fi
8929
8930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8931      conftest$ac_exeext conftest.$ac_ext
8932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8933
8934	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8935	  # Warning - without using the other run time loading flags,
8936	  # -berok will link without error, but may produce a broken library.
8937	  no_undefined_flag=' ${wl}-bernotok'
8938	  allow_undefined_flag=' ${wl}-berok'
8939	  # Exported symbols can be pulled into shared objects from archives
8940	  whole_archive_flag_spec='$convenience'
8941	  archive_cmds_need_lc=yes
8942	  # This is similar to how AIX traditionally builds its shared libraries.
8943	  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'
8944	fi
8945      fi
8946      ;;
8947
8948    amigaos*)
8949      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)'
8950      hardcode_libdir_flag_spec='-L$libdir'
8951      hardcode_minus_L=yes
8952      # see comment about different semantics on the GNU ld section
8953      ld_shlibs=no
8954      ;;
8955
8956    bsdi[45]*)
8957      export_dynamic_flag_spec=-rdynamic
8958      ;;
8959
8960    cygwin* | mingw* | pw32*)
8961      # When not using gcc, we currently assume that we are using
8962      # Microsoft Visual C++.
8963      # hardcode_libdir_flag_spec is actually meaningless, as there is
8964      # no search path for DLLs.
8965      hardcode_libdir_flag_spec=' '
8966      allow_undefined_flag=unsupported
8967      # Tell ltmain to make .lib files, not .a files.
8968      libext=lib
8969      # Tell ltmain to make .dll files, not .so files.
8970      shrext_cmds=".dll"
8971      # FIXME: Setting linknames here is a bad hack.
8972      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8973      # The linker will automatically build a .lib file if we build a DLL.
8974      old_archive_From_new_cmds='true'
8975      # FIXME: Should let the user specify the lib program.
8976      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8977      fix_srcfile_path='`cygpath -w "$srcfile"`'
8978      enable_shared_with_static_runtimes=yes
8979      ;;
8980
8981    darwin* | rhapsody*)
8982      case $host_os in
8983        rhapsody* | darwin1.[012])
8984         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8985         ;;
8986       *) # Darwin 1.3 on
8987         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8988           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8989         else
8990           case ${MACOSX_DEPLOYMENT_TARGET} in
8991             10.[012])
8992               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8993               ;;
8994             10.*)
8995               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8996               ;;
8997           esac
8998         fi
8999         ;;
9000      esac
9001      archive_cmds_need_lc=no
9002      hardcode_direct=no
9003      hardcode_automatic=yes
9004      hardcode_shlibpath_var=unsupported
9005      whole_archive_flag_spec=''
9006      link_all_deplibs=yes
9007    if test "$GCC" = yes ; then
9008    	output_verbose_link_cmd='echo'
9009        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9010      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9011      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9012      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}'
9013      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}'
9014    else
9015      case $cc_basename in
9016        xlc*)
9017         output_verbose_link_cmd='echo'
9018         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9019         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9020          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9021         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9022          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}'
9023          ;;
9024       *)
9025         ld_shlibs=no
9026          ;;
9027      esac
9028    fi
9029      ;;
9030
9031    dgux*)
9032      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033      hardcode_libdir_flag_spec='-L$libdir'
9034      hardcode_shlibpath_var=no
9035      ;;
9036
9037    freebsd1*)
9038      ld_shlibs=no
9039      ;;
9040
9041    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9042    # support.  Future versions do this automatically, but an explicit c++rt0.o
9043    # does not break anything, and helps significantly (at the cost of a little
9044    # extra space).
9045    freebsd2.2*)
9046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9047      hardcode_libdir_flag_spec='-R$libdir'
9048      hardcode_direct=yes
9049      hardcode_shlibpath_var=no
9050      ;;
9051
9052    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9053    freebsd2*)
9054      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9055      hardcode_direct=yes
9056      hardcode_minus_L=yes
9057      hardcode_shlibpath_var=no
9058      ;;
9059
9060    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9061    freebsd* | dragonfly*)
9062      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9063      hardcode_libdir_flag_spec='-R$libdir'
9064      hardcode_direct=yes
9065      hardcode_shlibpath_var=no
9066      ;;
9067
9068    hpux9*)
9069      if test "$GCC" = yes; then
9070	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'
9071      else
9072	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'
9073      fi
9074      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075      hardcode_libdir_separator=:
9076      hardcode_direct=yes
9077
9078      # hardcode_minus_L: Not really in the search PATH,
9079      # but as the default location of the library.
9080      hardcode_minus_L=yes
9081      export_dynamic_flag_spec='${wl}-E'
9082      ;;
9083
9084    hpux10*)
9085      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9086	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087      else
9088	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9089      fi
9090      if test "$with_gnu_ld" = no; then
9091	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092	hardcode_libdir_separator=:
9093
9094	hardcode_direct=yes
9095	export_dynamic_flag_spec='${wl}-E'
9096
9097	# hardcode_minus_L: Not really in the search PATH,
9098	# but as the default location of the library.
9099	hardcode_minus_L=yes
9100      fi
9101      ;;
9102
9103    hpux11*)
9104      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9105	case $host_cpu in
9106	hppa*64*)
9107	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108	  ;;
9109	ia64*)
9110	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9111	  ;;
9112	*)
9113	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9114	  ;;
9115	esac
9116      else
9117	case $host_cpu in
9118	hppa*64*)
9119	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9120	  ;;
9121	ia64*)
9122	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9123	  ;;
9124	*)
9125	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9126	  ;;
9127	esac
9128      fi
9129      if test "$with_gnu_ld" = no; then
9130	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9131	hardcode_libdir_separator=:
9132
9133	case $host_cpu in
9134	hppa*64*|ia64*)
9135	  hardcode_libdir_flag_spec_ld='+b $libdir'
9136	  hardcode_direct=no
9137	  hardcode_shlibpath_var=no
9138	  ;;
9139	*)
9140	  hardcode_direct=yes
9141	  export_dynamic_flag_spec='${wl}-E'
9142
9143	  # hardcode_minus_L: Not really in the search PATH,
9144	  # but as the default location of the library.
9145	  hardcode_minus_L=yes
9146	  ;;
9147	esac
9148      fi
9149      ;;
9150
9151    irix5* | irix6* | nonstopux*)
9152      if test "$GCC" = yes; then
9153	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'
9154      else
9155	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'
9156	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9157      fi
9158      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9159      hardcode_libdir_separator=:
9160      link_all_deplibs=yes
9161      ;;
9162
9163    netbsd*)
9164      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9166      else
9167	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9168      fi
9169      hardcode_libdir_flag_spec='-R$libdir'
9170      hardcode_direct=yes
9171      hardcode_shlibpath_var=no
9172      ;;
9173
9174    newsos6)
9175      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9176      hardcode_direct=yes
9177      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178      hardcode_libdir_separator=:
9179      hardcode_shlibpath_var=no
9180      ;;
9181
9182    openbsd*)
9183      if test -f /usr/libexec/ld.so; then
9184	hardcode_direct=yes
9185	hardcode_shlibpath_var=no
9186	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9187	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9188	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9189	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9190	  export_dynamic_flag_spec='${wl}-E'
9191	else
9192	  case $host_os in
9193	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9194	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9195	     hardcode_libdir_flag_spec='-R$libdir'
9196	     ;;
9197	   *)
9198	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9199	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200	     ;;
9201	  esac
9202        fi
9203      else
9204	ld_shlibs=no
9205      fi
9206      ;;
9207
9208    os2*)
9209      hardcode_libdir_flag_spec='-L$libdir'
9210      hardcode_minus_L=yes
9211      allow_undefined_flag=unsupported
9212      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'
9213      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9214      ;;
9215
9216    osf3*)
9217      if test "$GCC" = yes; then
9218	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9219	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'
9220      else
9221	allow_undefined_flag=' -expect_unresolved \*'
9222	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'
9223      fi
9224      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9225      hardcode_libdir_separator=:
9226      ;;
9227
9228    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9229      if test "$GCC" = yes; then
9230	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9231	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'
9232	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233      else
9234	allow_undefined_flag=' -expect_unresolved \*'
9235	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'
9236	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9237	$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'
9238
9239	# Both c and cxx compiler support -rpath directly
9240	hardcode_libdir_flag_spec='-rpath $libdir'
9241      fi
9242      hardcode_libdir_separator=:
9243      ;;
9244
9245    solaris*)
9246      no_undefined_flag=' -z text'
9247      if test "$GCC" = yes; then
9248	wlarc='${wl}'
9249	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9250	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9251	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9252      else
9253	wlarc=''
9254	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9256  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9257      fi
9258      hardcode_libdir_flag_spec='-R$libdir'
9259      hardcode_shlibpath_var=no
9260      case $host_os in
9261      solaris2.[0-5] | solaris2.[0-5].*) ;;
9262      *)
9263	# The compiler driver will combine and reorder linker options,
9264	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9265	# but is careful enough not to reorder.
9266 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9267	if test "$GCC" = yes; then
9268	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9269	else
9270	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9271	fi
9272	;;
9273      esac
9274      link_all_deplibs=yes
9275      ;;
9276
9277    sunos4*)
9278      if test "x$host_vendor" = xsequent; then
9279	# Use $CC to link under sequent, because it throws in some extra .o
9280	# files that make .init and .fini sections work.
9281	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282      else
9283	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9284      fi
9285      hardcode_libdir_flag_spec='-L$libdir'
9286      hardcode_direct=yes
9287      hardcode_minus_L=yes
9288      hardcode_shlibpath_var=no
9289      ;;
9290
9291    sysv4)
9292      case $host_vendor in
9293	sni)
9294	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295	  hardcode_direct=yes # is this really true???
9296	;;
9297	siemens)
9298	  ## LD is ld it makes a PLAMLIB
9299	  ## CC just makes a GrossModule.
9300	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9301	  reload_cmds='$CC -r -o $output$reload_objs'
9302	  hardcode_direct=no
9303        ;;
9304	motorola)
9305	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9307	;;
9308      esac
9309      runpath_var='LD_RUN_PATH'
9310      hardcode_shlibpath_var=no
9311      ;;
9312
9313    sysv4.3*)
9314      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315      hardcode_shlibpath_var=no
9316      export_dynamic_flag_spec='-Bexport'
9317      ;;
9318
9319    sysv4*MP*)
9320      if test -d /usr/nec; then
9321	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322	hardcode_shlibpath_var=no
9323	runpath_var=LD_RUN_PATH
9324	hardcode_runpath_var=yes
9325	ld_shlibs=yes
9326      fi
9327      ;;
9328
9329    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9330      no_undefined_flag='${wl}-z,text'
9331      archive_cmds_need_lc=no
9332      hardcode_shlibpath_var=no
9333      runpath_var='LD_RUN_PATH'
9334
9335      if test "$GCC" = yes; then
9336	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338      else
9339	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9341      fi
9342      ;;
9343
9344    sysv5* | sco3.2v5* | sco5v6*)
9345      # Note: We can NOT use -z defs as we might desire, because we do not
9346      # link with -lc, and that would cause any symbols used from libc to
9347      # always be unresolved, which means just about no library would
9348      # ever link correctly.  If we're not using GNU ld we use -z text
9349      # though, which does catch some bad symbols but isn't as heavy-handed
9350      # as -z defs.
9351      no_undefined_flag='${wl}-z,text'
9352      allow_undefined_flag='${wl}-z,nodefs'
9353      archive_cmds_need_lc=no
9354      hardcode_shlibpath_var=no
9355      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9356      hardcode_libdir_separator=':'
9357      link_all_deplibs=yes
9358      export_dynamic_flag_spec='${wl}-Bexport'
9359      runpath_var='LD_RUN_PATH'
9360
9361      if test "$GCC" = yes; then
9362	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9363	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9364      else
9365	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9366	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367      fi
9368      ;;
9369
9370    uts4*)
9371      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372      hardcode_libdir_flag_spec='-L$libdir'
9373      hardcode_shlibpath_var=no
9374      ;;
9375
9376    *)
9377      ld_shlibs=no
9378      ;;
9379    esac
9380  fi
9381
9382{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9383echo "${ECHO_T}$ld_shlibs" >&6; }
9384test "$ld_shlibs" = no && can_build_shared=no
9385
9386#
9387# Do we need to explicitly link libc?
9388#
9389case "x$archive_cmds_need_lc" in
9390x|xyes)
9391  # Assume -lc should be added
9392  archive_cmds_need_lc=yes
9393
9394  if test "$enable_shared" = yes && test "$GCC" = yes; then
9395    case $archive_cmds in
9396    *'~'*)
9397      # FIXME: we may have to deal with multi-command sequences.
9398      ;;
9399    '$CC '*)
9400      # Test whether the compiler implicitly links with -lc since on some
9401      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9402      # to ld, don't add -lc before -lgcc.
9403      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9404echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9405      $rm conftest*
9406      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407
9408      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409  (eval $ac_compile) 2>&5
9410  ac_status=$?
9411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412  (exit $ac_status); } 2>conftest.err; then
9413        soname=conftest
9414        lib=conftest
9415        libobjs=conftest.$ac_objext
9416        deplibs=
9417        wl=$lt_prog_compiler_wl
9418	pic_flag=$lt_prog_compiler_pic
9419        compiler_flags=-v
9420        linker_flags=-v
9421        verstring=
9422        output_objdir=.
9423        libname=conftest
9424        lt_save_allow_undefined_flag=$allow_undefined_flag
9425        allow_undefined_flag=
9426        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9427  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9428  ac_status=$?
9429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430  (exit $ac_status); }
9431        then
9432	  archive_cmds_need_lc=no
9433        else
9434	  archive_cmds_need_lc=yes
9435        fi
9436        allow_undefined_flag=$lt_save_allow_undefined_flag
9437      else
9438        cat conftest.err 1>&5
9439      fi
9440      $rm conftest*
9441      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9442echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9443      ;;
9444    esac
9445  fi
9446  ;;
9447esac
9448
9449{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9450echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9451library_names_spec=
9452libname_spec='lib$name'
9453soname_spec=
9454shrext_cmds=".so"
9455postinstall_cmds=
9456postuninstall_cmds=
9457finish_cmds=
9458finish_eval=
9459shlibpath_var=
9460shlibpath_overrides_runpath=unknown
9461version_type=none
9462dynamic_linker="$host_os ld.so"
9463sys_lib_dlsearch_path_spec="/lib /usr/lib"
9464
9465if test "$GCC" = yes; then
9466  case $host_os in
9467    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9468    *) lt_awk_arg="/^libraries:/" ;;
9469  esac
9470  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9471  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9472    # if the path contains ";" then we assume it to be the separator
9473    # otherwise default to the standard path separator (i.e. ":") - it is
9474    # assumed that no part of a normal pathname contains ";" but that should
9475    # okay in the real world where ";" in dirpaths is itself problematic.
9476    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9477  else
9478    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9479  fi
9480  # Ok, now we have the path, separated by spaces, we can step through it
9481  # and add multilib dir if necessary.
9482  lt_tmp_lt_search_path_spec=
9483  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9484  for lt_sys_path in $lt_search_path_spec; do
9485    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9486      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9487    else
9488      test -d "$lt_sys_path" && \
9489	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9490    fi
9491  done
9492  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9493BEGIN {RS=" "; FS="/|\n";} {
9494  lt_foo="";
9495  lt_count=0;
9496  for (lt_i = NF; lt_i > 0; lt_i--) {
9497    if ($lt_i != "" && $lt_i != ".") {
9498      if ($lt_i == "..") {
9499        lt_count++;
9500      } else {
9501        if (lt_count == 0) {
9502          lt_foo="/" $lt_i lt_foo;
9503        } else {
9504          lt_count--;
9505        }
9506      }
9507    }
9508  }
9509  if (lt_foo != "") { lt_freq[lt_foo]++; }
9510  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9511}'`
9512  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9513else
9514  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9515fi
9516need_lib_prefix=unknown
9517hardcode_into_libs=no
9518
9519# when you set need_version to no, make sure it does not cause -set_version
9520# flags to be left without arguments
9521need_version=unknown
9522
9523case $host_os in
9524aix3*)
9525  version_type=linux
9526  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9527  shlibpath_var=LIBPATH
9528
9529  # AIX 3 has no versioning support, so we append a major version to the name.
9530  soname_spec='${libname}${release}${shared_ext}$major'
9531  ;;
9532
9533aix4* | aix5*)
9534  version_type=linux
9535  need_lib_prefix=no
9536  need_version=no
9537  hardcode_into_libs=yes
9538  if test "$host_cpu" = ia64; then
9539    # AIX 5 supports IA64
9540    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9541    shlibpath_var=LD_LIBRARY_PATH
9542  else
9543    # With GCC up to 2.95.x, collect2 would create an import file
9544    # for dependence libraries.  The import file would start with
9545    # the line `#! .'.  This would cause the generated library to
9546    # depend on `.', always an invalid library.  This was fixed in
9547    # development snapshots of GCC prior to 3.0.
9548    case $host_os in
9549      aix4 | aix4.[01] | aix4.[01].*)
9550      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9551	   echo ' yes '
9552	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9553	:
9554      else
9555	can_build_shared=no
9556      fi
9557      ;;
9558    esac
9559    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9560    # soname into executable. Probably we can add versioning support to
9561    # collect2, so additional links can be useful in future.
9562    if test "$aix_use_runtimelinking" = yes; then
9563      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9564      # instead of lib<name>.a to let people know that these are not
9565      # typical AIX shared libraries.
9566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567    else
9568      # We preserve .a as extension for shared libraries through AIX4.2
9569      # and later when we are not doing run time linking.
9570      library_names_spec='${libname}${release}.a $libname.a'
9571      soname_spec='${libname}${release}${shared_ext}$major'
9572    fi
9573    shlibpath_var=LIBPATH
9574  fi
9575  ;;
9576
9577amigaos*)
9578  library_names_spec='$libname.ixlibrary $libname.a'
9579  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9580  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'
9581  ;;
9582
9583beos*)
9584  library_names_spec='${libname}${shared_ext}'
9585  dynamic_linker="$host_os ld.so"
9586  shlibpath_var=LIBRARY_PATH
9587  ;;
9588
9589bsdi[45]*)
9590  version_type=linux
9591  need_version=no
9592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9595  shlibpath_var=LD_LIBRARY_PATH
9596  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9597  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9598  # the default ld.so.conf also contains /usr/contrib/lib and
9599  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9600  # libtool to hard-code these into programs
9601  ;;
9602
9603cygwin* | mingw* | pw32*)
9604  version_type=windows
9605  shrext_cmds=".dll"
9606  need_version=no
9607  need_lib_prefix=no
9608
9609  case $GCC,$host_os in
9610  yes,cygwin* | yes,mingw* | yes,pw32*)
9611    library_names_spec='$libname.dll.a'
9612    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9613    postinstall_cmds='base_file=`basename \${file}`~
9614      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9615      dldir=$destdir/`dirname \$dlpath`~
9616      test -d \$dldir || mkdir -p \$dldir~
9617      $install_prog $dir/$dlname \$dldir/$dlname~
9618      chmod a+x \$dldir/$dlname'
9619    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9620      dlpath=$dir/\$dldll~
9621       $rm \$dlpath'
9622    shlibpath_overrides_runpath=yes
9623
9624    case $host_os in
9625    cygwin*)
9626      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9627      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9628      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9629      ;;
9630    mingw*)
9631      # MinGW DLLs use traditional 'lib' prefix
9632      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9634      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9635        # It is most probably a Windows format PATH printed by
9636        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9637        # path with ; separators, and with drive letters. We can handle the
9638        # drive letters (cygwin fileutils understands them), so leave them,
9639        # especially as we might pass files found there to a mingw objdump,
9640        # which wouldn't understand a cygwinified path. Ahh.
9641        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9642      else
9643        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9644      fi
9645      ;;
9646    pw32*)
9647      # pw32 DLLs use 'pw' prefix rather than 'lib'
9648      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649      ;;
9650    esac
9651    ;;
9652
9653  *)
9654    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9655    ;;
9656  esac
9657  dynamic_linker='Win32 ld.exe'
9658  # FIXME: first we should search . and the directory the executable is in
9659  shlibpath_var=PATH
9660  ;;
9661
9662darwin* | rhapsody*)
9663  dynamic_linker="$host_os dyld"
9664  version_type=darwin
9665  need_lib_prefix=no
9666  need_version=no
9667  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9668  soname_spec='${libname}${release}${major}$shared_ext'
9669  shlibpath_overrides_runpath=yes
9670  shlibpath_var=DYLD_LIBRARY_PATH
9671  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9672
9673  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9674  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9675  ;;
9676
9677dgux*)
9678  version_type=linux
9679  need_lib_prefix=no
9680  need_version=no
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  ;;
9685
9686freebsd1*)
9687  dynamic_linker=no
9688  ;;
9689
9690freebsd* | dragonfly*)
9691  # DragonFly does not have aout.  When/if they implement a new
9692  # versioning mechanism, adjust this.
9693  if test -x /usr/bin/objformat; then
9694    objformat=`/usr/bin/objformat`
9695  else
9696    case $host_os in
9697    freebsd[123]*) objformat=aout ;;
9698    *) objformat=elf ;;
9699    esac
9700  fi
9701  version_type=freebsd-$objformat
9702  case $version_type in
9703    freebsd-elf*)
9704      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9705      need_version=no
9706      need_lib_prefix=no
9707      ;;
9708    freebsd-*)
9709      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9710      need_version=yes
9711      ;;
9712  esac
9713  shlibpath_var=LD_LIBRARY_PATH
9714  case $host_os in
9715  freebsd2*)
9716    shlibpath_overrides_runpath=yes
9717    ;;
9718  freebsd3.[01]* | freebsdelf3.[01]*)
9719    shlibpath_overrides_runpath=yes
9720    hardcode_into_libs=yes
9721    ;;
9722  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9723  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9724    shlibpath_overrides_runpath=no
9725    hardcode_into_libs=yes
9726    ;;
9727  *) # from 4.6 on, and DragonFly
9728    shlibpath_overrides_runpath=yes
9729    hardcode_into_libs=yes
9730    ;;
9731  esac
9732  ;;
9733
9734gnu*)
9735  version_type=linux
9736  need_lib_prefix=no
9737  need_version=no
9738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9739  soname_spec='${libname}${release}${shared_ext}$major'
9740  shlibpath_var=LD_LIBRARY_PATH
9741  hardcode_into_libs=yes
9742  ;;
9743
9744hpux9* | hpux10* | hpux11*)
9745  # Give a soname corresponding to the major version so that dld.sl refuses to
9746  # link against other versions.
9747  version_type=sunos
9748  need_lib_prefix=no
9749  need_version=no
9750  case $host_cpu in
9751  ia64*)
9752    shrext_cmds='.so'
9753    hardcode_into_libs=yes
9754    dynamic_linker="$host_os dld.so"
9755    shlibpath_var=LD_LIBRARY_PATH
9756    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9757    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758    soname_spec='${libname}${release}${shared_ext}$major'
9759    if test "X$HPUX_IA64_MODE" = X32; then
9760      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9761    else
9762      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9763    fi
9764    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9765    ;;
9766   hppa*64*)
9767     shrext_cmds='.sl'
9768     hardcode_into_libs=yes
9769     dynamic_linker="$host_os dld.sl"
9770     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773     soname_spec='${libname}${release}${shared_ext}$major'
9774     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9775     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776     ;;
9777   *)
9778    shrext_cmds='.sl'
9779    dynamic_linker="$host_os dld.sl"
9780    shlibpath_var=SHLIB_PATH
9781    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783    soname_spec='${libname}${release}${shared_ext}$major'
9784    ;;
9785  esac
9786  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9787  postinstall_cmds='chmod 555 $lib'
9788  ;;
9789
9790interix[3-9]*)
9791  version_type=linux
9792  need_lib_prefix=no
9793  need_version=no
9794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9795  soname_spec='${libname}${release}${shared_ext}$major'
9796  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9797  shlibpath_var=LD_LIBRARY_PATH
9798  shlibpath_overrides_runpath=no
9799  hardcode_into_libs=yes
9800  ;;
9801
9802irix5* | irix6* | nonstopux*)
9803  case $host_os in
9804    nonstopux*) version_type=nonstopux ;;
9805    *)
9806	if test "$lt_cv_prog_gnu_ld" = yes; then
9807		version_type=linux
9808	else
9809		version_type=irix
9810	fi ;;
9811  esac
9812  need_lib_prefix=no
9813  need_version=no
9814  soname_spec='${libname}${release}${shared_ext}$major'
9815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9816  case $host_os in
9817  irix5* | nonstopux*)
9818    libsuff= shlibsuff=
9819    ;;
9820  *)
9821    case $LD in # libtool.m4 will add one of these switches to LD
9822    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9823      libsuff= shlibsuff= libmagic=32-bit;;
9824    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9825      libsuff=32 shlibsuff=N32 libmagic=N32;;
9826    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9827      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9828    *) libsuff= shlibsuff= libmagic=never-match;;
9829    esac
9830    ;;
9831  esac
9832  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9833  shlibpath_overrides_runpath=no
9834  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9835  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9836  hardcode_into_libs=yes
9837  ;;
9838
9839# No shared lib support for Linux oldld, aout, or coff.
9840linux*oldld* | linux*aout* | linux*coff*)
9841  dynamic_linker=no
9842  ;;
9843
9844# This must be Linux ELF.
9845linux* | k*bsd*-gnu)
9846  version_type=linux
9847  need_lib_prefix=no
9848  need_version=no
9849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850  soname_spec='${libname}${release}${shared_ext}$major'
9851  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9852  shlibpath_var=LD_LIBRARY_PATH
9853  shlibpath_overrides_runpath=no
9854  # This implies no fast_install, which is unacceptable.
9855  # Some rework will be needed to allow for fast_install
9856  # before this can be enabled.
9857  hardcode_into_libs=yes
9858  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9859  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9860
9861  # Append ld.so.conf contents to the search path
9862  if test -f /etc/ld.so.conf; then
9863    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9864    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9865  fi
9866
9867  # We used to test for /lib/ld.so.1 and disable shared libraries on
9868  # powerpc, because MkLinux only supported shared libraries with the
9869  # GNU dynamic linker.  Since this was broken with cross compilers,
9870  # most powerpc-linux boxes support dynamic linking these days and
9871  # people can always --disable-shared, the test was removed, and we
9872  # assume the GNU/Linux dynamic linker is in use.
9873  dynamic_linker='GNU/Linux ld.so'
9874  ;;
9875
9876netbsd*)
9877  version_type=sunos
9878  need_lib_prefix=no
9879  need_version=no
9880  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9882    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9883    dynamic_linker='NetBSD (a.out) ld.so'
9884  else
9885    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9886    soname_spec='${libname}${release}${shared_ext}$major'
9887    dynamic_linker='NetBSD ld.elf_so'
9888  fi
9889  shlibpath_var=LD_LIBRARY_PATH
9890  shlibpath_overrides_runpath=yes
9891  hardcode_into_libs=yes
9892  ;;
9893
9894newsos6)
9895  version_type=linux
9896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897  shlibpath_var=LD_LIBRARY_PATH
9898  shlibpath_overrides_runpath=yes
9899  ;;
9900
9901nto-qnx*)
9902  version_type=linux
9903  need_lib_prefix=no
9904  need_version=no
9905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906  soname_spec='${libname}${release}${shared_ext}$major'
9907  shlibpath_var=LD_LIBRARY_PATH
9908  shlibpath_overrides_runpath=yes
9909  ;;
9910
9911openbsd*)
9912  version_type=sunos
9913  sys_lib_dlsearch_path_spec="/usr/lib"
9914  need_lib_prefix=no
9915  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9916  case $host_os in
9917    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9918    *)                         need_version=no  ;;
9919  esac
9920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922  shlibpath_var=LD_LIBRARY_PATH
9923  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924    case $host_os in
9925      openbsd2.[89] | openbsd2.[89].*)
9926	shlibpath_overrides_runpath=no
9927	;;
9928      *)
9929	shlibpath_overrides_runpath=yes
9930	;;
9931      esac
9932  else
9933    shlibpath_overrides_runpath=yes
9934  fi
9935  ;;
9936
9937os2*)
9938  libname_spec='$name'
9939  shrext_cmds=".dll"
9940  need_lib_prefix=no
9941  library_names_spec='$libname${shared_ext} $libname.a'
9942  dynamic_linker='OS/2 ld.exe'
9943  shlibpath_var=LIBPATH
9944  ;;
9945
9946osf3* | osf4* | osf5*)
9947  version_type=osf
9948  need_lib_prefix=no
9949  need_version=no
9950  soname_spec='${libname}${release}${shared_ext}$major'
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952  shlibpath_var=LD_LIBRARY_PATH
9953  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9954  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9955  ;;
9956
9957rdos*)
9958  dynamic_linker=no
9959  ;;
9960
9961solaris*)
9962  version_type=linux
9963  need_lib_prefix=no
9964  need_version=no
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  shlibpath_var=LD_LIBRARY_PATH
9968  shlibpath_overrides_runpath=yes
9969  hardcode_into_libs=yes
9970  # ldd complains unless libraries are executable
9971  postinstall_cmds='chmod +x $lib'
9972  ;;
9973
9974sunos4*)
9975  version_type=sunos
9976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  shlibpath_overrides_runpath=yes
9980  if test "$with_gnu_ld" = yes; then
9981    need_lib_prefix=no
9982  fi
9983  need_version=yes
9984  ;;
9985
9986sysv4 | sysv4.3*)
9987  version_type=linux
9988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989  soname_spec='${libname}${release}${shared_ext}$major'
9990  shlibpath_var=LD_LIBRARY_PATH
9991  case $host_vendor in
9992    sni)
9993      shlibpath_overrides_runpath=no
9994      need_lib_prefix=no
9995      export_dynamic_flag_spec='${wl}-Blargedynsym'
9996      runpath_var=LD_RUN_PATH
9997      ;;
9998    siemens)
9999      need_lib_prefix=no
10000      ;;
10001    motorola)
10002      need_lib_prefix=no
10003      need_version=no
10004      shlibpath_overrides_runpath=no
10005      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10006      ;;
10007  esac
10008  ;;
10009
10010sysv4*MP*)
10011  if test -d /usr/nec ;then
10012    version_type=linux
10013    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10014    soname_spec='$libname${shared_ext}.$major'
10015    shlibpath_var=LD_LIBRARY_PATH
10016  fi
10017  ;;
10018
10019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10020  version_type=freebsd-elf
10021  need_lib_prefix=no
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  hardcode_into_libs=yes
10027  if test "$with_gnu_ld" = yes; then
10028    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10029    shlibpath_overrides_runpath=no
10030  else
10031    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10032    shlibpath_overrides_runpath=yes
10033    case $host_os in
10034      sco3.2v5*)
10035        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10036	;;
10037    esac
10038  fi
10039  sys_lib_dlsearch_path_spec='/usr/lib'
10040  ;;
10041
10042uts4*)
10043  version_type=linux
10044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045  soname_spec='${libname}${release}${shared_ext}$major'
10046  shlibpath_var=LD_LIBRARY_PATH
10047  ;;
10048
10049*)
10050  dynamic_linker=no
10051  ;;
10052esac
10053{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10054echo "${ECHO_T}$dynamic_linker" >&6; }
10055test "$dynamic_linker" = no && can_build_shared=no
10056
10057variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10058if test "$GCC" = yes; then
10059  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10060fi
10061
10062{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10063echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10064hardcode_action=
10065if test -n "$hardcode_libdir_flag_spec" || \
10066   test -n "$runpath_var" || \
10067   test "X$hardcode_automatic" = "Xyes" ; then
10068
10069  # We can hardcode non-existant directories.
10070  if test "$hardcode_direct" != no &&
10071     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10072     # have to relink, otherwise we might link with an installed library
10073     # when we should be linking with a yet-to-be-installed one
10074     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10075     test "$hardcode_minus_L" != no; then
10076    # Linking always hardcodes the temporary library directory.
10077    hardcode_action=relink
10078  else
10079    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10080    hardcode_action=immediate
10081  fi
10082else
10083  # We cannot hardcode anything, or else we can only hardcode existing
10084  # directories.
10085  hardcode_action=unsupported
10086fi
10087{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10088echo "${ECHO_T}$hardcode_action" >&6; }
10089
10090if test "$hardcode_action" = relink; then
10091  # Fast installation is not supported
10092  enable_fast_install=no
10093elif test "$shlibpath_overrides_runpath" = yes ||
10094     test "$enable_shared" = no; then
10095  # Fast installation is not necessary
10096  enable_fast_install=needless
10097fi
10098
10099striplib=
10100old_striplib=
10101{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10102echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10103if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10104  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10105  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10106  { echo "$as_me:$LINENO: result: yes" >&5
10107echo "${ECHO_T}yes" >&6; }
10108else
10109# FIXME - insert some real tests, host_os isn't really good enough
10110  case $host_os in
10111   darwin*)
10112       if test -n "$STRIP" ; then
10113         striplib="$STRIP -x"
10114         old_striplib="$STRIP -S"
10115         { echo "$as_me:$LINENO: result: yes" >&5
10116echo "${ECHO_T}yes" >&6; }
10117       else
10118  { echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6; }
10120fi
10121       ;;
10122   *)
10123  { echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6; }
10125    ;;
10126  esac
10127fi
10128
10129if test "x$enable_dlopen" != xyes; then
10130  enable_dlopen=unknown
10131  enable_dlopen_self=unknown
10132  enable_dlopen_self_static=unknown
10133else
10134  lt_cv_dlopen=no
10135  lt_cv_dlopen_libs=
10136
10137  case $host_os in
10138  beos*)
10139    lt_cv_dlopen="load_add_on"
10140    lt_cv_dlopen_libs=
10141    lt_cv_dlopen_self=yes
10142    ;;
10143
10144  mingw* | pw32*)
10145    lt_cv_dlopen="LoadLibrary"
10146    lt_cv_dlopen_libs=
10147   ;;
10148
10149  cygwin*)
10150    lt_cv_dlopen="dlopen"
10151    lt_cv_dlopen_libs=
10152   ;;
10153
10154  darwin*)
10155  # if libdl is installed we need to link against it
10156    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10157echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10158if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  ac_check_lib_save_LIBS=$LIBS
10162LIBS="-ldl  $LIBS"
10163cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h.  */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h.  */
10169
10170/* Override any GCC internal prototype to avoid an error.
10171   Use char because int might match the return type of a GCC
10172   builtin and then its argument prototype would still apply.  */
10173#ifdef __cplusplus
10174extern "C"
10175#endif
10176char dlopen ();
10177int
10178main ()
10179{
10180return dlopen ();
10181  ;
10182  return 0;
10183}
10184_ACEOF
10185rm -f conftest.$ac_objext conftest$ac_exeext
10186if { (ac_try="$ac_link"
10187case "(($ac_try" in
10188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189  *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192  (eval "$ac_link") 2>conftest.er1
10193  ac_status=$?
10194  grep -v '^ *+' conftest.er1 >conftest.err
10195  rm -f conftest.er1
10196  cat conftest.err >&5
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); } && {
10199	 test -z "$ac_c_werror_flag" ||
10200	 test ! -s conftest.err
10201       } && test -s conftest$ac_exeext &&
10202       $as_test_x conftest$ac_exeext; then
10203  ac_cv_lib_dl_dlopen=yes
10204else
10205  echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208	ac_cv_lib_dl_dlopen=no
10209fi
10210
10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212      conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10217if test $ac_cv_lib_dl_dlopen = yes; then
10218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10219else
10220
10221    lt_cv_dlopen="dyld"
10222    lt_cv_dlopen_libs=
10223    lt_cv_dlopen_self=yes
10224
10225fi
10226
10227   ;;
10228
10229  *)
10230    { echo "$as_me:$LINENO: checking for shl_load" >&5
10231echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10232if test "${ac_cv_func_shl_load+set}" = set; then
10233  echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235  cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h.  */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h.  */
10241/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10242   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10243#define shl_load innocuous_shl_load
10244
10245/* System header to define __stub macros and hopefully few prototypes,
10246    which can conflict with char shl_load (); below.
10247    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248    <limits.h> exists even on freestanding compilers.  */
10249
10250#ifdef __STDC__
10251# include <limits.h>
10252#else
10253# include <assert.h>
10254#endif
10255
10256#undef shl_load
10257
10258/* Override any GCC internal prototype to avoid an error.
10259   Use char because int might match the return type of a GCC
10260   builtin and then its argument prototype would still apply.  */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char shl_load ();
10265/* The GNU C library defines this for functions which it implements
10266    to always fail with ENOSYS.  Some functions are actually named
10267    something starting with __ and the normal name is an alias.  */
10268#if defined __stub_shl_load || defined __stub___shl_load
10269choke me
10270#endif
10271
10272int
10273main ()
10274{
10275return shl_load ();
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284  *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287  (eval "$ac_link") 2>conftest.er1
10288  ac_status=$?
10289  grep -v '^ *+' conftest.er1 >conftest.err
10290  rm -f conftest.er1
10291  cat conftest.err >&5
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); } && {
10294	 test -z "$ac_c_werror_flag" ||
10295	 test ! -s conftest.err
10296       } && test -s conftest$ac_exeext &&
10297       $as_test_x conftest$ac_exeext; then
10298  ac_cv_func_shl_load=yes
10299else
10300  echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303	ac_cv_func_shl_load=no
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307      conftest$ac_exeext conftest.$ac_ext
10308fi
10309{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10310echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10311if test $ac_cv_func_shl_load = yes; then
10312  lt_cv_dlopen="shl_load"
10313else
10314  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10315echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10316if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10317  echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319  ac_check_lib_save_LIBS=$LIBS
10320LIBS="-ldld  $LIBS"
10321cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h.  */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h.  */
10327
10328/* Override any GCC internal prototype to avoid an error.
10329   Use char because int might match the return type of a GCC
10330   builtin and then its argument prototype would still apply.  */
10331#ifdef __cplusplus
10332extern "C"
10333#endif
10334char shl_load ();
10335int
10336main ()
10337{
10338return shl_load ();
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (ac_try="$ac_link"
10345case "(($ac_try" in
10346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347  *) ac_try_echo=$ac_try;;
10348esac
10349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350  (eval "$ac_link") 2>conftest.er1
10351  ac_status=$?
10352  grep -v '^ *+' conftest.er1 >conftest.err
10353  rm -f conftest.er1
10354  cat conftest.err >&5
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); } && {
10357	 test -z "$ac_c_werror_flag" ||
10358	 test ! -s conftest.err
10359       } && test -s conftest$ac_exeext &&
10360       $as_test_x conftest$ac_exeext; then
10361  ac_cv_lib_dld_shl_load=yes
10362else
10363  echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366	ac_cv_lib_dld_shl_load=no
10367fi
10368
10369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10370      conftest$ac_exeext conftest.$ac_ext
10371LIBS=$ac_check_lib_save_LIBS
10372fi
10373{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10374echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10375if test $ac_cv_lib_dld_shl_load = yes; then
10376  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10377else
10378  { echo "$as_me:$LINENO: checking for dlopen" >&5
10379echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10380if test "${ac_cv_func_dlopen+set}" = set; then
10381  echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383  cat >conftest.$ac_ext <<_ACEOF
10384/* confdefs.h.  */
10385_ACEOF
10386cat confdefs.h >>conftest.$ac_ext
10387cat >>conftest.$ac_ext <<_ACEOF
10388/* end confdefs.h.  */
10389/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10390   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10391#define dlopen innocuous_dlopen
10392
10393/* System header to define __stub macros and hopefully few prototypes,
10394    which can conflict with char dlopen (); below.
10395    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10396    <limits.h> exists even on freestanding compilers.  */
10397
10398#ifdef __STDC__
10399# include <limits.h>
10400#else
10401# include <assert.h>
10402#endif
10403
10404#undef dlopen
10405
10406/* Override any GCC internal prototype to avoid an error.
10407   Use char because int might match the return type of a GCC
10408   builtin and then its argument prototype would still apply.  */
10409#ifdef __cplusplus
10410extern "C"
10411#endif
10412char dlopen ();
10413/* The GNU C library defines this for functions which it implements
10414    to always fail with ENOSYS.  Some functions are actually named
10415    something starting with __ and the normal name is an alias.  */
10416#if defined __stub_dlopen || defined __stub___dlopen
10417choke me
10418#endif
10419
10420int
10421main ()
10422{
10423return dlopen ();
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (ac_try="$ac_link"
10430case "(($ac_try" in
10431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432  *) ac_try_echo=$ac_try;;
10433esac
10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435  (eval "$ac_link") 2>conftest.er1
10436  ac_status=$?
10437  grep -v '^ *+' conftest.er1 >conftest.err
10438  rm -f conftest.er1
10439  cat conftest.err >&5
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); } && {
10442	 test -z "$ac_c_werror_flag" ||
10443	 test ! -s conftest.err
10444       } && test -s conftest$ac_exeext &&
10445       $as_test_x conftest$ac_exeext; then
10446  ac_cv_func_dlopen=yes
10447else
10448  echo "$as_me: failed program was:" >&5
10449sed 's/^/| /' conftest.$ac_ext >&5
10450
10451	ac_cv_func_dlopen=no
10452fi
10453
10454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10455      conftest$ac_exeext conftest.$ac_ext
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10458echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10459if test $ac_cv_func_dlopen = yes; then
10460  lt_cv_dlopen="dlopen"
10461else
10462  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10463echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10464if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10465  echo $ECHO_N "(cached) $ECHO_C" >&6
10466else
10467  ac_check_lib_save_LIBS=$LIBS
10468LIBS="-ldl  $LIBS"
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h.  */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h.  */
10475
10476/* Override any GCC internal prototype to avoid an error.
10477   Use char because int might match the return type of a GCC
10478   builtin and then its argument prototype would still apply.  */
10479#ifdef __cplusplus
10480extern "C"
10481#endif
10482char dlopen ();
10483int
10484main ()
10485{
10486return dlopen ();
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext conftest$ac_exeext
10492if { (ac_try="$ac_link"
10493case "(($ac_try" in
10494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495  *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498  (eval "$ac_link") 2>conftest.er1
10499  ac_status=$?
10500  grep -v '^ *+' conftest.er1 >conftest.err
10501  rm -f conftest.er1
10502  cat conftest.err >&5
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); } && {
10505	 test -z "$ac_c_werror_flag" ||
10506	 test ! -s conftest.err
10507       } && test -s conftest$ac_exeext &&
10508       $as_test_x conftest$ac_exeext; then
10509  ac_cv_lib_dl_dlopen=yes
10510else
10511  echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514	ac_cv_lib_dl_dlopen=no
10515fi
10516
10517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10518      conftest$ac_exeext conftest.$ac_ext
10519LIBS=$ac_check_lib_save_LIBS
10520fi
10521{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10522echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10523if test $ac_cv_lib_dl_dlopen = yes; then
10524  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10525else
10526  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10527echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10528if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10529  echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531  ac_check_lib_save_LIBS=$LIBS
10532LIBS="-lsvld  $LIBS"
10533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h.  */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h.  */
10539
10540/* Override any GCC internal prototype to avoid an error.
10541   Use char because int might match the return type of a GCC
10542   builtin and then its argument prototype would still apply.  */
10543#ifdef __cplusplus
10544extern "C"
10545#endif
10546char dlopen ();
10547int
10548main ()
10549{
10550return dlopen ();
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (ac_try="$ac_link"
10557case "(($ac_try" in
10558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559  *) ac_try_echo=$ac_try;;
10560esac
10561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562  (eval "$ac_link") 2>conftest.er1
10563  ac_status=$?
10564  grep -v '^ *+' conftest.er1 >conftest.err
10565  rm -f conftest.er1
10566  cat conftest.err >&5
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); } && {
10569	 test -z "$ac_c_werror_flag" ||
10570	 test ! -s conftest.err
10571       } && test -s conftest$ac_exeext &&
10572       $as_test_x conftest$ac_exeext; then
10573  ac_cv_lib_svld_dlopen=yes
10574else
10575  echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578	ac_cv_lib_svld_dlopen=no
10579fi
10580
10581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582      conftest$ac_exeext conftest.$ac_ext
10583LIBS=$ac_check_lib_save_LIBS
10584fi
10585{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10586echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10587if test $ac_cv_lib_svld_dlopen = yes; then
10588  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10589else
10590  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10591echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10592if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10593  echo $ECHO_N "(cached) $ECHO_C" >&6
10594else
10595  ac_check_lib_save_LIBS=$LIBS
10596LIBS="-ldld  $LIBS"
10597cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h.  */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h.  */
10603
10604/* Override any GCC internal prototype to avoid an error.
10605   Use char because int might match the return type of a GCC
10606   builtin and then its argument prototype would still apply.  */
10607#ifdef __cplusplus
10608extern "C"
10609#endif
10610char dld_link ();
10611int
10612main ()
10613{
10614return dld_link ();
10615  ;
10616  return 0;
10617}
10618_ACEOF
10619rm -f conftest.$ac_objext conftest$ac_exeext
10620if { (ac_try="$ac_link"
10621case "(($ac_try" in
10622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623  *) ac_try_echo=$ac_try;;
10624esac
10625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626  (eval "$ac_link") 2>conftest.er1
10627  ac_status=$?
10628  grep -v '^ *+' conftest.er1 >conftest.err
10629  rm -f conftest.er1
10630  cat conftest.err >&5
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); } && {
10633	 test -z "$ac_c_werror_flag" ||
10634	 test ! -s conftest.err
10635       } && test -s conftest$ac_exeext &&
10636       $as_test_x conftest$ac_exeext; then
10637  ac_cv_lib_dld_dld_link=yes
10638else
10639  echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642	ac_cv_lib_dld_dld_link=no
10643fi
10644
10645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10646      conftest$ac_exeext conftest.$ac_ext
10647LIBS=$ac_check_lib_save_LIBS
10648fi
10649{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10650echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10651if test $ac_cv_lib_dld_dld_link = yes; then
10652  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10653fi
10654
10655
10656fi
10657
10658
10659fi
10660
10661
10662fi
10663
10664
10665fi
10666
10667
10668fi
10669
10670    ;;
10671  esac
10672
10673  if test "x$lt_cv_dlopen" != xno; then
10674    enable_dlopen=yes
10675  else
10676    enable_dlopen=no
10677  fi
10678
10679  case $lt_cv_dlopen in
10680  dlopen)
10681    save_CPPFLAGS="$CPPFLAGS"
10682    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10683
10684    save_LDFLAGS="$LDFLAGS"
10685    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10686
10687    save_LIBS="$LIBS"
10688    LIBS="$lt_cv_dlopen_libs $LIBS"
10689
10690    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10691echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10692if test "${lt_cv_dlopen_self+set}" = set; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695  	  if test "$cross_compiling" = yes; then :
10696  lt_cv_dlopen_self=cross
10697else
10698  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10699  lt_status=$lt_dlunknown
10700  cat > conftest.$ac_ext <<EOF
10701#line 10701 "configure"
10702#include "confdefs.h"
10703
10704#if HAVE_DLFCN_H
10705#include <dlfcn.h>
10706#endif
10707
10708#include <stdio.h>
10709
10710#ifdef RTLD_GLOBAL
10711#  define LT_DLGLOBAL		RTLD_GLOBAL
10712#else
10713#  ifdef DL_GLOBAL
10714#    define LT_DLGLOBAL		DL_GLOBAL
10715#  else
10716#    define LT_DLGLOBAL		0
10717#  endif
10718#endif
10719
10720/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10721   find out it does not work in some platform. */
10722#ifndef LT_DLLAZY_OR_NOW
10723#  ifdef RTLD_LAZY
10724#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10725#  else
10726#    ifdef DL_LAZY
10727#      define LT_DLLAZY_OR_NOW		DL_LAZY
10728#    else
10729#      ifdef RTLD_NOW
10730#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10731#      else
10732#        ifdef DL_NOW
10733#          define LT_DLLAZY_OR_NOW	DL_NOW
10734#        else
10735#          define LT_DLLAZY_OR_NOW	0
10736#        endif
10737#      endif
10738#    endif
10739#  endif
10740#endif
10741
10742#ifdef __cplusplus
10743extern "C" void exit (int);
10744#endif
10745
10746void fnord() { int i=42;}
10747int main ()
10748{
10749  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10750  int status = $lt_dlunknown;
10751
10752  if (self)
10753    {
10754      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10755      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10756      /* dlclose (self); */
10757    }
10758  else
10759    puts (dlerror ());
10760
10761    exit (status);
10762}
10763EOF
10764  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765  (eval $ac_link) 2>&5
10766  ac_status=$?
10767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10769    (./conftest; exit; ) >&5 2>/dev/null
10770    lt_status=$?
10771    case x$lt_status in
10772      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10773      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10774      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10775    esac
10776  else :
10777    # compilation failed
10778    lt_cv_dlopen_self=no
10779  fi
10780fi
10781rm -fr conftest*
10782
10783
10784fi
10785{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10786echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10787
10788    if test "x$lt_cv_dlopen_self" = xyes; then
10789      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10790      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10791echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10792if test "${lt_cv_dlopen_self_static+set}" = set; then
10793  echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795  	  if test "$cross_compiling" = yes; then :
10796  lt_cv_dlopen_self_static=cross
10797else
10798  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10799  lt_status=$lt_dlunknown
10800  cat > conftest.$ac_ext <<EOF
10801#line 10801 "configure"
10802#include "confdefs.h"
10803
10804#if HAVE_DLFCN_H
10805#include <dlfcn.h>
10806#endif
10807
10808#include <stdio.h>
10809
10810#ifdef RTLD_GLOBAL
10811#  define LT_DLGLOBAL		RTLD_GLOBAL
10812#else
10813#  ifdef DL_GLOBAL
10814#    define LT_DLGLOBAL		DL_GLOBAL
10815#  else
10816#    define LT_DLGLOBAL		0
10817#  endif
10818#endif
10819
10820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10821   find out it does not work in some platform. */
10822#ifndef LT_DLLAZY_OR_NOW
10823#  ifdef RTLD_LAZY
10824#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10825#  else
10826#    ifdef DL_LAZY
10827#      define LT_DLLAZY_OR_NOW		DL_LAZY
10828#    else
10829#      ifdef RTLD_NOW
10830#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10831#      else
10832#        ifdef DL_NOW
10833#          define LT_DLLAZY_OR_NOW	DL_NOW
10834#        else
10835#          define LT_DLLAZY_OR_NOW	0
10836#        endif
10837#      endif
10838#    endif
10839#  endif
10840#endif
10841
10842#ifdef __cplusplus
10843extern "C" void exit (int);
10844#endif
10845
10846void fnord() { int i=42;}
10847int main ()
10848{
10849  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10850  int status = $lt_dlunknown;
10851
10852  if (self)
10853    {
10854      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10855      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10856      /* dlclose (self); */
10857    }
10858  else
10859    puts (dlerror ());
10860
10861    exit (status);
10862}
10863EOF
10864  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10865  (eval $ac_link) 2>&5
10866  ac_status=$?
10867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10869    (./conftest; exit; ) >&5 2>/dev/null
10870    lt_status=$?
10871    case x$lt_status in
10872      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10873      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10874      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10875    esac
10876  else :
10877    # compilation failed
10878    lt_cv_dlopen_self_static=no
10879  fi
10880fi
10881rm -fr conftest*
10882
10883
10884fi
10885{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10886echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10887    fi
10888
10889    CPPFLAGS="$save_CPPFLAGS"
10890    LDFLAGS="$save_LDFLAGS"
10891    LIBS="$save_LIBS"
10892    ;;
10893  esac
10894
10895  case $lt_cv_dlopen_self in
10896  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10897  *) enable_dlopen_self=unknown ;;
10898  esac
10899
10900  case $lt_cv_dlopen_self_static in
10901  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10902  *) enable_dlopen_self_static=unknown ;;
10903  esac
10904fi
10905
10906
10907# Report which library types will actually be built
10908{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10909echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10910{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10911echo "${ECHO_T}$can_build_shared" >&6; }
10912
10913{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10914echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10915test "$can_build_shared" = "no" && enable_shared=no
10916
10917# On AIX, shared libraries and static libraries use the same namespace, and
10918# are all built from PIC.
10919case $host_os in
10920aix3*)
10921  test "$enable_shared" = yes && enable_static=no
10922  if test -n "$RANLIB"; then
10923    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10924    postinstall_cmds='$RANLIB $lib'
10925  fi
10926  ;;
10927
10928aix4* | aix5*)
10929  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10930    test "$enable_shared" = yes && enable_static=no
10931  fi
10932    ;;
10933esac
10934{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10935echo "${ECHO_T}$enable_shared" >&6; }
10936
10937{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10938echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10939# Make sure either enable_shared or enable_static is yes.
10940test "$enable_shared" = yes || enable_static=yes
10941{ echo "$as_me:$LINENO: result: $enable_static" >&5
10942echo "${ECHO_T}$enable_static" >&6; }
10943
10944# The else clause should only fire when bootstrapping the
10945# libtool distribution, otherwise you forgot to ship ltmain.sh
10946# with your package, and you will get complaints that there are
10947# no rules to generate ltmain.sh.
10948if test -f "$ltmain"; then
10949  # See if we are running on zsh, and set the options which allow our commands through
10950  # without removal of \ escapes.
10951  if test -n "${ZSH_VERSION+set}" ; then
10952    setopt NO_GLOB_SUBST
10953  fi
10954  # Now quote all the things that may contain metacharacters while being
10955  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10956  # variables and quote the copies for generation of the libtool script.
10957  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10958    SED SHELL STRIP \
10959    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10960    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10961    deplibs_check_method reload_flag reload_cmds need_locks \
10962    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10963    lt_cv_sys_global_symbol_to_c_name_address \
10964    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10965    old_postinstall_cmds old_postuninstall_cmds \
10966    compiler \
10967    CC \
10968    LD \
10969    lt_prog_compiler_wl \
10970    lt_prog_compiler_pic \
10971    lt_prog_compiler_static \
10972    lt_prog_compiler_no_builtin_flag \
10973    export_dynamic_flag_spec \
10974    thread_safe_flag_spec \
10975    whole_archive_flag_spec \
10976    enable_shared_with_static_runtimes \
10977    old_archive_cmds \
10978    old_archive_from_new_cmds \
10979    predep_objects \
10980    postdep_objects \
10981    predeps \
10982    postdeps \
10983    compiler_lib_search_path \
10984    archive_cmds \
10985    archive_expsym_cmds \
10986    postinstall_cmds \
10987    postuninstall_cmds \
10988    old_archive_from_expsyms_cmds \
10989    allow_undefined_flag \
10990    no_undefined_flag \
10991    export_symbols_cmds \
10992    hardcode_libdir_flag_spec \
10993    hardcode_libdir_flag_spec_ld \
10994    hardcode_libdir_separator \
10995    hardcode_automatic \
10996    module_cmds \
10997    module_expsym_cmds \
10998    lt_cv_prog_compiler_c_o \
10999    fix_srcfile_path \
11000    exclude_expsyms \
11001    include_expsyms; do
11002
11003    case $var in
11004    old_archive_cmds | \
11005    old_archive_from_new_cmds | \
11006    archive_cmds | \
11007    archive_expsym_cmds | \
11008    module_cmds | \
11009    module_expsym_cmds | \
11010    old_archive_from_expsyms_cmds | \
11011    export_symbols_cmds | \
11012    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11013    postinstall_cmds | postuninstall_cmds | \
11014    old_postinstall_cmds | old_postuninstall_cmds | \
11015    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11016      # Double-quote double-evaled strings.
11017      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11018      ;;
11019    *)
11020      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11021      ;;
11022    esac
11023  done
11024
11025  case $lt_echo in
11026  *'\$0 --fallback-echo"')
11027    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11028    ;;
11029  esac
11030
11031cfgfile="${ofile}T"
11032  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11033  $rm -f "$cfgfile"
11034  { echo "$as_me:$LINENO: creating $ofile" >&5
11035echo "$as_me: creating $ofile" >&6;}
11036
11037  cat <<__EOF__ >> "$cfgfile"
11038#! $SHELL
11039
11040# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11041# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11042# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11043#
11044# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11045# Free Software Foundation, Inc.
11046#
11047# This file is part of GNU Libtool:
11048# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11049#
11050# This program is free software; you can redistribute it and/or modify
11051# it under the terms of the GNU General Public License as published by
11052# the Free Software Foundation; either version 2 of the License, or
11053# (at your option) any later version.
11054#
11055# This program is distributed in the hope that it will be useful, but
11056# WITHOUT ANY WARRANTY; without even the implied warranty of
11057# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11058# General Public License for more details.
11059#
11060# You should have received a copy of the GNU General Public License
11061# along with this program; if not, write to the Free Software
11062# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11063#
11064# As a special exception to the GNU General Public License, if you
11065# distribute this file as part of a program that contains a
11066# configuration script generated by Autoconf, you may include it under
11067# the same distribution terms that you use for the rest of that program.
11068
11069# A sed program that does not truncate output.
11070SED=$lt_SED
11071
11072# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11073Xsed="$SED -e 1s/^X//"
11074
11075# The HP-UX ksh and POSIX shell print the target directory to stdout
11076# if CDPATH is set.
11077(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11078
11079# The names of the tagged configurations supported by this script.
11080available_tags=
11081
11082# ### BEGIN LIBTOOL CONFIG
11083
11084# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11085
11086# Shell to use when invoking shell scripts.
11087SHELL=$lt_SHELL
11088
11089# Whether or not to build shared libraries.
11090build_libtool_libs=$enable_shared
11091
11092# Whether or not to build static libraries.
11093build_old_libs=$enable_static
11094
11095# Whether or not to add -lc for building shared libraries.
11096build_libtool_need_lc=$archive_cmds_need_lc
11097
11098# Whether or not to disallow shared libs when runtime libs are static
11099allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11100
11101# Whether or not to optimize for fast installation.
11102fast_install=$enable_fast_install
11103
11104# The host system.
11105host_alias=$host_alias
11106host=$host
11107host_os=$host_os
11108
11109# The build system.
11110build_alias=$build_alias
11111build=$build
11112build_os=$build_os
11113
11114# An echo program that does not interpret backslashes.
11115echo=$lt_echo
11116
11117# The archiver.
11118AR=$lt_AR
11119AR_FLAGS=$lt_AR_FLAGS
11120
11121# A C compiler.
11122LTCC=$lt_LTCC
11123
11124# LTCC compiler flags.
11125LTCFLAGS=$lt_LTCFLAGS
11126
11127# A language-specific compiler.
11128CC=$lt_compiler
11129
11130# Is the compiler the GNU C compiler?
11131with_gcc=$GCC
11132
11133# An ERE matcher.
11134EGREP=$lt_EGREP
11135
11136# The linker used to build libraries.
11137LD=$lt_LD
11138
11139# Whether we need hard or soft links.
11140LN_S=$lt_LN_S
11141
11142# A BSD-compatible nm program.
11143NM=$lt_NM
11144
11145# A symbol stripping program
11146STRIP=$lt_STRIP
11147
11148# Used to examine libraries when file_magic_cmd begins "file"
11149MAGIC_CMD=$MAGIC_CMD
11150
11151# Used on cygwin: DLL creation program.
11152DLLTOOL="$DLLTOOL"
11153
11154# Used on cygwin: object dumper.
11155OBJDUMP="$OBJDUMP"
11156
11157# Used on cygwin: assembler.
11158AS="$AS"
11159
11160# The name of the directory that contains temporary libtool files.
11161objdir=$objdir
11162
11163# How to create reloadable object files.
11164reload_flag=$lt_reload_flag
11165reload_cmds=$lt_reload_cmds
11166
11167# How to pass a linker flag through the compiler.
11168wl=$lt_lt_prog_compiler_wl
11169
11170# Object file suffix (normally "o").
11171objext="$ac_objext"
11172
11173# Old archive suffix (normally "a").
11174libext="$libext"
11175
11176# Shared library suffix (normally ".so").
11177shrext_cmds='$shrext_cmds'
11178
11179# Executable file suffix (normally "").
11180exeext="$exeext"
11181
11182# Additional compiler flags for building library objects.
11183pic_flag=$lt_lt_prog_compiler_pic
11184pic_mode=$pic_mode
11185
11186# What is the maximum length of a command?
11187max_cmd_len=$lt_cv_sys_max_cmd_len
11188
11189# Does compiler simultaneously support -c and -o options?
11190compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11191
11192# Must we lock files when doing compilation?
11193need_locks=$lt_need_locks
11194
11195# Do we need the lib prefix for modules?
11196need_lib_prefix=$need_lib_prefix
11197
11198# Do we need a version for libraries?
11199need_version=$need_version
11200
11201# Whether dlopen is supported.
11202dlopen_support=$enable_dlopen
11203
11204# Whether dlopen of programs is supported.
11205dlopen_self=$enable_dlopen_self
11206
11207# Whether dlopen of statically linked programs is supported.
11208dlopen_self_static=$enable_dlopen_self_static
11209
11210# Compiler flag to prevent dynamic linking.
11211link_static_flag=$lt_lt_prog_compiler_static
11212
11213# Compiler flag to turn off builtin functions.
11214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11215
11216# Compiler flag to allow reflexive dlopens.
11217export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11218
11219# Compiler flag to generate shared objects directly from archives.
11220whole_archive_flag_spec=$lt_whole_archive_flag_spec
11221
11222# Compiler flag to generate thread-safe objects.
11223thread_safe_flag_spec=$lt_thread_safe_flag_spec
11224
11225# Library versioning type.
11226version_type=$version_type
11227
11228# Format of library name prefix.
11229libname_spec=$lt_libname_spec
11230
11231# List of archive names.  First name is the real one, the rest are links.
11232# The last name is the one that the linker finds with -lNAME.
11233library_names_spec=$lt_library_names_spec
11234
11235# The coded name of the library, if different from the real name.
11236soname_spec=$lt_soname_spec
11237
11238# Commands used to build and install an old-style archive.
11239RANLIB=$lt_RANLIB
11240old_archive_cmds=$lt_old_archive_cmds
11241old_postinstall_cmds=$lt_old_postinstall_cmds
11242old_postuninstall_cmds=$lt_old_postuninstall_cmds
11243
11244# Create an old-style archive from a shared archive.
11245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11246
11247# Create a temporary old-style archive to link instead of a shared archive.
11248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11249
11250# Commands used to build and install a shared archive.
11251archive_cmds=$lt_archive_cmds
11252archive_expsym_cmds=$lt_archive_expsym_cmds
11253postinstall_cmds=$lt_postinstall_cmds
11254postuninstall_cmds=$lt_postuninstall_cmds
11255
11256# Commands used to build a loadable module (assumed same as above if empty)
11257module_cmds=$lt_module_cmds
11258module_expsym_cmds=$lt_module_expsym_cmds
11259
11260# Commands to strip libraries.
11261old_striplib=$lt_old_striplib
11262striplib=$lt_striplib
11263
11264# Dependencies to place before the objects being linked to create a
11265# shared library.
11266predep_objects=$lt_predep_objects
11267
11268# Dependencies to place after the objects being linked to create a
11269# shared library.
11270postdep_objects=$lt_postdep_objects
11271
11272# Dependencies to place before the objects being linked to create a
11273# shared library.
11274predeps=$lt_predeps
11275
11276# Dependencies to place after the objects being linked to create a
11277# shared library.
11278postdeps=$lt_postdeps
11279
11280# The library search path used internally by the compiler when linking
11281# a shared library.
11282compiler_lib_search_path=$lt_compiler_lib_search_path
11283
11284# Method to check whether dependent libraries are shared objects.
11285deplibs_check_method=$lt_deplibs_check_method
11286
11287# Command to use when deplibs_check_method == file_magic.
11288file_magic_cmd=$lt_file_magic_cmd
11289
11290# Flag that allows shared libraries with undefined symbols to be built.
11291allow_undefined_flag=$lt_allow_undefined_flag
11292
11293# Flag that forces no undefined symbols.
11294no_undefined_flag=$lt_no_undefined_flag
11295
11296# Commands used to finish a libtool library installation in a directory.
11297finish_cmds=$lt_finish_cmds
11298
11299# Same as above, but a single script fragment to be evaled but not shown.
11300finish_eval=$lt_finish_eval
11301
11302# Take the output of nm and produce a listing of raw symbols and C names.
11303global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11304
11305# Transform the output of nm in a proper C declaration
11306global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11307
11308# Transform the output of nm in a C name address pair
11309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11310
11311# This is the shared library runtime path variable.
11312runpath_var=$runpath_var
11313
11314# This is the shared library path variable.
11315shlibpath_var=$shlibpath_var
11316
11317# Is shlibpath searched before the hard-coded library search path?
11318shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11319
11320# How to hardcode a shared library path into an executable.
11321hardcode_action=$hardcode_action
11322
11323# Whether we should hardcode library paths into libraries.
11324hardcode_into_libs=$hardcode_into_libs
11325
11326# Flag to hardcode \$libdir into a binary during linking.
11327# This must work even if \$libdir does not exist.
11328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11329
11330# If ld is used when linking, flag to hardcode \$libdir into
11331# a binary during linking. This must work even if \$libdir does
11332# not exist.
11333hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11334
11335# Whether we need a single -rpath flag with a separated argument.
11336hardcode_libdir_separator=$lt_hardcode_libdir_separator
11337
11338# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11339# resulting binary.
11340hardcode_direct=$hardcode_direct
11341
11342# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11343# resulting binary.
11344hardcode_minus_L=$hardcode_minus_L
11345
11346# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11347# the resulting binary.
11348hardcode_shlibpath_var=$hardcode_shlibpath_var
11349
11350# Set to yes if building a shared library automatically hardcodes DIR into the library
11351# and all subsequent libraries and executables linked against it.
11352hardcode_automatic=$hardcode_automatic
11353
11354# Variables whose values should be saved in libtool wrapper scripts and
11355# restored at relink time.
11356variables_saved_for_relink="$variables_saved_for_relink"
11357
11358# Whether libtool must link a program against all its dependency libraries.
11359link_all_deplibs=$link_all_deplibs
11360
11361# Compile-time system search path for libraries
11362sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11363
11364# Run-time system search path for libraries
11365sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11366
11367# Fix the shell variable \$srcfile for the compiler.
11368fix_srcfile_path=$lt_fix_srcfile_path
11369
11370# Set to yes if exported symbols are required.
11371always_export_symbols=$always_export_symbols
11372
11373# The commands to list exported symbols.
11374export_symbols_cmds=$lt_export_symbols_cmds
11375
11376# The commands to extract the exported symbol list from a shared archive.
11377extract_expsyms_cmds=$lt_extract_expsyms_cmds
11378
11379# Symbols that should not be listed in the preloaded symbols.
11380exclude_expsyms=$lt_exclude_expsyms
11381
11382# Symbols that must always be exported.
11383include_expsyms=$lt_include_expsyms
11384
11385# ### END LIBTOOL CONFIG
11386
11387__EOF__
11388
11389
11390  case $host_os in
11391  aix3*)
11392    cat <<\EOF >> "$cfgfile"
11393
11394# AIX sometimes has problems with the GCC collect2 program.  For some
11395# reason, if we set the COLLECT_NAMES environment variable, the problems
11396# vanish in a puff of smoke.
11397if test "X${COLLECT_NAMES+set}" != Xset; then
11398  COLLECT_NAMES=
11399  export COLLECT_NAMES
11400fi
11401EOF
11402    ;;
11403  esac
11404
11405  # We use sed instead of cat because bash on DJGPP gets confused if
11406  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11407  # text mode, it properly converts lines to CR/LF.  This bash problem
11408  # is reportedly fixed, but why not run on old versions too?
11409  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11410
11411  mv -f "$cfgfile" "$ofile" || \
11412    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11413  chmod +x "$ofile"
11414
11415else
11416  # If there is no Makefile yet, we rely on a make rule to execute
11417  # `config.status --recheck' to rerun these tests and create the
11418  # libtool script then.
11419  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11420  if test -f "$ltmain_in"; then
11421    test -f Makefile && make "$ltmain"
11422  fi
11423fi
11424
11425
11426ac_ext=c
11427ac_cpp='$CPP $CPPFLAGS'
11428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
11432CC="$lt_save_CC"
11433
11434
11435# Check whether --with-tags was given.
11436if test "${with_tags+set}" = set; then
11437  withval=$with_tags; tagnames="$withval"
11438fi
11439
11440
11441if test -f "$ltmain" && test -n "$tagnames"; then
11442  if test ! -f "${ofile}"; then
11443    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11444echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11445  fi
11446
11447  if test -z "$LTCC"; then
11448    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11449    if test -z "$LTCC"; then
11450      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11451echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11452    else
11453      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11454echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11455    fi
11456  fi
11457  if test -z "$LTCFLAGS"; then
11458    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11459  fi
11460
11461  # Extract list of available tagged configurations in $ofile.
11462  # Note that this assumes the entire list is on one line.
11463  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11464
11465  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11466  for tagname in $tagnames; do
11467    IFS="$lt_save_ifs"
11468    # Check whether tagname contains only valid characters
11469    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11470    "") ;;
11471    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11472echo "$as_me: error: invalid tag name: $tagname" >&2;}
11473   { (exit 1); exit 1; }; }
11474	;;
11475    esac
11476
11477    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11478    then
11479      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11480echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11481   { (exit 1); exit 1; }; }
11482    fi
11483
11484    # Update the list of available tags.
11485    if test -n "$tagname"; then
11486      echo appending configuration tag \"$tagname\" to $ofile
11487
11488      case $tagname in
11489      CXX)
11490	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11491	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11492	    (test "X$CXX" != "Xg++"))) ; then
11493	  ac_ext=cpp
11494ac_cpp='$CXXCPP $CPPFLAGS'
11495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11498
11499
11500
11501
11502archive_cmds_need_lc_CXX=no
11503allow_undefined_flag_CXX=
11504always_export_symbols_CXX=no
11505archive_expsym_cmds_CXX=
11506export_dynamic_flag_spec_CXX=
11507hardcode_direct_CXX=no
11508hardcode_libdir_flag_spec_CXX=
11509hardcode_libdir_flag_spec_ld_CXX=
11510hardcode_libdir_separator_CXX=
11511hardcode_minus_L_CXX=no
11512hardcode_shlibpath_var_CXX=unsupported
11513hardcode_automatic_CXX=no
11514module_cmds_CXX=
11515module_expsym_cmds_CXX=
11516link_all_deplibs_CXX=unknown
11517old_archive_cmds_CXX=$old_archive_cmds
11518no_undefined_flag_CXX=
11519whole_archive_flag_spec_CXX=
11520enable_shared_with_static_runtimes_CXX=no
11521
11522# Dependencies to place before and after the object being linked:
11523predep_objects_CXX=
11524postdep_objects_CXX=
11525predeps_CXX=
11526postdeps_CXX=
11527compiler_lib_search_path_CXX=
11528
11529# Source file extension for C++ test sources.
11530ac_ext=cpp
11531
11532# Object file extension for compiled C++ test sources.
11533objext=o
11534objext_CXX=$objext
11535
11536# Code to be used in simple compile tests
11537lt_simple_compile_test_code="int some_variable = 0;"
11538
11539# Code to be used in simple link tests
11540lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11541
11542# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11543
11544# If no C compiler was specified, use CC.
11545LTCC=${LTCC-"$CC"}
11546
11547# If no C compiler flags were specified, use CFLAGS.
11548LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11549
11550# Allow CC to be a program name with arguments.
11551compiler=$CC
11552
11553
11554# save warnings/boilerplate of simple test code
11555ac_outfile=conftest.$ac_objext
11556echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11558_lt_compiler_boilerplate=`cat conftest.err`
11559$rm conftest*
11560
11561ac_outfile=conftest.$ac_objext
11562echo "$lt_simple_link_test_code" >conftest.$ac_ext
11563eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11564_lt_linker_boilerplate=`cat conftest.err`
11565$rm conftest*
11566
11567
11568# Allow CC to be a program name with arguments.
11569lt_save_CC=$CC
11570lt_save_LD=$LD
11571lt_save_GCC=$GCC
11572GCC=$GXX
11573lt_save_with_gnu_ld=$with_gnu_ld
11574lt_save_path_LD=$lt_cv_path_LD
11575if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11576  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11577else
11578  $as_unset lt_cv_prog_gnu_ld
11579fi
11580if test -n "${lt_cv_path_LDCXX+set}"; then
11581  lt_cv_path_LD=$lt_cv_path_LDCXX
11582else
11583  $as_unset lt_cv_path_LD
11584fi
11585test -z "${LDCXX+set}" || LD=$LDCXX
11586CC=${CXX-"c++"}
11587compiler=$CC
11588compiler_CXX=$CC
11589for cc_temp in $compiler""; do
11590  case $cc_temp in
11591    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11592    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11593    \-*) ;;
11594    *) break;;
11595  esac
11596done
11597cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11598
11599
11600# We don't want -fno-exception wen compiling C++ code, so set the
11601# no_builtin_flag separately
11602if test "$GXX" = yes; then
11603  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11604else
11605  lt_prog_compiler_no_builtin_flag_CXX=
11606fi
11607
11608if test "$GXX" = yes; then
11609  # Set up default GNU C++ configuration
11610
11611
11612# Check whether --with-gnu-ld was given.
11613if test "${with_gnu_ld+set}" = set; then
11614  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11615else
11616  with_gnu_ld=no
11617fi
11618
11619ac_prog=ld
11620if test "$GCC" = yes; then
11621  # Check if gcc -print-prog-name=ld gives a path.
11622  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11623echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11624  case $host in
11625  *-*-mingw*)
11626    # gcc leaves a trailing carriage return which upsets mingw
11627    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11628  *)
11629    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11630  esac
11631  case $ac_prog in
11632    # Accept absolute paths.
11633    [\\/]* | ?:[\\/]*)
11634      re_direlt='/[^/][^/]*/\.\./'
11635      # Canonicalize the pathname of ld
11636      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11637      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11638	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11639      done
11640      test -z "$LD" && LD="$ac_prog"
11641      ;;
11642  "")
11643    # If it fails, then pretend we aren't using GCC.
11644    ac_prog=ld
11645    ;;
11646  *)
11647    # If it is relative, then search for the first ld in PATH.
11648    with_gnu_ld=unknown
11649    ;;
11650  esac
11651elif test "$with_gnu_ld" = yes; then
11652  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11653echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11654else
11655  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11656echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11657fi
11658if test "${lt_cv_path_LD+set}" = set; then
11659  echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661  if test -z "$LD"; then
11662  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11663  for ac_dir in $PATH; do
11664    IFS="$lt_save_ifs"
11665    test -z "$ac_dir" && ac_dir=.
11666    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11667      lt_cv_path_LD="$ac_dir/$ac_prog"
11668      # Check to see if the program is GNU ld.  I'd rather use --version,
11669      # but apparently some variants of GNU ld only accept -v.
11670      # Break only if it was the GNU/non-GNU ld that we prefer.
11671      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11672      *GNU* | *'with BFD'*)
11673	test "$with_gnu_ld" != no && break
11674	;;
11675      *)
11676	test "$with_gnu_ld" != yes && break
11677	;;
11678      esac
11679    fi
11680  done
11681  IFS="$lt_save_ifs"
11682else
11683  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11684fi
11685fi
11686
11687LD="$lt_cv_path_LD"
11688if test -n "$LD"; then
11689  { echo "$as_me:$LINENO: result: $LD" >&5
11690echo "${ECHO_T}$LD" >&6; }
11691else
11692  { echo "$as_me:$LINENO: result: no" >&5
11693echo "${ECHO_T}no" >&6; }
11694fi
11695test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11696echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11697   { (exit 1); exit 1; }; }
11698{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11699echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11700if test "${lt_cv_prog_gnu_ld+set}" = set; then
11701  echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11704case `$LD -v 2>&1 </dev/null` in
11705*GNU* | *'with BFD'*)
11706  lt_cv_prog_gnu_ld=yes
11707  ;;
11708*)
11709  lt_cv_prog_gnu_ld=no
11710  ;;
11711esac
11712fi
11713{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11714echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11715with_gnu_ld=$lt_cv_prog_gnu_ld
11716
11717
11718
11719  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11720  # archiving commands below assume that GNU ld is being used.
11721  if test "$with_gnu_ld" = yes; then
11722    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11723    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'
11724
11725    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11726    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11727
11728    # If archive_cmds runs LD, not CC, wlarc should be empty
11729    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11730    #     investigate it a little bit more. (MM)
11731    wlarc='${wl}'
11732
11733    # ancient GNU ld didn't support --whole-archive et. al.
11734    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11735	grep 'no-whole-archive' > /dev/null; then
11736      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11737    else
11738      whole_archive_flag_spec_CXX=
11739    fi
11740  else
11741    with_gnu_ld=no
11742    wlarc=
11743
11744    # A generic and very simple default shared library creation
11745    # command for GNU C++ for the case where it uses the native
11746    # linker, instead of GNU ld.  If possible, this setting should
11747    # overridden to take advantage of the native linker features on
11748    # the platform it is being used on.
11749    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11750  fi
11751
11752  # Commands to make compiler produce verbose output that lists
11753  # what "hidden" libraries, object files and flags are used when
11754  # linking a shared library.
11755  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11756
11757else
11758  GXX=no
11759  with_gnu_ld=no
11760  wlarc=
11761fi
11762
11763# PORTME: fill in a description of your system's C++ link characteristics
11764{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11766ld_shlibs_CXX=yes
11767case $host_os in
11768  aix3*)
11769    # FIXME: insert proper C++ library support
11770    ld_shlibs_CXX=no
11771    ;;
11772  aix4* | aix5*)
11773    if test "$host_cpu" = ia64; then
11774      # On IA64, the linker does run time linking by default, so we don't
11775      # have to do anything special.
11776      aix_use_runtimelinking=no
11777      exp_sym_flag='-Bexport'
11778      no_entry_flag=""
11779    else
11780      aix_use_runtimelinking=no
11781
11782      # Test if we are trying to use run time linking or normal
11783      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11784      # need to do runtime linking.
11785      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11786	for ld_flag in $LDFLAGS; do
11787	  case $ld_flag in
11788	  *-brtl*)
11789	    aix_use_runtimelinking=yes
11790	    break
11791	    ;;
11792	  esac
11793	done
11794	;;
11795      esac
11796
11797      exp_sym_flag='-bexport'
11798      no_entry_flag='-bnoentry'
11799    fi
11800
11801    # When large executables or shared objects are built, AIX ld can
11802    # have problems creating the table of contents.  If linking a library
11803    # or program results in "error TOC overflow" add -mminimal-toc to
11804    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11805    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11806
11807    archive_cmds_CXX=''
11808    hardcode_direct_CXX=yes
11809    hardcode_libdir_separator_CXX=':'
11810    link_all_deplibs_CXX=yes
11811
11812    if test "$GXX" = yes; then
11813      case $host_os in aix4.[012]|aix4.[012].*)
11814      # We only want to do this on AIX 4.2 and lower, the check
11815      # below for broken collect2 doesn't work under 4.3+
11816	collect2name=`${CC} -print-prog-name=collect2`
11817	if test -f "$collect2name" && \
11818	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11819	then
11820	  # We have reworked collect2
11821	  :
11822	else
11823	  # We have old collect2
11824	  hardcode_direct_CXX=unsupported
11825	  # It fails to find uninstalled libraries when the uninstalled
11826	  # path is not listed in the libpath.  Setting hardcode_minus_L
11827	  # to unsupported forces relinking
11828	  hardcode_minus_L_CXX=yes
11829	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11830	  hardcode_libdir_separator_CXX=
11831	fi
11832	;;
11833      esac
11834      shared_flag='-shared'
11835      if test "$aix_use_runtimelinking" = yes; then
11836	shared_flag="$shared_flag "'${wl}-G'
11837      fi
11838    else
11839      # not using gcc
11840      if test "$host_cpu" = ia64; then
11841	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11842	# chokes on -Wl,-G. The following line is correct:
11843	shared_flag='-G'
11844      else
11845	if test "$aix_use_runtimelinking" = yes; then
11846	  shared_flag='${wl}-G'
11847	else
11848	  shared_flag='${wl}-bM:SRE'
11849	fi
11850      fi
11851    fi
11852
11853    # It seems that -bexpall does not export symbols beginning with
11854    # underscore (_), so it is better to generate a list of symbols to export.
11855    always_export_symbols_CXX=yes
11856    if test "$aix_use_runtimelinking" = yes; then
11857      # Warning - without using the other runtime loading flags (-brtl),
11858      # -berok will link without error, but may produce a broken library.
11859      allow_undefined_flag_CXX='-berok'
11860      # Determine the default libpath from the value encoded in an empty executable.
11861      cat >conftest.$ac_ext <<_ACEOF
11862/* confdefs.h.  */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h.  */
11867
11868int
11869main ()
11870{
11871
11872  ;
11873  return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext conftest$ac_exeext
11877if { (ac_try="$ac_link"
11878case "(($ac_try" in
11879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880  *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883  (eval "$ac_link") 2>conftest.er1
11884  ac_status=$?
11885  grep -v '^ *+' conftest.er1 >conftest.err
11886  rm -f conftest.er1
11887  cat conftest.err >&5
11888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889  (exit $ac_status); } && {
11890	 test -z "$ac_cxx_werror_flag" ||
11891	 test ! -s conftest.err
11892       } && test -s conftest$ac_exeext &&
11893       $as_test_x conftest$ac_exeext; then
11894
11895lt_aix_libpath_sed='
11896    /Import File Strings/,/^$/ {
11897	/^0/ {
11898	    s/^0  *\(.*\)$/\1/
11899	    p
11900	}
11901    }'
11902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11903# Check for a 64-bit object if we didn't find anything.
11904if test -z "$aix_libpath"; then
11905  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11906fi
11907else
11908  echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911
11912fi
11913
11914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11915      conftest$ac_exeext conftest.$ac_ext
11916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11917
11918      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11919
11920      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"
11921     else
11922      if test "$host_cpu" = ia64; then
11923	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11924	allow_undefined_flag_CXX="-z nodefs"
11925	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"
11926      else
11927	# Determine the default libpath from the value encoded in an empty executable.
11928	cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h.  */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h.  */
11934
11935int
11936main ()
11937{
11938
11939  ;
11940  return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (ac_try="$ac_link"
11945case "(($ac_try" in
11946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947  *) ac_try_echo=$ac_try;;
11948esac
11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950  (eval "$ac_link") 2>conftest.er1
11951  ac_status=$?
11952  grep -v '^ *+' conftest.er1 >conftest.err
11953  rm -f conftest.er1
11954  cat conftest.err >&5
11955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956  (exit $ac_status); } && {
11957	 test -z "$ac_cxx_werror_flag" ||
11958	 test ! -s conftest.err
11959       } && test -s conftest$ac_exeext &&
11960       $as_test_x conftest$ac_exeext; then
11961
11962lt_aix_libpath_sed='
11963    /Import File Strings/,/^$/ {
11964	/^0/ {
11965	    s/^0  *\(.*\)$/\1/
11966	    p
11967	}
11968    }'
11969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11970# Check for a 64-bit object if we didn't find anything.
11971if test -z "$aix_libpath"; then
11972  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11973fi
11974else
11975  echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978
11979fi
11980
11981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982      conftest$ac_exeext conftest.$ac_ext
11983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11984
11985	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11986	# Warning - without using the other run time loading flags,
11987	# -berok will link without error, but may produce a broken library.
11988	no_undefined_flag_CXX=' ${wl}-bernotok'
11989	allow_undefined_flag_CXX=' ${wl}-berok'
11990	# Exported symbols can be pulled into shared objects from archives
11991	whole_archive_flag_spec_CXX='$convenience'
11992	archive_cmds_need_lc_CXX=yes
11993	# This is similar to how AIX traditionally builds its shared libraries.
11994	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'
11995      fi
11996    fi
11997    ;;
11998
11999  beos*)
12000    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12001      allow_undefined_flag_CXX=unsupported
12002      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12003      # support --undefined.  This deserves some investigation.  FIXME
12004      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12005    else
12006      ld_shlibs_CXX=no
12007    fi
12008    ;;
12009
12010  chorus*)
12011    case $cc_basename in
12012      *)
12013	# FIXME: insert proper C++ library support
12014	ld_shlibs_CXX=no
12015	;;
12016    esac
12017    ;;
12018
12019  cygwin* | mingw* | pw32*)
12020    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12021    # as there is no search path for DLLs.
12022    hardcode_libdir_flag_spec_CXX='-L$libdir'
12023    allow_undefined_flag_CXX=unsupported
12024    always_export_symbols_CXX=no
12025    enable_shared_with_static_runtimes_CXX=yes
12026
12027    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12028      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'
12029      # If the export-symbols file already is a .def file (1st line
12030      # is EXPORTS), use it as is; otherwise, prepend...
12031      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12032	cp $export_symbols $output_objdir/$soname.def;
12033      else
12034	echo EXPORTS > $output_objdir/$soname.def;
12035	cat $export_symbols >> $output_objdir/$soname.def;
12036      fi~
12037      $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'
12038    else
12039      ld_shlibs_CXX=no
12040    fi
12041  ;;
12042      darwin* | rhapsody*)
12043        case $host_os in
12044        rhapsody* | darwin1.[012])
12045         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12046         ;;
12047       *) # Darwin 1.3 on
12048         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12049           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12050         else
12051           case ${MACOSX_DEPLOYMENT_TARGET} in
12052             10.[012])
12053               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12054               ;;
12055             10.*)
12056               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12057               ;;
12058           esac
12059         fi
12060         ;;
12061        esac
12062      archive_cmds_need_lc_CXX=no
12063      hardcode_direct_CXX=no
12064      hardcode_automatic_CXX=yes
12065      hardcode_shlibpath_var_CXX=unsupported
12066      whole_archive_flag_spec_CXX=''
12067      link_all_deplibs_CXX=yes
12068
12069    if test "$GXX" = yes ; then
12070      lt_int_apple_cc_single_mod=no
12071      output_verbose_link_cmd='echo'
12072      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12073       lt_int_apple_cc_single_mod=yes
12074      fi
12075      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12076       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12077      else
12078          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'
12079        fi
12080        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12081        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12082          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12083            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}'
12084          else
12085            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}'
12086          fi
12087            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}'
12088      else
12089      case $cc_basename in
12090        xlc*)
12091         output_verbose_link_cmd='echo'
12092          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12093          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12094          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12095          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12096          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}'
12097          ;;
12098       *)
12099         ld_shlibs_CXX=no
12100          ;;
12101      esac
12102      fi
12103        ;;
12104
12105  dgux*)
12106    case $cc_basename in
12107      ec++*)
12108	# FIXME: insert proper C++ library support
12109	ld_shlibs_CXX=no
12110	;;
12111      ghcx*)
12112	# Green Hills C++ Compiler
12113	# FIXME: insert proper C++ library support
12114	ld_shlibs_CXX=no
12115	;;
12116      *)
12117	# FIXME: insert proper C++ library support
12118	ld_shlibs_CXX=no
12119	;;
12120    esac
12121    ;;
12122  freebsd[12]*)
12123    # C++ shared libraries reported to be fairly broken before switch to ELF
12124    ld_shlibs_CXX=no
12125    ;;
12126  freebsd-elf*)
12127    archive_cmds_need_lc_CXX=no
12128    ;;
12129  freebsd* | dragonfly*)
12130    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12131    # conventions
12132    ld_shlibs_CXX=yes
12133    ;;
12134  gnu*)
12135    ;;
12136  hpux9*)
12137    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12138    hardcode_libdir_separator_CXX=:
12139    export_dynamic_flag_spec_CXX='${wl}-E'
12140    hardcode_direct_CXX=yes
12141    hardcode_minus_L_CXX=yes # Not in the search PATH,
12142				# but as the default
12143				# location of the library.
12144
12145    case $cc_basename in
12146    CC*)
12147      # FIXME: insert proper C++ library support
12148      ld_shlibs_CXX=no
12149      ;;
12150    aCC*)
12151      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'
12152      # Commands to make compiler produce verbose output that lists
12153      # what "hidden" libraries, object files and flags are used when
12154      # linking a shared library.
12155      #
12156      # There doesn't appear to be a way to prevent this compiler from
12157      # explicitly linking system object files so we need to strip them
12158      # from the output so that they don't get included in the library
12159      # dependencies.
12160      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'
12161      ;;
12162    *)
12163      if test "$GXX" = yes; then
12164        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'
12165      else
12166        # FIXME: insert proper C++ library support
12167        ld_shlibs_CXX=no
12168      fi
12169      ;;
12170    esac
12171    ;;
12172  hpux10*|hpux11*)
12173    if test $with_gnu_ld = no; then
12174      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12175      hardcode_libdir_separator_CXX=:
12176
12177      case $host_cpu in
12178      hppa*64*|ia64*) ;;
12179      *)
12180	export_dynamic_flag_spec_CXX='${wl}-E'
12181        ;;
12182      esac
12183    fi
12184    case $host_cpu in
12185    hppa*64*|ia64*)
12186      hardcode_direct_CXX=no
12187      hardcode_shlibpath_var_CXX=no
12188      ;;
12189    *)
12190      hardcode_direct_CXX=yes
12191      hardcode_minus_L_CXX=yes # Not in the search PATH,
12192					      # but as the default
12193					      # location of the library.
12194      ;;
12195    esac
12196
12197    case $cc_basename in
12198      CC*)
12199	# FIXME: insert proper C++ library support
12200	ld_shlibs_CXX=no
12201	;;
12202      aCC*)
12203	case $host_cpu in
12204	hppa*64*)
12205	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206	  ;;
12207	ia64*)
12208	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12209	  ;;
12210	*)
12211	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12212	  ;;
12213	esac
12214	# Commands to make compiler produce verbose output that lists
12215	# what "hidden" libraries, object files and flags are used when
12216	# linking a shared library.
12217	#
12218	# There doesn't appear to be a way to prevent this compiler from
12219	# explicitly linking system object files so we need to strip them
12220	# from the output so that they don't get included in the library
12221	# dependencies.
12222	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'
12223	;;
12224      *)
12225	if test "$GXX" = yes; then
12226	  if test $with_gnu_ld = no; then
12227	    case $host_cpu in
12228	    hppa*64*)
12229	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12230	      ;;
12231	    ia64*)
12232	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233	      ;;
12234	    *)
12235	      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'
12236	      ;;
12237	    esac
12238	  fi
12239	else
12240	  # FIXME: insert proper C++ library support
12241	  ld_shlibs_CXX=no
12242	fi
12243	;;
12244    esac
12245    ;;
12246  interix[3-9]*)
12247    hardcode_direct_CXX=no
12248    hardcode_shlibpath_var_CXX=no
12249    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12250    export_dynamic_flag_spec_CXX='${wl}-E'
12251    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12252    # Instead, shared libraries are loaded at an image base (0x10000000 by
12253    # default) and relocated if they conflict, which is a slow very memory
12254    # consuming and fragmenting process.  To avoid this, we pick a random,
12255    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12256    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12257    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'
12258    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'
12259    ;;
12260  irix5* | irix6*)
12261    case $cc_basename in
12262      CC*)
12263	# SGI C++
12264	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'
12265
12266	# Archives containing C++ object files must be created using
12267	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12268	# necessary to make sure instantiated templates are included
12269	# in the archive.
12270	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12271	;;
12272      *)
12273	if test "$GXX" = yes; then
12274	  if test "$with_gnu_ld" = no; then
12275	    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'
12276	  else
12277	    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'
12278	  fi
12279	fi
12280	link_all_deplibs_CXX=yes
12281	;;
12282    esac
12283    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12284    hardcode_libdir_separator_CXX=:
12285    ;;
12286  linux* | k*bsd*-gnu)
12287    case $cc_basename in
12288      KCC*)
12289	# Kuck and Associates, Inc. (KAI) C++ Compiler
12290
12291	# KCC will only create a shared library if the output file
12292	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12293	# to its proper name (with version) after linking.
12294	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'
12295	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'
12296	# Commands to make compiler produce verbose output that lists
12297	# what "hidden" libraries, object files and flags are used when
12298	# linking a shared library.
12299	#
12300	# There doesn't appear to be a way to prevent this compiler from
12301	# explicitly linking system object files so we need to strip them
12302	# from the output so that they don't get included in the library
12303	# dependencies.
12304	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'
12305
12306	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12307	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12308
12309	# Archives containing C++ object files must be created using
12310	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12311	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12312	;;
12313      icpc*)
12314	# Intel C++
12315	with_gnu_ld=yes
12316	# version 8.0 and above of icpc choke on multiply defined symbols
12317	# if we add $predep_objects and $postdep_objects, however 7.1 and
12318	# earlier do not add the objects themselves.
12319	case `$CC -V 2>&1` in
12320	*"Version 7."*)
12321  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322  	  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'
12323	  ;;
12324	*)  # Version 8.0 or newer
12325	  tmp_idyn=
12326	  case $host_cpu in
12327	    ia64*) tmp_idyn=' -i_dynamic';;
12328	  esac
12329  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330	  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'
12331	  ;;
12332	esac
12333	archive_cmds_need_lc_CXX=no
12334	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12335	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12336	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12337	;;
12338      pgCC*)
12339        # Portland Group C++ compiler
12340	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12341  	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'
12342
12343	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12344	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345	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'
12346        ;;
12347      cxx*)
12348	# Compaq C++
12349	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350	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'
12351
12352	runpath_var=LD_RUN_PATH
12353	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12354	hardcode_libdir_separator_CXX=:
12355
12356	# Commands to make compiler produce verbose output that lists
12357	# what "hidden" libraries, object files and flags are used when
12358	# linking a shared library.
12359	#
12360	# There doesn't appear to be a way to prevent this compiler from
12361	# explicitly linking system object files so we need to strip them
12362	# from the output so that they don't get included in the library
12363	# dependencies.
12364	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'
12365	;;
12366      *)
12367	case `$CC -V 2>&1 | sed 5q` in
12368	*Sun\ C*)
12369	  # Sun C++ 5.9
12370	  no_undefined_flag_CXX=' -zdefs'
12371	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12372	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12373	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12374	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12375
12376	  # Not sure whether something based on
12377	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12378	  # would be better.
12379	  output_verbose_link_cmd='echo'
12380
12381	  # Archives containing C++ object files must be created using
12382	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12383	  # necessary to make sure instantiated templates are included
12384	  # in the archive.
12385	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12386	  ;;
12387	esac
12388	;;
12389    esac
12390    ;;
12391  lynxos*)
12392    # FIXME: insert proper C++ library support
12393    ld_shlibs_CXX=no
12394    ;;
12395  m88k*)
12396    # FIXME: insert proper C++ library support
12397    ld_shlibs_CXX=no
12398    ;;
12399  mvs*)
12400    case $cc_basename in
12401      cxx*)
12402	# FIXME: insert proper C++ library support
12403	ld_shlibs_CXX=no
12404	;;
12405      *)
12406	# FIXME: insert proper C++ library support
12407	ld_shlibs_CXX=no
12408	;;
12409    esac
12410    ;;
12411  netbsd*)
12412    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12413      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12414      wlarc=
12415      hardcode_libdir_flag_spec_CXX='-R$libdir'
12416      hardcode_direct_CXX=yes
12417      hardcode_shlibpath_var_CXX=no
12418    fi
12419    # Workaround some broken pre-1.5 toolchains
12420    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12421    ;;
12422  openbsd2*)
12423    # C++ shared libraries are fairly broken
12424    ld_shlibs_CXX=no
12425    ;;
12426  openbsd*)
12427    if test -f /usr/libexec/ld.so; then
12428      hardcode_direct_CXX=yes
12429      hardcode_shlibpath_var_CXX=no
12430      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12431      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12432      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12433	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12434	export_dynamic_flag_spec_CXX='${wl}-E'
12435	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436      fi
12437      output_verbose_link_cmd='echo'
12438    else
12439      ld_shlibs_CXX=no
12440    fi
12441    ;;
12442  osf3*)
12443    case $cc_basename in
12444      KCC*)
12445	# Kuck and Associates, Inc. (KAI) C++ Compiler
12446
12447	# KCC will only create a shared library if the output file
12448	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12449	# to its proper name (with version) after linking.
12450	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'
12451
12452	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12453	hardcode_libdir_separator_CXX=:
12454
12455	# Archives containing C++ object files must be created using
12456	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12457	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12458
12459	;;
12460      RCC*)
12461	# Rational C++ 2.4.1
12462	# FIXME: insert proper C++ library support
12463	ld_shlibs_CXX=no
12464	;;
12465      cxx*)
12466	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12467	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'
12468
12469	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12470	hardcode_libdir_separator_CXX=:
12471
12472	# Commands to make compiler produce verbose output that lists
12473	# what "hidden" libraries, object files and flags are used when
12474	# linking a shared library.
12475	#
12476	# There doesn't appear to be a way to prevent this compiler from
12477	# explicitly linking system object files so we need to strip them
12478	# from the output so that they don't get included in the library
12479	# dependencies.
12480	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'
12481	;;
12482      *)
12483	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12484	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12485	  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'
12486
12487	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12488	  hardcode_libdir_separator_CXX=:
12489
12490	  # Commands to make compiler produce verbose output that lists
12491	  # what "hidden" libraries, object files and flags are used when
12492	  # linking a shared library.
12493	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12494
12495	else
12496	  # FIXME: insert proper C++ library support
12497	  ld_shlibs_CXX=no
12498	fi
12499	;;
12500    esac
12501    ;;
12502  osf4* | osf5*)
12503    case $cc_basename in
12504      KCC*)
12505	# Kuck and Associates, Inc. (KAI) C++ Compiler
12506
12507	# KCC will only create a shared library if the output file
12508	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12509	# to its proper name (with version) after linking.
12510	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'
12511
12512	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12513	hardcode_libdir_separator_CXX=:
12514
12515	# Archives containing C++ object files must be created using
12516	# the KAI C++ compiler.
12517	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12518	;;
12519      RCC*)
12520	# Rational C++ 2.4.1
12521	# FIXME: insert proper C++ library support
12522	ld_shlibs_CXX=no
12523	;;
12524      cxx*)
12525	allow_undefined_flag_CXX=' -expect_unresolved \*'
12526	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'
12527	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12528	  echo "-hidden">> $lib.exp~
12529	  $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~
12530	  $rm $lib.exp'
12531
12532	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12533	hardcode_libdir_separator_CXX=:
12534
12535	# Commands to make compiler produce verbose output that lists
12536	# what "hidden" libraries, object files and flags are used when
12537	# linking a shared library.
12538	#
12539	# There doesn't appear to be a way to prevent this compiler from
12540	# explicitly linking system object files so we need to strip them
12541	# from the output so that they don't get included in the library
12542	# dependencies.
12543	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'
12544	;;
12545      *)
12546	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12547	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12548	 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'
12549
12550	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12551	  hardcode_libdir_separator_CXX=:
12552
12553	  # Commands to make compiler produce verbose output that lists
12554	  # what "hidden" libraries, object files and flags are used when
12555	  # linking a shared library.
12556	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12557
12558	else
12559	  # FIXME: insert proper C++ library support
12560	  ld_shlibs_CXX=no
12561	fi
12562	;;
12563    esac
12564    ;;
12565  psos*)
12566    # FIXME: insert proper C++ library support
12567    ld_shlibs_CXX=no
12568    ;;
12569  sunos4*)
12570    case $cc_basename in
12571      CC*)
12572	# Sun C++ 4.x
12573	# FIXME: insert proper C++ library support
12574	ld_shlibs_CXX=no
12575	;;
12576      lcc*)
12577	# Lucid
12578	# FIXME: insert proper C++ library support
12579	ld_shlibs_CXX=no
12580	;;
12581      *)
12582	# FIXME: insert proper C++ library support
12583	ld_shlibs_CXX=no
12584	;;
12585    esac
12586    ;;
12587  solaris*)
12588    case $cc_basename in
12589      CC*)
12590	# Sun C++ 4.2, 5.x and Centerline C++
12591        archive_cmds_need_lc_CXX=yes
12592	no_undefined_flag_CXX=' -zdefs'
12593	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12594	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12595	$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'
12596
12597	hardcode_libdir_flag_spec_CXX='-R$libdir'
12598	hardcode_shlibpath_var_CXX=no
12599	case $host_os in
12600	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12601	  *)
12602	    # The compiler driver will combine and reorder linker options,
12603	    # but understands `-z linker_flag'.
12604	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12605	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12606	    ;;
12607	esac
12608	link_all_deplibs_CXX=yes
12609
12610	output_verbose_link_cmd='echo'
12611
12612	# Archives containing C++ object files must be created using
12613	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12614	# necessary to make sure instantiated templates are included
12615	# in the archive.
12616	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12617	;;
12618      gcx*)
12619	# Green Hills C++ Compiler
12620	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12621
12622	# The C++ compiler must be used to create the archive.
12623	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12624	;;
12625      *)
12626	# GNU C++ compiler with Solaris linker
12627	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12628	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12629	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12630	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12631	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12632		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12633
12634	    # Commands to make compiler produce verbose output that lists
12635	    # what "hidden" libraries, object files and flags are used when
12636	    # linking a shared library.
12637	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12638	  else
12639	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12640	    # platform.
12641	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12642	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12643		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12644
12645	    # Commands to make compiler produce verbose output that lists
12646	    # what "hidden" libraries, object files and flags are used when
12647	    # linking a shared library.
12648	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12649	  fi
12650
12651	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12652	  case $host_os in
12653	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12654	  *)
12655	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12656	    ;;
12657	  esac
12658	fi
12659	;;
12660    esac
12661    ;;
12662  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12663    no_undefined_flag_CXX='${wl}-z,text'
12664    archive_cmds_need_lc_CXX=no
12665    hardcode_shlibpath_var_CXX=no
12666    runpath_var='LD_RUN_PATH'
12667
12668    case $cc_basename in
12669      CC*)
12670	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672	;;
12673      *)
12674	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12675	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12676	;;
12677    esac
12678    ;;
12679  sysv5* | sco3.2v5* | sco5v6*)
12680    # Note: We can NOT use -z defs as we might desire, because we do not
12681    # link with -lc, and that would cause any symbols used from libc to
12682    # always be unresolved, which means just about no library would
12683    # ever link correctly.  If we're not using GNU ld we use -z text
12684    # though, which does catch some bad symbols but isn't as heavy-handed
12685    # as -z defs.
12686    # For security reasons, it is highly recommended that you always
12687    # use absolute paths for naming shared libraries, and exclude the
12688    # DT_RUNPATH tag from executables and libraries.  But doing so
12689    # requires that you compile everything twice, which is a pain.
12690    # So that behaviour is only enabled if SCOABSPATH is set to a
12691    # non-empty value in the environment.  Most likely only useful for
12692    # creating official distributions of packages.
12693    # This is a hack until libtool officially supports absolute path
12694    # names for shared libraries.
12695    no_undefined_flag_CXX='${wl}-z,text'
12696    allow_undefined_flag_CXX='${wl}-z,nodefs'
12697    archive_cmds_need_lc_CXX=no
12698    hardcode_shlibpath_var_CXX=no
12699    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12700    hardcode_libdir_separator_CXX=':'
12701    link_all_deplibs_CXX=yes
12702    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12703    runpath_var='LD_RUN_PATH'
12704
12705    case $cc_basename in
12706      CC*)
12707	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12708	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12709	;;
12710      *)
12711	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12712	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12713	;;
12714    esac
12715    ;;
12716  tandem*)
12717    case $cc_basename in
12718      NCC*)
12719	# NonStop-UX NCC 3.20
12720	# FIXME: insert proper C++ library support
12721	ld_shlibs_CXX=no
12722	;;
12723      *)
12724	# FIXME: insert proper C++ library support
12725	ld_shlibs_CXX=no
12726	;;
12727    esac
12728    ;;
12729  vxworks*)
12730    # FIXME: insert proper C++ library support
12731    ld_shlibs_CXX=no
12732    ;;
12733  *)
12734    # FIXME: insert proper C++ library support
12735    ld_shlibs_CXX=no
12736    ;;
12737esac
12738{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12739echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12740test "$ld_shlibs_CXX" = no && can_build_shared=no
12741
12742GCC_CXX="$GXX"
12743LD_CXX="$LD"
12744
12745
12746cat > conftest.$ac_ext <<EOF
12747class Foo
12748{
12749public:
12750  Foo (void) { a = 0; }
12751private:
12752  int a;
12753};
12754EOF
12755
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757  (eval $ac_compile) 2>&5
12758  ac_status=$?
12759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760  (exit $ac_status); }; then
12761  # Parse the compiler output and extract the necessary
12762  # objects, libraries and library flags.
12763
12764  # Sentinel used to keep track of whether or not we are before
12765  # the conftest object file.
12766  pre_test_object_deps_done=no
12767
12768  # The `*' in the case matches for architectures that use `case' in
12769  # $output_verbose_cmd can trigger glob expansion during the loop
12770  # eval without this substitution.
12771  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12772
12773  for p in `eval $output_verbose_link_cmd`; do
12774    case $p in
12775
12776    -L* | -R* | -l*)
12777       # Some compilers place space between "-{L,R}" and the path.
12778       # Remove the space.
12779       if test $p = "-L" \
12780	  || test $p = "-R"; then
12781	 prev=$p
12782	 continue
12783       else
12784	 prev=
12785       fi
12786
12787       if test "$pre_test_object_deps_done" = no; then
12788	 case $p in
12789	 -L* | -R*)
12790	   # Internal compiler library paths should come after those
12791	   # provided the user.  The postdeps already come after the
12792	   # user supplied libs so there is no need to process them.
12793	   if test -z "$compiler_lib_search_path_CXX"; then
12794	     compiler_lib_search_path_CXX="${prev}${p}"
12795	   else
12796	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12797	   fi
12798	   ;;
12799	 # The "-l" case would never come before the object being
12800	 # linked, so don't bother handling this case.
12801	 esac
12802       else
12803	 if test -z "$postdeps_CXX"; then
12804	   postdeps_CXX="${prev}${p}"
12805	 else
12806	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12807	 fi
12808       fi
12809       ;;
12810
12811    *.$objext)
12812       # This assumes that the test object file only shows up
12813       # once in the compiler output.
12814       if test "$p" = "conftest.$objext"; then
12815	 pre_test_object_deps_done=yes
12816	 continue
12817       fi
12818
12819       if test "$pre_test_object_deps_done" = no; then
12820	 if test -z "$predep_objects_CXX"; then
12821	   predep_objects_CXX="$p"
12822	 else
12823	   predep_objects_CXX="$predep_objects_CXX $p"
12824	 fi
12825       else
12826	 if test -z "$postdep_objects_CXX"; then
12827	   postdep_objects_CXX="$p"
12828	 else
12829	   postdep_objects_CXX="$postdep_objects_CXX $p"
12830	 fi
12831       fi
12832       ;;
12833
12834    *) ;; # Ignore the rest.
12835
12836    esac
12837  done
12838
12839  # Clean up.
12840  rm -f a.out a.exe
12841else
12842  echo "libtool.m4: error: problem compiling CXX test program"
12843fi
12844
12845$rm -f confest.$objext
12846
12847# PORTME: override above test on systems where it is broken
12848case $host_os in
12849interix[3-9]*)
12850  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12851  # hack all around it, let's just trust "g++" to DTRT.
12852  predep_objects_CXX=
12853  postdep_objects_CXX=
12854  postdeps_CXX=
12855  ;;
12856
12857linux*)
12858  case `$CC -V 2>&1 | sed 5q` in
12859  *Sun\ C*)
12860    # Sun C++ 5.9
12861    #
12862    # The more standards-conforming stlport4 library is
12863    # incompatible with the Cstd library. Avoid specifying
12864    # it if it's in CXXFLAGS. Ignore libCrun as
12865    # -library=stlport4 depends on it.
12866    case " $CXX $CXXFLAGS " in
12867    *" -library=stlport4 "*)
12868      solaris_use_stlport4=yes
12869      ;;
12870    esac
12871    if test "$solaris_use_stlport4" != yes; then
12872      postdeps_CXX='-library=Cstd -library=Crun'
12873    fi
12874    ;;
12875  esac
12876  ;;
12877
12878solaris*)
12879  case $cc_basename in
12880  CC*)
12881    # The more standards-conforming stlport4 library is
12882    # incompatible with the Cstd library. Avoid specifying
12883    # it if it's in CXXFLAGS. Ignore libCrun as
12884    # -library=stlport4 depends on it.
12885    case " $CXX $CXXFLAGS " in
12886    *" -library=stlport4 "*)
12887      solaris_use_stlport4=yes
12888      ;;
12889    esac
12890
12891    # Adding this requires a known-good setup of shared libraries for
12892    # Sun compiler versions before 5.6, else PIC objects from an old
12893    # archive will be linked into the output, leading to subtle bugs.
12894    if test "$solaris_use_stlport4" != yes; then
12895      postdeps_CXX='-library=Cstd -library=Crun'
12896    fi
12897    ;;
12898  esac
12899  ;;
12900esac
12901
12902
12903case " $postdeps_CXX " in
12904*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12905esac
12906
12907lt_prog_compiler_wl_CXX=
12908lt_prog_compiler_pic_CXX=
12909lt_prog_compiler_static_CXX=
12910
12911{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12913
12914  # C++ specific cases for pic, static, wl, etc.
12915  if test "$GXX" = yes; then
12916    lt_prog_compiler_wl_CXX='-Wl,'
12917    lt_prog_compiler_static_CXX='-static'
12918
12919    case $host_os in
12920    aix*)
12921      # All AIX code is PIC.
12922      if test "$host_cpu" = ia64; then
12923	# AIX 5 now supports IA64 processor
12924	lt_prog_compiler_static_CXX='-Bstatic'
12925      fi
12926      ;;
12927    amigaos*)
12928      # FIXME: we need at least 68020 code to build shared libraries, but
12929      # adding the `-m68020' flag to GCC prevents building anything better,
12930      # like `-m68040'.
12931      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12932      ;;
12933    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12934      # PIC is the default for these OSes.
12935      ;;
12936    mingw* | cygwin* | os2* | pw32*)
12937      # This hack is so that the source file can tell whether it is being
12938      # built for inclusion in a dll (and should export symbols for example).
12939      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12940      # (--disable-auto-import) libraries
12941      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12942      ;;
12943    darwin* | rhapsody*)
12944      # PIC is the default on this platform
12945      # Common symbols not allowed in MH_DYLIB files
12946      lt_prog_compiler_pic_CXX='-fno-common'
12947      ;;
12948    *djgpp*)
12949      # DJGPP does not support shared libraries at all
12950      lt_prog_compiler_pic_CXX=
12951      ;;
12952    interix[3-9]*)
12953      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12954      # Instead, we relocate shared libraries at runtime.
12955      ;;
12956    sysv4*MP*)
12957      if test -d /usr/nec; then
12958	lt_prog_compiler_pic_CXX=-Kconform_pic
12959      fi
12960      ;;
12961    hpux*)
12962      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12963      # not for PA HP-UX.
12964      case $host_cpu in
12965      hppa*64*|ia64*)
12966	;;
12967      *)
12968	lt_prog_compiler_pic_CXX='-fPIC'
12969	;;
12970      esac
12971      ;;
12972    *)
12973      lt_prog_compiler_pic_CXX='-fPIC'
12974      ;;
12975    esac
12976  else
12977    case $host_os in
12978      aix4* | aix5*)
12979	# All AIX code is PIC.
12980	if test "$host_cpu" = ia64; then
12981	  # AIX 5 now supports IA64 processor
12982	  lt_prog_compiler_static_CXX='-Bstatic'
12983	else
12984	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12985	fi
12986	;;
12987      chorus*)
12988	case $cc_basename in
12989	cxch68*)
12990	  # Green Hills C++ Compiler
12991	  # _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"
12992	  ;;
12993	esac
12994	;;
12995       darwin*)
12996         # PIC is the default on this platform
12997         # Common symbols not allowed in MH_DYLIB files
12998         case $cc_basename in
12999           xlc*)
13000           lt_prog_compiler_pic_CXX='-qnocommon'
13001           lt_prog_compiler_wl_CXX='-Wl,'
13002           ;;
13003         esac
13004       ;;
13005      dgux*)
13006	case $cc_basename in
13007	  ec++*)
13008	    lt_prog_compiler_pic_CXX='-KPIC'
13009	    ;;
13010	  ghcx*)
13011	    # Green Hills C++ Compiler
13012	    lt_prog_compiler_pic_CXX='-pic'
13013	    ;;
13014	  *)
13015	    ;;
13016	esac
13017	;;
13018      freebsd* | dragonfly*)
13019	# FreeBSD uses GNU C++
13020	;;
13021      hpux9* | hpux10* | hpux11*)
13022	case $cc_basename in
13023	  CC*)
13024	    lt_prog_compiler_wl_CXX='-Wl,'
13025	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13026	    if test "$host_cpu" != ia64; then
13027	      lt_prog_compiler_pic_CXX='+Z'
13028	    fi
13029	    ;;
13030	  aCC*)
13031	    lt_prog_compiler_wl_CXX='-Wl,'
13032	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13033	    case $host_cpu in
13034	    hppa*64*|ia64*)
13035	      # +Z the default
13036	      ;;
13037	    *)
13038	      lt_prog_compiler_pic_CXX='+Z'
13039	      ;;
13040	    esac
13041	    ;;
13042	  *)
13043	    ;;
13044	esac
13045	;;
13046      interix*)
13047	# This is c89, which is MS Visual C++ (no shared libs)
13048	# Anyone wants to do a port?
13049	;;
13050      irix5* | irix6* | nonstopux*)
13051	case $cc_basename in
13052	  CC*)
13053	    lt_prog_compiler_wl_CXX='-Wl,'
13054	    lt_prog_compiler_static_CXX='-non_shared'
13055	    # CC pic flag -KPIC is the default.
13056	    ;;
13057	  *)
13058	    ;;
13059	esac
13060	;;
13061      linux* | k*bsd*-gnu)
13062	case $cc_basename in
13063	  KCC*)
13064	    # KAI C++ Compiler
13065	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13066	    lt_prog_compiler_pic_CXX='-fPIC'
13067	    ;;
13068	  icpc* | ecpc*)
13069	    # Intel C++
13070	    lt_prog_compiler_wl_CXX='-Wl,'
13071	    lt_prog_compiler_pic_CXX='-KPIC'
13072	    lt_prog_compiler_static_CXX='-static'
13073	    ;;
13074	  pgCC*)
13075	    # Portland Group C++ compiler.
13076	    lt_prog_compiler_wl_CXX='-Wl,'
13077	    lt_prog_compiler_pic_CXX='-fpic'
13078	    lt_prog_compiler_static_CXX='-Bstatic'
13079	    ;;
13080	  cxx*)
13081	    # Compaq C++
13082	    # Make sure the PIC flag is empty.  It appears that all Alpha
13083	    # Linux and Compaq Tru64 Unix objects are PIC.
13084	    lt_prog_compiler_pic_CXX=
13085	    lt_prog_compiler_static_CXX='-non_shared'
13086	    ;;
13087	  *)
13088	    case `$CC -V 2>&1 | sed 5q` in
13089	    *Sun\ C*)
13090	      # Sun C++ 5.9
13091	      lt_prog_compiler_pic_CXX='-KPIC'
13092	      lt_prog_compiler_static_CXX='-Bstatic'
13093	      lt_prog_compiler_wl_CXX='-Qoption ld '
13094	      ;;
13095	    esac
13096	    ;;
13097	esac
13098	;;
13099      lynxos*)
13100	;;
13101      m88k*)
13102	;;
13103      mvs*)
13104	case $cc_basename in
13105	  cxx*)
13106	    lt_prog_compiler_pic_CXX='-W c,exportall'
13107	    ;;
13108	  *)
13109	    ;;
13110	esac
13111	;;
13112      netbsd*)
13113	;;
13114      osf3* | osf4* | osf5*)
13115	case $cc_basename in
13116	  KCC*)
13117	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13118	    ;;
13119	  RCC*)
13120	    # Rational C++ 2.4.1
13121	    lt_prog_compiler_pic_CXX='-pic'
13122	    ;;
13123	  cxx*)
13124	    # Digital/Compaq C++
13125	    lt_prog_compiler_wl_CXX='-Wl,'
13126	    # Make sure the PIC flag is empty.  It appears that all Alpha
13127	    # Linux and Compaq Tru64 Unix objects are PIC.
13128	    lt_prog_compiler_pic_CXX=
13129	    lt_prog_compiler_static_CXX='-non_shared'
13130	    ;;
13131	  *)
13132	    ;;
13133	esac
13134	;;
13135      psos*)
13136	;;
13137      solaris*)
13138	case $cc_basename in
13139	  CC*)
13140	    # Sun C++ 4.2, 5.x and Centerline C++
13141	    lt_prog_compiler_pic_CXX='-KPIC'
13142	    lt_prog_compiler_static_CXX='-Bstatic'
13143	    lt_prog_compiler_wl_CXX='-Qoption ld '
13144	    ;;
13145	  gcx*)
13146	    # Green Hills C++ Compiler
13147	    lt_prog_compiler_pic_CXX='-PIC'
13148	    ;;
13149	  *)
13150	    ;;
13151	esac
13152	;;
13153      sunos4*)
13154	case $cc_basename in
13155	  CC*)
13156	    # Sun C++ 4.x
13157	    lt_prog_compiler_pic_CXX='-pic'
13158	    lt_prog_compiler_static_CXX='-Bstatic'
13159	    ;;
13160	  lcc*)
13161	    # Lucid
13162	    lt_prog_compiler_pic_CXX='-pic'
13163	    ;;
13164	  *)
13165	    ;;
13166	esac
13167	;;
13168      tandem*)
13169	case $cc_basename in
13170	  NCC*)
13171	    # NonStop-UX NCC 3.20
13172	    lt_prog_compiler_pic_CXX='-KPIC'
13173	    ;;
13174	  *)
13175	    ;;
13176	esac
13177	;;
13178      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13179	case $cc_basename in
13180	  CC*)
13181	    lt_prog_compiler_wl_CXX='-Wl,'
13182	    lt_prog_compiler_pic_CXX='-KPIC'
13183	    lt_prog_compiler_static_CXX='-Bstatic'
13184	    ;;
13185	esac
13186	;;
13187      vxworks*)
13188	;;
13189      *)
13190	lt_prog_compiler_can_build_shared_CXX=no
13191	;;
13192    esac
13193  fi
13194
13195{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13196echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13197
13198#
13199# Check to make sure the PIC flag actually works.
13200#
13201if test -n "$lt_prog_compiler_pic_CXX"; then
13202
13203{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13204echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13205if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13206  echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208  lt_prog_compiler_pic_works_CXX=no
13209  ac_outfile=conftest.$ac_objext
13210   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13211   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13212   # Insert the option either (1) after the last *FLAGS variable, or
13213   # (2) before a word containing "conftest.", or (3) at the end.
13214   # Note that $ac_compile itself does not contain backslashes and begins
13215   # with a dollar sign (not a hyphen), so the echo should work correctly.
13216   # The option is referenced via a variable to avoid confusing sed.
13217   lt_compile=`echo "$ac_compile" | $SED \
13218   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13219   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13220   -e 's:$: $lt_compiler_flag:'`
13221   (eval echo "\"\$as_me:13221: $lt_compile\"" >&5)
13222   (eval "$lt_compile" 2>conftest.err)
13223   ac_status=$?
13224   cat conftest.err >&5
13225   echo "$as_me:13225: \$? = $ac_status" >&5
13226   if (exit $ac_status) && test -s "$ac_outfile"; then
13227     # The compiler can only warn and ignore the option if not recognized
13228     # So say no if there are warnings other than the usual output.
13229     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13230     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13231     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13232       lt_prog_compiler_pic_works_CXX=yes
13233     fi
13234   fi
13235   $rm conftest*
13236
13237fi
13238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13239echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13240
13241if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13242    case $lt_prog_compiler_pic_CXX in
13243     "" | " "*) ;;
13244     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13245     esac
13246else
13247    lt_prog_compiler_pic_CXX=
13248     lt_prog_compiler_can_build_shared_CXX=no
13249fi
13250
13251fi
13252case $host_os in
13253  # For platforms which do not support PIC, -DPIC is meaningless:
13254  *djgpp*)
13255    lt_prog_compiler_pic_CXX=
13256    ;;
13257  *)
13258    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13259    ;;
13260esac
13261
13262#
13263# Check to make sure the static flag actually works.
13264#
13265wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13266{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13267echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13268if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13269  echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271  lt_prog_compiler_static_works_CXX=no
13272   save_LDFLAGS="$LDFLAGS"
13273   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13274   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13275   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13276     # The linker can only warn and ignore the option if not recognized
13277     # So say no if there are warnings
13278     if test -s conftest.err; then
13279       # Append any errors to the config.log.
13280       cat conftest.err 1>&5
13281       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13282       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13283       if diff conftest.exp conftest.er2 >/dev/null; then
13284         lt_prog_compiler_static_works_CXX=yes
13285       fi
13286     else
13287       lt_prog_compiler_static_works_CXX=yes
13288     fi
13289   fi
13290   $rm conftest*
13291   LDFLAGS="$save_LDFLAGS"
13292
13293fi
13294{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13295echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13296
13297if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13298    :
13299else
13300    lt_prog_compiler_static_CXX=
13301fi
13302
13303
13304{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13305echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13306if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13307  echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309  lt_cv_prog_compiler_c_o_CXX=no
13310   $rm -r conftest 2>/dev/null
13311   mkdir conftest
13312   cd conftest
13313   mkdir out
13314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13315
13316   lt_compiler_flag="-o out/conftest2.$ac_objext"
13317   # Insert the option either (1) after the last *FLAGS variable, or
13318   # (2) before a word containing "conftest.", or (3) at the end.
13319   # Note that $ac_compile itself does not contain backslashes and begins
13320   # with a dollar sign (not a hyphen), so the echo should work correctly.
13321   lt_compile=`echo "$ac_compile" | $SED \
13322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13324   -e 's:$: $lt_compiler_flag:'`
13325   (eval echo "\"\$as_me:13325: $lt_compile\"" >&5)
13326   (eval "$lt_compile" 2>out/conftest.err)
13327   ac_status=$?
13328   cat out/conftest.err >&5
13329   echo "$as_me:13329: \$? = $ac_status" >&5
13330   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13331   then
13332     # The compiler can only warn and ignore the option if not recognized
13333     # So say no if there are warnings
13334     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13335     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13336     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13337       lt_cv_prog_compiler_c_o_CXX=yes
13338     fi
13339   fi
13340   chmod u+w . 2>&5
13341   $rm conftest*
13342   # SGI C++ compiler will create directory out/ii_files/ for
13343   # template instantiation
13344   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13345   $rm out/* && rmdir out
13346   cd ..
13347   rmdir conftest
13348   $rm conftest*
13349
13350fi
13351{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13352echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13353
13354
13355hard_links="nottested"
13356if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13357  # do not overwrite the value of need_locks provided by the user
13358  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13359echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13360  hard_links=yes
13361  $rm conftest*
13362  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13363  touch conftest.a
13364  ln conftest.a conftest.b 2>&5 || hard_links=no
13365  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13366  { echo "$as_me:$LINENO: result: $hard_links" >&5
13367echo "${ECHO_T}$hard_links" >&6; }
13368  if test "$hard_links" = no; then
13369    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13370echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13371    need_locks=warn
13372  fi
13373else
13374  need_locks=no
13375fi
13376
13377{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13378echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13379
13380  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13381  case $host_os in
13382  aix4* | aix5*)
13383    # If we're using GNU nm, then we don't want the "-C" option.
13384    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13385    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13386      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'
13387    else
13388      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'
13389    fi
13390    ;;
13391  pw32*)
13392    export_symbols_cmds_CXX="$ltdll_cmds"
13393  ;;
13394  cygwin* | mingw*)
13395    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'
13396  ;;
13397  *)
13398    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13399  ;;
13400  esac
13401
13402{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13403echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13404test "$ld_shlibs_CXX" = no && can_build_shared=no
13405
13406#
13407# Do we need to explicitly link libc?
13408#
13409case "x$archive_cmds_need_lc_CXX" in
13410x|xyes)
13411  # Assume -lc should be added
13412  archive_cmds_need_lc_CXX=yes
13413
13414  if test "$enable_shared" = yes && test "$GCC" = yes; then
13415    case $archive_cmds_CXX in
13416    *'~'*)
13417      # FIXME: we may have to deal with multi-command sequences.
13418      ;;
13419    '$CC '*)
13420      # Test whether the compiler implicitly links with -lc since on some
13421      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13422      # to ld, don't add -lc before -lgcc.
13423      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13424echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13425      $rm conftest*
13426      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
13428      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429  (eval $ac_compile) 2>&5
13430  ac_status=$?
13431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432  (exit $ac_status); } 2>conftest.err; then
13433        soname=conftest
13434        lib=conftest
13435        libobjs=conftest.$ac_objext
13436        deplibs=
13437        wl=$lt_prog_compiler_wl_CXX
13438	pic_flag=$lt_prog_compiler_pic_CXX
13439        compiler_flags=-v
13440        linker_flags=-v
13441        verstring=
13442        output_objdir=.
13443        libname=conftest
13444        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13445        allow_undefined_flag_CXX=
13446        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13447  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13448  ac_status=$?
13449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450  (exit $ac_status); }
13451        then
13452	  archive_cmds_need_lc_CXX=no
13453        else
13454	  archive_cmds_need_lc_CXX=yes
13455        fi
13456        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13457      else
13458        cat conftest.err 1>&5
13459      fi
13460      $rm conftest*
13461      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13462echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13463      ;;
13464    esac
13465  fi
13466  ;;
13467esac
13468
13469{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13470echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13471library_names_spec=
13472libname_spec='lib$name'
13473soname_spec=
13474shrext_cmds=".so"
13475postinstall_cmds=
13476postuninstall_cmds=
13477finish_cmds=
13478finish_eval=
13479shlibpath_var=
13480shlibpath_overrides_runpath=unknown
13481version_type=none
13482dynamic_linker="$host_os ld.so"
13483sys_lib_dlsearch_path_spec="/lib /usr/lib"
13484
13485need_lib_prefix=unknown
13486hardcode_into_libs=no
13487
13488# when you set need_version to no, make sure it does not cause -set_version
13489# flags to be left without arguments
13490need_version=unknown
13491
13492case $host_os in
13493aix3*)
13494  version_type=linux
13495  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13496  shlibpath_var=LIBPATH
13497
13498  # AIX 3 has no versioning support, so we append a major version to the name.
13499  soname_spec='${libname}${release}${shared_ext}$major'
13500  ;;
13501
13502aix4* | aix5*)
13503  version_type=linux
13504  need_lib_prefix=no
13505  need_version=no
13506  hardcode_into_libs=yes
13507  if test "$host_cpu" = ia64; then
13508    # AIX 5 supports IA64
13509    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13510    shlibpath_var=LD_LIBRARY_PATH
13511  else
13512    # With GCC up to 2.95.x, collect2 would create an import file
13513    # for dependence libraries.  The import file would start with
13514    # the line `#! .'.  This would cause the generated library to
13515    # depend on `.', always an invalid library.  This was fixed in
13516    # development snapshots of GCC prior to 3.0.
13517    case $host_os in
13518      aix4 | aix4.[01] | aix4.[01].*)
13519      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13520	   echo ' yes '
13521	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13522	:
13523      else
13524	can_build_shared=no
13525      fi
13526      ;;
13527    esac
13528    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13529    # soname into executable. Probably we can add versioning support to
13530    # collect2, so additional links can be useful in future.
13531    if test "$aix_use_runtimelinking" = yes; then
13532      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13533      # instead of lib<name>.a to let people know that these are not
13534      # typical AIX shared libraries.
13535      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536    else
13537      # We preserve .a as extension for shared libraries through AIX4.2
13538      # and later when we are not doing run time linking.
13539      library_names_spec='${libname}${release}.a $libname.a'
13540      soname_spec='${libname}${release}${shared_ext}$major'
13541    fi
13542    shlibpath_var=LIBPATH
13543  fi
13544  ;;
13545
13546amigaos*)
13547  library_names_spec='$libname.ixlibrary $libname.a'
13548  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13549  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'
13550  ;;
13551
13552beos*)
13553  library_names_spec='${libname}${shared_ext}'
13554  dynamic_linker="$host_os ld.so"
13555  shlibpath_var=LIBRARY_PATH
13556  ;;
13557
13558bsdi[45]*)
13559  version_type=linux
13560  need_version=no
13561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562  soname_spec='${libname}${release}${shared_ext}$major'
13563  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13564  shlibpath_var=LD_LIBRARY_PATH
13565  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13566  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13567  # the default ld.so.conf also contains /usr/contrib/lib and
13568  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13569  # libtool to hard-code these into programs
13570  ;;
13571
13572cygwin* | mingw* | pw32*)
13573  version_type=windows
13574  shrext_cmds=".dll"
13575  need_version=no
13576  need_lib_prefix=no
13577
13578  case $GCC,$host_os in
13579  yes,cygwin* | yes,mingw* | yes,pw32*)
13580    library_names_spec='$libname.dll.a'
13581    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13582    postinstall_cmds='base_file=`basename \${file}`~
13583      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13584      dldir=$destdir/`dirname \$dlpath`~
13585      test -d \$dldir || mkdir -p \$dldir~
13586      $install_prog $dir/$dlname \$dldir/$dlname~
13587      chmod a+x \$dldir/$dlname'
13588    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13589      dlpath=$dir/\$dldll~
13590       $rm \$dlpath'
13591    shlibpath_overrides_runpath=yes
13592
13593    case $host_os in
13594    cygwin*)
13595      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13596      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13597      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13598      ;;
13599    mingw*)
13600      # MinGW DLLs use traditional 'lib' prefix
13601      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13602      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13603      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13604        # It is most probably a Windows format PATH printed by
13605        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13606        # path with ; separators, and with drive letters. We can handle the
13607        # drive letters (cygwin fileutils understands them), so leave them,
13608        # especially as we might pass files found there to a mingw objdump,
13609        # which wouldn't understand a cygwinified path. Ahh.
13610        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13611      else
13612        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13613      fi
13614      ;;
13615    pw32*)
13616      # pw32 DLLs use 'pw' prefix rather than 'lib'
13617      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13618      ;;
13619    esac
13620    ;;
13621
13622  *)
13623    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13624    ;;
13625  esac
13626  dynamic_linker='Win32 ld.exe'
13627  # FIXME: first we should search . and the directory the executable is in
13628  shlibpath_var=PATH
13629  ;;
13630
13631darwin* | rhapsody*)
13632  dynamic_linker="$host_os dyld"
13633  version_type=darwin
13634  need_lib_prefix=no
13635  need_version=no
13636  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13637  soname_spec='${libname}${release}${major}$shared_ext'
13638  shlibpath_overrides_runpath=yes
13639  shlibpath_var=DYLD_LIBRARY_PATH
13640  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13641
13642  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13643  ;;
13644
13645dgux*)
13646  version_type=linux
13647  need_lib_prefix=no
13648  need_version=no
13649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13650  soname_spec='${libname}${release}${shared_ext}$major'
13651  shlibpath_var=LD_LIBRARY_PATH
13652  ;;
13653
13654freebsd1*)
13655  dynamic_linker=no
13656  ;;
13657
13658freebsd* | dragonfly*)
13659  # DragonFly does not have aout.  When/if they implement a new
13660  # versioning mechanism, adjust this.
13661  if test -x /usr/bin/objformat; then
13662    objformat=`/usr/bin/objformat`
13663  else
13664    case $host_os in
13665    freebsd[123]*) objformat=aout ;;
13666    *) objformat=elf ;;
13667    esac
13668  fi
13669  version_type=freebsd-$objformat
13670  case $version_type in
13671    freebsd-elf*)
13672      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13673      need_version=no
13674      need_lib_prefix=no
13675      ;;
13676    freebsd-*)
13677      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13678      need_version=yes
13679      ;;
13680  esac
13681  shlibpath_var=LD_LIBRARY_PATH
13682  case $host_os in
13683  freebsd2*)
13684    shlibpath_overrides_runpath=yes
13685    ;;
13686  freebsd3.[01]* | freebsdelf3.[01]*)
13687    shlibpath_overrides_runpath=yes
13688    hardcode_into_libs=yes
13689    ;;
13690  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13691  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13692    shlibpath_overrides_runpath=no
13693    hardcode_into_libs=yes
13694    ;;
13695  *) # from 4.6 on, and DragonFly
13696    shlibpath_overrides_runpath=yes
13697    hardcode_into_libs=yes
13698    ;;
13699  esac
13700  ;;
13701
13702gnu*)
13703  version_type=linux
13704  need_lib_prefix=no
13705  need_version=no
13706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13707  soname_spec='${libname}${release}${shared_ext}$major'
13708  shlibpath_var=LD_LIBRARY_PATH
13709  hardcode_into_libs=yes
13710  ;;
13711
13712hpux9* | hpux10* | hpux11*)
13713  # Give a soname corresponding to the major version so that dld.sl refuses to
13714  # link against other versions.
13715  version_type=sunos
13716  need_lib_prefix=no
13717  need_version=no
13718  case $host_cpu in
13719  ia64*)
13720    shrext_cmds='.so'
13721    hardcode_into_libs=yes
13722    dynamic_linker="$host_os dld.so"
13723    shlibpath_var=LD_LIBRARY_PATH
13724    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726    soname_spec='${libname}${release}${shared_ext}$major'
13727    if test "X$HPUX_IA64_MODE" = X32; then
13728      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13729    else
13730      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13731    fi
13732    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13733    ;;
13734   hppa*64*)
13735     shrext_cmds='.sl'
13736     hardcode_into_libs=yes
13737     dynamic_linker="$host_os dld.sl"
13738     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13739     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741     soname_spec='${libname}${release}${shared_ext}$major'
13742     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13743     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13744     ;;
13745   *)
13746    shrext_cmds='.sl'
13747    dynamic_linker="$host_os dld.sl"
13748    shlibpath_var=SHLIB_PATH
13749    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13750    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13751    soname_spec='${libname}${release}${shared_ext}$major'
13752    ;;
13753  esac
13754  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13755  postinstall_cmds='chmod 555 $lib'
13756  ;;
13757
13758interix[3-9]*)
13759  version_type=linux
13760  need_lib_prefix=no
13761  need_version=no
13762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13763  soname_spec='${libname}${release}${shared_ext}$major'
13764  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13765  shlibpath_var=LD_LIBRARY_PATH
13766  shlibpath_overrides_runpath=no
13767  hardcode_into_libs=yes
13768  ;;
13769
13770irix5* | irix6* | nonstopux*)
13771  case $host_os in
13772    nonstopux*) version_type=nonstopux ;;
13773    *)
13774	if test "$lt_cv_prog_gnu_ld" = yes; then
13775		version_type=linux
13776	else
13777		version_type=irix
13778	fi ;;
13779  esac
13780  need_lib_prefix=no
13781  need_version=no
13782  soname_spec='${libname}${release}${shared_ext}$major'
13783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13784  case $host_os in
13785  irix5* | nonstopux*)
13786    libsuff= shlibsuff=
13787    ;;
13788  *)
13789    case $LD in # libtool.m4 will add one of these switches to LD
13790    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13791      libsuff= shlibsuff= libmagic=32-bit;;
13792    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13793      libsuff=32 shlibsuff=N32 libmagic=N32;;
13794    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13795      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13796    *) libsuff= shlibsuff= libmagic=never-match;;
13797    esac
13798    ;;
13799  esac
13800  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13801  shlibpath_overrides_runpath=no
13802  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13803  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13804  hardcode_into_libs=yes
13805  ;;
13806
13807# No shared lib support for Linux oldld, aout, or coff.
13808linux*oldld* | linux*aout* | linux*coff*)
13809  dynamic_linker=no
13810  ;;
13811
13812# This must be Linux ELF.
13813linux* | k*bsd*-gnu)
13814  version_type=linux
13815  need_lib_prefix=no
13816  need_version=no
13817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818  soname_spec='${libname}${release}${shared_ext}$major'
13819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13820  shlibpath_var=LD_LIBRARY_PATH
13821  shlibpath_overrides_runpath=no
13822  # This implies no fast_install, which is unacceptable.
13823  # Some rework will be needed to allow for fast_install
13824  # before this can be enabled.
13825  hardcode_into_libs=yes
13826  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13827  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13828
13829  # Append ld.so.conf contents to the search path
13830  if test -f /etc/ld.so.conf; then
13831    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13832    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13833  fi
13834
13835  # We used to test for /lib/ld.so.1 and disable shared libraries on
13836  # powerpc, because MkLinux only supported shared libraries with the
13837  # GNU dynamic linker.  Since this was broken with cross compilers,
13838  # most powerpc-linux boxes support dynamic linking these days and
13839  # people can always --disable-shared, the test was removed, and we
13840  # assume the GNU/Linux dynamic linker is in use.
13841  dynamic_linker='GNU/Linux ld.so'
13842  ;;
13843
13844netbsd*)
13845  version_type=sunos
13846  need_lib_prefix=no
13847  need_version=no
13848  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13850    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13851    dynamic_linker='NetBSD (a.out) ld.so'
13852  else
13853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13854    soname_spec='${libname}${release}${shared_ext}$major'
13855    dynamic_linker='NetBSD ld.elf_so'
13856  fi
13857  shlibpath_var=LD_LIBRARY_PATH
13858  shlibpath_overrides_runpath=yes
13859  hardcode_into_libs=yes
13860  ;;
13861
13862newsos6)
13863  version_type=linux
13864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13865  shlibpath_var=LD_LIBRARY_PATH
13866  shlibpath_overrides_runpath=yes
13867  ;;
13868
13869nto-qnx*)
13870  version_type=linux
13871  need_lib_prefix=no
13872  need_version=no
13873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874  soname_spec='${libname}${release}${shared_ext}$major'
13875  shlibpath_var=LD_LIBRARY_PATH
13876  shlibpath_overrides_runpath=yes
13877  ;;
13878
13879openbsd*)
13880  version_type=sunos
13881  sys_lib_dlsearch_path_spec="/usr/lib"
13882  need_lib_prefix=no
13883  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13884  case $host_os in
13885    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13886    *)                         need_version=no  ;;
13887  esac
13888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13890  shlibpath_var=LD_LIBRARY_PATH
13891  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13892    case $host_os in
13893      openbsd2.[89] | openbsd2.[89].*)
13894	shlibpath_overrides_runpath=no
13895	;;
13896      *)
13897	shlibpath_overrides_runpath=yes
13898	;;
13899      esac
13900  else
13901    shlibpath_overrides_runpath=yes
13902  fi
13903  ;;
13904
13905os2*)
13906  libname_spec='$name'
13907  shrext_cmds=".dll"
13908  need_lib_prefix=no
13909  library_names_spec='$libname${shared_ext} $libname.a'
13910  dynamic_linker='OS/2 ld.exe'
13911  shlibpath_var=LIBPATH
13912  ;;
13913
13914osf3* | osf4* | osf5*)
13915  version_type=osf
13916  need_lib_prefix=no
13917  need_version=no
13918  soname_spec='${libname}${release}${shared_ext}$major'
13919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920  shlibpath_var=LD_LIBRARY_PATH
13921  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13922  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13923  ;;
13924
13925rdos*)
13926  dynamic_linker=no
13927  ;;
13928
13929solaris*)
13930  version_type=linux
13931  need_lib_prefix=no
13932  need_version=no
13933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934  soname_spec='${libname}${release}${shared_ext}$major'
13935  shlibpath_var=LD_LIBRARY_PATH
13936  shlibpath_overrides_runpath=yes
13937  hardcode_into_libs=yes
13938  # ldd complains unless libraries are executable
13939  postinstall_cmds='chmod +x $lib'
13940  ;;
13941
13942sunos4*)
13943  version_type=sunos
13944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13945  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13946  shlibpath_var=LD_LIBRARY_PATH
13947  shlibpath_overrides_runpath=yes
13948  if test "$with_gnu_ld" = yes; then
13949    need_lib_prefix=no
13950  fi
13951  need_version=yes
13952  ;;
13953
13954sysv4 | sysv4.3*)
13955  version_type=linux
13956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957  soname_spec='${libname}${release}${shared_ext}$major'
13958  shlibpath_var=LD_LIBRARY_PATH
13959  case $host_vendor in
13960    sni)
13961      shlibpath_overrides_runpath=no
13962      need_lib_prefix=no
13963      export_dynamic_flag_spec='${wl}-Blargedynsym'
13964      runpath_var=LD_RUN_PATH
13965      ;;
13966    siemens)
13967      need_lib_prefix=no
13968      ;;
13969    motorola)
13970      need_lib_prefix=no
13971      need_version=no
13972      shlibpath_overrides_runpath=no
13973      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13974      ;;
13975  esac
13976  ;;
13977
13978sysv4*MP*)
13979  if test -d /usr/nec ;then
13980    version_type=linux
13981    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13982    soname_spec='$libname${shared_ext}.$major'
13983    shlibpath_var=LD_LIBRARY_PATH
13984  fi
13985  ;;
13986
13987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13988  version_type=freebsd-elf
13989  need_lib_prefix=no
13990  need_version=no
13991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13992  soname_spec='${libname}${release}${shared_ext}$major'
13993  shlibpath_var=LD_LIBRARY_PATH
13994  hardcode_into_libs=yes
13995  if test "$with_gnu_ld" = yes; then
13996    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13997    shlibpath_overrides_runpath=no
13998  else
13999    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14000    shlibpath_overrides_runpath=yes
14001    case $host_os in
14002      sco3.2v5*)
14003        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14004	;;
14005    esac
14006  fi
14007  sys_lib_dlsearch_path_spec='/usr/lib'
14008  ;;
14009
14010uts4*)
14011  version_type=linux
14012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013  soname_spec='${libname}${release}${shared_ext}$major'
14014  shlibpath_var=LD_LIBRARY_PATH
14015  ;;
14016
14017*)
14018  dynamic_linker=no
14019  ;;
14020esac
14021{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14022echo "${ECHO_T}$dynamic_linker" >&6; }
14023test "$dynamic_linker" = no && can_build_shared=no
14024
14025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14026if test "$GCC" = yes; then
14027  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14028fi
14029
14030{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14031echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14032hardcode_action_CXX=
14033if test -n "$hardcode_libdir_flag_spec_CXX" || \
14034   test -n "$runpath_var_CXX" || \
14035   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14036
14037  # We can hardcode non-existant directories.
14038  if test "$hardcode_direct_CXX" != no &&
14039     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14040     # have to relink, otherwise we might link with an installed library
14041     # when we should be linking with a yet-to-be-installed one
14042     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14043     test "$hardcode_minus_L_CXX" != no; then
14044    # Linking always hardcodes the temporary library directory.
14045    hardcode_action_CXX=relink
14046  else
14047    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14048    hardcode_action_CXX=immediate
14049  fi
14050else
14051  # We cannot hardcode anything, or else we can only hardcode existing
14052  # directories.
14053  hardcode_action_CXX=unsupported
14054fi
14055{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14056echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14057
14058if test "$hardcode_action_CXX" = relink; then
14059  # Fast installation is not supported
14060  enable_fast_install=no
14061elif test "$shlibpath_overrides_runpath" = yes ||
14062     test "$enable_shared" = no; then
14063  # Fast installation is not necessary
14064  enable_fast_install=needless
14065fi
14066
14067
14068# The else clause should only fire when bootstrapping the
14069# libtool distribution, otherwise you forgot to ship ltmain.sh
14070# with your package, and you will get complaints that there are
14071# no rules to generate ltmain.sh.
14072if test -f "$ltmain"; then
14073  # See if we are running on zsh, and set the options which allow our commands through
14074  # without removal of \ escapes.
14075  if test -n "${ZSH_VERSION+set}" ; then
14076    setopt NO_GLOB_SUBST
14077  fi
14078  # Now quote all the things that may contain metacharacters while being
14079  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14080  # variables and quote the copies for generation of the libtool script.
14081  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14082    SED SHELL STRIP \
14083    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14084    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14085    deplibs_check_method reload_flag reload_cmds need_locks \
14086    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14087    lt_cv_sys_global_symbol_to_c_name_address \
14088    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14089    old_postinstall_cmds old_postuninstall_cmds \
14090    compiler_CXX \
14091    CC_CXX \
14092    LD_CXX \
14093    lt_prog_compiler_wl_CXX \
14094    lt_prog_compiler_pic_CXX \
14095    lt_prog_compiler_static_CXX \
14096    lt_prog_compiler_no_builtin_flag_CXX \
14097    export_dynamic_flag_spec_CXX \
14098    thread_safe_flag_spec_CXX \
14099    whole_archive_flag_spec_CXX \
14100    enable_shared_with_static_runtimes_CXX \
14101    old_archive_cmds_CXX \
14102    old_archive_from_new_cmds_CXX \
14103    predep_objects_CXX \
14104    postdep_objects_CXX \
14105    predeps_CXX \
14106    postdeps_CXX \
14107    compiler_lib_search_path_CXX \
14108    archive_cmds_CXX \
14109    archive_expsym_cmds_CXX \
14110    postinstall_cmds_CXX \
14111    postuninstall_cmds_CXX \
14112    old_archive_from_expsyms_cmds_CXX \
14113    allow_undefined_flag_CXX \
14114    no_undefined_flag_CXX \
14115    export_symbols_cmds_CXX \
14116    hardcode_libdir_flag_spec_CXX \
14117    hardcode_libdir_flag_spec_ld_CXX \
14118    hardcode_libdir_separator_CXX \
14119    hardcode_automatic_CXX \
14120    module_cmds_CXX \
14121    module_expsym_cmds_CXX \
14122    lt_cv_prog_compiler_c_o_CXX \
14123    fix_srcfile_path_CXX \
14124    exclude_expsyms_CXX \
14125    include_expsyms_CXX; do
14126
14127    case $var in
14128    old_archive_cmds_CXX | \
14129    old_archive_from_new_cmds_CXX | \
14130    archive_cmds_CXX | \
14131    archive_expsym_cmds_CXX | \
14132    module_cmds_CXX | \
14133    module_expsym_cmds_CXX | \
14134    old_archive_from_expsyms_cmds_CXX | \
14135    export_symbols_cmds_CXX | \
14136    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14137    postinstall_cmds | postuninstall_cmds | \
14138    old_postinstall_cmds | old_postuninstall_cmds | \
14139    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14140      # Double-quote double-evaled strings.
14141      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14142      ;;
14143    *)
14144      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14145      ;;
14146    esac
14147  done
14148
14149  case $lt_echo in
14150  *'\$0 --fallback-echo"')
14151    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14152    ;;
14153  esac
14154
14155cfgfile="$ofile"
14156
14157  cat <<__EOF__ >> "$cfgfile"
14158# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14159
14160# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14161
14162# Shell to use when invoking shell scripts.
14163SHELL=$lt_SHELL
14164
14165# Whether or not to build shared libraries.
14166build_libtool_libs=$enable_shared
14167
14168# Whether or not to build static libraries.
14169build_old_libs=$enable_static
14170
14171# Whether or not to add -lc for building shared libraries.
14172build_libtool_need_lc=$archive_cmds_need_lc_CXX
14173
14174# Whether or not to disallow shared libs when runtime libs are static
14175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14176
14177# Whether or not to optimize for fast installation.
14178fast_install=$enable_fast_install
14179
14180# The host system.
14181host_alias=$host_alias
14182host=$host
14183host_os=$host_os
14184
14185# The build system.
14186build_alias=$build_alias
14187build=$build
14188build_os=$build_os
14189
14190# An echo program that does not interpret backslashes.
14191echo=$lt_echo
14192
14193# The archiver.
14194AR=$lt_AR
14195AR_FLAGS=$lt_AR_FLAGS
14196
14197# A C compiler.
14198LTCC=$lt_LTCC
14199
14200# LTCC compiler flags.
14201LTCFLAGS=$lt_LTCFLAGS
14202
14203# A language-specific compiler.
14204CC=$lt_compiler_CXX
14205
14206# Is the compiler the GNU C compiler?
14207with_gcc=$GCC_CXX
14208
14209# An ERE matcher.
14210EGREP=$lt_EGREP
14211
14212# The linker used to build libraries.
14213LD=$lt_LD_CXX
14214
14215# Whether we need hard or soft links.
14216LN_S=$lt_LN_S
14217
14218# A BSD-compatible nm program.
14219NM=$lt_NM
14220
14221# A symbol stripping program
14222STRIP=$lt_STRIP
14223
14224# Used to examine libraries when file_magic_cmd begins "file"
14225MAGIC_CMD=$MAGIC_CMD
14226
14227# Used on cygwin: DLL creation program.
14228DLLTOOL="$DLLTOOL"
14229
14230# Used on cygwin: object dumper.
14231OBJDUMP="$OBJDUMP"
14232
14233# Used on cygwin: assembler.
14234AS="$AS"
14235
14236# The name of the directory that contains temporary libtool files.
14237objdir=$objdir
14238
14239# How to create reloadable object files.
14240reload_flag=$lt_reload_flag
14241reload_cmds=$lt_reload_cmds
14242
14243# How to pass a linker flag through the compiler.
14244wl=$lt_lt_prog_compiler_wl_CXX
14245
14246# Object file suffix (normally "o").
14247objext="$ac_objext"
14248
14249# Old archive suffix (normally "a").
14250libext="$libext"
14251
14252# Shared library suffix (normally ".so").
14253shrext_cmds='$shrext_cmds'
14254
14255# Executable file suffix (normally "").
14256exeext="$exeext"
14257
14258# Additional compiler flags for building library objects.
14259pic_flag=$lt_lt_prog_compiler_pic_CXX
14260pic_mode=$pic_mode
14261
14262# What is the maximum length of a command?
14263max_cmd_len=$lt_cv_sys_max_cmd_len
14264
14265# Does compiler simultaneously support -c and -o options?
14266compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14267
14268# Must we lock files when doing compilation?
14269need_locks=$lt_need_locks
14270
14271# Do we need the lib prefix for modules?
14272need_lib_prefix=$need_lib_prefix
14273
14274# Do we need a version for libraries?
14275need_version=$need_version
14276
14277# Whether dlopen is supported.
14278dlopen_support=$enable_dlopen
14279
14280# Whether dlopen of programs is supported.
14281dlopen_self=$enable_dlopen_self
14282
14283# Whether dlopen of statically linked programs is supported.
14284dlopen_self_static=$enable_dlopen_self_static
14285
14286# Compiler flag to prevent dynamic linking.
14287link_static_flag=$lt_lt_prog_compiler_static_CXX
14288
14289# Compiler flag to turn off builtin functions.
14290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14291
14292# Compiler flag to allow reflexive dlopens.
14293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14294
14295# Compiler flag to generate shared objects directly from archives.
14296whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14297
14298# Compiler flag to generate thread-safe objects.
14299thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14300
14301# Library versioning type.
14302version_type=$version_type
14303
14304# Format of library name prefix.
14305libname_spec=$lt_libname_spec
14306
14307# List of archive names.  First name is the real one, the rest are links.
14308# The last name is the one that the linker finds with -lNAME.
14309library_names_spec=$lt_library_names_spec
14310
14311# The coded name of the library, if different from the real name.
14312soname_spec=$lt_soname_spec
14313
14314# Commands used to build and install an old-style archive.
14315RANLIB=$lt_RANLIB
14316old_archive_cmds=$lt_old_archive_cmds_CXX
14317old_postinstall_cmds=$lt_old_postinstall_cmds
14318old_postuninstall_cmds=$lt_old_postuninstall_cmds
14319
14320# Create an old-style archive from a shared archive.
14321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14322
14323# Create a temporary old-style archive to link instead of a shared archive.
14324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14325
14326# Commands used to build and install a shared archive.
14327archive_cmds=$lt_archive_cmds_CXX
14328archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14329postinstall_cmds=$lt_postinstall_cmds
14330postuninstall_cmds=$lt_postuninstall_cmds
14331
14332# Commands used to build a loadable module (assumed same as above if empty)
14333module_cmds=$lt_module_cmds_CXX
14334module_expsym_cmds=$lt_module_expsym_cmds_CXX
14335
14336# Commands to strip libraries.
14337old_striplib=$lt_old_striplib
14338striplib=$lt_striplib
14339
14340# Dependencies to place before the objects being linked to create a
14341# shared library.
14342predep_objects=$lt_predep_objects_CXX
14343
14344# Dependencies to place after the objects being linked to create a
14345# shared library.
14346postdep_objects=$lt_postdep_objects_CXX
14347
14348# Dependencies to place before the objects being linked to create a
14349# shared library.
14350predeps=$lt_predeps_CXX
14351
14352# Dependencies to place after the objects being linked to create a
14353# shared library.
14354postdeps=$lt_postdeps_CXX
14355
14356# The library search path used internally by the compiler when linking
14357# a shared library.
14358compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14359
14360# Method to check whether dependent libraries are shared objects.
14361deplibs_check_method=$lt_deplibs_check_method
14362
14363# Command to use when deplibs_check_method == file_magic.
14364file_magic_cmd=$lt_file_magic_cmd
14365
14366# Flag that allows shared libraries with undefined symbols to be built.
14367allow_undefined_flag=$lt_allow_undefined_flag_CXX
14368
14369# Flag that forces no undefined symbols.
14370no_undefined_flag=$lt_no_undefined_flag_CXX
14371
14372# Commands used to finish a libtool library installation in a directory.
14373finish_cmds=$lt_finish_cmds
14374
14375# Same as above, but a single script fragment to be evaled but not shown.
14376finish_eval=$lt_finish_eval
14377
14378# Take the output of nm and produce a listing of raw symbols and C names.
14379global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14380
14381# Transform the output of nm in a proper C declaration
14382global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14383
14384# Transform the output of nm in a C name address pair
14385global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14386
14387# This is the shared library runtime path variable.
14388runpath_var=$runpath_var
14389
14390# This is the shared library path variable.
14391shlibpath_var=$shlibpath_var
14392
14393# Is shlibpath searched before the hard-coded library search path?
14394shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14395
14396# How to hardcode a shared library path into an executable.
14397hardcode_action=$hardcode_action_CXX
14398
14399# Whether we should hardcode library paths into libraries.
14400hardcode_into_libs=$hardcode_into_libs
14401
14402# Flag to hardcode \$libdir into a binary during linking.
14403# This must work even if \$libdir does not exist.
14404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14405
14406# If ld is used when linking, flag to hardcode \$libdir into
14407# a binary during linking. This must work even if \$libdir does
14408# not exist.
14409hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14410
14411# Whether we need a single -rpath flag with a separated argument.
14412hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14413
14414# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14415# resulting binary.
14416hardcode_direct=$hardcode_direct_CXX
14417
14418# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14419# resulting binary.
14420hardcode_minus_L=$hardcode_minus_L_CXX
14421
14422# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14423# the resulting binary.
14424hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14425
14426# Set to yes if building a shared library automatically hardcodes DIR into the library
14427# and all subsequent libraries and executables linked against it.
14428hardcode_automatic=$hardcode_automatic_CXX
14429
14430# Variables whose values should be saved in libtool wrapper scripts and
14431# restored at relink time.
14432variables_saved_for_relink="$variables_saved_for_relink"
14433
14434# Whether libtool must link a program against all its dependency libraries.
14435link_all_deplibs=$link_all_deplibs_CXX
14436
14437# Compile-time system search path for libraries
14438sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14439
14440# Run-time system search path for libraries
14441sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14442
14443# Fix the shell variable \$srcfile for the compiler.
14444fix_srcfile_path=$lt_fix_srcfile_path
14445
14446# Set to yes if exported symbols are required.
14447always_export_symbols=$always_export_symbols_CXX
14448
14449# The commands to list exported symbols.
14450export_symbols_cmds=$lt_export_symbols_cmds_CXX
14451
14452# The commands to extract the exported symbol list from a shared archive.
14453extract_expsyms_cmds=$lt_extract_expsyms_cmds
14454
14455# Symbols that should not be listed in the preloaded symbols.
14456exclude_expsyms=$lt_exclude_expsyms_CXX
14457
14458# Symbols that must always be exported.
14459include_expsyms=$lt_include_expsyms_CXX
14460
14461# ### END LIBTOOL TAG CONFIG: $tagname
14462
14463__EOF__
14464
14465
14466else
14467  # If there is no Makefile yet, we rely on a make rule to execute
14468  # `config.status --recheck' to rerun these tests and create the
14469  # libtool script then.
14470  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14471  if test -f "$ltmain_in"; then
14472    test -f Makefile && make "$ltmain"
14473  fi
14474fi
14475
14476
14477ac_ext=c
14478ac_cpp='$CPP $CPPFLAGS'
14479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481ac_compiler_gnu=$ac_cv_c_compiler_gnu
14482
14483CC=$lt_save_CC
14484LDCXX=$LD
14485LD=$lt_save_LD
14486GCC=$lt_save_GCC
14487with_gnu_ldcxx=$with_gnu_ld
14488with_gnu_ld=$lt_save_with_gnu_ld
14489lt_cv_path_LDCXX=$lt_cv_path_LD
14490lt_cv_path_LD=$lt_save_path_LD
14491lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14492lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14493
14494	else
14495	  tagname=""
14496	fi
14497	;;
14498
14499      F77)
14500	if test -n "$F77" && test "X$F77" != "Xno"; then
14501
14502ac_ext=f
14503ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14504ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14506
14507
14508archive_cmds_need_lc_F77=no
14509allow_undefined_flag_F77=
14510always_export_symbols_F77=no
14511archive_expsym_cmds_F77=
14512export_dynamic_flag_spec_F77=
14513hardcode_direct_F77=no
14514hardcode_libdir_flag_spec_F77=
14515hardcode_libdir_flag_spec_ld_F77=
14516hardcode_libdir_separator_F77=
14517hardcode_minus_L_F77=no
14518hardcode_automatic_F77=no
14519module_cmds_F77=
14520module_expsym_cmds_F77=
14521link_all_deplibs_F77=unknown
14522old_archive_cmds_F77=$old_archive_cmds
14523no_undefined_flag_F77=
14524whole_archive_flag_spec_F77=
14525enable_shared_with_static_runtimes_F77=no
14526
14527# Source file extension for f77 test sources.
14528ac_ext=f
14529
14530# Object file extension for compiled f77 test sources.
14531objext=o
14532objext_F77=$objext
14533
14534# Code to be used in simple compile tests
14535lt_simple_compile_test_code="\
14536      subroutine t
14537      return
14538      end
14539"
14540
14541# Code to be used in simple link tests
14542lt_simple_link_test_code="\
14543      program t
14544      end
14545"
14546
14547# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14548
14549# If no C compiler was specified, use CC.
14550LTCC=${LTCC-"$CC"}
14551
14552# If no C compiler flags were specified, use CFLAGS.
14553LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14554
14555# Allow CC to be a program name with arguments.
14556compiler=$CC
14557
14558
14559# save warnings/boilerplate of simple test code
14560ac_outfile=conftest.$ac_objext
14561echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14563_lt_compiler_boilerplate=`cat conftest.err`
14564$rm conftest*
14565
14566ac_outfile=conftest.$ac_objext
14567echo "$lt_simple_link_test_code" >conftest.$ac_ext
14568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14569_lt_linker_boilerplate=`cat conftest.err`
14570$rm conftest*
14571
14572
14573# Allow CC to be a program name with arguments.
14574lt_save_CC="$CC"
14575CC=${F77-"f77"}
14576compiler=$CC
14577compiler_F77=$CC
14578for cc_temp in $compiler""; do
14579  case $cc_temp in
14580    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14581    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14582    \-*) ;;
14583    *) break;;
14584  esac
14585done
14586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14587
14588
14589{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14590echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14591{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14592echo "${ECHO_T}$can_build_shared" >&6; }
14593
14594{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14595echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14596test "$can_build_shared" = "no" && enable_shared=no
14597
14598# On AIX, shared libraries and static libraries use the same namespace, and
14599# are all built from PIC.
14600case $host_os in
14601aix3*)
14602  test "$enable_shared" = yes && enable_static=no
14603  if test -n "$RANLIB"; then
14604    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14605    postinstall_cmds='$RANLIB $lib'
14606  fi
14607  ;;
14608aix4* | aix5*)
14609  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14610    test "$enable_shared" = yes && enable_static=no
14611  fi
14612  ;;
14613esac
14614{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14615echo "${ECHO_T}$enable_shared" >&6; }
14616
14617{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14618echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14619# Make sure either enable_shared or enable_static is yes.
14620test "$enable_shared" = yes || enable_static=yes
14621{ echo "$as_me:$LINENO: result: $enable_static" >&5
14622echo "${ECHO_T}$enable_static" >&6; }
14623
14624GCC_F77="$G77"
14625LD_F77="$LD"
14626
14627lt_prog_compiler_wl_F77=
14628lt_prog_compiler_pic_F77=
14629lt_prog_compiler_static_F77=
14630
14631{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14632echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14633
14634  if test "$GCC" = yes; then
14635    lt_prog_compiler_wl_F77='-Wl,'
14636    lt_prog_compiler_static_F77='-static'
14637
14638    case $host_os in
14639      aix*)
14640      # All AIX code is PIC.
14641      if test "$host_cpu" = ia64; then
14642	# AIX 5 now supports IA64 processor
14643	lt_prog_compiler_static_F77='-Bstatic'
14644      fi
14645      ;;
14646
14647    amigaos*)
14648      # FIXME: we need at least 68020 code to build shared libraries, but
14649      # adding the `-m68020' flag to GCC prevents building anything better,
14650      # like `-m68040'.
14651      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14652      ;;
14653
14654    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14655      # PIC is the default for these OSes.
14656      ;;
14657
14658    mingw* | cygwin* | pw32* | os2*)
14659      # This hack is so that the source file can tell whether it is being
14660      # built for inclusion in a dll (and should export symbols for example).
14661      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14662      # (--disable-auto-import) libraries
14663      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14664      ;;
14665
14666    darwin* | rhapsody*)
14667      # PIC is the default on this platform
14668      # Common symbols not allowed in MH_DYLIB files
14669      lt_prog_compiler_pic_F77='-fno-common'
14670      ;;
14671
14672    interix[3-9]*)
14673      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14674      # Instead, we relocate shared libraries at runtime.
14675      ;;
14676
14677    msdosdjgpp*)
14678      # Just because we use GCC doesn't mean we suddenly get shared libraries
14679      # on systems that don't support them.
14680      lt_prog_compiler_can_build_shared_F77=no
14681      enable_shared=no
14682      ;;
14683
14684    sysv4*MP*)
14685      if test -d /usr/nec; then
14686	lt_prog_compiler_pic_F77=-Kconform_pic
14687      fi
14688      ;;
14689
14690    hpux*)
14691      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14692      # not for PA HP-UX.
14693      case $host_cpu in
14694      hppa*64*|ia64*)
14695	# +Z the default
14696	;;
14697      *)
14698	lt_prog_compiler_pic_F77='-fPIC'
14699	;;
14700      esac
14701      ;;
14702
14703    *)
14704      lt_prog_compiler_pic_F77='-fPIC'
14705      ;;
14706    esac
14707  else
14708    # PORTME Check for flag to pass linker flags through the system compiler.
14709    case $host_os in
14710    aix*)
14711      lt_prog_compiler_wl_F77='-Wl,'
14712      if test "$host_cpu" = ia64; then
14713	# AIX 5 now supports IA64 processor
14714	lt_prog_compiler_static_F77='-Bstatic'
14715      else
14716	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14717      fi
14718      ;;
14719      darwin*)
14720        # PIC is the default on this platform
14721        # Common symbols not allowed in MH_DYLIB files
14722       case $cc_basename in
14723         xlc*)
14724         lt_prog_compiler_pic_F77='-qnocommon'
14725         lt_prog_compiler_wl_F77='-Wl,'
14726         ;;
14727       esac
14728       ;;
14729
14730    mingw* | cygwin* | pw32* | os2*)
14731      # This hack is so that the source file can tell whether it is being
14732      # built for inclusion in a dll (and should export symbols for example).
14733      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14734      ;;
14735
14736    hpux9* | hpux10* | hpux11*)
14737      lt_prog_compiler_wl_F77='-Wl,'
14738      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14739      # not for PA HP-UX.
14740      case $host_cpu in
14741      hppa*64*|ia64*)
14742	# +Z the default
14743	;;
14744      *)
14745	lt_prog_compiler_pic_F77='+Z'
14746	;;
14747      esac
14748      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14749      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14750      ;;
14751
14752    irix5* | irix6* | nonstopux*)
14753      lt_prog_compiler_wl_F77='-Wl,'
14754      # PIC (with -KPIC) is the default.
14755      lt_prog_compiler_static_F77='-non_shared'
14756      ;;
14757
14758    newsos6)
14759      lt_prog_compiler_pic_F77='-KPIC'
14760      lt_prog_compiler_static_F77='-Bstatic'
14761      ;;
14762
14763    linux* | k*bsd*-gnu)
14764      case $cc_basename in
14765      icc* | ecc*)
14766	lt_prog_compiler_wl_F77='-Wl,'
14767	lt_prog_compiler_pic_F77='-KPIC'
14768	lt_prog_compiler_static_F77='-static'
14769        ;;
14770      pgcc* | pgf77* | pgf90* | pgf95*)
14771        # Portland Group compilers (*not* the Pentium gcc compiler,
14772	# which looks to be a dead project)
14773	lt_prog_compiler_wl_F77='-Wl,'
14774	lt_prog_compiler_pic_F77='-fpic'
14775	lt_prog_compiler_static_F77='-Bstatic'
14776        ;;
14777      ccc*)
14778        lt_prog_compiler_wl_F77='-Wl,'
14779        # All Alpha code is PIC.
14780        lt_prog_compiler_static_F77='-non_shared'
14781        ;;
14782      *)
14783        case `$CC -V 2>&1 | sed 5q` in
14784	*Sun\ C*)
14785	  # Sun C 5.9
14786	  lt_prog_compiler_pic_F77='-KPIC'
14787	  lt_prog_compiler_static_F77='-Bstatic'
14788	  lt_prog_compiler_wl_F77='-Wl,'
14789	  ;;
14790	*Sun\ F*)
14791	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14792	  lt_prog_compiler_pic_F77='-KPIC'
14793	  lt_prog_compiler_static_F77='-Bstatic'
14794	  lt_prog_compiler_wl_F77=''
14795	  ;;
14796	esac
14797	;;
14798      esac
14799      ;;
14800
14801    osf3* | osf4* | osf5*)
14802      lt_prog_compiler_wl_F77='-Wl,'
14803      # All OSF/1 code is PIC.
14804      lt_prog_compiler_static_F77='-non_shared'
14805      ;;
14806
14807    rdos*)
14808      lt_prog_compiler_static_F77='-non_shared'
14809      ;;
14810
14811    solaris*)
14812      lt_prog_compiler_pic_F77='-KPIC'
14813      lt_prog_compiler_static_F77='-Bstatic'
14814      case $cc_basename in
14815      f77* | f90* | f95*)
14816	lt_prog_compiler_wl_F77='-Qoption ld ';;
14817      *)
14818	lt_prog_compiler_wl_F77='-Wl,';;
14819      esac
14820      ;;
14821
14822    sunos4*)
14823      lt_prog_compiler_wl_F77='-Qoption ld '
14824      lt_prog_compiler_pic_F77='-PIC'
14825      lt_prog_compiler_static_F77='-Bstatic'
14826      ;;
14827
14828    sysv4 | sysv4.2uw2* | sysv4.3*)
14829      lt_prog_compiler_wl_F77='-Wl,'
14830      lt_prog_compiler_pic_F77='-KPIC'
14831      lt_prog_compiler_static_F77='-Bstatic'
14832      ;;
14833
14834    sysv4*MP*)
14835      if test -d /usr/nec ;then
14836	lt_prog_compiler_pic_F77='-Kconform_pic'
14837	lt_prog_compiler_static_F77='-Bstatic'
14838      fi
14839      ;;
14840
14841    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14842      lt_prog_compiler_wl_F77='-Wl,'
14843      lt_prog_compiler_pic_F77='-KPIC'
14844      lt_prog_compiler_static_F77='-Bstatic'
14845      ;;
14846
14847    unicos*)
14848      lt_prog_compiler_wl_F77='-Wl,'
14849      lt_prog_compiler_can_build_shared_F77=no
14850      ;;
14851
14852    uts4*)
14853      lt_prog_compiler_pic_F77='-pic'
14854      lt_prog_compiler_static_F77='-Bstatic'
14855      ;;
14856
14857    *)
14858      lt_prog_compiler_can_build_shared_F77=no
14859      ;;
14860    esac
14861  fi
14862
14863{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14864echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14865
14866#
14867# Check to make sure the PIC flag actually works.
14868#
14869if test -n "$lt_prog_compiler_pic_F77"; then
14870
14871{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14872echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14873if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14874  echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876  lt_prog_compiler_pic_works_F77=no
14877  ac_outfile=conftest.$ac_objext
14878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14879   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14880   # Insert the option either (1) after the last *FLAGS variable, or
14881   # (2) before a word containing "conftest.", or (3) at the end.
14882   # Note that $ac_compile itself does not contain backslashes and begins
14883   # with a dollar sign (not a hyphen), so the echo should work correctly.
14884   # The option is referenced via a variable to avoid confusing sed.
14885   lt_compile=`echo "$ac_compile" | $SED \
14886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14888   -e 's:$: $lt_compiler_flag:'`
14889   (eval echo "\"\$as_me:14889: $lt_compile\"" >&5)
14890   (eval "$lt_compile" 2>conftest.err)
14891   ac_status=$?
14892   cat conftest.err >&5
14893   echo "$as_me:14893: \$? = $ac_status" >&5
14894   if (exit $ac_status) && test -s "$ac_outfile"; then
14895     # The compiler can only warn and ignore the option if not recognized
14896     # So say no if there are warnings other than the usual output.
14897     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14900       lt_prog_compiler_pic_works_F77=yes
14901     fi
14902   fi
14903   $rm conftest*
14904
14905fi
14906{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14907echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14908
14909if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14910    case $lt_prog_compiler_pic_F77 in
14911     "" | " "*) ;;
14912     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14913     esac
14914else
14915    lt_prog_compiler_pic_F77=
14916     lt_prog_compiler_can_build_shared_F77=no
14917fi
14918
14919fi
14920case $host_os in
14921  # For platforms which do not support PIC, -DPIC is meaningless:
14922  *djgpp*)
14923    lt_prog_compiler_pic_F77=
14924    ;;
14925  *)
14926    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14927    ;;
14928esac
14929
14930#
14931# Check to make sure the static flag actually works.
14932#
14933wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14934{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14935echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14936if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14937  echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939  lt_prog_compiler_static_works_F77=no
14940   save_LDFLAGS="$LDFLAGS"
14941   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14942   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14943   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14944     # The linker can only warn and ignore the option if not recognized
14945     # So say no if there are warnings
14946     if test -s conftest.err; then
14947       # Append any errors to the config.log.
14948       cat conftest.err 1>&5
14949       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14950       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14951       if diff conftest.exp conftest.er2 >/dev/null; then
14952         lt_prog_compiler_static_works_F77=yes
14953       fi
14954     else
14955       lt_prog_compiler_static_works_F77=yes
14956     fi
14957   fi
14958   $rm conftest*
14959   LDFLAGS="$save_LDFLAGS"
14960
14961fi
14962{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14963echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14964
14965if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14966    :
14967else
14968    lt_prog_compiler_static_F77=
14969fi
14970
14971
14972{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14973echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14974if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14975  echo $ECHO_N "(cached) $ECHO_C" >&6
14976else
14977  lt_cv_prog_compiler_c_o_F77=no
14978   $rm -r conftest 2>/dev/null
14979   mkdir conftest
14980   cd conftest
14981   mkdir out
14982   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14983
14984   lt_compiler_flag="-o out/conftest2.$ac_objext"
14985   # Insert the option either (1) after the last *FLAGS variable, or
14986   # (2) before a word containing "conftest.", or (3) at the end.
14987   # Note that $ac_compile itself does not contain backslashes and begins
14988   # with a dollar sign (not a hyphen), so the echo should work correctly.
14989   lt_compile=`echo "$ac_compile" | $SED \
14990   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14991   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14992   -e 's:$: $lt_compiler_flag:'`
14993   (eval echo "\"\$as_me:14993: $lt_compile\"" >&5)
14994   (eval "$lt_compile" 2>out/conftest.err)
14995   ac_status=$?
14996   cat out/conftest.err >&5
14997   echo "$as_me:14997: \$? = $ac_status" >&5
14998   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14999   then
15000     # The compiler can only warn and ignore the option if not recognized
15001     # So say no if there are warnings
15002     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15003     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15004     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15005       lt_cv_prog_compiler_c_o_F77=yes
15006     fi
15007   fi
15008   chmod u+w . 2>&5
15009   $rm conftest*
15010   # SGI C++ compiler will create directory out/ii_files/ for
15011   # template instantiation
15012   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15013   $rm out/* && rmdir out
15014   cd ..
15015   rmdir conftest
15016   $rm conftest*
15017
15018fi
15019{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15020echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15021
15022
15023hard_links="nottested"
15024if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15025  # do not overwrite the value of need_locks provided by the user
15026  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15027echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15028  hard_links=yes
15029  $rm conftest*
15030  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15031  touch conftest.a
15032  ln conftest.a conftest.b 2>&5 || hard_links=no
15033  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15034  { echo "$as_me:$LINENO: result: $hard_links" >&5
15035echo "${ECHO_T}$hard_links" >&6; }
15036  if test "$hard_links" = no; then
15037    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15038echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15039    need_locks=warn
15040  fi
15041else
15042  need_locks=no
15043fi
15044
15045{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15046echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15047
15048  runpath_var=
15049  allow_undefined_flag_F77=
15050  enable_shared_with_static_runtimes_F77=no
15051  archive_cmds_F77=
15052  archive_expsym_cmds_F77=
15053  old_archive_From_new_cmds_F77=
15054  old_archive_from_expsyms_cmds_F77=
15055  export_dynamic_flag_spec_F77=
15056  whole_archive_flag_spec_F77=
15057  thread_safe_flag_spec_F77=
15058  hardcode_libdir_flag_spec_F77=
15059  hardcode_libdir_flag_spec_ld_F77=
15060  hardcode_libdir_separator_F77=
15061  hardcode_direct_F77=no
15062  hardcode_minus_L_F77=no
15063  hardcode_shlibpath_var_F77=unsupported
15064  link_all_deplibs_F77=unknown
15065  hardcode_automatic_F77=no
15066  module_cmds_F77=
15067  module_expsym_cmds_F77=
15068  always_export_symbols_F77=no
15069  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15070  # include_expsyms should be a list of space-separated symbols to be *always*
15071  # included in the symbol list
15072  include_expsyms_F77=
15073  # exclude_expsyms can be an extended regexp of symbols to exclude
15074  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15075  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15076  # as well as any symbol that contains `d'.
15077  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15078  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15079  # platforms (ab)use it in PIC code, but their linkers get confused if
15080  # the symbol is explicitly referenced.  Since portable code cannot
15081  # rely on this symbol name, it's probably fine to never include it in
15082  # preloaded symbol tables.
15083  extract_expsyms_cmds=
15084  # Just being paranoid about ensuring that cc_basename is set.
15085  for cc_temp in $compiler""; do
15086  case $cc_temp in
15087    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15088    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15089    \-*) ;;
15090    *) break;;
15091  esac
15092done
15093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15094
15095  case $host_os in
15096  cygwin* | mingw* | pw32*)
15097    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15098    # When not using gcc, we currently assume that we are using
15099    # Microsoft Visual C++.
15100    if test "$GCC" != yes; then
15101      with_gnu_ld=no
15102    fi
15103    ;;
15104  interix*)
15105    # we just hope/assume this is gcc and not c89 (= MSVC++)
15106    with_gnu_ld=yes
15107    ;;
15108  openbsd*)
15109    with_gnu_ld=no
15110    ;;
15111  esac
15112
15113  ld_shlibs_F77=yes
15114  if test "$with_gnu_ld" = yes; then
15115    # If archive_cmds runs LD, not CC, wlarc should be empty
15116    wlarc='${wl}'
15117
15118    # Set some defaults for GNU ld with shared library support. These
15119    # are reset later if shared libraries are not supported. Putting them
15120    # here allows them to be overridden if necessary.
15121    runpath_var=LD_RUN_PATH
15122    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15123    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15124    # ancient GNU ld didn't support --whole-archive et. al.
15125    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15126	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15127      else
15128  	whole_archive_flag_spec_F77=
15129    fi
15130    supports_anon_versioning=no
15131    case `$LD -v 2>/dev/null` in
15132      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15133      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15134      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15135      *\ 2.11.*) ;; # other 2.11 versions
15136      *) supports_anon_versioning=yes ;;
15137    esac
15138
15139    # See if GNU ld supports shared libraries.
15140    case $host_os in
15141    aix3* | aix4* | aix5*)
15142      # On AIX/PPC, the GNU linker is very broken
15143      if test "$host_cpu" != ia64; then
15144	ld_shlibs_F77=no
15145	cat <<EOF 1>&2
15146
15147*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15148*** to be unable to reliably create shared libraries on AIX.
15149*** Therefore, libtool is disabling shared libraries support.  If you
15150*** really care for shared libraries, you may want to modify your PATH
15151*** so that a non-GNU linker is found, and then restart.
15152
15153EOF
15154      fi
15155      ;;
15156
15157    amigaos*)
15158      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)'
15159      hardcode_libdir_flag_spec_F77='-L$libdir'
15160      hardcode_minus_L_F77=yes
15161
15162      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15163      # that the semantics of dynamic libraries on AmigaOS, at least up
15164      # to version 4, is to share data among multiple programs linked
15165      # with the same dynamic library.  Since this doesn't match the
15166      # behavior of shared libraries on other platforms, we can't use
15167      # them.
15168      ld_shlibs_F77=no
15169      ;;
15170
15171    beos*)
15172      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173	allow_undefined_flag_F77=unsupported
15174	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15175	# support --undefined.  This deserves some investigation.  FIXME
15176	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177      else
15178	ld_shlibs_F77=no
15179      fi
15180      ;;
15181
15182    cygwin* | mingw* | pw32*)
15183      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15184      # as there is no search path for DLLs.
15185      hardcode_libdir_flag_spec_F77='-L$libdir'
15186      allow_undefined_flag_F77=unsupported
15187      always_export_symbols_F77=no
15188      enable_shared_with_static_runtimes_F77=yes
15189      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15190
15191      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15192        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15193	# If the export-symbols file already is a .def file (1st line
15194	# is EXPORTS), use it as is; otherwise, prepend...
15195	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15196	  cp $export_symbols $output_objdir/$soname.def;
15197	else
15198	  echo EXPORTS > $output_objdir/$soname.def;
15199	  cat $export_symbols >> $output_objdir/$soname.def;
15200	fi~
15201	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15202      else
15203	ld_shlibs_F77=no
15204      fi
15205      ;;
15206
15207    interix[3-9]*)
15208      hardcode_direct_F77=no
15209      hardcode_shlibpath_var_F77=no
15210      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15211      export_dynamic_flag_spec_F77='${wl}-E'
15212      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15213      # Instead, shared libraries are loaded at an image base (0x10000000 by
15214      # default) and relocated if they conflict, which is a slow very memory
15215      # consuming and fragmenting process.  To avoid this, we pick a random,
15216      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15217      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15218      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'
15219      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'
15220      ;;
15221
15222    gnu* | linux* | k*bsd*-gnu)
15223      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15224	tmp_addflag=
15225	case $cc_basename,$host_cpu in
15226	pgcc*)				# Portland Group C compiler
15227	  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'
15228	  tmp_addflag=' $pic_flag'
15229	  ;;
15230	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15231	  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'
15232	  tmp_addflag=' $pic_flag -Mnomain' ;;
15233	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15234	  tmp_addflag=' -i_dynamic' ;;
15235	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15236	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15237	ifc* | ifort*)			# Intel Fortran compiler
15238	  tmp_addflag=' -nofor_main' ;;
15239	esac
15240	case `$CC -V 2>&1 | sed 5q` in
15241	*Sun\ C*)			# Sun C 5.9
15242	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15243	  tmp_sharedflag='-G' ;;
15244	*Sun\ F*)			# Sun Fortran 8.3
15245	  tmp_sharedflag='-G' ;;
15246	*)
15247	  tmp_sharedflag='-shared' ;;
15248	esac
15249	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15250
15251	if test $supports_anon_versioning = yes; then
15252	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15253  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15254  $echo "local: *; };" >> $output_objdir/$libname.ver~
15255	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15256	fi
15257      else
15258	ld_shlibs_F77=no
15259      fi
15260      ;;
15261
15262    netbsd*)
15263      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15264	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15265	wlarc=
15266      else
15267	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15268	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15269      fi
15270      ;;
15271
15272    solaris*)
15273      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15274	ld_shlibs_F77=no
15275	cat <<EOF 1>&2
15276
15277*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15278*** create shared libraries on Solaris systems.  Therefore, libtool
15279*** is disabling shared libraries support.  We urge you to upgrade GNU
15280*** binutils to release 2.9.1 or newer.  Another option is to modify
15281*** your PATH or compiler configuration so that the native linker is
15282*** used, and then restart.
15283
15284EOF
15285      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15286	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15288      else
15289	ld_shlibs_F77=no
15290      fi
15291      ;;
15292
15293    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15294      case `$LD -v 2>&1` in
15295        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15296	ld_shlibs_F77=no
15297	cat <<_LT_EOF 1>&2
15298
15299*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15300*** reliably create shared libraries on SCO systems.  Therefore, libtool
15301*** is disabling shared libraries support.  We urge you to upgrade GNU
15302*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15303*** your PATH or compiler configuration so that the native linker is
15304*** used, and then restart.
15305
15306_LT_EOF
15307	;;
15308	*)
15309	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15310	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15311	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15312	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15313	  else
15314	    ld_shlibs_F77=no
15315	  fi
15316	;;
15317      esac
15318      ;;
15319
15320    sunos4*)
15321      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15322      wlarc=
15323      hardcode_direct_F77=yes
15324      hardcode_shlibpath_var_F77=no
15325      ;;
15326
15327    *)
15328      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15329	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331      else
15332	ld_shlibs_F77=no
15333      fi
15334      ;;
15335    esac
15336
15337    if test "$ld_shlibs_F77" = no; then
15338      runpath_var=
15339      hardcode_libdir_flag_spec_F77=
15340      export_dynamic_flag_spec_F77=
15341      whole_archive_flag_spec_F77=
15342    fi
15343  else
15344    # PORTME fill in a description of your system's linker (not GNU ld)
15345    case $host_os in
15346    aix3*)
15347      allow_undefined_flag_F77=unsupported
15348      always_export_symbols_F77=yes
15349      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'
15350      # Note: this linker hardcodes the directories in LIBPATH if there
15351      # are no directories specified by -L.
15352      hardcode_minus_L_F77=yes
15353      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15354	# Neither direct hardcoding nor static linking is supported with a
15355	# broken collect2.
15356	hardcode_direct_F77=unsupported
15357      fi
15358      ;;
15359
15360    aix4* | aix5*)
15361      if test "$host_cpu" = ia64; then
15362	# On IA64, the linker does run time linking by default, so we don't
15363	# have to do anything special.
15364	aix_use_runtimelinking=no
15365	exp_sym_flag='-Bexport'
15366	no_entry_flag=""
15367      else
15368	# If we're using GNU nm, then we don't want the "-C" option.
15369	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15370	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15371	  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'
15372	else
15373	  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'
15374	fi
15375	aix_use_runtimelinking=no
15376
15377	# Test if we are trying to use run time linking or normal
15378	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15379	# need to do runtime linking.
15380	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15381	  for ld_flag in $LDFLAGS; do
15382  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15383  	    aix_use_runtimelinking=yes
15384  	    break
15385  	  fi
15386	  done
15387	  ;;
15388	esac
15389
15390	exp_sym_flag='-bexport'
15391	no_entry_flag='-bnoentry'
15392      fi
15393
15394      # When large executables or shared objects are built, AIX ld can
15395      # have problems creating the table of contents.  If linking a library
15396      # or program results in "error TOC overflow" add -mminimal-toc to
15397      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15398      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15399
15400      archive_cmds_F77=''
15401      hardcode_direct_F77=yes
15402      hardcode_libdir_separator_F77=':'
15403      link_all_deplibs_F77=yes
15404
15405      if test "$GCC" = yes; then
15406	case $host_os in aix4.[012]|aix4.[012].*)
15407	# We only want to do this on AIX 4.2 and lower, the check
15408	# below for broken collect2 doesn't work under 4.3+
15409	  collect2name=`${CC} -print-prog-name=collect2`
15410	  if test -f "$collect2name" && \
15411  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15412	  then
15413  	  # We have reworked collect2
15414  	  :
15415	  else
15416  	  # We have old collect2
15417  	  hardcode_direct_F77=unsupported
15418  	  # It fails to find uninstalled libraries when the uninstalled
15419  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15420  	  # to unsupported forces relinking
15421  	  hardcode_minus_L_F77=yes
15422  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15423  	  hardcode_libdir_separator_F77=
15424	  fi
15425	  ;;
15426	esac
15427	shared_flag='-shared'
15428	if test "$aix_use_runtimelinking" = yes; then
15429	  shared_flag="$shared_flag "'${wl}-G'
15430	fi
15431      else
15432	# not using gcc
15433	if test "$host_cpu" = ia64; then
15434  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15435  	# chokes on -Wl,-G. The following line is correct:
15436	  shared_flag='-G'
15437	else
15438	  if test "$aix_use_runtimelinking" = yes; then
15439	    shared_flag='${wl}-G'
15440	  else
15441	    shared_flag='${wl}-bM:SRE'
15442	  fi
15443	fi
15444      fi
15445
15446      # It seems that -bexpall does not export symbols beginning with
15447      # underscore (_), so it is better to generate a list of symbols to export.
15448      always_export_symbols_F77=yes
15449      if test "$aix_use_runtimelinking" = yes; then
15450	# Warning - without using the other runtime loading flags (-brtl),
15451	# -berok will link without error, but may produce a broken library.
15452	allow_undefined_flag_F77='-berok'
15453       # Determine the default libpath from the value encoded in an empty executable.
15454       cat >conftest.$ac_ext <<_ACEOF
15455      program main
15456
15457      end
15458_ACEOF
15459rm -f conftest.$ac_objext conftest$ac_exeext
15460if { (ac_try="$ac_link"
15461case "(($ac_try" in
15462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463  *) ac_try_echo=$ac_try;;
15464esac
15465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466  (eval "$ac_link") 2>conftest.er1
15467  ac_status=$?
15468  grep -v '^ *+' conftest.er1 >conftest.err
15469  rm -f conftest.er1
15470  cat conftest.err >&5
15471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472  (exit $ac_status); } && {
15473	 test -z "$ac_f77_werror_flag" ||
15474	 test ! -s conftest.err
15475       } && test -s conftest$ac_exeext &&
15476       $as_test_x conftest$ac_exeext; then
15477
15478lt_aix_libpath_sed='
15479    /Import File Strings/,/^$/ {
15480	/^0/ {
15481	    s/^0  *\(.*\)$/\1/
15482	    p
15483	}
15484    }'
15485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15486# Check for a 64-bit object if we didn't find anything.
15487if test -z "$aix_libpath"; then
15488  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15489fi
15490else
15491  echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494
15495fi
15496
15497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15498      conftest$ac_exeext conftest.$ac_ext
15499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15500
15501       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15502	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"
15503       else
15504	if test "$host_cpu" = ia64; then
15505	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15506	  allow_undefined_flag_F77="-z nodefs"
15507	  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"
15508	else
15509	 # Determine the default libpath from the value encoded in an empty executable.
15510	 cat >conftest.$ac_ext <<_ACEOF
15511      program main
15512
15513      end
15514_ACEOF
15515rm -f conftest.$ac_objext conftest$ac_exeext
15516if { (ac_try="$ac_link"
15517case "(($ac_try" in
15518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519  *) ac_try_echo=$ac_try;;
15520esac
15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522  (eval "$ac_link") 2>conftest.er1
15523  ac_status=$?
15524  grep -v '^ *+' conftest.er1 >conftest.err
15525  rm -f conftest.er1
15526  cat conftest.err >&5
15527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528  (exit $ac_status); } && {
15529	 test -z "$ac_f77_werror_flag" ||
15530	 test ! -s conftest.err
15531       } && test -s conftest$ac_exeext &&
15532       $as_test_x conftest$ac_exeext; then
15533
15534lt_aix_libpath_sed='
15535    /Import File Strings/,/^$/ {
15536	/^0/ {
15537	    s/^0  *\(.*\)$/\1/
15538	    p
15539	}
15540    }'
15541aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15542# Check for a 64-bit object if we didn't find anything.
15543if test -z "$aix_libpath"; then
15544  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15545fi
15546else
15547  echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550
15551fi
15552
15553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15554      conftest$ac_exeext conftest.$ac_ext
15555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15556
15557	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15558	  # Warning - without using the other run time loading flags,
15559	  # -berok will link without error, but may produce a broken library.
15560	  no_undefined_flag_F77=' ${wl}-bernotok'
15561	  allow_undefined_flag_F77=' ${wl}-berok'
15562	  # Exported symbols can be pulled into shared objects from archives
15563	  whole_archive_flag_spec_F77='$convenience'
15564	  archive_cmds_need_lc_F77=yes
15565	  # This is similar to how AIX traditionally builds its shared libraries.
15566	  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'
15567	fi
15568      fi
15569      ;;
15570
15571    amigaos*)
15572      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)'
15573      hardcode_libdir_flag_spec_F77='-L$libdir'
15574      hardcode_minus_L_F77=yes
15575      # see comment about different semantics on the GNU ld section
15576      ld_shlibs_F77=no
15577      ;;
15578
15579    bsdi[45]*)
15580      export_dynamic_flag_spec_F77=-rdynamic
15581      ;;
15582
15583    cygwin* | mingw* | pw32*)
15584      # When not using gcc, we currently assume that we are using
15585      # Microsoft Visual C++.
15586      # hardcode_libdir_flag_spec is actually meaningless, as there is
15587      # no search path for DLLs.
15588      hardcode_libdir_flag_spec_F77=' '
15589      allow_undefined_flag_F77=unsupported
15590      # Tell ltmain to make .lib files, not .a files.
15591      libext=lib
15592      # Tell ltmain to make .dll files, not .so files.
15593      shrext_cmds=".dll"
15594      # FIXME: Setting linknames here is a bad hack.
15595      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15596      # The linker will automatically build a .lib file if we build a DLL.
15597      old_archive_From_new_cmds_F77='true'
15598      # FIXME: Should let the user specify the lib program.
15599      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15600      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15601      enable_shared_with_static_runtimes_F77=yes
15602      ;;
15603
15604    darwin* | rhapsody*)
15605      case $host_os in
15606        rhapsody* | darwin1.[012])
15607         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15608         ;;
15609       *) # Darwin 1.3 on
15610         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15611           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15612         else
15613           case ${MACOSX_DEPLOYMENT_TARGET} in
15614             10.[012])
15615               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15616               ;;
15617             10.*)
15618               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15619               ;;
15620           esac
15621         fi
15622         ;;
15623      esac
15624      archive_cmds_need_lc_F77=no
15625      hardcode_direct_F77=no
15626      hardcode_automatic_F77=yes
15627      hardcode_shlibpath_var_F77=unsupported
15628      whole_archive_flag_spec_F77=''
15629      link_all_deplibs_F77=yes
15630    if test "$GCC" = yes ; then
15631    	output_verbose_link_cmd='echo'
15632        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15633      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15634      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15635      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}'
15636      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}'
15637    else
15638      case $cc_basename in
15639        xlc*)
15640         output_verbose_link_cmd='echo'
15641         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15642         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15643          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15644         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15645          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}'
15646          ;;
15647       *)
15648         ld_shlibs_F77=no
15649          ;;
15650      esac
15651    fi
15652      ;;
15653
15654    dgux*)
15655      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656      hardcode_libdir_flag_spec_F77='-L$libdir'
15657      hardcode_shlibpath_var_F77=no
15658      ;;
15659
15660    freebsd1*)
15661      ld_shlibs_F77=no
15662      ;;
15663
15664    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15665    # support.  Future versions do this automatically, but an explicit c++rt0.o
15666    # does not break anything, and helps significantly (at the cost of a little
15667    # extra space).
15668    freebsd2.2*)
15669      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15670      hardcode_libdir_flag_spec_F77='-R$libdir'
15671      hardcode_direct_F77=yes
15672      hardcode_shlibpath_var_F77=no
15673      ;;
15674
15675    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15676    freebsd2*)
15677      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15678      hardcode_direct_F77=yes
15679      hardcode_minus_L_F77=yes
15680      hardcode_shlibpath_var_F77=no
15681      ;;
15682
15683    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15684    freebsd* | dragonfly*)
15685      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15686      hardcode_libdir_flag_spec_F77='-R$libdir'
15687      hardcode_direct_F77=yes
15688      hardcode_shlibpath_var_F77=no
15689      ;;
15690
15691    hpux9*)
15692      if test "$GCC" = yes; then
15693	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'
15694      else
15695	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'
15696      fi
15697      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15698      hardcode_libdir_separator_F77=:
15699      hardcode_direct_F77=yes
15700
15701      # hardcode_minus_L: Not really in the search PATH,
15702      # but as the default location of the library.
15703      hardcode_minus_L_F77=yes
15704      export_dynamic_flag_spec_F77='${wl}-E'
15705      ;;
15706
15707    hpux10*)
15708      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15709	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15710      else
15711	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15712      fi
15713      if test "$with_gnu_ld" = no; then
15714	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15715	hardcode_libdir_separator_F77=:
15716
15717	hardcode_direct_F77=yes
15718	export_dynamic_flag_spec_F77='${wl}-E'
15719
15720	# hardcode_minus_L: Not really in the search PATH,
15721	# but as the default location of the library.
15722	hardcode_minus_L_F77=yes
15723      fi
15724      ;;
15725
15726    hpux11*)
15727      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15728	case $host_cpu in
15729	hppa*64*)
15730	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15731	  ;;
15732	ia64*)
15733	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15734	  ;;
15735	*)
15736	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15737	  ;;
15738	esac
15739      else
15740	case $host_cpu in
15741	hppa*64*)
15742	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743	  ;;
15744	ia64*)
15745	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15746	  ;;
15747	*)
15748	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15749	  ;;
15750	esac
15751      fi
15752      if test "$with_gnu_ld" = no; then
15753	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15754	hardcode_libdir_separator_F77=:
15755
15756	case $host_cpu in
15757	hppa*64*|ia64*)
15758	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15759	  hardcode_direct_F77=no
15760	  hardcode_shlibpath_var_F77=no
15761	  ;;
15762	*)
15763	  hardcode_direct_F77=yes
15764	  export_dynamic_flag_spec_F77='${wl}-E'
15765
15766	  # hardcode_minus_L: Not really in the search PATH,
15767	  # but as the default location of the library.
15768	  hardcode_minus_L_F77=yes
15769	  ;;
15770	esac
15771      fi
15772      ;;
15773
15774    irix5* | irix6* | nonstopux*)
15775      if test "$GCC" = yes; then
15776	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'
15777      else
15778	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'
15779	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15780      fi
15781      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15782      hardcode_libdir_separator_F77=:
15783      link_all_deplibs_F77=yes
15784      ;;
15785
15786    netbsd*)
15787      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15788	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15789      else
15790	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15791      fi
15792      hardcode_libdir_flag_spec_F77='-R$libdir'
15793      hardcode_direct_F77=yes
15794      hardcode_shlibpath_var_F77=no
15795      ;;
15796
15797    newsos6)
15798      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799      hardcode_direct_F77=yes
15800      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15801      hardcode_libdir_separator_F77=:
15802      hardcode_shlibpath_var_F77=no
15803      ;;
15804
15805    openbsd*)
15806      if test -f /usr/libexec/ld.so; then
15807	hardcode_direct_F77=yes
15808	hardcode_shlibpath_var_F77=no
15809	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15810	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15811	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15812	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15813	  export_dynamic_flag_spec_F77='${wl}-E'
15814	else
15815	  case $host_os in
15816	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15817	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818	     hardcode_libdir_flag_spec_F77='-R$libdir'
15819	     ;;
15820	   *)
15821	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15822	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15823	     ;;
15824	  esac
15825        fi
15826      else
15827	ld_shlibs_F77=no
15828      fi
15829      ;;
15830
15831    os2*)
15832      hardcode_libdir_flag_spec_F77='-L$libdir'
15833      hardcode_minus_L_F77=yes
15834      allow_undefined_flag_F77=unsupported
15835      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'
15836      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15837      ;;
15838
15839    osf3*)
15840      if test "$GCC" = yes; then
15841	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15842	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'
15843      else
15844	allow_undefined_flag_F77=' -expect_unresolved \*'
15845	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'
15846      fi
15847      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15848      hardcode_libdir_separator_F77=:
15849      ;;
15850
15851    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15852      if test "$GCC" = yes; then
15853	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15854	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'
15855	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15856      else
15857	allow_undefined_flag_F77=' -expect_unresolved \*'
15858	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'
15859	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~
15860	$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'
15861
15862	# Both c and cxx compiler support -rpath directly
15863	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15864      fi
15865      hardcode_libdir_separator_F77=:
15866      ;;
15867
15868    solaris*)
15869      no_undefined_flag_F77=' -z text'
15870      if test "$GCC" = yes; then
15871	wlarc='${wl}'
15872	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15873	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15874	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15875      else
15876	wlarc=''
15877	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15878	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15879  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15880      fi
15881      hardcode_libdir_flag_spec_F77='-R$libdir'
15882      hardcode_shlibpath_var_F77=no
15883      case $host_os in
15884      solaris2.[0-5] | solaris2.[0-5].*) ;;
15885      *)
15886	# The compiler driver will combine and reorder linker options,
15887	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15888	# but is careful enough not to reorder.
15889 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15890	if test "$GCC" = yes; then
15891	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15892	else
15893	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15894	fi
15895	;;
15896      esac
15897      link_all_deplibs_F77=yes
15898      ;;
15899
15900    sunos4*)
15901      if test "x$host_vendor" = xsequent; then
15902	# Use $CC to link under sequent, because it throws in some extra .o
15903	# files that make .init and .fini sections work.
15904	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15905      else
15906	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15907      fi
15908      hardcode_libdir_flag_spec_F77='-L$libdir'
15909      hardcode_direct_F77=yes
15910      hardcode_minus_L_F77=yes
15911      hardcode_shlibpath_var_F77=no
15912      ;;
15913
15914    sysv4)
15915      case $host_vendor in
15916	sni)
15917	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918	  hardcode_direct_F77=yes # is this really true???
15919	;;
15920	siemens)
15921	  ## LD is ld it makes a PLAMLIB
15922	  ## CC just makes a GrossModule.
15923	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15924	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15925	  hardcode_direct_F77=no
15926        ;;
15927	motorola)
15928	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15929	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15930	;;
15931      esac
15932      runpath_var='LD_RUN_PATH'
15933      hardcode_shlibpath_var_F77=no
15934      ;;
15935
15936    sysv4.3*)
15937      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938      hardcode_shlibpath_var_F77=no
15939      export_dynamic_flag_spec_F77='-Bexport'
15940      ;;
15941
15942    sysv4*MP*)
15943      if test -d /usr/nec; then
15944	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15945	hardcode_shlibpath_var_F77=no
15946	runpath_var=LD_RUN_PATH
15947	hardcode_runpath_var=yes
15948	ld_shlibs_F77=yes
15949      fi
15950      ;;
15951
15952    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15953      no_undefined_flag_F77='${wl}-z,text'
15954      archive_cmds_need_lc_F77=no
15955      hardcode_shlibpath_var_F77=no
15956      runpath_var='LD_RUN_PATH'
15957
15958      if test "$GCC" = yes; then
15959	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961      else
15962	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964      fi
15965      ;;
15966
15967    sysv5* | sco3.2v5* | sco5v6*)
15968      # Note: We can NOT use -z defs as we might desire, because we do not
15969      # link with -lc, and that would cause any symbols used from libc to
15970      # always be unresolved, which means just about no library would
15971      # ever link correctly.  If we're not using GNU ld we use -z text
15972      # though, which does catch some bad symbols but isn't as heavy-handed
15973      # as -z defs.
15974      no_undefined_flag_F77='${wl}-z,text'
15975      allow_undefined_flag_F77='${wl}-z,nodefs'
15976      archive_cmds_need_lc_F77=no
15977      hardcode_shlibpath_var_F77=no
15978      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15979      hardcode_libdir_separator_F77=':'
15980      link_all_deplibs_F77=yes
15981      export_dynamic_flag_spec_F77='${wl}-Bexport'
15982      runpath_var='LD_RUN_PATH'
15983
15984      if test "$GCC" = yes; then
15985	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15986	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15987      else
15988	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15990      fi
15991      ;;
15992
15993    uts4*)
15994      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15995      hardcode_libdir_flag_spec_F77='-L$libdir'
15996      hardcode_shlibpath_var_F77=no
15997      ;;
15998
15999    *)
16000      ld_shlibs_F77=no
16001      ;;
16002    esac
16003  fi
16004
16005{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16006echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16007test "$ld_shlibs_F77" = no && can_build_shared=no
16008
16009#
16010# Do we need to explicitly link libc?
16011#
16012case "x$archive_cmds_need_lc_F77" in
16013x|xyes)
16014  # Assume -lc should be added
16015  archive_cmds_need_lc_F77=yes
16016
16017  if test "$enable_shared" = yes && test "$GCC" = yes; then
16018    case $archive_cmds_F77 in
16019    *'~'*)
16020      # FIXME: we may have to deal with multi-command sequences.
16021      ;;
16022    '$CC '*)
16023      # Test whether the compiler implicitly links with -lc since on some
16024      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16025      # to ld, don't add -lc before -lgcc.
16026      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16028      $rm conftest*
16029      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16030
16031      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032  (eval $ac_compile) 2>&5
16033  ac_status=$?
16034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035  (exit $ac_status); } 2>conftest.err; then
16036        soname=conftest
16037        lib=conftest
16038        libobjs=conftest.$ac_objext
16039        deplibs=
16040        wl=$lt_prog_compiler_wl_F77
16041	pic_flag=$lt_prog_compiler_pic_F77
16042        compiler_flags=-v
16043        linker_flags=-v
16044        verstring=
16045        output_objdir=.
16046        libname=conftest
16047        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16048        allow_undefined_flag_F77=
16049        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16050  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16051  ac_status=$?
16052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053  (exit $ac_status); }
16054        then
16055	  archive_cmds_need_lc_F77=no
16056        else
16057	  archive_cmds_need_lc_F77=yes
16058        fi
16059        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16060      else
16061        cat conftest.err 1>&5
16062      fi
16063      $rm conftest*
16064      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16065echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16066      ;;
16067    esac
16068  fi
16069  ;;
16070esac
16071
16072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16074library_names_spec=
16075libname_spec='lib$name'
16076soname_spec=
16077shrext_cmds=".so"
16078postinstall_cmds=
16079postuninstall_cmds=
16080finish_cmds=
16081finish_eval=
16082shlibpath_var=
16083shlibpath_overrides_runpath=unknown
16084version_type=none
16085dynamic_linker="$host_os ld.so"
16086sys_lib_dlsearch_path_spec="/lib /usr/lib"
16087
16088need_lib_prefix=unknown
16089hardcode_into_libs=no
16090
16091# when you set need_version to no, make sure it does not cause -set_version
16092# flags to be left without arguments
16093need_version=unknown
16094
16095case $host_os in
16096aix3*)
16097  version_type=linux
16098  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16099  shlibpath_var=LIBPATH
16100
16101  # AIX 3 has no versioning support, so we append a major version to the name.
16102  soname_spec='${libname}${release}${shared_ext}$major'
16103  ;;
16104
16105aix4* | aix5*)
16106  version_type=linux
16107  need_lib_prefix=no
16108  need_version=no
16109  hardcode_into_libs=yes
16110  if test "$host_cpu" = ia64; then
16111    # AIX 5 supports IA64
16112    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16113    shlibpath_var=LD_LIBRARY_PATH
16114  else
16115    # With GCC up to 2.95.x, collect2 would create an import file
16116    # for dependence libraries.  The import file would start with
16117    # the line `#! .'.  This would cause the generated library to
16118    # depend on `.', always an invalid library.  This was fixed in
16119    # development snapshots of GCC prior to 3.0.
16120    case $host_os in
16121      aix4 | aix4.[01] | aix4.[01].*)
16122      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16123	   echo ' yes '
16124	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16125	:
16126      else
16127	can_build_shared=no
16128      fi
16129      ;;
16130    esac
16131    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16132    # soname into executable. Probably we can add versioning support to
16133    # collect2, so additional links can be useful in future.
16134    if test "$aix_use_runtimelinking" = yes; then
16135      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16136      # instead of lib<name>.a to let people know that these are not
16137      # typical AIX shared libraries.
16138      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139    else
16140      # We preserve .a as extension for shared libraries through AIX4.2
16141      # and later when we are not doing run time linking.
16142      library_names_spec='${libname}${release}.a $libname.a'
16143      soname_spec='${libname}${release}${shared_ext}$major'
16144    fi
16145    shlibpath_var=LIBPATH
16146  fi
16147  ;;
16148
16149amigaos*)
16150  library_names_spec='$libname.ixlibrary $libname.a'
16151  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16152  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'
16153  ;;
16154
16155beos*)
16156  library_names_spec='${libname}${shared_ext}'
16157  dynamic_linker="$host_os ld.so"
16158  shlibpath_var=LIBRARY_PATH
16159  ;;
16160
16161bsdi[45]*)
16162  version_type=linux
16163  need_version=no
16164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165  soname_spec='${libname}${release}${shared_ext}$major'
16166  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16167  shlibpath_var=LD_LIBRARY_PATH
16168  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16169  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16170  # the default ld.so.conf also contains /usr/contrib/lib and
16171  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16172  # libtool to hard-code these into programs
16173  ;;
16174
16175cygwin* | mingw* | pw32*)
16176  version_type=windows
16177  shrext_cmds=".dll"
16178  need_version=no
16179  need_lib_prefix=no
16180
16181  case $GCC,$host_os in
16182  yes,cygwin* | yes,mingw* | yes,pw32*)
16183    library_names_spec='$libname.dll.a'
16184    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16185    postinstall_cmds='base_file=`basename \${file}`~
16186      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16187      dldir=$destdir/`dirname \$dlpath`~
16188      test -d \$dldir || mkdir -p \$dldir~
16189      $install_prog $dir/$dlname \$dldir/$dlname~
16190      chmod a+x \$dldir/$dlname'
16191    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16192      dlpath=$dir/\$dldll~
16193       $rm \$dlpath'
16194    shlibpath_overrides_runpath=yes
16195
16196    case $host_os in
16197    cygwin*)
16198      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16199      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16200      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16201      ;;
16202    mingw*)
16203      # MinGW DLLs use traditional 'lib' prefix
16204      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16205      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16206      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16207        # It is most probably a Windows format PATH printed by
16208        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16209        # path with ; separators, and with drive letters. We can handle the
16210        # drive letters (cygwin fileutils understands them), so leave them,
16211        # especially as we might pass files found there to a mingw objdump,
16212        # which wouldn't understand a cygwinified path. Ahh.
16213        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16214      else
16215        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16216      fi
16217      ;;
16218    pw32*)
16219      # pw32 DLLs use 'pw' prefix rather than 'lib'
16220      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16221      ;;
16222    esac
16223    ;;
16224
16225  *)
16226    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16227    ;;
16228  esac
16229  dynamic_linker='Win32 ld.exe'
16230  # FIXME: first we should search . and the directory the executable is in
16231  shlibpath_var=PATH
16232  ;;
16233
16234darwin* | rhapsody*)
16235  dynamic_linker="$host_os dyld"
16236  version_type=darwin
16237  need_lib_prefix=no
16238  need_version=no
16239  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16240  soname_spec='${libname}${release}${major}$shared_ext'
16241  shlibpath_overrides_runpath=yes
16242  shlibpath_var=DYLD_LIBRARY_PATH
16243  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16244
16245  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16246  ;;
16247
16248dgux*)
16249  version_type=linux
16250  need_lib_prefix=no
16251  need_version=no
16252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16253  soname_spec='${libname}${release}${shared_ext}$major'
16254  shlibpath_var=LD_LIBRARY_PATH
16255  ;;
16256
16257freebsd1*)
16258  dynamic_linker=no
16259  ;;
16260
16261freebsd* | dragonfly*)
16262  # DragonFly does not have aout.  When/if they implement a new
16263  # versioning mechanism, adjust this.
16264  if test -x /usr/bin/objformat; then
16265    objformat=`/usr/bin/objformat`
16266  else
16267    case $host_os in
16268    freebsd[123]*) objformat=aout ;;
16269    *) objformat=elf ;;
16270    esac
16271  fi
16272  version_type=freebsd-$objformat
16273  case $version_type in
16274    freebsd-elf*)
16275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16276      need_version=no
16277      need_lib_prefix=no
16278      ;;
16279    freebsd-*)
16280      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16281      need_version=yes
16282      ;;
16283  esac
16284  shlibpath_var=LD_LIBRARY_PATH
16285  case $host_os in
16286  freebsd2*)
16287    shlibpath_overrides_runpath=yes
16288    ;;
16289  freebsd3.[01]* | freebsdelf3.[01]*)
16290    shlibpath_overrides_runpath=yes
16291    hardcode_into_libs=yes
16292    ;;
16293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16295    shlibpath_overrides_runpath=no
16296    hardcode_into_libs=yes
16297    ;;
16298  *) # from 4.6 on, and DragonFly
16299    shlibpath_overrides_runpath=yes
16300    hardcode_into_libs=yes
16301    ;;
16302  esac
16303  ;;
16304
16305gnu*)
16306  version_type=linux
16307  need_lib_prefix=no
16308  need_version=no
16309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16310  soname_spec='${libname}${release}${shared_ext}$major'
16311  shlibpath_var=LD_LIBRARY_PATH
16312  hardcode_into_libs=yes
16313  ;;
16314
16315hpux9* | hpux10* | hpux11*)
16316  # Give a soname corresponding to the major version so that dld.sl refuses to
16317  # link against other versions.
16318  version_type=sunos
16319  need_lib_prefix=no
16320  need_version=no
16321  case $host_cpu in
16322  ia64*)
16323    shrext_cmds='.so'
16324    hardcode_into_libs=yes
16325    dynamic_linker="$host_os dld.so"
16326    shlibpath_var=LD_LIBRARY_PATH
16327    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329    soname_spec='${libname}${release}${shared_ext}$major'
16330    if test "X$HPUX_IA64_MODE" = X32; then
16331      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16332    else
16333      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16334    fi
16335    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16336    ;;
16337   hppa*64*)
16338     shrext_cmds='.sl'
16339     hardcode_into_libs=yes
16340     dynamic_linker="$host_os dld.sl"
16341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     soname_spec='${libname}${release}${shared_ext}$major'
16345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16347     ;;
16348   *)
16349    shrext_cmds='.sl'
16350    dynamic_linker="$host_os dld.sl"
16351    shlibpath_var=SHLIB_PATH
16352    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354    soname_spec='${libname}${release}${shared_ext}$major'
16355    ;;
16356  esac
16357  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16358  postinstall_cmds='chmod 555 $lib'
16359  ;;
16360
16361interix[3-9]*)
16362  version_type=linux
16363  need_lib_prefix=no
16364  need_version=no
16365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16366  soname_spec='${libname}${release}${shared_ext}$major'
16367  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16368  shlibpath_var=LD_LIBRARY_PATH
16369  shlibpath_overrides_runpath=no
16370  hardcode_into_libs=yes
16371  ;;
16372
16373irix5* | irix6* | nonstopux*)
16374  case $host_os in
16375    nonstopux*) version_type=nonstopux ;;
16376    *)
16377	if test "$lt_cv_prog_gnu_ld" = yes; then
16378		version_type=linux
16379	else
16380		version_type=irix
16381	fi ;;
16382  esac
16383  need_lib_prefix=no
16384  need_version=no
16385  soname_spec='${libname}${release}${shared_ext}$major'
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16387  case $host_os in
16388  irix5* | nonstopux*)
16389    libsuff= shlibsuff=
16390    ;;
16391  *)
16392    case $LD in # libtool.m4 will add one of these switches to LD
16393    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16394      libsuff= shlibsuff= libmagic=32-bit;;
16395    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16396      libsuff=32 shlibsuff=N32 libmagic=N32;;
16397    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16398      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16399    *) libsuff= shlibsuff= libmagic=never-match;;
16400    esac
16401    ;;
16402  esac
16403  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16404  shlibpath_overrides_runpath=no
16405  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16406  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16407  hardcode_into_libs=yes
16408  ;;
16409
16410# No shared lib support for Linux oldld, aout, or coff.
16411linux*oldld* | linux*aout* | linux*coff*)
16412  dynamic_linker=no
16413  ;;
16414
16415# This must be Linux ELF.
16416linux* | k*bsd*-gnu)
16417  version_type=linux
16418  need_lib_prefix=no
16419  need_version=no
16420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421  soname_spec='${libname}${release}${shared_ext}$major'
16422  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16423  shlibpath_var=LD_LIBRARY_PATH
16424  shlibpath_overrides_runpath=no
16425  # This implies no fast_install, which is unacceptable.
16426  # Some rework will be needed to allow for fast_install
16427  # before this can be enabled.
16428  hardcode_into_libs=yes
16429  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16430  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16431
16432  # Append ld.so.conf contents to the search path
16433  if test -f /etc/ld.so.conf; then
16434    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16435    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16436  fi
16437
16438  # We used to test for /lib/ld.so.1 and disable shared libraries on
16439  # powerpc, because MkLinux only supported shared libraries with the
16440  # GNU dynamic linker.  Since this was broken with cross compilers,
16441  # most powerpc-linux boxes support dynamic linking these days and
16442  # people can always --disable-shared, the test was removed, and we
16443  # assume the GNU/Linux dynamic linker is in use.
16444  dynamic_linker='GNU/Linux ld.so'
16445  ;;
16446
16447netbsd*)
16448  version_type=sunos
16449  need_lib_prefix=no
16450  need_version=no
16451  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16453    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16454    dynamic_linker='NetBSD (a.out) ld.so'
16455  else
16456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16457    soname_spec='${libname}${release}${shared_ext}$major'
16458    dynamic_linker='NetBSD ld.elf_so'
16459  fi
16460  shlibpath_var=LD_LIBRARY_PATH
16461  shlibpath_overrides_runpath=yes
16462  hardcode_into_libs=yes
16463  ;;
16464
16465newsos6)
16466  version_type=linux
16467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468  shlibpath_var=LD_LIBRARY_PATH
16469  shlibpath_overrides_runpath=yes
16470  ;;
16471
16472nto-qnx*)
16473  version_type=linux
16474  need_lib_prefix=no
16475  need_version=no
16476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477  soname_spec='${libname}${release}${shared_ext}$major'
16478  shlibpath_var=LD_LIBRARY_PATH
16479  shlibpath_overrides_runpath=yes
16480  ;;
16481
16482openbsd*)
16483  version_type=sunos
16484  sys_lib_dlsearch_path_spec="/usr/lib"
16485  need_lib_prefix=no
16486  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16487  case $host_os in
16488    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16489    *)                         need_version=no  ;;
16490  esac
16491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16492  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16493  shlibpath_var=LD_LIBRARY_PATH
16494  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16495    case $host_os in
16496      openbsd2.[89] | openbsd2.[89].*)
16497	shlibpath_overrides_runpath=no
16498	;;
16499      *)
16500	shlibpath_overrides_runpath=yes
16501	;;
16502      esac
16503  else
16504    shlibpath_overrides_runpath=yes
16505  fi
16506  ;;
16507
16508os2*)
16509  libname_spec='$name'
16510  shrext_cmds=".dll"
16511  need_lib_prefix=no
16512  library_names_spec='$libname${shared_ext} $libname.a'
16513  dynamic_linker='OS/2 ld.exe'
16514  shlibpath_var=LIBPATH
16515  ;;
16516
16517osf3* | osf4* | osf5*)
16518  version_type=osf
16519  need_lib_prefix=no
16520  need_version=no
16521  soname_spec='${libname}${release}${shared_ext}$major'
16522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523  shlibpath_var=LD_LIBRARY_PATH
16524  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16525  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16526  ;;
16527
16528rdos*)
16529  dynamic_linker=no
16530  ;;
16531
16532solaris*)
16533  version_type=linux
16534  need_lib_prefix=no
16535  need_version=no
16536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537  soname_spec='${libname}${release}${shared_ext}$major'
16538  shlibpath_var=LD_LIBRARY_PATH
16539  shlibpath_overrides_runpath=yes
16540  hardcode_into_libs=yes
16541  # ldd complains unless libraries are executable
16542  postinstall_cmds='chmod +x $lib'
16543  ;;
16544
16545sunos4*)
16546  version_type=sunos
16547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16548  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16549  shlibpath_var=LD_LIBRARY_PATH
16550  shlibpath_overrides_runpath=yes
16551  if test "$with_gnu_ld" = yes; then
16552    need_lib_prefix=no
16553  fi
16554  need_version=yes
16555  ;;
16556
16557sysv4 | sysv4.3*)
16558  version_type=linux
16559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560  soname_spec='${libname}${release}${shared_ext}$major'
16561  shlibpath_var=LD_LIBRARY_PATH
16562  case $host_vendor in
16563    sni)
16564      shlibpath_overrides_runpath=no
16565      need_lib_prefix=no
16566      export_dynamic_flag_spec='${wl}-Blargedynsym'
16567      runpath_var=LD_RUN_PATH
16568      ;;
16569    siemens)
16570      need_lib_prefix=no
16571      ;;
16572    motorola)
16573      need_lib_prefix=no
16574      need_version=no
16575      shlibpath_overrides_runpath=no
16576      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16577      ;;
16578  esac
16579  ;;
16580
16581sysv4*MP*)
16582  if test -d /usr/nec ;then
16583    version_type=linux
16584    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16585    soname_spec='$libname${shared_ext}.$major'
16586    shlibpath_var=LD_LIBRARY_PATH
16587  fi
16588  ;;
16589
16590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16591  version_type=freebsd-elf
16592  need_lib_prefix=no
16593  need_version=no
16594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16595  soname_spec='${libname}${release}${shared_ext}$major'
16596  shlibpath_var=LD_LIBRARY_PATH
16597  hardcode_into_libs=yes
16598  if test "$with_gnu_ld" = yes; then
16599    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16600    shlibpath_overrides_runpath=no
16601  else
16602    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16603    shlibpath_overrides_runpath=yes
16604    case $host_os in
16605      sco3.2v5*)
16606        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16607	;;
16608    esac
16609  fi
16610  sys_lib_dlsearch_path_spec='/usr/lib'
16611  ;;
16612
16613uts4*)
16614  version_type=linux
16615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616  soname_spec='${libname}${release}${shared_ext}$major'
16617  shlibpath_var=LD_LIBRARY_PATH
16618  ;;
16619
16620*)
16621  dynamic_linker=no
16622  ;;
16623esac
16624{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16625echo "${ECHO_T}$dynamic_linker" >&6; }
16626test "$dynamic_linker" = no && can_build_shared=no
16627
16628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16629if test "$GCC" = yes; then
16630  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16631fi
16632
16633{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16634echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16635hardcode_action_F77=
16636if test -n "$hardcode_libdir_flag_spec_F77" || \
16637   test -n "$runpath_var_F77" || \
16638   test "X$hardcode_automatic_F77" = "Xyes" ; then
16639
16640  # We can hardcode non-existant directories.
16641  if test "$hardcode_direct_F77" != no &&
16642     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16643     # have to relink, otherwise we might link with an installed library
16644     # when we should be linking with a yet-to-be-installed one
16645     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16646     test "$hardcode_minus_L_F77" != no; then
16647    # Linking always hardcodes the temporary library directory.
16648    hardcode_action_F77=relink
16649  else
16650    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16651    hardcode_action_F77=immediate
16652  fi
16653else
16654  # We cannot hardcode anything, or else we can only hardcode existing
16655  # directories.
16656  hardcode_action_F77=unsupported
16657fi
16658{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16659echo "${ECHO_T}$hardcode_action_F77" >&6; }
16660
16661if test "$hardcode_action_F77" = relink; then
16662  # Fast installation is not supported
16663  enable_fast_install=no
16664elif test "$shlibpath_overrides_runpath" = yes ||
16665     test "$enable_shared" = no; then
16666  # Fast installation is not necessary
16667  enable_fast_install=needless
16668fi
16669
16670
16671# The else clause should only fire when bootstrapping the
16672# libtool distribution, otherwise you forgot to ship ltmain.sh
16673# with your package, and you will get complaints that there are
16674# no rules to generate ltmain.sh.
16675if test -f "$ltmain"; then
16676  # See if we are running on zsh, and set the options which allow our commands through
16677  # without removal of \ escapes.
16678  if test -n "${ZSH_VERSION+set}" ; then
16679    setopt NO_GLOB_SUBST
16680  fi
16681  # Now quote all the things that may contain metacharacters while being
16682  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16683  # variables and quote the copies for generation of the libtool script.
16684  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16685    SED SHELL STRIP \
16686    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16687    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16688    deplibs_check_method reload_flag reload_cmds need_locks \
16689    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16690    lt_cv_sys_global_symbol_to_c_name_address \
16691    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16692    old_postinstall_cmds old_postuninstall_cmds \
16693    compiler_F77 \
16694    CC_F77 \
16695    LD_F77 \
16696    lt_prog_compiler_wl_F77 \
16697    lt_prog_compiler_pic_F77 \
16698    lt_prog_compiler_static_F77 \
16699    lt_prog_compiler_no_builtin_flag_F77 \
16700    export_dynamic_flag_spec_F77 \
16701    thread_safe_flag_spec_F77 \
16702    whole_archive_flag_spec_F77 \
16703    enable_shared_with_static_runtimes_F77 \
16704    old_archive_cmds_F77 \
16705    old_archive_from_new_cmds_F77 \
16706    predep_objects_F77 \
16707    postdep_objects_F77 \
16708    predeps_F77 \
16709    postdeps_F77 \
16710    compiler_lib_search_path_F77 \
16711    archive_cmds_F77 \
16712    archive_expsym_cmds_F77 \
16713    postinstall_cmds_F77 \
16714    postuninstall_cmds_F77 \
16715    old_archive_from_expsyms_cmds_F77 \
16716    allow_undefined_flag_F77 \
16717    no_undefined_flag_F77 \
16718    export_symbols_cmds_F77 \
16719    hardcode_libdir_flag_spec_F77 \
16720    hardcode_libdir_flag_spec_ld_F77 \
16721    hardcode_libdir_separator_F77 \
16722    hardcode_automatic_F77 \
16723    module_cmds_F77 \
16724    module_expsym_cmds_F77 \
16725    lt_cv_prog_compiler_c_o_F77 \
16726    fix_srcfile_path_F77 \
16727    exclude_expsyms_F77 \
16728    include_expsyms_F77; do
16729
16730    case $var in
16731    old_archive_cmds_F77 | \
16732    old_archive_from_new_cmds_F77 | \
16733    archive_cmds_F77 | \
16734    archive_expsym_cmds_F77 | \
16735    module_cmds_F77 | \
16736    module_expsym_cmds_F77 | \
16737    old_archive_from_expsyms_cmds_F77 | \
16738    export_symbols_cmds_F77 | \
16739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16740    postinstall_cmds | postuninstall_cmds | \
16741    old_postinstall_cmds | old_postuninstall_cmds | \
16742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16743      # Double-quote double-evaled strings.
16744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16745      ;;
16746    *)
16747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16748      ;;
16749    esac
16750  done
16751
16752  case $lt_echo in
16753  *'\$0 --fallback-echo"')
16754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16755    ;;
16756  esac
16757
16758cfgfile="$ofile"
16759
16760  cat <<__EOF__ >> "$cfgfile"
16761# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16762
16763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16764
16765# Shell to use when invoking shell scripts.
16766SHELL=$lt_SHELL
16767
16768# Whether or not to build shared libraries.
16769build_libtool_libs=$enable_shared
16770
16771# Whether or not to build static libraries.
16772build_old_libs=$enable_static
16773
16774# Whether or not to add -lc for building shared libraries.
16775build_libtool_need_lc=$archive_cmds_need_lc_F77
16776
16777# Whether or not to disallow shared libs when runtime libs are static
16778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16779
16780# Whether or not to optimize for fast installation.
16781fast_install=$enable_fast_install
16782
16783# The host system.
16784host_alias=$host_alias
16785host=$host
16786host_os=$host_os
16787
16788# The build system.
16789build_alias=$build_alias
16790build=$build
16791build_os=$build_os
16792
16793# An echo program that does not interpret backslashes.
16794echo=$lt_echo
16795
16796# The archiver.
16797AR=$lt_AR
16798AR_FLAGS=$lt_AR_FLAGS
16799
16800# A C compiler.
16801LTCC=$lt_LTCC
16802
16803# LTCC compiler flags.
16804LTCFLAGS=$lt_LTCFLAGS
16805
16806# A language-specific compiler.
16807CC=$lt_compiler_F77
16808
16809# Is the compiler the GNU C compiler?
16810with_gcc=$GCC_F77
16811
16812# An ERE matcher.
16813EGREP=$lt_EGREP
16814
16815# The linker used to build libraries.
16816LD=$lt_LD_F77
16817
16818# Whether we need hard or soft links.
16819LN_S=$lt_LN_S
16820
16821# A BSD-compatible nm program.
16822NM=$lt_NM
16823
16824# A symbol stripping program
16825STRIP=$lt_STRIP
16826
16827# Used to examine libraries when file_magic_cmd begins "file"
16828MAGIC_CMD=$MAGIC_CMD
16829
16830# Used on cygwin: DLL creation program.
16831DLLTOOL="$DLLTOOL"
16832
16833# Used on cygwin: object dumper.
16834OBJDUMP="$OBJDUMP"
16835
16836# Used on cygwin: assembler.
16837AS="$AS"
16838
16839# The name of the directory that contains temporary libtool files.
16840objdir=$objdir
16841
16842# How to create reloadable object files.
16843reload_flag=$lt_reload_flag
16844reload_cmds=$lt_reload_cmds
16845
16846# How to pass a linker flag through the compiler.
16847wl=$lt_lt_prog_compiler_wl_F77
16848
16849# Object file suffix (normally "o").
16850objext="$ac_objext"
16851
16852# Old archive suffix (normally "a").
16853libext="$libext"
16854
16855# Shared library suffix (normally ".so").
16856shrext_cmds='$shrext_cmds'
16857
16858# Executable file suffix (normally "").
16859exeext="$exeext"
16860
16861# Additional compiler flags for building library objects.
16862pic_flag=$lt_lt_prog_compiler_pic_F77
16863pic_mode=$pic_mode
16864
16865# What is the maximum length of a command?
16866max_cmd_len=$lt_cv_sys_max_cmd_len
16867
16868# Does compiler simultaneously support -c and -o options?
16869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16870
16871# Must we lock files when doing compilation?
16872need_locks=$lt_need_locks
16873
16874# Do we need the lib prefix for modules?
16875need_lib_prefix=$need_lib_prefix
16876
16877# Do we need a version for libraries?
16878need_version=$need_version
16879
16880# Whether dlopen is supported.
16881dlopen_support=$enable_dlopen
16882
16883# Whether dlopen of programs is supported.
16884dlopen_self=$enable_dlopen_self
16885
16886# Whether dlopen of statically linked programs is supported.
16887dlopen_self_static=$enable_dlopen_self_static
16888
16889# Compiler flag to prevent dynamic linking.
16890link_static_flag=$lt_lt_prog_compiler_static_F77
16891
16892# Compiler flag to turn off builtin functions.
16893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16894
16895# Compiler flag to allow reflexive dlopens.
16896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16897
16898# Compiler flag to generate shared objects directly from archives.
16899whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16900
16901# Compiler flag to generate thread-safe objects.
16902thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16903
16904# Library versioning type.
16905version_type=$version_type
16906
16907# Format of library name prefix.
16908libname_spec=$lt_libname_spec
16909
16910# List of archive names.  First name is the real one, the rest are links.
16911# The last name is the one that the linker finds with -lNAME.
16912library_names_spec=$lt_library_names_spec
16913
16914# The coded name of the library, if different from the real name.
16915soname_spec=$lt_soname_spec
16916
16917# Commands used to build and install an old-style archive.
16918RANLIB=$lt_RANLIB
16919old_archive_cmds=$lt_old_archive_cmds_F77
16920old_postinstall_cmds=$lt_old_postinstall_cmds
16921old_postuninstall_cmds=$lt_old_postuninstall_cmds
16922
16923# Create an old-style archive from a shared archive.
16924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16925
16926# Create a temporary old-style archive to link instead of a shared archive.
16927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16928
16929# Commands used to build and install a shared archive.
16930archive_cmds=$lt_archive_cmds_F77
16931archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16932postinstall_cmds=$lt_postinstall_cmds
16933postuninstall_cmds=$lt_postuninstall_cmds
16934
16935# Commands used to build a loadable module (assumed same as above if empty)
16936module_cmds=$lt_module_cmds_F77
16937module_expsym_cmds=$lt_module_expsym_cmds_F77
16938
16939# Commands to strip libraries.
16940old_striplib=$lt_old_striplib
16941striplib=$lt_striplib
16942
16943# Dependencies to place before the objects being linked to create a
16944# shared library.
16945predep_objects=$lt_predep_objects_F77
16946
16947# Dependencies to place after the objects being linked to create a
16948# shared library.
16949postdep_objects=$lt_postdep_objects_F77
16950
16951# Dependencies to place before the objects being linked to create a
16952# shared library.
16953predeps=$lt_predeps_F77
16954
16955# Dependencies to place after the objects being linked to create a
16956# shared library.
16957postdeps=$lt_postdeps_F77
16958
16959# The library search path used internally by the compiler when linking
16960# a shared library.
16961compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16962
16963# Method to check whether dependent libraries are shared objects.
16964deplibs_check_method=$lt_deplibs_check_method
16965
16966# Command to use when deplibs_check_method == file_magic.
16967file_magic_cmd=$lt_file_magic_cmd
16968
16969# Flag that allows shared libraries with undefined symbols to be built.
16970allow_undefined_flag=$lt_allow_undefined_flag_F77
16971
16972# Flag that forces no undefined symbols.
16973no_undefined_flag=$lt_no_undefined_flag_F77
16974
16975# Commands used to finish a libtool library installation in a directory.
16976finish_cmds=$lt_finish_cmds
16977
16978# Same as above, but a single script fragment to be evaled but not shown.
16979finish_eval=$lt_finish_eval
16980
16981# Take the output of nm and produce a listing of raw symbols and C names.
16982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16983
16984# Transform the output of nm in a proper C declaration
16985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16986
16987# Transform the output of nm in a C name address pair
16988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16989
16990# This is the shared library runtime path variable.
16991runpath_var=$runpath_var
16992
16993# This is the shared library path variable.
16994shlibpath_var=$shlibpath_var
16995
16996# Is shlibpath searched before the hard-coded library search path?
16997shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16998
16999# How to hardcode a shared library path into an executable.
17000hardcode_action=$hardcode_action_F77
17001
17002# Whether we should hardcode library paths into libraries.
17003hardcode_into_libs=$hardcode_into_libs
17004
17005# Flag to hardcode \$libdir into a binary during linking.
17006# This must work even if \$libdir does not exist.
17007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17008
17009# If ld is used when linking, flag to hardcode \$libdir into
17010# a binary during linking. This must work even if \$libdir does
17011# not exist.
17012hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17013
17014# Whether we need a single -rpath flag with a separated argument.
17015hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17016
17017# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17018# resulting binary.
17019hardcode_direct=$hardcode_direct_F77
17020
17021# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17022# resulting binary.
17023hardcode_minus_L=$hardcode_minus_L_F77
17024
17025# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17026# the resulting binary.
17027hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17028
17029# Set to yes if building a shared library automatically hardcodes DIR into the library
17030# and all subsequent libraries and executables linked against it.
17031hardcode_automatic=$hardcode_automatic_F77
17032
17033# Variables whose values should be saved in libtool wrapper scripts and
17034# restored at relink time.
17035variables_saved_for_relink="$variables_saved_for_relink"
17036
17037# Whether libtool must link a program against all its dependency libraries.
17038link_all_deplibs=$link_all_deplibs_F77
17039
17040# Compile-time system search path for libraries
17041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17042
17043# Run-time system search path for libraries
17044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17045
17046# Fix the shell variable \$srcfile for the compiler.
17047fix_srcfile_path=$lt_fix_srcfile_path
17048
17049# Set to yes if exported symbols are required.
17050always_export_symbols=$always_export_symbols_F77
17051
17052# The commands to list exported symbols.
17053export_symbols_cmds=$lt_export_symbols_cmds_F77
17054
17055# The commands to extract the exported symbol list from a shared archive.
17056extract_expsyms_cmds=$lt_extract_expsyms_cmds
17057
17058# Symbols that should not be listed in the preloaded symbols.
17059exclude_expsyms=$lt_exclude_expsyms_F77
17060
17061# Symbols that must always be exported.
17062include_expsyms=$lt_include_expsyms_F77
17063
17064# ### END LIBTOOL TAG CONFIG: $tagname
17065
17066__EOF__
17067
17068
17069else
17070  # If there is no Makefile yet, we rely on a make rule to execute
17071  # `config.status --recheck' to rerun these tests and create the
17072  # libtool script then.
17073  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17074  if test -f "$ltmain_in"; then
17075    test -f Makefile && make "$ltmain"
17076  fi
17077fi
17078
17079
17080ac_ext=c
17081ac_cpp='$CPP $CPPFLAGS'
17082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17084ac_compiler_gnu=$ac_cv_c_compiler_gnu
17085
17086CC="$lt_save_CC"
17087
17088	else
17089	  tagname=""
17090	fi
17091	;;
17092
17093      GCJ)
17094	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17095
17096
17097# Source file extension for Java test sources.
17098ac_ext=java
17099
17100# Object file extension for compiled Java test sources.
17101objext=o
17102objext_GCJ=$objext
17103
17104# Code to be used in simple compile tests
17105lt_simple_compile_test_code="class foo {}"
17106
17107# Code to be used in simple link tests
17108lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17109
17110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17111
17112# If no C compiler was specified, use CC.
17113LTCC=${LTCC-"$CC"}
17114
17115# If no C compiler flags were specified, use CFLAGS.
17116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17117
17118# Allow CC to be a program name with arguments.
17119compiler=$CC
17120
17121
17122# save warnings/boilerplate of simple test code
17123ac_outfile=conftest.$ac_objext
17124echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17125eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17126_lt_compiler_boilerplate=`cat conftest.err`
17127$rm conftest*
17128
17129ac_outfile=conftest.$ac_objext
17130echo "$lt_simple_link_test_code" >conftest.$ac_ext
17131eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17132_lt_linker_boilerplate=`cat conftest.err`
17133$rm conftest*
17134
17135
17136# Allow CC to be a program name with arguments.
17137lt_save_CC="$CC"
17138CC=${GCJ-"gcj"}
17139compiler=$CC
17140compiler_GCJ=$CC
17141for cc_temp in $compiler""; do
17142  case $cc_temp in
17143    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17144    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17145    \-*) ;;
17146    *) break;;
17147  esac
17148done
17149cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17150
17151
17152# GCJ did not exist at the time GCC didn't implicitly link libc in.
17153archive_cmds_need_lc_GCJ=no
17154
17155old_archive_cmds_GCJ=$old_archive_cmds
17156
17157
17158lt_prog_compiler_no_builtin_flag_GCJ=
17159
17160if test "$GCC" = yes; then
17161  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17162
17163
17164{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17165echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17166if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17167  echo $ECHO_N "(cached) $ECHO_C" >&6
17168else
17169  lt_cv_prog_compiler_rtti_exceptions=no
17170  ac_outfile=conftest.$ac_objext
17171   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17172   lt_compiler_flag="-fno-rtti -fno-exceptions"
17173   # Insert the option either (1) after the last *FLAGS variable, or
17174   # (2) before a word containing "conftest.", or (3) at the end.
17175   # Note that $ac_compile itself does not contain backslashes and begins
17176   # with a dollar sign (not a hyphen), so the echo should work correctly.
17177   # The option is referenced via a variable to avoid confusing sed.
17178   lt_compile=`echo "$ac_compile" | $SED \
17179   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17180   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17181   -e 's:$: $lt_compiler_flag:'`
17182   (eval echo "\"\$as_me:17182: $lt_compile\"" >&5)
17183   (eval "$lt_compile" 2>conftest.err)
17184   ac_status=$?
17185   cat conftest.err >&5
17186   echo "$as_me:17186: \$? = $ac_status" >&5
17187   if (exit $ac_status) && test -s "$ac_outfile"; then
17188     # The compiler can only warn and ignore the option if not recognized
17189     # So say no if there are warnings other than the usual output.
17190     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17191     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17192     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17193       lt_cv_prog_compiler_rtti_exceptions=yes
17194     fi
17195   fi
17196   $rm conftest*
17197
17198fi
17199{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17200echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17201
17202if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17203    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17204else
17205    :
17206fi
17207
17208fi
17209
17210lt_prog_compiler_wl_GCJ=
17211lt_prog_compiler_pic_GCJ=
17212lt_prog_compiler_static_GCJ=
17213
17214{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17215echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17216
17217  if test "$GCC" = yes; then
17218    lt_prog_compiler_wl_GCJ='-Wl,'
17219    lt_prog_compiler_static_GCJ='-static'
17220
17221    case $host_os in
17222      aix*)
17223      # All AIX code is PIC.
17224      if test "$host_cpu" = ia64; then
17225	# AIX 5 now supports IA64 processor
17226	lt_prog_compiler_static_GCJ='-Bstatic'
17227      fi
17228      ;;
17229
17230    amigaos*)
17231      # FIXME: we need at least 68020 code to build shared libraries, but
17232      # adding the `-m68020' flag to GCC prevents building anything better,
17233      # like `-m68040'.
17234      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17235      ;;
17236
17237    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17238      # PIC is the default for these OSes.
17239      ;;
17240
17241    mingw* | cygwin* | pw32* | os2*)
17242      # This hack is so that the source file can tell whether it is being
17243      # built for inclusion in a dll (and should export symbols for example).
17244      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17245      # (--disable-auto-import) libraries
17246      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17247      ;;
17248
17249    darwin* | rhapsody*)
17250      # PIC is the default on this platform
17251      # Common symbols not allowed in MH_DYLIB files
17252      lt_prog_compiler_pic_GCJ='-fno-common'
17253      ;;
17254
17255    interix[3-9]*)
17256      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17257      # Instead, we relocate shared libraries at runtime.
17258      ;;
17259
17260    msdosdjgpp*)
17261      # Just because we use GCC doesn't mean we suddenly get shared libraries
17262      # on systems that don't support them.
17263      lt_prog_compiler_can_build_shared_GCJ=no
17264      enable_shared=no
17265      ;;
17266
17267    sysv4*MP*)
17268      if test -d /usr/nec; then
17269	lt_prog_compiler_pic_GCJ=-Kconform_pic
17270      fi
17271      ;;
17272
17273    hpux*)
17274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17275      # not for PA HP-UX.
17276      case $host_cpu in
17277      hppa*64*|ia64*)
17278	# +Z the default
17279	;;
17280      *)
17281	lt_prog_compiler_pic_GCJ='-fPIC'
17282	;;
17283      esac
17284      ;;
17285
17286    *)
17287      lt_prog_compiler_pic_GCJ='-fPIC'
17288      ;;
17289    esac
17290  else
17291    # PORTME Check for flag to pass linker flags through the system compiler.
17292    case $host_os in
17293    aix*)
17294      lt_prog_compiler_wl_GCJ='-Wl,'
17295      if test "$host_cpu" = ia64; then
17296	# AIX 5 now supports IA64 processor
17297	lt_prog_compiler_static_GCJ='-Bstatic'
17298      else
17299	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17300      fi
17301      ;;
17302      darwin*)
17303        # PIC is the default on this platform
17304        # Common symbols not allowed in MH_DYLIB files
17305       case $cc_basename in
17306         xlc*)
17307         lt_prog_compiler_pic_GCJ='-qnocommon'
17308         lt_prog_compiler_wl_GCJ='-Wl,'
17309         ;;
17310       esac
17311       ;;
17312
17313    mingw* | cygwin* | pw32* | os2*)
17314      # This hack is so that the source file can tell whether it is being
17315      # built for inclusion in a dll (and should export symbols for example).
17316      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17317      ;;
17318
17319    hpux9* | hpux10* | hpux11*)
17320      lt_prog_compiler_wl_GCJ='-Wl,'
17321      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17322      # not for PA HP-UX.
17323      case $host_cpu in
17324      hppa*64*|ia64*)
17325	# +Z the default
17326	;;
17327      *)
17328	lt_prog_compiler_pic_GCJ='+Z'
17329	;;
17330      esac
17331      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17332      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17333      ;;
17334
17335    irix5* | irix6* | nonstopux*)
17336      lt_prog_compiler_wl_GCJ='-Wl,'
17337      # PIC (with -KPIC) is the default.
17338      lt_prog_compiler_static_GCJ='-non_shared'
17339      ;;
17340
17341    newsos6)
17342      lt_prog_compiler_pic_GCJ='-KPIC'
17343      lt_prog_compiler_static_GCJ='-Bstatic'
17344      ;;
17345
17346    linux* | k*bsd*-gnu)
17347      case $cc_basename in
17348      icc* | ecc*)
17349	lt_prog_compiler_wl_GCJ='-Wl,'
17350	lt_prog_compiler_pic_GCJ='-KPIC'
17351	lt_prog_compiler_static_GCJ='-static'
17352        ;;
17353      pgcc* | pgf77* | pgf90* | pgf95*)
17354        # Portland Group compilers (*not* the Pentium gcc compiler,
17355	# which looks to be a dead project)
17356	lt_prog_compiler_wl_GCJ='-Wl,'
17357	lt_prog_compiler_pic_GCJ='-fpic'
17358	lt_prog_compiler_static_GCJ='-Bstatic'
17359        ;;
17360      ccc*)
17361        lt_prog_compiler_wl_GCJ='-Wl,'
17362        # All Alpha code is PIC.
17363        lt_prog_compiler_static_GCJ='-non_shared'
17364        ;;
17365      *)
17366        case `$CC -V 2>&1 | sed 5q` in
17367	*Sun\ C*)
17368	  # Sun C 5.9
17369	  lt_prog_compiler_pic_GCJ='-KPIC'
17370	  lt_prog_compiler_static_GCJ='-Bstatic'
17371	  lt_prog_compiler_wl_GCJ='-Wl,'
17372	  ;;
17373	*Sun\ F*)
17374	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17375	  lt_prog_compiler_pic_GCJ='-KPIC'
17376	  lt_prog_compiler_static_GCJ='-Bstatic'
17377	  lt_prog_compiler_wl_GCJ=''
17378	  ;;
17379	esac
17380	;;
17381      esac
17382      ;;
17383
17384    osf3* | osf4* | osf5*)
17385      lt_prog_compiler_wl_GCJ='-Wl,'
17386      # All OSF/1 code is PIC.
17387      lt_prog_compiler_static_GCJ='-non_shared'
17388      ;;
17389
17390    rdos*)
17391      lt_prog_compiler_static_GCJ='-non_shared'
17392      ;;
17393
17394    solaris*)
17395      lt_prog_compiler_pic_GCJ='-KPIC'
17396      lt_prog_compiler_static_GCJ='-Bstatic'
17397      case $cc_basename in
17398      f77* | f90* | f95*)
17399	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17400      *)
17401	lt_prog_compiler_wl_GCJ='-Wl,';;
17402      esac
17403      ;;
17404
17405    sunos4*)
17406      lt_prog_compiler_wl_GCJ='-Qoption ld '
17407      lt_prog_compiler_pic_GCJ='-PIC'
17408      lt_prog_compiler_static_GCJ='-Bstatic'
17409      ;;
17410
17411    sysv4 | sysv4.2uw2* | sysv4.3*)
17412      lt_prog_compiler_wl_GCJ='-Wl,'
17413      lt_prog_compiler_pic_GCJ='-KPIC'
17414      lt_prog_compiler_static_GCJ='-Bstatic'
17415      ;;
17416
17417    sysv4*MP*)
17418      if test -d /usr/nec ;then
17419	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17420	lt_prog_compiler_static_GCJ='-Bstatic'
17421      fi
17422      ;;
17423
17424    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17425      lt_prog_compiler_wl_GCJ='-Wl,'
17426      lt_prog_compiler_pic_GCJ='-KPIC'
17427      lt_prog_compiler_static_GCJ='-Bstatic'
17428      ;;
17429
17430    unicos*)
17431      lt_prog_compiler_wl_GCJ='-Wl,'
17432      lt_prog_compiler_can_build_shared_GCJ=no
17433      ;;
17434
17435    uts4*)
17436      lt_prog_compiler_pic_GCJ='-pic'
17437      lt_prog_compiler_static_GCJ='-Bstatic'
17438      ;;
17439
17440    *)
17441      lt_prog_compiler_can_build_shared_GCJ=no
17442      ;;
17443    esac
17444  fi
17445
17446{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17447echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17448
17449#
17450# Check to make sure the PIC flag actually works.
17451#
17452if test -n "$lt_prog_compiler_pic_GCJ"; then
17453
17454{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17455echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17456if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17457  echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459  lt_prog_compiler_pic_works_GCJ=no
17460  ac_outfile=conftest.$ac_objext
17461   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17462   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17463   # Insert the option either (1) after the last *FLAGS variable, or
17464   # (2) before a word containing "conftest.", or (3) at the end.
17465   # Note that $ac_compile itself does not contain backslashes and begins
17466   # with a dollar sign (not a hyphen), so the echo should work correctly.
17467   # The option is referenced via a variable to avoid confusing sed.
17468   lt_compile=`echo "$ac_compile" | $SED \
17469   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17471   -e 's:$: $lt_compiler_flag:'`
17472   (eval echo "\"\$as_me:17472: $lt_compile\"" >&5)
17473   (eval "$lt_compile" 2>conftest.err)
17474   ac_status=$?
17475   cat conftest.err >&5
17476   echo "$as_me:17476: \$? = $ac_status" >&5
17477   if (exit $ac_status) && test -s "$ac_outfile"; then
17478     # The compiler can only warn and ignore the option if not recognized
17479     # So say no if there are warnings other than the usual output.
17480     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17481     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17482     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17483       lt_prog_compiler_pic_works_GCJ=yes
17484     fi
17485   fi
17486   $rm conftest*
17487
17488fi
17489{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17490echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17491
17492if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17493    case $lt_prog_compiler_pic_GCJ in
17494     "" | " "*) ;;
17495     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17496     esac
17497else
17498    lt_prog_compiler_pic_GCJ=
17499     lt_prog_compiler_can_build_shared_GCJ=no
17500fi
17501
17502fi
17503case $host_os in
17504  # For platforms which do not support PIC, -DPIC is meaningless:
17505  *djgpp*)
17506    lt_prog_compiler_pic_GCJ=
17507    ;;
17508  *)
17509    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17510    ;;
17511esac
17512
17513#
17514# Check to make sure the static flag actually works.
17515#
17516wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17517{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17518echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17519if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17520  echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522  lt_prog_compiler_static_works_GCJ=no
17523   save_LDFLAGS="$LDFLAGS"
17524   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17525   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17526   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17527     # The linker can only warn and ignore the option if not recognized
17528     # So say no if there are warnings
17529     if test -s conftest.err; then
17530       # Append any errors to the config.log.
17531       cat conftest.err 1>&5
17532       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17533       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17534       if diff conftest.exp conftest.er2 >/dev/null; then
17535         lt_prog_compiler_static_works_GCJ=yes
17536       fi
17537     else
17538       lt_prog_compiler_static_works_GCJ=yes
17539     fi
17540   fi
17541   $rm conftest*
17542   LDFLAGS="$save_LDFLAGS"
17543
17544fi
17545{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17546echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17547
17548if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17549    :
17550else
17551    lt_prog_compiler_static_GCJ=
17552fi
17553
17554
17555{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17556echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17557if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17558  echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560  lt_cv_prog_compiler_c_o_GCJ=no
17561   $rm -r conftest 2>/dev/null
17562   mkdir conftest
17563   cd conftest
17564   mkdir out
17565   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17566
17567   lt_compiler_flag="-o out/conftest2.$ac_objext"
17568   # Insert the option either (1) after the last *FLAGS variable, or
17569   # (2) before a word containing "conftest.", or (3) at the end.
17570   # Note that $ac_compile itself does not contain backslashes and begins
17571   # with a dollar sign (not a hyphen), so the echo should work correctly.
17572   lt_compile=`echo "$ac_compile" | $SED \
17573   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17574   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17575   -e 's:$: $lt_compiler_flag:'`
17576   (eval echo "\"\$as_me:17576: $lt_compile\"" >&5)
17577   (eval "$lt_compile" 2>out/conftest.err)
17578   ac_status=$?
17579   cat out/conftest.err >&5
17580   echo "$as_me:17580: \$? = $ac_status" >&5
17581   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17582   then
17583     # The compiler can only warn and ignore the option if not recognized
17584     # So say no if there are warnings
17585     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17586     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17587     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17588       lt_cv_prog_compiler_c_o_GCJ=yes
17589     fi
17590   fi
17591   chmod u+w . 2>&5
17592   $rm conftest*
17593   # SGI C++ compiler will create directory out/ii_files/ for
17594   # template instantiation
17595   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17596   $rm out/* && rmdir out
17597   cd ..
17598   rmdir conftest
17599   $rm conftest*
17600
17601fi
17602{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17603echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17604
17605
17606hard_links="nottested"
17607if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17608  # do not overwrite the value of need_locks provided by the user
17609  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17610echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17611  hard_links=yes
17612  $rm conftest*
17613  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17614  touch conftest.a
17615  ln conftest.a conftest.b 2>&5 || hard_links=no
17616  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17617  { echo "$as_me:$LINENO: result: $hard_links" >&5
17618echo "${ECHO_T}$hard_links" >&6; }
17619  if test "$hard_links" = no; then
17620    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17621echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17622    need_locks=warn
17623  fi
17624else
17625  need_locks=no
17626fi
17627
17628{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17630
17631  runpath_var=
17632  allow_undefined_flag_GCJ=
17633  enable_shared_with_static_runtimes_GCJ=no
17634  archive_cmds_GCJ=
17635  archive_expsym_cmds_GCJ=
17636  old_archive_From_new_cmds_GCJ=
17637  old_archive_from_expsyms_cmds_GCJ=
17638  export_dynamic_flag_spec_GCJ=
17639  whole_archive_flag_spec_GCJ=
17640  thread_safe_flag_spec_GCJ=
17641  hardcode_libdir_flag_spec_GCJ=
17642  hardcode_libdir_flag_spec_ld_GCJ=
17643  hardcode_libdir_separator_GCJ=
17644  hardcode_direct_GCJ=no
17645  hardcode_minus_L_GCJ=no
17646  hardcode_shlibpath_var_GCJ=unsupported
17647  link_all_deplibs_GCJ=unknown
17648  hardcode_automatic_GCJ=no
17649  module_cmds_GCJ=
17650  module_expsym_cmds_GCJ=
17651  always_export_symbols_GCJ=no
17652  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17653  # include_expsyms should be a list of space-separated symbols to be *always*
17654  # included in the symbol list
17655  include_expsyms_GCJ=
17656  # exclude_expsyms can be an extended regexp of symbols to exclude
17657  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17658  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17659  # as well as any symbol that contains `d'.
17660  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17661  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17662  # platforms (ab)use it in PIC code, but their linkers get confused if
17663  # the symbol is explicitly referenced.  Since portable code cannot
17664  # rely on this symbol name, it's probably fine to never include it in
17665  # preloaded symbol tables.
17666  extract_expsyms_cmds=
17667  # Just being paranoid about ensuring that cc_basename is set.
17668  for cc_temp in $compiler""; do
17669  case $cc_temp in
17670    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17671    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17672    \-*) ;;
17673    *) break;;
17674  esac
17675done
17676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17677
17678  case $host_os in
17679  cygwin* | mingw* | pw32*)
17680    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17681    # When not using gcc, we currently assume that we are using
17682    # Microsoft Visual C++.
17683    if test "$GCC" != yes; then
17684      with_gnu_ld=no
17685    fi
17686    ;;
17687  interix*)
17688    # we just hope/assume this is gcc and not c89 (= MSVC++)
17689    with_gnu_ld=yes
17690    ;;
17691  openbsd*)
17692    with_gnu_ld=no
17693    ;;
17694  esac
17695
17696  ld_shlibs_GCJ=yes
17697  if test "$with_gnu_ld" = yes; then
17698    # If archive_cmds runs LD, not CC, wlarc should be empty
17699    wlarc='${wl}'
17700
17701    # Set some defaults for GNU ld with shared library support. These
17702    # are reset later if shared libraries are not supported. Putting them
17703    # here allows them to be overridden if necessary.
17704    runpath_var=LD_RUN_PATH
17705    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17706    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17707    # ancient GNU ld didn't support --whole-archive et. al.
17708    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17709	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17710      else
17711  	whole_archive_flag_spec_GCJ=
17712    fi
17713    supports_anon_versioning=no
17714    case `$LD -v 2>/dev/null` in
17715      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17716      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17717      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17718      *\ 2.11.*) ;; # other 2.11 versions
17719      *) supports_anon_versioning=yes ;;
17720    esac
17721
17722    # See if GNU ld supports shared libraries.
17723    case $host_os in
17724    aix3* | aix4* | aix5*)
17725      # On AIX/PPC, the GNU linker is very broken
17726      if test "$host_cpu" != ia64; then
17727	ld_shlibs_GCJ=no
17728	cat <<EOF 1>&2
17729
17730*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17731*** to be unable to reliably create shared libraries on AIX.
17732*** Therefore, libtool is disabling shared libraries support.  If you
17733*** really care for shared libraries, you may want to modify your PATH
17734*** so that a non-GNU linker is found, and then restart.
17735
17736EOF
17737      fi
17738      ;;
17739
17740    amigaos*)
17741      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)'
17742      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17743      hardcode_minus_L_GCJ=yes
17744
17745      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17746      # that the semantics of dynamic libraries on AmigaOS, at least up
17747      # to version 4, is to share data among multiple programs linked
17748      # with the same dynamic library.  Since this doesn't match the
17749      # behavior of shared libraries on other platforms, we can't use
17750      # them.
17751      ld_shlibs_GCJ=no
17752      ;;
17753
17754    beos*)
17755      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17756	allow_undefined_flag_GCJ=unsupported
17757	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17758	# support --undefined.  This deserves some investigation.  FIXME
17759	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17760      else
17761	ld_shlibs_GCJ=no
17762      fi
17763      ;;
17764
17765    cygwin* | mingw* | pw32*)
17766      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17767      # as there is no search path for DLLs.
17768      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17769      allow_undefined_flag_GCJ=unsupported
17770      always_export_symbols_GCJ=no
17771      enable_shared_with_static_runtimes_GCJ=yes
17772      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17773
17774      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17775        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17776	# If the export-symbols file already is a .def file (1st line
17777	# is EXPORTS), use it as is; otherwise, prepend...
17778	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17779	  cp $export_symbols $output_objdir/$soname.def;
17780	else
17781	  echo EXPORTS > $output_objdir/$soname.def;
17782	  cat $export_symbols >> $output_objdir/$soname.def;
17783	fi~
17784	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17785      else
17786	ld_shlibs_GCJ=no
17787      fi
17788      ;;
17789
17790    interix[3-9]*)
17791      hardcode_direct_GCJ=no
17792      hardcode_shlibpath_var_GCJ=no
17793      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17794      export_dynamic_flag_spec_GCJ='${wl}-E'
17795      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17796      # Instead, shared libraries are loaded at an image base (0x10000000 by
17797      # default) and relocated if they conflict, which is a slow very memory
17798      # consuming and fragmenting process.  To avoid this, we pick a random,
17799      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17800      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17801      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'
17802      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'
17803      ;;
17804
17805    gnu* | linux* | k*bsd*-gnu)
17806      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17807	tmp_addflag=
17808	case $cc_basename,$host_cpu in
17809	pgcc*)				# Portland Group C compiler
17810	  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'
17811	  tmp_addflag=' $pic_flag'
17812	  ;;
17813	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17814	  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'
17815	  tmp_addflag=' $pic_flag -Mnomain' ;;
17816	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17817	  tmp_addflag=' -i_dynamic' ;;
17818	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17819	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17820	ifc* | ifort*)			# Intel Fortran compiler
17821	  tmp_addflag=' -nofor_main' ;;
17822	esac
17823	case `$CC -V 2>&1 | sed 5q` in
17824	*Sun\ C*)			# Sun C 5.9
17825	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17826	  tmp_sharedflag='-G' ;;
17827	*Sun\ F*)			# Sun Fortran 8.3
17828	  tmp_sharedflag='-G' ;;
17829	*)
17830	  tmp_sharedflag='-shared' ;;
17831	esac
17832	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833
17834	if test $supports_anon_versioning = yes; then
17835	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17836  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17837  $echo "local: *; };" >> $output_objdir/$libname.ver~
17838	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17839	fi
17840      else
17841	ld_shlibs_GCJ=no
17842      fi
17843      ;;
17844
17845    netbsd*)
17846      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17847	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17848	wlarc=
17849      else
17850	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17851	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17852      fi
17853      ;;
17854
17855    solaris*)
17856      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17857	ld_shlibs_GCJ=no
17858	cat <<EOF 1>&2
17859
17860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17861*** create shared libraries on Solaris systems.  Therefore, libtool
17862*** is disabling shared libraries support.  We urge you to upgrade GNU
17863*** binutils to release 2.9.1 or newer.  Another option is to modify
17864*** your PATH or compiler configuration so that the native linker is
17865*** used, and then restart.
17866
17867EOF
17868      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17869	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17870	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17871      else
17872	ld_shlibs_GCJ=no
17873      fi
17874      ;;
17875
17876    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17877      case `$LD -v 2>&1` in
17878        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17879	ld_shlibs_GCJ=no
17880	cat <<_LT_EOF 1>&2
17881
17882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17883*** reliably create shared libraries on SCO systems.  Therefore, libtool
17884*** is disabling shared libraries support.  We urge you to upgrade GNU
17885*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17886*** your PATH or compiler configuration so that the native linker is
17887*** used, and then restart.
17888
17889_LT_EOF
17890	;;
17891	*)
17892	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17893	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17894	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17895	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17896	  else
17897	    ld_shlibs_GCJ=no
17898	  fi
17899	;;
17900      esac
17901      ;;
17902
17903    sunos4*)
17904      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17905      wlarc=
17906      hardcode_direct_GCJ=yes
17907      hardcode_shlibpath_var_GCJ=no
17908      ;;
17909
17910    *)
17911      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17912	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17913	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17914      else
17915	ld_shlibs_GCJ=no
17916      fi
17917      ;;
17918    esac
17919
17920    if test "$ld_shlibs_GCJ" = no; then
17921      runpath_var=
17922      hardcode_libdir_flag_spec_GCJ=
17923      export_dynamic_flag_spec_GCJ=
17924      whole_archive_flag_spec_GCJ=
17925    fi
17926  else
17927    # PORTME fill in a description of your system's linker (not GNU ld)
17928    case $host_os in
17929    aix3*)
17930      allow_undefined_flag_GCJ=unsupported
17931      always_export_symbols_GCJ=yes
17932      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'
17933      # Note: this linker hardcodes the directories in LIBPATH if there
17934      # are no directories specified by -L.
17935      hardcode_minus_L_GCJ=yes
17936      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17937	# Neither direct hardcoding nor static linking is supported with a
17938	# broken collect2.
17939	hardcode_direct_GCJ=unsupported
17940      fi
17941      ;;
17942
17943    aix4* | aix5*)
17944      if test "$host_cpu" = ia64; then
17945	# On IA64, the linker does run time linking by default, so we don't
17946	# have to do anything special.
17947	aix_use_runtimelinking=no
17948	exp_sym_flag='-Bexport'
17949	no_entry_flag=""
17950      else
17951	# If we're using GNU nm, then we don't want the "-C" option.
17952	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17953	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17954	  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'
17955	else
17956	  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'
17957	fi
17958	aix_use_runtimelinking=no
17959
17960	# Test if we are trying to use run time linking or normal
17961	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17962	# need to do runtime linking.
17963	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17964	  for ld_flag in $LDFLAGS; do
17965  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17966  	    aix_use_runtimelinking=yes
17967  	    break
17968  	  fi
17969	  done
17970	  ;;
17971	esac
17972
17973	exp_sym_flag='-bexport'
17974	no_entry_flag='-bnoentry'
17975      fi
17976
17977      # When large executables or shared objects are built, AIX ld can
17978      # have problems creating the table of contents.  If linking a library
17979      # or program results in "error TOC overflow" add -mminimal-toc to
17980      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17981      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17982
17983      archive_cmds_GCJ=''
17984      hardcode_direct_GCJ=yes
17985      hardcode_libdir_separator_GCJ=':'
17986      link_all_deplibs_GCJ=yes
17987
17988      if test "$GCC" = yes; then
17989	case $host_os in aix4.[012]|aix4.[012].*)
17990	# We only want to do this on AIX 4.2 and lower, the check
17991	# below for broken collect2 doesn't work under 4.3+
17992	  collect2name=`${CC} -print-prog-name=collect2`
17993	  if test -f "$collect2name" && \
17994  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17995	  then
17996  	  # We have reworked collect2
17997  	  :
17998	  else
17999  	  # We have old collect2
18000  	  hardcode_direct_GCJ=unsupported
18001  	  # It fails to find uninstalled libraries when the uninstalled
18002  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18003  	  # to unsupported forces relinking
18004  	  hardcode_minus_L_GCJ=yes
18005  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18006  	  hardcode_libdir_separator_GCJ=
18007	  fi
18008	  ;;
18009	esac
18010	shared_flag='-shared'
18011	if test "$aix_use_runtimelinking" = yes; then
18012	  shared_flag="$shared_flag "'${wl}-G'
18013	fi
18014      else
18015	# not using gcc
18016	if test "$host_cpu" = ia64; then
18017  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18018  	# chokes on -Wl,-G. The following line is correct:
18019	  shared_flag='-G'
18020	else
18021	  if test "$aix_use_runtimelinking" = yes; then
18022	    shared_flag='${wl}-G'
18023	  else
18024	    shared_flag='${wl}-bM:SRE'
18025	  fi
18026	fi
18027      fi
18028
18029      # It seems that -bexpall does not export symbols beginning with
18030      # underscore (_), so it is better to generate a list of symbols to export.
18031      always_export_symbols_GCJ=yes
18032      if test "$aix_use_runtimelinking" = yes; then
18033	# Warning - without using the other runtime loading flags (-brtl),
18034	# -berok will link without error, but may produce a broken library.
18035	allow_undefined_flag_GCJ='-berok'
18036       # Determine the default libpath from the value encoded in an empty executable.
18037       cat >conftest.$ac_ext <<_ACEOF
18038/* confdefs.h.  */
18039_ACEOF
18040cat confdefs.h >>conftest.$ac_ext
18041cat >>conftest.$ac_ext <<_ACEOF
18042/* end confdefs.h.  */
18043
18044int
18045main ()
18046{
18047
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext conftest$ac_exeext
18053if { (ac_try="$ac_link"
18054case "(($ac_try" in
18055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056  *) ac_try_echo=$ac_try;;
18057esac
18058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059  (eval "$ac_link") 2>conftest.er1
18060  ac_status=$?
18061  grep -v '^ *+' conftest.er1 >conftest.err
18062  rm -f conftest.er1
18063  cat conftest.err >&5
18064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065  (exit $ac_status); } && {
18066	 test -z "$ac_c_werror_flag" ||
18067	 test ! -s conftest.err
18068       } && test -s conftest$ac_exeext &&
18069       $as_test_x conftest$ac_exeext; then
18070
18071lt_aix_libpath_sed='
18072    /Import File Strings/,/^$/ {
18073	/^0/ {
18074	    s/^0  *\(.*\)$/\1/
18075	    p
18076	}
18077    }'
18078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18079# Check for a 64-bit object if we didn't find anything.
18080if test -z "$aix_libpath"; then
18081  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18082fi
18083else
18084  echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087
18088fi
18089
18090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091      conftest$ac_exeext conftest.$ac_ext
18092if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18093
18094       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18095	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"
18096       else
18097	if test "$host_cpu" = ia64; then
18098	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18099	  allow_undefined_flag_GCJ="-z nodefs"
18100	  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"
18101	else
18102	 # Determine the default libpath from the value encoded in an empty executable.
18103	 cat >conftest.$ac_ext <<_ACEOF
18104/* confdefs.h.  */
18105_ACEOF
18106cat confdefs.h >>conftest.$ac_ext
18107cat >>conftest.$ac_ext <<_ACEOF
18108/* end confdefs.h.  */
18109
18110int
18111main ()
18112{
18113
18114  ;
18115  return 0;
18116}
18117_ACEOF
18118rm -f conftest.$ac_objext conftest$ac_exeext
18119if { (ac_try="$ac_link"
18120case "(($ac_try" in
18121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122  *) ac_try_echo=$ac_try;;
18123esac
18124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125  (eval "$ac_link") 2>conftest.er1
18126  ac_status=$?
18127  grep -v '^ *+' conftest.er1 >conftest.err
18128  rm -f conftest.er1
18129  cat conftest.err >&5
18130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131  (exit $ac_status); } && {
18132	 test -z "$ac_c_werror_flag" ||
18133	 test ! -s conftest.err
18134       } && test -s conftest$ac_exeext &&
18135       $as_test_x conftest$ac_exeext; then
18136
18137lt_aix_libpath_sed='
18138    /Import File Strings/,/^$/ {
18139	/^0/ {
18140	    s/^0  *\(.*\)$/\1/
18141	    p
18142	}
18143    }'
18144aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18145# Check for a 64-bit object if we didn't find anything.
18146if test -z "$aix_libpath"; then
18147  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18148fi
18149else
18150  echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153
18154fi
18155
18156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157      conftest$ac_exeext conftest.$ac_ext
18158if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18159
18160	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18161	  # Warning - without using the other run time loading flags,
18162	  # -berok will link without error, but may produce a broken library.
18163	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18164	  allow_undefined_flag_GCJ=' ${wl}-berok'
18165	  # Exported symbols can be pulled into shared objects from archives
18166	  whole_archive_flag_spec_GCJ='$convenience'
18167	  archive_cmds_need_lc_GCJ=yes
18168	  # This is similar to how AIX traditionally builds its shared libraries.
18169	  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'
18170	fi
18171      fi
18172      ;;
18173
18174    amigaos*)
18175      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)'
18176      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18177      hardcode_minus_L_GCJ=yes
18178      # see comment about different semantics on the GNU ld section
18179      ld_shlibs_GCJ=no
18180      ;;
18181
18182    bsdi[45]*)
18183      export_dynamic_flag_spec_GCJ=-rdynamic
18184      ;;
18185
18186    cygwin* | mingw* | pw32*)
18187      # When not using gcc, we currently assume that we are using
18188      # Microsoft Visual C++.
18189      # hardcode_libdir_flag_spec is actually meaningless, as there is
18190      # no search path for DLLs.
18191      hardcode_libdir_flag_spec_GCJ=' '
18192      allow_undefined_flag_GCJ=unsupported
18193      # Tell ltmain to make .lib files, not .a files.
18194      libext=lib
18195      # Tell ltmain to make .dll files, not .so files.
18196      shrext_cmds=".dll"
18197      # FIXME: Setting linknames here is a bad hack.
18198      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18199      # The linker will automatically build a .lib file if we build a DLL.
18200      old_archive_From_new_cmds_GCJ='true'
18201      # FIXME: Should let the user specify the lib program.
18202      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18203      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18204      enable_shared_with_static_runtimes_GCJ=yes
18205      ;;
18206
18207    darwin* | rhapsody*)
18208      case $host_os in
18209        rhapsody* | darwin1.[012])
18210         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18211         ;;
18212       *) # Darwin 1.3 on
18213         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18214           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18215         else
18216           case ${MACOSX_DEPLOYMENT_TARGET} in
18217             10.[012])
18218               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18219               ;;
18220             10.*)
18221               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18222               ;;
18223           esac
18224         fi
18225         ;;
18226      esac
18227      archive_cmds_need_lc_GCJ=no
18228      hardcode_direct_GCJ=no
18229      hardcode_automatic_GCJ=yes
18230      hardcode_shlibpath_var_GCJ=unsupported
18231      whole_archive_flag_spec_GCJ=''
18232      link_all_deplibs_GCJ=yes
18233    if test "$GCC" = yes ; then
18234    	output_verbose_link_cmd='echo'
18235        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18236      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18237      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18238      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}'
18239      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}'
18240    else
18241      case $cc_basename in
18242        xlc*)
18243         output_verbose_link_cmd='echo'
18244         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18245         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18246          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18247         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18248          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}'
18249          ;;
18250       *)
18251         ld_shlibs_GCJ=no
18252          ;;
18253      esac
18254    fi
18255      ;;
18256
18257    dgux*)
18258      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18260      hardcode_shlibpath_var_GCJ=no
18261      ;;
18262
18263    freebsd1*)
18264      ld_shlibs_GCJ=no
18265      ;;
18266
18267    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18268    # support.  Future versions do this automatically, but an explicit c++rt0.o
18269    # does not break anything, and helps significantly (at the cost of a little
18270    # extra space).
18271    freebsd2.2*)
18272      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18273      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18274      hardcode_direct_GCJ=yes
18275      hardcode_shlibpath_var_GCJ=no
18276      ;;
18277
18278    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18279    freebsd2*)
18280      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18281      hardcode_direct_GCJ=yes
18282      hardcode_minus_L_GCJ=yes
18283      hardcode_shlibpath_var_GCJ=no
18284      ;;
18285
18286    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18287    freebsd* | dragonfly*)
18288      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18289      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18290      hardcode_direct_GCJ=yes
18291      hardcode_shlibpath_var_GCJ=no
18292      ;;
18293
18294    hpux9*)
18295      if test "$GCC" = yes; then
18296	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'
18297      else
18298	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'
18299      fi
18300      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18301      hardcode_libdir_separator_GCJ=:
18302      hardcode_direct_GCJ=yes
18303
18304      # hardcode_minus_L: Not really in the search PATH,
18305      # but as the default location of the library.
18306      hardcode_minus_L_GCJ=yes
18307      export_dynamic_flag_spec_GCJ='${wl}-E'
18308      ;;
18309
18310    hpux10*)
18311      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18312	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18313      else
18314	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18315      fi
18316      if test "$with_gnu_ld" = no; then
18317	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18318	hardcode_libdir_separator_GCJ=:
18319
18320	hardcode_direct_GCJ=yes
18321	export_dynamic_flag_spec_GCJ='${wl}-E'
18322
18323	# hardcode_minus_L: Not really in the search PATH,
18324	# but as the default location of the library.
18325	hardcode_minus_L_GCJ=yes
18326      fi
18327      ;;
18328
18329    hpux11*)
18330      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18331	case $host_cpu in
18332	hppa*64*)
18333	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334	  ;;
18335	ia64*)
18336	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18337	  ;;
18338	*)
18339	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18340	  ;;
18341	esac
18342      else
18343	case $host_cpu in
18344	hppa*64*)
18345	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18346	  ;;
18347	ia64*)
18348	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18349	  ;;
18350	*)
18351	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18352	  ;;
18353	esac
18354      fi
18355      if test "$with_gnu_ld" = no; then
18356	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18357	hardcode_libdir_separator_GCJ=:
18358
18359	case $host_cpu in
18360	hppa*64*|ia64*)
18361	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18362	  hardcode_direct_GCJ=no
18363	  hardcode_shlibpath_var_GCJ=no
18364	  ;;
18365	*)
18366	  hardcode_direct_GCJ=yes
18367	  export_dynamic_flag_spec_GCJ='${wl}-E'
18368
18369	  # hardcode_minus_L: Not really in the search PATH,
18370	  # but as the default location of the library.
18371	  hardcode_minus_L_GCJ=yes
18372	  ;;
18373	esac
18374      fi
18375      ;;
18376
18377    irix5* | irix6* | nonstopux*)
18378      if test "$GCC" = yes; then
18379	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'
18380      else
18381	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'
18382	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18383      fi
18384      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18385      hardcode_libdir_separator_GCJ=:
18386      link_all_deplibs_GCJ=yes
18387      ;;
18388
18389    netbsd*)
18390      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18391	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18392      else
18393	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18394      fi
18395      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18396      hardcode_direct_GCJ=yes
18397      hardcode_shlibpath_var_GCJ=no
18398      ;;
18399
18400    newsos6)
18401      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18402      hardcode_direct_GCJ=yes
18403      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18404      hardcode_libdir_separator_GCJ=:
18405      hardcode_shlibpath_var_GCJ=no
18406      ;;
18407
18408    openbsd*)
18409      if test -f /usr/libexec/ld.so; then
18410	hardcode_direct_GCJ=yes
18411	hardcode_shlibpath_var_GCJ=no
18412	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18413	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18414	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18415	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18416	  export_dynamic_flag_spec_GCJ='${wl}-E'
18417	else
18418	  case $host_os in
18419	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18420	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18421	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18422	     ;;
18423	   *)
18424	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18425	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18426	     ;;
18427	  esac
18428        fi
18429      else
18430	ld_shlibs_GCJ=no
18431      fi
18432      ;;
18433
18434    os2*)
18435      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18436      hardcode_minus_L_GCJ=yes
18437      allow_undefined_flag_GCJ=unsupported
18438      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'
18439      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18440      ;;
18441
18442    osf3*)
18443      if test "$GCC" = yes; then
18444	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18445	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'
18446      else
18447	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18448	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'
18449      fi
18450      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18451      hardcode_libdir_separator_GCJ=:
18452      ;;
18453
18454    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18455      if test "$GCC" = yes; then
18456	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18457	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'
18458	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18459      else
18460	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18461	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'
18462	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~
18463	$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'
18464
18465	# Both c and cxx compiler support -rpath directly
18466	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18467      fi
18468      hardcode_libdir_separator_GCJ=:
18469      ;;
18470
18471    solaris*)
18472      no_undefined_flag_GCJ=' -z text'
18473      if test "$GCC" = yes; then
18474	wlarc='${wl}'
18475	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18476	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18477	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18478      else
18479	wlarc=''
18480	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18482  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18483      fi
18484      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18485      hardcode_shlibpath_var_GCJ=no
18486      case $host_os in
18487      solaris2.[0-5] | solaris2.[0-5].*) ;;
18488      *)
18489	# The compiler driver will combine and reorder linker options,
18490	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18491	# but is careful enough not to reorder.
18492 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18493	if test "$GCC" = yes; then
18494	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18495	else
18496	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18497	fi
18498	;;
18499      esac
18500      link_all_deplibs_GCJ=yes
18501      ;;
18502
18503    sunos4*)
18504      if test "x$host_vendor" = xsequent; then
18505	# Use $CC to link under sequent, because it throws in some extra .o
18506	# files that make .init and .fini sections work.
18507	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18508      else
18509	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18510      fi
18511      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18512      hardcode_direct_GCJ=yes
18513      hardcode_minus_L_GCJ=yes
18514      hardcode_shlibpath_var_GCJ=no
18515      ;;
18516
18517    sysv4)
18518      case $host_vendor in
18519	sni)
18520	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18521	  hardcode_direct_GCJ=yes # is this really true???
18522	;;
18523	siemens)
18524	  ## LD is ld it makes a PLAMLIB
18525	  ## CC just makes a GrossModule.
18526	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18527	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18528	  hardcode_direct_GCJ=no
18529        ;;
18530	motorola)
18531	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18532	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18533	;;
18534      esac
18535      runpath_var='LD_RUN_PATH'
18536      hardcode_shlibpath_var_GCJ=no
18537      ;;
18538
18539    sysv4.3*)
18540      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18541      hardcode_shlibpath_var_GCJ=no
18542      export_dynamic_flag_spec_GCJ='-Bexport'
18543      ;;
18544
18545    sysv4*MP*)
18546      if test -d /usr/nec; then
18547	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18548	hardcode_shlibpath_var_GCJ=no
18549	runpath_var=LD_RUN_PATH
18550	hardcode_runpath_var=yes
18551	ld_shlibs_GCJ=yes
18552      fi
18553      ;;
18554
18555    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18556      no_undefined_flag_GCJ='${wl}-z,text'
18557      archive_cmds_need_lc_GCJ=no
18558      hardcode_shlibpath_var_GCJ=no
18559      runpath_var='LD_RUN_PATH'
18560
18561      if test "$GCC" = yes; then
18562	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18563	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18564      else
18565	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18566	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18567      fi
18568      ;;
18569
18570    sysv5* | sco3.2v5* | sco5v6*)
18571      # Note: We can NOT use -z defs as we might desire, because we do not
18572      # link with -lc, and that would cause any symbols used from libc to
18573      # always be unresolved, which means just about no library would
18574      # ever link correctly.  If we're not using GNU ld we use -z text
18575      # though, which does catch some bad symbols but isn't as heavy-handed
18576      # as -z defs.
18577      no_undefined_flag_GCJ='${wl}-z,text'
18578      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18579      archive_cmds_need_lc_GCJ=no
18580      hardcode_shlibpath_var_GCJ=no
18581      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18582      hardcode_libdir_separator_GCJ=':'
18583      link_all_deplibs_GCJ=yes
18584      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18585      runpath_var='LD_RUN_PATH'
18586
18587      if test "$GCC" = yes; then
18588	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18589	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18590      else
18591	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18592	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18593      fi
18594      ;;
18595
18596    uts4*)
18597      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18598      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18599      hardcode_shlibpath_var_GCJ=no
18600      ;;
18601
18602    *)
18603      ld_shlibs_GCJ=no
18604      ;;
18605    esac
18606  fi
18607
18608{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18609echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18610test "$ld_shlibs_GCJ" = no && can_build_shared=no
18611
18612#
18613# Do we need to explicitly link libc?
18614#
18615case "x$archive_cmds_need_lc_GCJ" in
18616x|xyes)
18617  # Assume -lc should be added
18618  archive_cmds_need_lc_GCJ=yes
18619
18620  if test "$enable_shared" = yes && test "$GCC" = yes; then
18621    case $archive_cmds_GCJ in
18622    *'~'*)
18623      # FIXME: we may have to deal with multi-command sequences.
18624      ;;
18625    '$CC '*)
18626      # Test whether the compiler implicitly links with -lc since on some
18627      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18628      # to ld, don't add -lc before -lgcc.
18629      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18630echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18631      $rm conftest*
18632      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18633
18634      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635  (eval $ac_compile) 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); } 2>conftest.err; then
18639        soname=conftest
18640        lib=conftest
18641        libobjs=conftest.$ac_objext
18642        deplibs=
18643        wl=$lt_prog_compiler_wl_GCJ
18644	pic_flag=$lt_prog_compiler_pic_GCJ
18645        compiler_flags=-v
18646        linker_flags=-v
18647        verstring=
18648        output_objdir=.
18649        libname=conftest
18650        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18651        allow_undefined_flag_GCJ=
18652        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18653  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18654  ac_status=$?
18655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656  (exit $ac_status); }
18657        then
18658	  archive_cmds_need_lc_GCJ=no
18659        else
18660	  archive_cmds_need_lc_GCJ=yes
18661        fi
18662        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18663      else
18664        cat conftest.err 1>&5
18665      fi
18666      $rm conftest*
18667      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18668echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18669      ;;
18670    esac
18671  fi
18672  ;;
18673esac
18674
18675{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18676echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18677library_names_spec=
18678libname_spec='lib$name'
18679soname_spec=
18680shrext_cmds=".so"
18681postinstall_cmds=
18682postuninstall_cmds=
18683finish_cmds=
18684finish_eval=
18685shlibpath_var=
18686shlibpath_overrides_runpath=unknown
18687version_type=none
18688dynamic_linker="$host_os ld.so"
18689sys_lib_dlsearch_path_spec="/lib /usr/lib"
18690
18691need_lib_prefix=unknown
18692hardcode_into_libs=no
18693
18694# when you set need_version to no, make sure it does not cause -set_version
18695# flags to be left without arguments
18696need_version=unknown
18697
18698case $host_os in
18699aix3*)
18700  version_type=linux
18701  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18702  shlibpath_var=LIBPATH
18703
18704  # AIX 3 has no versioning support, so we append a major version to the name.
18705  soname_spec='${libname}${release}${shared_ext}$major'
18706  ;;
18707
18708aix4* | aix5*)
18709  version_type=linux
18710  need_lib_prefix=no
18711  need_version=no
18712  hardcode_into_libs=yes
18713  if test "$host_cpu" = ia64; then
18714    # AIX 5 supports IA64
18715    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18716    shlibpath_var=LD_LIBRARY_PATH
18717  else
18718    # With GCC up to 2.95.x, collect2 would create an import file
18719    # for dependence libraries.  The import file would start with
18720    # the line `#! .'.  This would cause the generated library to
18721    # depend on `.', always an invalid library.  This was fixed in
18722    # development snapshots of GCC prior to 3.0.
18723    case $host_os in
18724      aix4 | aix4.[01] | aix4.[01].*)
18725      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18726	   echo ' yes '
18727	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18728	:
18729      else
18730	can_build_shared=no
18731      fi
18732      ;;
18733    esac
18734    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18735    # soname into executable. Probably we can add versioning support to
18736    # collect2, so additional links can be useful in future.
18737    if test "$aix_use_runtimelinking" = yes; then
18738      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18739      # instead of lib<name>.a to let people know that these are not
18740      # typical AIX shared libraries.
18741      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742    else
18743      # We preserve .a as extension for shared libraries through AIX4.2
18744      # and later when we are not doing run time linking.
18745      library_names_spec='${libname}${release}.a $libname.a'
18746      soname_spec='${libname}${release}${shared_ext}$major'
18747    fi
18748    shlibpath_var=LIBPATH
18749  fi
18750  ;;
18751
18752amigaos*)
18753  library_names_spec='$libname.ixlibrary $libname.a'
18754  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18755  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'
18756  ;;
18757
18758beos*)
18759  library_names_spec='${libname}${shared_ext}'
18760  dynamic_linker="$host_os ld.so"
18761  shlibpath_var=LIBRARY_PATH
18762  ;;
18763
18764bsdi[45]*)
18765  version_type=linux
18766  need_version=no
18767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768  soname_spec='${libname}${release}${shared_ext}$major'
18769  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18770  shlibpath_var=LD_LIBRARY_PATH
18771  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18772  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18773  # the default ld.so.conf also contains /usr/contrib/lib and
18774  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18775  # libtool to hard-code these into programs
18776  ;;
18777
18778cygwin* | mingw* | pw32*)
18779  version_type=windows
18780  shrext_cmds=".dll"
18781  need_version=no
18782  need_lib_prefix=no
18783
18784  case $GCC,$host_os in
18785  yes,cygwin* | yes,mingw* | yes,pw32*)
18786    library_names_spec='$libname.dll.a'
18787    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18788    postinstall_cmds='base_file=`basename \${file}`~
18789      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18790      dldir=$destdir/`dirname \$dlpath`~
18791      test -d \$dldir || mkdir -p \$dldir~
18792      $install_prog $dir/$dlname \$dldir/$dlname~
18793      chmod a+x \$dldir/$dlname'
18794    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18795      dlpath=$dir/\$dldll~
18796       $rm \$dlpath'
18797    shlibpath_overrides_runpath=yes
18798
18799    case $host_os in
18800    cygwin*)
18801      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18802      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18803      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18804      ;;
18805    mingw*)
18806      # MinGW DLLs use traditional 'lib' prefix
18807      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18808      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18809      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18810        # It is most probably a Windows format PATH printed by
18811        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18812        # path with ; separators, and with drive letters. We can handle the
18813        # drive letters (cygwin fileutils understands them), so leave them,
18814        # especially as we might pass files found there to a mingw objdump,
18815        # which wouldn't understand a cygwinified path. Ahh.
18816        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18817      else
18818        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18819      fi
18820      ;;
18821    pw32*)
18822      # pw32 DLLs use 'pw' prefix rather than 'lib'
18823      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18824      ;;
18825    esac
18826    ;;
18827
18828  *)
18829    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18830    ;;
18831  esac
18832  dynamic_linker='Win32 ld.exe'
18833  # FIXME: first we should search . and the directory the executable is in
18834  shlibpath_var=PATH
18835  ;;
18836
18837darwin* | rhapsody*)
18838  dynamic_linker="$host_os dyld"
18839  version_type=darwin
18840  need_lib_prefix=no
18841  need_version=no
18842  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18843  soname_spec='${libname}${release}${major}$shared_ext'
18844  shlibpath_overrides_runpath=yes
18845  shlibpath_var=DYLD_LIBRARY_PATH
18846  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18847
18848  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18849  ;;
18850
18851dgux*)
18852  version_type=linux
18853  need_lib_prefix=no
18854  need_version=no
18855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18856  soname_spec='${libname}${release}${shared_ext}$major'
18857  shlibpath_var=LD_LIBRARY_PATH
18858  ;;
18859
18860freebsd1*)
18861  dynamic_linker=no
18862  ;;
18863
18864freebsd* | dragonfly*)
18865  # DragonFly does not have aout.  When/if they implement a new
18866  # versioning mechanism, adjust this.
18867  if test -x /usr/bin/objformat; then
18868    objformat=`/usr/bin/objformat`
18869  else
18870    case $host_os in
18871    freebsd[123]*) objformat=aout ;;
18872    *) objformat=elf ;;
18873    esac
18874  fi
18875  version_type=freebsd-$objformat
18876  case $version_type in
18877    freebsd-elf*)
18878      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18879      need_version=no
18880      need_lib_prefix=no
18881      ;;
18882    freebsd-*)
18883      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18884      need_version=yes
18885      ;;
18886  esac
18887  shlibpath_var=LD_LIBRARY_PATH
18888  case $host_os in
18889  freebsd2*)
18890    shlibpath_overrides_runpath=yes
18891    ;;
18892  freebsd3.[01]* | freebsdelf3.[01]*)
18893    shlibpath_overrides_runpath=yes
18894    hardcode_into_libs=yes
18895    ;;
18896  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18897  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18898    shlibpath_overrides_runpath=no
18899    hardcode_into_libs=yes
18900    ;;
18901  *) # from 4.6 on, and DragonFly
18902    shlibpath_overrides_runpath=yes
18903    hardcode_into_libs=yes
18904    ;;
18905  esac
18906  ;;
18907
18908gnu*)
18909  version_type=linux
18910  need_lib_prefix=no
18911  need_version=no
18912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18913  soname_spec='${libname}${release}${shared_ext}$major'
18914  shlibpath_var=LD_LIBRARY_PATH
18915  hardcode_into_libs=yes
18916  ;;
18917
18918hpux9* | hpux10* | hpux11*)
18919  # Give a soname corresponding to the major version so that dld.sl refuses to
18920  # link against other versions.
18921  version_type=sunos
18922  need_lib_prefix=no
18923  need_version=no
18924  case $host_cpu in
18925  ia64*)
18926    shrext_cmds='.so'
18927    hardcode_into_libs=yes
18928    dynamic_linker="$host_os dld.so"
18929    shlibpath_var=LD_LIBRARY_PATH
18930    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932    soname_spec='${libname}${release}${shared_ext}$major'
18933    if test "X$HPUX_IA64_MODE" = X32; then
18934      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18935    else
18936      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18937    fi
18938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18939    ;;
18940   hppa*64*)
18941     shrext_cmds='.sl'
18942     hardcode_into_libs=yes
18943     dynamic_linker="$host_os dld.sl"
18944     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947     soname_spec='${libname}${release}${shared_ext}$major'
18948     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18950     ;;
18951   *)
18952    shrext_cmds='.sl'
18953    dynamic_linker="$host_os dld.sl"
18954    shlibpath_var=SHLIB_PATH
18955    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18957    soname_spec='${libname}${release}${shared_ext}$major'
18958    ;;
18959  esac
18960  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18961  postinstall_cmds='chmod 555 $lib'
18962  ;;
18963
18964interix[3-9]*)
18965  version_type=linux
18966  need_lib_prefix=no
18967  need_version=no
18968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18969  soname_spec='${libname}${release}${shared_ext}$major'
18970  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18971  shlibpath_var=LD_LIBRARY_PATH
18972  shlibpath_overrides_runpath=no
18973  hardcode_into_libs=yes
18974  ;;
18975
18976irix5* | irix6* | nonstopux*)
18977  case $host_os in
18978    nonstopux*) version_type=nonstopux ;;
18979    *)
18980	if test "$lt_cv_prog_gnu_ld" = yes; then
18981		version_type=linux
18982	else
18983		version_type=irix
18984	fi ;;
18985  esac
18986  need_lib_prefix=no
18987  need_version=no
18988  soname_spec='${libname}${release}${shared_ext}$major'
18989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18990  case $host_os in
18991  irix5* | nonstopux*)
18992    libsuff= shlibsuff=
18993    ;;
18994  *)
18995    case $LD in # libtool.m4 will add one of these switches to LD
18996    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18997      libsuff= shlibsuff= libmagic=32-bit;;
18998    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18999      libsuff=32 shlibsuff=N32 libmagic=N32;;
19000    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19001      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19002    *) libsuff= shlibsuff= libmagic=never-match;;
19003    esac
19004    ;;
19005  esac
19006  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19007  shlibpath_overrides_runpath=no
19008  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19009  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19010  hardcode_into_libs=yes
19011  ;;
19012
19013# No shared lib support for Linux oldld, aout, or coff.
19014linux*oldld* | linux*aout* | linux*coff*)
19015  dynamic_linker=no
19016  ;;
19017
19018# This must be Linux ELF.
19019linux* | k*bsd*-gnu)
19020  version_type=linux
19021  need_lib_prefix=no
19022  need_version=no
19023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024  soname_spec='${libname}${release}${shared_ext}$major'
19025  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19026  shlibpath_var=LD_LIBRARY_PATH
19027  shlibpath_overrides_runpath=no
19028  # This implies no fast_install, which is unacceptable.
19029  # Some rework will be needed to allow for fast_install
19030  # before this can be enabled.
19031  hardcode_into_libs=yes
19032  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19033  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19034
19035  # Append ld.so.conf contents to the search path
19036  if test -f /etc/ld.so.conf; then
19037    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19038    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19039  fi
19040
19041  # We used to test for /lib/ld.so.1 and disable shared libraries on
19042  # powerpc, because MkLinux only supported shared libraries with the
19043  # GNU dynamic linker.  Since this was broken with cross compilers,
19044  # most powerpc-linux boxes support dynamic linking these days and
19045  # people can always --disable-shared, the test was removed, and we
19046  # assume the GNU/Linux dynamic linker is in use.
19047  dynamic_linker='GNU/Linux ld.so'
19048  ;;
19049
19050netbsd*)
19051  version_type=sunos
19052  need_lib_prefix=no
19053  need_version=no
19054  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19056    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19057    dynamic_linker='NetBSD (a.out) ld.so'
19058  else
19059    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19060    soname_spec='${libname}${release}${shared_ext}$major'
19061    dynamic_linker='NetBSD ld.elf_so'
19062  fi
19063  shlibpath_var=LD_LIBRARY_PATH
19064  shlibpath_overrides_runpath=yes
19065  hardcode_into_libs=yes
19066  ;;
19067
19068newsos6)
19069  version_type=linux
19070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19071  shlibpath_var=LD_LIBRARY_PATH
19072  shlibpath_overrides_runpath=yes
19073  ;;
19074
19075nto-qnx*)
19076  version_type=linux
19077  need_lib_prefix=no
19078  need_version=no
19079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080  soname_spec='${libname}${release}${shared_ext}$major'
19081  shlibpath_var=LD_LIBRARY_PATH
19082  shlibpath_overrides_runpath=yes
19083  ;;
19084
19085openbsd*)
19086  version_type=sunos
19087  sys_lib_dlsearch_path_spec="/usr/lib"
19088  need_lib_prefix=no
19089  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19090  case $host_os in
19091    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19092    *)                         need_version=no  ;;
19093  esac
19094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19095  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19096  shlibpath_var=LD_LIBRARY_PATH
19097  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19098    case $host_os in
19099      openbsd2.[89] | openbsd2.[89].*)
19100	shlibpath_overrides_runpath=no
19101	;;
19102      *)
19103	shlibpath_overrides_runpath=yes
19104	;;
19105      esac
19106  else
19107    shlibpath_overrides_runpath=yes
19108  fi
19109  ;;
19110
19111os2*)
19112  libname_spec='$name'
19113  shrext_cmds=".dll"
19114  need_lib_prefix=no
19115  library_names_spec='$libname${shared_ext} $libname.a'
19116  dynamic_linker='OS/2 ld.exe'
19117  shlibpath_var=LIBPATH
19118  ;;
19119
19120osf3* | osf4* | osf5*)
19121  version_type=osf
19122  need_lib_prefix=no
19123  need_version=no
19124  soname_spec='${libname}${release}${shared_ext}$major'
19125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126  shlibpath_var=LD_LIBRARY_PATH
19127  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19128  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19129  ;;
19130
19131rdos*)
19132  dynamic_linker=no
19133  ;;
19134
19135solaris*)
19136  version_type=linux
19137  need_lib_prefix=no
19138  need_version=no
19139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19140  soname_spec='${libname}${release}${shared_ext}$major'
19141  shlibpath_var=LD_LIBRARY_PATH
19142  shlibpath_overrides_runpath=yes
19143  hardcode_into_libs=yes
19144  # ldd complains unless libraries are executable
19145  postinstall_cmds='chmod +x $lib'
19146  ;;
19147
19148sunos4*)
19149  version_type=sunos
19150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19151  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19152  shlibpath_var=LD_LIBRARY_PATH
19153  shlibpath_overrides_runpath=yes
19154  if test "$with_gnu_ld" = yes; then
19155    need_lib_prefix=no
19156  fi
19157  need_version=yes
19158  ;;
19159
19160sysv4 | sysv4.3*)
19161  version_type=linux
19162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163  soname_spec='${libname}${release}${shared_ext}$major'
19164  shlibpath_var=LD_LIBRARY_PATH
19165  case $host_vendor in
19166    sni)
19167      shlibpath_overrides_runpath=no
19168      need_lib_prefix=no
19169      export_dynamic_flag_spec='${wl}-Blargedynsym'
19170      runpath_var=LD_RUN_PATH
19171      ;;
19172    siemens)
19173      need_lib_prefix=no
19174      ;;
19175    motorola)
19176      need_lib_prefix=no
19177      need_version=no
19178      shlibpath_overrides_runpath=no
19179      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19180      ;;
19181  esac
19182  ;;
19183
19184sysv4*MP*)
19185  if test -d /usr/nec ;then
19186    version_type=linux
19187    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19188    soname_spec='$libname${shared_ext}.$major'
19189    shlibpath_var=LD_LIBRARY_PATH
19190  fi
19191  ;;
19192
19193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19194  version_type=freebsd-elf
19195  need_lib_prefix=no
19196  need_version=no
19197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19198  soname_spec='${libname}${release}${shared_ext}$major'
19199  shlibpath_var=LD_LIBRARY_PATH
19200  hardcode_into_libs=yes
19201  if test "$with_gnu_ld" = yes; then
19202    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19203    shlibpath_overrides_runpath=no
19204  else
19205    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19206    shlibpath_overrides_runpath=yes
19207    case $host_os in
19208      sco3.2v5*)
19209        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19210	;;
19211    esac
19212  fi
19213  sys_lib_dlsearch_path_spec='/usr/lib'
19214  ;;
19215
19216uts4*)
19217  version_type=linux
19218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219  soname_spec='${libname}${release}${shared_ext}$major'
19220  shlibpath_var=LD_LIBRARY_PATH
19221  ;;
19222
19223*)
19224  dynamic_linker=no
19225  ;;
19226esac
19227{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19228echo "${ECHO_T}$dynamic_linker" >&6; }
19229test "$dynamic_linker" = no && can_build_shared=no
19230
19231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19232if test "$GCC" = yes; then
19233  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19234fi
19235
19236{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19237echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19238hardcode_action_GCJ=
19239if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19240   test -n "$runpath_var_GCJ" || \
19241   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19242
19243  # We can hardcode non-existant directories.
19244  if test "$hardcode_direct_GCJ" != no &&
19245     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19246     # have to relink, otherwise we might link with an installed library
19247     # when we should be linking with a yet-to-be-installed one
19248     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19249     test "$hardcode_minus_L_GCJ" != no; then
19250    # Linking always hardcodes the temporary library directory.
19251    hardcode_action_GCJ=relink
19252  else
19253    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19254    hardcode_action_GCJ=immediate
19255  fi
19256else
19257  # We cannot hardcode anything, or else we can only hardcode existing
19258  # directories.
19259  hardcode_action_GCJ=unsupported
19260fi
19261{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19262echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19263
19264if test "$hardcode_action_GCJ" = relink; then
19265  # Fast installation is not supported
19266  enable_fast_install=no
19267elif test "$shlibpath_overrides_runpath" = yes ||
19268     test "$enable_shared" = no; then
19269  # Fast installation is not necessary
19270  enable_fast_install=needless
19271fi
19272
19273
19274# The else clause should only fire when bootstrapping the
19275# libtool distribution, otherwise you forgot to ship ltmain.sh
19276# with your package, and you will get complaints that there are
19277# no rules to generate ltmain.sh.
19278if test -f "$ltmain"; then
19279  # See if we are running on zsh, and set the options which allow our commands through
19280  # without removal of \ escapes.
19281  if test -n "${ZSH_VERSION+set}" ; then
19282    setopt NO_GLOB_SUBST
19283  fi
19284  # Now quote all the things that may contain metacharacters while being
19285  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19286  # variables and quote the copies for generation of the libtool script.
19287  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19288    SED SHELL STRIP \
19289    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19290    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19291    deplibs_check_method reload_flag reload_cmds need_locks \
19292    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19293    lt_cv_sys_global_symbol_to_c_name_address \
19294    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19295    old_postinstall_cmds old_postuninstall_cmds \
19296    compiler_GCJ \
19297    CC_GCJ \
19298    LD_GCJ \
19299    lt_prog_compiler_wl_GCJ \
19300    lt_prog_compiler_pic_GCJ \
19301    lt_prog_compiler_static_GCJ \
19302    lt_prog_compiler_no_builtin_flag_GCJ \
19303    export_dynamic_flag_spec_GCJ \
19304    thread_safe_flag_spec_GCJ \
19305    whole_archive_flag_spec_GCJ \
19306    enable_shared_with_static_runtimes_GCJ \
19307    old_archive_cmds_GCJ \
19308    old_archive_from_new_cmds_GCJ \
19309    predep_objects_GCJ \
19310    postdep_objects_GCJ \
19311    predeps_GCJ \
19312    postdeps_GCJ \
19313    compiler_lib_search_path_GCJ \
19314    archive_cmds_GCJ \
19315    archive_expsym_cmds_GCJ \
19316    postinstall_cmds_GCJ \
19317    postuninstall_cmds_GCJ \
19318    old_archive_from_expsyms_cmds_GCJ \
19319    allow_undefined_flag_GCJ \
19320    no_undefined_flag_GCJ \
19321    export_symbols_cmds_GCJ \
19322    hardcode_libdir_flag_spec_GCJ \
19323    hardcode_libdir_flag_spec_ld_GCJ \
19324    hardcode_libdir_separator_GCJ \
19325    hardcode_automatic_GCJ \
19326    module_cmds_GCJ \
19327    module_expsym_cmds_GCJ \
19328    lt_cv_prog_compiler_c_o_GCJ \
19329    fix_srcfile_path_GCJ \
19330    exclude_expsyms_GCJ \
19331    include_expsyms_GCJ; do
19332
19333    case $var in
19334    old_archive_cmds_GCJ | \
19335    old_archive_from_new_cmds_GCJ | \
19336    archive_cmds_GCJ | \
19337    archive_expsym_cmds_GCJ | \
19338    module_cmds_GCJ | \
19339    module_expsym_cmds_GCJ | \
19340    old_archive_from_expsyms_cmds_GCJ | \
19341    export_symbols_cmds_GCJ | \
19342    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19343    postinstall_cmds | postuninstall_cmds | \
19344    old_postinstall_cmds | old_postuninstall_cmds | \
19345    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19346      # Double-quote double-evaled strings.
19347      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19348      ;;
19349    *)
19350      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19351      ;;
19352    esac
19353  done
19354
19355  case $lt_echo in
19356  *'\$0 --fallback-echo"')
19357    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19358    ;;
19359  esac
19360
19361cfgfile="$ofile"
19362
19363  cat <<__EOF__ >> "$cfgfile"
19364# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19365
19366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19367
19368# Shell to use when invoking shell scripts.
19369SHELL=$lt_SHELL
19370
19371# Whether or not to build shared libraries.
19372build_libtool_libs=$enable_shared
19373
19374# Whether or not to build static libraries.
19375build_old_libs=$enable_static
19376
19377# Whether or not to add -lc for building shared libraries.
19378build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19379
19380# Whether or not to disallow shared libs when runtime libs are static
19381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19382
19383# Whether or not to optimize for fast installation.
19384fast_install=$enable_fast_install
19385
19386# The host system.
19387host_alias=$host_alias
19388host=$host
19389host_os=$host_os
19390
19391# The build system.
19392build_alias=$build_alias
19393build=$build
19394build_os=$build_os
19395
19396# An echo program that does not interpret backslashes.
19397echo=$lt_echo
19398
19399# The archiver.
19400AR=$lt_AR
19401AR_FLAGS=$lt_AR_FLAGS
19402
19403# A C compiler.
19404LTCC=$lt_LTCC
19405
19406# LTCC compiler flags.
19407LTCFLAGS=$lt_LTCFLAGS
19408
19409# A language-specific compiler.
19410CC=$lt_compiler_GCJ
19411
19412# Is the compiler the GNU C compiler?
19413with_gcc=$GCC_GCJ
19414
19415# An ERE matcher.
19416EGREP=$lt_EGREP
19417
19418# The linker used to build libraries.
19419LD=$lt_LD_GCJ
19420
19421# Whether we need hard or soft links.
19422LN_S=$lt_LN_S
19423
19424# A BSD-compatible nm program.
19425NM=$lt_NM
19426
19427# A symbol stripping program
19428STRIP=$lt_STRIP
19429
19430# Used to examine libraries when file_magic_cmd begins "file"
19431MAGIC_CMD=$MAGIC_CMD
19432
19433# Used on cygwin: DLL creation program.
19434DLLTOOL="$DLLTOOL"
19435
19436# Used on cygwin: object dumper.
19437OBJDUMP="$OBJDUMP"
19438
19439# Used on cygwin: assembler.
19440AS="$AS"
19441
19442# The name of the directory that contains temporary libtool files.
19443objdir=$objdir
19444
19445# How to create reloadable object files.
19446reload_flag=$lt_reload_flag
19447reload_cmds=$lt_reload_cmds
19448
19449# How to pass a linker flag through the compiler.
19450wl=$lt_lt_prog_compiler_wl_GCJ
19451
19452# Object file suffix (normally "o").
19453objext="$ac_objext"
19454
19455# Old archive suffix (normally "a").
19456libext="$libext"
19457
19458# Shared library suffix (normally ".so").
19459shrext_cmds='$shrext_cmds'
19460
19461# Executable file suffix (normally "").
19462exeext="$exeext"
19463
19464# Additional compiler flags for building library objects.
19465pic_flag=$lt_lt_prog_compiler_pic_GCJ
19466pic_mode=$pic_mode
19467
19468# What is the maximum length of a command?
19469max_cmd_len=$lt_cv_sys_max_cmd_len
19470
19471# Does compiler simultaneously support -c and -o options?
19472compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19473
19474# Must we lock files when doing compilation?
19475need_locks=$lt_need_locks
19476
19477# Do we need the lib prefix for modules?
19478need_lib_prefix=$need_lib_prefix
19479
19480# Do we need a version for libraries?
19481need_version=$need_version
19482
19483# Whether dlopen is supported.
19484dlopen_support=$enable_dlopen
19485
19486# Whether dlopen of programs is supported.
19487dlopen_self=$enable_dlopen_self
19488
19489# Whether dlopen of statically linked programs is supported.
19490dlopen_self_static=$enable_dlopen_self_static
19491
19492# Compiler flag to prevent dynamic linking.
19493link_static_flag=$lt_lt_prog_compiler_static_GCJ
19494
19495# Compiler flag to turn off builtin functions.
19496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19497
19498# Compiler flag to allow reflexive dlopens.
19499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19500
19501# Compiler flag to generate shared objects directly from archives.
19502whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19503
19504# Compiler flag to generate thread-safe objects.
19505thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19506
19507# Library versioning type.
19508version_type=$version_type
19509
19510# Format of library name prefix.
19511libname_spec=$lt_libname_spec
19512
19513# List of archive names.  First name is the real one, the rest are links.
19514# The last name is the one that the linker finds with -lNAME.
19515library_names_spec=$lt_library_names_spec
19516
19517# The coded name of the library, if different from the real name.
19518soname_spec=$lt_soname_spec
19519
19520# Commands used to build and install an old-style archive.
19521RANLIB=$lt_RANLIB
19522old_archive_cmds=$lt_old_archive_cmds_GCJ
19523old_postinstall_cmds=$lt_old_postinstall_cmds
19524old_postuninstall_cmds=$lt_old_postuninstall_cmds
19525
19526# Create an old-style archive from a shared archive.
19527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19528
19529# Create a temporary old-style archive to link instead of a shared archive.
19530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19531
19532# Commands used to build and install a shared archive.
19533archive_cmds=$lt_archive_cmds_GCJ
19534archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19535postinstall_cmds=$lt_postinstall_cmds
19536postuninstall_cmds=$lt_postuninstall_cmds
19537
19538# Commands used to build a loadable module (assumed same as above if empty)
19539module_cmds=$lt_module_cmds_GCJ
19540module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19541
19542# Commands to strip libraries.
19543old_striplib=$lt_old_striplib
19544striplib=$lt_striplib
19545
19546# Dependencies to place before the objects being linked to create a
19547# shared library.
19548predep_objects=$lt_predep_objects_GCJ
19549
19550# Dependencies to place after the objects being linked to create a
19551# shared library.
19552postdep_objects=$lt_postdep_objects_GCJ
19553
19554# Dependencies to place before the objects being linked to create a
19555# shared library.
19556predeps=$lt_predeps_GCJ
19557
19558# Dependencies to place after the objects being linked to create a
19559# shared library.
19560postdeps=$lt_postdeps_GCJ
19561
19562# The library search path used internally by the compiler when linking
19563# a shared library.
19564compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19565
19566# Method to check whether dependent libraries are shared objects.
19567deplibs_check_method=$lt_deplibs_check_method
19568
19569# Command to use when deplibs_check_method == file_magic.
19570file_magic_cmd=$lt_file_magic_cmd
19571
19572# Flag that allows shared libraries with undefined symbols to be built.
19573allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19574
19575# Flag that forces no undefined symbols.
19576no_undefined_flag=$lt_no_undefined_flag_GCJ
19577
19578# Commands used to finish a libtool library installation in a directory.
19579finish_cmds=$lt_finish_cmds
19580
19581# Same as above, but a single script fragment to be evaled but not shown.
19582finish_eval=$lt_finish_eval
19583
19584# Take the output of nm and produce a listing of raw symbols and C names.
19585global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19586
19587# Transform the output of nm in a proper C declaration
19588global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19589
19590# Transform the output of nm in a C name address pair
19591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19592
19593# This is the shared library runtime path variable.
19594runpath_var=$runpath_var
19595
19596# This is the shared library path variable.
19597shlibpath_var=$shlibpath_var
19598
19599# Is shlibpath searched before the hard-coded library search path?
19600shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19601
19602# How to hardcode a shared library path into an executable.
19603hardcode_action=$hardcode_action_GCJ
19604
19605# Whether we should hardcode library paths into libraries.
19606hardcode_into_libs=$hardcode_into_libs
19607
19608# Flag to hardcode \$libdir into a binary during linking.
19609# This must work even if \$libdir does not exist.
19610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19611
19612# If ld is used when linking, flag to hardcode \$libdir into
19613# a binary during linking. This must work even if \$libdir does
19614# not exist.
19615hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19616
19617# Whether we need a single -rpath flag with a separated argument.
19618hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19619
19620# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19621# resulting binary.
19622hardcode_direct=$hardcode_direct_GCJ
19623
19624# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19625# resulting binary.
19626hardcode_minus_L=$hardcode_minus_L_GCJ
19627
19628# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19629# the resulting binary.
19630hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19631
19632# Set to yes if building a shared library automatically hardcodes DIR into the library
19633# and all subsequent libraries and executables linked against it.
19634hardcode_automatic=$hardcode_automatic_GCJ
19635
19636# Variables whose values should be saved in libtool wrapper scripts and
19637# restored at relink time.
19638variables_saved_for_relink="$variables_saved_for_relink"
19639
19640# Whether libtool must link a program against all its dependency libraries.
19641link_all_deplibs=$link_all_deplibs_GCJ
19642
19643# Compile-time system search path for libraries
19644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19645
19646# Run-time system search path for libraries
19647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19648
19649# Fix the shell variable \$srcfile for the compiler.
19650fix_srcfile_path=$lt_fix_srcfile_path
19651
19652# Set to yes if exported symbols are required.
19653always_export_symbols=$always_export_symbols_GCJ
19654
19655# The commands to list exported symbols.
19656export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19657
19658# The commands to extract the exported symbol list from a shared archive.
19659extract_expsyms_cmds=$lt_extract_expsyms_cmds
19660
19661# Symbols that should not be listed in the preloaded symbols.
19662exclude_expsyms=$lt_exclude_expsyms_GCJ
19663
19664# Symbols that must always be exported.
19665include_expsyms=$lt_include_expsyms_GCJ
19666
19667# ### END LIBTOOL TAG CONFIG: $tagname
19668
19669__EOF__
19670
19671
19672else
19673  # If there is no Makefile yet, we rely on a make rule to execute
19674  # `config.status --recheck' to rerun these tests and create the
19675  # libtool script then.
19676  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19677  if test -f "$ltmain_in"; then
19678    test -f Makefile && make "$ltmain"
19679  fi
19680fi
19681
19682
19683ac_ext=c
19684ac_cpp='$CPP $CPPFLAGS'
19685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688
19689CC="$lt_save_CC"
19690
19691	else
19692	  tagname=""
19693	fi
19694	;;
19695
19696      RC)
19697
19698
19699# Source file extension for RC test sources.
19700ac_ext=rc
19701
19702# Object file extension for compiled RC test sources.
19703objext=o
19704objext_RC=$objext
19705
19706# Code to be used in simple compile tests
19707lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19708
19709# Code to be used in simple link tests
19710lt_simple_link_test_code="$lt_simple_compile_test_code"
19711
19712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19713
19714# If no C compiler was specified, use CC.
19715LTCC=${LTCC-"$CC"}
19716
19717# If no C compiler flags were specified, use CFLAGS.
19718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19719
19720# Allow CC to be a program name with arguments.
19721compiler=$CC
19722
19723
19724# save warnings/boilerplate of simple test code
19725ac_outfile=conftest.$ac_objext
19726echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19728_lt_compiler_boilerplate=`cat conftest.err`
19729$rm conftest*
19730
19731ac_outfile=conftest.$ac_objext
19732echo "$lt_simple_link_test_code" >conftest.$ac_ext
19733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19734_lt_linker_boilerplate=`cat conftest.err`
19735$rm conftest*
19736
19737
19738# Allow CC to be a program name with arguments.
19739lt_save_CC="$CC"
19740CC=${RC-"windres"}
19741compiler=$CC
19742compiler_RC=$CC
19743for cc_temp in $compiler""; do
19744  case $cc_temp in
19745    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19746    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19747    \-*) ;;
19748    *) break;;
19749  esac
19750done
19751cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19752
19753lt_cv_prog_compiler_c_o_RC=yes
19754
19755# The else clause should only fire when bootstrapping the
19756# libtool distribution, otherwise you forgot to ship ltmain.sh
19757# with your package, and you will get complaints that there are
19758# no rules to generate ltmain.sh.
19759if test -f "$ltmain"; then
19760  # See if we are running on zsh, and set the options which allow our commands through
19761  # without removal of \ escapes.
19762  if test -n "${ZSH_VERSION+set}" ; then
19763    setopt NO_GLOB_SUBST
19764  fi
19765  # Now quote all the things that may contain metacharacters while being
19766  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19767  # variables and quote the copies for generation of the libtool script.
19768  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19769    SED SHELL STRIP \
19770    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19771    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19772    deplibs_check_method reload_flag reload_cmds need_locks \
19773    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19774    lt_cv_sys_global_symbol_to_c_name_address \
19775    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19776    old_postinstall_cmds old_postuninstall_cmds \
19777    compiler_RC \
19778    CC_RC \
19779    LD_RC \
19780    lt_prog_compiler_wl_RC \
19781    lt_prog_compiler_pic_RC \
19782    lt_prog_compiler_static_RC \
19783    lt_prog_compiler_no_builtin_flag_RC \
19784    export_dynamic_flag_spec_RC \
19785    thread_safe_flag_spec_RC \
19786    whole_archive_flag_spec_RC \
19787    enable_shared_with_static_runtimes_RC \
19788    old_archive_cmds_RC \
19789    old_archive_from_new_cmds_RC \
19790    predep_objects_RC \
19791    postdep_objects_RC \
19792    predeps_RC \
19793    postdeps_RC \
19794    compiler_lib_search_path_RC \
19795    archive_cmds_RC \
19796    archive_expsym_cmds_RC \
19797    postinstall_cmds_RC \
19798    postuninstall_cmds_RC \
19799    old_archive_from_expsyms_cmds_RC \
19800    allow_undefined_flag_RC \
19801    no_undefined_flag_RC \
19802    export_symbols_cmds_RC \
19803    hardcode_libdir_flag_spec_RC \
19804    hardcode_libdir_flag_spec_ld_RC \
19805    hardcode_libdir_separator_RC \
19806    hardcode_automatic_RC \
19807    module_cmds_RC \
19808    module_expsym_cmds_RC \
19809    lt_cv_prog_compiler_c_o_RC \
19810    fix_srcfile_path_RC \
19811    exclude_expsyms_RC \
19812    include_expsyms_RC; do
19813
19814    case $var in
19815    old_archive_cmds_RC | \
19816    old_archive_from_new_cmds_RC | \
19817    archive_cmds_RC | \
19818    archive_expsym_cmds_RC | \
19819    module_cmds_RC | \
19820    module_expsym_cmds_RC | \
19821    old_archive_from_expsyms_cmds_RC | \
19822    export_symbols_cmds_RC | \
19823    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19824    postinstall_cmds | postuninstall_cmds | \
19825    old_postinstall_cmds | old_postuninstall_cmds | \
19826    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19827      # Double-quote double-evaled strings.
19828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19829      ;;
19830    *)
19831      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19832      ;;
19833    esac
19834  done
19835
19836  case $lt_echo in
19837  *'\$0 --fallback-echo"')
19838    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19839    ;;
19840  esac
19841
19842cfgfile="$ofile"
19843
19844  cat <<__EOF__ >> "$cfgfile"
19845# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19846
19847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19848
19849# Shell to use when invoking shell scripts.
19850SHELL=$lt_SHELL
19851
19852# Whether or not to build shared libraries.
19853build_libtool_libs=$enable_shared
19854
19855# Whether or not to build static libraries.
19856build_old_libs=$enable_static
19857
19858# Whether or not to add -lc for building shared libraries.
19859build_libtool_need_lc=$archive_cmds_need_lc_RC
19860
19861# Whether or not to disallow shared libs when runtime libs are static
19862allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19863
19864# Whether or not to optimize for fast installation.
19865fast_install=$enable_fast_install
19866
19867# The host system.
19868host_alias=$host_alias
19869host=$host
19870host_os=$host_os
19871
19872# The build system.
19873build_alias=$build_alias
19874build=$build
19875build_os=$build_os
19876
19877# An echo program that does not interpret backslashes.
19878echo=$lt_echo
19879
19880# The archiver.
19881AR=$lt_AR
19882AR_FLAGS=$lt_AR_FLAGS
19883
19884# A C compiler.
19885LTCC=$lt_LTCC
19886
19887# LTCC compiler flags.
19888LTCFLAGS=$lt_LTCFLAGS
19889
19890# A language-specific compiler.
19891CC=$lt_compiler_RC
19892
19893# Is the compiler the GNU C compiler?
19894with_gcc=$GCC_RC
19895
19896# An ERE matcher.
19897EGREP=$lt_EGREP
19898
19899# The linker used to build libraries.
19900LD=$lt_LD_RC
19901
19902# Whether we need hard or soft links.
19903LN_S=$lt_LN_S
19904
19905# A BSD-compatible nm program.
19906NM=$lt_NM
19907
19908# A symbol stripping program
19909STRIP=$lt_STRIP
19910
19911# Used to examine libraries when file_magic_cmd begins "file"
19912MAGIC_CMD=$MAGIC_CMD
19913
19914# Used on cygwin: DLL creation program.
19915DLLTOOL="$DLLTOOL"
19916
19917# Used on cygwin: object dumper.
19918OBJDUMP="$OBJDUMP"
19919
19920# Used on cygwin: assembler.
19921AS="$AS"
19922
19923# The name of the directory that contains temporary libtool files.
19924objdir=$objdir
19925
19926# How to create reloadable object files.
19927reload_flag=$lt_reload_flag
19928reload_cmds=$lt_reload_cmds
19929
19930# How to pass a linker flag through the compiler.
19931wl=$lt_lt_prog_compiler_wl_RC
19932
19933# Object file suffix (normally "o").
19934objext="$ac_objext"
19935
19936# Old archive suffix (normally "a").
19937libext="$libext"
19938
19939# Shared library suffix (normally ".so").
19940shrext_cmds='$shrext_cmds'
19941
19942# Executable file suffix (normally "").
19943exeext="$exeext"
19944
19945# Additional compiler flags for building library objects.
19946pic_flag=$lt_lt_prog_compiler_pic_RC
19947pic_mode=$pic_mode
19948
19949# What is the maximum length of a command?
19950max_cmd_len=$lt_cv_sys_max_cmd_len
19951
19952# Does compiler simultaneously support -c and -o options?
19953compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19954
19955# Must we lock files when doing compilation?
19956need_locks=$lt_need_locks
19957
19958# Do we need the lib prefix for modules?
19959need_lib_prefix=$need_lib_prefix
19960
19961# Do we need a version for libraries?
19962need_version=$need_version
19963
19964# Whether dlopen is supported.
19965dlopen_support=$enable_dlopen
19966
19967# Whether dlopen of programs is supported.
19968dlopen_self=$enable_dlopen_self
19969
19970# Whether dlopen of statically linked programs is supported.
19971dlopen_self_static=$enable_dlopen_self_static
19972
19973# Compiler flag to prevent dynamic linking.
19974link_static_flag=$lt_lt_prog_compiler_static_RC
19975
19976# Compiler flag to turn off builtin functions.
19977no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19978
19979# Compiler flag to allow reflexive dlopens.
19980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19981
19982# Compiler flag to generate shared objects directly from archives.
19983whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19984
19985# Compiler flag to generate thread-safe objects.
19986thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19987
19988# Library versioning type.
19989version_type=$version_type
19990
19991# Format of library name prefix.
19992libname_spec=$lt_libname_spec
19993
19994# List of archive names.  First name is the real one, the rest are links.
19995# The last name is the one that the linker finds with -lNAME.
19996library_names_spec=$lt_library_names_spec
19997
19998# The coded name of the library, if different from the real name.
19999soname_spec=$lt_soname_spec
20000
20001# Commands used to build and install an old-style archive.
20002RANLIB=$lt_RANLIB
20003old_archive_cmds=$lt_old_archive_cmds_RC
20004old_postinstall_cmds=$lt_old_postinstall_cmds
20005old_postuninstall_cmds=$lt_old_postuninstall_cmds
20006
20007# Create an old-style archive from a shared archive.
20008old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20009
20010# Create a temporary old-style archive to link instead of a shared archive.
20011old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20012
20013# Commands used to build and install a shared archive.
20014archive_cmds=$lt_archive_cmds_RC
20015archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20016postinstall_cmds=$lt_postinstall_cmds
20017postuninstall_cmds=$lt_postuninstall_cmds
20018
20019# Commands used to build a loadable module (assumed same as above if empty)
20020module_cmds=$lt_module_cmds_RC
20021module_expsym_cmds=$lt_module_expsym_cmds_RC
20022
20023# Commands to strip libraries.
20024old_striplib=$lt_old_striplib
20025striplib=$lt_striplib
20026
20027# Dependencies to place before the objects being linked to create a
20028# shared library.
20029predep_objects=$lt_predep_objects_RC
20030
20031# Dependencies to place after the objects being linked to create a
20032# shared library.
20033postdep_objects=$lt_postdep_objects_RC
20034
20035# Dependencies to place before the objects being linked to create a
20036# shared library.
20037predeps=$lt_predeps_RC
20038
20039# Dependencies to place after the objects being linked to create a
20040# shared library.
20041postdeps=$lt_postdeps_RC
20042
20043# The library search path used internally by the compiler when linking
20044# a shared library.
20045compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20046
20047# Method to check whether dependent libraries are shared objects.
20048deplibs_check_method=$lt_deplibs_check_method
20049
20050# Command to use when deplibs_check_method == file_magic.
20051file_magic_cmd=$lt_file_magic_cmd
20052
20053# Flag that allows shared libraries with undefined symbols to be built.
20054allow_undefined_flag=$lt_allow_undefined_flag_RC
20055
20056# Flag that forces no undefined symbols.
20057no_undefined_flag=$lt_no_undefined_flag_RC
20058
20059# Commands used to finish a libtool library installation in a directory.
20060finish_cmds=$lt_finish_cmds
20061
20062# Same as above, but a single script fragment to be evaled but not shown.
20063finish_eval=$lt_finish_eval
20064
20065# Take the output of nm and produce a listing of raw symbols and C names.
20066global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20067
20068# Transform the output of nm in a proper C declaration
20069global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20070
20071# Transform the output of nm in a C name address pair
20072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20073
20074# This is the shared library runtime path variable.
20075runpath_var=$runpath_var
20076
20077# This is the shared library path variable.
20078shlibpath_var=$shlibpath_var
20079
20080# Is shlibpath searched before the hard-coded library search path?
20081shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20082
20083# How to hardcode a shared library path into an executable.
20084hardcode_action=$hardcode_action_RC
20085
20086# Whether we should hardcode library paths into libraries.
20087hardcode_into_libs=$hardcode_into_libs
20088
20089# Flag to hardcode \$libdir into a binary during linking.
20090# This must work even if \$libdir does not exist.
20091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20092
20093# If ld is used when linking, flag to hardcode \$libdir into
20094# a binary during linking. This must work even if \$libdir does
20095# not exist.
20096hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20097
20098# Whether we need a single -rpath flag with a separated argument.
20099hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20100
20101# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20102# resulting binary.
20103hardcode_direct=$hardcode_direct_RC
20104
20105# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20106# resulting binary.
20107hardcode_minus_L=$hardcode_minus_L_RC
20108
20109# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20110# the resulting binary.
20111hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20112
20113# Set to yes if building a shared library automatically hardcodes DIR into the library
20114# and all subsequent libraries and executables linked against it.
20115hardcode_automatic=$hardcode_automatic_RC
20116
20117# Variables whose values should be saved in libtool wrapper scripts and
20118# restored at relink time.
20119variables_saved_for_relink="$variables_saved_for_relink"
20120
20121# Whether libtool must link a program against all its dependency libraries.
20122link_all_deplibs=$link_all_deplibs_RC
20123
20124# Compile-time system search path for libraries
20125sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20126
20127# Run-time system search path for libraries
20128sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20129
20130# Fix the shell variable \$srcfile for the compiler.
20131fix_srcfile_path=$lt_fix_srcfile_path
20132
20133# Set to yes if exported symbols are required.
20134always_export_symbols=$always_export_symbols_RC
20135
20136# The commands to list exported symbols.
20137export_symbols_cmds=$lt_export_symbols_cmds_RC
20138
20139# The commands to extract the exported symbol list from a shared archive.
20140extract_expsyms_cmds=$lt_extract_expsyms_cmds
20141
20142# Symbols that should not be listed in the preloaded symbols.
20143exclude_expsyms=$lt_exclude_expsyms_RC
20144
20145# Symbols that must always be exported.
20146include_expsyms=$lt_include_expsyms_RC
20147
20148# ### END LIBTOOL TAG CONFIG: $tagname
20149
20150__EOF__
20151
20152
20153else
20154  # If there is no Makefile yet, we rely on a make rule to execute
20155  # `config.status --recheck' to rerun these tests and create the
20156  # libtool script then.
20157  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20158  if test -f "$ltmain_in"; then
20159    test -f Makefile && make "$ltmain"
20160  fi
20161fi
20162
20163
20164ac_ext=c
20165ac_cpp='$CPP $CPPFLAGS'
20166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20168ac_compiler_gnu=$ac_cv_c_compiler_gnu
20169
20170CC="$lt_save_CC"
20171
20172	;;
20173
20174      *)
20175	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20176echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20177   { (exit 1); exit 1; }; }
20178	;;
20179      esac
20180
20181      # Append the new tag name to the list of available tags.
20182      if test -n "$tagname" ; then
20183      available_tags="$available_tags $tagname"
20184    fi
20185    fi
20186  done
20187  IFS="$lt_save_ifs"
20188
20189  # Now substitute the updated list of available tags.
20190  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20191    mv "${ofile}T" "$ofile"
20192    chmod +x "$ofile"
20193  else
20194    rm -f "${ofile}T"
20195    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20196echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20197   { (exit 1); exit 1; }; }
20198  fi
20199fi
20200
20201
20202
20203# This can be used to rebuild libtool when needed
20204LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20205
20206# Always use our own libtool.
20207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20208
20209# Prevent multiple expansion
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234# Define a configure option for an alternate module directory
20235
20236# Check whether --with-xorg-module-dir was given.
20237if test "${with_xorg_module_dir+set}" = set; then
20238  withval=$with_xorg_module_dir; moduledir="$withval"
20239else
20240  moduledir="$libdir/xorg/modules"
20241fi
20242
20243
20244# Store the list of server defined optional extensions in REQUIRED_MODULES
20245
20246
20247	SAVE_CFLAGS="$CFLAGS"
20248	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20249	cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h.  */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h.  */
20255
20256#include "xorg-server.h"
20257#if !defined RANDR
20258#error RANDR not defined
20259#endif
20260
20261int
20262main ()
20263{
20264
20265  ;
20266  return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (ac_try="$ac_compile"
20271case "(($ac_try" in
20272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273  *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276  (eval "$ac_compile") 2>conftest.er1
20277  ac_status=$?
20278  grep -v '^ *+' conftest.er1 >conftest.err
20279  rm -f conftest.er1
20280  cat conftest.err >&5
20281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282  (exit $ac_status); } && {
20283	 test -z "$ac_c_werror_flag" ||
20284	 test ! -s conftest.err
20285       } && test -s conftest.$ac_objext; then
20286  _EXT_CHECK=yes
20287else
20288  echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291	_EXT_CHECK=no
20292fi
20293
20294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295	CFLAGS="$SAVE_CFLAGS"
20296	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20297echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20298	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20299echo "${ECHO_T}$_EXT_CHECK" >&6; }
20300	if test "$_EXT_CHECK" != no; then
20301		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20302	fi
20303
20304
20305
20306	SAVE_CFLAGS="$CFLAGS"
20307	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20308	cat >conftest.$ac_ext <<_ACEOF
20309/* confdefs.h.  */
20310_ACEOF
20311cat confdefs.h >>conftest.$ac_ext
20312cat >>conftest.$ac_ext <<_ACEOF
20313/* end confdefs.h.  */
20314
20315#include "xorg-server.h"
20316#if !defined RENDER
20317#error RENDER not defined
20318#endif
20319
20320int
20321main ()
20322{
20323
20324  ;
20325  return 0;
20326}
20327_ACEOF
20328rm -f conftest.$ac_objext
20329if { (ac_try="$ac_compile"
20330case "(($ac_try" in
20331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332  *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335  (eval "$ac_compile") 2>conftest.er1
20336  ac_status=$?
20337  grep -v '^ *+' conftest.er1 >conftest.err
20338  rm -f conftest.er1
20339  cat conftest.err >&5
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); } && {
20342	 test -z "$ac_c_werror_flag" ||
20343	 test ! -s conftest.err
20344       } && test -s conftest.$ac_objext; then
20345  _EXT_CHECK=yes
20346else
20347  echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350	_EXT_CHECK=no
20351fi
20352
20353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354	CFLAGS="$SAVE_CFLAGS"
20355	{ echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20356echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20357	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20358echo "${ECHO_T}$_EXT_CHECK" >&6; }
20359	if test "$_EXT_CHECK" != no; then
20360		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20361	fi
20362
20363
20364
20365	SAVE_CFLAGS="$CFLAGS"
20366	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20367	cat >conftest.$ac_ext <<_ACEOF
20368/* confdefs.h.  */
20369_ACEOF
20370cat confdefs.h >>conftest.$ac_ext
20371cat >>conftest.$ac_ext <<_ACEOF
20372/* end confdefs.h.  */
20373
20374#include "xorg-server.h"
20375#if !defined XV
20376#error XV not defined
20377#endif
20378
20379int
20380main ()
20381{
20382
20383  ;
20384  return 0;
20385}
20386_ACEOF
20387rm -f conftest.$ac_objext
20388if { (ac_try="$ac_compile"
20389case "(($ac_try" in
20390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391  *) ac_try_echo=$ac_try;;
20392esac
20393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394  (eval "$ac_compile") 2>conftest.er1
20395  ac_status=$?
20396  grep -v '^ *+' conftest.er1 >conftest.err
20397  rm -f conftest.er1
20398  cat conftest.err >&5
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); } && {
20401	 test -z "$ac_c_werror_flag" ||
20402	 test ! -s conftest.err
20403       } && test -s conftest.$ac_objext; then
20404  _EXT_CHECK=yes
20405else
20406  echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409	_EXT_CHECK=no
20410fi
20411
20412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413	CFLAGS="$SAVE_CFLAGS"
20414	{ echo "$as_me:$LINENO: checking if XV is defined" >&5
20415echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20416	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20417echo "${ECHO_T}$_EXT_CHECK" >&6; }
20418	if test "$_EXT_CHECK" != no; then
20419		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20420	fi
20421
20422
20423
20424	SAVE_CFLAGS="$CFLAGS"
20425	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20426	cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h.  */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h.  */
20432
20433#include "xorg-server.h"
20434#if !defined DPMSExtension
20435#error DPMSExtension not defined
20436#endif
20437
20438int
20439main ()
20440{
20441
20442  ;
20443  return 0;
20444}
20445_ACEOF
20446rm -f conftest.$ac_objext
20447if { (ac_try="$ac_compile"
20448case "(($ac_try" in
20449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450  *) ac_try_echo=$ac_try;;
20451esac
20452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453  (eval "$ac_compile") 2>conftest.er1
20454  ac_status=$?
20455  grep -v '^ *+' conftest.er1 >conftest.err
20456  rm -f conftest.er1
20457  cat conftest.err >&5
20458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459  (exit $ac_status); } && {
20460	 test -z "$ac_c_werror_flag" ||
20461	 test ! -s conftest.err
20462       } && test -s conftest.$ac_objext; then
20463  _EXT_CHECK=yes
20464else
20465  echo "$as_me: failed program was:" >&5
20466sed 's/^/| /' conftest.$ac_ext >&5
20467
20468	_EXT_CHECK=no
20469fi
20470
20471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20472	CFLAGS="$SAVE_CFLAGS"
20473	{ echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20474echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20475	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20476echo "${ECHO_T}$_EXT_CHECK" >&6; }
20477	if test "$_EXT_CHECK" != no; then
20478		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20479	fi
20480
20481
20482# Obtain compiler/linker options for the driver dependencies
20483
20484pkg_failed=no
20485{ echo "$as_me:$LINENO: checking for XORG" >&5
20486echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20487
20488if test -n "$PKG_CONFIG"; then
20489    if test -n "$XORG_CFLAGS"; then
20490        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20491    else
20492        if test -n "$PKG_CONFIG" && \
20493    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20494  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20495  ac_status=$?
20496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497  (exit $ac_status); }; then
20498  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20499else
20500  pkg_failed=yes
20501fi
20502    fi
20503else
20504	pkg_failed=untried
20505fi
20506if test -n "$PKG_CONFIG"; then
20507    if test -n "$XORG_LIBS"; then
20508        pkg_cv_XORG_LIBS="$XORG_LIBS"
20509    else
20510        if test -n "$PKG_CONFIG" && \
20511    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20512  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20513  ac_status=$?
20514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515  (exit $ac_status); }; then
20516  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20517else
20518  pkg_failed=yes
20519fi
20520    fi
20521else
20522	pkg_failed=untried
20523fi
20524
20525
20526
20527if test $pkg_failed = yes; then
20528
20529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20530        _pkg_short_errors_supported=yes
20531else
20532        _pkg_short_errors_supported=no
20533fi
20534        if test $_pkg_short_errors_supported = yes; then
20535	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20536        else
20537	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20538        fi
20539	# Put the nasty error message in config.log where it belongs
20540	echo "$XORG_PKG_ERRORS" >&5
20541
20542	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20543
20544$XORG_PKG_ERRORS
20545
20546Consider adjusting the PKG_CONFIG_PATH environment variable if you
20547installed software in a non-standard prefix.
20548
20549Alternatively, you may set the environment variables XORG_CFLAGS
20550and XORG_LIBS to avoid the need to call pkg-config.
20551See the pkg-config man page for more details.
20552" >&5
20553echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20554
20555$XORG_PKG_ERRORS
20556
20557Consider adjusting the PKG_CONFIG_PATH environment variable if you
20558installed software in a non-standard prefix.
20559
20560Alternatively, you may set the environment variables XORG_CFLAGS
20561and XORG_LIBS to avoid the need to call pkg-config.
20562See the pkg-config man page for more details.
20563" >&2;}
20564   { (exit 1); exit 1; }; }
20565elif test $pkg_failed = untried; then
20566	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20567is in your PATH or set the PKG_CONFIG environment variable to the full
20568path to pkg-config.
20569
20570Alternatively, you may set the environment variables XORG_CFLAGS
20571and XORG_LIBS to avoid the need to call pkg-config.
20572See the pkg-config man page for more details.
20573
20574To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20575See \`config.log' for more details." >&5
20576echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20577is in your PATH or set the PKG_CONFIG environment variable to the full
20578path to pkg-config.
20579
20580Alternatively, you may set the environment variables XORG_CFLAGS
20581and XORG_LIBS to avoid the need to call pkg-config.
20582See the pkg-config man page for more details.
20583
20584To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20585See \`config.log' for more details." >&2;}
20586   { (exit 1); exit 1; }; }
20587else
20588	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20589	XORG_LIBS=$pkg_cv_XORG_LIBS
20590        { echo "$as_me:$LINENO: result: yes" >&5
20591echo "${ECHO_T}yes" >&6; }
20592	:
20593fi
20594
20595# Checks for libraries.
20596SAVE_CPPFLAGS="$CPPFLAGS"
20597CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20598{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
20599echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
20600if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
20601  echo $ECHO_N "(cached) $ECHO_C" >&6
20602else
20603  cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h.  */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h.  */
20609#include "xorg-server.h"
20610
20611int
20612main ()
20613{
20614#ifndef XSERVER_LIBPCIACCESS
20615  (void) XSERVER_LIBPCIACCESS;
20616#endif
20617
20618  ;
20619  return 0;
20620}
20621_ACEOF
20622rm -f conftest.$ac_objext
20623if { (ac_try="$ac_compile"
20624case "(($ac_try" in
20625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626  *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629  (eval "$ac_compile") 2>conftest.er1
20630  ac_status=$?
20631  grep -v '^ *+' conftest.er1 >conftest.err
20632  rm -f conftest.er1
20633  cat conftest.err >&5
20634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635  (exit $ac_status); } && {
20636	 test -z "$ac_c_werror_flag" ||
20637	 test ! -s conftest.err
20638       } && test -s conftest.$ac_objext; then
20639  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
20640else
20641  echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
20644	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
20645fi
20646
20647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20648fi
20649{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
20650echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
20651if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
20652  XSERVER_LIBPCIACCESS=yes
20653else
20654  XSERVER_LIBPCIACCESS=no
20655fi
20656
20657CPPFLAGS="$SAVE_CPPFLAGS"
20658
20659if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20660
20661pkg_failed=no
20662{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
20663echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
20664
20665if test -n "$PKG_CONFIG"; then
20666    if test -n "$PCIACCESS_CFLAGS"; then
20667        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20668    else
20669        if test -n "$PKG_CONFIG" && \
20670    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20671  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20672  ac_status=$?
20673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674  (exit $ac_status); }; then
20675  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20676else
20677  pkg_failed=yes
20678fi
20679    fi
20680else
20681	pkg_failed=untried
20682fi
20683if test -n "$PKG_CONFIG"; then
20684    if test -n "$PCIACCESS_LIBS"; then
20685        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20686    else
20687        if test -n "$PKG_CONFIG" && \
20688    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20689  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20690  ac_status=$?
20691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692  (exit $ac_status); }; then
20693  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20694else
20695  pkg_failed=yes
20696fi
20697    fi
20698else
20699	pkg_failed=untried
20700fi
20701
20702
20703
20704if test $pkg_failed = yes; then
20705
20706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20707        _pkg_short_errors_supported=yes
20708else
20709        _pkg_short_errors_supported=no
20710fi
20711        if test $_pkg_short_errors_supported = yes; then
20712	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20713        else
20714	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20715        fi
20716	# Put the nasty error message in config.log where it belongs
20717	echo "$PCIACCESS_PKG_ERRORS" >&5
20718
20719	{ { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
20720
20721$PCIACCESS_PKG_ERRORS
20722
20723Consider adjusting the PKG_CONFIG_PATH environment variable if you
20724installed software in a non-standard prefix.
20725
20726Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20727and PCIACCESS_LIBS to avoid the need to call pkg-config.
20728See the pkg-config man page for more details.
20729" >&5
20730echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
20731
20732$PCIACCESS_PKG_ERRORS
20733
20734Consider adjusting the PKG_CONFIG_PATH environment variable if you
20735installed software in a non-standard prefix.
20736
20737Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20738and PCIACCESS_LIBS to avoid the need to call pkg-config.
20739See the pkg-config man page for more details.
20740" >&2;}
20741   { (exit 1); exit 1; }; }
20742elif test $pkg_failed = untried; then
20743	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20744is in your PATH or set the PKG_CONFIG environment variable to the full
20745path to pkg-config.
20746
20747Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20748and PCIACCESS_LIBS to avoid the need to call pkg-config.
20749See the pkg-config man page for more details.
20750
20751To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20752See \`config.log' for more details." >&5
20753echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20754is in your PATH or set the PKG_CONFIG environment variable to the full
20755path to pkg-config.
20756
20757Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20758and PCIACCESS_LIBS to avoid the need to call pkg-config.
20759See the pkg-config man page for more details.
20760
20761To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20762See \`config.log' for more details." >&2;}
20763   { (exit 1); exit 1; }; }
20764else
20765	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20766	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20767        { echo "$as_me:$LINENO: result: yes" >&5
20768echo "${ECHO_T}yes" >&6; }
20769	:
20770fi
20771    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20772fi
20773 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20774  XSERVER_LIBPCIACCESS_TRUE=
20775  XSERVER_LIBPCIACCESS_FALSE='#'
20776else
20777  XSERVER_LIBPCIACCESS_TRUE='#'
20778  XSERVER_LIBPCIACCESS_FALSE=
20779fi
20780
20781
20782
20783
20784DRIVER_NAME=nv
20785
20786
20787ac_config_files="$ac_config_files Makefile src/Makefile"
20788
20789cat >confcache <<\_ACEOF
20790# This file is a shell script that caches the results of configure
20791# tests run on this system so they can be shared between configure
20792# scripts and configure runs, see configure's option --config-cache.
20793# It is not useful on other systems.  If it contains results you don't
20794# want to keep, you may remove or edit it.
20795#
20796# config.status only pays attention to the cache file if you give it
20797# the --recheck option to rerun configure.
20798#
20799# `ac_cv_env_foo' variables (set or unset) will be overridden when
20800# loading this file, other *unset* `ac_cv_foo' will be assigned the
20801# following values.
20802
20803_ACEOF
20804
20805# The following way of writing the cache mishandles newlines in values,
20806# but we know of no workaround that is simple, portable, and efficient.
20807# So, we kill variables containing newlines.
20808# Ultrix sh set writes to stderr and can't be redirected directly,
20809# and sets the high bit in the cache file unless we assign to the vars.
20810(
20811  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20812    eval ac_val=\$$ac_var
20813    case $ac_val in #(
20814    *${as_nl}*)
20815      case $ac_var in #(
20816      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20817echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20818      esac
20819      case $ac_var in #(
20820      _ | IFS | as_nl) ;; #(
20821      *) $as_unset $ac_var ;;
20822      esac ;;
20823    esac
20824  done
20825
20826  (set) 2>&1 |
20827    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20828    *${as_nl}ac_space=\ *)
20829      # `set' does not quote correctly, so add quotes (double-quote
20830      # substitution turns \\\\ into \\, and sed turns \\ into \).
20831      sed -n \
20832	"s/'/'\\\\''/g;
20833	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20834      ;; #(
20835    *)
20836      # `set' quotes correctly as required by POSIX, so do not add quotes.
20837      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20838      ;;
20839    esac |
20840    sort
20841) |
20842  sed '
20843     /^ac_cv_env_/b end
20844     t clear
20845     :clear
20846     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20847     t end
20848     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20849     :end' >>confcache
20850if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20851  if test -w "$cache_file"; then
20852    test "x$cache_file" != "x/dev/null" &&
20853      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20854echo "$as_me: updating cache $cache_file" >&6;}
20855    cat confcache >$cache_file
20856  else
20857    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20858echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20859  fi
20860fi
20861rm -f confcache
20862
20863test "x$prefix" = xNONE && prefix=$ac_default_prefix
20864# Let make expand exec_prefix.
20865test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20866
20867DEFS=-DHAVE_CONFIG_H
20868
20869ac_libobjs=
20870ac_ltlibobjs=
20871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20872  # 1. Remove the extension, and $U if already installed.
20873  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20874  ac_i=`echo "$ac_i" | sed "$ac_script"`
20875  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20876  #    will be set to the directory where LIBOBJS objects are built.
20877  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20878  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20879done
20880LIBOBJS=$ac_libobjs
20881
20882LTLIBOBJS=$ac_ltlibobjs
20883
20884
20885if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20886  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20887Usually this means the macro was only invoked conditionally." >&5
20888echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20889Usually this means the macro was only invoked conditionally." >&2;}
20890   { (exit 1); exit 1; }; }
20891fi
20892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20893  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20894Usually this means the macro was only invoked conditionally." >&5
20895echo "$as_me: error: conditional \"AMDEP\" was never defined.
20896Usually this means the macro was only invoked conditionally." >&2;}
20897   { (exit 1); exit 1; }; }
20898fi
20899if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20900  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20901Usually this means the macro was only invoked conditionally." >&5
20902echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20903Usually this means the macro was only invoked conditionally." >&2;}
20904   { (exit 1); exit 1; }; }
20905fi
20906if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20907  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20908Usually this means the macro was only invoked conditionally." >&5
20909echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20910Usually this means the macro was only invoked conditionally." >&2;}
20911   { (exit 1); exit 1; }; }
20912fi
20913if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20914  { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20915Usually this means the macro was only invoked conditionally." >&5
20916echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20917Usually this means the macro was only invoked conditionally." >&2;}
20918   { (exit 1); exit 1; }; }
20919fi
20920
20921: ${CONFIG_STATUS=./config.status}
20922ac_clean_files_save=$ac_clean_files
20923ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20924{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20925echo "$as_me: creating $CONFIG_STATUS" >&6;}
20926cat >$CONFIG_STATUS <<_ACEOF
20927#! $SHELL
20928# Generated by $as_me.
20929# Run this file to recreate the current configuration.
20930# Compiler output produced by configure, useful for debugging
20931# configure, is in config.log if it exists.
20932
20933debug=false
20934ac_cs_recheck=false
20935ac_cs_silent=false
20936SHELL=\${CONFIG_SHELL-$SHELL}
20937_ACEOF
20938
20939cat >>$CONFIG_STATUS <<\_ACEOF
20940## --------------------- ##
20941## M4sh Initialization.  ##
20942## --------------------- ##
20943
20944# Be more Bourne compatible
20945DUALCASE=1; export DUALCASE # for MKS sh
20946if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20947  emulate sh
20948  NULLCMD=:
20949  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20950  # is contrary to our usage.  Disable this feature.
20951  alias -g '${1+"$@"}'='"$@"'
20952  setopt NO_GLOB_SUBST
20953else
20954  case `(set -o) 2>/dev/null` in
20955  *posix*) set -o posix ;;
20956esac
20957
20958fi
20959
20960
20961
20962
20963# PATH needs CR
20964# Avoid depending upon Character Ranges.
20965as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20966as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20967as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20968as_cr_digits='0123456789'
20969as_cr_alnum=$as_cr_Letters$as_cr_digits
20970
20971# The user is always right.
20972if test "${PATH_SEPARATOR+set}" != set; then
20973  echo "#! /bin/sh" >conf$$.sh
20974  echo  "exit 0"   >>conf$$.sh
20975  chmod +x conf$$.sh
20976  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20977    PATH_SEPARATOR=';'
20978  else
20979    PATH_SEPARATOR=:
20980  fi
20981  rm -f conf$$.sh
20982fi
20983
20984# Support unset when possible.
20985if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20986  as_unset=unset
20987else
20988  as_unset=false
20989fi
20990
20991
20992# IFS
20993# We need space, tab and new line, in precisely that order.  Quoting is
20994# there to prevent editors from complaining about space-tab.
20995# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20996# splitting by setting IFS to empty value.)
20997as_nl='
20998'
20999IFS=" ""	$as_nl"
21000
21001# Find who we are.  Look in the path if we contain no directory separator.
21002case $0 in
21003  *[\\/]* ) as_myself=$0 ;;
21004  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21005for as_dir in $PATH
21006do
21007  IFS=$as_save_IFS
21008  test -z "$as_dir" && as_dir=.
21009  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21010done
21011IFS=$as_save_IFS
21012
21013     ;;
21014esac
21015# We did not find ourselves, most probably we were run as `sh COMMAND'
21016# in which case we are not to be found in the path.
21017if test "x$as_myself" = x; then
21018  as_myself=$0
21019fi
21020if test ! -f "$as_myself"; then
21021  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21022  { (exit 1); exit 1; }
21023fi
21024
21025# Work around bugs in pre-3.0 UWIN ksh.
21026for as_var in ENV MAIL MAILPATH
21027do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21028done
21029PS1='$ '
21030PS2='> '
21031PS4='+ '
21032
21033# NLS nuisances.
21034for as_var in \
21035  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21036  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21037  LC_TELEPHONE LC_TIME
21038do
21039  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21040    eval $as_var=C; export $as_var
21041  else
21042    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21043  fi
21044done
21045
21046# Required to use basename.
21047if expr a : '\(a\)' >/dev/null 2>&1 &&
21048   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21049  as_expr=expr
21050else
21051  as_expr=false
21052fi
21053
21054if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21055  as_basename=basename
21056else
21057  as_basename=false
21058fi
21059
21060
21061# Name of the executable.
21062as_me=`$as_basename -- "$0" ||
21063$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21064	 X"$0" : 'X\(//\)$' \| \
21065	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21066echo X/"$0" |
21067    sed '/^.*\/\([^/][^/]*\)\/*$/{
21068	    s//\1/
21069	    q
21070	  }
21071	  /^X\/\(\/\/\)$/{
21072	    s//\1/
21073	    q
21074	  }
21075	  /^X\/\(\/\).*/{
21076	    s//\1/
21077	    q
21078	  }
21079	  s/.*/./; q'`
21080
21081# CDPATH.
21082$as_unset CDPATH
21083
21084
21085
21086  as_lineno_1=$LINENO
21087  as_lineno_2=$LINENO
21088  test "x$as_lineno_1" != "x$as_lineno_2" &&
21089  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21090
21091  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21092  # uniformly replaced by the line number.  The first 'sed' inserts a
21093  # line-number line after each line using $LINENO; the second 'sed'
21094  # does the real work.  The second script uses 'N' to pair each
21095  # line-number line with the line containing $LINENO, and appends
21096  # trailing '-' during substitution so that $LINENO is not a special
21097  # case at line end.
21098  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21099  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21100  # E. McMahon (1931-1989) for sed's syntax.  :-)
21101  sed -n '
21102    p
21103    /[$]LINENO/=
21104  ' <$as_myself |
21105    sed '
21106      s/[$]LINENO.*/&-/
21107      t lineno
21108      b
21109      :lineno
21110      N
21111      :loop
21112      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21113      t loop
21114      s/-\n.*//
21115    ' >$as_me.lineno &&
21116  chmod +x "$as_me.lineno" ||
21117    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21118   { (exit 1); exit 1; }; }
21119
21120  # Don't try to exec as it changes $[0], causing all sort of problems
21121  # (the dirname of $[0] is not the place where we might find the
21122  # original and so on.  Autoconf is especially sensitive to this).
21123  . "./$as_me.lineno"
21124  # Exit status is that of the last command.
21125  exit
21126}
21127
21128
21129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21130  as_dirname=dirname
21131else
21132  as_dirname=false
21133fi
21134
21135ECHO_C= ECHO_N= ECHO_T=
21136case `echo -n x` in
21137-n*)
21138  case `echo 'x\c'` in
21139  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21140  *)   ECHO_C='\c';;
21141  esac;;
21142*)
21143  ECHO_N='-n';;
21144esac
21145
21146if expr a : '\(a\)' >/dev/null 2>&1 &&
21147   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21148  as_expr=expr
21149else
21150  as_expr=false
21151fi
21152
21153rm -f conf$$ conf$$.exe conf$$.file
21154if test -d conf$$.dir; then
21155  rm -f conf$$.dir/conf$$.file
21156else
21157  rm -f conf$$.dir
21158  mkdir conf$$.dir
21159fi
21160echo >conf$$.file
21161if ln -s conf$$.file conf$$ 2>/dev/null; then
21162  as_ln_s='ln -s'
21163  # ... but there are two gotchas:
21164  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21165  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21166  # In both cases, we have to default to `cp -p'.
21167  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21168    as_ln_s='cp -p'
21169elif ln conf$$.file conf$$ 2>/dev/null; then
21170  as_ln_s=ln
21171else
21172  as_ln_s='cp -p'
21173fi
21174rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21175rmdir conf$$.dir 2>/dev/null
21176
21177if mkdir -p . 2>/dev/null; then
21178  as_mkdir_p=:
21179else
21180  test -d ./-p && rmdir ./-p
21181  as_mkdir_p=false
21182fi
21183
21184if test -x / >/dev/null 2>&1; then
21185  as_test_x='test -x'
21186else
21187  if ls -dL / >/dev/null 2>&1; then
21188    as_ls_L_option=L
21189  else
21190    as_ls_L_option=
21191  fi
21192  as_test_x='
21193    eval sh -c '\''
21194      if test -d "$1"; then
21195        test -d "$1/.";
21196      else
21197	case $1 in
21198        -*)set "./$1";;
21199	esac;
21200	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21201	???[sx]*):;;*)false;;esac;fi
21202    '\'' sh
21203  '
21204fi
21205as_executable_p=$as_test_x
21206
21207# Sed expression to map a string onto a valid CPP name.
21208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21209
21210# Sed expression to map a string onto a valid variable name.
21211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21212
21213
21214exec 6>&1
21215
21216# Save the log message, to keep $[0] and so on meaningful, and to
21217# report actual input values of CONFIG_FILES etc. instead of their
21218# values after options handling.
21219ac_log="
21220This file was extended by xf86-video-ast $as_me 0.93.9, which was
21221generated by GNU Autoconf 2.61.  Invocation command line was
21222
21223  CONFIG_FILES    = $CONFIG_FILES
21224  CONFIG_HEADERS  = $CONFIG_HEADERS
21225  CONFIG_LINKS    = $CONFIG_LINKS
21226  CONFIG_COMMANDS = $CONFIG_COMMANDS
21227  $ $0 $@
21228
21229on `(hostname || uname -n) 2>/dev/null | sed 1q`
21230"
21231
21232_ACEOF
21233
21234cat >>$CONFIG_STATUS <<_ACEOF
21235# Files that config.status was made for.
21236config_files="$ac_config_files"
21237config_headers="$ac_config_headers"
21238config_commands="$ac_config_commands"
21239
21240_ACEOF
21241
21242cat >>$CONFIG_STATUS <<\_ACEOF
21243ac_cs_usage="\
21244\`$as_me' instantiates files from templates according to the
21245current configuration.
21246
21247Usage: $0 [OPTIONS] [FILE]...
21248
21249  -h, --help       print this help, then exit
21250  -V, --version    print version number and configuration settings, then exit
21251  -q, --quiet      do not print progress messages
21252  -d, --debug      don't remove temporary files
21253      --recheck    update $as_me by reconfiguring in the same conditions
21254  --file=FILE[:TEMPLATE]
21255		   instantiate the configuration file FILE
21256  --header=FILE[:TEMPLATE]
21257		   instantiate the configuration header FILE
21258
21259Configuration files:
21260$config_files
21261
21262Configuration headers:
21263$config_headers
21264
21265Configuration commands:
21266$config_commands
21267
21268Report bugs to <bug-autoconf@gnu.org>."
21269
21270_ACEOF
21271cat >>$CONFIG_STATUS <<_ACEOF
21272ac_cs_version="\\
21273xf86-video-ast config.status 0.93.9
21274configured by $0, generated by GNU Autoconf 2.61,
21275  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21276
21277Copyright (C) 2006 Free Software Foundation, Inc.
21278This config.status script is free software; the Free Software Foundation
21279gives unlimited permission to copy, distribute and modify it."
21280
21281ac_pwd='$ac_pwd'
21282srcdir='$srcdir'
21283INSTALL='$INSTALL'
21284MKDIR_P='$MKDIR_P'
21285_ACEOF
21286
21287cat >>$CONFIG_STATUS <<\_ACEOF
21288# If no file are specified by the user, then we need to provide default
21289# value.  By we need to know if files were specified by the user.
21290ac_need_defaults=:
21291while test $# != 0
21292do
21293  case $1 in
21294  --*=*)
21295    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21296    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21297    ac_shift=:
21298    ;;
21299  *)
21300    ac_option=$1
21301    ac_optarg=$2
21302    ac_shift=shift
21303    ;;
21304  esac
21305
21306  case $ac_option in
21307  # Handling of the options.
21308  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21309    ac_cs_recheck=: ;;
21310  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21311    echo "$ac_cs_version"; exit ;;
21312  --debug | --debu | --deb | --de | --d | -d )
21313    debug=: ;;
21314  --file | --fil | --fi | --f )
21315    $ac_shift
21316    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21317    ac_need_defaults=false;;
21318  --header | --heade | --head | --hea )
21319    $ac_shift
21320    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21321    ac_need_defaults=false;;
21322  --he | --h)
21323    # Conflict between --help and --header
21324    { echo "$as_me: error: ambiguous option: $1
21325Try \`$0 --help' for more information." >&2
21326   { (exit 1); exit 1; }; };;
21327  --help | --hel | -h )
21328    echo "$ac_cs_usage"; exit ;;
21329  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21330  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21331    ac_cs_silent=: ;;
21332
21333  # This is an error.
21334  -*) { echo "$as_me: error: unrecognized option: $1
21335Try \`$0 --help' for more information." >&2
21336   { (exit 1); exit 1; }; } ;;
21337
21338  *) ac_config_targets="$ac_config_targets $1"
21339     ac_need_defaults=false ;;
21340
21341  esac
21342  shift
21343done
21344
21345ac_configure_extra_args=
21346
21347if $ac_cs_silent; then
21348  exec 6>/dev/null
21349  ac_configure_extra_args="$ac_configure_extra_args --silent"
21350fi
21351
21352_ACEOF
21353cat >>$CONFIG_STATUS <<_ACEOF
21354if \$ac_cs_recheck; then
21355  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21356  CONFIG_SHELL=$SHELL
21357  export CONFIG_SHELL
21358  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21359fi
21360
21361_ACEOF
21362cat >>$CONFIG_STATUS <<\_ACEOF
21363exec 5>>config.log
21364{
21365  echo
21366  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21367## Running $as_me. ##
21368_ASBOX
21369  echo "$ac_log"
21370} >&5
21371
21372_ACEOF
21373cat >>$CONFIG_STATUS <<_ACEOF
21374#
21375# INIT-COMMANDS
21376#
21377AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21378
21379_ACEOF
21380
21381cat >>$CONFIG_STATUS <<\_ACEOF
21382
21383# Handling of arguments.
21384for ac_config_target in $ac_config_targets
21385do
21386  case $ac_config_target in
21387    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21388    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21389    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21390    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21391
21392  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21393echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21394   { (exit 1); exit 1; }; };;
21395  esac
21396done
21397
21398
21399# If the user did not use the arguments to specify the items to instantiate,
21400# then the envvar interface is used.  Set only those that are not.
21401# We use the long form for the default assignment because of an extremely
21402# bizarre bug on SunOS 4.1.3.
21403if $ac_need_defaults; then
21404  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21405  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21406  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21407fi
21408
21409# Have a temporary directory for convenience.  Make it in the build tree
21410# simply because there is no reason against having it here, and in addition,
21411# creating and moving files from /tmp can sometimes cause problems.
21412# Hook for its removal unless debugging.
21413# Note that there is a small window in which the directory will not be cleaned:
21414# after its creation but before its name has been assigned to `$tmp'.
21415$debug ||
21416{
21417  tmp=
21418  trap 'exit_status=$?
21419  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21420' 0
21421  trap '{ (exit 1); exit 1; }' 1 2 13 15
21422}
21423# Create a (secure) tmp directory for tmp files.
21424
21425{
21426  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21427  test -n "$tmp" && test -d "$tmp"
21428}  ||
21429{
21430  tmp=./conf$$-$RANDOM
21431  (umask 077 && mkdir "$tmp")
21432} ||
21433{
21434   echo "$me: cannot create a temporary directory in ." >&2
21435   { (exit 1); exit 1; }
21436}
21437
21438#
21439# Set up the sed scripts for CONFIG_FILES section.
21440#
21441
21442# No need to generate the scripts if there are no CONFIG_FILES.
21443# This happens for instance when ./config.status config.h
21444if test -n "$CONFIG_FILES"; then
21445
21446_ACEOF
21447
21448
21449
21450ac_delim='%!_!# '
21451for ac_last_try in false false false false false :; do
21452  cat >conf$$subs.sed <<_ACEOF
21453SHELL!$SHELL$ac_delim
21454PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21455PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21456PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21457PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21458PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21459PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21460exec_prefix!$exec_prefix$ac_delim
21461prefix!$prefix$ac_delim
21462program_transform_name!$program_transform_name$ac_delim
21463bindir!$bindir$ac_delim
21464sbindir!$sbindir$ac_delim
21465libexecdir!$libexecdir$ac_delim
21466datarootdir!$datarootdir$ac_delim
21467datadir!$datadir$ac_delim
21468sysconfdir!$sysconfdir$ac_delim
21469sharedstatedir!$sharedstatedir$ac_delim
21470localstatedir!$localstatedir$ac_delim
21471includedir!$includedir$ac_delim
21472oldincludedir!$oldincludedir$ac_delim
21473docdir!$docdir$ac_delim
21474infodir!$infodir$ac_delim
21475htmldir!$htmldir$ac_delim
21476dvidir!$dvidir$ac_delim
21477pdfdir!$pdfdir$ac_delim
21478psdir!$psdir$ac_delim
21479libdir!$libdir$ac_delim
21480localedir!$localedir$ac_delim
21481mandir!$mandir$ac_delim
21482DEFS!$DEFS$ac_delim
21483ECHO_C!$ECHO_C$ac_delim
21484ECHO_N!$ECHO_N$ac_delim
21485ECHO_T!$ECHO_T$ac_delim
21486LIBS!$LIBS$ac_delim
21487build_alias!$build_alias$ac_delim
21488host_alias!$host_alias$ac_delim
21489target_alias!$target_alias$ac_delim
21490INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21491INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21492INSTALL_DATA!$INSTALL_DATA$ac_delim
21493am__isrc!$am__isrc$ac_delim
21494CYGPATH_W!$CYGPATH_W$ac_delim
21495PACKAGE!$PACKAGE$ac_delim
21496VERSION!$VERSION$ac_delim
21497ACLOCAL!$ACLOCAL$ac_delim
21498AUTOCONF!$AUTOCONF$ac_delim
21499AUTOMAKE!$AUTOMAKE$ac_delim
21500AUTOHEADER!$AUTOHEADER$ac_delim
21501MAKEINFO!$MAKEINFO$ac_delim
21502install_sh!$install_sh$ac_delim
21503STRIP!$STRIP$ac_delim
21504INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21505mkdir_p!$mkdir_p$ac_delim
21506AWK!$AWK$ac_delim
21507SET_MAKE!$SET_MAKE$ac_delim
21508am__leading_dot!$am__leading_dot$ac_delim
21509AMTAR!$AMTAR$ac_delim
21510am__tar!$am__tar$ac_delim
21511am__untar!$am__untar$ac_delim
21512MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21513MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21514MAINT!$MAINT$ac_delim
21515CC!$CC$ac_delim
21516CFLAGS!$CFLAGS$ac_delim
21517LDFLAGS!$LDFLAGS$ac_delim
21518CPPFLAGS!$CPPFLAGS$ac_delim
21519ac_ct_CC!$ac_ct_CC$ac_delim
21520EXEEXT!$EXEEXT$ac_delim
21521OBJEXT!$OBJEXT$ac_delim
21522DEPDIR!$DEPDIR$ac_delim
21523am__include!$am__include$ac_delim
21524am__quote!$am__quote$ac_delim
21525AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21526AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21527AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21528CCDEPMODE!$CCDEPMODE$ac_delim
21529am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21530am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21531CPP!$CPP$ac_delim
21532GREP!$GREP$ac_delim
21533EGREP!$EGREP$ac_delim
21534CWARNFLAGS!$CWARNFLAGS$ac_delim
21535STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
21536CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
21537PKG_CONFIG!$PKG_CONFIG$ac_delim
21538INSTALL_CMD!$INSTALL_CMD$ac_delim
21539build!$build$ac_delim
21540build_cpu!$build_cpu$ac_delim
21541build_vendor!$build_vendor$ac_delim
21542build_os!$build_os$ac_delim
21543host!$host$ac_delim
21544host_cpu!$host_cpu$ac_delim
21545host_vendor!$host_vendor$ac_delim
21546host_os!$host_os$ac_delim
21547SED!$SED$ac_delim
21548APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21549LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21550_ACEOF
21551
21552  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21553    break
21554  elif $ac_last_try; then
21555    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21556echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21557   { (exit 1); exit 1; }; }
21558  else
21559    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21560  fi
21561done
21562
21563ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21564if test -n "$ac_eof"; then
21565  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21566  ac_eof=`expr $ac_eof + 1`
21567fi
21568
21569cat >>$CONFIG_STATUS <<_ACEOF
21570cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21572_ACEOF
21573sed '
21574s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21575s/^/s,@/; s/!/@,|#_!!_#|/
21576:n
21577t n
21578s/'"$ac_delim"'$/,g/; t
21579s/$/\\/; p
21580N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21581' >>$CONFIG_STATUS <conf$$subs.sed
21582rm -f conf$$subs.sed
21583cat >>$CONFIG_STATUS <<_ACEOF
21584CEOF$ac_eof
21585_ACEOF
21586
21587
21588ac_delim='%!_!# '
21589for ac_last_try in false false false false false :; do
21590  cat >conf$$subs.sed <<_ACEOF
21591FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21592MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21593DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21594ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21595APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21596LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21597FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21598MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21599DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21600ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21601XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
21602MAN_SUBSTS!$MAN_SUBSTS$ac_delim
21603AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
21604LN_S!$LN_S$ac_delim
21605ECHO!$ECHO$ac_delim
21606AR!$AR$ac_delim
21607RANLIB!$RANLIB$ac_delim
21608CXX!$CXX$ac_delim
21609CXXFLAGS!$CXXFLAGS$ac_delim
21610ac_ct_CXX!$ac_ct_CXX$ac_delim
21611CXXDEPMODE!$CXXDEPMODE$ac_delim
21612am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21613am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21614CXXCPP!$CXXCPP$ac_delim
21615F77!$F77$ac_delim
21616FFLAGS!$FFLAGS$ac_delim
21617ac_ct_F77!$ac_ct_F77$ac_delim
21618LIBTOOL!$LIBTOOL$ac_delim
21619XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21620XORG_LIBS!$XORG_LIBS$ac_delim
21621PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
21622PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
21623XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
21624XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
21625moduledir!$moduledir$ac_delim
21626DRIVER_NAME!$DRIVER_NAME$ac_delim
21627LIBOBJS!$LIBOBJS$ac_delim
21628LTLIBOBJS!$LTLIBOBJS$ac_delim
21629_ACEOF
21630
21631  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
21632    break
21633  elif $ac_last_try; then
21634    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21636   { (exit 1); exit 1; }; }
21637  else
21638    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21639  fi
21640done
21641
21642ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21643if test -n "$ac_eof"; then
21644  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21645  ac_eof=`expr $ac_eof + 1`
21646fi
21647
21648cat >>$CONFIG_STATUS <<_ACEOF
21649cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21651_ACEOF
21652sed '
21653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21654s/^/s,@/; s/!/@,|#_!!_#|/
21655:n
21656t n
21657s/'"$ac_delim"'$/,g/; t
21658s/$/\\/; p
21659N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21660' >>$CONFIG_STATUS <conf$$subs.sed
21661rm -f conf$$subs.sed
21662cat >>$CONFIG_STATUS <<_ACEOF
21663:end
21664s/|#_!!_#|//g
21665CEOF$ac_eof
21666_ACEOF
21667
21668
21669# VPATH may cause trouble with some makes, so we remove $(srcdir),
21670# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21671# trailing colons and then remove the whole line if VPATH becomes empty
21672# (actually we leave an empty line to preserve line numbers).
21673if test "x$srcdir" = x.; then
21674  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21675s/:*\$(srcdir):*/:/
21676s/:*\${srcdir}:*/:/
21677s/:*@srcdir@:*/:/
21678s/^\([^=]*=[	 ]*\):*/\1/
21679s/:*$//
21680s/^[^=]*=[	 ]*$//
21681}'
21682fi
21683
21684cat >>$CONFIG_STATUS <<\_ACEOF
21685fi # test -n "$CONFIG_FILES"
21686
21687
21688for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21689do
21690  case $ac_tag in
21691  :[FHLC]) ac_mode=$ac_tag; continue;;
21692  esac
21693  case $ac_mode$ac_tag in
21694  :[FHL]*:*);;
21695  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21696echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21697   { (exit 1); exit 1; }; };;
21698  :[FH]-) ac_tag=-:-;;
21699  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21700  esac
21701  ac_save_IFS=$IFS
21702  IFS=:
21703  set x $ac_tag
21704  IFS=$ac_save_IFS
21705  shift
21706  ac_file=$1
21707  shift
21708
21709  case $ac_mode in
21710  :L) ac_source=$1;;
21711  :[FH])
21712    ac_file_inputs=
21713    for ac_f
21714    do
21715      case $ac_f in
21716      -) ac_f="$tmp/stdin";;
21717      *) # Look for the file first in the build tree, then in the source tree
21718	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21719	 # because $ac_f cannot contain `:'.
21720	 test -f "$ac_f" ||
21721	   case $ac_f in
21722	   [\\/$]*) false;;
21723	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21724	   esac ||
21725	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21726echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21727   { (exit 1); exit 1; }; };;
21728      esac
21729      ac_file_inputs="$ac_file_inputs $ac_f"
21730    done
21731
21732    # Let's still pretend it is `configure' which instantiates (i.e., don't
21733    # use $as_me), people would be surprised to read:
21734    #    /* config.h.  Generated by config.status.  */
21735    configure_input="Generated from "`IFS=:
21736	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21737    if test x"$ac_file" != x-; then
21738      configure_input="$ac_file.  $configure_input"
21739      { echo "$as_me:$LINENO: creating $ac_file" >&5
21740echo "$as_me: creating $ac_file" >&6;}
21741    fi
21742
21743    case $ac_tag in
21744    *:-:* | *:-) cat >"$tmp/stdin";;
21745    esac
21746    ;;
21747  esac
21748
21749  ac_dir=`$as_dirname -- "$ac_file" ||
21750$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751	 X"$ac_file" : 'X\(//\)[^/]' \| \
21752	 X"$ac_file" : 'X\(//\)$' \| \
21753	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21754echo X"$ac_file" |
21755    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21756	    s//\1/
21757	    q
21758	  }
21759	  /^X\(\/\/\)[^/].*/{
21760	    s//\1/
21761	    q
21762	  }
21763	  /^X\(\/\/\)$/{
21764	    s//\1/
21765	    q
21766	  }
21767	  /^X\(\/\).*/{
21768	    s//\1/
21769	    q
21770	  }
21771	  s/.*/./; q'`
21772  { as_dir="$ac_dir"
21773  case $as_dir in #(
21774  -*) as_dir=./$as_dir;;
21775  esac
21776  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21777    as_dirs=
21778    while :; do
21779      case $as_dir in #(
21780      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21781      *) as_qdir=$as_dir;;
21782      esac
21783      as_dirs="'$as_qdir' $as_dirs"
21784      as_dir=`$as_dirname -- "$as_dir" ||
21785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21786	 X"$as_dir" : 'X\(//\)[^/]' \| \
21787	 X"$as_dir" : 'X\(//\)$' \| \
21788	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21789echo X"$as_dir" |
21790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21791	    s//\1/
21792	    q
21793	  }
21794	  /^X\(\/\/\)[^/].*/{
21795	    s//\1/
21796	    q
21797	  }
21798	  /^X\(\/\/\)$/{
21799	    s//\1/
21800	    q
21801	  }
21802	  /^X\(\/\).*/{
21803	    s//\1/
21804	    q
21805	  }
21806	  s/.*/./; q'`
21807      test -d "$as_dir" && break
21808    done
21809    test -z "$as_dirs" || eval "mkdir $as_dirs"
21810  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21811echo "$as_me: error: cannot create directory $as_dir" >&2;}
21812   { (exit 1); exit 1; }; }; }
21813  ac_builddir=.
21814
21815case "$ac_dir" in
21816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21817*)
21818  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21819  # A ".." for each directory in $ac_dir_suffix.
21820  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21821  case $ac_top_builddir_sub in
21822  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21823  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21824  esac ;;
21825esac
21826ac_abs_top_builddir=$ac_pwd
21827ac_abs_builddir=$ac_pwd$ac_dir_suffix
21828# for backward compatibility:
21829ac_top_builddir=$ac_top_build_prefix
21830
21831case $srcdir in
21832  .)  # We are building in place.
21833    ac_srcdir=.
21834    ac_top_srcdir=$ac_top_builddir_sub
21835    ac_abs_top_srcdir=$ac_pwd ;;
21836  [\\/]* | ?:[\\/]* )  # Absolute name.
21837    ac_srcdir=$srcdir$ac_dir_suffix;
21838    ac_top_srcdir=$srcdir
21839    ac_abs_top_srcdir=$srcdir ;;
21840  *) # Relative name.
21841    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21842    ac_top_srcdir=$ac_top_build_prefix$srcdir
21843    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21844esac
21845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21846
21847
21848  case $ac_mode in
21849  :F)
21850  #
21851  # CONFIG_FILE
21852  #
21853
21854  case $INSTALL in
21855  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21856  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21857  esac
21858  ac_MKDIR_P=$MKDIR_P
21859  case $MKDIR_P in
21860  [\\/$]* | ?:[\\/]* ) ;;
21861  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21862  esac
21863_ACEOF
21864
21865cat >>$CONFIG_STATUS <<\_ACEOF
21866# If the template does not know about datarootdir, expand it.
21867# FIXME: This hack should be removed a few years after 2.60.
21868ac_datarootdir_hack=; ac_datarootdir_seen=
21869
21870case `sed -n '/datarootdir/ {
21871  p
21872  q
21873}
21874/@datadir@/p
21875/@docdir@/p
21876/@infodir@/p
21877/@localedir@/p
21878/@mandir@/p
21879' $ac_file_inputs` in
21880*datarootdir*) ac_datarootdir_seen=yes;;
21881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21882  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21883echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21884_ACEOF
21885cat >>$CONFIG_STATUS <<_ACEOF
21886  ac_datarootdir_hack='
21887  s&@datadir@&$datadir&g
21888  s&@docdir@&$docdir&g
21889  s&@infodir@&$infodir&g
21890  s&@localedir@&$localedir&g
21891  s&@mandir@&$mandir&g
21892    s&\\\${datarootdir}&$datarootdir&g' ;;
21893esac
21894_ACEOF
21895
21896# Neutralize VPATH when `$srcdir' = `.'.
21897# Shell code in configure.ac might set extrasub.
21898# FIXME: do we really want to maintain this feature?
21899cat >>$CONFIG_STATUS <<_ACEOF
21900  sed "$ac_vpsub
21901$extrasub
21902_ACEOF
21903cat >>$CONFIG_STATUS <<\_ACEOF
21904:t
21905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21906s&@configure_input@&$configure_input&;t t
21907s&@top_builddir@&$ac_top_builddir_sub&;t t
21908s&@srcdir@&$ac_srcdir&;t t
21909s&@abs_srcdir@&$ac_abs_srcdir&;t t
21910s&@top_srcdir@&$ac_top_srcdir&;t t
21911s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21912s&@builddir@&$ac_builddir&;t t
21913s&@abs_builddir@&$ac_abs_builddir&;t t
21914s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21915s&@INSTALL@&$ac_INSTALL&;t t
21916s&@MKDIR_P@&$ac_MKDIR_P&;t t
21917$ac_datarootdir_hack
21918" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21919
21920test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21921  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21922  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21923  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21924which seems to be undefined.  Please make sure it is defined." >&5
21925echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21926which seems to be undefined.  Please make sure it is defined." >&2;}
21927
21928  rm -f "$tmp/stdin"
21929  case $ac_file in
21930  -) cat "$tmp/out"; rm -f "$tmp/out";;
21931  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21932  esac
21933 ;;
21934  :H)
21935  #
21936  # CONFIG_HEADER
21937  #
21938_ACEOF
21939
21940# Transform confdefs.h into a sed script `conftest.defines', that
21941# substitutes the proper values into config.h.in to produce config.h.
21942rm -f conftest.defines conftest.tail
21943# First, append a space to every undef/define line, to ease matching.
21944echo 's/$/ /' >conftest.defines
21945# Then, protect against being on the right side of a sed subst, or in
21946# an unquoted here document, in config.status.  If some macros were
21947# called several times there might be several #defines for the same
21948# symbol, which is useless.  But do not sort them, since the last
21949# AC_DEFINE must be honored.
21950ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21951# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21952# NAME is the cpp macro being defined, VALUE is the value it is being given.
21953# PARAMS is the parameter list in the macro definition--in most cases, it's
21954# just an empty string.
21955ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21956ac_dB='\\)[	 (].*,\\1define\\2'
21957ac_dC=' '
21958ac_dD=' ,'
21959
21960uniq confdefs.h |
21961  sed -n '
21962	t rset
21963	:rset
21964	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21965	t ok
21966	d
21967	:ok
21968	s/[\\&,]/\\&/g
21969	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21970	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21971  ' >>conftest.defines
21972
21973# Remove the space that was appended to ease matching.
21974# Then replace #undef with comments.  This is necessary, for
21975# example, in the case of _POSIX_SOURCE, which is predefined and required
21976# on some systems where configure will not decide to define it.
21977# (The regexp can be short, since the line contains either #define or #undef.)
21978echo 's/ $//
21979s,^[	 #]*u.*,/* & */,' >>conftest.defines
21980
21981# Break up conftest.defines:
21982ac_max_sed_lines=50
21983
21984# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21985# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21986# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21987# et cetera.
21988ac_in='$ac_file_inputs'
21989ac_out='"$tmp/out1"'
21990ac_nxt='"$tmp/out2"'
21991
21992while :
21993do
21994  # Write a here document:
21995    cat >>$CONFIG_STATUS <<_ACEOF
21996    # First, check the format of the line:
21997    cat >"\$tmp/defines.sed" <<\\CEOF
21998/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21999/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22000b
22001:def
22002_ACEOF
22003  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22004  echo 'CEOF
22005    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22006  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22007  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22008  grep . conftest.tail >/dev/null || break
22009  rm -f conftest.defines
22010  mv conftest.tail conftest.defines
22011done
22012rm -f conftest.defines conftest.tail
22013
22014echo "ac_result=$ac_in" >>$CONFIG_STATUS
22015cat >>$CONFIG_STATUS <<\_ACEOF
22016  if test x"$ac_file" != x-; then
22017    echo "/* $configure_input  */" >"$tmp/config.h"
22018    cat "$ac_result" >>"$tmp/config.h"
22019    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22020      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22021echo "$as_me: $ac_file is unchanged" >&6;}
22022    else
22023      rm -f $ac_file
22024      mv "$tmp/config.h" $ac_file
22025    fi
22026  else
22027    echo "/* $configure_input  */"
22028    cat "$ac_result"
22029  fi
22030  rm -f "$tmp/out12"
22031# Compute $ac_file's index in $config_headers.
22032_am_stamp_count=1
22033for _am_header in $config_headers :; do
22034  case $_am_header in
22035    $ac_file | $ac_file:* )
22036      break ;;
22037    * )
22038      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22039  esac
22040done
22041echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22042$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22043	 X$ac_file : 'X\(//\)[^/]' \| \
22044	 X$ac_file : 'X\(//\)$' \| \
22045	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22046echo X$ac_file |
22047    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22048	    s//\1/
22049	    q
22050	  }
22051	  /^X\(\/\/\)[^/].*/{
22052	    s//\1/
22053	    q
22054	  }
22055	  /^X\(\/\/\)$/{
22056	    s//\1/
22057	    q
22058	  }
22059	  /^X\(\/\).*/{
22060	    s//\1/
22061	    q
22062	  }
22063	  s/.*/./; q'`/stamp-h$_am_stamp_count
22064 ;;
22065
22066  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22067echo "$as_me: executing $ac_file commands" >&6;}
22068 ;;
22069  esac
22070
22071
22072  case $ac_file$ac_mode in
22073    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22074  # Strip MF so we end up with the name of the file.
22075  mf=`echo "$mf" | sed -e 's/:.*$//'`
22076  # Check whether this is an Automake generated Makefile or not.
22077  # We used to match only the files named `Makefile.in', but
22078  # some people rename them; so instead we look at the file content.
22079  # Grep'ing the first line is not enough: some people post-process
22080  # each Makefile.in and add a new line on top of each file to say so.
22081  # Grep'ing the whole file is not good either: AIX grep has a line
22082  # limit of 2048, but all sed's we know have understand at least 4000.
22083  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22084    dirpart=`$as_dirname -- "$mf" ||
22085$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22086	 X"$mf" : 'X\(//\)[^/]' \| \
22087	 X"$mf" : 'X\(//\)$' \| \
22088	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22089echo X"$mf" |
22090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22091	    s//\1/
22092	    q
22093	  }
22094	  /^X\(\/\/\)[^/].*/{
22095	    s//\1/
22096	    q
22097	  }
22098	  /^X\(\/\/\)$/{
22099	    s//\1/
22100	    q
22101	  }
22102	  /^X\(\/\).*/{
22103	    s//\1/
22104	    q
22105	  }
22106	  s/.*/./; q'`
22107  else
22108    continue
22109  fi
22110  # Extract the definition of DEPDIR, am__include, and am__quote
22111  # from the Makefile without running `make'.
22112  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22113  test -z "$DEPDIR" && continue
22114  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22115  test -z "am__include" && continue
22116  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22117  # When using ansi2knr, U may be empty or an underscore; expand it
22118  U=`sed -n 's/^U = //p' < "$mf"`
22119  # Find all dependency output files, they are included files with
22120  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22121  # simplest approach to changing $(DEPDIR) to its actual value in the
22122  # expansion.
22123  for file in `sed -n "
22124    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22125       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22126    # Make sure the directory exists.
22127    test -f "$dirpart/$file" && continue
22128    fdir=`$as_dirname -- "$file" ||
22129$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22130	 X"$file" : 'X\(//\)[^/]' \| \
22131	 X"$file" : 'X\(//\)$' \| \
22132	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22133echo X"$file" |
22134    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22135	    s//\1/
22136	    q
22137	  }
22138	  /^X\(\/\/\)[^/].*/{
22139	    s//\1/
22140	    q
22141	  }
22142	  /^X\(\/\/\)$/{
22143	    s//\1/
22144	    q
22145	  }
22146	  /^X\(\/\).*/{
22147	    s//\1/
22148	    q
22149	  }
22150	  s/.*/./; q'`
22151    { as_dir=$dirpart/$fdir
22152  case $as_dir in #(
22153  -*) as_dir=./$as_dir;;
22154  esac
22155  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22156    as_dirs=
22157    while :; do
22158      case $as_dir in #(
22159      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22160      *) as_qdir=$as_dir;;
22161      esac
22162      as_dirs="'$as_qdir' $as_dirs"
22163      as_dir=`$as_dirname -- "$as_dir" ||
22164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22165	 X"$as_dir" : 'X\(//\)[^/]' \| \
22166	 X"$as_dir" : 'X\(//\)$' \| \
22167	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22168echo X"$as_dir" |
22169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22170	    s//\1/
22171	    q
22172	  }
22173	  /^X\(\/\/\)[^/].*/{
22174	    s//\1/
22175	    q
22176	  }
22177	  /^X\(\/\/\)$/{
22178	    s//\1/
22179	    q
22180	  }
22181	  /^X\(\/\).*/{
22182	    s//\1/
22183	    q
22184	  }
22185	  s/.*/./; q'`
22186      test -d "$as_dir" && break
22187    done
22188    test -z "$as_dirs" || eval "mkdir $as_dirs"
22189  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22190echo "$as_me: error: cannot create directory $as_dir" >&2;}
22191   { (exit 1); exit 1; }; }; }
22192    # echo "creating $dirpart/$file"
22193    echo '# dummy' > "$dirpart/$file"
22194  done
22195done
22196 ;;
22197
22198  esac
22199done # for ac_tag
22200
22201
22202{ (exit 0); exit 0; }
22203_ACEOF
22204chmod +x $CONFIG_STATUS
22205ac_clean_files=$ac_clean_files_save
22206
22207
22208# configure is writing to config.log, and then calls config.status.
22209# config.status does its own redirection, appending to config.log.
22210# Unfortunately, on DOS this fails, as config.log is still kept open
22211# by configure, so config.status won't be able to write to it; its
22212# output is simply discarded.  So we exec the FD to /dev/null,
22213# effectively closing config.log, so it can be properly (re)opened and
22214# appended to by config.status.  When coming back to configure, we
22215# need to make the FD available again.
22216if test "$no_create" != yes; then
22217  ac_cs_success=:
22218  ac_config_status_args=
22219  test "$silent" = yes &&
22220    ac_config_status_args="$ac_config_status_args --quiet"
22221  exec 5>/dev/null
22222  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22223  exec 5>>config.log
22224  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22225  # would make configure fail if this is the last instruction.
22226  $ac_cs_success || { (exit 1); exit 1; }
22227fi
22228
22229